10g v2用dba用户登陆isqlplus时用户设置
【IT168 技术文档】在Oracle10gisqlplus下登录dba用户 不能使用sys,system来登陆,必须通过以下命令来新建用户并授权才可登陆,以下是详细步骤:但有时容易出现java错误。
oracle isqlplus dba账户设置:
1、进入isqlplus目录
cd $ORACLE_HOME/oc4j/j2ee/isqlplus/application-deployments/isqlplus
2、打开jazn shell环境
$ORACLE_HOME/jdk/bin/java -Djava.security.properties=$ORACLE_HOME/oc4j/j2ee/home/config/jazn.security.props -jar $ORACLE_HOME/oc4j/j2ee/home/jazn.jar -user "iSQL*Plus DBA/admin" -password admin_password -shell
admin_password is the password for the iSQL*Plus DBA realm administrator user, admin. The password for the admin user is set to 'welcome' by default. You should change this password as soon as possible.
注:需要注意环境变量是否起作用
3、操作:
1〉创建用户
JAZN:〉 adduser "iSQL*Plus DBA" username password
2〉用户列表
JAZN:〉 listusers "iSQL*Plus DBA"
3〉赋予webdba权限
JAZN:〉 grantrole webDba "iSQL*Plus DBA" username
4〉删除用户
JAZN:〉 remuser "iSQL*Plus DBA" username
5〉撤销webdba权限
JAZN:〉 revokerole webDba "iSQL*Plus DBA" username
6〉更改口令
JAZN:〉 setpasswd "iSQL*Plus DBA" username old_password new_password
设置完以上步骤,isqlplus需要重起在10gv1 v2不需要重起即可生效。
下面为测试步骤:
Test iSQL*Plus DBA access by entering the iSQL*Plus DBA URL in your web browser:
http://[machine_name][:port]/isqlplus/dba
A dialog is displayed requesting authentication for the iSQL*Plus DBA URL. Log in as the user you created above.