SORICH SAMURAIby SORICH

hello,world

2010年6月
             
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30      

最新の記事

カテゴリー

月間アーカイブ

最新のトラックバック

最新のトラックバック

ubuntu    2009.03.04 [ Wed ] 22:34

Ubuntu Server 8.10にOracle XEをインストールします。



ここに詳しく書いてありました。
Debian、Ubuntu、KubuntuへのOracle Database XEのインストール
VMware Player, Ubuntu Linux + Oracle XE
Linuxのスワップ処理を最適化するためのヒント
OracleXE - PukiWiki

/etc/apt/sources.listに追記します。
deb http://oss.oracle.com/debian unstable main non-free
実行。
wget http://oss.oracle.com/el4/RPM-GPG-KEY-oracle  -O- | sudo apt-key add - 
sudo aptitude update
sudo aptitude install oracle-xe-universal

スワップ領域が足りないといわれているようです。。
(データベースを読み込んでいます ... 現在 59403 個のファイルとディレクトリがインストールされています。)
(.../oracle-xe-universal_10.2.0.1-1.1_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 1004 MB of swap space. This system has 891 MB 
of swap space.  Configure more swap space on the system and retry the installation.
dpkg: /var/cache/apt/archives/oracle-xe-universal_10.2.0.1-1.1_i386.deb の処理中にエラーが発生しました (--unpack):
 サブプロセス pre-installation script はエラー終了ステータス 1 を返しました
以下のパッケージの処理中にエラーが発生しました:
 /var/cache/apt/archives/oracle-xe-universal_10.2.0.1-1.1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Press return to continue.
現状のスワップ領域は、約894メガバイト。
root@ubuntu:~# swapon -s
Filename                                Type            Size    Used    Priority
/dev/sda5                               partition       915664  2824    -1
とりあえず512メガバイトでスワップファイルを作成
/dev/zeroって見慣れないけど、/dev/nullとか、/dev/randomとか、おきまりのパターンがあるみたい。
root@ubuntu:~# dd if=/dev/zero of=/swapfile bs=1024 count=524288
524288+0 records in
524288+0 records out
536870912 bytes (537 MB) copied, 4.76 s, 113 MB/s
スワップファイルの準備
root@ubuntu:~# mkswap /swapfile
Setting up swapspace version 1, size = 524284 KiB
no label, UUID=ae6ede6e-28ca-4a34-9f4a-79059bfeb683
スワップファイルのマウント
root@ubuntu:~# swapon /swapfile
増えた!
root@ubuntu:~# swapon -s
Filename                                Type            Size    Used    Priority
/dev/sda5                               partition       915664  2828    -1
/swapfile                               file            524280  0       -2
ちなみに、今作ったスワップファイルをブート時に自動的にマウントする場合は、/etc/fstabに追記すればよいみたいです。
/swapfile       none    swap    sw      0       0
で、再び、Oracleのインストール。
今度は成功!

(データベースを読み込んでいます ... 現在 59403 個のファイルとディレクトリがインストールされています。)
(.../oracle-xe-universal_10.2.0.1-1.1_i386.deb から) oracle-xe-universal を展開しています...
Processing triggers for man-db ...
oracle-xe-universal (10.2.0.1-1.1) を設定しています ...
update-rc.d: warning: /etc/init.d/oracle-xe missing LSB style header
Executing Post-install steps...
-e You must run '/etc/init.d/oracle-xe configure' as the root user to configure the database.


Press return to continue.
インストールの最後に表示されてるメッセージのとおりに実行します。
root@ubuntu:~# /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.

Specify the HTTP port that will be used for Oracle Application Express [8080]:

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]:

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"
インストール完了!

トラックバック(0) コメント(0)

カテゴリ:

コメントする




トラックバック(0)

このブログ記事を参照しているブログ一覧: [ubuntu][oracle]Oracle Database 10g Express Editionをインストールする


このブログ記事に対するトラックバックURL:

Copyright(C) SORICH Ltd. All Rights Reserved.