IPv6 Formatting for JDBC and SQLPlus
SQL> connect user/pass@172.23.10.40:1521/PYTHIANDB Connected.Connect on IPV6:
SQL> connect user/pass@[1:95e05a:g0d:da7a:2020]:1521/PYTHIANDB Connected.JDBC (thin) IPV4:
url="jdbc:oracle:thin:@(DESCRIPTION= (LOAD_BALANCE=on) (ADDRESS_LIST= (ADDRESS=(PROTOCOL=TCP)(HOST=172.23.10.40) (PORT=1521)) (ADDRESS=(PROTOCOL=TCP)(HOST=172.23.10.41)(PORT=1521))) (CONNECT_DATA=(SERVICE_NAME=PYTHIANDB)))"JDBC (OCI) IPV4:
url="jdbc:oracle:oci:@(DESCRIPTION= (ADDRESS= (PROTOCOL=TCP)(HOST=172.23.10.40)(PORT=1521)) (CONNECT_DATA=(SERVICE_NAME=PYTHIANDB)))"JDBC (thin) IPV6:
url="jdbc:oracle:thin:@(DESCRIPTION= (LOAD_BALANCE=on) (ADDRESS_LIST= (ADDRESS=(PROTOCOL=TCP)(HOST=[1:95e05a:g0d:da7a:2020]) (PORT=1521)) (ADDRESS=(PROTOCOL=TCP)(HOST=[1:95e05a:g0d:da7a:2021])(PORT=1521))) (CONNECT_DATA=(SERVICE_NAME=PYTHIANDB)))"JDBC (OCI) IPV6:
url="jdbc:oracle:oci:@(DESCRIPTION= (ADDRESS= (PROTOCOL=TCP)(HOST=[1:95e05a:g0d:da7a:2020])(PORT=1521)) (CONNECT_DATA=(SERVICE_NAME=PYTHIANDB)))"As you might suspect, the same thing applies to your TNSNAMES entries. Also, according to this, you even use it for your LISTENER:
LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = [1:95e05a:g0d:da7a:2020])(PORT =1521)) ) )Hope this helps!
On this page
Share this
Share this
More resources
Learn more about Pythian by reading the following blogs and articles.
Management and Troubleshooting Features: Data Guard Command-Line Interface (DGMGRL) 19c
Management and Troubleshooting Features: Data Guard Command-Line Interface (DGMGRL) 19c
Oct 1, 2020 12:00:00 AM
7
min read
Setting up Virtual Hosts for Database and Applications Tiers in 11i
Setting up Virtual Hosts for Database and Applications Tiers in 11i
May 19, 2009 12:00:00 AM
2
min read
Part Four: Deploying High Availability Applications in Oracle Cloud Infrastructure—Oracle Enterprise Manager 13.5 Setup

Part Four: Deploying High Availability Applications in Oracle Cloud Infrastructure—Oracle Enterprise Manager 13.5 Setup
Oct 26, 2021 12:00:00 AM
17
min read
Ready to unlock value from your data?
With Pythian, you can accomplish your data transformation goals and more.