若澤大資料 Oracle單例項資料庫 啟停

2021-08-19 06:39:21 字數 1494 閱讀 2618

啟動資料庫

以oracle使用者通過

telnet

方式登入資料庫作業系統上,

執行命令:

$ echo $oracle_sid

proplh

如果結果不是proplh,需要重新設定oracle_sid,命令如下:

$ export oracle_sid=proplh

$ lsnrctl start

在提示資訊的最後一行,出現以下資訊,說明lsnrctl服務啟動成功:

the command completed successfully

$ sqlplus /nolog

sql*plus: release 9.2.0.4.0 - production on mon aug 21 17:58:43 2006

sql>

conn / as sysdba

connected.

sql>

startup

關閉資料庫

以oracle使用者通過

telnet

方式登入資料庫作業系統上,

執行命令:

$ echo $oracle_sid

proplh

如果結果不是proplh,需要重新設定oracle_sid,命令如下:

$export oracle_sid=proplh

$sqlplus /nolog

sql*plus: release 9.2.0.4.0 - production on tue aug 15 12:49:43 2006

sql>

conn / as sysdba

connected.

sql>

shutdown immediate

(一般需要等2--5 分鐘左右的時間)

database closed.

database dismounted.

oracle instance shut down.

(出現上述提示說明資料庫已經正常關閉了)

sql>

exit

(退出sqlplus)

$ (回到oracle使用者的提示符下)

以oracle使用者關閉oracle資料庫的監聽程序

$lsnrctl stop

lsnrctl for hpux: version 9.2.0.4.0 - production on 21-aug-2006 18:00:37

connecting to (description=(address=(protocol=tcp)(host=10.203.4.117)(port=1521)))

the command completed successfully

(出現上述提示說明:oracle資料庫的監聽程序已經正常關閉了)

若澤大資料早課 day3 2018 5 4

1.談談學到現在,帶r引數的命令有哪些?cp r rm r2.同事說,開啟那台電腦 服務的web介面,你們覺得哪幾種途徑可以嘗試知道?暫時空著3.mv和cp誰快 在同檔案系統中mv的速度要比cp快4.個人環境變數檔案在哪,一般什麼檔案,什麼命令檢視,怎樣生效 個人環境變數檔案 家目錄下.bash p...

Oracle單例項資料庫基礎概念

完整的 oracle 資料庫通常由兩部分組成 oracle 資料庫例項和資料庫。1 資料庫是一系列物理檔案的集合 資料檔案,控制檔案,聯機日誌,引數檔案等 2 oracle 資料庫例項則是一組 oracle 後台程序 執行緒以及在伺服器分配的共享記憶體區。在啟動 oracle 資料庫伺服器時,實際上...

Oracle 12c 單例項資料庫安裝

1.環境配置 關閉防火牆firewall root orcl chkconfig iptables off 設定selinux 不裝載任何安全策略 root orcl vi etc sysconfig selinux selinux enforcing 修改為 selinux disabled 重啟...