【实验内容】
通过Rman关闭和启动数据库
【实验过程】
直接上代码了。
--------------------------------------------------------------------------------------
C:\>set oracle_sid=chic
C:\>rman
恢复管理器: Release 10.2.0.1.0 - Production on 星期二 7月 26 23:06:20 2011
Copyright (c) 1982, 2005, Oracle. All rights reserved.
RMAN> connect target /
连接到目标数据库: CHIC (DBID=2436139974)
############################## 关闭数据库 #################################
RMAN> shutdown immediate
使用目标数据库控制文件替代恢复目录
数据库已关闭
数据库已卸载
Oracle 实例已关闭
######################## 启动数据库到nomount状态 ###########################
RMAN> startup nomount
已连接到目标数据库 (未启动)
Oracle 实例已启动
系统全局区域总计 289406976 字节
Fixed Size 1248576 字节
Variable Size 83886784 字节
Database Buffers 197132288 字节
Redo Buffers 7139328 字节
######################## 切换数据库到mount状态 ###########################
RMAN> alter database mount
2> ;
数据库已装载
######################## 切换数据库到open状态 ###########################
RMAN> alter database open;
数据库已打开
RMAN>
--------------------------------------------------------------------------------------
以上。
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/20335819/viewspace-703175/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/20335819/viewspace-703175/