ORA-01511: error in renaming log/data files



单击此项可添加到收藏夹转到底部转到底部

2012-7-25HOWTO
为此文档评级通过电子邮件发送此文档的链接在新窗口中打开文档可打印页

APPLIES TO:

Oracle Server - Enterprise Edition - Version 9.0.1.0 and later
Information in this document applies to any platform.

GOAL

Explain how to rename Oracle Managed Files(OMFs).

FIX

There are 2 different scenarios to consider: 

1) Renaming an OMF to a non-OMF name

2) Renaming an OMF to another OMF-compliant name. 

Note that renaming an OMF to another OMF-compliant name is not normally recommended. 

You should allow Oracle to name the files. But, should you wish to rename one but maintain its OMF status, it can be accomplished. 

Here are the 3 methods for renaming an OMF. 

METHOD 1

1. ALTER TABLESPACE tsname OFFLINE
2. Move/Rename the file at the OS level
3. ALTER TABLESPACE tsname RENAME DATAFILE 'oldomfname' TO 'newnonomfname';
4. ALTER TABLESPACE tsname ONLINE
          
METHOD 2

1. SHUTDOWN IMMEDIATE (or normal)
2. Move/Rename the file at the OS level
3. STARTUP MOUNT
4. ALTER DATABASE RENAME FILE 'oldomfname' TO 'newnonomfname';
5. ALTER DATABASE OPEN

NOTE: This method is only valid if renaming an OMF to a non-OMF name. 

If you attempt to rename an OMF to another OMF-compliant name at mount stage with the ALTER DATABASE command, you will receive the following errors:

  ORA-01511: error in renaming log/data files
  ORA-01276:  Cannot add a file with an Oracle Managed Files file name.


METHOD 3


1. SHUTDOWN IMMEDIATE (or normal)
2. Move/Rename the file at the OS level
3. Recreate the controlfile with the desired name. For details on recreating the controlfile, reference Note: 1012929.6.

单击此项可添加到收藏夹转到底部转到底部

2012-7-25HOWTO
为此文档评级通过电子邮件发送此文档的链接在新窗口中打开文档可打印页

APPLIES TO:

Oracle Server - Enterprise Edition - Version 9.0.1.0 and later
Information in this document applies to any platform.

GOAL

Explain how to rename Oracle Managed Files(OMFs).

FIX

There are 2 different scenarios to consider: 

1) Renaming an OMF to a non-OMF name

2) Renaming an OMF to another OMF-compliant name. 

Note that renaming an OMF to another OMF-compliant name is not normally recommended. 

You should allow Oracle to name the files. But, should you wish to rename one but maintain its OMF status, it can be accomplished. 

Here are the 3 methods for renaming an OMF. 

METHOD 1

1. ALTER TABLESPACE tsname OFFLINE
2. Move/Rename the file at the OS level
3. ALTER TABLESPACE tsname RENAME DATAFILE 'oldomfname' TO 'newnonomfname';
4. ALTER TABLESPACE tsname ONLINE
          
METHOD 2

1. SHUTDOWN IMMEDIATE (or normal)
2. Move/Rename the file at the OS level
3. STARTUP MOUNT
4. ALTER DATABASE RENAME FILE 'oldomfname' TO 'newnonomfname';
5. ALTER DATABASE OPEN

NOTE: This method is only valid if renaming an OMF to a non-OMF name. 

If you attempt to rename an OMF to another OMF-compliant name at mount stage with the ALTER DATABASE command, you will receive the following errors:

  ORA-01511: error in renaming log/data files
  ORA-01276:  Cannot add a file with an Oracle Managed Files file name.


METHOD 3


1. SHUTDOWN IMMEDIATE (or normal)
2. Move/Rename the file at the OS level
3. Recreate the controlfile with the desired name. For details on recreating the controlfile, reference Note: 1012929.6.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值