zoukankan      html  css  js  c++  java
  • 启动oracle的步骤

    启动oracle的步骤

    Linux下启动oracle分为以下两步:

    • 1.1、启动lsnrctl监听。
    • 1.2、启动数据库实例。

    启动oracle监听

    首先登陆服务器,切换到oracle用户。

    [admin@dataserver ~]$ su - oracle
    密码:
    [oracle@dataserver ~]
    

    执行lsnrctl start

    [oracle@dataserver admin]$ lsnrctl start
    
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 15-4月 -2016 15:09:15
    
    Copyright (c) 1991, 2009, Oracle.  All rights reserved.
    
    Starting /u01/app/oracle/product/11.2.0/dbhome_1/bin/tnslsnr: please wait...
    
    TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    System parameter file is /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
    Log messages written to /u01/app/oracle/diag/tnslsnr/dataserver/listener/alert/log.xml
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=30.85.227.28)(PORT=1521)))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=30.85.227.23)(PORT=1521)))
    
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
    STATUS of the LISTENER
    ------------------------
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    Start Date                15-4月 -2016 15:09:15
    Uptime                    0 days 0 hr. 0 min. 5 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
    Listener Log File         /u01/app/oracle/diag/tnslsnr/dataserver/listener/alert/log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=30.85.227.28)(PORT=1521)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=30.85.227.23)(PORT=1521)))
    Services Summary...
    Service "ORCL" has 1 instance(s).
      Instance "ORCL", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    [oracle@dataserver admin]$
    

    启动oracle实例

    以system用户身份登陆oracle

    [oracle@dataserver admin]$ sqlplus /nolog
    
    SQL*Plus: Release 11.2.0.1.0 Production on 星期五 4月 15 15:23:04 2016
    
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    
    SQL> conn as sysdba
    Enter user-name: system
    En
    

    然后启动实例,通过startup命令:

    SQL> startup
    ORACLE instance started.
    
    Total System Global Area 4.0620E+10 bytes
    Fixed Size          2216024 bytes
    Variable Size        2.3354E+10 bytes
    Database Buffers     1.7180E+10 bytes
    Redo Buffers           84054016 bytes
    Database mounted.
    Database opened.
    SQL>
    

      

  • 相关阅读:
    我会采更多的雏菊
    tomcat 9.0中,用cookie进行会话时出现的不合法字符问题
    踩坑tomcat8.5的cookie机制
    安装排错 max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
    centos7虚拟机安装elasticsearch5.0.x-安装篇
    远程登录多用户同时访问Win7系统远程桌面
    ubuntu安装mysqlclient
    ubuntu设置默认python版本
    rabbitmq
    csrf_execmp
  • 原文地址:https://www.cnblogs.com/xzlive/p/9968086.html
Copyright © 2011-2022 走看看