ミヤビソリューションは、
琵琶湖の環境保護に賛同します

Oracle

 

Oracle Database 10g Express Edition は無償で使用できるオラクルデータベースです
無料で使用できるそうですが、制約等の詳しいことはオラクルのホームページで確認してくださいね

Linux 版には Debian の deb パッケージまであります
使わない手はありません

インストール

 

インストール方法は、Installing ページに詳しく書かれていますが、ここは apt でのリポジトリの指定からインストールまで書かれています

こちらでは上記 Downloads で入手できる deb パッケージでやってみます
ダウンロードはこちら

  • 1.ダウンロードページで deb パッケージを入手する
  • 2.Linux Swap 領域の確認、調整
  • 3.dpkgでインストールする
  • 4.configure により設定する
  • 5.Web により管理画面にアクセスする


deb パッケージのインストールコマンドは root ログインで以下です
dpkg -i oracle-xe-universal_10.2.0.1-1.0_i386.deb

まずは Linux の Swap 領域が 1GB 以上ないとインストールできないようです
そのエラーが以下です

# dpkg -i oracle-xe-universal_10.2.0.1-1.0_i386.deb
(データベースを読み込んでいます ... 現在 119865 個のファイルとディレクトリがインストールされています。)
(oracle-xe-universal_10.2.0.1-1.0_i386.deb から) oracle-xe-universal を展開して います...
This system does not meet the minimum requirements for swap space. Based on
the amount of physical memory available on the system, Oracle Database 10g
Express Edition requires 1006 MB of swap space. This system has 649 MB
of swap space. Configure more swap space on the system and retry the installation.
dpkg: oracle-xe-universal_10.2.0.1-1.0_i386.deb の処理中にエラーが発生しました (--install):
サブプロセス pre-installation script はエラー終了ステータス 1 を返しました
以下のパッケージの処理中にエラーが発生しました:
oracle-xe-universal_10.2.0.1-1.0_i386.deb


Linux の Swap を増やして再度挑戦
依存パッケージがないと怒られました

# dpkg -i oracle-xe-universal_10.2.0.1-1.0_i386.deb
(データベースを読み込んでいます ... 現在 119914 個のファイルとディレクトリがインストールされています。)
(oracle-xe-universal_10.2.0.1-1.0_i386.deb から) oracle-xe-universal を展開して います...
dpkg: 依存関係の問題により oracle-xe-universal の設定ができません:
oracle-xe-universal は以下に依存 (depends) します: libaio (>= 0.3.96) | libaio1 (>= 0.3.96) ...しかし:
パッケージ libaio はまだインストールされていません。
パッケージ libaio1 はまだインストールされていません。
dpkg: oracle-xe-universal の処理中にエラーが発生しました (--install):
依存関係の問題 - 設定を見送ります
以下のパッケージの処理中にエラーが発生しました:
oracle-xe-universal


表示されたパッケージを Synaptic でインストールして
またまた再挑戦

# dpkg -i oracle-xe-universal_10.2.0.1-1.0_i386.deb
(データベースを読み込んでいます ... 現在 122516 個のファイルとディレクトリがインストールされています。)
oracle-xe-universal 10.2.0.1-1.0 を (oracle-xe-universal_10.2.0.1-1.0_i386.deb で) 置換するための準備をしています ...
oracle-xe-universal を展開し、置換しています...
oracle-xe-universal (10.2.0.1-1.0) を設定しています ...
Executing Post-install steps...
You must run '/etc/init.d/oracle-xe configure' as the root user to configure the database.


入ったー!、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 <Enter> to accept the defaults.
Ctrl-C will abort.

Specify the HTTP port that will be used for Oracle Application Express [8080]:8081 ポート番号変えたければ変更

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: パスワードを指定
Confirm the password:

Do you want Oracle Database 10g Express Edition to be started on boot (y/n) [y]:y OSブート時に起動しますか

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:8081/apex"
#

これで最後に表示されたデータベースホームページにアクセスすればデータベースの管理ができます

[上へ戻る]