标签云
asm恢复 bbed bootstrap$ dul In Memory kcbzib_kcrsds_1 kccpb_sanity_check_2 kfed MySQL恢复 ORA-00312 ORA-00607 ORA-00704 ORA-01110 ORA-01555 ORA-01578 ORA-08103 ORA-600 2131 ORA-600 2662 ORA-600 2663 ORA-600 3020 ORA-600 4000 ORA-600 4137 ORA-600 4193 ORA-600 4194 ORA-600 16703 ORA-600 kcbzib_kcrsds_1 ORA-600 KCLCHKBLK_4 ORA-15042 ORA-15196 ORACLE 12C oracle dul ORACLE PATCH Oracle Recovery Tools oracle加密恢复 oracle勒索 oracle勒索恢复 oracle异常恢复 Oracle 恢复 ORACLE恢复 ORACLE数据库恢复 oracle 比特币 OSD-04016 YOUR FILES ARE ENCRYPTED 勒索恢复 比特币加密文章分类
- Others (2)
- 中间件 (2)
- WebLogic (2)
- 操作系统 (102)
- 数据库 (1,678)
- DB2 (22)
- MySQL (73)
- Oracle (1,540)
- Data Guard (52)
- EXADATA (8)
- GoldenGate (24)
- ORA-xxxxx (159)
- ORACLE 12C (72)
- ORACLE 18C (6)
- ORACLE 19C (14)
- ORACLE 21C (3)
- Oracle 23ai (7)
- Oracle ASM (67)
- Oracle Bug (8)
- Oracle RAC (52)
- Oracle 安全 (6)
- Oracle 开发 (28)
- Oracle 监听 (28)
- Oracle备份恢复 (563)
- Oracle安装升级 (92)
- Oracle性能优化 (62)
- 专题索引 (5)
- 勒索恢复 (79)
- PostgreSQL (18)
- PostgreSQL恢复 (6)
- SQL Server (27)
- SQL Server恢复 (8)
- TimesTen (7)
- 达梦数据库 (2)
- 生活娱乐 (2)
- 至理名言 (11)
- 虚拟化 (2)
- VMware (2)
- 软件开发 (37)
- Asp.Net (9)
- JavaScript (12)
- PHP (2)
- 小工具 (20)
-
最近发表
- .wstop扩展名勒索数据库恢复
- Oracle Recovery Tools工具一键解决ORA-00376 ORA-01110故障(文件offline)
- OGG-02771 Input trail file format RELEASE 19.1 is different from previous trail file form at RELEASE 11.2.
- OGG-02246 Source redo compatibility level 19.0.0 requires trail FORMAT 12.2 or higher
- GoldenGate 19安装和打patch
- dd破坏asm磁盘头恢复
- 删除asmlib磁盘导致磁盘组故障恢复
- Kylin Linux 安装19c
- ORA-600 krse_arc_complete.4
- Oracle 19c 202410补丁(RUs+OJVM)
- ntfs MFT损坏(ntfs文件系统故障)导致oracle异常恢复
- .mkp扩展名oracle数据文件加密恢复
- 清空redo,导致ORA-27048: skgfifi: file header information is invalid
- A_H_README_TO_RECOVER勒索恢复
- 通过alert日志分析客户自行对一个数据库恢复的来龙去脉和点评
- ORA-12514: TNS: 监听进程不能解析在连接描述符中给出的SERVICE_NAME
- ORA-01092 ORA-00604 ORA-01558故障处理
- ORA-65088: database open should be retried
- Oracle 19c异常恢复—ORA-01209/ORA-65088
- ORA-600 16703故障再现
标签归档:SCAN IP
修改11.2 RAC 的 SCAN IP
在某些情况下,由于是C/S架构,从以前的单机系统迁移到现在11.2的rac中,如果修改客户端ip地址工作量太大,而且也不现实,一般建议直接修改scan ip地址和以前一样,从而实现业务直接访问scan ip实现应用不用一个个单独配置.这里通过简单演示,实现修改scan ip的过程(网段不变),主要是把scan名字为scan-xff的ip地址从192.168.137.245修改为192.168.137.248
查看当前scan ip信息
[root-www.xifenfei.com@xff1 ~]# ping xff-scan PING xff-scan (192.168.137.245) 56(84) bytes of data. ^C --- xff-scan ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1738ms [root-www.xifenfei.com@xff1 ~]# crsctl status res -t -------------------------------------------------------------------------------- NAME TARGET STATE SERVER STATE_DETAILS -------------------------------------------------------------------------------- Local Resources -------------------------------------------------------------------------------- ora.DATA.dg ONLINE ONLINE xff1 ONLINE ONLINE xff2 ora.LISTENER.lsnr ONLINE ONLINE xff1 ONLINE ONLINE xff2 ora.asm ONLINE ONLINE xff1 Started ONLINE ONLINE xff2 Started ora.gsd OFFLINE OFFLINE xff1 OFFLINE OFFLINE xff2 ora.net1.network ONLINE ONLINE xff1 ONLINE ONLINE xff2 ora.ons ONLINE ONLINE xff1 ONLINE ONLINE xff2 -------------------------------------------------------------------------------- Cluster Resources -------------------------------------------------------------------------------- ora.LISTENER_SCAN1.lsnr 1 ONLINE ONLINE xff1 ora.cvu 1 ONLINE ONLINE xff1 ora.oc4j 1 ONLINE ONLINE xff1 ora.scan1.vip 1 ONLINE ONLINE xff1 ora.xff1.vip 1 ONLINE ONLINE xff1 ora.xff2.vip 1 ONLINE ONLINE xff2 ora.xffdb.db 1 ONLINE ONLINE xff1 Open 2 ONLINE ONLINE xff2 Open [root-www.xifenfei.com@xff1 ~]# srvctl config scan SCAN name: xff-scan, Network: 1/192.168.137.0/255.255.255.0/eth0 SCAN VIP name: scan1, IP: /xff-scan/192.168.137.245
修改scan ip
[root-www.xifenfei.com@xff1 ~]# srvctl stop scan_listener [root-www.xifenfei.com@xff1 ~]# srvctl stop scan [root-www.xifenfei.com@xff1 ~]# crsctl status res -t -------------------------------------------------------------------------------- NAME TARGET STATE SERVER STATE_DETAILS -------------------------------------------------------------------------------- Local Resources -------------------------------------------------------------------------------- ora.DATA.dg ONLINE ONLINE xff1 ONLINE ONLINE xff2 ora.LISTENER.lsnr ONLINE ONLINE xff1 ONLINE ONLINE xff2 ora.asm ONLINE ONLINE xff1 Started ONLINE ONLINE xff2 Started ora.gsd OFFLINE OFFLINE xff1 OFFLINE OFFLINE xff2 ora.net1.network ONLINE ONLINE xff1 ONLINE ONLINE xff2 ora.ons ONLINE ONLINE xff1 ONLINE ONLINE xff2 -------------------------------------------------------------------------------- Cluster Resources -------------------------------------------------------------------------------- ora.LISTENER_SCAN1.lsnr 1 OFFLINE OFFLINE ora.cvu 1 ONLINE ONLINE xff1 ora.oc4j 1 ONLINE ONLINE xff1 ora.scan1.vip 1 OFFLINE OFFLINE ora.xff1.vip 1 ONLINE ONLINE xff1 ora.xff2.vip 1 ONLINE ONLINE xff2 ora.xffdb.db 1 ONLINE ONLINE xff1 Open 2 ONLINE ONLINE xff2 Open --如果是dns,注意修改dns中scan ip信息,如果是hosts文件注意多个节点都需要修改 [root-www.xifenfei.com@xff1 ~]# ping xff-scan PING xff-scan (192.168.137.248) 56(84) bytes of data. ^C --- xff-scan ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1738ms [root-www.xifenfei.com@xff1 ~]# srvctl modify scan -n xff-scan [root-www.xifenfei.com@xff1 ~]# srvctl config scan SCAN name: xff-scan, Network: 1/192.168.137.0/255.255.255.0/eth0 SCAN VIP name: scan1, IP: /xff-scan/192.168.137.248 [root-www.xifenfei.com@xff1 ~]# srvctl start scan [root-www.xifenfei.com@xff1 ~]# srvctl start scan_listener [root-www.xifenfei.com@xff1 ~]# crsctl status res -t -------------------------------------------------------------------------------- NAME TARGET STATE SERVER STATE_DETAILS -------------------------------------------------------------------------------- Local Resources -------------------------------------------------------------------------------- ora.DATA.dg ONLINE ONLINE xff1 ONLINE ONLINE xff2 ora.LISTENER.lsnr ONLINE ONLINE xff1 ONLINE ONLINE xff2 ora.asm ONLINE ONLINE xff1 Started ONLINE ONLINE xff2 Started ora.gsd OFFLINE OFFLINE xff1 OFFLINE OFFLINE xff2 ora.net1.network ONLINE ONLINE xff1 ONLINE ONLINE xff2 ora.ons ONLINE ONLINE xff1 ONLINE ONLINE xff2 -------------------------------------------------------------------------------- Cluster Resources -------------------------------------------------------------------------------- ora.LISTENER_SCAN1.lsnr 1 ONLINE ONLINE xff2 ora.cvu 1 ONLINE ONLINE xff1 ora.oc4j 1 ONLINE ONLINE xff1 ora.scan1.vip 1 ONLINE ONLINE xff2 ora.xff1.vip 1 ONLINE ONLINE xff1 ora.xff2.vip 1 ONLINE ONLINE xff2 ora.xffdb.db 1 ONLINE ONLINE xff1 Open 2 ONLINE ONLINE xff2 Open
查看修改后的scan listener状态
xff2:/home/grid> lsnrctl status LISTENER_SCAN1 LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 12-MAR-2016 17:02:32 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 12-MAR-2016 16:59:05 Uptime 0 days 0 hr. 3 min. 27 sec Trace Level off Security ON: Local OS Authentication SNMP OFF Listener Parameter File /u01/oracle/app/grid/network/admin/listener.ora Listener Log File /u01/oracle/app/grid/log/diag/tnslsnr/xff2/listener_scan1/alert/log.xml Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER_SCAN1))) (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.137.248)(PORT=1521))) The listener supports no services The command completed successfully [root-www.xifenfei.com@xff2 ~]# su - oracle xff2:/home/oracle> sqlplus / as sysdba SQL*Plus: Release 11.2.0.4.0 Production on Sat Mar 12 17:01:11 2016 Copyright (c) 1982, 2013, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP, Data Mining and Real Application Testing options SQL> alter system register; System altered. SQL> / System altered. SQL> exit Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP, Data Mining and Real Application Testing options xff2:/home/oracle> exit logout [root-www.xifenfei.com@xff2 ~]# su - grid xff2:/home/grid> lsnrctl status LISTENER_SCAN1 LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 12-MAR-2016 17:01:24 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 12-MAR-2016 16:59:05 Uptime 0 days 0 hr. 2 min. 18 sec Trace Level off Security ON: Local OS Authentication SNMP OFF Listener Parameter File /u01/oracle/app/grid/network/admin/listener.ora Listener Log File /u01/oracle/app/grid/log/diag/tnslsnr/xff2/listener_scan1/alert/log.xml Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER_SCAN1))) (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.137.248)(PORT=1521))) The listener supports no services The command completed successfully
这里发现修改scan ip之后,scan listener没有正确或者到监听的动态注册信息,哪怕人工执行了alter system register;也不行.
通过重启数据库,解决修改scan ip后的动态监听注册问题
[root-www.xifenfei.com@xff2 ~]# su - oracle xff2:/home/oracle> srvctl stop database -d xffdb xff2:/home/oracle> srvctl start database -d xffdb xff2:/home/oracle> exit logout [root-www.xifenfei.com@xff2 ~]# su - grid xff2:/home/grid> lsnrctl status LISTENER_SCAN1 LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 12-MAR-2016 17:06:17 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 12-MAR-2016 16:59:05 Uptime 0 days 0 hr. 7 min. 11 sec Trace Level off Security ON: Local OS Authentication SNMP OFF Listener Parameter File /u01/oracle/app/grid/network/admin/listener.ora Listener Log File /u01/oracle/app/grid/log/diag/tnslsnr/xff2/listener_scan1/alert/log.xml Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER_SCAN1))) (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.137.248)(PORT=1521))) Services Summary... Service "xffdb" has 2 instance(s). Instance "xffdb1", status READY, has 1 handler(s) for this service... Instance "xffdb2", status READY, has 1 handler(s) for this service... Service "xffdbXDB" has 2 instance(s). Instance "xffdb1", status READY, has 1 handler(s) for this service... Instance "xffdb2", status READY, has 1 handler(s) for this service... The command completed successfully