ORACLE 数据文件重命名(批量重命名,单独重命名)
来源:互联网 发布:淘宝上知网分解查重 编辑:程序博客网 时间:2024/06/05 08:06
1. 所有数据文件更换路径,包括control file,datafie,redo
(1) create pfile='/home/oracle/tsto32.ora' fromspfile;
(2)关闭数据库
(3)更改参数文件中control file的文件位置
(4)将所有文件拷贝到指定目录
(5)startup nomount pfile='/home/oracle/tsto32.ora'
(6)alter database mount
(7)更改数据文件名称
alter database rename file'/u01/app/oracle/oradata/tsto32/system01.dbf' to'/home/oracle/oradata/tsto32/system01.dbf';
alter database rename file'/u01/app/oracle/oradata/tsto32/sysaux01.dbf' to'/home/oracle/oradata/tsto32/sysaux01.dbf';
alter database rename file'/u01/app/oracle/oradata/tsto32/undotbs01.dbf' to'/home/oracle/oradata/tsto32/undotbs01.dbf';
alter database rename file'/u01/app/oracle/oradata/tsto32/users01.dbf' to '/home/oracle/oradata/tsto32/users01.dbf';
alter database rename file'/u01/app/oracle/oradata/tsto32/TRADE.dbf' to'/home/oracle/oradata/tsto32/TRADE.dbf';
alter database rename file '/u01/app/oracle/oradata/tsto32/temp01.dbf' to '/home/oracle/oradata/tsto32/temp01.dbf';
alter database rename file'/u01/app/oracle/oradata/tsto32/redo01.log' to'/home/oracle/oradata/tsto32/redo01.log';
alter database rename file'/u01/app/oracle/oradata/tsto32/redo02.log' to'/home/oracle/oradata/tsto32/redo02.log';
alter database rename file '/u01/app/oracle/oradata/tsto32/redo03.log' to'/home/oracle/oradata/tsto32/redo03.log';
(8)alter database open;
(9)重新pfile
2.更改单独的数据文件
(1)将相应的表空间offline;
alter tablespace zerone offline;
(2)更改表空间
alter tablespace zerone renamedatafile '/opt/oracle/oradata/ZERONE01.DBF' to'/home/oracle/oradata/zerone/ZERONE01.DBF';
(3)上线表空间
alter tablespace zeroneonline;
- ORACLE 数据文件重命名(批量重命名,单独重命名)
- Oracle 重命名数据文件
- 【Oracle】重命名数据文件
- 数据文件重命名
- 重命名
- 重命名
- 批量重命名
- 批量重命名
- 批量重命名
- 批量重命名
- 批量重命名
- 批量重命名
- Oracle Data Guard_ 主库重命名数据文件
- 如何重命名数据文件
- 如何重命名数据文件
- 文件名批量重命名、文件后缀名批量重命名
- 批量重命名文件 (VB)
- linux -- 批量重命名文件名
- 如何用android-layout_weight弄个满意的比例
- [RK3288][Android6.0] 调试笔记 --- 开机动画支持播放mp4视频功能
- ORACLE rman 部分恢复
- 胎教音乐库——官方博客
- 如何制作Android Splash界面
- ORACLE 数据文件重命名(批量重命名,单独重命名)
- 如何修改Excel的编码
- Mybaits——DAO层开发两种模式
- Android Studio如何永久显示行数
- Elasticsearch 5.4 Mapping详解
- Android之FrameLayout(帧布局)
- tcp侦测异常断开
- Android之service生命周期及启动方式
- 图像处理方面期刊和计算机视觉领域稍微容易中的期刊