?? 命令行下起停oracle.txt
字號:
在Windows上命令行如何手工起停Oracle
日期:2007年7月20日 作者: 查看:[大字體 中字體 小字體]
*
添加到QQ書簽收藏 添加到雅虎收藏 添加到百度收藏 添加到Google書簽 添加到Yahoo書簽 添加到新浪ViVi 添加到搜狐網摘 添加到365Key網摘 添加到天極網摘 添加到diglog 添加到和訊網摘 添加到POCO網摘 添加到YouNote網摘 添加到博拉網 添加到天下圖摘 Del.icio.us digg reddit spurl BlinkList blogmarks
添加到QQ書簽收藏 添加到雅虎收藏 添加到百度收藏 添加到Google書簽 添加到Yahoo書簽 添加到新浪ViVi 添加到搜狐網摘 添加到365Key網摘 添加到天極網摘 添加到diglog 添加到和訊網摘 添加到POCO網摘 添加到YouNote網摘 添加到博拉網 添加到天下圖摘 Del.icio.us digg reddit spurl BlinkList blogmarks
*
在命令行我們可以用net命令手工啟動Oracle服務:
C:\>net start oracleserviceeygle
OracleServiceEYGLE 服務正在啟動 ..............
OracleServiceEYGLE 服務已經啟動成功。
在正常情況下,數據庫即可隨之啟動,如果數據庫不能啟動,則可以通過sysdba身份連接進入數據庫,手工mount并Open數據庫
C:\>sqlplus "/ as sysdba"
SQL*Plus: Release 10.2.0.1.0 - ProdUCtion on 星期五 8月 18 11:17:16 2006
Copyright (c) 1982, 2005, Oracle. All rights reserved.
連接到:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> select instance_name from v$instance;
INSTANCE_NAME
----------------
eygle
SQL> exit
從 Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options 斷開
停止同樣很簡單,net命令,一行即可:
C:\>net stop oracleserviceeygle
OracleServiceEYGLE 服務正在停止......
OracleServiceEYGLE 服務已成功停止。
在Windows上,使用net命令能否啟動數據庫,還受到一個注冊表參數的影響,這個參數是:ORA_<SID>_AUTOSTART
對于我的Oracle10g數據庫,這個鍵值位于HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\KEY_Ora10g,我的數據庫SID為eygle,這個參數就是:ORA_EYGLE_AUTOSTART
當這個參數設置為True時,當我們啟動服務時,Oracle數據庫就會隨之啟動;反之,數據庫就不會啟動。
測試1,ORA_EYGLE_AUTOSTART=true時:
C:\>net start oracleserviceeygle
OracleServiceEYGLE 服務正在啟動 .....................
OracleServiceEYGLE 服務已經啟動成功。
C:\>sqlplus "/ as sysdba"
SQL*Plus: Release 10.2.0.1.0 - Production on 星期二 8月 22 09:27:35 2006
Copyright (c) 1982, 2005, Oracle. All rights reserved.
連接到:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> select instance_name from v$instance;
INSTANCE_NAME
----------------
eygle
測試2,ORA_EYGLE_AUTOSTART=FALSE時:
C:\>net start oracleserviceeygle
OracleServiceEYGLE 服務正在啟動 .
OracleServiceEYGLE 服務已經啟動成功。
C:\>sqlplus "/ as sysdba"
SQL*Plus: Release 10.2.0.1.0 - Production on 星期二 8月 22 09:30:03 2006
Copyright (c) 1982, 2005, Oracle. All rights reserved.
已連接到空閑例程。
SQL>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -