Oracle課程檔案,第七天

來源:互聯網
上載者:User

標籤:方式   建立   資料   star   home   常用   shu   rtu   tar   

資料庫管理

關閉資料庫有4中方式:

1.shutdown modes 關機模式

2.shutdown normal 關機正常

3.shutdown immediate 立即關閉 ★★ 常用命令

4.shutdown abort 直接關閉資料庫

startup:重啟

dbstart:啟

dbshut: 關


有三種關閉方式:
1、shutdown normal
正常方式關閉資料庫。


2、shutdown immediate
立即方式關閉資料庫。
在SVRMGRL中執行shutdown immediate,資料庫並不立即關閉,
而是在Oracle執行某些清除工作後才關閉(終止會話、釋放會話資源),
當使用shutdown不能關閉資料庫時,shutdown immediate可以完成資料庫關閉的操作。


3、shutdown abort
直接關閉資料庫,正在訪問資料庫的會話會被突然終止,
如果資料庫中有大量操作正在執行,這時執行shutdown abort後,重新啟動資料庫需要很長時間。


控制指令碼:
$ vi /etc/oratab
$ vi $ORACLE_HOME/bin/dbstart
$ vi $ORACLE_HOME/bin/dbshut


啟動一個資料庫需要三個步驟:

1、 建立一個Oracle執行個體(非安裝階段)

2、 由執行個體安裝資料庫(安裝階段)

3、 開啟資料庫(開啟階段)

 

監聽就是用來建立用戶端和伺服器端串連的。
當串連建立起來,監聽就沒用了。
你可以想成是迎賓人員。

em就是一個頁面管理

啟動監聽:lsnrctl start 查看監聽:lsnrctl status 停止監聽:lsnrctl stop

Oracle課程檔案,第七天

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.