通过案例学Oracle之--一次AIX rac误操作引起的“血案”
2015-03-31 12:07
417 查看
通过案例学Oracle之--一次AIX rac误操作引起的“血案”系统环境:操作系统: AIX 5300-09集群软件: CRS 10.2.0.1数据库: Oracle 10.2.0.1
[b]本案例是用于基于VG Concurrent 的共享存储,通过HACMP 实现卷组的并发[/b]
案例分析:
一、错误现象:
1、Oracle 用户无法访问设备文件
2、CRS server启动失败
[oracle@aix211 ~]$ls -l /dev
Sep 16 11:48:57.011 | ERR | failed to connect to daemon, errno(2)
Stopping resources.
Error while stopping resources. Possible cause: CRSD is down.
Stopping CSSD.
Unable to communicate with the CSS daemon.
Shutdown has begun. The daemons should exit soon.
Checking to see if Oracle CRS stack is down...
Oracle CRS stack is not running.
Oracle CRS stack is down now.
Removing script for Oracle Cluster Ready services
Updating ocr file for downgrade
Cleaning up SCR settings in '/etc/oracle/scls_scr'WARNING: directory '/u01' is not owned by root
Checking to see if Oracle CRS stack is already configured
Setting the permissions on OCR backup directory
Setting up NS directories
Oracle Cluster Registry configuration upgraded successfully
WARNING: directory '/u01' is not owned by root
clscfg: EXISTING configuration version 3 detected.
clscfg: version 3 is 10G Release 2.
Successfully accumulated necessary OCR keys.
Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.
node <nodenumber>: <nodename> <private interconnect name> <hostname>
node 1: aix211 aix211-priv aix211
node 2: aix212 aix212-priv aix212
clscfg: Arguments check out successfully.
NO KEYS WERE WRITTEN. Supply -force parameter to override.
-force is destructive and will destroy any previous cluster
configuration.
Oracle Cluster Registry for cluster has already been initialized
Startup will be queued to init within 30 seconds.
Adding daemons to inittab
Adding daemons to inittab
Expecting the CRS daemons to be up within 600 seconds.
CSS is active on these nodes.
aix211
aix212
CSS is active on all nodes.
Waiting for the Oracle CRSD and EVMD to start
Oracle CRS stack installed and running under init(1M)
Running vipca(silent) for configuring nodeapps
The given interface(s), "en0" is not public. Public interfaces should be used to configure virtual IPs.[root@aix212@ /]#crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora....11.lsnr application ONLINE ONLINE aix211
ora.aix211.gsd application ONLINE ONLINE aix211
ora.aix211.ons application ONLINE ONLINE aix211
ora.aix211.vip application ONLINE ONLINE aix211
ora....12.lsnr application ONLINE ONLINE aix212
ora.aix212.gsd application ONLINE ONLINE aix212
ora.aix212.ons application ONLINE ONLINE aix212
ora.aix212.vip application ONLINE ONLINE aix212[oracle@aix212@ ~]$crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora....11.lsnr application ONLINE ONLINE aix211
ora.aix211.gsd application ONLINE ONLINE aix211
ora.aix211.ons application ONLINE ONLINE aix211
ora.aix211.vip application ONLINE ONLINE aix211
ora....12.lsnr application ONLINE ONLINE aix212
ora.aix212.gsd application ONLINE ONLINE aix212
ora.aix212.ons application ONLINE ONLINE aix212
ora.aix212.vip application ONLINE ONLINE aix212
ora.prod.db application OFFLINE OFFLINE[oracle@aix212@ ~]$sqlplus '/as sysdba'
SQL*Plus: Release 10.2.0.1.0 - Production on Tue Sep 16 12:08:10 2014
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area 1258291200 bytes
Fixed Size 2020552 bytes
Variable Size 352324408 bytes
Database Buffers 889192448 bytes
Redo Buffers 14753792 bytes
Database mounted.
Database opened.[code][oracle@aix211 aix211]$sqlplus '/as sysdba'
SQL*Plus: Release 10.2.0.1.0 - Production on Tue Sep 16 12:09:37 2014
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area 1258291200 bytes
Fixed Size 2020552 bytes
Variable Size 335547192 bytes
Database Buffers 905969664 bytes
Redo Buffers 14753792 bytes
Database mounted.
Database opened.查看crs启动resource信息:[oracle@aix211 aix211]$crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora....11.lsnr application ONLINE ONLINE aix211
ora.aix211.gsd application ONLINE ONLINE aix211
ora.aix211.ons application ONLINE ONLINE aix211
ora.aix211.vip application ONLINE ONLINE aix211
ora....12.lsnr application ONLINE ONLINE aix212
ora.aix212.gsd application ONLINE ONLINE aix212
ora.aix212.ons application ONLINE ONLINE aix212
ora.aix212.vip application ONLINE ONLINE aix212
ora.prod.db application ONLINE ONLINE aix211
ora....d1.inst application OFFLINE OFFLINE
ora....d2.inst application ONLINE ONLINE aix212
[b]本案例是用于基于VG Concurrent 的共享存储,通过HACMP 实现卷组的并发[/b]
案例分析:
一、错误现象:
1、Oracle 用户无法访问设备文件
2、CRS server启动失败
[oracle@aix211 ~]$ls -l /dev
#su - oracleShutting down Oracle Cluster Ready Services (CRS):
[oracle@aix211 ~]$ls -l /dev
total 24
crw-rw---- 1 root system 10, 0 Aug 29 2013 IPL_rootvg
srwxrwxrwx 1 root system 0 Sep 16 10:22 SRC
brw-rw---- 1 oracle dba 88, 9 Sep 11 12:15 control1_1
brw-rw---- 1 oracle dba 88, 10 Sep 11 12:15 control2_2
brw-rw---- 1 oracle dba 88, 11 Sep 11 12:16 control3_3
crw-rw---- 1 root system 88, 0 Sep 11 12:08 datavg
Sep 16 11:48:57.011 | ERR | failed to connect to daemon, errno(2)
Stopping resources.
Error while stopping resources. Possible cause: CRSD is down.
Stopping CSSD.
Unable to communicate with the CSS daemon.
Shutdown has begun. The daemons should exit soon.
Checking to see if Oracle CRS stack is down...
Oracle CRS stack is not running.
Oracle CRS stack is down now.
Removing script for Oracle Cluster Ready services
Updating ocr file for downgrade
Cleaning up SCR settings in '/etc/oracle/scls_scr'WARNING: directory '/u01' is not owned by root
Checking to see if Oracle CRS stack is already configured
Setting the permissions on OCR backup directory
Setting up NS directories
Oracle Cluster Registry configuration upgraded successfully
WARNING: directory '/u01' is not owned by root
clscfg: EXISTING configuration version 3 detected.
clscfg: version 3 is 10G Release 2.
Successfully accumulated necessary OCR keys.
Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.
node <nodenumber>: <nodename> <private interconnect name> <hostname>
node 1: aix211 aix211-priv aix211
node 2: aix212 aix212-priv aix212
clscfg: Arguments check out successfully.
NO KEYS WERE WRITTEN. Supply -force parameter to override.
-force is destructive and will destroy any previous cluster
configuration.
Oracle Cluster Registry for cluster has already been initialized
Startup will be queued to init within 30 seconds.
Adding daemons to inittab
Adding daemons to inittab
Expecting the CRS daemons to be up within 600 seconds.
CSS is active on these nodes.
aix211
aix212
CSS is active on all nodes.
Waiting for the Oracle CRSD and EVMD to start
Oracle CRS stack installed and running under init(1M)
Running vipca(silent) for configuring nodeapps
The given interface(s), "en0" is not public. Public interfaces should be used to configure virtual IPs.[root@aix212@ /]#crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora....11.lsnr application ONLINE ONLINE aix211
ora.aix211.gsd application ONLINE ONLINE aix211
ora.aix211.ons application ONLINE ONLINE aix211
ora.aix211.vip application ONLINE ONLINE aix211
ora....12.lsnr application ONLINE ONLINE aix212
ora.aix212.gsd application ONLINE ONLINE aix212
ora.aix212.ons application ONLINE ONLINE aix212
ora.aix212.vip application ONLINE ONLINE aix212[oracle@aix212@ ~]$crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora....11.lsnr application ONLINE ONLINE aix211
ora.aix211.gsd application ONLINE ONLINE aix211
ora.aix211.ons application ONLINE ONLINE aix211
ora.aix211.vip application ONLINE ONLINE aix211
ora....12.lsnr application ONLINE ONLINE aix212
ora.aix212.gsd application ONLINE ONLINE aix212
ora.aix212.ons application ONLINE ONLINE aix212
ora.aix212.vip application ONLINE ONLINE aix212
ora.prod.db application OFFLINE OFFLINE[oracle@aix212@ ~]$sqlplus '/as sysdba'
SQL*Plus: Release 10.2.0.1.0 - Production on Tue Sep 16 12:08:10 2014
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area 1258291200 bytes
Fixed Size 2020552 bytes
Variable Size 352324408 bytes
Database Buffers 889192448 bytes
Redo Buffers 14753792 bytes
Database mounted.
Database opened.[code][oracle@aix211 aix211]$sqlplus '/as sysdba'
SQL*Plus: Release 10.2.0.1.0 - Production on Tue Sep 16 12:09:37 2014
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area 1258291200 bytes
Fixed Size 2020552 bytes
Variable Size 335547192 bytes
Database Buffers 905969664 bytes
Redo Buffers 14753792 bytes
Database mounted.
Database opened.查看crs启动resource信息:[oracle@aix211 aix211]$crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora....11.lsnr application ONLINE ONLINE aix211
ora.aix211.gsd application ONLINE ONLINE aix211
ora.aix211.ons application ONLINE ONLINE aix211
ora.aix211.vip application ONLINE ONLINE aix211
ora....12.lsnr application ONLINE ONLINE aix212
ora.aix212.gsd application ONLINE ONLINE aix212
ora.aix212.ons application ONLINE ONLINE aix212
ora.aix212.vip application ONLINE ONLINE aix212
ora.prod.db application ONLINE ONLINE aix211
ora....d1.inst application OFFLINE OFFLINE
ora....d2.inst application ONLINE ONLINE aix212
相关文章推荐
- 通过案例学Oracle之--一次AIX rac误操作引起的“血案”
- Oracle通过DBLink操作Excel
- 在Oracle中不通过存储过程一次执行多条SQL语句Oracle PL/SQL
- ABAP--如何通过Oracle游标直接操作Oracle的系统表
- 程序使用事务操作oracle多表的方法案例
- ABAP--如何通过Oracle游标直接操作Oracle的系统表
- C#中通过OleDb操作Oracle Blob数据类型
- java中通过调用oracle的function进行数据库操作
- 【oracle透明网关】一次Oracle通过透明网关连接DB2的测试
- 通过定时reload回发某页面请求 避免因用户一直不操作而引起的Session过期
- 一次误操作引起的分区表恢复记 推荐
- 在Oracle中不通过存储过程一次执行多条SQL语句Oracle PL/SQL
- 一次按操作规程操作失败引起的思考
- 一次按操作规程操作失败引起的思考
- 通过定时reload回发某页面请求 避免因用户一直不操作而引起的Session过期
- 通过JDBC 操作 ORACLE BLOB,CLOB字段类型
- SQL0668N 原因码为 "1",所以不允许操作 SQLSTATE=57016 ORACLE一次失败的导入到DB2
- 一次通过 Oracle8i 入侵系统之旅
- 在Oracle中不通过存储过程一次执行多条SQL语句Oracle PL/SQL
- 通过hibernate操作oracle的clob类型数据.doc