Oracle Express EditionをCentOS 5.3(x86_64,最小構成インストール)にインストールした際のメモ。
Oracle 11g R2も出荷されたことだし、XEも11gになることを期待。
前提パッケージの導入
# yum -y install libaio.i386 bc
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: ftp.jaist.ac.jp
* updates: ftp.jaist.ac.jp
* addons: ftp.jaist.ac.jp
* extras: ftp.jaist.ac.jp
base | 1.1 kB 00:00
updates | 951 B 00:00
addons | 951 B 00:00
extras | 1.1 kB 00:00
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package libaio.i386 0:0.3.106-3.2 set to be updated
---> Package bc.x86_64 0:1.06-21 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
========================================================================================================================
Package Arch Version Repository Size
========================================================================================================================
Installing:
bc x86_64 1.06-21 base 110 k
libaio i386 0.3.106-3.2 base 19 k
Transaction Summary
========================================================================================================================
Install 2 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 129 k
Downloading Packages:
(1/2): libaio-0.3.106-3.2.i386.rpm | 19 kB 00:00
(2/2): bc-1.06-21.x86_64.rpm | 110 kB 00:00
------------------------------------------------------------------------------------------------------------------------
Total 275 kB/s | 129 kB 00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : bc [1/2]
Installing : libaio [2/2]
Installed: bc.x86_64 0:1.06-21 libaio.i386 0:0.3.106-3.2
Complete!
#
※bcはpost-installスクリプトで使われている
oracle-xe-univパッケージの導入
# rpm -Uvh oracle-xe-univ-10.2.0.1-1.0.i386.rpm
Preparing... ########################################### [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.
#
Oracle XE設定
# /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"
#
Database Home Pageにloclhost以外からもアクセスできるようにする
# . /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/oracle_env.sh
# sqlplus system
SQL*Plus: Release 10.2.0.1.0 - Production on Sun Sep 27 13:11:58 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Enter password:
Connected to:
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
SQL> EXEC DBMS_XDB.SETLISTENERLOCALACCESS(FALSE);
PL/SQL procedure successfully completed.
SQL> exit
Disconnected from Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
#
参考資料
Oracle® Database Express Edition Installation Guide 10g Release 2 (10.2) for Linux