Oracle's password file
来源:互联网 发布:中信证券编程 编辑:程序博客网 时间:2024/05/22 01:40
If the DBA wants to start up an Oracle instance
there must be a way for Oracle to authenticate this DBA. That is if
(s)he is allowed to do so. Obviously, his password can not be stored in
the database, because Oracle can not access the database before the
instance is started up. Therefore, the authentication of the DBA must
happen outside of the database. There are two distinct mechanisms to
authenticate the DBA: using the password file or through the operating system.
The init parameter remote_login_passwordfile specifies if a password
file is used to authenticate the DBA or not. If it set either to shared or exclusive a password file will be used.
Default location and file name
The default location for the password file is:
$ORACLE_HOME/dbs/orapw$ORACLE_SID
on Unix and%ORACLE_HOME%/database/PWD%ORACLE_SID%.ora
on Windows.Deleting a password file
If password file authentication is no longer needed, the password file can be deleted and the init parameter
remote_login_passwordfile set to none.
Password file state
If a password
file is shared or exclusive is also stored in the password file. After
its creation, the state is shared. The state can be changed by setting remote_login_passwordfile and starting the database.
That is, the database overwrites the state in the password file when it is started up.
file is shared or exclusive is also stored in the password file. After
its creation, the state is shared. The state can be changed by setting remote_login_passwordfile and starting the database.
That is, the database overwrites the state in the password file when it is started up.
A password file whose state is shared can only contain SYS.
Creating a password file
Password files are created with the orapwd tool.
Adding Users to the password file
Users are added to the password file when they're granted the SYSDBA or
sysoper privilege.
SYS@ora10> show user;
USER is "SYS"
SYS@ora10> select * from v$pwfile_users;
USERNAME SYSDB SYSOP
------------------------------ ----- -----
SYS TRUE TRUE
SYS@ora10> grant SYSDBA to rene;
Grant succeeded.
SYS@ora10> select * from v$pwfile_users;
USERNAME SYSDB SYSOP
------------------------------ ----- -----
SYS TRUE TRUE
RENE TRUE FALSE
SYS@ora10> grant SYSOPER to rene;
Grant succeeded.
SYS@ora10> select * from v$pwfile_users;
USERNAME SYSDB SYSOP
------------------------------ ----- -----
SYS TRUE TRUE
RENE TRUE TRUE
SYS@ora10> revoke SYSDBA from rene;
Revoke succeeded.
SYS@ora10> select * from v$pwfile_users;
USERNAME SYSDB SYSOP
------------------------------ ----- -----
SYS TRUE TRUE
RENE FALSE TRUE
SYS@ora10> revoke SYSOPER from rene;
Revoke succeeded.
SYS@ora10> select * from v$pwfile_users;
USERNAME SYSDB SYSOP
------------------------------ ----- -----
SYS TRUE TRUE
Links
orapwd.
- Oracle's password file
- Oracle中password file
- Oracle Password File
- oracle password file 命名规则
- oracle密码文件认证(password file authentication)
- 读书笔记20120213----Oracle password file, block change-tracking file
- Password file
- Oracle中password file的作用及说明
- Oracle中password file的作用及说明
- Oracle中password file的作用及说明
- Oracle中password file的作用及说明
- Oracle学习:password file的作用及说明(转帖)
- Oracle中password file的作用及说明
- Oracle中password file的作用及说明
- Oracle中password file的作用及说明
- Oracle中password file orapwd的作用及说明
- Oracle中password file orapwd的作用及说明
- excel 报错error loading password's vault file (mysql for excel)
- 谭浩强C语言下载
- hard copy and soft copy
- 后番茄花园事件:政府是否应该推动开源
- 用ASP.Net(C#)连接Oracle数据库的方法
- MOP [大杂烩]» 几个月前!三鹿用四箱奶粉一纸协议封了浙江泰顺王远萍的口!!!
- Oracle's password file
- 通过探测邮件服务器进行Email地址有效性检验
- 在线学习心法:来自Python初学者的三大困难
- 如何在上传的图片上打自己的文字水印
- ASP.NET的14个热点问题解答
- .NET中如何取得IP或者用户名等信息
- ASP.NET中使用数据处理插入数据注意的问题
- 可以治小病的十种水果
- MFC中的CMenu类