oracle11g 实例启动,Oracle11g 启动数据库实例、关闭数据库实例

Oracle11g 启动数据库实例        startup

0d71ff4c6409da8e4a6644a52f707b54.png

1: nomount 模式:

描述:

该模式只会创建实例(即:创建oracle 实例的各种内存结构和服务进程),并不加载数据库,也不会打开如何数据文件。

9efb9ba293e8140f2a6ec32f976d5b6a.png

[oracle@localhost ~]$ sqlplus / as sysdba; ----以 sysdba身份登录

SQL*Plus: Release 11.2.0.3.0 Production on Thu Dec 8 19:27:27 2016

Copyright (c) 1982, 2011, Oracle. All rights reserved.

Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> shutdown immediate; ---关闭数据库

Database closed.

Database dismounted.

ORACLE instance shut down.

SQL> startup nomount; ----启动数据库

ORACLE instance started.

Total System Global Area 1221992448 bytes

Fixed Size 1344596 bytes

Variable Size 771754924 bytes

Database Buffers 436207616 bytes

Redo Buffers 12685312 bytes

SQL>

2:mount 模式

描述:

该模式将启动实例、加载数据库并保持数据库的关闭状态。mount 模式通常在进行数据维护时使用。比如:执行数据库完全恢复操作、更改数据库的归档模式;

00a63b9dac57edd13261447544bb00a8.png

3:open 模式:

描述:

该模式 将启动实例、加载并打开数据库,这是常规的启动模式。用户想要对数据库进行多种操作,就必须使用OPEN模式启动数据库实例。

9459b0d6e3fd810ab5b9e7e9234adfba.png

[oracle@localhost ~]$ sqlplus / as sysdba;

SQL*Plus: Release 11.2.0.3.0 Production on Thu Dec 8 19:58:48 2016

Copyright (c) 1982, 2011, Oracle. All rights reserved.

Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> startup

ORA-01081: cannot start already-running ORACLE - shut it down first

SQL> shutdown immediate;

ORA-01109: database not open

Database dismounted.

ORACLE instance shut down.

SQL> startup

ORACLE instance started.

Total System Global Area 1221992448 bytes

Fixed Size 1344596 bytes

Variable Size 771754924 bytes

Database Buffers 436207616 bytes

Redo Buffers 12685312 bytes

Database mounted.

Database opened.

SQL>

4:force 模式:

描述:

该模式  将终止实例并重新启动数据库,这种启动模式具有一定的强制性;比如:在其他启动模式失效时,可以测试使用这种启动模式。

8765d1878e2caf3affe8f66f9a327a60.png

[oracle@localhost ~]$ sqlplus / as sysdba;

SQL*Plus: Release 11.2.0.3.0 Production on Thu Dec 8 20:37:40 2016

Copyright (c) 1982, 2011, Oracle. All rights reserved.

Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> startup force;

ORACLE instance started.

Total System Global Area 1221992448 bytes

Fixed Size 1344596 bytes

Variable Size 771754924 bytes

Database Buffers 436207616 bytes

Redo Buffers 12685312 bytes

Database mounted.

Database opened.

关闭数据库实例   shutdown

关闭数据库语法为;

e199aa036a7b107b8af93ad3cbf643e4.png

1:NORmal方式

描述:

该模式  称作为:正常关闭方式。如果对方关闭数据库时间没有限制,通常会使用这种方式来关闭数据库。

495467a16e427126ad33a590c1d3be2e.png

7544b4adac0d3efdce411833705a35d7.png

2:transactional 方式

描述:

该模式  称作为: 食物关闭方式;它首先任务是能够保证当前所有的活动事务都可以被提交,并在在极可能短的时间内关闭数据库。

其特点为:

a4263b58a170fa94f191f7904c2f69e8.png

7a2dfd47273a63125cdd4effaca4129b.png

[oracle@localhost ~]$ sqlplus / as sysdba;

SQL*Plus: Release 11.2.0.3.0 Production on Thu Dec 8 21:07:30 2016

Copyright (c) 1982, 2011, Oracle. All rights reserved.

Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

SYS@orcl> shutdown transactional

Database closed.

Database dismounted.

ORACLE instance shut down.

SYS@orcl>

3: immdediate 方式:

描述:

该模式  称作为:  立即关闭方式;该方式能够在尽可能短时间内关闭数据库

其特点为:

320864d12b8153628e790887ce61cc22.png

15fe3ece2c0ef810f83d08a352e743d8.png

4:abort 方式

描述:

该模式  称作为:  终止关闭方式;终止关闭方式具有一定的强制性和破坏性。使用这个方式会强制中断任何数据库操作。这样可能丢失一部分数据信息。影响数据库的完整性;

其特点为:

