Oracleインストール

フリーのOracle10gExpressEditionをインストールしてみた。

作成日/更新日

2009.10.14/YYYY.MM.DD

OS

Fedora

手順 目次

  1. ダウンロード
  2. rpmでインストール
  3. 設定
  4. 環境変数の設定
  5. 起動
  6. システムの起動・停止
  7. サービスの起動・停止
  8. 管理画面



rpmでインストール

# ls -l *.rpm
  • rwxr-xr-x. 1 fedora fedora 262909363 2009-08-26 22:07 oracle-xe-univ-10.2.0.1-1.0.i386.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.

設定

# /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]:8080
MEMO:管理画面(WEB)のポート番号を設定(これって未入力だと[]内のが使われるのかな)

Specify a port that will be used for the database listener [1521]:1521
MEMO:データベースリスナーのポート番号を設定

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:
MEMO:OracleユーザーのSYSとSYSTEMのパスワードを設定。(これを忘れちゃダメ)

Do you want Oracle Database 10g Express Edition to be started on boot (y/n) [y]:y
MEMO:OS起動時にOracleを起動するかの確認。

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に以下を追加
# . /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/oracle_env.sh

起動

とりあえずSQL*Plusが起動できるようになった。
# sqlplus

SQL*Plus: Release 10.2.0.1.0 - Production on 日 10月 11 00:24:54 2009

Copyright (c) 1982, 2005, Oracle. All rights reserved.

ユーザー名を入力してください: system
パスワードを入力してください:


Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
に接続されました。
SQL>

システムの起動・停止

起動

# /etc/init.d/oracle-xe start

停止

# /etc/init.d/oracle-xe stop

サービスの起動・停止

起動

# service oracle-xe start

停止

# service oracle-xe stop

管理画面

管理画面へログイン
http://127.0.0.1:8080/apex
最終更新:2013年05月14日 09:43