Isqlplus 安装和配置

Isqlplus 安装和配置

客户端需求

netscape navigator 4.7

Microsoft ie 5.0
必须支持javascript和cookie.可以不支持javascript,但某些功能将不能实现。

2、 网络连接

web浏览器和apache之间使用http连接

isqlplus和oracle 9i之间使用oracle net连接

3、 配置中间层:isqlplus server

windows nt:

%oracle_home%sqlplusadminisqlplus.conf

unix:

$ORACLE_HOME/sqlplus/admin/isqlplus.conf
相关参数:

iSQLPlusNumberOfThreads=20 设定最大http请求数,最小值为1,缺省值20。

iSQLPlusLogLevel=off|on 日志文件在$ORACLE_HOME/sqlplus/log/isqlplus/log.xml,文件大小达到64k时系统产生一个新文件,旧文件被重命名为唯一文件比如log1006130580.xml,系统最多保持10个旧的文件,多余的自动删除。

4、 配置中间层:oracle http server
配置文件:

$ORACLE_HOME/apache/apache/conf/httpd.conf
说明:httpd.conf文件里面包含(include) oracle_apache.conf文件,该文件在相同目录。Oracle_apache.conf里面包含isqlplus.conf文件。
如果注释(#)掉oracle_apache.conf文件里面包含的isqlplus.conf文件即可disable用户通过isqlplus对数据库的访问。


测试httpd.conf及其include文件的正确性:
(1)cd $ORACLE_HOME/apache/apache/conf

(2) apache –t //windows nt环境

apache configtest /unix环境

(3)如果显示“Syntax OK”即为成功。

5、 启动、停止oracle http server

windows nt环境:

cd %oracle_home%apacheapache

apacke –k shutdown

apache –k start

unix环境

cd $ORACLE_HOME/apache/apache/bin

apachectl stop

apachectl start

6、 在浏览器里访问isqlplus
普通用户:

http://ccc:7778/isqlplus
说明:其中ccc是主机名,也可以是ip地址。7778是端口号,在httpd.con文件里定义,比如listen 7778。
管理员用户:

http://ccc:7778/isqlplusdba

7、 对于用户安全的验证
对于普通用户,只需输入登陆到oracle server的用户名和密码即可,也可以修改isqlplus.conf文件进行oracle http server的验证。
对于管理员用户,缺省必须进行oracle http server的验证,即登陆oracle http server时也需要用户名和密码,该用户名和密码存放在$ORACLE_HOME/sqlplus/admin/iplusdba.pw文件,这是和oracle server不同的用户名和密码。
关于oracle http server的验证在isqlplus.conf文件里配置。节选如下:

#

# Enable handling of all virtual paths beginning with "/isqlplus"

#

<Location /isqlplus>

SetHandler fastcgi-script

Order deny,allow

# Comment "Allow ..." and uncomment the four lines "AuthType ..."

# to "Require ..." if Oracle HTTP authentication access is required

# for the http://.../isqlplus URL

Allow from all

#AuthType Basic

#AuthName 'iSQL*Plus'

#AuthUserFile d:OracleOra91sqlplusadminiplus.pw

#Require valid-user

</Location>

#

# Enable handling of all virtual paths beginning with "/isqlplusdba".

#

# Note: Oracle HTTP authentication access must be configured to

# prevent unauthorized users performing DBA operations on

# the database

#

# Use the HTTP server utility script "htpasswd" to add users to the

# "iplusdba.pw" file.

#

<Location /isqlplusdba>

SetHandler fastcgi-script

Order deny,allow

AuthType Basic

AuthName 'iSQL*Plus DBA'

AuthUserFile d:OracleOra91sqlplusadminiplusdba.pw

Require valid-user

</Location>

8、 添加entries到oracle http server验证文件:

windows nt环境:

htpasswd %ORACLE_HOME%sqlplusadminiplusdba.pw username

htpasswd %ORACLE_HOME%sqlplusadminiplus.pw username
说明:htpasswd命令位于%ORACLE_HOME%apacheapachebin目录

unix环境:

htpasswd $ORACLE_HOME/sqlplus/admin/iplusdba.pw username

htpasswd $ORACLE_HOME/sqlplus/admin/iplus.pw username
说明:htpasswd命令位于$ORACLE_HOME /apache/apache/bin目录

9、 限制用户对数据库的访问
编辑isqlplus.conf文件,改变以下行:

FastCgiServe -initial-env "iSQLPlusConnectIdList=ora9i.com,ora8i.com"
这里ora9i.com、ora8i.com是oracle Net connection identifiers,加入本参数后用户登陆isqlplus时将会有一个“连接标识符”下拉框,从而限制用户访问下拉框以外的数据库。

 

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值