Example
The following command creates a password file namedorapworclthat allows up to 30 privileged users with different passwords.
FILE=orapworcl ENTRIES=30
The following sections describe thecommand line arguments
下面我遇到的ORA-01031错误(密码文件权限引起的):
db_Standby-> sqlplus sys/lyf625@master_db as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Fri Nov 12 09:24:40 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
ERROR:
ORA-01031: insufficient privileges
db_master-> orapwd file=orapwtest password=lyf625 entries=10 force=y;
OPW-00001: Unable to open password-file
db_master-> pwd
/u01/app/oracle/product/10.2.0/db_1/dbs
db_master-> ls -l
total 7016
-rw-rw---- 1 oracle oinstall 1170 Nov 15 09:39 ab_+ASM.dat
-rw-rw---- 1 oracle oinstall 1544 Oct 25 11:34 hc_+ASM.dat
-rw-rw---- 1 oracle oinstall 1544 Oct 25 11:34 hc_test.dat
-rw-r----- 1 oracle oinstall 12920 May 3 2001 initdw.ora
-rw-r----- 1 oracle oinstall 8385 Sep 11 1998 init.ora
-rw-r----- 1 oracle oinstall 1430 Nov 12 14:40 inittest.ora
-rw-rw---- 1 oracle oinstall 24 Oct 25 11:34 lk+ASM
-rw-rw---- 1 oracle oinstall 24 Nov 12 14:44 lkMASTER
-rw-rw---- 1 oracle oinstall 24 Oct 25 11:34 lkTEST
-rw-r----- 1 oracle oinstall 1536 Oct 25 11:34 orapw+ASM
-rw-r--r-- 1 root root 1536 Oct 25 12:09 orapwtest
-rw-r----- 1 oracle oinstall 7094272 Nov 12 08:00 snapcf_test.f
-rw-r----- 1 oracle oinstall 1536 Oct 25 11:34 spfile+ASM.ora
-rw-r----- 1 oracle oinstall 3584 Nov 15 11:51 spfiletest.ora
-rw-r----- 1 oracle oinstall 2560 Nov 12 12:01 spfiletest.ora.bak
db_master-> su - root
[root@db_master ~]# cd /u01/app/oracle/product/10.2.0/db_1/dbs
[root@db_master dbs]# chown -R oracle:oinstall ./orapwtest
[root@db_master dbs]# ls -l
total 7016
-rw-rw---- 1 oracle oinstall 1170 Nov 15 09:39 ab_+ASM.dat
-rw-rw---- 1 oracle oinstall 1544 Oct 25 11:34 hc_+ASM.dat
-rw-rw---- 1 oracle oinstall 1544 Oct 25 11:34 hc_test.dat
-rw-r----- 1 oracle oinstall 12920 May 3 2001 initdw.ora
-rw-r----- 1 oracle oinstall 8385 Sep 11 1998 init.ora
-rw-r----- 1 oracle oinstall 1430 Nov 12 14:40 inittest.ora
-rw-rw---- 1 oracle oinstall 24 Oct 25 11:34 lk+ASM
-rw-rw---- 1 oracle oinstall 24 Nov 12 14:44 lkMASTER
-rw-rw---- 1 oracle oinstall 24 Oct 25 11:34 lkTEST
-rw-r----- 1 oracle oinstall 1536 Oct 25 11:34 orapw+ASM
-rw-r--r-- 1 oracle oinstall 1536 Oct 25 12:09 orapwtest
-rw-r----- 1 oracle oinstall 7094272 Nov 12 08:00 snapcf_test.f
-rw-r----- 1 oracle oinstall 1536 Oct 25 11:34 spfile+ASM.ora
-rw-r----- 1 oracle oinstall 3584 Nov 15 11:51 spfiletest.ora
-rw-r----- 1 oracle oinstall 2560 Nov 12 12:01 spfiletest.ora.bak
db_Standby-> sqlplus sys/lyf625@master_db as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Fri Nov 12 10:06:51 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
SQL>
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/13024285/viewspace-678146/ ,如需转载,请注明出处,否则将追究法律责任。