This post covers an Error encountered while Creating Database Adapter/Connection as part of our Hands-On-Lab Exercise for Module 4 (Create Database Adapters in OIC) from our Oracle Integration Cloud Services (OIC) Training Program.
If you are new to Oracle Integration Cloud (OIC), then check out our blogs below as these contain all the key points that a beginner should know about Oracle Integration Cloud (OIC), creating Oracle Integration Instance and Consoles walkthrough.
- Oracle Integration Cloud (OIC) For Beginners Overview
- Create Oracle Integration Cloud Instance: Step-by-Step
- Console Walkthrough of Oracle Integration Cloud (OIC) Service
Error: CLOUD-0005: Unable To Establish Connection
There are many reasons for this error to occur, Let’s start with the pre-checks you should follow to pinpoint the error.
PRE-CHECKS
- Check the provided hostname.
- Port 1521 may not be open.
- Connectivity Agent could be down
- Database Might be down.
Check 1. The provided Hostname is Invalid
1. Click on the hamburger menu and go to Bare Metal, VM, and Exadata.
2. Click on the DB system that you have created.
3. Make sure you have used the Scan DNS Name in Host, not Host Domain Name.
4. If your host is correct the try using the IP Address of DB instead of Scan DNS Name.
5. Click on Nodes and copy the Public IP Address and use it in Host for DB connection.
6. Now test the connection again If it fails again then there might be something else that may be causing this error.
Check 2. Port 1521 must be closed
By default, the port 1521 is not open in Oracle Cloud and it has to be opened manually.
Steps to check if port 1521 is accessible or not
1. Open CMD
2. Enter command telnet followed by Public IP of your DB then followed by port 1521.
telnet 129.146.165.110 1521
3. Now the Command line will get clear and you will be able to see that the telnet command is a success.
4. If the telnet fails then you need to open port 1521.
Steps to Open port 1521
1. Click on the hamburger menu and go to Bare Metal, VM, and Exadata.
2. Click on the DB system that you have created.
3. Click on VCN.
4. Click on Security Lists from Resources which is associated with your VCN.
5. Click on Default Security List
6. Check if there is an ingress rule for port 1521 if not then click on Add Ingress Rule.
7. Enter the below details and click on Add Ingress Rules
a) Source CIDR 0.0.0.0/0
b) IP Protocol TCP
c) Destination Port Range 1521
8. Now you can see an ingress rule is added
9. Now Test the connection again.
Check 3. Ensure that your Connectivity Agent is up and running
1. Open you DB VM in Putty
2. Go to the directory where the agent is located.
3. Start you, connectivity agent, using command Java -jar connectivityagent.jar
4. If your Connectivity Agent is down then you will get this message saying Agent started successfully...Now available for new messages…
5. If your agent was up and running then you will get a message saying Agent is already running for this particular instance!!!
Check 4. The DataBase Should be Up and Running
1. Open your DB VM using putty.
2. Switch user to Oracle
3. Login into sqlplus using command sqlplus / as sysdba
4. Type command startup to start the database.
5. If you DB is already up and running then you will get an error message and it rules out this case.
This blog is part of our Oracle Integration Cloud (OIC) blog series stay tuned for our future posts where we will troubleshoot more issues like this.
Conclusion
This blog resolved the cause if Error CLOUD-0005: Unable To Establish Connection by using a systematic checklist to rule out what is causing this error and how to resolve it.
Related Links/References:
- Oracle Integration Cloud (OIC) For Beginners Overview
- Using the Oracle Database Adapter
- [Free Masterclass] Oracle Integration Cloud Services
- 6 Docs Every Oracle Cloud Integrator Must Read
- 25 Free Exam Question Guide [1Z0-1042] Oracle Cloud Platform Application Integration 2019 Associate
Next Task for you:
Click on the image below to download our FREE Guide on “25 Exam Questions for Oracle Integration Cloud Service” as it will help you clear your doubts and concepts about OIC before you start your journey.
The post [Fixed] CLOUD-0005: Unable To Establish Connection appeared first on Oracle Trainings.