With autonomous database you can choose between different network access types:
When you choose a deployment with private endpoint , here is how you can connect to your ADB instance from your local machine by using Bastion Service and port forwarding sessions.
1Create a network security group, allow ingress traffic to ports 1521 (TLS), 1522 (mTLS) and 443 (Oracle APEX, Database Actions, and Oracle REST Data Services) from your private subnet CIDR where your bastion host will be, allow egress traffic as well. Attach it to your database.They should look similar to this:
2Create a bastion in the same subnet as your database private endpoint. Then create a port forwarding session using your database private IP and port
3Copy SSH command, choose a local port and start port forwarding session. I generally use 10522, to avoid conflict.
4Download ADB wallet, unzip it. Add an entry to tnsnames.ora file similar to below one, pointing to local port which will be forwarded to private endpoint by bastion host. Then zip the folder to use with sql developer.
5Use your choice of database client to connect. With sqldeveloper it should look something like this:
No comments:
Post a Comment