1. 切换到oracle用户: su - oracle
  2. 进入sqlplus控制台:sqlplus /nolog;
  3. 以系统管理员登录:connect / as sysdba;
  4. 启动数据库:startup
  5. exit退出sqlplus控制台,然后进入监听控制器:lsnrctl
  6. 启动监听:start
  7. exit退出监听控制器

演示示例:

[root@pppCentos ~]# su - oracle
[oracle@pppCentos ~]$ sqlplus /nologSQL*Plus: Release 11.2.0.3.0 Production on Thu Jul 26 08:27:49 2018Copyright (c) 1982, 2011, Oracle.  All rights reserved.SQL> connect / as sysdba;
Connected to an idle instance.
SQL> startup
ORACLE instance started.Total System Global Area 3023110144 bytes
Fixed Size          2232192 bytes
Variable Size        2197815424 bytes
Database Buffers      805306368 bytes
Redo Buffers           17756160 bytes
Database mounted.
Database opened.
SQL> lsnrctl
SP2-0042: unknown command "lsnrctl" - rest of line ignored.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@pppCentos ~]$ lsnrctlLSNRCTL for Linux: Version 11.2.0.3.0 - Production on 26-JUL-2018 08:29:34Copyright (c) 1991, 2011, Oracle.  All rights reserved.Welcome to LSNRCTL, type "help" for information.LSNRCTL> start
Starting /home/oracle/app/oracle/product/11.2.0/dbhome_1/bin/tnslsnr: please wait...TNSLSNR for Linux: Version 11.2.0.3.0 - Production
System parameter file is /home/oracle/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
Log messages written to /home/oracle/app/diag/tnslsnr/pppCentos/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=pppCentos)(PORT=1521)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=pppCentos)(PORT=1521)))
TNS-12535: TNS:operation timed outTNS-12560: TNS:protocol adapter errorTNS-00505: Operation timed outConnecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 11.2.0.3.0 - Production
Start Date                26-JUL-2018 08:30:41
Uptime                    0 days 0 hr. 1 min. 3 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /home/oracle/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File         /home/oracle/app/diag/tnslsnr/pppCentos/listener/alert/log.xml
Listening Endpoints Summary...(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=pppCentos)(PORT=1521)))(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
Services Summary...
Service "orcl" has 1 instance(s).Instance "orcl", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
LSNRCTL> exit
[oracle@pppCentos ~]$ exit
logout
[root@pppCentos ~]#

Linux下启动oracle_无名小仙男相关推荐

  1. Linux 命令学习_无名小仙男

    Linux从本地复制文件到远程服务器,需要输入远程服务器的密码 scp dc.jar root@10.82.71.15:/data/deploy Linux从远程服务器复制文件到本地,需要输入远程服务 ...

  2. (字符串分解器)StringTokenizer类的使用_无名小仙男

    java中的StringTokenizer是一个用来分隔String的应用类 构造函数 StringTokenizer(String str):构造一个用来解析str的StringTokenizer对 ...

  3. java单例模式_无名小仙男

    单例模式就是有且仅有一个实例化对象.这有什么用处呢?其实有一些对象我们只需要一个,比如说:线程池.缓存.对话框.处理偏好设置和注册表的对象.日志对象.充当打印机显卡等设备的驱动程序的对象.事实上,这些 ...

  4. oracle 启动 linux监听,Linux下启动Oracle服务和监听程序

    $ su – oracle $ sqlplus / nolog sql> conn / as sysdba sql> startup                 #启动Oracle,需 ...

  5. linux 下停止监听程序,Linux下启动Oracle服务和监听程序步骤

    Linux下启动Oracle服务和监听程序启动和关闭步骤整理如下: 1.安装oracle: 2.创建oracle系统用户: 3./home/oracle下面的.bash_profile添加几个环境变量 ...

  6. 启动mq命令 linux,RocketMQ:Linux下启动server和broker的命令

    目录 QUESTION:RocketMQ:Linux下启动server和broker的命令? ANSWER: 一.启动mqnamesrv 1.1当前执行 1.2后台运行 二.启动mqbroker 2. ...

  7. RocketMQ:Linux下启动server和broker的命令

    目录 QUESTION:RocketMQ:Linux下启动server和broker的命令? ANSWER: 一.启动mqnamesrv 1.1当前执行 1.2后台运行 二.启动mqbroker 2. ...

  8. Linux下启动/关闭Oracle服务和 oracle监听启动/关闭/查看状态

    文章目录 一.Linux下启动Oracle 二步曲 1)启动监听 2)启动数据库实例 二.Linux下启动Oracle 实战操作 2.1. 登录服务器,切换到oracle用户,或者以oracle用户登 ...

  9. linux svn 服务 关闭,Linux下启动、关闭SVN服务

    Linux下启动/关闭Oracle 一.Linux下启动Oracle Linux下启动Oracle分为两步: 1)启动监听: 2)启动数据库实例: 1.登录服务器,切换到oracle用户,或者以ora ...

最新文章

  1. 李剑锋:意识科学就在身边
  2. 如何利用数据仓库优化数据分析?
  3. sql和泛型方法返回泛型_基于泛型编程的序列化实现方法
  4. [转]jQuery选择器总结
  5. 程序员在未来会变成廉价劳动力(农民工)吗?
  6. oracle的md5加密
  7. 为什么写Java程序需要接口
  8. Codeforces Round #564 (Div. 2)A
  9. 20155212 2017-2018-1 《信息安全系统设计》第8周课下作业
  10. rust油桶用什么打_草莓用什么膨大素好?草莓膨大剂什么时间打?草莓用什么肥料膨大...
  11. Linux 关机/关闭主机/关闭系统/重启系统/注销系统的命令
  12. eviews安装教程
  13. C#实现图像下一张上一张
  14. 辞职日记----记录31岁的程序员跳槽心态
  15. Exchange2010安装配置
  16. 智能卡APDU的命令及其解析
  17. linux 查看gnu,查看GNU/Linux信息
  18. Java调用第三方天气预报接口示范
  19. 【天光学术】公共管理研究生应该怎样写好学位论文?
  20. java 接入门禁卡_javaweb项目获取大华门禁刷卡记录

热门文章

  1. Chrome浏览器运行超图三维场景
  2. 【转帖】WebRTC回声抵消模块简要分析
  3. SecureCRT标签永久显示IP地址
  4. #2002 无法登录 MySQL 服务器,phpMyAdmin
  5. 使用es的新姿势 2.x 5.x 6.x通用
  6. Geometric multimodal representation learning
  7. 英特服务器的spec整数性能,未来四核心处理器SPEC性能展望
  8. QGraphicsItem设置绘图区域和鼠标响应以及碰撞检测区域,并实现碰撞检测
  9. 软考证书具体用途--详细介绍
  10. Hotspot 重量级锁ObjectMonitor(一) 源码解析