zoukankan      html  css  js  c++  java
  • oracle数据库的启动、关闭、连接

    登陆数据库

    方法一:

    $ sqlplus / as sysdba

    [oracle@dev /]$ sqlplus / as sysdba
    
    SQL*Plus: Release 11.2.0.1.0 Production on Fri May 31 09:34:26 2019
    
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    
    
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    
    SQL>

    方法二:

    $ sqlplus /nolog

    SQL> conn /as sysdba

    [oracle@dev ~]$ sqlplus /nolog
    
    SQL*Plus: Release 11.2.0.1.0 Production on Fri May 31 17:05:28 2019
    
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    
    SQL>
    SQL> conn /as sysdba
    Connected.
    SQL>
    SQL>

    关闭数据库

    SQL> shutdown immediate;

    SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.

    装载启动数据库到mount状态

    SQL> startup mount

    SQL> startup mount
    ORACLE instance started.
    
    Total System Global Area 1603411968 bytes
    Fixed Size                  2213776 bytes
    Variable Size             402655344 bytes
    Database Buffers         1191182336 bytes
    Redo Buffers                7360512 bytes
    Database mounted.

    启动数据库

    SQL> startup

    SQL> startup
    ORACLE instance started.
    
    Total System Global Area 1603411968 bytes
    Fixed Size                  2213776 bytes
    Variable Size             402655344 bytes
    Database Buffers         1191182336 bytes
    Redo Buffers                7360512 bytes
    Database mounted.
    Database opened.

    查看oracle 启动状态:

    SQL> select status from v$instance;

    end

  • 相关阅读:
    GITHUB随笔 15-5月 junit
    github心得
    (转)哪个瞬间让你突然觉得逛知乎真有用?
    0-1背包问题(the knapsack problem)
    对VSCode在安装了Dev-cpp的电脑上的配置
    非全日制考研资料(未完待续)
    CSS那些事读书笔记-2
    CSS那些事读书笔记-1
    前端面试准备-1
    工作日记-一个有趣的定时任务实现
  • 原文地址:https://www.cnblogs.com/djlsunshine/p/10956497.html
Copyright © 2011-2022 走看看