我在 tnsnames.ora 中添加了以下内容
PDBORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = pdborcl)
)
)
我已经解锁了 hr 帐户,并pdborcl
在建立连接时提到了服务名称。
我的听众.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 的结果。
但直到现在我还没有得到积极的结果。