ITPub博客

首页 > 数据库 > Oracle > 为oracle数据库创建口令文件

为oracle数据库创建口令文件

原创 Oracle 作者:cnhtm 时间:2010-02-02 21:03:35 0 删除 编辑

如果从远端以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

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--

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

请登录后发表评论 登录
全部评论

注册时间:2009-07-06

  • 博文量
    104
  • 访问量
    812107