Solaris下Oracle的基本操作

1 啓動數據庫監聽

  su -oracle——切換Oracle用戶(如果使用su oracle ,則啓動時不運行.profile用戶環境配置文件)

  $ lsnrctl start——啓動監聽

  2 啓動數據庫

  $ sqlplus "/ as sysdba"——用sys用戶登陸sqlplus

  SQL> startup——啓動數據庫

  SQL> exit——退出sqlplus

  或者

  $dbstart

  3 查看數據庫進程

  $ ps -ef|grep ora_——查看oracle進程

  oracle 688322 1 0 15:06:20 - 0:00 ora_smon_bxmis   oracle 696534 704704 0 15:06:35 pts/4 0:00 grep ora_   oracle 729224 1 0 15:06:20 - 0:00 ora_dbw0_bxmis   oracle 745618 1 0 15:06:20 - 0:00 ora_reco_bxmis   oracle 770216 1 0 15:06:20 - 0:00 ora_ckpt_bxmis   oracle 778394 1 0 15:06:20 - 0:00 ora_pmon_bxmis   oracle 843876 1 0 15:06:20 - 0:00 ora_qmn0_bxmis   oracle 901342 1 0 15:06:20 - 0:00 ora_lgwr_bxmis   oracle 925704 1 0 15:06:20 - 0:00 ora_cjq0_bxmis      $ ps -ef|grep lsnr——查看oracle監聽進程

  4 關閉數據庫

  $ sqlplus "/ as sysdba"

  SQL> shutdown immediate——關閉數據庫

  SQL> exit

  或者

  $dbshut

  5 停止數據庫監聽

  $ lsnrctl stop---停止監聽 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章