ITAA-OCM 发表于 2012-2-3 11:59:04

Oracle OCP题库解析(12)

Which step do you need to perform to enable a user with the SYSDBA privilege to log in as SYSDBA in iSQL*Plus?A) The user must be granted the database administrator (DBA) privilege.B) The user must be listed in the password file for the authentication.C) No special setup is needed for the user to connect as SYSDBA in iSQL*Plus.D) Set up a user in the Oracle Application Server Containers for J2EE (OC4J) user manager, and grant the webDba role to the user. Answer: D一般用户登陆isqlplus的网址http://ip:port/isqlplus,(http://localhost:5560/isqlplus)进入该网址后会直接进入数据库用户登陆界面,使用数据库中的普通用户即可登陆。DBA用户登陆isqlpus的网址http://ip:port/isqlplus/dba,进入该网址后首先会弹出一个登陆框,要求先输入iSQL*Plus DBA的用户和密码,注意这里不是数据库用户,而是isqlplus应用服务器要求的webdba用户和密码。要以DBA身份登陆isqlplus,必须先配置好oc4j用户。oc4j可以使用两种身份认证方式:1.基于xml配置文件(jazn-data.xml)2.基于LDAP(Oracle Internet Directory)官方文档SQL*Plus® User's Guide and Reference=> 2 Configuring SQL*Plus=> Enabling iSQL*Plus DBA Access实验:基于xml配置文件(jazn-data.xml)。该配置文件位于$ORACLE_HOME/oc4j/j2ee/isqlplus/application-deployments/isqlplus/config目录下。但是该配置文件中的密码是加密过的,所以我们不能手动修改该文件,而是通过JAZN(Java AuthoriZatioN)来配置。JAZN是oracle提供的一个JASS(Java Authentication and Authorization Service)工具。$ isqlplusctl start$ export JAVA_HOME=$ORACLE_HOME/jdk$ cd $ORACLE_HOME/oc4j/j2ee/isqlplus/application-deployments/isqlplus$ $JAVA_HOME/bin/java -Djava.security.properties=$ORACLE_HOME/oc4j/j2ee/home/config/jazn.security.props -jar $ORACLE_HOME/oc4j/j2ee/home/jazn.jar -user admin -password welcome –shell(admin用户的默认密码是welcome,但是admin用户默认没有webDba权限,不能直接用于登陆iSQL*Plus)JAZN:> adduser "iSQL*Plus DBA" whz oracleJAZN:> listusers "iSQL*Plus DBA"adminwhzJAZN:> grantrole webDba "iSQL*Plus DBA" whzJAZN:> exit$ isqlplusctl stop$ isqlplusctl start打开浏览器,在浏览器中输入http://localhost:5560/isqlplus/dba,在弹出框中输入用户名whz,密码oracle,即可以sysdba身份登录isql*plus

jiaohai777 发表于 2013-4-26 19:21:12

ccie34 发表于 2013-8-8 19:40:59

支持你大侠

merenpuwu 发表于 2013-8-18 00:59:31

{:6_290:}{:6_290:}

wish_start 发表于 2014-1-20 13:25:04

学习

q466265670 发表于 2017-12-23 18:44:45

学习学习
页: [1]
查看完整版本: Oracle OCP题库解析(12)