My procedure: 1. checking container , 2. altering container n unlocking
I made the following addition to tnsnames.ora
PDBORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = pdborcl)
)
)
I have unlocked the hr account and I mention pdborcl
as service name while making the connection.
my listener.ora
# listener.ora Network Configuration File: C:\Users\SURBHI\Documents\product\12.1.0\dbhome_1\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\Users\SURBHI\Documents\product\12.1.0\dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:C:\Users\SURBHI\Documents\product\12.1.0\dbhome_1\bin\oraclr1 2.dll")
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
)
I have tried several things like using tnsping pdborcl on command prompt which gives OK result.
But I am not getting positive result till now.