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 环境:

查了

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, 没有例外.

2. windows 环境:

查了 (没查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 Database looks in the registry for the value of parameter

ORA_SID_PWFILE. If no value is specified, then it looks in the registry for the

value of parameter ORA_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.ora (unix中是没有这个.ora后缀的).

总结下密码文件命名方法

linux下orapw+实例名

windows下pwd+实例名

设置密码命名是什么linux,orapwd 工具建立密码文件遵守的命名方法相关推荐

  1. Linux常用工具使用手册——文件MD5的验证方法

    md5sum命令介绍 md5sum命令用于生成和校验文件的md5值.它会逐位对文件的内容进行校验.是文件的内容,与文件名无关,也就是文件内容相同,其md5值相同. md5sum操作手册 (my_new ...

  2. 在linux下怎么建立sh文件,Linux系统下如何运行.sh文件的实现

    在Linux系统下运行.sh文件有两种方法,比如我在root目录下有个datelog.sh文件 第一种(这种办法需要用chmod使得文件具备执行条件(x): chmod u+x datelog.sh) ...

  3. Linux系统中运行.sh文件的几种方法

    在Linux系统中执行.sh文件的几种方法: 1. cd到.sh文件所在的目录,然后执行./xxx.sh   [前提:该./sh文件要有可执行的权限,chmod u+x xxx.sh]  2. 在任何 ...

  4. Ubuntu Linux 解决 bash ./ 没有那个文件或目录 的方法

    Ubuntu Linux 解决 bash ./ 没有那个文件或目录 的方法 遇到这个问题是为了sublime配置c/c++ 编译环境 当运行程序打开终端时 出现以上问题 先新建build system ...

  5. linux查看根目录下所有文件夹大小的方法

    linux查看根目录下所有文件夹大小的方法如下: 1.进入根目录:cd / 2.使用命令 : du -sh * 查看根目录下每个文件夹的大小 3.进入占用空间比较大的文件夹,随后针对过大的文件目录不断 ...

  6. Linux命令--查看和修改文件的编码格式的方法

    原文网址:Linux命令--查看和修改文件的编码格式的方法_IT利刃出鞘的博客-CSDN博客 简介 查看文件编码格式 方法:使用vim命令. 1.用vim打开文件 vim filename 2.查看编 ...

  7. linux 没有那个文件或目录,Linux 解决 bash ./ 没有那个文件或目录 的方法

    在Debian 或 ubuntu 64位下运行 ./xxx 会跳出来说没有这个文件或者目录,但是ls看又有这个文件,很是奇怪. 其实原因很简单,是因为他没有32位的运行库 ia32-libs ,直接安 ...

  8. linux下好用的文件批量重命名软件

    在windows下好用的文件批量重命名工具很多,例如 TC. 在linux下如果会使用rename命令也是一个强大的技能,但是像我这样rename命令记得不熟的人,就需要使用现成的软件作为工具了. 在 ...

  9. linux重命名tar命令,linux常用操作指令4 —— 文件操作相关命令(mkdir、touch、rm、mv、cp、cat 、 find 、tar、chmod)...

    文件操作相关命令 文件操作相关命令 1.创建文件夹mkdir 2.创建文件touch 3.移动文件夹mv(类似于剪切) 4.删除rm 5.重命名mv 6.复制cp 7.查看文件(cat.head.ta ...

最新文章

  1. makefile ifneq多个判断条件_一文入门Makefile
  2. MongoDB副本集的搭建
  3. Linux目录规范和含义(转)
  4. 银行登录控件仿制--防钩子,防嗅探
  5. P1337-[JSOI2004]平衡点/吊打XXX【模拟退火】
  6. python封装exe如何返回上一步_如何将python脚本封装成exe程序?
  7. 云计算学习笔记003---Hadoop简介,hadoop实现原理,NoSQL介绍...与传统关系型数据库对应关系,云计算面临的挑战
  8. python基础教程是什么-python基础教程之python是什么?
  9. 网页编码_Python获取网页编码(apparent_encoding)
  10. 车联网相关知识点整理
  11. js实现双人对战五子棋
  12. 生物信息分析员的编程小站
  13. 解决在iOS复制失败问题 iOS/Android通用
  14. qq空间自动评论说说php源码使用教程,仿QQ空间说说 评论/回复 效果源码
  15. 「Go工具箱」web中想做到cookie值安全?securecookie库的使用和实现原理
  16. 推荐免费下载大型酒店管理系统源码
  17. 大数据正式京淘附加爬虫
  18. 骗子举报查询系统高级版源码
  19. 腾讯云服务器配置code-server
  20. 从Folding@home项目看GPU通用计算发展

热门文章

  1. 三字经带拼音a4打印版_人教版八年级下册英语6单元重点单词带音标打印版
  2. 红旗Linux网卡绑定,Linux bonding 之balance-alb 原理介绍及其实现
  3. Unexpected end of JSON input while parsing near '...解决方法
  4. 使用apache POI把list集合里面的实体写入Excel(java)
  5. Android Studio 创建第一个Android工程项目
  6. html5怎么设置字体闪动,HTML最简单的文字闪烁代码
  7. C语言 二维数组行数和列数计算 - C语言零基础入门教程
  8. Python GIL 锁 - Python零基础入门教程
  9. python字符串乘一个数_Python--初识庐山真面目
  10. printf函数的格式修饰符