Oracle11g 启动数据库实例、关闭数据库实例
* 博客文章部分截图及内容来自于学习的书本及相应培训课程以及网络其他博客,仅做学习讨论之用,不做商业用途。
* 如有侵权,马上联系我,我立马删除对应链接。
* @author Alan
* @Email no008@foxmail.com
正文
Oracle11g 启动数据库实例 startup
1: nomount 模式:
描述:
该模式只会创建实例(即:创建oracle 实例的各种内存结构和服务进程),并不加载数据库,也不会打开如何数据文件。
1 [oracle@localhost ~]$ sqlplus / as sysdba; ----以 sysdba身份登录 2 3 SQL*Plus: Release 11.2.0.3.0 Production on Thu Dec 8 19:27:27 2016 4 5 Copyright (c) 1982, 2011, Oracle. All rights reserved. 6 7 8 Connected to: 9 Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - Production 10 With the Partitioning, OLAP, Data Mining and Real Application Testing options 11 12 SQL> shutdown immediate; ---关闭数据库 13 Database closed. 14 Database dismounted. 15 ORACLE instance shut down. 16 SQL> startup nomount; ----启动数据库 17 ORACLE instance started. 18 19 Total System Global Area 1221992448 bytes 20 Fixed Size 1344596 bytes 21 Variable Size 771754924 bytes 22 Database Buffers 436207616 bytes 23 Redo Buffers 12685312 bytes 24 SQL>
2:mount 模式
描述:
该模式将启动实例、加载数据库并保持数据库的关闭状态。mount 模式通常在进行数据维护时使用。比如:执行数据库完全恢复操作、更改数据库的归档模式;
3:open 模式:
描述:
该模式 将启动实例、加载并打开数据库,这是常规的启动模式。用户想要对数据库进行多种操作,就必须使用OPEN模式启动数据库实例。
1 [oracle@localhost ~]$ sqlplus / as sysdba; 2 3 SQL*Plus: Release 11.2.0.3.0 Production on Thu Dec 8 19:58:48 2016 4 5 Copyright (c) 1982, 2011, Oracle. All rights reserved. 6 7 8 Connected to: 9 Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - Production 10 With the Partitioning, OLAP, Data Mining and Real Application Testing options 11 12 SQL> startup 13 ORA-01081: cannot start already-running ORACLE - shut it down first 14 SQL> shutdown immediate; 15 ORA-01109: database not open 16 17 18 Database dismounted. 19 ORACLE instance shut down. 20 SQL> startup 21 ORACLE instance started. 22 23 Total System Global Area 1221992448 bytes 24 Fixed Size 1344596 bytes 25 Variable Size 771754924 bytes 26 Database Buffers 436207616 bytes 27 Redo Buffers 12685312 bytes 28 Database mounted. 29 Database opened. 30 SQL>
4:force 模式:
描述:
该模式 将终止实例并重新启动数据库,这种启动模式具有一定的强制性;比如:在其他启动模式失效时,可以测试使用这种启动模式。
1 [oracle@localhost ~]$ sqlplus / as sysdba; 2 3 SQL*Plus: Release 11.2.0.3.0 Production on Thu Dec 8 20:37:40 2016 4 5 Copyright (c) 1982, 2011, Oracle. All rights reserved. 6 7 8 Connected to: 9 Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - Production 10 With the Partitioning, OLAP, Data Mining and Real Application Testing options 11 12 SQL> startup force; 13 ORACLE instance started. 14 15 Total System Global Area 1221992448 bytes 16 Fixed Size 1344596 bytes 17 Variable Size 771754924 bytes 18 Database Buffers 436207616 bytes 19 Redo Buffers 12685312 bytes 20 Database mounted. 21 Database opened.
关闭数据库实例 shutdown
关闭数据库语法为;
1:NORmal方式
描述:
该模式 称作为:正常关闭方式。如果对方关闭数据库时间没有限制,通常会使用这种方式来关闭数据库。
2:transactional 方式
描述:
该模式 称作为: 食物关闭方式;它首先任务是能够保证当前所有的活动事务都可以被提交,并在在极可能短的时间内关闭数据库。
其特点为:
1 [oracle@localhost ~]$ sqlplus / as sysdba; 2 3 SQL*Plus: Release 11.2.0.3.0 Production on Thu Dec 8 21:07:30 2016 4 5 Copyright (c) 1982, 2011, Oracle. All rights reserved. 6 7 8 Connected to: 9 Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - Production 10 With the Partitioning, OLAP, Data Mining and Real Application Testing options 11 12 SYS@orcl> shutdown transactional 13 Database closed. 14 Database dismounted. 15 ORACLE instance shut down. 16 SYS@orcl> 17 18 19
3: immdediate 方式:
描述:
该模式 称作为: 立即关闭方式;该方式能够在尽可能短时间内关闭数据库
其特点为:
4:abort 方式
描述:
该模式 称作为: 终止关闭方式;终止关闭方式具有一定的强制性和破坏性。使用这个方式会强制中断任何数据库操作。这样可能丢失一部分数据信息。影响数据库的完整性;
其特点为:
1 [oracle@localhost ~]$ sqlplus / as sysdba; 2 3 SQL*Plus: Release 11.2.0.3.0 Production on Thu Dec 8 22:29:35 2016 4 5 Copyright (c) 1982, 2011, Oracle. All rights reserved. 6 7 Connected to an idle instance. 8 9 SYS@orcl> startup 10 ORACLE instance started. 11 12 Total System Global Area 1221992448 bytes 13 Fixed Size 1344596 bytes 14 Variable Size 771754924 bytes 15 Database Buffers 436207616 bytes 16 Redo Buffers 12685312 bytes 17 Database mounted. 18 Database opened. 19 SYS@orcl> shutdown abort 20 ORACLE instance shut down. 21 SYS@orcl> 22 23
-------------------------------------------------
-------------------------------------------------
学问:纸上得来终觉浅,绝知此事要躬行
为事:工欲善其事,必先利其器。
态度:道阻且长,行则将至;行而不辍,未来可期
.....................................................................
------- 桃之夭夭,灼灼其华。之子于归,宜其室家。 ---------------
------- 桃之夭夭,有蕡其实。之子于归,宜其家室。 ---------------
------- 桃之夭夭,其叶蓁蓁。之子于归,宜其家人。 ---------------
=====================================================================
* 博客文章部分截图及内容来自于学习的书本及相应培训课程以及网络其他博客,仅做学习讨论之用,不做商业用途。
* 如有侵权,马上联系我,我立马删除对应链接。 * @author Alan -liu * @Email no008@foxmail.com
转载请标注出处! ✧*꧁一品堂.技术学习笔记꧂*✧. ---> https://www.cnblogs.com/ios9/
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】博客园社区专享云产品让利特惠,阿里云新客6.5折上折
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 一个奇形怪状的面试题:Bean中的CHM要不要加volatile?
· [.NET]调用本地 Deepseek 模型
· 一个费力不讨好的项目,让我损失了近一半的绩效!
· .NET Core 托管堆内存泄露/CPU异常的常见思路
· PostgreSQL 和 SQL Server 在统计信息维护中的关键差异
· DeepSeek “源神”启动!「GitHub 热点速览」
· 微软正式发布.NET 10 Preview 1:开启下一代开发框架新篇章
· C# 集成 DeepSeek 模型实现 AI 私有化(本地部署与 API 调用教程)
· DeepSeek R1 简明指南:架构、训练、本地部署及硬件要求
· 2 本地部署DeepSeek模型构建本地知识库+联网搜索详细步骤