UJP - Oracle 11g Express Edition on Red Hat 7.6 その5 停止と起動

Life is fun and easy!

不正IP報告数

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

ブログ - Oracle 11g Express Edition on Red Hat 7.6 その5 停止と起動

Oracle 11g Express Edition on Red Hat 7.6 その5 停止と起動

カテゴリ : 
ハウツー
ブロガー : 
ujpblog 2019/1/21 1:53
 インストールしたOracle XEは起動している状態なので,停止して,起動してみる.

Oracleユーザにスイッチ

 起動と終了を行うには,oracleユーザに成りかわる.oracleユーザはインストールの時に作成されている.
[root@rhel76 ~]# su - oracle🆑
最終ログイン: 2019/01/21 (月) 01:14:16 JST
-bash-4.2$
 環境変数が設定されているか,パスが効いているかを確認する.
-bash-4.2$ which sqlplus🆑
/usr/bin/which: no sqlplus in (/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin)
-bash-4.2$
 設定されてないので環境変数を設定.
-bash-4.2$ source /u01/app/oracle/product/11.2.0/xe/bin/oracle_env.sh🆑
-bash-4.2$

Oracle XEの停止

 SQLPLUSでインスタンスに接続する.
-bash-4.2$ sqlplus / as sysdba🆑

SQL*Plus: Release 11.2.0.2.0 Production on 月 1月 21 01:42:57 2019

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

アイドル・インスタンスに接続しました。

SQL>
 shutdownで停止する.
SQL> shutdown🆑
データベースがクローズされました。
データベースがディスマウントされました。
ORACLEインスタンスがシャットダウンされました。
SQL> quit🆑
Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Productionとの
接続が切断されました。
-bash-4.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🈁
root     14217  5328  0 01:40 pts/0    00:00:00 grep --color=auto oracle
[root@rhel76 ~]#
 TNSLISNTERのみ稼働中.これはそのまま置いとく.


Oracle XEの起動

-bash-4.2$ sqlplus / as sysdba🆑

SQL*Plus: Release 11.2.0.2.0 Production on 月 1月 21 01:42:57 2019

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

アイドル・インスタンスに接続しました。

SQL>
 起動する.
SQL> startup🆑
ORACLEインスタンスが起動しました。

Total System Global Area 1068937216 bytes
Fixed Size		    2233344 bytes
Variable Size		  616565760 bytes
Database Buffers	  444596224 bytes
Redo Buffers		    5541888 bytes
データベースがマウントされました。
データベースがオープンされました。
SQL> quit🆑
Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Productionとの
接続が切断されました。
-bash-4.2$

トラックバック


広告スペース
Google