Oracle 11G 修改scan_ip
1.srvctl config scan 檢視當前 vip 設定
p570a@root# ./srvctl config scan
SCAN name: 192.168.128.100, Network: 1/192.168.128.0/255.255.255.0/en0
SCAN VIP name: scan1, IP: /scan-vip/192.168.128.100
2. 用 root 使用者停止 scan_listener 和 sacn vip
$GRID_HOME/bin/ srvctl stop scan_listener
$GRID_HOME/bin /srvctl stop scan
$GRID_HOME/bin/ srvctl status scan
SCAN VIP scan1 is enabled
SCAN VIP scan1 is not running
$GRID_HOME/bin/ srvctl status scan_listener
SCAN Listener LISTENER_SCAN1 is enabled
SCAN listener LISTENER_SCAN1 is not running
兩個節點修改 /etc/hosts 對應的 scan-ip
3. 用 root 使用者修改 scan vip
$GRID_HOME/bin/srvctl modify scan -n scan-nam(/etc/hosts 定義的 scan ip 的 alias)
e.g. $GRID_HOME/bin /srvctl modify scan –n wstgov-scan
4. 檢查是否修改成功
p570a@root# ./srvctl config scan
SCAN name: 10.76.31.111 , Network: 1/10.76.31.0/255.255.255.0/en0
SCAN VIP name: scan1, IP: /scan-vip/10.76.31.111
5. 啟動 scan 和 scan_listener
$GRID_HOME/bin/ srvctl start scan
$GRID_HOME/bin/ srvctl start scan_listener
[grid@rac2 ~]$ lsnrctl status listener_scan1
LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 09-MAR-2018 16:22:04
Copyright (c) 1991, 2013, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1)))
STATUS of the LISTENER
------------------------
Alias LISTENER_SCAN1
Version TNSLSNR for Linux: Version 11.2.0.4.0 - Production
Start Date 09-MAR-2018 16:14:50
Uptime 0 days 0 hr. 7 min. 13 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /oracle/grid/crs_1/network/admin/listener.ora
Listener Log File /oracle/grid/crs_1/log/diag/tnslsnr/rac2/listener_scan1/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER_SCAN1)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST= 192.168.56.56 )(PORT=1521)))
The listener supports no services
The command completed successfully
6. 登入資料庫
show parameter remote;
Alter system set REMOTE_LISTENER='rac-scan:1521' scope=both sid='*';
alter system register;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/31547506/viewspace-2926350/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle 11G DBMS_REDEFINITION修改表資料型別Oracle資料型別
- oracle 11g開啟歸檔模式及修改歸檔目錄Oracle模式
- Oracle之11g DataGuardOracle
- Oracle 11G 安裝文件Oracle
- benchmark 壓測Oracle 11gOracle
- sysbench壓測Oracle 11gOracle
- [20201106]11g修改表無需修改許可權.txt
- Oracle 11G 安裝 bbed 工具Oracle
- oracle 11g data guard維護Oracle
- oracle 11g OEM在哪裡找到???Oracle
- oracle 11g 常用命令Oracle
- Oracle 11g RAC Silent Install For NFSOracleNFS
- Oracle 11g刪除庫重建Oracle
- Oracle 11g的使用者密碼預設為180天過期的修改方法Oracle密碼
- Oracle 11G RAC叢集安裝(3)——安裝OracleOracle
- Oracle Linux 6.7 靜預設安裝Oracle 11gOracleLinux
- Oracle 11g RAC 監聽日常管理Oracle
- Oracle 11g 052題庫解析1Oracle
- oracle 11g datagurd主從切換Oracle
- ORACLE10G升級11GOracle
- Oracle 11g RAC手動新增serviceOracle
- Oracle 11g dg broker自動failoverOracleAI
- Automatic Diagnostic Repository (ADR) with Oracle Net for 11gOracle
- Oracle 11g關閉開啟AWROracle
- oracle 11g 系統審計功能Oracle
- Oracle:Redhat 7 + Oracle RAC 11g 安裝 bug 總結OracleRedhat
- Oracle修改時區Oracle
- oracle nid修改dbnameOracle
- Oracle 11g 重新建立控制檔案Oracle
- Oracle Data Pump 11G 資料泵元件Oracle元件
- Oracle 11g dataguard 配置簡約步驟Oracle
- oracle 11g自動記憶體管理Oracle記憶體
- Oracle 11g RAC重新新增節點Oracle
- Oracle 11g升級到12COracle
- Oracle GoldenGate 11g官方文件Administrator’s GuideOracleGoGUIIDE
- Oracle 11g DG新特性--Automatic block repairOracleBloCAI
- Oracle 11g單主搭建物理DGOracle
- oracle 11g dg broker開啟和配置Oracle