Chinaunix首页 | 论坛 | 博客
  • 博客访问: 6584008
  • 博文数量: 1005
  • 博客积分: 8199
  • 博客等级: 中将
  • 技术积分: 13071
  • 用 户 组: 普通用户
  • 注册时间: 2010-05-25 20:19
个人简介

脚踏实地、勇往直前!

文章分类

全部博文(1005)

文章存档

2020年(2)

2019年(93)

2018年(208)

2017年(81)

2016年(49)

2015年(50)

2014年(170)

2013年(52)

2012年(177)

2011年(93)

2010年(30)

分类: Oracle

2013-12-26 13:55:16



1.关闭数据库

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

2.将当前目录的数据文件迁移到指定目录
mv tps_hxl02.dbf ../oraclbak 
mv tps_hxl03.dbf ../oraclbak

3.启动数据库到mount状态
SQL> connect / as sysdba
Connected to an idle instance.
SQL> startup mount
ORACLE instance started.

Total System Global Area  422670336 bytes
Fixed Size                  1336960 bytes
Variable Size             352323968 bytes
Database Buffers           62914560 bytes
Redo Buffers                6094848 bytes
Database mounted.

4.更改数据文件路径
SQL> alter database rename file '/u01/app/oracle/oradata/oracl/tps_hxl02.dbf' to '/u01/app/oracle/oradata/oraclbak/tps_hxl02.dbf';

Database altered.

SQL> alter database rename file '/u01/app/oracle/oradata/oracl/tps_hxl03.dbf' to '/u01/app/oracle/oradata/oraclbak/tps_hxl03.dbf';

Database altered.

5.打开数据库
SQL> alter database open;

Database altered.

-- The End --

阅读(6289) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

zhengqi25652013-12-27 15:34:59

想了解投资理财?找福盈资本!你不投资福盈,财不理你!