제품 : ORACLE SERVER
작성날짜 : 2000-12-08
Mod_plsql 설정 방법
1) Oracle Http Server (powered by Apache) 가 정상적으로
설치 되어있을 때, plsql toolkit 을 install 하기 위한
$ORACLE_HOME/Apache/modplsql/owa/owaload.sql 입니다.
iAS V 1.0.x 와 ORACLE 8.1.7 에서는
sqlplus sys/암호
SQL>@owaload logfile
iAS V1.0 에서는 다음과 같이 7 개의 parameter 를 줍니다.
각 parameter 에 대한 자세한 사항은 owaload.sql 화일 내에 설명이 있습니다.
@owaload.sql sys_password owa_user owa_password default_tablespace
temporary_tablespace connect_string log_file
2) http://hostname:port/pls/admin_/gateway.htm 을 접속하면
다음 URL 이 나오면서 DAD 를 추가/삭제/수정이 가능합니다.
http://hostname:port/pls/simpledad/admin_/gateway.htm?schema=sample
-> Gateway Database Access Descriptor Setting
-> Add Default (blank configuration)
Database Access Descriptor Name - test
Oracle User Name - scott
Oracle Password - tiger
Oracle Connect String - ORA817
에러 없이 등록된 후에는 리스너 재기동 없이 바로 procedure 를 수璿하면 됩니다.
http://hostname:port/plstest/test_plsql
3) 위 URL 이 접속되지 않을때, Manual 하게 등록하는 방법
$ORACLE_HOME/Apache/modplsql/cfg/wdbsvr.app 에 최소 다음 라인을
추가하시면 됩니다. 끝에 ; 을 반드시 추가 합니다.
[DAD_test]
connect_string = ORA817
password = tiger
username = scott
;
4) plsql 을 prefix 인 pls 를 변경하는 방법
즉, http://hostname:port/pls/ 에서 pls 를 다른것으로 대치 하려면,
$ORACLE_HOME/Apache/modplsql/cfg/plsql.conf 에서 다음 부분을
변경하면 됩니다.
#
# Enable handling of all virtual paths beginning with "/pls" by mod-plsql
#
<Location /myplsql>
SetHandler pls_handler
Order deny,allow
Allow from all
</Location>
출처 : OTN
|
|