如何实现Oracle数据库库服务的启动和关闭?

发布网友 发布时间:2022-04-23 04:00

我来回答

2个回答

懂视网 时间:2022-04-29 22:20

1、启动ORACLE监听 首先要登录用户oracle:su - oracle oracle@localhost bin]$ lsnrctl --启动oracle监听命令 LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 29-OCT-2010 19:36:02 Copyright (c) 1991, 2005, Oracle. All rights reserved. Welcome to LSNRCTL, type "help" for information LSNRCTL>start 。。。。。。。。 Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service... The command completed successfully 启动成功 2.开户数据库 [oracle@localhost bin]$ sqlplus /nolog SQL> conn / as sysdba; Connected to an idle instance. SQL> startup ORACLE instance started. Total System Global Area 21474838 bytes Fixed Size 1220432 bytes Variable Size 335544496 bytes Database Buffers 1795162112 bytes Redo Buffers 15556608 bytes Database mounted. Database opened. (至此数据库启动,可以通过PL/SQL登录数据库进行操作了) 3.关闭ORCLAE 先关闭ORACLE数据库:如果要关闭数据库,可在sqlplus中执行shutdown命令,如下所示。 SQL> shutdown immediate //关闭数据库 Database closed. Database dismounted. ORACLE instance shut down. 再关闭监听程序: oracle@localhost bin]$ lsnrctl stop --关闭oracle监听命令 LSNRCTL for Linux: Version 11.1.0.6.0 - Production on 29-OCT-2008 14:39:31 Copyright (c) 1991, 2007, Oracle. All rights reserved. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=demoserver)(PORT= 1521))) The command completed successfully //关闭成功

 

Oracle数据库的启动与停止

标签:

热心网友 时间:2022-04-29 19:28

可以在系统的服务管理中进行管理,也可以通过命令行进行数据库服务的启动和关闭
启动数据库服务
net
start
"OracleServiceORACLEORCL"
net
start
"OracleOraDb11g_home1TNSListener"
关闭数据库服务
net
stop
"OracleOraDb11g_home1TNSListener"
net
stop
"OracleServiceORACLEORCL"
使用SQLPLUS也可以达到相同的效果
sqlplus
/
as
sysdba
startup
shutdown
immediate
通常数据库停止以后,对系统资源的占用基本可以忽略。

声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com