b87020c28b66ed81689f20e9b6e02963.png

6a4e3a0957032465e4932d4cd870edbc.png

[oracle@localhost ~]$ sqlplus / as sysdba;

SQL*Plus: Release 11.2.0.3.0 Production on Thu Dec 8 22:29:35 2016

Copyright (c) 1982, 2011, Oracle. All rights reserved.

Connected to an idle instance.

SYS@orcl> startup

ORACLE instance started.

Total System Global Area 1221992448 bytes

Fixed Size 1344596 bytes

Variable Size 771754924 bytes

Database Buffers 436207616 bytes

Redo Buffers 12685312 bytes

Database mounted.

Database opened.

SYS@orcl> shutdown abort

ORACLE instance shut down.

SYS@orcl>

-------------------------------------------------

-------------------------------------------------

虚拟机centos7服务器下,启动oracle11g数据库和关闭数据库

转载:https://blog.csdn.net/ShelleyWhile/article/details/74898033 一.前提条件:虚拟机centos7服务器下,已经安装好oracle11g数 ...

oracle数据库实例,数据库的理解

转自http://www.cnblogs.com/advocate/archive/2010/08/20/1804066.html 加深一下理解 数据库就是一个相片底片 实例就是相纸 一个底片可以冲多 ...

Oracle 数据库实例和数据库

本文参考自oracle数据库实例,数据库的理解,纯属读书笔记,用于加深记忆. 先看Tom关于这二者的解释: 1.数据库 物理操作系统文件或磁盘的集合(我觉得可以理解为数据文件等).使用Oracle 1 ...

Linux CentOS中使用SQL*Plus启动和关闭数据库

启动和关闭数据库的常用工具有三个 一.SQL*Plus 在SQL*Plus环境中,用户以SYSDBA身份连接到Oracle后,可以通过命令行方式启动或关闭数据库. 二.OEM(企业管理器) 利用OEM ...

Oracle启动和关闭数据库

本机只安装一个数据库的情况下sqlplus / as sysdba启动数据库startup关闭数据库shutdown immediate

Oracle记录-开启与关闭数据库

1.配置tnsnames.ora/listener.ora #cd /usr/oracle/oracle/product/11.2.0/db_1/network/admin ---切换到安装目录 #v ...

Oracle启动与关闭数据库实例

Oracle数据库启动实例分为3个步骤: 启动实例 加载数据库 打开数据库 通用模式: STARTUP  [ nomount | mount | open | force ]  [resetrict] ...

如何用Dummy实例执行数据库的还原和恢复

今天实验了一下,如何在所有文件,包括数据文件,在线日志文件,控制文件都丢失的情况下,利用RMAN备份恢复和还原数据库.该实验的重点是用到了Dummy实例. 具体步骤如下: 备份数据库 [oracle@ ...

Oracle数据库体系结构、启动过程、关闭过程

一.Oracle数据库体系结构体系结构由下面组件组成:1.Oracle服务器(Server):由数据库实例和数据库文件组成,另外在用户建立与服务器的连接时启动服务器进程并分配PGA(程序全局区) (1 ...

随机推荐

黑社会团伙(gangs)

题目描述 众所周知,香港的黑社会组织猖獗,警方希望能摸清他们的内部构成情况,特派小生前往调查.经过长期的卧底,小生初步获得了一些资料:整个组织有 n 个人,任何两个认识的人不是朋友就是敌人. 而且满足 ...

为什么说Babel将推动JavaScript的发展

Babel是一个转换编译器,它能将ES6转换成可以在浏览器中运行的代码.Babel由来自澳大利亚的开发者Sebastian McKenzie创建.他的目标是使Babel可以处理ES6的所有新语法,并为 ...

ios网络:应用一个请求的7个步骤

Splitting big tasks into small tasks is often one of the best ways to solve a problem. Thus, in the ...

MasterCard信用卡测试卡号-creditcard-1

MasterCard信用卡测试卡号-creditcard-1 510510510510510051111111111111185454545454545454550000000000000455555 ...

phpcms首页调用会员头像及金钱、积分等信息,并按照积分点数排列

最新会员
&l ...

深入理解JavaScript的this指向问题

Javascript的this用法 this是Javascript语言的一个关键字.它代表函数运行时,自动生成的一个内部对象,只能在函数内部使用.比如: function test(){ this.x ...

django 模型models

1. django 模型models 常用字段          1.models.AutoField 自增列 = int(11) 如果没有的话,默认会生成一个名称为 id 的列 如果要显式的自定义一 ...

centos中,tomcat项目创建文件的权限

参考文章:https://cloud.tencent.com/info/5f02caa932fd6dbfc46a3bb01af135e0.html 我们在centos中输入umask,会看到输出002 ...

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值