まず、MacBook Proのオラクル所有者の環境変数の設定などはLeopard de Oracle10g R2 (Intel x86-64) #2の設定に加え、Oracle HTTP Server向けaliasと環境変数を追加。
ちなみに、/Users/Shared/u01/app/oracle/oracle/product/10.1.0/apexをIntel Mac上でのAPExのHOMEディレクトリとしてOracle HTTP Serverを起動、停止スクリプトをaliasとして定義。(Oracle 10g R1 10.1.0.3.0 for MacOSXのCompanionCDでインストールされるOracle HTTP Serverは ORACLE_HOME(Oracle HTTP Serverの)/opmn/bin/opmnctl stopall 又は startallではなくORACLE_HOME(Oracle HTTP Serverの)/Apache/Apache/bin/apachectl start又はstopで起動/停止できます。)
guppy:˜ oracle$ cat .bashrc alias ll='ls -lv' alias startohs='$ORACLE_HTMLDB_HOME/bin/apachectl start' alias stopohs='$ORACLE_HTMLDB_HOME/bin/apachectl stop'
export LANG=ja_JP.UTF-8 export ORACLE_BASE=/Users/shared/u01/app/oracle export ORACLE_SID=leopard1 export ORACLE_HOME=$ORACLE_BASE/oracle/product/10.2.0/db_1 export NLS_LANG=Japanese_Japan.AL32UTF8 export DYLD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/rdbms/lib:$ORACLE_HOME/network/lib:$DYLD_LIBRARY_PATH export PATH=$ORACLE_HOME/bin:$PATH
#for Oracle11g and Jdeveloper Oracle Middleware HOME export ORACLE_MIDDLEWARE_HOME=/Users/Shared/Oracle/Middleware
#for Oracle10g R1 Oracle HTTP ServerHome (include mod_plsql) export ORACLE_HTMLDB_HOME=/Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/Apache guppy:˜ oracle$
|
次に、PowerPC上でzipしたORACLE HTTP ServerのORACLE_HOMEディレクトリ以下を丸ごとIntel Mac上のOracle HTTP ServerのあたらしいHOMEディレクトリへ移動します。移動方法はrcpでもいいし、環境によってはscpでもいいしUSBメモリ経由でもmobileme経由でもお好きな方法でIntel Macへコピー/解凍します。PowerPC上のORACLE HTTP Serverホームディレクトリ以下は不要なのでHOMEディレクトリごと削除するもよし、ちゃんとOUIで削除してもいいですよん。
以下、MacBook Pro上で解凍した状態。MacBook Pro上のあたらしいHOMEディレクトリは、/Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex
APEX3.2のimagesディレクトリのコピー。
APEX3.2のimagesディレクトリでOracle HTTP Serverのホームディレクトリ/marvel以下にあるimagesディレクトリを置き換えます。
この作業はAPEXのアップデート作業でもよく作業なのでお忘れなく。HTML DB1.5をAPEX3.2にアップデートしたようなものなので。
guppy:apex oracle$ pwd /Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/marvel guppy:marvel oracle$ ls 10ins.sql core doc ins.sql jlib readme.html upgrade.sql builder coreins.sql images install.lst logs sbs utilities guppy:marvel oracle$ mv images images_htmldb_1_5 guppy:marvel oracle$ cp -rf /Users/oracle/Downloads/apex/images . guppy:marvel oracle$
|
.confファイルの変更
ここからがメイン。PowerPC上でインストール構築したので各種.confファイルなどのパスはホスト名がPowerPC上の値に設定されています。それら全てを移動してきたMacBook Pro(Intel x86)上の値に変更していきます。
最初はOracle HTTP Server向けコンフィグファイルから。(全てのconfファイルを確認し要変更と確定できた変更前の*.confファイルは、*.conf.15として退避しておくことにします。)
/Users/Shared/u01/app/oracle/oracle/product/10.1.0/apexは、MacBook Pro上でのOracle HTTP Serverのホームディレクトリ。
guppy:conf oracle$ pwd
/Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/Apache/conf guppy:conf oracle$ guppy:conf oracle$ ll total 680 -rwxr-xr-x 1 oracle oinstall 348 11 16 2004 access.conf -rwxr-xr-x 1 oracle oinstall 348 11 16 2004 access.conf.default -rw------- 1 oracle oinstall 1623 5 18 14:16 dms.conf -rw------- 1 oracle oinstall 1633 5 18 14:14 dms.conf.15 -rw------- 1 oracle oinstall 1626 7 2 2004 dms.conf.sbs -rwxr-xr-x 1 oracle oinstall 41721 5 18 14:41 httpd.conf -rwxr-xr-x 1 oracle oinstall 42011 5 18 14:16 httpd.conf.15 -rwxr-xr-x 1 oracle oinstall 42011 5 17 12:23 httpd.conf.default -rwxr-xr-x 1 oracle oinstall 39710 12 17 2004 httpd.conf.tmp -rwxr-xr-x 1 oracle oinstall 12965 11 16 2004 magic -rwxr-xr-x 1 oracle oinstall 12965 11 16 2004 magic.default -rwxr-xr-x 1 oracle oinstall 15161 11 16 2004 mime.types -rwxr-xr-x 1 oracle oinstall 15161 11 16 2004 mime.types.default -rw-r--r-- 1 oracle oinstall 484 5 18 14:42 mod_oc4j.conf -rw-r--r-- 1 oracle oinstall 490 5 18 14:41 mod_oc4j.conf.15 -rw-r--r-- 1 oracle oinstall 490 5 17 12:25 mod_oc4j.conf.default -rw-r--r-- 1 oracle oinstall 503 7 2 2004 mod_oc4j.conf.tmp -rwxr-xr-x 1 oracle oinstall 779 5 17 12:23 mod_osso.conf -rwxr-xr-x 1 oracle oinstall 779 12 17 2004 mod_osso.conf.tmp -rwxr-xr-x 1 oracle oinstall 323 5 17 12:23 ohs_opmn.xml -rwxr-xr-x 1 oracle oinstall 323 12 17 2004 ohs_opmn.xml.sbs -rwxr-xr-x 1 oracle oinstall 566 5 18 14:44 ohstarget.xml -rwxr-xr-x 1 oracle oinstall 575 5 18 14:44 ohstarget.xml.15 -rwxr-xr-x 1 oracle oinstall 585 12 17 2004 ohstarget.xml.tmp -rwxr-xr-x 1 oracle oinstall 197 5 18 14:45 oracle_apache.conf -rwxr-xr-x 1 oracle oinstall 217 5 18 14:45 oracle_apache.conf.15 drwxr-xr-x 2 oracle oinstall 68 5 17 12:23 osso -rwxr-xr-x 1 oracle oinstall 357 11 16 2004 srm.conf -rwxr-xr-x 1 oracle oinstall 357 11 16 2004 srm.conf.default -rwxr-xr-x 1 oracle oinstall 7861 5 18 14:51 ssl.conf -rwxr-xr-x 1 oracle oinstall 8016 5 18 14:46 ssl.conf.15 -rwxr-xr-x 1 oracle oinstall 7192 12 17 2004 ssl.conf.tmp drwxr-xr-x 4 oracle oinstall 136 5 17 12:23 ssl.crl drwxr-xr-x 3 oracle oinstall 102 5 17 12:23 ssl.wlt guppy:conf oracle$ guppy:conf oracle$ guppy:conf oracle$ ls *.*.15 dms.conf.15 httpd.conf.15 mod_oc4j.conf.15 ohstarget.xml.15 oracle_apache.conf.15 ssl.conf.15 guppy:conf oracle$ guppy:conf oracle$
|
以下、変更したconfファイルのdiff。
PowerPC上のORACLE_HOMEのパスとIntel Mac上のパスが異なるのでパス関連及び、ホスト名関連は変更対象。
例えば、PowerMac G5上でOracle HTTP Server用のORACLE_HOMEは
/Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex
だったが、Intel Mac上では
/Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex
とした。
guppy:conf oracle$ guppy:conf oracle$ diff dms.conf.15 dms.conf 30c30 < Alias /index.html /Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/Apache/htdocs/index.html --- > Alias /index.html /Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/Apache/htdocs/index.html guppy:conf oracle$ guppy:conf oracle$ guppy:conf oracle$ guppy:conf oracle$ diff mod_oc4j.conf.15 mod_oc4j.conf 15c15 < Allow from localhost g5server g5server --- > Allow from localhost guppy guppy guppy:conf oracle$ guppy:conf oracle$ guppy:conf oracle$ guppy:conf oracle$ diff ohstarget.xml.15 ohstarget.xml 5c5 < <Property NAME="OracleHome" VALUE="/Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex"/> --- > <Property NAME="OracleHome" VALUE="/Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex" /> guppy:conf oracle$ guppy:conf oracle$ guppy:conf oracle$ guppy:conf oracle$ diff httpd.conf.15 httpd.conf 65c65 < ServerRoot "/Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/Apache" --- > ServerRoot "/Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/Apache" 76c76 < #LockFile /Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/Apache/logs/httpd.lock --- > #LockFile /Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/Apache/logs/httpd.lock 82c82 < PidFile /Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/Apache/logs/httpd.pid --- > PidFile /Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/Apache/logs/httpd.pid 90c90 < ScoreBoardFile /Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/Apache/logs/httpd.scoreboard --- > ScoreBoardFile /Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/Apache/logs/httpd.scoreboard 321c321 < ServerName g5server --- > ServerName guppy 328c328 < DocumentRoot "/Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/Apache/htdocs" --- > DocumentRoot "/Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/Apache/htdocs" 353c353 < <Directory "/Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/Apache/htdocs"> --- > <Directory "/Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/Apache/htdocs"> 456c456 < TypesConfig /Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/Apache/conf/mime.types --- > TypesConfig /Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/Apache/conf/mime.types 482c482 < MIMEMagicFile /Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/Apache/conf/magic --- > MIMEMagicFile /Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/Apache/conf/magic 502c502 < ErrorLog /Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/Apache/logs/error_log --- > ErrorLog /Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/Apache/logs/error_log 547c547 < CustomLog /Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/Apache/logs/access_log common --- > CustomLog /Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/Apache/logs/access_log common 553,554c553,554 < #CustomLog /Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/Apache/logs/referer_log referer < #CustomLog /Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/Apache/logs/agent_log agent --- > #CustomLog /Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/Apache/logs/referer_log referer > #CustomLog /Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/Apache/logs/agent_log agent 560c560 < #CustomLog /Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/Apache/logs/access_log combined --- > #CustomLog /Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/Apache/logs/access_log combined 582,584c582,584 < Alias /icons/ "/Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/Apache/icons/" < Alias /jservdocs/ "/Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/Jserv/docs/" < Alias /javacachedocs/ "/Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/javacache/javadoc/" --- > Alias /icons/ "/Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/Apache/icons/" > Alias /jservdocs/ "/Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/Jserv/docs/" > Alias /javacachedocs/ "/Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/javacache/javadoc/" 586c586 < Alias /perl/ "/Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/Apache/cgi-bin/" --- > Alias /perl/ "/Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/Apache/cgi-bin/" 589c589 < <Directory "/Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/Apache/icons"> --- > <Directory "/Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/Apache/icons"> 604c604 < ScriptAlias /cgi-bin/ "/Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/Apache/cgi-bin/" --- > ScriptAlias /cgi-bin/ "/Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/Apache/cgi-bin/" 608c608 < # "/Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/Apache/cgi-bin" should be changed to whatever your ScriptAliased --- > # "/Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/Apache/cgi-bin" should be changed to whatever your ScriptAliased 611c611 < <Directory "/Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/Apache/cgi-bin"> --- > <Directory "/Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/Apache/cgi-bin"> 824a825,826 > AddType text/xml .xbl > AddType text/x-compoment .htc 938c940 < Allow from localhost g5server g5server --- > Allow from localhost quppy guppy 950c952 < # Allow from localhost g5server g5server --- > # Allow from localhsot guppy guppy 989c991 < # CacheRoot "/Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/Apache/proxy" --- > # CacheRoot "/Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/Apache/proxy" 1038c1040 < SetEnv PERL5LIB "/Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/perl/lib/5.6.1: /Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/perl/lib/site_perl/5.6.1" --- > SetEnv PERL5LIB "/Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/perl/lib/5.6.1: /Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/perl/lib/site_perl/5.6.1" 1047c1049 < # PerlSetEnv PERL5LIB "/Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/perl/lib/5.6.1: /Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/perl/lib/site_perl/5.6.1" --- > # PerlSetEnv PERL5LIB "/Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/perl/lib/5.6.1: /Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/perl/lib/site_perl/5.6.1" 1084,1086c1086,1088 < Alias /fastcgi/ "/Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/fastcgi/" < ScriptAlias /fcgi-bin/ "/Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/Apache/fcgi-bin/" < <Directory "/Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/Apache/fcgi-bin"> --- > Alias /fastcgi/ "/Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/fastcgi/" > ScriptAlias /fcgi-bin/ "/Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/Apache/fcgi-bin/" > <Directory "/Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/Apache/fcgi-bin"> 1104c1106 < #include "/Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/Jserv/etc/jserv.conf" --- > #include "/Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/Jserv/etc/jserv.conf" 1128c1130 < Allow from localhost g5server g5server --- > Allow from localhost guppy guppy 1134c1136 < Allow from localhost g5server g5server --- > Allow from localhost guppy guppy 1139c1141 < include "/Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/Apache/conf/mod_oc4j.conf" --- > include "/Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/Apache/conf/mod_oc4j.conf" 1142c1144 < include "/Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/Apache/conf/dms.conf" --- > include "/Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/Apache/conf/dms.conf" 1148c1150 < include "/Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/Apache/conf/ssl.conf" --- > include "/Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/Apache/conf/ssl.conf" 1151c1153 < #include "/Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/Apache/conf/mod_osso.conf" --- > #include "/Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/Apache/conf/mod_osso.conf" 1154c1156 < include "/Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/Apache/conf/oracle_apache.conf" --- > include "/Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/Apache/conf/oracle_apache.conf" guppy:conf oracle$ guppy:conf oracle$ guppy:conf oracle$ guppy:conf oracle$ diff oracle_apache.conf.15 oracle_apache.conf 1,2c1,2 < include "/Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/modplsql/conf/plsql.conf" < include "/Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/modplsql/conf/marvel.conf" --- > include "/Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/modplsql/conf/plsql.conf" > include "/Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/modplsql/conf/marvel.conf" guppy:conf oracle$ guppy:conf oracle$ guppy:conf oracle$ guppy:conf oracle$ diff ssl.conf.15 ssl.conf 23,25c23,25 < #SSLSessionCache dbm:/Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/Apache/logs/ssl_scache < #SSLSessionCache shmht:/Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/Apache/logs/ssl_scache(512000) < SSLSessionCache shmcb:/Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/Apache/logs/ssl_scache(512000) --- > #SSLSessionCache dbm:/Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/Apache/logs/ssl_scache > #SSLSessionCache shmht:/Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/Apache/logs/ssl_scache(512000) > SSLSessionCache shmcb:/Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/Apache/logs/ssl_scache(512000) 36c36 < SSLMutex file:/Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/Apache/logs/ssl_mutex --- > SSLMutex file:/Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/Apache/logs/ssl_mutex 45c45 < SSLLog /Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/Apache/logs/ssl_engine_log --- > SSLLog /Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/Apache/logs/ssl_engine_log 81,85c81,85 < DocumentRoot "/Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/Apache/htdocs" < ServerName g5server < ServerAdmin you@your.address < ErrorLog /Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/Apache/logs/error_log < TransferLog /Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/Apache/logs/access_log --- > DocumentRoot "/Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/Apache/htdocs" > ServerName guppy > ServerAdmin your@mail.address > ErrorLog /Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/Apache/logs/error_log > TransferLog /Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/Apache/logs/access_log 100c100 < SSLWallet file:/Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/Apache/conf/ssl.wlt/default --- > SSLWallet file/Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/Apache/conf/ssl.wlt/default 117,118c117,118 < #SSLCARevocationPath /Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/Apache/conf/ssl.crl < #SSLCARevocationFile /Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/Apache/conf/ssl.crl/ca-bundle.crl --- > #SSLCARevocationPath /Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/Apache/conf/ssl.crl > #SSLCARevocationFile /Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/Apache/conf/ssl.crl/ca-bundle.crl 177c177 < <Directory "/Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/Apache/cgi-bin"> --- > <Directory "/Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/Apache/cgi-bin"> 186c186 < CustomLog /Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/Apache/logs/ssl_request_log \ --- > CustomLog /Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/Apache/logs/ssl_request_log \ guppy:conf oracle$
|
modplsql関連コンフィグファイルの変更
パスの変更とPlsqlDatabaseUsernameとPlsqlDefaultPageの値が変っているので注意。また接続先は、MacBook proにインストールしたOracle 10g R2 10.2.0.4.0 for MacOSX(Intel x86-64)になるので忘れずに変更する。
変更対象の.confファイルは予め、*.conf.15として退避しておいた。
guppy:conf oracle$ pwd /Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/modplsql/conf guppy:conf oracle$ guppy:conf oracle$ guppy:conf oracle$ guppy:conf oracle$ diff cache.conf.15 cache.conf 12c12 < PlsqlCacheDirectory /Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/modplsql/cache --- > PlsqlCacheDirectory /Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/modplsql/cache guppy:conf oracle$ guppy:conf oracle$ guppy:conf oracle$ guppy:conf oracle$ diff marvel.conf.15 marvel.conf 1,2c1,2 < Alias /i/ "/Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/marvel/images/" < <Location /pls/htmldb> --- > Alias /i/ "/Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/marvel/images/" > <Location /pls/apex> 7c7 < PlsqlDatabaseUsername HTMLDB_PUBLIC_USER --- > PlsqlDatabaseUsername APEX_PUBLIC_USER 9,10c9,10 < PlsqlDatabaseConnectString localhost:1521:tiger.macdeoracle.info ServiceNameFormat < PlsqlDefaultPage htmldb --- > PlsqlDatabaseConnectString localhost:1521:leopard1.macdeoracle.jp ServiceNameFormat > PlsqlDefaultPage apex 15c15 < PlsqlNLSLanguage AMERICAN_AMERICA.AL32UTF8 --- > PlsqlNLSLanguage JAPANESE_JAPAN..AL32UTF8 guppy:conf oracle$ guppy:conf oracle$ guppy:conf oracle$ guppy:conf oracle$ diff plsql.conf.15 plsql.conf 9c9 < LoadModule plsql_module /Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/modplsql/bin/modplsql.so --- > LoadModule plsql_module /Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/modplsql/bin/modplsql.so 20c20 < PlsqlLogDirectory /Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/modplsql/logs --- > PlsqlLogDirectory /Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/modplsql/logs 29c29 < include /Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/modplsql/conf/dads.conf --- > include /Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/modplsql/conf/dads.conf 34c34 < include /Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/modplsql/conf/cache.conf --- > include /Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/modplsql/conf/cache.conf guppy:conf oracle$
|
Oracle HTTP ServerのHOMEディレクトリ以下にあるtnsnames.oraもMacBook ProのOracle 10g R2へ接続するよう変更(念のため)
変更前のtnsnames.oraはtnsnames.ora.15として事前に退避しておいた。
guppy:admin oracle$ pwd /Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/network/admin guppy:admin oracle$ guppy:admin oracle$ guppy:admin oracle$ guppy:admin oracle$ diff tnsnames.ora.15 tnsnames.ora 1c1 < (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=tiger.macdeoracle.info))) = --- > (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=leopard1.macdeoracle.jp))) = 7,16c7 < (SERVICE_NAME = tiger.macdeoracle.info) < ) < ) < (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=tiger.macdeoracle.info))) = < (DESCRIPTION = < (ADDRESS_LIST = < (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521)) < ) < (CONNECT_DATA = < (SERVICE_NAME = tiger.macdeoracle.info) --- > (SERVICE_NAME = leopard1.macdeoracle.jp) guppy:admin oracle$
|
apache起動用シェルスクリプトの書き換え(パスの変更が主)
要変更と判断したshell scriptは事前に、*.15として退避しておいた。
guppy:bin oracle$ pwd /Users/shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/Apache/bin guppy:bin oracle$ guppy:bin oracle$ guppy:bin oracle$ diff apachectl.15 apachectl 25,26c25,26 < ORACLE_HOME=/Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex; export ORACLE_HOME < NLS_LANG=${NLS_LANG="JAPANESE_JAPAN.JA16EUC"}; export NLS_LANG --- > ORACLE_HOME=/Users/shared/u01/app/oracle/oracle/product/10.1.0/apex; export ORACLE_HOME > NLS_LANG=${NLS_LANG="JAPANESE_JAPAN.AL32UTF8"}; export NLS_LANG 29c29 < PERL5LIB=/Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/perl/lib/5.8.3: /Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/perl/lib/site_perl/5.8.3 ; export PERL5LIB --- > PERL5LIB=/Users/shared/u01/app/oracle/oracle/product/10.1.0/apex/perl/lib/5.8.3: /Users/shared/u01/app/oracle/oracle/product/10.1.0/apex/perl/lib/site_perl/5.8.3; export PERL5LIB 32c32 < TNS_ADMIN=${TNS_ADMIN="/Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/network/admin"}; export TNS_ADMIN --- > TNS_ADMIN=${TNS_ADMIN="/Users/shared/u01/app/oracle/oracle/product/10.1.0/apex/network/admin"}; export TNS_ADMIN 37c37 < LD_LIBRARY_PATH=/Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/lib: /Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/opmn/lib ; export LD_LIBRARY_PATH --- > LD_LIBRARY_PATH=/Users/shared/u01/app/oracle/oracle/product/10.1.0/apex/lib: /Users/shared/u01/app/oracle/oracle/product/10.1.0/apex/opmn/lib; export LD_LIBRAR_PATH 39c39 < LD_LIBRARY_PATH=/Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/lib: /Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/opmn/lib:${LD_LIBRARY_PATH} ; export LD_LIBRARY_PATH --- > LD_LIBRARY_PATH=/Users/shared/u01/app/oracle/oracle/product/10.1.0/apex/lib: /Users/shared/u01/app/oracle/oracle/product/10.1.0/apex/opmn/lib:${LD_LIBRARY_PATH}; export LD_LIBRARY_PATH 45c45 < DYLD_LIBRARY_PATH=/Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/lib: /Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/opmn/lib ; export DYLD_LIBRARY_PATH --- > DYLD_LIBRARY_PATH=/Users/shared/u01/app/oracle/oracle/product/10.1.0/apex/lib: /Users/shared/u01/app/oracle/oracle/product/10.1.0/apex/opmn/lib; export DYLD_LIBRARY_PATH 47c47 < DYLD_LIBRARY_PATH=/Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/lib: /Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/opmn/lib:${DYLD_LIBRARY_PATH} ; export DYLD_LIBRARY_PATH --- > DYLD_LIBRARY_PATH=/Users/shared/u01/app/oracle/oracle/product/10.1.0/apex/lib: /Users/shared/u01/app/oracle/oracle/product/10.1.0/apex/opmn/lib:${DYLD_LIBRARY_PATH}; export DYLD_LIBRARY_PATH 52c52 < PIDFILE=/Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/Apache/logs/httpd.pid --- > PIDFILE=/Users/shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/Apache/logs/httpd.pid 55c55 < HTTPD=/Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/Apache/bin/httpd --- > HTTPD=/Users/shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/Apache/bin/httpd 91c91 < if eval $HTTPD -d /Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/Apache $args --- > if eval $HTTPD -d /Users/shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/Apache $args 129c129 < if eval $HTTPD -d /Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/Apache $args --- > if eval $HTTPD -d /Users/shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/Apache $args 149c149 < if eval $HTTPD -d /Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/Apache -t $args > /dev/null --- > if eval $HTTPD -d /Users/shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/Apache -t $args > /del/null 261c261 < if eval $HTTPD -d /Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/Apache -t "$args" --- > if eval $HTTPD -d /Users/shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/Apache -t "$args" guppy:bin oracle$
|
以下、apachectlと同じディレクトリにあるが利用されているか不明なシェルスクリプトもとりあえず変更した。
guppy:bin oracle$ guppy:bin oracle$ guppy:bin oracle$ diff apxs.15 apxs 1c1 < #!/Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/perl/bin/perl --- > #!/Users/shared/u01/app/oracle/oracle/product/10.1.0/apex/perl/bin/perl 78,79c78,79 < my $CFG_PREFIX = q(/Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/Apache); # substituted via APACI install < my $CFG_SBINDIR = q(/Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/Apache/bin); # substituted via APACI install --- > my $CFG_PREFIX = q(/Users/shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/Apache); > my $CFG_SBINDIR = q(/Users/shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/Apache/bin); 81,82c81,82 < my $CFG_LIBEXECDIR = q(/Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/Apache/libexec); # substituted via APACI install < my $CFG_SYSCONFDIR = q(/Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/Apache/conf); # substituted via APACI install --- > my $CFG_LIBEXECDIR = q(/Users/shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/Apache/libexec); > my $CFG_SYSCONFDIR = q(/Users/shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/Apache/conf); guppy:bin oracle$ guppy:bin oracle$ guppy:bin oracle$ guppy:bin oracle$ diff dbmmanage.15 dbmmanage 1c1 < #!/Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/perl/bin/perl --- > #!/Users/shared/u01/app/oracle/oracle/product/10.1.0/apex/perl/bin/perl guppy:bin oracle$ guppy:bin oracle$ guppy:bin oracle$ guppy:bin oracle$ diff iasobf.15 iasobf 11c11 < ORACLE_HOME=/Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex --- > ORACLE_HOME=/Users/shared/u01/app/oracle/oracle/product/10.1.0/apex guppy:bin oracle$ guppy:bin oracle$ guppy:bin oracle$ guppy:bin oracle$ diff log_server_status.15 log_server_status 1c1 < #!/Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/perl/bin/perl --- > #!/Users/shared/u01/app/oracle/oracle/product/10.1.0/apex/perl/bin/perl 70c70 < $wherelog = "/Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/Apache/logs/graph/"; # Logs will be like "/Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex/Apache/Apache/logs/graph/19960312" --- > $wherelog = "/Users/shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/Apache/logs/graph/"; # Logs will be like "/Users/shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/Apache/logs/graph/19960312" guppy:bin oracle$ guppy:bin oracle$ guppy:bin oracle$ guppy:bin oracle$ diff root_sh_append.sh.15 root_sh_append.sh 3c3 < ORACLE_HOME="/Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex";export ORACLE_HOME --- > ORACLE_HOME="/Users/shared/u01/app/oracle/oracle/product/10.1.0/apex"; export ORACLE_HOME guppy:bin oracle$ guppy:bin oracle$ guppy:bin oracle$ guppy:bin oracle$ diff ssl2ossl.15 ssl2ossl 8c8 < ORACLE_HOME=/Volumes/Discus/4oracle/oracle/u01/app/oracle/product/10.1.0/apex --- > ORACLE_HOME=Users/shared/u01/app/oracle/oracle/product/10.1.0/apex guppy:bin oracle$
|
実行してみる(listenerおよびOracle Databaseインスタンスは起動ずみ)
尚、startohsは、apachectl startをalias定義しておいたもの(本エントリの最初の部分参照)
guppy:˜ oracle$ startohs /Users/Shared/u01/app/oracle/oracle/product/10.1.0/apex/Apache/Apache/bin/apachectl start: httpd started guppy:˜ oracle$
|
まずOralce HTTP Serverにアクセスしてみる・・・・OK.
APEX3.2の管理画面にアクセスしてログイン.....OK
ログインしたついでに開発ユーザと作業領域を作成しておく。
開発ユーザでログインしてみる。......OK。やった〜〜〜!!!!! うまくいった
最後にバージョン等も確認しておく。
「Oracle 10g R2 10.2.0.4.0 for MacOSX (Intel x86-64)で未サポートとなっているOracle HTTP ServerとPL/SQL gatewayをOracle 10g R1 10.1.0.3.0 for MacOSX (PowerPC)環境から移動し、Rosettaの力でそれらを動かしてAPEX3.2を使う!。」・・・・・一件落着。。。。次回はOraTweetでも遊んでみますか...
バックナンバー
・Oracle10g R2 for MacOSX (Intel x86-64) released !!!
・Leopard de Oracle10g release 2 (Intel x86-64)
・Leopard de Oracle10g R2 (Intel x86-64) #1
・Leopard de Oracle10g R2 (Intel x86-64) #2
・Leopard de Oracle10g R2 (Intel x86-64) #3 (ちょいと寄り道)
・Leopard de Oracle10g R2 (Intel x86-64) #4 (Companion CD installation)
・Leopard de Oracle10g R2 (Intel x86-64) #5 (dbstart and dbshut does not work!! But....)
・Leopard de Oracle10g R2 (Intel x86-64) #6 (onsがバグっている?件..)
・Leopard de Oracle10g R2 (Intel x86-64) #7 (iSQL*Plusのメッセージがものすごく怖い件)
・Leopard de Oracle10g R2 (Intel x86-64) #8 - (APEX3.2と遊ぶ #1)
・Leopard de Oracle10g R2 (Intel x86-64) #9 - (APEX3.2と遊ぶ #2)
・Leopard de Oracle10g R2 (Intel x86-64) #10 (APEX3.2と遊ぶ #3)
・Leopard de Oracle10g R2 (Intel x86-64) #11 (APEX3.2と遊ぶ #4)
・Leopard de Oracle10g R2 (Intel x86-64) #12 (APEX3.2と遊ぶ #5)
・Leopard de Oracle10g R2 (Intel x86-64) #13 (APEX3.2と遊ぶ #6)
・Leopard de Oracle10g R2 (Intel x86-64) #14 (APEX3.2と遊ぶ #7)
・Leopard de Oracle10g R2 (Intel x86-64) #15 (APEX3.2と遊ぶ #8)
・Leopard de Oracle10g R2 (Intel x86-64) #16 (APEX3.2と遊ぶ #9)
・Leopard de Oracle10g R2 (Intel x86-64) #17 (APEX3.2と遊ぶ #10)
最近のコメント