------
SYS TRUE TRUE
LOGICGATE TRUE FALSE
使用orapwd命令可以重建密码文件。
$orapwd
Usage: orapwd file=
password= entries= force=
where
file - name of password file (mandatory),
password - password for SYS (mandatory),
entries - maximum number of distinct DBA (optional),
force - whether to overwrite existing file (optional)
其中文件名和密码是必需的。entries设置了密码文件可包含的dba用户的最大数目。force定义了是否覆盖当前文件。重建密码文件会清除
系统内除了sys用户以外所有sysdba用户的密码。必须使用grant sysdba同步密码文件。
$orapwd file=$ORACLE_HOME/dbs/orapwd_$ORACLE_SID password=zdsoft entries=20 force=y;
$sqlplus sys/zdsoft as sysdba
Connected to: www.2cto.com
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the OLAP and Data Mining options
SQL> select * from v$pwfile_users;
USERNAME SYSDB SYSOP
------------------------------- -------- --------
SYS TRUE TRUE
通过以上三个步骤配置:sqlnet.ora,重建密码文件,设置REMOTE_LOGIN_PASSWORDFILE = exclusive后,
windows客户端通过网络服务名sys以sysdba角色可以登录
数据库服务器,同时OEM本来只能通过sysman以normal身份登录变成sys可以sysdba登录
作者 xujinyang