为oracle数据库创建⼝令⽂件如果从远端以sysdba⽅式登录oracle数据库服务器的时候报
ORA-01031:insufficient privileges
错误,可以通过创建⼝令⽂件的⽅式解决
创建⼝令⽂件的⽅式如下:
[@more@]
使⽤orapwd命令创建⼝令⽂件
ora_test@oracle[/home/oracle]> orapwd file=$ORACLE_HOME/dbs/orapw$ORACLE_SID
> password=oracle entries=10 force=y
登录数据库,检查REMOTE_LOGIN_PASSWORDFILE参数
如果REMOTE_LOGIN_PASSWORDFILE参数指为none,设置为exclusive,然后重启数据库
ora_test@oracle[/home/oracle]> sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Tue Feb 2 20:47:40 2010
oracle登录命令Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
sys@CNHTM> alter system set REMOTE_LOGIN_PASSWORDFILE=EXCLUSIVE scope=spfile;
System altered.
sys@CNHTM> startup force
ORACLE instance started.
Total System Global Area 167772160 bytes
Fixed Size 1218292 bytes
Variable Size 75499788 bytes
Database Buffers 83886080 bytes
Redo Buffers 7168000 bytes
Database mounted.
Database opened.
--end--

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。