Linux下启动/关闭Oracle
2019-08-12 16:54
127 查看
原文链接:https://www.cnblogs.com/muhehe/p/7944887.html
一、Linux下启动Oracle
Linux下启动Oracle分为两步:
1)启动监听;
2)启动数据库实例;
1.登录服务器,切换到oracle用户,或者以oracle用户登录
[admin@dataserver ~]$ su - oracle 密码: [oracle@dataserver ~]$
2.打开监听服务
[oracle@localhost ~]$ lsnrctl start
可以通过lsnrctl status命令查看Oracle监听器运行状况
[oracle@localhost ~]$ lsnrctl status
3.以SYS用户身份登录Oracle
[oracle@localhost ~]$ sqlplus /nolog SQL*Plus: Release 11.2.0.1.0 Production on Fri Dec 1 23:29:19 2017 Copyright (c) 1982, 2009, Oracle. All rights reserved. SQL> conn /as sysdba Connected to an idle instance.
切换用户:
CONN 用户名/密码 [AS SYSDBA],如果是sys用户一定要写上AS SYSDBA
4.通过startup命令启动实例
SQL> startup ORACLE instance started. Total System ... ... Database mounted. Database opened. SQL>
二、Linux下关闭Oracle
1.关闭数据库实例
SQL> shutdown Database closed. Database dismounted. ORACLE instance shut down. SQL> quit Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options
2.关闭监听器
[oracle@localhost ~]$ lsnrctl stop
相关文章推荐
- Linux下启动和关闭Oracle服务与数据库
- Linux下Oracle 10g自动启动与关闭的实现
- linux下启动关闭oracle
- Linux 中 Oracle 数据库启动和关闭
- linux环境下oracle启动和关闭命令!!!
- 浅析linux下Oracle 10g启动与关闭
- Linux启动Oracle,关闭防火墙
- 在linux下启动关闭oracle
- Linux下如何启动关闭Oracle
- Linux下oracle启动/关闭监听(bash:lsnrctl:command not found)
- Linux下如何启动、关闭Oracle以及打开关闭监听
- Linux下oracle的启动与关闭
- Linux下关闭和启动Oracle的方法
- linux下启动、关闭oracle
- Linux Oracle 数据库和监听 的启动 关闭
- linux 上启动和关闭oracle
- linux下设置自动启动和关闭oracle实例、监听
- Linux下启动和关闭Oracle服务与数据库
- linux 下启动关闭oracle数据库以及oracle相关知识
- oracle for linux 开机启动及停机关闭脚本