Moving datafile to ASM

Hello,
By mistake I created one data file in the local file system instead of ASM diskgroup. Initially I created the data file with 100MB, autoextensible to 100M,maxsize 2G, but then I stopped autoexntensible, so that less data file size would be better to move to ASM.
My concern is that now I am thinking if the datafile is full then I will move it to ASM diskgroup (script to move to ASM is already ready). I want to be sure if the data file is full, so that I move it peacefully to ASM, because otherwise datafile is not accessible if it is currently being written and moving to ASM. I dont want that stop of data written to data file, or the data file is full already and there is no risk that data fill be written to it or it will be inaccessible.
Please have a look and suggest how can I check that the data file is full actually and safe to move to ASM.
DB=11.2.0.2 EE, OS=RHL
SQL> select file_id,tablespace_name,bytes/1024/1024 "Bytes in MB",status,autoextensible,maxbytes/1024/1024 "Maxbytes in MB",user_bytes/1024/1024 from dba_data_files where file_id=62;
   FILE_ID TABLESPACE_NAME            Bytes in MB STATUS                       AUTOEXTENSIB Maxbytes in MB USER_BYTES/1024/1024
     62   KKJ                      300 AVAILABLE                   NO                    0               299Thank you.
Regards,

How to move a datafile from a file system to ASM [ID 390274.1]
>
In order to move a datafile on a running active database the tablespace where the datafile resides must be placed offline.
>
SQL> create tablespace test01
  2  datafile 'c:\test01.dbf' size 2g;
Tablespace created.
SQL>
select file#, name from v$ddatafile
36      C:\TEST01.DBF
rman target /
sql "ALTER DATABASE DATAFILE 36 OFFLINE";
backup as copy datafile 36 format '+DATA';
switch datafile 36 to copy;
recover datafile 36;
sql "alter database datafile 36 ONLINE";
exit;
-- fails with datafile as media recovery needs to be enabled
RMAN> sql "ALTER DATABASE DATAFILE 36 OFFLINE";
using target database control file instead of recovery catalog
sql statement: ALTER DATABASE DATAFILE 36 OFFLINE
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of sql command on default channel at 05/10/2012 12:18:46
RMAN-11003: failure during parse/execution of SQL statement: ALTER DATABASE DATAFILE 36 OF
ORA-01145: offline immediate disallowed unless media recovery enabled-- try again with tablespace, ran in seconds. but thats not the point. tablespace needed to be offline
RMAN> sql "ALTER TABLESPACE TEST01 OFFLINE";
using target database control file instead of recovery catalog
sql statement: ALTER TABLESPACE TEST01 OFFLINE
RMAN> backup as copy datafile 36 format '+DATA';
Starting backup at 10-MAY-12
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=82 instance=dprd1 device type=DISK
channel ORA_DISK_1: starting datafile copy
input datafile file number=00036 name=C:\TEST01.DBF
output file name=+DATA/dprd/datafile/test01.331.782914827 tag=TAG20120510T122026 RECID=1 S
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:26
Finished backup at 10-MAY-12
Starting Control File and SPFILE Autobackup at 10-MAY-12
piece handle=+FLASH/dprd/autobackup/2012_05_10/s_782914852.270.782914853 comment=NONE
Finished Control File and SPFILE Autobackup at 10-MAY-12
RMAN> switch datafile 36 to copy;
datafile 36 switched to datafile copy "+DATA/dprd/datafile/test01.331.782914827"
RMAN> recover datafile 36;
Starting recover at 10-MAY-12
using channel ORA_DISK_1
starting media recovery
media recovery complete, elapsed time: 00:00:00
Finished recover at 10-MAY-12
RMAN> sql "ALTER TABLESPACE TEST01 ONLINE";
sql statement: ALTER TABLESPACE TEST01 ONLINE
RMAN>

