RMAN copy datafiles from filesystem to ASM

DB version: 10.2.0.4
I need to copy 650G of datafiles from filesystems to ASM. Could someone let me know how to use RMAN parallelism for this?.
I'm using the command as below.
backup as copy datafile '/tmp/datafile1.dbf' format '+DATA';
backup as copy datafile '/tmp/datafile2.dbf' format '+DATA';

I also tried the below. But, it's also running long. Each 32G datafile is taking almost 3 hours to copy into ASM.
run {
   allocate channel ch1 type disk;
   allocate channel ch2 type disk;
   allocate channel ch3 type disk;
   allocate channel ch4 type disk;
   allocate channel ch5 type disk;
   allocate channel ch6 type disk;
   allocate channel ch7 type disk;
   allocate channel ch8 type disk;
copy
datafile ' 1.dbf'to '+DATA',
datafile ' 2.dbf'to '+DATA',
datafile ' 3.dbf'to '+DATA',
datafile ' 4.dbf'to '+DATA',
datafile ' 5.dbf'to '+DATA',
....}

Similar Messages

  • RMAN copy datafile replicated to standby?

    10.2.0.3 - standby is physical
    I want to rman move datafile from ASM/DATA0 to ASM/DATA1.
    STANDBY_FILE_MANAGEMENT is AUTO
    So something like this
    #rman> copy '/DATA0/file.dbf' to '/DATA1/new_file.dbf';
    switch to copy new_file.dbf';
    Where, why, what , when , how in the standby server.
    1) Will the 'file copy' and 'switch to' be replicated to the standby site automatically??
    2) Will I have to replicate the commands of 'file copy' and 'switch to' the standby.
    The tablespace/datafile must be offlined which is fine but the database cannot be down.

    First conferm me?
    1. Your Physical Standby on Normal File System or ASM for ASM Primary?
    U have to use parameter on standby side:
    db_file_name_convert parameter ='+ASM/DATA0','+ASM/DATA1
    Regards
    Anup
    http://indiandba.blogspot.com

  • How can I copy datafile (from one Raw device) to another Raw device ???

    can anybody tell me how do i copy/move one datafile from one raw device to another raw device.... ?
    I am having AIX 5.3 with SAN.
    Pls. help me...
    regards,
    Star Nirav

    Hello Hans,
    Currently I am using via RMAN... Want to know which one help me....? Is there any size limitation via dd command ? Can I use iocopy instead of dd in AIX ?
    man dd

  • Datapump TTS from filesystem to ASM migration

    Hi Experts,
    I have to move the 1.5 TB of data which is on filesystem running on Solaris SPARC (single instance) to Linux x86 RAC (10.2.0.4) with ASM. I am considering the Transportable tablespaces option using datapump. But I have done the filesystem to filesystem datapump for TTS. Is there any way that I can use datapump TTS for filesystem to ASM directly ? Any suggestion and comments please.
    Thanks
    Shashi

    I'm not sure what your question is. Data Pump works with ASM and supports transportable. You would have to copy your data files from your file system to your asm file system, then do the export on your source, copy the dumpfile to your asm target and then run data pump. If you have more specific questions, please list them.
    Hope this helps.
    Thanks
    Dean

  • Using RMAN "copy datafile" to restore db on a different host

    Hi,
    DB 8.1.7 (Standard Edition) on Windows Server 2000 SP4.
    Database is in Archivelog mode. RMAN uses a catalog database.
    The client does not want to spend money to upgrade the application (which only supports 8i - old app), therefore we have to relocate the database onto a new hardware (the machine is also old):
    Here is how I backup the database every night (I also make an OS copy of archivelogs on an hourly basis):
    echo run {
    echo allocate channel d1 type disk;
    echo backup
    echo tag db_full
    echo format '\\backupserver\backups\prodserver\rman\df_u%%u_s%%s_p%%p_t%%t'
    echo database;
    echo copy current controlfile to '\\backupserver\backups\prodserver\rman\DB_CONTROL01.ctl';
    echo sql 'alter system archive log current';
    echo backup
    echo format '\\backupserver\backups\prodserver\rman\al_u%%u_s%%s_p%%p_t%%t'
    echo archivelog all
    echo delete input;
    echo release channel d1;
    echo resync catalog;
    echo }
    ) | d:\orahome\bin\rman.exe target sys/***@db_ded rcvcat rman/rman@rpdb > D:\oracle_backup_db\rman_db_backup.logNow on a new 2003 server with database installed and rman catalog created, I am trying to restore my backups from the productions.
    After reading some online documents forums, I noticed that if I do not have image copies of datafiles, controlfile, and archivelogs I CANNOT catalog them on this new database.
    So, I want to create image copies when the database is in normal open state. What will I need to do get the new server to the same state as the production server? I know I will have to do media recovery, therefore copy and catalog the archivelogs created after the image copy was created.
    What are the steps to do this?
    If I create an image copy of a datafile on the production database and move that file to another location (to the new server with OS commands), will that affect a possible restore I might have to perform on the production database? I have space concerns on the production db so I do not want to keep them there and want to delete them after I test restoring them to the new server.
    Is this the best method to move this database to a host with the same name same folder structure?
    Thanks in advance,
    Sinan

    Hello;
    I'm not a windows guy but you could move the database cold using scp.
    Putty has PSCP here :
    http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
    You can create the scp batch file using SQL
    set heading off
    set feedback off
    set pagesize 100
    set linesize 400
    select 'scp '||a.name ||' server_name:' || a.name as newname from v$datafile a;
    select 'scp '||a.name ||' server_name:' || a.name as newname from v$controlfile a;
    select 'scp '||a.member ||' server_name:' || a.member as newname from v$logfile a;So shutdown the database and move the files. Restart do your RMAN backup and your done.
    The only issue I can is 2003 server probably does not have an SCP service like Unix.
    Here's a couple links to address that :
    http://mobassh.mobatek.net/
    http://www.netadmintools.com/art516.html
    Best Regards
    mseberg

  • Having trouble move Spfile from filesystem to asm

    I find out the db started with :
    Using parameter settings in server-side spfile /u01/app/oracle/product/11.2.0/dbhome_1/dbs/spfileTST1.ora
    Tried to create a pfile, then create a spfile ='+DAT' won';t work with ora-03113 error.
    I did srvctl config database, the spfile is point to +dat
    Database unique name: TST
    Database name: TST
    Oracle home: /u01/app/oracle/product/11.2.0/dbhome_1
    Oracle user: oracle
    Spfile: DAT/TST/spfileTST.ora
    Domain:
    Start options: open
    Stop options: immediate
    Database role: PRIMARY
    Management policy: AUTOMATIC
    Server pools: TST
    Database instances: TST1,TST2
    Disk Groups: DAT,FRA
    Mount point paths:
    Services:
    Type: RAC
    Database is administrator managed
    How do I get around this issue and put spfile on ASM so I can bring the RAC instances?
    Thanks in advance.

    SQL> show parameter db_create
    NAME TYPE VALUE
    db_create_file_dest string +HR_DAT
    db_create_online_log_dest_1 string +HR_DAT
    db_create_online_log_dest_2 string +HR_FRA                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • 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

  • Poor performance after moving from hp to linux, oracle 11.2.0.1 to 11.2.0.3, filesystems to ASM

    We moved a database from HP/UX to linux, upgraded oracle from 11.2.0.1 to 11.2.0.3, and from filesystems to ASM.  The new server has 32 cores and 500gb of memory. the old server has less than half of that.  Queries take twice as long to run on the new server as on the old server.  We've tested to eliminate I/O as the issue by creating a local filesystem and creating the database there.  The performance was still double over the old database.  We also moved the database to a 3rd server, using ASM and 11.2.0.3 of oracle for testing to prove to the systems administrator that it wasn't a database problem.  The performance on the 3rd server is incredibly fast.  This points to something on the new server.  Does anyone have any ideas of what to look at next, keeping in mind that we've tested the heck out of I/O.
    Thanks for any assistance.

    Well, a few details about your configuration could help:
    What does /proc/meminfo on the server show?
    How is the storage connected?
    What does: "# /sbin/ifconfig -a" show?
    Are you using ASMLIB or straight ASM?
    Are you using multipath connections to storage?  If so, make sure that "/etc/multipath.conf" actually identifies the composite device and not one of the physical paths.
    Are there any entries in "/var/log/messages" while running the ASM testing?
    I'm sure these questions will stimulate others.

  • RMAN syntax to backup & copy datafile.

    Hi
    Requesting RMAN syntax to bakup a datafile.
    And
    Requesting RMAN syntax to copy a datafile.
    Wishes
    Jawad

    You must full qualify the datafile name (with full pathname).
    RMAN> report schema;
    Report of database schema
    File K-bytes    Tablespace           RB segs Datafile Name
    1        204800 SYSTEM               YES    /db/ARON/fs1/system_d01_0.dbf
    2         10240 TEST                 NO      /db/ARON/fs1/test_d01_0.dbf
    3         51200 USERS                NO      /db/ARON/fs1/user_s01_0.dbf
    4        512000 UNDO                 YES     /db/ARON/fs1/undo_d01_0.dbf
    RMAN> copy datafile "system_d01_0.dbf" to "/tmp/system_d01_0.cpy";
    Starting copy at 30-JAN-06
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=14 devtype=DISK
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of copy command at 01/30/2006 20:13:19
    RMAN-20201: datafile not found in the recovery catalog
    RMAN-06010: error while looking up datafile: /oracle/9.2.0_64/dbs/system_d01_0.dbf
    RMAN> copy datafile "/db/ARON/fs1/system_d01_0.dbf" to "/tmp/system_d01_0.cpy";
    Starting copy at 30-JAN-06
    using channel ORA_DISK_1
    channel ORA_DISK_1: copied datafile 1
    output filename=/tmp/system_d01_0.cpy recid=48 stamp=581112835
    Finished copy at 30-JAN-06Aron

  • Migration Filesystem to ASM

    Hi Guys,
    Someone have
    Tutorial step-by-step or video explaing How to migration FIlesytem to ASM?
    Tks,
    Lorran

    Hi,
    You can follow the below article steps to migrate the database from filesystem (Non-ASM) to ASM.
    Steps To Migrate/Move a Database From Non-ASM to ASM And Vice-Versa (Doc ID 252219.1)
    and also refer OTN document
    Performing Oracle ASM Data Migration with RMAN

  • How to copy DB files from UNIX filesystem to ASM in RMAN?

    Hi,
    I have a cold backup copied from a RAC ASM by using RMAN to UNIX filesystem. I made it like this:
    RMAN> run
    copy datafile 1 to '/backup/PDAMLPF2/offline/system.306.715096785';
    copy datafile 2 to '/backup/PDAMLPF2/offline/undotbs1.260.715096755';
    Now, I need to restore (or copy) this cold backup into another RAC ASM system to create a DB. How can I do the copy back?
    Thanks for advise!

    If you are using 11.1 or above you can use asmcmd cp command otherwise use dbms_file_transfer package. But keep in mind that since you are not using RMAN in any of those stages you will need to modify controlfile anyhow.
    Regards,
    Husnu Sensoy

  • Migrate datafiles from Veritas Filesystem (SFRAC) to ASM

    Hello,
    I'm gathering details how to migrate datafiles from Veritas Filesystem(SFRAC) to ASM. Please feed in your suggestions. The show stopper is DB SIZE which is 56 TB and addition of 1 TB each month.
    ENV Details
    OS : Solsris 10
    RDBMS : 9.2.0.8 (to be upgraded to 11.2.0)
    STORAGE : Propsed to use ASM, but need datafiles migration strategy.
    DB SIZE = 56 TB
    Kind Regards,
    Kam

    Hi,
    First of all you need to upgrade the database to 11.2
    After ...
    It is often used the strategy RMAN Online Backup with Image Copies to migrate to ASM
    Check this out... This a litte example
    You can move pieces (i.e Tablespaces, Controlfile, etc..) database as you want.
    http://uhesse.wordpress.com/2010/12/01/database-migration-to-asm-with-short-downtime/
    Regards,
    Levi Pereira

  • How can I move back the rman convert file from file system to ASM?

    I have no idea on pluging-in the data files which were unloaded as follows:
    SQL> alter tablespace P_CDDH_DSPGD_V1_2011 read only;
    SQL> alter tablespace P_IDX_CDDH_DSPGD_V1_2011 read only;
    SQL> exec dbms_tts.transport_set_check('P_CDDH_DSPGD_V1_2011,P_IDX_CDDH_DSPGD_V1_2011',true);
    SQL> select * from transport_set_violations;
    UNIX> expdp tossadm@pmscdhf1 dumpfile=ttsfy1.dmp directory=trans_dir transport_tablespaces = P_CDDH_DSPGD_V1_2011,P_IDX_CDDH_DSPGD_V1_2011
    RMAN> convert tablespace P_CDDH_DSPGD_V1_2011, P_IDX_CDDH_DSPGD_V1_2011 format = '/appl/oem/backup/temp/%I_%s_%t_extbspace.dbf';
    Starting conversion at source at 03-OCT-13
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=116 instance=pmscdhf11 device type=DISK
    channel ORA_DISK_1: starting datafile conversion
    input datafile file number=00079 name=+PMSCDHF1/p_cddh_dspgd_v1_2011_01.dbf
    converted datafile=/appl/oem/backup/temp/3536350174_2820_827849001_extbspace.dbf
    channel ORA_DISK_1: datafile conversion complete, elapsed time: 00:02:15
    channel ORA_DISK_1: starting datafile conversion
    input datafile file number=00080 name=+PMSCDHF1/p_idx_cddh_dspgd_v1_2011_02.dbf
    converted datafile=/appl/oem/backup/temp/3536350174_2821_827849136_extbspace.dbf
    channel ORA_DISK_1: datafile conversion complete, elapsed time: 00:01:45
    Finished conversion at source at 03-OCT-13
    Starting Control File Autobackup at 03-OCT-13
    piece handle=/dbms/oracle/r1110/db_01/dbs/c-3536350174-20131003-02 comment=NONE
    Finished Control File Autobackup at 03-OCT-13
    SQL> drop tablespace P_CDDH_DSPGD_V1_2011 including contents;
    SQL> drop tablespace P_IDX_CDDH_DSPGD_V1_2011 including contents;
    Afterward, how can I relocate the backup files "/appl/oem/backup/temp/3536350174_2820_827849001_extbspace.dbf", "/appl/oem/backup/temp/3536350174_2821_827849136_extbspace.dbf" back to the ASM group +PMSCDHF1 ???

    The 11.1 documentation only says  "Enables you to copy files between ASM disk groups on local instances to and from remote instances" and "You can also use this command to copy files from ASM disk groups to the operating system."
    http://docs.oracle.com/cd/B28359_01/server.111/b31107/asm_util.htm#CHDJEIEA
    The 11.2 documentation says "Copy files from a disk group to the operating system  Copy files from a disk group to a disk group Copy files from the operating system to a disk group"
    http://docs.oracle.com/cd/E11882_01/server.112/e18951/asm_util003.htm#CHDJEIEA
    I've never tried 11.1
    Hemant K Chitale

  • RMAN restore from active database, ASM

    I'm attempting to refresh a stage database from a prod database using RMAN restore from active database. Both are on ASM. After working through various hurdles, I've got one issue I'm a bit stuck on. I've got a handful of data files that do NOT have OMF names (ie MSTRDATA/mstrmdpd/datafile/gsa_indx instead of MSTRDATA/mstrmdpd/datafile/gsa_indx.351.714779777) and these are failing when I do the restore. The syntax I'm using in RMAN is as follows:
    duplicate target database to dwstage
    from active database
    spfile parameter_value_convert 'dwprod','dwstage'
    SET DB_FILE_NAME_CONVERT '+DWPROD','+DWSTAGE'
    SET LOG_FILE_NAME_CONVERT '+DWPROD','+DWSTAGE';
    The error message I'm getting is this:
    RMAN-03009: failure of backup command on ORA_DISK_1 channel at 04/21/2011 13:26:24
    ORA-17628: Oracle error 19505 returned by remote Oracle server
    continuing other job steps, job failed will not be re-run
    Normally from what I've seen/read this error can be traced back to needing to pre-create the directories for the controlfiles etc, but since 90% of the datafiles copied correctly...
    Any suggestions as to a way around this, or am I going to be forced to restore from a backupset?

    This fails saying that "ORA-12528: TNS:listener: all appropriate instances are blocking new connections" which is quite normal given that the listener is havig a handle in BLOCKED state for this AUXDB as it is in NOMOUNT state.
    Could you please help me on how to proceed?
    One option can be to create the controlfile manually and mount the instance before doing the duplicate. I hope Rman can continue from there.
    Another option is to go for backup based duplicate.
    Is there any other way to go?
    Provide static registration on AUXILIARY side for your auxiliary instance and try again.For example change listener.ora file as
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (GLOBAL_DBNAME = AUXDB)
          (ORACLE_HOME = <your oracle home>)
          (SID_NAME = AUXDB)
    LISTENER =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = <auxiliary host/ip>)(PORT = 1521))
      )And restart listener on auxiliary host then try again

  • 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.

Maybe you are looking for

  • Phone number is different on iMessage than mine

    I keep trying to activate my iMessages but for some reason the phone number that appears is different than mine. How can I fix this?

  • How to make IOS 7 readable? Or how to go back to IOS 6?

    I know there are tons of improvements in IOS 7, but the user interface isn't one of them. I can't read light blue against a lime green background, and I can't read white, spindly letters against a white background either. I've been tested: my color v

  • E71 "memory full" error message

    Hi there, I've had an E71 for 7 months now and started receiving a "memory full" error message today at 1 min intervals.  I still have full functionality and have checked the phone memory which still has 1695MB free with only 191MB in use.  How do I

  • Replace G5 Dual 2 Ghz fan filters?

    Recently I've noticed the fans running more than usual. I ran hardware test - no problems reported. Also cleaned inside the case, we get a lot of dust here and I noticed the (paper?) filters had some dirt on them, doing their job I guess. I searched

  • Ipod will not see Computer

    I have a Ipod 5gen and It will not see my computer and my computer will not see the Ipod I have tried different cords. I can't connect to another computer and I can charge my Ipod via a wall charger but not my computer. If anyone can help me please d