oracle工具---orapwd使用及查看

本小记主要就前面手动创建Oracle database的时候,有一步叫做:选择数据库管理员的认证方法,里面的基于口令文件的认证,前面还有点模糊,通过查阅些资料和文档,对其有一些了解,故作记录如下:

一、简介
    orapwd工具,是oracle提供的创建口令文件的工具,旨在创建一个口令文件,在数据库处于nomount状态下登陆数据的。
    $ orapwd
    Usage: orapwd file=<fname> entries=<users> force=<y/n> ignorecase=<y/n> nosysdba=<y/n>
   
    where
        file - name of password file (required),
        password - password for SYS will be prompted if not specified at command line,
        entries - maximum number of distinct DBA (optional),
        force - whether to overwrite existing file (optional),
        ignorecase - passwords are case-insensitive (optional),
        nosysdba - whether to shut out the SYSDBA logon (optional Database Vault only).

        There must be no spaces around the equal-to (=) character.
   
二、使用方法
    $ orapwd file=orapw<SID> password=****** entries=10
    则在当前目录生成orapw<SID>的文件,可以保存sysdba/sysoper用户的密码。
   
    【注1】在数据库中,修改sysdba/sysoper用户的密码,可以同步到口令文件当中;
    【注2】select * from v$pwfile_users语句,查询口令文件中的用户。
   
[2012/6/18]

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值