Similar Messages

  • How to add datafile in asm

    Hi,
    Can anybody let me know how to add datafile using ASM
    DB- ORACLE 10.2
    OS-RHEL

    SQL> select name from v$asm_diskgroup;
    NAME
    DATA1
    DATA
    Above we are having two asm diskgorup
    SQL> alter tablespace users add datafile ‘+data1′ size 5M;
    Tablespace altered.
    SQL> select name from v$datafile;
    NAME
    +DATA1/nonasmtoasm/datafile/system.259.721108803
    +DATA1/nonasmtoasm/datafile/undotbs1.261.721108865
    +DATA1/nonasmtoasm/datafile/sysaux.260.721108841
    +DATA1/nonasmtoasm/datafile/users.262.721108873
    +DATA1/nonasmtoasm/datafile/users.269.721187971                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Best Practices To Size the Datafile on ASM in Oracle 11gR2

    Hi DBAs,
    I need to know that what should be the datafile next extent on ASM. I have created a database 11gR2 with ASM. Now some certified DBA told me to create the datafile as small as possible and make it auto extend with the next extent size 1M. The expected data growth every month is about 20-25 Gig.
    Please let me know what are the best practices while for sizing the datafiles and extents in 11g using ASM. Any good document/note refer would be great help.
    Thanks
    -Samar-

    Hi Samar,
    I need to know that what should be the datafile next extent on ASM. I have created a database 11gR2 with ASM. >Now some certified DBA told me to create the datafile as small as possible and make it auto extend with the next >extent size 1M. The expected data growth every month is about 20-25 Gig.
    Please let me know what are the best practices while for sizing the datafiles and extents in 11g using ASM. Any >good document/note refer would be great help.I don't think there is any kind of recomendations for that, at least, I've never seen. As You probably know, ASM already divides the ASM files (any sort of files written in a ASM diskgroup) in extents and those extents are composed of AU. So, doesn't matter the datafile size, ASM will balace the I/O on all ASM disks in a diskgroup.
    I guess this thread ( AU_SIZE and Variable Extent Size ), even not being the subject of Your question, Will help You.
    I do believe there are more important factors for ASM performance, like stripe size, LUN size, storage configuration, etc.
    Hope it helps,
    Cerreia

  • Oracle database reorganization (moving datafiles to new filesystems)

    Hi All,
    We are planning to perform a database reorganization (moving datafiles to new filesystems) in our Production environment using SAPDBA.
    We had noticed in our recent performance reports that few datafiles in some of the SAPDATAxx filesystems are having higher I/O contention and are putting heavy load on those filesystems resulting in poor performance. So, we had identified the datafiles and planning to move them to new SAPDATA filesystems (uniformly distribute the datafiles to stabilize the I/O). Below are the version information.
    SAP: 3.0F
    Oracle: 9.2.0.8
    OS: HP-UX 11.23
    SAPDBA: 6.20
    I'm going through SAP notes and Oracle documentation on this.Can you please share your experiences if similar activity was carried out by any of you and the documents relating to this.
    Your inputs on this is very much appreciated.
    Thanks,
    Vasu

    If your goal is just to make use of new storage, it is fairly straightforward and quick to move the datafiles as others mentioned. However, moving the datafile will NOT reorganize tables/tablespaces.
    You can optionally reorg tables/tablespaces in addition to the move of datafiles. This generally saves space and helps performance. If you decide to reorg, I would suggest you move the datafiles to faster storage then reorg (since reorg itself is highly IO intensive).
    Some points to consider:
    - perform the reorg when business use is least
    - perform online reorg where possible
    - online reorg creates temporary snaps, typically in the users default tablespace, make sure it has sufficient space
    - start with small tables/tablespaces first to get throughput estimate and also estimate of reduction in size
    - estimate the size of target tablespace (how small it is going to be compared to source) and build the target tablespace smaller to avoid wasting space
    - watch the space usage of the target tablespace when the reorg is running
    - if you are reorging individual tables, make sure the indexes are rebuilt
    Hope this helps.
    Regards,
    Shan

  • Move datafile from asm datafile database to non asm database

    Hi Nice morning all DBA Guys, I want move datafile from asm database datafile to non asm configurated database. Hoe to move this?
    Datafiles like this
    +DATA/saico/datafile/users.259.631612183
    +DATA/saico/datafile/DBA.XXX.XXXXXXXXX
    Regards
    S.Azar

    The all files movement of asm to non-asm and vice-versa is given in document id 252219.1 on metalink. Please look at the same. In nut shell you have to do the following:
    1. Start your database with ASM.
    2. Create pfile from spfile.
    3. Edit pfile to reflect controlfile name in file system location.
    4. SQL> Startup nomount.
    5. Use RMAN to copy the control file from ASM to NON-ASM.
    RMAN> RESTORE CONTROLFILE FROM '<filename_of_old_control_file>';
    6. SQL> alter database mount;
    7. Use RMAN to copy the database from ASM to NON-ASM.
    RMAN> BACKUP AS COPY DATABASE format '/u01/oradata/nonasmdb/datafile/%U';
    8. From RMAN
    RMAN> SWITCH DATABASE TO COPY;
    Regards.

  • Can one tablepace have their datafile on ASM also filesystem. ???

    Hello Oracle Gurus''
    1.can one tablespace have their datafile on ASM as well as filesystem ?? like 1 tablespace =1ASMfile + 1 localfilesystem file
    2.also tell me will there be any database error code triggered on the DB alert log file. if we use the datafiles on ASM as well as local filesystem for one tablespace??and any performance issues on that tablespaces which resides on filesystem and ASM disk both? ..if all are fine how the filesystem datafile will be support for ASM rebalancing also mirroring level on ASM ??
    3.what is type of SCN? is there any types we have ?
    4.what are the wait events views on RAC clusters used? to monitor the cluster events and rectify the issues?

    user13014926 wrote:
    Hello Oracle Gurus''
    1.can one tablespace have their datafile on ASM as well as filesystem ?? like 1 tablespace =1ASMfile + 1 localfilesystem file
    Yes.
    2.also tell me will there be any database error code triggered on the DB alert log file. if we use the datafiles on ASM as well as local filesystem for one tablespace??and any performance issues on that tablespaces which resides on filesystem and ASM disk both? ..if all are fine how the filesystem datafile will be support for ASM rebalancing also mirroring level on ASM ??
    AFAIK no. The files which are present on the disk/file system only and not on asm, are not managed by it so no support for asm based striping and mirroring would be there for them.Second, rebalancing is NOT done for the files but for the disks when they are not present or have become offline due to some reason.
    3.what is type of SCN? is there any types we have ?
    Just remember one type, System Commit Number and forget about rest.
    4.what are the wait events views on RAC clusters used? to monitor the cluster events and rectify the issues?Please see the Performance Tuning section of Oracle RAC Admninistration guide with a special attention to Cluster wait class and wait events related to it. Best is, use EM and it would show all the things in a nice manner.
    HTH
    Aman....

  • XTTS - problem in copying datafile into ASM

    I'm testing the migration of database from AIX to Linux using cross platform transportable tablespaces.
    DB version: source: 10.2.0.4
    Destination: 10.2.0.5
    OS version: source: AIX6.1 - AIX-Based Systems (64-bit)
    Destination: RedHat Linux - Linux x86 64-bit
    I run the below commands before copying the datafile at destination.
    EXECUTE DBMS_TTS.TRANSPORT_SET_CHECK('TBLSP1,TBLSP2', TRUE);
    SELECT * FROM TRANSPORT_SET_VIOLATIONS;
    no rows selected
    alter system archive log current;
    alter tablespace TBLSP1 read only;
    alter tablespace TBLSP2 read only;
    expdp DUMPFILE=xtts_exp.dmp DIRECTORY=DUMP_DIR logfile=xtts_exp.log TRANSPORT_TABLESPACES=TBLSP1,TBLSP2
    CONVERT TABLESPACE TBLSP1,TBLSP2
    TO PLATFORM 'Linux x86 64-bit'
    FORMAT '/dataimport/%U';/dataimport is a shared file system mounted on Linux server and am able to see the datafile over there. But, am receiving the error below when trying to copy the datafile on the linux server. Could someone let me know if I miss something / how to resolve this error.
    $rman target /
    RMAN> copy datafile '/dataimport/data_D-DBMGRT_I-3320277811_TS-TBLSP1_FNO-26_05m8miia' to '+DATA';
    Starting backup at 05-APR-11
    using channel ORA_DISK_1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of backup command at 04/05/2011 10:19:44
    RMAN-20201: datafile not found in the recovery catalog
    RMAN-06010: error while looking up datafile: /dataimport/data_D-DBMGRT_I-3320277811_TS-TBLSP1_FNO-26_05m8miia

    I don't think it's related to patchset mismatch. Yes. I moved the dump file and datafile copies to local file system also and got the same error.
    Here are the steps once again. The tablespaces are still read only on source side. How can it affect datafile copy on destination side?.
    EXECUTE DBMS_TTS.TRANSPORT_SET_CHECK('TBLSP1,TBLSP2', TRUE);
    SELECT * FROM TRANSPORT_SET_VIOLATIONS;
    no rows selected
    alter system archive log current;
    alter tablespace TBLSP1 read only;
    alter tablespace TBLSP2 read only;
    expdp DUMPFILE=xtts_exp.dmp DIRECTORY=DUMP_DIR logfile=xtts_exp.log TRANSPORT_TABLESPACES=TBLSP1,TBLSP2
    CONVERT TABLESPACE TBLSP1,TBLSP2
    TO PLATFORM 'Linux x86 64-bit'
    FORMAT '/dataimport/%U';
    impdp DUMPFILE=xtts_exp.dmp DIRECTORY=DUMP_DIR logfile=xtts_imp.log TRANSPORT_DATAFILES='/dataimport/data_D-DBMGRT_I-3320277811_TS-TBLSP1_FNO-26_0bm90rir','/az/dataimport/export/data_D-DBMGRT_I-3320277811_TS-TBLSP2_FNO-39_0dm90sa0'
    Job "SYS"."SYS_IMPORT_TRANSPORTABLE_01" successfully completed
    $rman target /
    RMAN> copy datafile '/dataimport/data_D-DBMGRT_I-3320277811_TS-TBLSP1_FNO-26_0bm90rir' to '+DATA';
    Starting backup at 05-APR-11
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=4361 instance=dbmgrt1 devtype=DISK
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of backup command at 04/05/2011 12:42:47
    RMAN-20201: datafile not found in the recovery catalog
    RMAN-06010: error while looking up datafile: /dataimport/data_D-DBMGRT_I-3320277811_TS-TBLSP1_FNO-26_0bm90rir
    SQL> select file_name from dba_data_files where tablespace_name='TBLSP1';
    /dataimport/data_D-DBMGRT_I-3320277811_TS-TBLSP1_FNO-26_0bm90rir
    $ls -l /dataimport/data_D-DBMGRT_I-3320277811_TS-TBLSP1_FNO-26_0bm90rir
    -rw-r----- 1 oracle oinstall 32914808832 Apr  5 12:31 /dataimport/data_D-DBMGRT_I-3320277811_TS-TBLSP1_FNO-26_0bm90rir

  • Adding datafile to ASM file system tablespace

    Hi
    Can some one plz help in writing a script to add a datafile to the system tablespace on ASM filesystems.
    below is the result of the query ..
    select file_name, bytes, autoextensible, maxbytes from dba_data_files where tablespace_name='SYSTEM';
    FILE_NAME BYTES AUT MAXBYTES
    +DATA1/cir_p/datafile/system.260.6037360 5892997120 NO 0
    Thanks

    790072 wrote:
    Hi
    Can some one plz help in writing a script to add a datafile to the system tablespace on ASM filesystems.
    below is the result of the query ..
    select file_name, bytes, autoextensible, maxbytes from dba_data_files where tablespace_name='SYSTEM';
    FILE_NAME BYTES AUT MAXBYTES
    +DATA1/cir_p/datafile/system.260.6037360 5892997120 NO 0
    Thanks
    You can use
    ALTER TABLESPACE "SYSTEM" ADD DATAFILE '+DATA1' SIZE 1024M
    Cheers

  • ADD DATAFILE in ASM

    Hello
    How can I add a datafile in a RAC database with ASM?
    The filename are create by ASM are like this
    '+DATA/csoprd1a/datafile/aalarge.615.594210853'
    where aalarge.615.594210853' is generated by ASM
    thanks

    Hello Daljit,
    I already have this file, and I want to add another one and yes, I'm confused with the numbers, because , they are generated by ASM, so how can I do?
    There is an Instance ASM, is there that I must add the datafile?
    Regards
    Carlos

  • Problem moving datafiles

    I've moved some datafiles while my database was open using the alter tablespace offline, then the OS mv command. Now when I try to bring the tablespace back online, I get:
    ORA-01157: cannot identify/lock data file 13 - see DBWR trace file
    ORA-01110: data file 13: '/db/oradata/dal00pi2/dpipe_upload_ind_seg.dbf'
    ORA-27037: unable to obtain file status
    SVR4 Error: 2: No such file or directory
    ORA-01157: cannot identify/lock data file 26 - see DBWR trace file
    ORA-01110: data file 26: '/db/oradata/dal00pi2/dpipe_upload_ind_seg02.dbf'
    ORA-27037: unable to obtain file status
    SVR4 Error: 2: No such file or directory
    The dbfs appear to be in the new location, and of course using the mv command, they're not in the old location. How hosed am I?

    Hi
    I think you forget some step.
    Step 2, must copy rather than move.
    And step 3, notice the change to the control file.
    1) Alter tablespace xxx offline;
    2) Copy the affected datafiles to the new location, again, copy rather than move.
    3) For each data file affected, alter tablespace xxx rename datafile <old filename> to <new filename>;
    4) Alter tablespace xxx online;
    5) Alter database backup controlfile to trace, because we have changed the structure of the database and must preserve it.
    6) Delete the old datafiles from the old file system.

  • Moving datafles between ASM disk groups?

    Does anyone know the proper process to move a datafile to a different ASM disk group?
    For example, I would like the TEMP and UNDOTBS01 to be in their own ASM disck groups separate from SYSTEM. Right now everything is in one ASM disk group. An argument could be made for such simplicity. However, is it a total nightmare to move things around amongst ASM disk groups to further eliminate disk contention beyond just ASM mirroring everything in one huge disk group?
    Thanks for any help!

    There is only one ASM instance running.
    These are not datafiles any more.
    ASMCMD> cp ARCHLOG01/ERPBF/DATAFILE/APPS_TS_ARCHIVE.305.748450671 ERPBF/ERPBF_OLD_BACKUP/DATAFILE
    copying ARCHLOG01/ERPBF/DATAFILE/APPS_TS_ARCHIVE.305.748450671 -> ERPBF/ERPBF_OLD_BACKUP/DATAFILE/APPS_TS_ARCHIVE.305.748450671
    ASMCMD-08016: copy source->'+ARCHLOG01/ERPBF/DATAFILE/APPS_TS_ARCHIVE.305.748450671' and target->'+ERPBF/ERPBF_OLD_BACKUP/DATAFILE/APPS_TS_ARCHIVE.305.748450671' failed
    ORA-19505: failed to identify file "+ERPBF/ERPBF_OLD_BACKUP/DATAFILE/APPS_TS_ARCHIVE.305.748450671"
    ORA-17502: ksfdcre:4 Failed to create file +ERPBF/ERPBF_OLD_BACKUP/DATAFILE/APPS_TS_ARCHIVE.305.748450671
    ORA-15046: ASM file name '+ERPBF/ERPBF_OLD_BACKUP/DATAFILE/APPS_TS_ARCHIVE.305.748450671' is not in single-file creation form
    ORA-06512: at "SYS.X$DBMS_DISKGROUP", line 258
    ORA-06512: at line 3 (DBD ERROR: OCIStmtExecute)
    ASMCMD>
    Edited by: 812261 on Apr 18, 2011 1:46 PM

  • Moving datafiles to a new location: change not flushed

    Hi all,
    I am using Oracle 10g release 10.2.0.1.0 patched 10.2.0.3.0
    I need to move all datafiles of the DB from a current location to a new one. Here are the steps I follow (I use SPFILE):
    1-Shutdown the DB
    2-Move all .DBF .LOG .CTL files to the new location
    3-startup mount
    4-alter database rename file 'old location' to 'new location' ; ... for all .DBF and .LOG files
    5-alter system set control_file=<list of CTL files in new location>
    6-alter system set core_dump_dest=<new empty location for cdump>
    7-alter system set user_dump_dest=<new empty location for udump>
    8-alter system set background_dump_dest=<new empty location for bdump>
    9-alter database open
    From this point, if I use select * from v$logfile or select name from v$datafile or show parameter, I see that the DB is using all files in the new location. That's correct.
    My problem is: if now, I issue a shutdown followed by a startup, the DB will then show the old location for files as if my updates (steps 1 to 9) were not flushed/commited.
    Is there a kind of commit to have my changes taken into account ? How may I resolve my problem ?
    Thanks for any help.

    This does not work:
    1-Shutdown the DB
    2-startup mount
    3-alter database rename file 'old location' to 'new location' ; ... for all .DBF and .LOG files
    4-alter system set control_file=<list of CTL files in new location>
    5-alter system set core_dump_dest=<new empty location for cdump>
    6-alter system set user_dump_dest=<new empty location for udump>
    7-alter system set background_dump_dest=<new empty location for bdump>
    (So changes are now in the old location)
    8-shutdown
    8-copy all .DBF .LOG .CTL files to the new location
    9-startup
    ... because when the alter database statement is issued, oracle does not find the file in 'new location'. So the correct sequence with the spfile is:
    1-Shutdown the DB
    2-copy all .DBF .LOG to the new location. Do not copy the .CTL files at this step.
    3-startup mount
    3-alter database rename file 'old location' to 'new location' ; ... for all .DBF and .LOG files
    (Oracle finds them in the new location)
    4-alter system set control_file=<list of CTL files in new location> scope=spfile
    5-alter system set core_dump_dest=<new empty location for cdump> scope=spfile
    6-alter system set user_dump_dest=<new empty location for udump> scope=spfile
    7-alter system set background_dump_dest=<new empty location for bdump> scope=spfile
    (CTL are still in old location but contain information about the new location)
    8-shutdown
    9-copy all .CTL files to the new location
    10-startup
    Many thanks to you all for your help.

  • Moving Datafiles from one drive to another

    What is the procedure to move datafiles from one drive to another ?
    Thanks

    Hi,
    What is the Database version ?
    Anyways check this SAP Note 363018 - File management for SQL Server.
    Hope it helps
    Regards
    KT

  • Moving datafile

    Hi,
    How can I move a datafile from a disk
    to another one ?
    Datafile is offline, but "alter datafile ...
    rename .." dosn't work.

    I think the SQL statement is 'ALTER DATABASE RENAME FILE ...' but you can also use the 'ALTER TABLESPACE ... RENAME DATAFILE ...'.
    It is in the Oracle8i online docs.
    These SQL statements only tell the control files to use another datafile instead of. Therefore, you should copy the datafile to the new location for this to have an effect but there is a catch if you intend to keep the database for minimum downtime.
    Assuming the datafile is not in the SYSTEM tablespace, the simplest method is to take the tablespace offline that uses the datafile (to close the file), copy the datafile to the new location (using the OS cp command), execute the ALTER DATABASE RENAME FILE statement, then take the tablespace online again.
    If the datafile is in the SYSTEM tablespace, then I think the database has to be restarted in 'nomount' mode to perform this operation.
    If you do not know for which tablespace the file is for, heres a simple SQL statement:
    select tablespace_name, file_name from dba_data_files;
    Hope this helps,
    - Alex
    null

  • Move database files from one ASM diskgroup to another

    We are working on 11.2.0.3 RAC environment. We have an activity in which we have to move ASM database files from one diskgroup to another. We have the sufficient downtime for the activity. On checking MOS it says copying datafiles from "rman copy" command is the preferred method.But with 11g R2 we can use cp command in ASMCMD.
    So which is the preferred method to copy asm database files and why:
    RMAN Copy command or ASMCMD cp command

    Hi,
    I normally prefer to go with RMAN than the ASMCMD cp command. Suppose the datafiles are OMF and you use RMAN to copy:
    1. offline the datafile
    2. RMAN>copy datafile <offline-datafile-on-old-DG> to +NEW-DG;
    3. At database level, rename the old datafile to the new name reported from the above command
    4. Switch the new datafile to copy
    5. Recover the new datafileHere, RMAN assigns automatically a unique name for the new datafile (OMF) and you only have to specify the new diskgroup name while using the COPY command which makes things easier. But say if you are using ASMCMD, then you cannot just specify the new diskgroup name for the CP command, which means that a unique name cannot be obtained automatically.
    The below command does not work out.
    asmcmd>cp OLD_DG/datafile/abc.123 NEW_DGYou need to specify the destination name as well something like below:
    asmcmd>cp OLD_DG/datafile/abc.123 NEW_DG/abc.dbfHere you are getting a normal file and not OMF, though ASM internally creates a link for the file "+NEW_DG/abc.dbf" pointing to an OMF. ASMCMD makes you a bit more confusive.
    Refer this http://surachartopun.com/2009/10/moving-datafile-in-asm-by-asmcmdcp.html

Maybe you are looking for

  • Can I use one hard drive for two computers?  Newbie here.

    Newbie here. I currently use Time Machine for my iMac (Intel) I've been using my Macbook Pro (Intel) a lot lately and would like to back it up from time to time as well. Can I simply attach the external hard drive to my Macbook Pro and set up Time Ma

  • What are the benefits of FXG?

    I know the high-level benefits, like being able to code it declaratively. But what are the underlying technical benefits over an embedded asset? For example: Take a panel that has a gradient background. The skin-class can: (1) be defined as FXG or (2

  • Can't locate to delete file...Need help...

    So my kid got a fisher price iXl toy which required that I download the drivers for the mac as it didn't come with a disc for the mac. I downloaded the file fine and launched it however the software wasn't able to connect to the fisher price server,

  • FI Business Flow

    Hi,            Can anyone please explain the FI Business Flow ? i.e., What are the things to be taken in to consideration while implementing FI in BW ? please respond

  • Payment and prices

    I paid for 1 month subscription to call phone in Sri Lanka. After  that it shows 60 mins. credit left. But I could never take any call. The call does not connect. But at the end of the month Skype auto matically recharges and add credit to my account