Oracle Database 10g XE (Linux32bit版)のインストール手順
Oracle Database 10g Express Edition (Linux32bit版)のインストール手順
■前提条件
Oracleにユーザ登録していること。下記のサイトから「登録リンク」をクリックし登録する。
http://www.oracle.com/jp/index.html
■ダウンロード
下記サイトからOracle Database 10g Express Edition (多言語対応)をダウンロードする。
http://www.oracle.com/technetwork/jp/database/express-edition/downloads/102xelinsoft-096626-ja.html
ダウンロードしたファイル:oracle-xe-univ-10.2.0.1-1.0.i386.rpm
■インストール
1. 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.
2. 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. データベース管理を行うアプリケーションのHTTPポート番号 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]: SYS・SYSTEMユーザーのパスワード 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: OS起動時にデータベースを開始するか 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"
■bashrcの編集
bashrcを開く。
# vi ~/.bashrc
下記を追記する。
. /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/oracle_env.sh
■確認
Oracleの管理画面(下記URL)にアクセスする。
・内部からアクセスする場合:http://127.0.0.1:8080/apex/
・外部からアクセスする場合:http://ホスト名:8080/apex/
・ユーザー名
以下の2つが用意されている。
sys
system
・パスワード
インストール時に設定したパスワードを使用する。
■起動と停止
・起動
# /etc/init.d/oracle-xe start
・停止
# /etc/init.d/oracle-xe stop
■sqlplusでログイン
・下記コマンドを実行する。
# sqlplus SQL*Plus: Release 10.2.0.1.0 - Production on 金 11月 10 11:04:30 2010 Copyright (c) 1982, 2005, Oracle. All rights reserved. ユーザー名を入力してください: system パスワードを入力してください: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production に接続されました。 SQL>
・DBの詳細を確認する
SQL> select instance_name, status, version, edition from v$instance; INSTANCE_NAME STATUS VERSION EDITION ---------------- ------------ ----------------- ------- XE OPEN 10.2.0.1.0 XE
(アンインストール手順)
■アンインストールするパッケージ名を探す
# rpm -qa |grep oracle oracle-xe-univ-10.2.0.1-1.0
■アンインストール
# rpm -e oracle-xe-univ-10.2.0.1-1.0