orapwd 工具建立建立的密码文件一定要orapw+实例名吗
我在11g和10g测试是必须要 orapw+实例名才能登录成功
以下是验证过程
[oracle@asm dbs]$ rm orapwasm
[oracle@asm dbs]$ orapwd file=orapwdasm password=abcdefg entries=10
[oracle@asm dbs]$ sqlplus /nolog
SQL*Plus: Release 10.2.0.1.0 - Production on Sat Jul 26 17:24:07 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> conn sys/abcdefg@asm as sysdba
ERROR:
ORA-01031: insufficient privileges
SQL> exit
[oracle@asm dbs]$ ls
ab_+ASM.dat hc_+ASM.dat initdw.ora lkASM orapw+ASM spfile+ASM.ora
hc_asm.dat initasm.ora init.ora lk+ASM orapwdasm sqlnet.log
[oracle@asm dbs]$ rm orapwdasm
[oracle@asm dbs]$ ls
ab_+ASM.dat hc_+ASM.dat initdw.ora lkASM orapw+ASM sqlnet.log
hc_asm.dat initasm.ora init.ora lk+ASM spfile+ASM.ora
[oracle@asm dbs]$ orapwd file=orapwasm password=abcdefg entries=10
[oracle@asm dbs]$ ls
ab_+ASM.dat hc_+ASM.dat initdw.ora lkASM orapwasm spfile+ASM.ora
hc_asm.dat initasm.ora init.ora lk+ASM orapw+ASM sqlnet.log
[oracle@asm dbs]$ sqlplus /nolog
SQL*Plus: Release 10.2.0.1.0 - Production on Sat Jul 26 17:25:03 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> conn sys/abcdefg@asm as sysdba
Connected.
SQL>
这是itpub网友lwjnbtx 查的官方文档
1. unix 环境:
查了Administrator’s Reference 10g Release 2 (10.2) for UNIX-Based Operating Systems.
1. Log in as the Oracle software owner.
2. Use the orapwd utility to create the password file as follows:
$ $ORACLE_HOME/bin/orapwd file=filename password=password entries=max_users
...
filename The name of the file in which password information is written
The name of the file must be orapwsid, and you must supply the full
path name.Its contents are encrypted. Typically, the password file is
created in the $ORACLE_HOME/dbs directory.
请注意黑体字, 所以unix环境中, password file 一定是要用 orapw<SID>, 没有例外.
2. windows 环境:
查了Platform. Guide 10g Release 2 (10.2) for Microsoft Windows (32-Bit)(没查64-bit)
To create and populate a password file:
1. Create a password file with the Password Utility:
C:> orapwd FILE=PWDsid.ora PASSWORD=password ENTRIES=max_users
where
¦ FILE specifies the password filename.
¦ SID identifies the database instance.
¦ PASSWORD sets the password for account SYS.
¦ ENTRIES sets maximum number of entries in password file. This corresponds
to maximum number of distinct users allowed to connect to the database
simultaneously with either the SYSDBA or the SYSOPER DBA privilege.
2. Set initialization parameter file parameter REMOTE_LOGIN_PASSWORDFILE to
exclusive, shared, or none.
In search of the password file, Oracle Databaselooks in the registryfor the value of parameter
ORA_SID_PWFILE. If no value is specified, then it looks in the registry for the
value of parameterORA_PWFILE, which points to a file containing usernames,
passwords, and privileges. If that is not set, then it uses the default:
ORACLE_BASEORACLE_HOMEDATABASEPWDsid.ORA.
The default value is shared.
请注意黑体字, windows 环境中, 很大的部分是基于 registry 中变量 ora_sid_pwfile 或者 ora_pwfile 的设置, 缺省的值, 正如paulyibinyi兄弟指出的, 是 pwd<SID>.ora (unix中是没有这个.ora后缀的).
总结下密码文件命名方法
linux下orapw+实例名
windows下pwd+实例名.ora
相关推荐
使用orapwd 重置SYS密码 C:oracleproduct10.2.0db_1database>orapwd Usage: orapwd file=<fname> password=<password> entries=<users> force=<y> C:oracleproduct10.2.0db_1database>orapwd fi
首先打开cmd 执行 orapwd file=C:\app\PWDorcl.ora password=orclorcl ...以上所述是小编给大家介绍的Oracle 数据库忘记sys与system管理员密码重置操作方法,希望对大家有所帮助,如果大家有任何疑问请给我留言
如果不执行这步,执行 orapwd 命令,会抛出 “OPW-00005: 存在同名文件 – 请删除或重命名” 错误。 接着在该目录下,执行以下 orapwd 命令,形如: F:\app\Administrator\product\12.1.0\dbhome
为辅助数据库创建密码文件(文件名必须以orapw开头) orapwd file=$ORACLE_HOME/dbs/orapwnewdb password=oracle1 entries=3 2. 为辅助数据库创建临时参数文件 好从目标数据库创建然后复制过去(前提是有...
OCM核心内参(OCM考试题库).pdf 、考试题库及讲解 (一) Section0:创建数据库(即于动建斥)【在db机操作】 1、手动建库 1)确定实例名。...2)建立密码文件。 orapwd file-orapwtest password=oracle 3)建立 filed
详细讲述了Oracle数据库口令文件的作用、创建以及使用。
忘记了oracle密码,可以使用orapwd 初始化sys密码;然后再修改其他帐户密码,还有就是破解。
重建密码⽂件(先删除掉原来的⽂件) D:/>orapwd file=d:/oracle/ora92/DATABASE/PWDtest.ORA password=SYS entries=10 OPW-00005: 存在相同名称的⽂件 - 请删除或重命名 D:/>orapwd file=d:/oracle/ora92/DATABASE/...
Oracle手工創建資料庫(10g+11g)
下面按类别列出一些ORACLE用户常用数据字典的查询使用方法。 1、用户 查看当前用户的缺省表空间 SQL>select username,default_tablespace from user_users; 查看当前用户的角色 SQL>select * from user_...
4、创建实例与密码文件 oradim -new -sid mydb -startmode manual -intpwd mydb -pfile E:\app\oracle\product\11.1.0\db_1\database\initmydb.ora orapwd file=E:\app\oracle\product\11.1.0\db_1\database\...
32位oracle11.2.0.1 BIN文件夹,数据库管理员版,包含sqlplus,imp,exp,impdp,expdp等完整工具。exe列表:adrci、agtctl、amdu、asmtool、asmtoolg、CreatDep、csscan、dbv、dg4odbc、dg4pwd、dgmgrl、diskmon、...
cd $ORACLE_HOME/dbs cp initorcl.ora initorcl.ora #复制⼀个原有的ora⽂件 vim initorcl.ora #修改为响应信息 ORACLE_BASE要改为绝对路径 不然会报错 3、创建密码⽂件 orapwd file=$ORACLE_BASE/product/10.2.0/db...
cd $ORACLE_HOME/dbs cp initorcl.ora initorcl.ora #复制⼀个原有的ora⽂件 vim initorcl.ora #修改为响应信息 ORACLE_BASE要改为绝对路径 不然会报错 3、创建密码⽂件 orapwd file=$ORACLE_BASE/product/10.2.0/db...
Oracle的外部数据包装器 oracle_fdw是PostgreSQL扩展,提供了Foreign Data Wrapper,可以轻松,高效地访问Oracle数据库,包括下推WHERE条件和所需的列以及全面的EXPLAIN支持。... sqlplus orauser/orapwd@//dbs