16
Oracle webcache Installation Guide - 기기 Setting & Tunning 기기 – Version : Webcache StandAlone 10.1.2.0.2 전전전전전 2007-01-23

Oracle webcache Installation Guide - 기본 Setting & Tunning 포함 – Version : Webcache StandAlone 10.1.2.0.2 전자계산소 2007-01-23

Embed Size (px)

Citation preview

Page 1: Oracle webcache Installation Guide - 기본 Setting & Tunning 포함 – Version : Webcache StandAlone 10.1.2.0.2 전자계산소 2007-01-23

Oracle webcache

Installation Guide- 기본 Setting & Tunning 포함 –

Version : Webcache StandAlone 10.1.2.0.2

전자계산소 2007-01-23

Page 2: Oracle webcache Installation Guide - 기본 Setting & Tunning 포함 – Version : Webcache StandAlone 10.1.2.0.2 전자계산소 2007-01-23

Sun 시스템 커널 파라메터 [/etc/system 등 ] 튜닝

; /etc/system 파일 및 ndd 설정값 수정(Os rebooting 필수 )

[/etc/system] 에 아래 파라메터값 추가

*------------------------------------------------------------------------** Parameters For OracleAS 10g WebCache*------------------------------------------------------------------------*set rlim_fd_max=65536set rlim_fd_cur=65536*------------------------------------------------------------------------** Etc Tuning parameters*------------------------------------------------------------------------*set sq_max_size=0

[/etc/init.d/inetsvc] 또는 [/etc/rc2.d/S99_ndd] 에 아래 파라메터값 추가*------------------------------------------------------------------------** Parameters For Network Tuning*------------------------------------------------------------------------*ndd -set /dev/tcp tcp_time_wait_interval 60000ndd -set /dev/tcp tcp_fin_wait_2_flush_interval 16000ndd -set /dev/tcp ip_path_mtu_discovery 0ndd -set /dev/tcp tcp_conn_req_max_q 8192ndd -set /dev/tcp tcp_conn_req_max_q0 8192ndd -set /dev/tcp tcp_conn_req_min 1ndd -set /dev/tcp tcp_xmit_hiwat 32768ndd -set /dev/tcp tcp_recv_hiwat 32768ndd -set /dev/tcp tcp_cwnd_max 65534ndd -set /dev/tcp tcp_keepalive_interval 1800000ndd -set /dev/tcp tcp_ip_abort_interval 60000ndd -set /dev/tcp tcp_ip_abort_cinterval 60000ndd -set /dev/tcp tcp_rexmit_interval_initial 3000ndd -set /dev/tcp tcp_rexmit_interval_min 3000ndd -set /dev/tcp tcp_rexmit_interval_max 10000ndd -set /dev/tcp tcp_conn_grace_period 500ndd -set /dev/tcp ip_ignore_redirect 1ndd -set /dev/tcp tcp_slow_start_initial 2

Page 3: Oracle webcache Installation Guide - 기본 Setting & Tunning 포함 – Version : Webcache StandAlone 10.1.2.0.2 전자계산소 2007-01-23

X-windows 에서 해당 패키지를 다운 받아 압축을 풀고 ./runinstaller 를 실행

Page 4: Oracle webcache Installation Guide - 기본 Setting & Tunning 포함 – Version : Webcache StandAlone 10.1.2.0.2 전자계산소 2007-01-23

Installer 시작

Page 5: Oracle webcache Installation Guide - 기본 Setting & Tunning 포함 – Version : Webcache StandAlone 10.1.2.0.2 전자계산소 2007-01-23

대상 ( 이름 , 경로 ) 지정

Page 6: Oracle webcache Installation Guide - 기본 Setting & Tunning 포함 – Version : Webcache StandAlone 10.1.2.0.2 전자계산소 2007-01-23

관리자 암호 지정참고로 ID 는 “ ias_admin” 입니다 . ( 변경 불가 )

Page 7: Oracle webcache Installation Guide - 기본 Setting & Tunning 포함 – Version : Webcache StandAlone 10.1.2.0.2 전자계산소 2007-01-23

요약 확인후 설치

Page 8: Oracle webcache Installation Guide - 기본 Setting & Tunning 포함 – Version : Webcache StandAlone 10.1.2.0.2 전자계산소 2007-01-23

설치 (installation)

Page 9: Oracle webcache Installation Guide - 기본 Setting & Tunning 포함 – Version : Webcache StandAlone 10.1.2.0.2 전자계산소 2007-01-23

권한설정 스크립트 실행(root.sh 를 root User 로 실행 )

Page 10: Oracle webcache Installation Guide - 기본 Setting & Tunning 포함 – Version : Webcache StandAlone 10.1.2.0.2 전자계산소 2007-01-23

root.sh 스크립트 실행• [www:/oracle/app/oracle/webcache_101202] # ls• ./ bin/ install.platform ldap/ oracore/ rdbms/ sysman/ upgrade/• ../ cfgtoollogs/ inventory/ lib/ oui/ relnotes/ tg4ifmx/ webcache/• Apache/ config/ jdbc/ lib32/ owm/ root.sh* tg4ingr/ xdk/• OPatch/ diagnostics/ jdk/ network/ perl/ slax/ tg4sybs/• README.htm hs/ jlib/ nls/ plsql/ sqlplus/ tg4tera/• assistants/ install/ jre/ oraInst.loc precomp/ srvm/ uix/

• [www:/oracle/app/oracle/webcache_101202] # ./root.sh• Running Oracle10 root.sh script...

• The following environment variables are set as:• ORACLE_OWNER= oraapp• ORACLE_HOME= /oracle/app/oracle/webcache_101202

