UJP - Oracle 11g Express Edition on Red Hat 7.6 その3 インスタンスの作成

Life is fun and easy!

不正IP報告数

Okan Sensor
 
メイン
ログイン
ブログ カテゴリ一覧

ブログ - Oracle 11g Express Edition on Red Hat 7.6 その3 インスタンスの作成

Oracle 11g Express Edition on Red Hat 7.6 その3 インスタンスの作成

カテゴリ : 
ハウツー
ブロガー : 
ujpblog 2019/1/21 1:24
 Oracle XEでは無償版ということで制限があって,決まったインスタンスが構築される.
 rpmでOracle XEのパッケージをインストールした際に,最後にYou must run '/etc/init.d/oracle-xe configure' as the root user to configure the database.と表示されるので,そのまま実行する.

 まずは,コマンドの存在を確認.
[root@rhel76 ~]# ls -la /etc/init.d/oracle-xe🆑
-rwxr-xr-x. 1 root root 19592  8月 29  2011 /etc/init.d/oracle-xe
[root@rhel76 ~]#
 ファイルがあって,実行パーミッションもあるようなので,実行.
[root@rhel76 ~]# /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]:
 Oracle Application ExpressというWeb版簡易管理ツールの起動ポートを訊いてきている.
 そのままエンターキーで次に進む.
Specify the HTTP port that will be used for Oracle Application Express [8080]:

/etc/init.d/oracle-xe: line 362: netstat: command not found
Specify a port that will be used for the database listener [1521]:
 RHEL7には,netstatコマンドが入ってないのでエラーになっている...
 Oracle データベースの通信ポートを設定する.デフォルトの1521で良い.
 そのままエンターキーで次に進む.
Specify a port that will be used for the database listener [1521]:

/etc/init.d/oracle-xe: line 405: netstat: command not found
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:
 sysとsystemようのアカウントのパスワードを設定する.以前は,managerとか,change_on_installとかがデフォルトだったが,現在はあえて設定が必要な模様.
 ここはあえて,managerを設定.(セキュリティ上好ましくないが練習なのでこれで)
initial configuration:manager🆑
Confirm the password:manager🆑

Do you want Oracle Database 11g Express Edition to be started on boot (y/n) [y]:
 起動時にOracleを起動するしたくないので,nを選択.

Do you want Oracle Database 11g Express Edition to be started on boot (y/n) [y]:n🆑

Starting Oracle Net Listener...Done
Configuring database...Done
Starting Oracle Database 11g Express Edition instance...Done
Installation completed successfully.
[root@rhel76 ~]#
 環境にもよるが,1〜2分で起動する.
 プロセスを確認.
[root@rhel76 ~]# ps -ef|grep oracle🆑
oracle   13406     1  0 01:13 ?        00:00:00 /u01/app/oracle/product/11.2.0/xe/
bin/tnslsnr LISTENER -inherit
oracle   13912     1  0 01:14 ?        00:00:00 xe_pmon_XE
oracle   13914     1  0 01:14 ?        00:00:00 xe_psp0_XE
oracle   13916     1  0 01:14 ?        00:00:00 xe_vktm_XE
oracle   13920     1  0 01:14 ?        00:00:00 xe_gen0_XE
oracle   13922     1  0 01:14 ?        00:00:00 xe_diag_XE
oracle   13924     1  0 01:14 ?        00:00:00 xe_dbrm_XE
oracle   13926     1  0 01:14 ?        00:00:00 xe_dia0_XE
oracle   13928     1  0 01:14 ?        00:00:00 xe_mman_XE
oracle   13930     1  0 01:14 ?        00:00:00 xe_dbw0_XE
oracle   13932     1  0 01:14 ?        00:00:00 xe_lgwr_XE
oracle   13934     1  0 01:14 ?        00:00:00 xe_ckpt_XE
oracle   13936     1  0 01:14 ?        00:00:00 xe_smon_XE
oracle   13938     1  0 01:14 ?        00:00:00 xe_reco_XE
oracle   13940     1  0 01:14 ?        00:00:00 xe_mmon_XE
oracle   13942     1  0 01:14 ?        00:00:00 xe_mmnl_XE
oracle   13944     1  0 01:14 ?        00:00:00 xe_d000_XE
oracle   13946     1  0 01:14 ?        00:00:00 xe_s000_XE
oracle   13948     1  0 01:14 ?        00:00:00 xe_s001_XE
oracle   13950     1  0 01:14 ?        00:00:00 xe_s002_XE
oracle   13952     1  0 01:14 ?        00:00:00 xe_s003_XE
oracle   14064     1  0 01:14 ?        00:00:01 xe_vkrm_XE
oracle   14066     1  0 01:14 ?        00:00:00 xe_qmnc_XE
oracle   14068     1  0 01:14 ?        00:00:00 xe_q000_XE
oracle   14070     1  0 01:14 ?        00:00:00 xe_q001_XE
oracle   14084     1  0 01:14 ?        00:00:00 xe_cjq0_XE
root     14120  5328  0 01:18 pts/0    00:00:00 grep --color=auto oracle
[root@rhel76 ~]#
 oracleユーザとしてプロセスが起動している模様.
 念のため,ユーザアカウントも確認しておく.
[root@rhel76 ~]# cat /etc/passwd|grep oracle🆑
oracle:x:1000:1000::/u01/app/oracle:/bin/bash
[root@rhel76 ~]#
 ログインシェルがbashになっているので確認してみる.
[root@rhel76 ~]# ls -la /u01/app/oracle:/bin/bash🆑
ls: /u01/app/oracle:/bin/bash にアクセスできません: そのようなファイルやディレクトリはありません
[root@rhel76 ~]#
 何もないのね.インストールはこれで終了.

トラックバック


広告スペース
Google