位置:会计实战基地 > 资讯中心 > 会计资讯 > Oracle密码文件学习心得

Oracle密码文件学习心得

来源:会计实战基地 发表时间:2020-11-24 10:47:13 作者:木槿老师 阅读量:805

免费提供专业会计相关问题解答,让您学习无忧

文雯老师 官方答疑老师

职称: 一级讲师

会计实操免费试听入口
  • 北京
  • 天津
  • 河北
  • 山西
  • 辽宁
  • 吉林
  • 上海
  • 江苏
  • 浙江
  • 安徽
  • 福建
  • 江西
  • 山东
  • 河南
  • 黑龙江
  • 湖北
  • 湖南
  • 广东
  • 广西
  • 海南
  • 四川
  • 重庆
  • 贵州
  • 云南
  • 陕西
  • 甘肃
  • 青海
  • 宁夏
  • 新疆
  • 西藏
  • 内蒙古

  下面总结了一些Oracle密码文件的学习心得,希望对大家有所帮助。

  (一)创建Oracle密码文件的命令

  orapwd file= password= entries=最大数目

  这里的file命名规则在unix/linux下orapw,在windows下为pwd.ora

  一、 unix 环境:

  查了Administrator‘s Reference 10g Release 2 (10.2) for UNIX-Based Operating Systems.

  1. Log in as the Oracle software owner. (以Oracle管理员身份登入)

  2. Use the orapwd utility to create the password file as follows(使用orapwd功能创建密码文件):

  $ $ORACLE_HOME/bin/orapwd file=filename password=password entries=max_users……

  filename The name of the file in which password information is written(filename指密码信息保存文件的文件名)

  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.(文件名必须为orapwsid,并需要提供完整路径。内容是加密的。通常情况下,密码文件被创建在$ORACLE_HOME/dbs路径下。)

  请注意黑体字, 所以unix环境中, password file 一定是要用 orapw, 没有例外。

  二、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 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后缀的)。

  (二)在windows下对于connect /as sysdba及其它用户可以不用密码就能登录的问题

  1.这是因为oracle采用了OS认证的方式,具体的可以查看 sqlnet.ora具体同容如下

  SQLNET.AUTHENTICATION_SERVICES= (NTS)

  将其改成SQLNET.AUTHENTICATION_SERVICES=(NONE)

  这样就是oracle认证方式了

  2.因为用的OS认证方式,可以在操作系统->控制面版->计算机管理->用户 将当前用户的属性组 ORA_DBA去掉,这时如果没有用户名及密码则不可以。

  如下:

  SQL> connect /as sysdba ERROR:ORA-01031: insufficient privileges

  SQL> connect sys/oracle as sysdba

  已连接。

  (三)利用alter user identified by ……来修改密码alter user sys identified by abc一下,就连数据库中的密码和密码文件中的密码一起改成abc了;

  (四)如果Oracle密码文件丢失了如何办?

  利用 orapwd重新创建一个就可以了。

还没有符合您的答案?立即在线咨询老师 免费咨询老师
上一篇:用友U8软件功能使用技巧 下一篇:用友U8如何增加、修改和删除会计科目

相关资讯

相关问答

  • 1
  • 2
  • 3
会计实战基地

会计实战基地

欢迎来到会计实战基地,请问你有什么问题呢?
【回复1】零基础怎么学会计
【回复2】免费试学60+行业真账实操
【回复3】初级,中级,注会等报考信息
【回复4】免费领取做账资料
【回复5】免费领取备考资料
【回复6】咨询其他问题
发送【姓名+微信】免费申领用友财务软件3个月使用权!