设为首页 收藏本站
查看: 876|回复: 0

[经验分享] ORA-12432: LBAC error: zllegnp:OCIStmtExecute

[复制链接]

尚未签到

发表于 2015-11-8 07:13:33 | 显示全部楼层 |阅读模式
  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 - Version11.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 scriptcatnools.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 &quot;/ as sysdba&quot;
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 &quot;/paic/app/oracle/product/rdbms/admin/catnools.sql&quot;
  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>
  解决居然真的解决了。。。。
         版权声明:本文为博主原创文章,未经博主允许不得转载。

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-136400-1-1.html 上篇帖子: 解决ora-01861文字与格式字符串不匹配(转) 下篇帖子: pl/sql developer连接oracle ORA-12543:TNS:无法连接目标主机 无监听程序
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表