I installed the 12c DB on windows with a couple of PDB's. I created my CDB named 'PSPRODDB'. I want to confirm the jdbc connection info needed for my PDB (named 'test1') as i saw some things stating you needed a '/'
My tnsnames info is:
# tnsnames.ora Network Configuration File: Z:\oracle\product\12.1.0\dbhome_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
PSPRODDB =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = mymachine.local)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = PSPRODDB)
)
)
TEST1 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = mymachine.local)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = TEST1)
)
)
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
)
)
LISTENER_PSPRODDB =
(ADDRESS = (PROTOCOL = TCP)(HOST = mymachine.local)(PORT = 1521))
I can connect to it using SQL plus with connect myuser/mypswd@test1
Is the JDB connect URL to my 'test1' PDB this?
com.myco.database.db.connection.url = jdbc:oracle:thin:@mymachine:1521:/test1
thanks