OCI Database connection from SQL Developer - OCI
OCI Database connection from SQL Developer.
In last article we have seen how to create database service and how to make connection from VM.
If you don't see please refer to below article :
https://himanshusinhadba.blogspot.com/2019/02/database-as-service-dbaas-create.html
Login to OCI Console.
Now DB System is ready.
Click on DB system name :
Now We have public IP, Private IP of DB Instance and DB name . That’s we Need for Client Connection.
Connection from SQL Developer is 2 Phase process :
- Make SSH connection to Server VM.
- Make SQL Net connection using SSH connection.
Requirement :
- Public IP
- Private IP
- DB SID Name
Let’s GO :
1. Make SSH connection to Server :
1. Make SSH connection to Server :
Open SQL Developer from client machine.
Click on SSH , Right Click on SSH.
Verify DB Connection now :
Right Click on New SSH connection and then click Test.
Click OK.
Then Click Connect on Host and Click Connect on Port Forward Entry .
Now SSH connection to server made.
2. Make SQL Net connection using SSH connection.
Go to File and then NEW
Connection Name : Give any Connection Name .
Username : System or any user you want to connect.
Password: In case of OCI Cloud Database , System password will be same as admin password.
Choose Oracle.
Choose Connection Type as SSH.
Port Forward : Select Your Connection which you created .
SID : Mention DB Name.
Click on Test and look for Status . If Success then you are good to go.
We all set to connect to DB now. Click Connect now.
We are done .
Happy Learning !!!
Himanshu, Thanks for detailed blog.
ReplyDeleteIn my case I am using Bastion and tried following above steps by replacing Public IP with Bastion IP, but things aren't working. Any suggestions?