admin 管理员组

文章数量: 887021


2023年12月23日发(作者:soapclient卡住php)

PDB2 = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = omain) ) )vim /opt/oracle/product/12.2.0.1.0/dbhome_1/network/admin/增加 SID_LIST_LISTENER 配置,修改后的内容如下:[oracle@localhost admin]$ cat

# Network Configuration File: /opt/oracle/product/12.2.0.1.0/dbhome_1/network/admin/# Generated by Oracle configuration ER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521)) (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521)) ) )SID_LIST_LISTENER =(SID_LIST = (SID_DESC = (GLOBAL_DBNAME = ORCL) #cdb db_name (SID_NAME = ORCL) ) (SID_DESC = (GLOBAL_DBNAME = ORCLPDB) #pdb db_name (SID_NAME = ORCL) ) (SID_DESC = (GLOBAL_DBNAME = PDB2) #pdb db_name (SID_NAME = PDB2) ))重启监听后,再tnsping测试,全部OK:[oracle@localhost admin]$ tnsping orclTNS Ping Utility for Linux: Version 12.2.0.1.0 - Production on 21-NOV-2020 21:29:36Copyright (c) 1997, 2016, Oracle. All rights parameter files:/opt/oracle/product/12.2.0.1.0/dbhome_1/network/admin/

Used TNSNAMES adapter to resolve the aliasAttempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))(CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = omain)))OK (0 msec)[oracle@localhost admin]$

[oracle@localhost admin]$ tnsping orclpdbTNS Ping Utility for Linux: Version 12.2.0.1.0 - Production on 21-NOV-2020 21:29:42Copyright (c) 1997, 2016, Oracle. All rights parameter files:/opt/oracle/product/12.2.0.1.0/dbhome_1/network/admin/d TNSNAMES adapter to resolve the aliasAttempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))(CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = omain)))OK (0 msec)[oracle@localhost admin]$

[oracle@localhost admin]$ tnsping pdb2TNS Ping Utility for Linux: Version 12.2.0.1.0 - Production on 21-NOV-2020 21:29:46Copyright (c) 1997, 2016, Oracle. All rights parameter files:/opt/oracle/product/12.2.0.1.0/dbhome_1/network/admin/d TNSNAMES adapter to resolve the aliasAttempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))(CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = omain)))OK (10 msec)[oracle@localhost admin]$

PDB2连接测试OK:IP:1521ServieNAme: PDB2TEST/1q2w3eORCLPDB连接测试OK:IP:1521ServieNAme: ORCLPDBTEST/1q2w3eCDB连接测试OK:IP:1521ServieNAme: ORCLC##TEST/1q2w3e


本文标签: 测试 修改 连接 重启 监听