Ubuntu 10.04啟動(dòng)/關(guān)閉數(shù)據(jù)庫(kù)、監(jiān)聽(tīng)、iSQL*Plus和企業(yè)管理器 |
發(fā)布時(shí)間: 2012/8/16 16:58:07 |
一 啟動(dòng)和停止數(shù)據(jù)庫(kù) 1.啟動(dòng)數(shù)據(jù)庫(kù) 1.1 登錄。 XX-laptop:~$ sqlplus "scott/tiger as sysdba" 將出現(xiàn)如下連接數(shù)據(jù)庫(kù)信息: SQL*Plus: Release 10.2.0.1.0 - Production on Mon Aug 9 15:30:16 2010 - Connected to an idle instance. SQL> 表明登錄數(shù)據(jù)庫(kù)系統(tǒng)成功。 1.2 啟動(dòng)數(shù)據(jù)庫(kù)。運(yùn)行 startup 命令啟動(dòng)數(shù)據(jù)庫(kù)。 SQL> startup Oracle instance started. Total System Global Area 603979776 bytes Fixed Size 1220796 bytes Variable Size 171970372 bytes Database Buffers 423624704 bytes Redo Buffers 7163904 bytes Database mounted. Database opened. SQL> 表示數(shù)據(jù)庫(kù)正常啟動(dòng)。 2.關(guān)閉數(shù)據(jù)庫(kù) 2.1 登錄。與1.1相同,不再贅述。 2.2 成功登錄數(shù)據(jù)庫(kù)系統(tǒng)后,運(yùn)行 shudown 命令關(guān)閉數(shù)據(jù)庫(kù)。 SQL> shutdown immediate Database closed. Database dismounted. Oracle instance shut down. 表明數(shù)據(jù)庫(kù)已關(guān)閉。 二 啟動(dòng)和停止監(jiān)聽(tīng)程序 Oracle 的監(jiān)聽(tīng)程序主要是為客戶端的連接提供接口,在控制臺(tái)窗口鍵入如下命令: 1 啟動(dòng)監(jiān)聽(tīng)程序。 注意:不是在sql中,而是在bsh等中。 XX-laptop:~$ lsnrctl 將出現(xiàn)如下監(jiān)聽(tīng)程序信息: LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 09-AUG-2010 15:37:47 Copyright (c) 1991, 2005, Oracle. All rights reserved. Welcome to LSNRCTL, type "help" for information. LSNRCTL> start 將出現(xiàn)監(jiān)聽(tīng)程序的一系列啟動(dòng)和配置情況信息列表。信息行的最后一行是“The command completed successfully”字樣時(shí),監(jiān)聽(tīng)程序啟動(dòng)成功。 2. 關(guān)閉 Oracle10g 監(jiān)聽(tīng)程序 :運(yùn)行 stop 命令關(guān)閉監(jiān)聽(tīng)程序。 LSNRCTL> stop 信息行的最后一行是“The command completed successfully”字樣時(shí),監(jiān)聽(tīng)程序停止成功。 ===================================================================== 三 啟動(dòng)和停止iSQL*Plus。 1 啟動(dòng)iSQL*Plus。 XX-laptop:~$ isqlplusctl start iSQL*Plus 10.2.0.1.0 Copyright (c) 2003, 2005, Oracle. All rights reserved. Starting iSQL*Plus ... iSQL*Plus started. 看到 iSQL*Plus started.表示iSQL*Plus啟動(dòng)成功。 2 關(guān)閉iSQL*Plus。 XX-laptop:~$ isqlplusctl stop iSQL*Plus 10.2.0.1.0 Copyright (c) 2003, 2005, Oracle. All rights reserved. Stopping iSQL*Plus ... iSQL*Plus stopped. 看到 iSQL*Plus stopped.表示iSQL*Plus停止成功。 ===================================================================== 四 使用企業(yè)管理器 1 啟動(dòng)控制臺(tái) XX-laptop:~$emctl start dbconsole TZ set to PRC Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0 Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved. http://xhlh-laptop:1158/em/console/aboutApplication Starting Oracle Enterprise Manager 10g Database Control ......................... started. ------------------------------------------------------------------ Logs are generated in directory /opt/ora10/product/10.2.0/db_1/xhlh-laptop_openlab/sysman/log 表明啟動(dòng)成功。 2.停止控制臺(tái): XX-laptop:~$ emctl stop dbconsole TZ set to PRC Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0 Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved. http://xhlh-laptop:1158/em/console/aboutApplication Stopping Oracle Enterprise Manager 10g Database Control ... ... Stopped. 表明關(guān)閉成功。 本文出自:億恩科技【www.cmtents.com】 服務(wù)器租用/服務(wù)器托管中國(guó)五強(qiáng)!虛擬主機(jī)域名注冊(cè)頂級(jí)提供商!15年品質(zhì)保障!--億恩科技[ENKJ.COM] |