s1102499gc10 03 Connect Adb SQL Dev
s1102499gc10 03 Connect Adb SQL Dev
SQL Developer
Overview
In this practice, you connect to the Autonomous Database instance using SQL Developer.
Tasks
1. Log in to your Oracle Cloud Free Tier Account.
2. In the menu, click Autonomous Database.
3. On the Instances page, find your ATP instance (e.g., MYATP) and click Service Console in
the Actions menu.
4. This will open a new browser tab for the service console. If prompted, sign in to the
service console as admin user.
5. Click the Administration tab and click Download Client Credentials (Wallet) to download
the wallet.
Note: Specify a password of your choice for the wallet. You will need this password when
connecting to the database later. Note that this password is separate from the admin
7. Connect to the database using SQL Developer installed on your local system.
Start SQL Developer and create a connection for your database using the default
administrator account, ADMIN, by following these steps:
a. Click the Create Connection icon in the Connections toolbox on the top left of the
SQL Developer home page.
Note: In this example, the query with the LOW database service finished in around 9.7
seconds.
8. Create another connection named admin_high using the same information as in step 2.
This time pick myatp_high as the service name.
a. In SQL Developer, run this query with the admin_high connection you created just
now and note the response time.
select /* high */ c_city,c_region,count(*)
from ssb.customer c_high
group by c_city,c_region
order by count(*);
Note: These two queries are basically the same except for the comment after the
select keyword and the table alias.
b. Make sure you click the Run Script button in SQL Developer so that all the rows are
displayed on the screen.
Note: In the following example, the query with the HIGH database service finished in
around 5.4 seconds. A query running in the HIGH database service can use more
resources and run faster compared to a query running in the LOW database service.