Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1035662
  • 博文数量: 239
  • 博客积分: 10
  • 博客等级: 民兵
  • 技术积分: 3618
  • 用 户 组: 普通用户
  • 注册时间: 2012-11-12 13:17
文章分类

全部博文(239)

文章存档

2021年(1)

2016年(1)

2015年(30)

2014年(91)

2013年(116)

分类: LINUX

2014-07-13 18:58:12

将/u01/oradata下的icms.dbf文件移动到/u01/oracle/oradata/orcl目录下
操作步骤如下:
[oracle@oracle11g admin]$ export ORACLE_SID=orcl
[oracle@oracle11g admin]$ sqlplus "/as sysdba"
SQL*Plus: Release 11.2.0.3.0 Production on Sun Jul 13 18:49:18 2014
Copyright (c) 1982, 2011, Oracle.  All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
将数据库启动到mount状态
SQL> startup mount
ORACLE instance started.
Total System Global Area 1603411968 bytes
Fixed Size    2228784 bytes
Variable Size 1140854224 bytes
Database Buffers  452984832 bytes
Redo Buffers    7344128 bytes
Database mounted.
重新启动一个会话,使用Oracle用户登录,移动icms.dbf文件的目录
[oracle@oracle11g orcl]$ mv /u01/oradata/icms.dbf /u01/oracle/oradata/orcl
SQL> alter database rename file '/u01/oradata/icms.dbf' to '/u01/oracle/oradata/orcl/icms.dbf';
Database altered.
SQL> alter database open;
Database altered.
SQL> select file#,ts#,status,name from v$datafile;
     FILE#  TS# STATUS
---------- ---------- -------
NAME
--------------------------------------------------------------------------------
1    0 SYSTEM
/u01/oracle/oradata/orcl/system01.dbf
2    1 ONLINE
/u01/oracle/oradata/orcl/sysaux01.dbf
3    2 ONLINE
/u01/oracle/oradata/orcl/undotbs01.dbf
     FILE#  TS# STATUS
---------- ---------- -------
NAME
--------------------------------------------------------------------------------
4    4 ONLINE
/u01/oracle/oradata/orcl/users01.dbf
5    6 ONLINE
/u01/oracle/oradata/orcl/example01.dbf
6    7 ONLINE
/u01/oracle/oradata/orcl/icms.dbf
6 rows selected.
阅读(4026) | 评论(0) | 转发(2) |
给主人留下些什么吧!~~