Oracle SCAN监听配置静态注册

SCAN监听的配置文件位置:

[grid@rac19cn1 ~]$ cd $ORACLE_HOME/network/admin
[grid@rac19cn1 admin]$ ll listener.ora
-rw-r--r-- 1 grid oinstall 1332 Sep 10 15:29 listener.ora

添加内容如下:

LISTENER_SCAN1=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1))))   
//此句文件中默认会存在,如存在则不需要添加
//下面内容复制粘贴

SID_LIST_LISTENER_SCAN1 =
             (SID_LIST =
               (SID_DESC=
                  (GLOBAL_DBNAME=ora19c)
                  (ORACLE_HOME=/oracle/app/product/193000/db_1)
                  (SID_NAME=ora19c1)
                )
               (SID_DESC=
                  (GLOBAL_DBNAME=ora19c)
                  (ORACLE_HOME=/oracle/app/product/193000/db_1)
                  (SID_NAME=ora19c2)
                )
             )

以上内容直接复制,以下内容需修改

GLOBAL_DBNAME=service_name=db_name+db_domain
SID_NAME=instance_name 

重新加载SCAN监听器:

lsnrctl reload LIST_LISTENER_SCAN1

查看SCAN监听状态:

Service "ora19c" has 4 instance(s).
  Instance "ora19c1", status UNKNOWN, has 1 handler(s) for this service...
  Instance "ora19c1", status READY, has 1 handler(s) for this service...
  Instance "ora19c2", status UNKNOWN, has 1 handler(s) for this service...
  Instance "ora19c2", status READY, has 1 handler(s) for this service...

SCAN监听静态注册配置成功。

你可能感兴趣的:(oracle,数据库,RAC,linux)