Ubuntu 10.04啟動/關(guān)閉數(shù)據(jù)庫、監(jiān)聽、iSQL*Plus和企業(yè)管理器 |
發(fā)布時間: 2012/8/16 16:58:07 |
一 啟動和停止數(shù)據(jù)庫 1.啟動數(shù)據(jù)庫 1.1 登錄。 XX-laptop:~$ sqlplus "scott/tiger as sysdba" 將出現(xiàn)如下連接數(shù)據(jù)庫信息: 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ù)庫系統(tǒng)成功。 1.2 啟動數(shù)據(jù)庫。運行 startup 命令啟動數(shù)據(jù)庫。 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ù)庫正常啟動。 2.關(guān)閉數(shù)據(jù)庫 2.1 登錄。與1.1相同,不再贅述。 2.2 成功登錄數(shù)據(jù)庫系統(tǒng)后,運行 shudown 命令關(guān)閉數(shù)據(jù)庫。 SQL> shutdown immediate Database closed. Database dismounted. Oracle instance shut down. 表明數(shù)據(jù)庫已關(guān)閉。 二 啟動和停止監(jiān)聽程序 Oracle 的監(jiān)聽程序主要是為客戶端的連接提供接口,在控制臺窗口鍵入如下命令: 1 啟動監(jiān)聽程序。 注意:不是在sql中,而是在bsh等中。 XX-laptop:~$ lsnrctl 將出現(xiàn)如下監(jiān)聽程序信息: 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)聽程序的一系列啟動和配置情況信息列表。信息行的最后一行是“The command completed successfully”字樣時,監(jiān)聽程序啟動成功。 2. 關(guān)閉 Oracle10g 監(jiān)聽程序 :運行 stop 命令關(guān)閉監(jiān)聽程序。 LSNRCTL> stop 信息行的最后一行是“The command completed successfully”字樣時,監(jiān)聽程序停止成功。 ===================================================================== 三 啟動和停止iSQL*Plus。 1 啟動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啟動成功。 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 啟動控制臺 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 表明啟動成功。 2.停止控制臺: 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.allwellnessguide.com】 服務(wù)器租用/服務(wù)器托管中國五強!虛擬主機域名注冊頂級提供商!15年品質(zhì)保障!--億恩科技[ENKJ.COM] |