时间:2021-07-01 10:21:17 帮助过:24人阅读
在listener.ora文件中指定监听的实例名和修改ip地址:
查看实例名:[localhost$] echo $ORACLE_SID
LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521)) (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.193.130)(PORT = 1521)) ) ) ADR_BASE_LISTENER = /home/oracle/app SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (GLOBAL_DBNAME = orcl) (ORACLE_HOME = /home/oracle/app/oracle/product/11.2.0/dbhome_1) (SID_NAME = orcl) ) )
将服务器的tnsnames.ora的内容拷贝到客户端的tnsnames.ora记得修改ip
ORCL = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.193.130)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl) ) )
oracle监听配置
标签:ip地址 div host ora protoc 文件中 desc 实例名 tcp