一、查看配置
oracle-db1-network-admin-listener.ora和tnsnames.ora
1.tnsnames.ora
数据库名称 = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 主机名称,例如,PC02320U.com.cn)(PORT = 1521(端口名))) (CONNECT_DATA = (SERVER = SHARED) (SERVICE_NAME = 数据库全局域名) ) )
2.listener.ora
(SID_DESC = (GLOBAL_DBNAME = 数据库名称) (ORACLE_HOME = D:\oracle\product\10.1.0\db_1(文件位置)) (SID_NAME =数据库名称 ) ) LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST =本机域名)(PORT = 端口号)) ) ) )
二、重启服务
计算机管理-服务与应用程序-服务-重启对应的服务
三、重启TNS
和上述方法类似
时间: 2024-11-01 11:53:14