oracle启动服务与监听命令(linux环境)

发布时间:2020-12-08编辑:脚本学堂
本文介绍了oracle启动服务与监听命令的用法,在linux操作系统下,oracle如何启动服务与监听命令?需要的朋友参考下。

oracle启动服务与监听命令

首先,必须以oracle用户登陆:
1、启动数据库
 

复制代码 代码示例:

oracle@jbxue:~> sqlplus /nolog

SQL*Plus: Release 9.2.0.4.0 - Production on Fri Jan 20 02:29:37 2006

Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.

SQL> connect /as sysdba
Connected to an idle instance.
SQL> startup
ORACLE instance started.

Total System Global Area 135352820 bytes
Fixed Size 455156 bytes
Variable Size 109051904 bytes
Database Buffers 25165824 bytes
Redo Buffers 679936 bytes
Database linuxjishu/9952.html target=_blank class=infotextkey>mounted.

2、关闭数据库:
 

复制代码 代码示例:

oracle@jbxue:~> sqlplus /nolog

SQL*Plus: Release 9.2.0.4.0 - Production on Fri Jan 20 02:29:37 2006

Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.

SQL> connect /as sysdba
Connected to an idle instance.
SQL> shutdwon abort;

3、启动监听器
 

复制代码 代码示例:
oracle@jbxue:~> lsnrctl start

4、停止监听器
 

复制代码 代码示例:
oracle@jbxue:~> lsnrctl stop

5、查看监听器状态
 

复制代码 代码示例:
oracle@jbxue:~> lsnrctl
LSNRCTL> status
LSNRCTL> exit