You’ve signed up for the Oracle Cloud Free Tier at https://www.oracle.com/cloud/free/ and now you want to create an Always Free Autonomous Database.
Create a new Database
These instructions should work for both (ATP) Autonomous Transaction Processing and (ADW) Autonomous Data Warehouse Databases.
After you log into your Oracle Cloud Dashboard.
- Click on the “Create an ATP database” box. (Or the “Create an ADW database” box if you want a data warehouse)
- Choose the compartment you want to use.
- Fill in the “Display Name” field. This name will be displayed in the GUI lists and drop down selection boxes in your Oracle Cloud dashboard. You can change this later.
- Fill in the “Database Name” field. This name will be used as the permanent ID for this database. It will show up in places such as the auto-generated TNSNAMES.ORA file that you’ll download in another step. You can not change this later, so choose wisely.
- In the “Choose a workload type” section, make sure the correct workload type is selected..
- Since we want to create an Always Free Database, leave “Shared Infrastructure” selected in the “Choose a deployment type” section.
- Make sure the “Always Free” selector is turned on. This will lock in the options for an Always Free instance. (20 GB of storage and 1 OCPU)
- Scroll down to the “Create administrator credentials” section and enter a Strong password for your Admin account.
You will use the Admin account to connect to your Autonomous Database instead of SYS or System.
- Under the “Choose a license type” section make sure “License Included” is selected.
- Click the “Create Autonomous Database” button.
Your new ATP instance will be provisioned. The orange box will turn green once it has been provisioned and is available to use.
While you’re waiting, check that you see the Always Free tag next to your database name. If you do not see the tag, you may want to check to see what license you created the instance under and make sure you are OK with those options or terminate the instance and create a new one with the Always Free options selected.
Once the orange box turns green and your database is available, you will want to connect to it.
The Oracle Autonomous Cloud Databases are setup with a little extra security. In order to connect you will need to use a wallet credentials file.
Download the Oracle Credentials file
There are a couple different ways to get the wallet file through the Cloud Dashboard.
From the Details page
-
- Click on the “DB Connection” button.
- On this form you will find a list of the auto-generated TNSNAMES entries and connection strings that you can use to connect to your database. There is a link to the documentation explaining the difference between the entries. For typical transactions I like to use the one ending in _TP.
- Click the “Download Wallet” button.
- Create a password that will be used to access the .zip file.
- Click the “Download” button.
Remember the location where you save your wallet file, you will need it when we test the connection. - Save the .zip file to a secure location. This file is used to access your database so keep it secure.
- Click on the “DB Connection” button.
From the Service Console
You can get to the Service Console for your Database instance either from the Details page
or from the menu for the instance in the Autonomous Transaction Processing Database list.
Once your in the service Console
- Click on “Administration”.
- Click on “Download Client Credentials (Wallet)”.
- Create a password that will be used to access the .zip file.
- Click the “Download” button.
Important Wallet Security Information
All wallets downloaded with either method will create a copy of the *SAME WALLET* even if you use different passwords for the .zip file.
You can rotate the wallet from your database instance details page. Read the docs.
- Click the “DB Connection” button.
- Press the “Rotate Wallet” button and follow the instructions.
Connect to the Database
SQLcl is a great tool for making a quick and easy connection to the new database.
- Start SQLcl in ‘nolog’ mode
1234SQL> sql /nologSQLcl: Release 18.3 Production on Fri Jan 03 17:57:56 2020Copyright (c) 1982, 2020, Oracle. All rights reserved. - Set the location of your .zip file in the cloudconfig variable.
1234SQL> set cloudconfig = /home/oracle/wallets/new_wallet.zipOperation is successfully completed.Operation is successfully completed.Using temp directory:/tmp/oracle_cloud_config5623188769293536689 - Connect to your database using the password you set for the Admin account.
12SQL> connect admin/TopSecretPW@NewDB_TPConnected. - Run a test query
1234SQL> select sysdate from dual;SYSDATE---------03-DEC-19
Enjoy
Your new Always Free Oracle Autonomous Database is running and you are able to connect. Now you can start building your application.
If you have an questions please post them in the comments and I’ll do my best to help you find an answer.
Hi Blaine, thanks for the awesome and helpful post . Just one question here. While creating we set ADMIN password but it seems I am not able to unlock other schemas like SH etc using ADMIN. How to get/reset SYS password in this case? Thanks in advance!
With an Autonomous Database, there are a lot of tasks managed by the back-end. In order to keep everything running smoothly, certain features are not accessible including connecting as ‘SYS’.
You can find more information here.
This is great!!!!