• Enter the full pathname of the local bin directory: [/usr/local/bin]:• The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: y• Copying dbhome to /usr/local/bin ...• The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: y• Copying oraenv to /usr/local/bin ...• The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: y• Copying coraenv to /usr/local/bin ...

• Adding entry to /var/opt/oracle/oratab file...• Entries will be added to the /var/opt/oracle/oratab file as needed by• Database Configuration Assistant when a database is created• Finished running generic part of root.sh script.• Now product-specific root actions will be performed.

Page 11: Oracle webcache Installation Guide - 기본 Setting & Tunning 포함 – Version : Webcache StandAlone 10.1.2.0.2 전자계산소 2007-01-23

설치종료

Page 12: Oracle webcache Installation Guide - 기본 Setting & Tunning 포함 – Version : Webcache StandAlone 10.1.2.0.2 전자계산소 2007-01-23

참고(ORACLE_HOME 을 환경변수에 따로 설정시 명령어 실행시 오류가 있을수 있습니다 .

webcachectl 명령으로 확인해 보시고 다음과 같은 에러가 날경우파일 두개를 touch 명령으로 생성해 주시면 됩니다 .)

• [www:CHUN] /oracle/app/oracle] $ id• uid=1002(oraapp) gid=1001(dba)

• [www:CHUN] /oracle/app/oracle] $ webcachectl status• /oracle/app/oracle/product/10.2.0/webcache/webcache.xml: No such file or directory• Please make sure that ORACLE_HOME is set correctly.

• [www:CHUN] /oracle/app/oracle] $ mkdir -p /oracle/app/oracle/product/10.2.0/webcache

• [www:CHUN] /oracle/app/oracle] $ touch /oracle/app/oracle/product/10.2.0/webcache/webcache.xml

• [www:CHUN] /oracle/app/oracle] $ touch /oracle/app/oracle/product/10.2.0/webcache/internal.xml

• [www:CHUN] /oracle/app/oracle] $ webcachectl status• Web Cache admin server is not running.• Web Cache auto-restart monitor is not running.• Web Cache cache server is not running.

• [www:CHUN] /oracle/app/oracle] $ ps -ef | grep ora• root 15328 13682 0 18:52:08 pts/1 0:00 grep ora• oraapp 15294 13710 0 18:50:56 pts/2 0:00 -ksh• oraapp 15116 1 0 18:41:51 ? 0:01 /oracle/app/oracle/webcache_101202/webcache/bin/webcached -A• oraapp 15118 1 0 18:41:51 ? 0:01 /oracle/app/oracle/webcache_101202/webcache/bin/webcached /oracle/app

/oracle/we• oraapp 15120 1 0 18:41:52 ? 0:00 /oracle/app/oracle/webcache_101202/webcache/bin/webcachemon config_fil

e=/oracle

Page 13: Oracle webcache Installation Guide - 기본 Setting & Tunning 포함 – Version : Webcache StandAlone 10.1.2.0.2 전자계산소 2007-01-23

• Oracle webcache Installation 과정은 모두 끝났습니다 .

• http://webcache_Server_IP:9400 (Oracle WebCache Admin)에서 ias_admin // ****** 으로 로그인후 사용하시면 됩니다 .

Page 14: Oracle webcache Installation Guide - 기본 Setting & Tunning 포함 – Version : Webcache StandAlone 10.1.2.0.2 전자계산소 2007-01-23

1. WebCache admin Setting

http://server-ip:9400/또는http://server-ip:9400/webcacheadmin/ 으로 웹 로그인 합니다 .

(ias_admin // ******) ; 설치시 id // password 입니다 .

가정 >WebCache 기본 포트는 7777 80 으로 서비스 ,Apache 웹서버 & Oc4j 기본 포트는 7778 ( 변경 없이 서비스 ),서버 호스트 (hostname) 는 “ www” 라고 가정하겠습니다 .

Page 15: Oracle webcache Installation Guide - 기본 Setting & Tunning 포함 – Version : Webcache StandAlone 10.1.2.0.2 전자계산소 2007-01-23

Properties• Network Timeouts

Use this page to configure browser keep-alive and origin server response timeouts.

Cache Name Keep-Alive Timeout (sec) Origin Server Timeout (sec)www-WebCache 30 3600

• Resource LimitsUse this page to configure the maximum thresholds for cache size (memory usage), cached objects, and incoming connections.

Cache NameMaximum Cache Size (MB) Maximum Incoming Connectionswww-WebCache 500 500

Ports• Listen Ports

Use this page to configure the ports on which Web Cache receives browser requests.

Cache Name IP Address Port Protocol Client-Side CertificateWalletwww-WebCache ANY 80 HTTP N/A N/A

Page 16: Oracle webcache Installation Guide - 기본 Setting & Tunning 포함 – Version : Webcache StandAlone 10.1.2.0.2 전자계산소 2007-01-23

Origin Servers, Sites, and Load Balancing• Origin Servers

Use this page to configure application Web server or proxy server settings. These settings are required for load balancing, failover, and site-to-server mappings (Site-to-Server Mappings page).

<Application Web Servers>Host Port Routing Capacity Failover Threshold Ping URL Ping Interval www 7778 ENABLE 150 5 / 10

• Site DefinitionsUse this page to configure site definitions and aliases (virtual hosting). Site definitions enable Web Cache to apply different caching rules to different sites. Requests for different sites can also be routed to specific origin servers through Site-to-Server Mappings.

Host Name PortURL Path www 80 /

• Site-to-Server MappingUse this page to map requests for sites defined in the Site Definitions page to origin servers configured in the Origin Servers page. Mappings are required for virtual host sites and are optional for ESI provider sites.

Priority Host Name Port URL Path Prefix ESI Content Policy Host Name Port1 www 80 / Unrestricted www 77782 * * Exclude Fragments www 77783 * 80 Exclude Fragments www 7778