当前位置: 首页 > news >正文

RMAN异库恢复之EM(1)

用rman恢复数据库到异机后,重新创建EM.遇到的第一个错误.
/home/oracle 11:43 $cat  /oracle/database/product/10.2.0/db_1/cfgtoollogs/emca/testdb1/emca_repos_drop_2011-02-10_11-25-29-上午.log
[10-02-2011 11:25:29] Enter SYS user's password :
[10-02-2011 11:25:29]
[10-02-2011 11:25:29] Enter repository user password :
[10-02-2011 11:25:29]
[10-02-2011 11:25:29] Getting temporary tablespace from database...
[10-02-2011 11:25:30] Could not connect to SYS/(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=dbserver)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=testdb1))): ORA-01031: insufficient privileges (DBD ERROR: OCISessionBegin)
/home/oracle 11:43 $

下面是 metalink 的解释.


EMCA Fails With Error 'ORA-01031: insufficient privileges' When Database Password File Is Not Configured [ID 358201.1]

 Modified 03-JAN-2011     Type PROBLEM     Status PUBLISHED 

In this Document
  Symptoms
  Cause
  Solution
  References


Applies to:

Enterprise Manager Grid Control - Version: 10.2.0.1 to 11.2.0.1 - Release: 10.2 to 11.2
Information in this document applies to any platform.

Symptoms

After installing Oracle 10.2.0.1 and manually creating a new database (did not use DBCA). emctl start dbconsole fails with the following error:
"OC4J Configuration issue. ORACLE_HOME/oc4j/j2ee/OC4J_DBConsole_hostname_ sid not found."
The 10.2 database was created successfully but there is no hostname_sid directory under ORACLE_HOME.  So then trying to create the DB Control configuration files and repository  using "emca -config dbcontrol db -repos recreate", the following message was captured in the  emca_repos_drop_.log:
"Could not connect to SYS/(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=hostname)(PORT=1521)))(CON ECT_DATA=(SERVICE_NAME=sid))): 
ORA-01031: insufficient privileges (DBD ERROR: OCISessionBegin) "

OR in some cases this may fail with following error in emca.log file

Oct 1, 2008 2:08:19 PM oracle.sysman.emcp.EMReposConfig unlockMGMTAccount
CONFIG: Unlocked mgmt_view account
Oct 1, 2008 2:08:19 PM oracle.sysman.emcp.EMReposConfig invoke
CONFIG: Successfully unlocked mgmt_view account
Oct 1, 2008 2:08:19 PM oracle.sysman.emcp.ParamsManager getParam
CONFIG: No value was set for the parameter ORACLE_HOSTNAME.
Oct 1, 2008 2:08:19 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
CONFIG: SQLEngine connecting with SID: dev11g, oracleHome: /oracle/product/11.1.0/db, and user: SYS
Oct 1, 2008 2:08:19 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
CONFIG: SQLEngine created successfully and connected
Oct 1, 2008 2:08:20 PM oracle.sysman.emcp.ParamsManager checkListenerStatusForDBControl
CONFIG: ORA-01031: insufficient privileges
oracle.sysman.assistants.util.sqlEngine.SQLFatalErrorException: ORA-01031: insufficient privileges



Cause

The ORA-01031: insufficient privileges error has been attributed to the REMOTE_LOGIN_PASSWORDFILE not being set correctly in the 10g database.  There is also no password fle..  

Solution

To resolve this problem,

Ensure REMOTE_LOGIN_PASSWORDFILE=EXCLUSIVE is set in the init.ora for the database
1.  Create a password file:
Unix: $ orapwd file=$ORACLE_HOME/dbs/orapw$ORACLE_SID password=sys entries=5
Windows: C:\> orapwd file=%ORACLE_HOME%\database\pwd%ORACLE_SID%.ora password= sys entries=5
NOTE: The password will be "sys" in the above examples

2.  Re-run EMCA to create the DB Control configuration files and repository.  See Note 278100.1 for information on the commands to run.

References

NOTE:333567.1 - EMCA Fails With Erros While Creating the Repository Due to Missing Execute Privilege on UTL_FILE and Other Packages

Show Related InformationRelated


Products
  • Enterprise Management > Enterprise Manager Consoles, Packs, and Plugins > Enterprise Manager Grid Control > Enterprise Manager Grid Control
Keywords
EMCA; DBCONSOLE; J2EE; OC4J
Errors
ORA-24344; ORA-6512; ORA-1031

Back to topBack to top


来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/11780477/viewspace-686948/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/11780477/viewspace-686948/

相关文章:

  • RMAN异库恢复之EM(2)遭遇 2010/12/31 root认证过期 bug
  • 丢失redo log的恢复
  • RMAN异库恢复之EM(3)
  • LOCK_SGA=TRUE causes an ORA-27126 during database startup on AIX
  • exp/imp parfile 用到的参数
  • 日志挖掘
  • RMAN备份脚本
  • sqlldr 控制文件样例
  • 审计相关
  • RAC 修改IP (转)
  • oracle oem 启动不起来(半解决)
  • 还是oem
  • 又是oem
  • isqlplus 连接标识符 (奇怪的问题)--(解决)
  • 天津rac总结1
  • iOS 系统授权开发
  • Java超时控制的实现
  • NLPIR语义挖掘平台推动行业大数据应用服务
  • php面试题 汇集2
  • PHP那些事儿
  • Promise面试题2实现异步串行执行
  • Sublime text 3 3103 注册码
  • 代理模式
  • 番外篇1:在Windows环境下安装JDK
  • 全栈开发——Linux
  • 树莓派 - 使用须知
  • 微信支付JSAPI,实测!终极方案
  • 怎么将电脑中的声音录制成WAV格式
  • ​七周四次课(5月9日)iptables filter表案例、iptables nat表应用
  • ​水经微图Web1.5.0版即将上线
  • ${ }的特别功能
  • (1)Map集合 (2)异常机制 (3)File类 (4)I/O流
  • (7)STL算法之交换赋值
  • (LNMP) How To Install Linux, nginx, MySQL, PHP
  • (pojstep1.1.1)poj 1298(直叙式模拟)
  • (附源码)ssm考试题库管理系统 毕业设计 069043
  • (四)搭建容器云管理平台笔记—安装ETCD(不使用证书)
  • (四)模仿学习-完成后台管理页面查询
  • (一)Mocha源码阅读: 项目结构及命令行启动
  • (原创)Stanford Machine Learning (by Andrew NG) --- (week 9) Anomaly DetectionRecommender Systems...
  • (转)详解PHP处理密码的几种方式
  • .apk文件,IIS不支持下载解决
  • .equals()到底是什么意思?
  • .NET Conf 2023 回顾 – 庆祝社区、创新和 .NET 8 的发布
  • /dev/VolGroup00/LogVol00:unexpected inconsistency;run fsck manually
  • /etc/skel 目录作用
  • [ 2222 ]http://e.eqxiu.com/s/wJMf15Ku
  • [Angular] 笔记 21:@ViewChild
  • [AutoSar]BSW_Com07 CAN报文接收流程的函数调用
  • [C#]扩展方法
  • [C++] sqlite3_get_table 的使用
  • [Codeforces] combinatorics (R1600) Part.2
  • [dfs搜索寻找矩阵中最长递减序列]魔法森林的秘密路径
  • [element-ui] el-dialog 中的内容没有预先加载,因此无法获得内部元素的ref 的解决方案
  • [flask]http请求//获取请求体数据