« APEX! | トップページ | Mac de APEX! (formerly called HTML DB) #2 »

2006年8月31日 (木) / Author : Hiroshi Sekiguchi.

Mac de APEX! (formerly called HTML DB) #1

Oracle HTML DBが、改名され、Oracle Application Express 2.2 としてリリースされたようだ。
2006年8月31日現在、日本オラクルではアナウンスだけで、まだダウンロードできないのだが、本国のOTNでは、ダウンロードできるようになっていたので、早速、試してみる事にする。
新規インストールでは面白くないので、HTML DB 2.0から APEX 2.2 へのアップグレードを試してみることにする。

最初に、APEX 2.2のダウンロードから。

今回は、PowerBook G4 MacOSX 10.4.7 を使った。構築手順は以前の記録を参考にしてほしい。また、2006年8月現在、MacOSX Tigerに正式対応したOracle10g はリリースされていない。この手順に従い、Oracle10g R1 EE for MacOSX Serverと、Oracle HTTP Server 10g及び、HTML DB 2.0をインストールした。 Oracle Application Express 2.2 (APEX 2.2)の前提条件はクリアしているはずだが、念のために初期化パラメータなど、少々確認しておく。


尚、APEX2.2のインストール手順は、apex_2.2.zipにも付属するドキュメントに記述されている通りに行う。マニュアルが間違っていなければ、もしくは、バグに遭遇しなければ、ドキュメントに従い進めることにする。(HTML DB 1.5からHTML DB 2.0 へのアップグレードとほぼ同じのようなので問題になることはないだろう。しっかり、マニュアル読んで行えば問題ない!。。はず。)


前提条件は、付属するドキュメント「Installation Guide」 の 「2 Oracle Application Express Installation Requirements」に記載されているのでここでは特に解説はしない。

1)shared_pool_size初期化パラメータ

私の環境では自動設定され、現時点では80MBにされている。最低でも100MBになるように shared_pool_sizeパラメータを変更する。
(sga_targetパラメータはそのままで、shared_pool_sizeパラメータの最小値を設定し、あとの調整はOracleに任せる。)

pb17:˜ oracle$ sqlplus /nolog

> conn / as sysdba
接続されました。
SYS> show parameter shared_pool_size

NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
__shared_pool_size big integer 80M
shared_pool_size big integer 0
SYS> show parameter target

NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
archive_lag_target integer 0
db_flashback_retention_target integer 1440
fast_start_io_target integer 0
fast_start_mttr_target integer 0
pga_aggregate_target big integer 92M
sga_target big integer 280M
SYS>


SYS> select * from v$sgainfo;

NAME BYTES RES
-------------------------------- ---------- ---
Fixed SGA Size 778888 No
Redo Buffers 262144 No
Buffer Cache Size 192937984 Yes
Shared Pool Size 83886080 Yes
Large Pool Size 4194304 Yes
Java Pool Size 8388608 Yes
Streams Pool Size 0 Yes
Granule Size 4194304 No
Maximum SGA Size 293601280 No
Startup overhead in Shared Pool 25165824 No
Free SGA Memory Available 0

11行が選択されました。

SYS> show parameter pfile

NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
spfile string /Volumes/WorkVol/u01/app/oracl
e/product/10.1.0/tiger/dbs/spf
iletiger.ora

SYS> alter system set shared_pool_size='100M' scope=both;

システムが変更されました。

SYS> select * from v$sgainfo;

NAME BYTES RES
-------------------------------- ---------- ---
Fixed SGA Size 778888 No
Redo Buffers 262144 No
Buffer Cache Size 171966464 Yes
Shared Pool Size 104857600 Yes
Large Pool Size 4194304 Yes
Java Pool Size 8388608 Yes
Streams Pool Size 0 Yes
Granule Size 4194304 No
Maximum SGA Size 293601280 No
Startup overhead in Shared Pool 25165824 No
Free SGA Memory Available 0

11行が選択されました。

上記以外の前提条件はすべてクリアしていたので、先へ進む。


2)ダウンロードした apex_2.2.zipの解凍

