Oracle:Oracle11gR2 Express Editionインストール
提供:KinusatiWiki
目次 |
Oracle 11g R2 Express Edition インストール
対象プラットフォーム
インストールマニュアルによると以下だそうです。
- Oracle Enterprise Linux 4 Update 7
- Oracle Enterprise Linux 5 Update 2
- Red Hat Enterprise Linux 4 Update 7
- Red Hat Enterprise Linux 5 Update 2
- SUSE Linux Enterprise Server 10 SP2
- SUSE Linux Enterprise Server 1
私はCentOS 5.7(x64)でがんばります。
やってみた感想ですが、あまりに簡単にインストール & インスタンス作成までできてしまうので、びっくりです。 Oracle Standard Editionとかのインストール、どれだけ複雑かがよくわかりますね。(できることも多いので仕方ないかもしれません)
ダウンロード
http://www.oracle.com/technetwork/database/express-edition/downloads/index.html
oracle-xe-11.2.0-1.0.x86_64.rpm.zipがダウンロードできます。
インストール
# unzip oracle-xe-11.2.0-1.0.x86_64.rpm.zip
[root@host1 ~]# unzip oracle-xe-11.2.0-1.0.x86_64.rpm.zip Archive: oracle-xe-11.2.0-1.0.x86_64.rpm.zip creating: Disk1/ creating: Disk1/upgrade/ inflating: Disk1/upgrade/gen_inst.sql creating: Disk1/response/ inflating: Disk1/response/xe.rsp inflating: Disk1/oracle-xe-11.2.0-1.0.x86_64.rpm cd Disk1 [root@host1 Disk1]# rpm -ivh oracle-xe-11.2.0-1.0.x86_64.rpm 準備中... ########################################### [100%] 1:oracle-xe ########################################### [100%] Executing post-install steps... You must run '/etc/init.d/oracle-xe configure' as the root user to configure the database. [root@host1 Disk1]# /etc/init.d/oracle-xe configure Oracle Database 11g Express Edition Configuration ------------------------------------------------- This will configure on-boot properties of Oracle Database 11g 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]: 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 11g Express Edition to be started on boot (y/n) [y]: Starting Oracle Net Listener...Done Configuring database...Done Starting Oracle Database 11g Express Edition instance...Done Installation completed successfully.
Oracleユーザの環境設定
oracleユーザに環境変数等をセットする
# su - oracle $ echo '. /u01/app/oracle/product/11.2.0/xe/bin/oracle_env.sh' >> ~/.bash_profile