我的程序: 1. checking container, 2. altering container n unlocking
我在tnsnames.ora
中添加了以下内容PDBORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = pdborcl)
)
)
我已解锁hr帐户,并在建立连接时提及pdborcl
作为服务名称。
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))
)
)
我尝试过几个例子,比如在命令提示符下使用tnsping pdborcl,这样可以得到OK结果。
但到目前为止我还没有得到积极的结果。