zoukankan      html  css  js  c++  java
  • Oracle数据库的启动与停止

    oracle linux下开启与关闭
     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 2147483648 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                 //关闭成功 
  • 相关阅读:
    初心,勇敢~
    京东云,100倍故障时长赔付,呵呵
    京东万象数据接口,钱没花完,接口404,客服是白痴,无法维权
    随便写点
    关于UltraEdit的两个小问题
    Java
    2016年12月12日 回忆录随笔----------记录庸碌无为的一年四个月零十一天(一)
    iOS开发学习笔记
    sprintf函数php的详细使用方法
    BMS开发日记
  • 原文地址:https://www.cnblogs.com/lit10050528/p/4496368.html
Copyright © 2011-2022 走看看