注册 登录
壹佰网|ERP100 - 企业信息化知识门户 返回首页

的个人空间 https://www.erp100.com/?0 [收藏] [复制] [RSS]

日志

orapwd新建口令文件,解决无法以SYS远程EM,PLSQL登陆问题

已有 2156 次阅读2008/5/10 22:25

EBS11i 安装完成,无Orapwd文件之解决方法

以Oracle用户登陆系统,打开终端

[oracle@rh~]$ sqlplus "/ as sysdba"

SQL*Plus: Release 9.2.0.3.0 - Production on Thu Apr 15 09:58:45 2004

Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.

Connected to:

Oracle9i Enterprise Edition Release 9.2.0.3.0 - Production

With the Partitioning, OLAP and Oracle Data Mining options

JServer Release 9.2.0.3.0 - Production

SQL> alter user sys identified by oracle;

User altered.

SQL> show parameter pass

NAME                       TYPE    VALUE

remote_login_passwordfile string NONE(检查当前口令文件是否启用)NONE为未启用,

启用口令文件:remote_login_passwordfile = exclusive

SQL> alter system set remote_login_passwordfile=exclusive scope=spfile;

System altered.

SQL>shutdown immediate(重启数据库设置生效)

SQL> startup force;

ORACLE instance started.

Total System Global Area 131142648 bytes

Fixed Size 451576 bytes

Variable Size 104857600 bytes

Database Buffers 25165824 bytes

Redo Buffers 667648 bytes

ORA-01990: error opening password file ''/opt/oracle/product/9.2.0/dbs/orapw''

ORA-27037: unable to obtain file status

Linux Error: 2: No such file or directory

Additional information: 3(当前口令文件不存在)

 

SQL> show parameter pass

NAME TYPE VALUE

remote_login_passwordfile string EXCLUSIVE

创建spfile文件

create spfile from pfile

打开新的终端,执行[oracle@rh~]$ source /home/oracl/.ora

[oracle@rh~]$ cd $ORACLE_HOME/bin

[oracle@bin]$ orapwd

file - name of password file (mand),

 password - password for SYS (mand),

entries - maximum number of distinct DBA and OPERs (opt),

There are no spaces around the equal-to (=) character.

[oracle@rh dbs]$ orapwd file=$ORACLE_HOME/dbs/orapw password=password entries=2

[oracle@rh dbs]$

重启数据库OK!

(参考:http://hi.baidu.com/zhougw03/blog/item/0113dbfc71db94fefc037f7e.html,其中Orapwd命令执行不同,即file=----orapw 其文中文件命名为orapw.ora,导致ora-01990错误仍然存在。将其后缀去掉执行Orapwd命令,问题解决)

  

评论 (0 个评论)

QQ|Archiver|小黑屋|手机版|壹佰网 ERP100 ( 京ICP备19053597号-2 )

Copyright © 2005-2012 北京海之大网络技术有限责任公司 服务器托管由互联互通
手机:13911575376
网站技术点击发送消息给对方83569622   广告&合作 点击发送消息给对方27675401   点击发送消息给对方634043306   咨询及人才点击发送消息给对方138011526

GMT+8, 2025/11/30 20:45 , Processed in 0.009968 second(s), 7 queries , File On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

返回顶部