1,在启库的时候报ORA-12432: LBAC error: zllegnp:OCIStmtExecute
Database Characterset is AL32UTF8
Opening with internal Resource Manager plan
Thu Feb 21 09:45:52 EST 2013
Errors in file /paic/app/oracle/admin/vmdev/udump/vmdev_ora_5885.trc:
ORA-12432: LBAC error: zllegnp:OCIStmtExecute
Error 12432 happened during db open, shutting down database
USER: terminating instance due to error 12432
Instance terminated by USER, pid = 5885
ORA-1092 signalled during: ALTER DATABASE OPEN...
Trace文件内容:
[vm10g@Test-Dev9-026_OssDB bdump]$ more /paic/app/oracle/admin/vmdev/udump/vmdev_ora_5885.trc
/paic/app/oracle/admin/vmdev/udump/vmdev_ora_5885.trc
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORACLE_HOME = /paic/app/oracle/product
System name: Linux
Node name: Test-Dev9-026_OssDB
Release: 2.6.18-308.el5
Version: #1 SMP Fri Jan 27 17:17:51 EST 2012
Machine: x86_64
Instance name: vmdev
Redo thread mounted by this instance: 1
Oracle process number: 12
Unix process pid: 5885, image: oracle@Test-Dev9-026_OssDB (TNS V1-V3)
Warning: keltnfy call to ldmInit failed with error 46
*** ACTION NAME:() 2013-02-21 09:45:52.098
*** MODULE NAME:(sqlplus@Test-Dev9-026_OssDB (TNS V1-V3)) 2013-02-21 09:45:52.09
8
*** SERVICE NAME:() 2013-02-21 09:45:52.098
*** SESSION ID:(324.3) 2013-02-21 09:45:52.098
Thread 1 checkpoint: logseq 78, block 674, scn 317783
start recovery at logseq 78, block 674, scn 317783
----- Redo read statistics for thread 1 -----
Read rate (ASYNC): 28Kb in 0.02s => 1.39 Mb/sec
Total physical reads: 4096Kb
Longest record: 0Kb, moves: 0/75 (0%)
Longest LWN: 3Kb, moves: 0/26 (0%), moved: 0Mb
Last redo scn: 0x0000.0004da4d (318029)
----------------------------------------------
----- Recovery Hash Table Statistics ---------
Hash table buckets = 32768
Longest hash chain = 1
Average hash chain = 28/28 = 1.0
Max compares per lookup = 1
Avg compares per lookup = 105/133 = 0.8
----------------------------------------------
*** 2013-02-21 09:45:52.122
KCRA: start recovery claims for 28 data blocks
*** 2013-02-21 09:45:52.123
KCRA: blocks processed = 28/28, claimed = 28, eliminated = 0
*** 2013-02-21 09:45:52.123
Recovery of Online Redo Log: Thread 1 Group 3 Seq 78 Reading mem 0
*** 2013-02-21 09:45:52.124
Completed redo application
*** 2013-02-21 09:45:52.135
Completed recovery checkpoint
----- Recovery Hash Table Statistics ---------
Hash table buckets = 32768
Longest hash chain = 1
Average hash chain = 28/28 = 1.0
Max compares per lookup = 1
Avg compares per lookup = 133/133 = 1.0
----------------------------------------------
DBRM(kskinitrm) cpu_count (fudge enabled): old(0) -> new(1)
ORA-12432: LBAC error: zllegnp:OCIStmtExecute
怎么都启不了库!
2,查了下oracle support下的文档。但是都是对于11g的我的库的10g。都没有找到@?/rdbms/admin/catnools.sql这个文件。只有一个catols.sql文件
查了下文档catols.sql是创建Oracle Label Security所需要用户LBACSYS及数据库对象,而catnools.sql是卸载的。
想想卸载也是删除用户及对象嘛。不如我直接删除了,这样应该就可以了。
Applies to:
Oracle Database - Enterprise Edition - Version 11.1.0.6 to 11.1.0.6 [Release 11.1]
Information in this document applies to any platform.
Checked for relevance on 15-Feb-2013
Symptoms
The following errors occur while starting up a database :
SQL> startup
ORACLE instance started.
Total System Global Area 252478536 bytes
Fixed Size 279624 bytes
Variable Size 167772160 bytes
Database Buffers 83886080 bytes
Redo Buffers 540672 bytes
Database mounted.
ORA-01092: ORACLE instance terminated. Disconnection forced
The alert.log shows the following errors :
...
Starting background process FBDA
Thu Sep 04 21:28:10 2008
FBDA started with pid=21, OS id=9102
Starting background process SMCO
Thu Sep 04 21:28:10 2008
SMCO started with pid=25, OS id=9106
Errors in file /u04/app/oracle/diag/rdbms/feds/FEDS/trace/FEDS_ora_9035.trc:
ORA-12432: LBAC error: zllegnp:OCIStmtExecute
Error 12432 happened during db open, shutting down database
USER (ospid: 9035): terminating the instance due to error 12432
Instance terminated by USER, pid = 9035
ORA-1092 signalled during: ALTER DATABASE OPEN...
ORA-1092 : opiodr aborting process unknown ospid (9035_1)
Thu Sep 04 21:28:15 2008
ORA-1092 : opitsk aborting process
Furthermore FEDS_ora_9035.trc trace file contains:
*** 2008-09-04 21:28:10.815
ORA-12432: LBAC error: zllegnp:OCIStmtExecute
*** 2008-09-04 21:28:10.819
USER (ospid: 9035): terminating the instance due to error 12432
Cause
The issue happens because the OLS metadata is incomplete as a result of a shutdown abort executed while the script catnools.sql (or catols.sql) was running.
Solution
To solve this situation the LBAC option has to be disabled:
1)
cd $ORACLE_HOME/rdbms/lib
make -f ins_rdbms.mk lbac_off ioracle
Note: It is important to note that in those environments where Database Vault is used it is needed to turn it off as well:
cd $ORACLE_HOME/rdbms/lib
make -f ins_rdbms.mk dv_off lbac_off ioracle
Note: On Windows OLS can be disabled if file $ORACLE_HOME/bin/oralbac<ver>.dll is renamed to oralbac<ver>.dll.backup. DV is disabled on Windows by renaming $ORACLE_HOME/bin/oradv<ver>.dll to oradv<ver>.dll.backup.
2)
$ sqlplus "/ as sysdba"
SQL> startup migrate
SQL> @?/rdbms/admin/catnools.sql
SQL> shutdown immediate
SQL> startup
As soon as the database is opened it is important to get a backup of the data stored in the database.
3,解决
[vm10g@Test-Dev9-026_OssDB bdump]$ sqlplus '/as sysdba'
SQL*Plus: Release 10.2.0.5.0 - Production on Thu Feb 21 09:52:12 2013
Copyright (c) 1982, 2010, Oracle. All Rights Reserved.
Connected to an idle instance.
SQL> startup migrate ;
ORACLE instance started.
Total System Global Area 641728512 bytes
Fixed Size 2098432 bytes
Variable Size 369101568 bytes
Database Buffers 264241152 bytes
Redo Buffers 6287360 bytes
Database mounted.
Database opened.
SQL> drop user LBACSYS ;
User dropped.
SQL> @?/rdbms/admin/catnools.sql
SP2-0310: unable to open file "/paic/app/oracle/product/rdbms/admin/catnools.sql"
SQL> @?/rdbms/admin/catol.sql
View created.
省略对象的创建。。。。。。。
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[vm10g@Test-Dev9-026_OssDB bdump]$ sqlplus '/as sysdba'
SQL*Plus: Release 10.2.0.5.0 - Production on Thu Feb 21 09:53:59 2013
Copyright (c) 1982, 2010, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started.
Total System Global Area 641728512 bytes
Fixed Size 2098432 bytes
Variable Size 369101568 bytes
Database Buffers 264241152 bytes
Redo Buffers 6287360 bytes
Database mounted.
Database opened.
SQL>
解决居然真的解决了。。。。