1、启动Oracle相关系统服务
在Windows系统服务中,启动OracleServiceORCL和OracleOraDb11g_home1TNSListener
可以使用管理员权限执行以下命令
net start OracleServiceORCLnet start OracleOraDb11g_home1TNSListener
通常上面两个服务启动后,数据库服务会自动启动。
如果数据库服务未启动,需要按下面步骤手工启动数据库服务。
2、手工启动数据库服务
在命令提示符下键入以下命令
sqlplus / as sysdbastartup
windows下Oracle的启动一般是伴随windows自动启动 自动关闭的 但是如果同过任务管理器杀掉了Oracle进程 如果通过命令行方式打开Oracle就会报错误信息
解决办法如下
Microsoft Windows XP [Version ]
(C) Copyright Microsoft Corp
C:/Documents and Settings/wangbao>cd/
C:/>net stop OracleServiceWBQ
The OracleServiceWBQ service is stopping
The OracleServiceWBQ service could not be stopped
C:/>net start OracleServiceWBQ
The OracleServiceWBQ service is starting
The OracleServiceWBQ service was started successfully
C:/>lsnrctl stop
LSNRCTL for bit Windows: Version Production on MAR : :
Copyright (c) Oracle Corporation All rights reserved
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC )))
The mand pleted successfully
C:/>lsnrctl start
LSNRCTL for bit Windows: Version Production on MAR : :
Copyright (c) Oracle Corporation All rights reserved
Starting tnslsnr: please wait
TNSLSNR for bit Windows: Version Production
System parameter file is C:/UserDefine/oracle/ora /neork/admin/listener ora
Log messages written to C:/UserDefine/oracle/ora /neork/log/listener log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=// /pipe/EXTPROC ipc
)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=scn asiapacific hpqc
)(PORT= )))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC )))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for bit Windows: Version Produc
tion
Start Date MAR : :
Uptime days hr min sec
Trace Level off
Security OFF
SNMP OFF
Listener Parameter File C:/UserDefine/oracle/ora /neork/admin/listener ora
Listener Log File C:/UserDefine/oracle/ora /neork/log/listener log
Listening Endpoints Summary
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=// /pipe/EXTPROC ipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=scn asi)(POR
T= )))
Services Summary
Service PLSExtProc has instance(s)
Instance PLSExtProc status UNKNOWN has handler(s) for this service
Service wbq has instance(s)
Instance wbq status UNKNOWN has handler(s) for this service
The mand pleted successfully
C:/>sqlplus /nolog
SQLPlus: Release Production on Thu Mar : :
Copyright (c) Oracle Corporation All rights reserved
SQL> connect sys/change_on_install as sysdba
Connected
SQL>
lishixinzhi/Article/program/Oracle/201311/17222
以上就是关于如何在Windows下启动Oracle数据库服务全部的内容,包括:如何在Windows下启动Oracle数据库服务、Windows下Oracle数据库进程的启动和关闭、等相关内容解答,如果想了解更多相关内容,可以关注我们,你们的支持是我们更新的动力!
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)