ダウンロードした apex_2.2.zipを解凍すると以下のように展開される。(Terminalからunzipコマンドで解凍するのもよいが、MacOSXではダブルクリックでの解凍も可能だ。好きな方法で解凍すればよいだろう)

pb17:/Volumes/WorkVol/temp/apex oracle$ ll
total 224
-r--r--r-- 1 oracle oinstall 9481 Jul 24 12:59 apex_epg_config.sql
-r--r--r-- 1 oracle oinstall 3537 Jul 11 11:53 apexins.sql
-r--r--r-- 1 oracle oinstall 6698 Jul 18 15:12 apexvalidate.sql
drwxr-xr-x 20 oracle oinstall 680 Jul 27 14:38 builder
drwxr-xr-x 394 oracle oinstall 13396 Jul 26 01:55 core
-r--r--r-- 1 oracle oinstall 81746 Jul 24 12:59 coreins.sql
drwxrwxr-x 10 oracle oinstall 340 Jul 24 16:00 doc
drwxr-xr-x 876 oracle oinstall 29784 Jul 24 14:32 images
-r--r--r-- 1 oracle oinstall 1078 May 23 06:32 load_trans.sql
drwxrwxr-x 3 oracle oinstall 102 Jul 24 16:01 patch
drwxr-xr-x 4 oracle oinstall 136 Jul 24 14:32 utilities
-rw-rw-rw- 1 oracle oinstall 3985 Jun 23 10:03 welcome.html
pb17:/Volumes/WorkVol/temp/apex oracle$

3)APEX 2.2のインストール

この例では、既に、HTML DB 2.0がインストールされているので、HTML DB 2.0からAPEX 2.2へのアップグレードを行うことになるのだが、実行するスクリプトは新規インストールと同じである。「Installation Guide」の「3.2 Installing the Oracle Application Express Software」の手順通りにAPEXのインストールスクリプトを実行する。

pb17:/Volumes/WorkVol/temp/apex oracle$ sqlplus /nolog

SQL*Plus: Release 10.1.0.3.0 - Production on 木 8月 31 21:03:10 2006

Copyright (c) 1982, 2004, Oracle. All rights reserved.

> conn / as sysdba
接続されました。
SYS>

SYS> @apexins apex_master SYSAUX SYSAUX TEMP /i/ NONE
. ____ ____ ____ ____
. / ¥ | ¥ /¥ / | /
.| || / / ¥ | | |
.| ||--- ---- | | |--
.| || ¥ / ¥ | | |
. ¥____/ | ¥/ ¥ ¥____ |____ ¥____
.
. Application Express Installation.
...................................

-----中略-----

Thank you for installing Oracle Application Express.

Oracle Application Express is installed in the FLOWS_020200 schema.

The structure of the link to the Application Express administration services is as follows:
http://host:port/pls/apex/apex_admin

The structure of the link to the Application Express development interface is as follows:
http://host:port/pls/apex

-- Now beginning upgrade. This will take several minutes.-------
-- Ensuring template names are unique -------
-- Migrating metadata to new schema -------
-- Switching builder to new schema -------
-- Migrating SQL Workshop metadata -------
-- Upgrading new schema. -------
-- Copying preferences to new schema. -------
Upgrade completed successfully no errors encountered.
-- Upgrade is complete -----------------------------------------
Upgradeのタイミング。
経過: 00:04:24.28
JOB_QUEUE_PROCESSES: 20
Completing registration process.
Validating installation.
Validate Installationのタイミング。
経過: 00:09:47.66
Complete Installationのタイミング。
経過: 01:27:15.85

とPowerBook G4 の 1Ghzでは多少時間がかかるが、問題なくHTML DB 2.0から、APEX 2.2へのアップグレードは終了する
。尚、HTML DB 1.5などからも直接アップグレードできる。


また、ログには、以下のエラーが記録されていたのだが、wwv_flow_upgrade_progress表が存在しないためなので問題はない。

drop   table wwv_flow_upgrade_progress
*
行1でエラーが発生しました。:
ORA-00942: 表またはビューが存在しません。


今日はここまで。

| |

トラックバック


この記事へのトラックバック一覧です: Mac de APEX! (formerly called HTML DB) #1:

コメント

コメントを書く