CentOS5.2にOracle Database 10g Express Editionをインストール



IBM DB2 9.5でpureXMLを使ってみましたが、Oracleのサイトで
なかなか刺激的な資料を見つけました。

Oracle XML DB

Oracle XML DBとDB2 v9.1 pureXMLとの比較:Viperの検証 ホワイトペーパー

※DB2の現行バージョンはV9.5なので、若干内容が古いかも知れません。


早速、Oracleからフリーで提供されている
「Oracle Database 10g Express Edition」
をインストールしてみます。

ダウンロードはこちら。
http://www.oracle.com/technology/products/database/xe/index.html

※ユーザ登録が必要です。

右側の「FREE DOWNLOAN」の下にあるLinuxを選択。





Acceptを選択して、oracle-xe-univ-10.2.0.1-1.0.i386.rpmを
ダウンロードします。





rpm形式なので、そのまま素直にインストール。


#rpm -ivh oracle-xe-univ-10.2.0.1-1.0.i386.rpm
準備中... ########################################### [100%]
1:oracle-xe-univ ########################################### [100%]
Executing Post-install steps...
You must run '/etc/init.d/oracle-xe configure' as the root user to
configure the database.


あっさり終了しました。

'/etc/init.d/oracle-xe configure'を実行してね。と
お願いされているので、初期化を実行します。



#/etc/init.d/oracle-xe configure

Oracle Database 10g Express Edition Configuration
-------------------------------------------------
This will configure on-boot properties of Oracle Database 10g Express
Edition. The following questions will determine whether the database should
be starting upon system boot, the ports it will use, and the passwords that
will be used for database accounts. Press to accept the defaults.
Ctrl-C will abort.

###Web管理画面を公開するポートを指定
###8080でよいので、そのままエンターを押しました。
Specify the HTTP port that will be used for Oracle Application Express [8080]:

###リスナーのポートを指定
###1521でよいので、そのままエンターを押しました。
Specify a port that will be used for the database listener [1521]:

Specify a password to be used for database accounts. Note that the same
password will be used for SYS and SYSTEM. Oracle recommends the use of
different passwords for each database account. This can be done after
initial configuration:

###systemユーザのパスワードを入力します
Password can't be null. Enter password:
Confirm the password:

###起動時にOracleを実行して欲しいので、yを選択
Do you want Oracle Database 10g Express Edition to be started on boot (y/n) [y]:y

Starting Oracle Net Listener...Done
Configuring Database...Done
Starting Oracle Database 10g Express Edition Instance...Done
Installation Completed Successfully.
To access the Database Home Page go to "http://127.0.0.1:8080/apex"



設定もすんなり完了しました。

http://127.0.0.1:8080/apexにアクセスすると、ログイン画面が表示されます。
ユーザ名にsystem
パスワードは/etc/init.d/oracle-xe configureを実行したときに
設定したパスワードを入力するとログインできます。





Oracleは使ったことないので、よくわかっていないのですが、多分systemユーザーで
テーブルを作ったり・・・というのはお行儀が悪いのだと思うので、
まず通常使用するときのユーザーを作成しました。

「管理」-「データベース・ユーザー」を選択し、ユーザーの作成をクリックします。




「oracleuser」というユーザーを作成します。
ユーザー権限は、とりあえず全部チェックをつけました。




ちゃんとORACLEユーザーが作成できたようです。




今度、WindowsにODBCドライバをインストールし、
ODBC経由でXML列を含んだテーブルを作ってみます。




もどる