時間:2015-06-28 00:00:00 來源:IT貓撲網(wǎng) 作者:網(wǎng)管聯(lián)盟 我要評論(0)
1 啟動數(shù)據(jù)庫監(jiān)聽
su -oracle――切換Oracle用戶(如果使用su oracle ,則啟動時不運行.profile用戶環(huán)境配置文件)
$ lsnrctl start――啟動監(jiān)聽
2 啟動數(shù)據(jù)庫
$ sqlplus "/ as sysdba"――用sys用戶登陸sqlplus
SQL*Plus: Release 9.2.0.5.0 - Production on Thu Oct 9 15:06:11 2003
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Connected to an idle instance.
SQL> startup――啟動數(shù)據(jù)庫
ORACLE instance started.
Total System Global Area 538412728 bytes
Fixed Size 743096 bytes
Variable Size 268435456 bytes
Database Buffers 268435456 bytes
Redo Buffers 798720 bytes
Database mounted.
Database opened.
SQL> exit――退出sqlplus
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.5.0 - 64bit Production
With the Partitioning option
JServer Release 9.2.0.5.0 - Production
或者
$dbstart
3 查看數(shù)據(jù)庫進程
$ 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監(jiān)聽進程
4 關閉數(shù)據(jù)庫
$ sqlplus "/ as sysdba"
SQL*Plus: Release 9.2.0.5.0 - Production on Thu Oct 9 15:07:04 2003
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.5.0 - 64bit Production
With the Partitioning option
JServer Release 9.2.0.5.0 - Production
SQL> shutdown immediate――關閉數(shù)據(jù)庫
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> exit
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.5.0 - 64bit Production
With the Partitioning option
JServer Release 9.2.0.5.0 - Production
或者
$dbshut
5 停止數(shù)據(jù)庫監(jiān)聽
$ lsnrctl stop---停止監(jiān)聽
關鍵詞標簽:Solaris,Oracle
相關閱讀
熱門文章 Oracle中使用alter table來增加,刪除,修改列的語法 oracle中使用SQL語句修改字段類型-oracle修改SQL語句案例 誤刪Oracle數(shù)據(jù)庫實例的控制文件 為UNIX服務器設置Oracle全文檢索
人氣排行 oracle中使用SQL語句修改字段類型-oracle修改SQL語句案例 Oracle中使用alter table來增加,刪除,修改列的語法 ORACLE SQL 判斷字符串是否為數(shù)字的語句 ORACLE和SQL語法區(qū)別歸納(1) oracle grant 授權語句 ORACLE修改IP地址后如何能夠使用 如何加速Oracle大批量數(shù)據(jù)處理 Oracle刪除表的幾種方法