« Mac De Apex3.0 #1 | トップページ | Mac De APEX3.0 #3 »

2007年3月20日 (火) / Author : Hiroshi Sekiguchi.

Mac De Apex3.0 #2

HTMLDB2.0からAPEX3.0への移行作業。その2。

事前準備は整ったので、HTMLDB2.0からAPEX3.0へupgradeする。
尚、新規インストールなのか移行なのかを意識することはない楽で簡単ですね。
apex_3.0.zipを解凍した際に作成されるapexディレクトリ直下にあるapexins.sqlを実行するだけでよいので、非常に簡単。とは言っても心配ならはバックアップを取得しておいたほうがよいだろう。


尚、APEXのインストールでは、リリース毎に新たなスキーマが作成され、旧スキーマが残されている。
APEX3.0に移行したとしても、容易に以前のリリースに戻せるようになっている。 したがって、移行後すぐに旧スキーマを削除せず、しばらくの間は移行前のスキーマを残しておくという方法も取れる。
HTMLDB2.0からAPEX3.0の例でいえば、 FLOWS_020000が、HTMLDB2.0のスキーマで、新たにFLOWS_030000というスキーマが作成される。FLOWS_020000と関連するイメージファイル、marvel.conf(dads.confの場合もあり)を別途退避しておけば、その必要があればHTMLDB2.0環境へ戻すこともできる。

前置きが長くなったが作業再開。

尚、apexins.sqlでは、英語版がインストールされるので注意が必要、日本語リソースを別途インストールしないと、APEXのメニューなどは英語表記のままだ(online helpには日本語ヘルプは用意されていないようだ。)

ただし、日本語リソースをインストールしなくても、日本語を扱うアプリケーションは作成できる(ようだ)。
簡単に確認しただけなので、全く問題とは言い切れないが・・・・。


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

F
-
2


FOO_USR
------------------------------
FLOWS_020000


PL/SQLプロシージャが正常に完了しました。


PL/SQLプロシージャが正常に完了しました。


レコードが選択されませんでした。


PL/SQLプロシージャが正常に完了しました。

I. O R A C L E S Y S I N S T A L L P R O C E S S
...create flows user

ユーザーが作成されました。

・・・・中略・・・・

......Message master_detail
......Message master_detail_edit
......Message master_detail_detail
......Message sw_empty_script
......Message sw_greater_than_30k
......Message confirm_create_master_detail
......Message confirm_3_page_master_detail
......Message confirm_2_page_master_detail
......Message confirm_master_table
......Message confirm_master_display_columns
......Message confirm_detail_table
......Message confirm_detail_display_columns
......Message confirm_master_sort
......Message confirm_include_master_report

・・・・中略・・・・

...PAGE 0: Page Zero
...PAGE 1: Application Builder
...PAGE 2: Supporting Objects
...PAGE 3: Breadcrumb Entries
...PAGE 4: Define Master Table
...PAGE 5: Define Detail Table
...PAGE 6: Item Label Grid Edit
...PAGE 7: Delete Multiple Items
...PAGE 8: Referenced Components
...PAGE 9: Shared Components

・・・・中略・・・・

...done load verification images
Verification Images Loadのタイミング。
経過: 00:00:01.13
VII. L O A D E N G L I S H D I C T I O N A R Y

トリガーが変更されました。

...10000 rows
...20000 rows
...30000 rows
...40000 rows
...50000 rows
...60000 rows
...70000 rows
English Dictionaryのタイミング。
経過: 00:04:56.56



Thank you for installing Oracle Application Express.

Oracle Application Express is installed in the FLOWS_030000 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. -------
-- Updating user account expiration. -------
Upgrade completed successfully no errors encountered.
-- Upgrade is complete -----------------------------------------
Upgradeのタイミング。
経過: 00:01:15.78
JOB_QUEUE_PROCESSES: 10

Performing Application Express component validation - please wait...

Completing registration process.
Validating installation.
Validate Installationのタイミング。
経過: 00:05:56.91
Complete Installationのタイミング。
経過: 00:31:02.26

● お約束、imagesフォルダの入れ替え。


このディレクトリは、前述のapexins.sqlで指定した /i/ という仮想ディレクトリにマッピングされている。
仮想ディレクトリ /i/ にマップされている実ディレクトリはmarvel.confで確認できる。
尚、利用しているHTTPサーバー毎に構成ファイルが異なるので要注意。詳細は、マニュアルの4.3.1.1 Copying the Images Directory When Upgradingを参照のこと。

G5Server:˜/u01/app/oracle/product/10.1.0/htmlDB/marvel oracle$ ls -l images*
drw-rw---- 998 oracle oinstall 33932 Mar 17 20:19 images
drw-rw---- 1334 oracle oinstall 45356 Mar 10 22:10 images_1_5
G5Server:˜/u01/app/oracle/product/10.1.0/htmlDB/marvel oracle$ mv images images_2_0
G5Server:˜/u01/app/oracle/product/10.1.0/htmlDB/marvel oracle$ cp -rf /Volumes/DiscusWork/temp/apex/images .
G5Server:˜/u01/app/oracle/product/10.1.0/htmlDB/marvel oracle$ ls -l images*
drw-rw---- 881 oracle oinstall 29954 Mar 17 22:45 images
drw-rw---- 1334 oracle oinstall 45356 Mar 10 22:10 images_1_5
drw-rw---- 998 oracle oinstall 33932 Mar 17 20:19 images_2_0


● HTTPサーバーの構成ファイルの書き換え


利用しているHTTPサーバーに対応した構成ファイルをapex30向けに書き換える。
当環境では、marvel.confである。変更内容は以下の通り。

(余談だが、marvel.confを書き換えずに試したところ、特に問題もなくAPEX3.0が利用できた。URLのパスを変更したくない場合には、他のパラメータを変更するだけでも問題ないかもしれない。詳細未確認。)

G5Server:˜/u01/app/oracle/product/10.1.0/htmlDB/Apache/modplsql/conf oracle$ diff marvel.conf.org marvel.conf
2c2
< <Location /pls/htmldb>
---
> <Location /pls/apex>
7c7
< PlsqlDatabaseUsername HTMLDB_PUBLIC_USER
---
> PlsqlDatabaseUsername APEX_PUBLIC_USER
10c10
< PlsqlDefaultPage htmldb
---
> PlsqlDefaultPage apex
13c13
< PlsqlDocumentProcedure wwv_flow_file_manager.process_download
---
> PlsqlDocumentProcedure wwv_flow_file_mgr.process_download
15c15
< PlsqlNLSLanguage JAPANESE_JAPAN.JA16SJISTILDE
---
> PlsqlNLSLanguage JAPANESE_JAPAN.AL32UTF8
G5Server:˜/u01/app/oracle/product/10.1.0/htmlDB/Apache/modplsql/conf oracle$

今日はここまで、日本語リソースのインストールへつづく。



聞いている曲:

Howard Jones - The Peaceful Tour - Things Can Only Get Better Howard Jones - The Peaceful Tour - Things Can Only Get Better

| |

トラックバック


この記事へのトラックバック一覧です: Mac De Apex3.0 #2:

コメント

コメントを書く