RMAN - Schema level backup ??

We have a production system in which one schema is getting bigger day by day(40GB).
We want this schema in our development instnaces once in a week atleast.As export for this is taking time we want to go for rman setup for faster process.
1)Will rman backup speed up the process ?
2)Is there any way we can take the rman backup for a schema and not for the whole database.
3)If yes what are the steps for this setup and steps to use this in the develpment database?
Production is on hp-ux and dev on windows.

1)Will rman backup speed up the process ?It depends. If they will be backuped only 40Gb, will be relatively fast.
2)Is there any way we can take the rman backup for a schema and not for the whole database.Schema No, but if the schema objects is in a single tablespace one, can be make the tablespace backup
3)If yes what are the steps for this setup and steps to use this in the develpment database?Follow the steps to backup the tablespace.

Similar Messages

  • RMAN 0 level backup failed while releasing channels at end.

    In RMAN 0 level backup, when it's about to finish, reports an error as releasing channels. It backed up about 98% datafiles.
    Is this backup is usable. As we can not affort to take backup again as it's a big terabyte databse.
    Please suggest.
    Thanks in advance.
    Aj.

    Do you have release stmts in the script
    From 9i onwards oracle Release the channels automatically upon backing up, so you can remove the release channel lines if you have and try it

  • Schema level backup using rman

    DB : 10gR2/11gR2
    OS : Linux 5.5
    can we take a schema backup into one rman backup piece?
    if yes could you please let me know how?
    Thanks.

    856256 wrote:
    DB : 10gR2/11gR2
    OS : Linux 5.5
    can we take a schema backup into one rman backup piece?
    if yes could you please let me know how?
    Thanks.rman is only concerned with backup of physical blocks of the data files. That is a few layers of abstraction below the concept of 'schema'. rman doesn't give a flying fig about what is on a given block. It only cares if the block has been/needs to be backed up, and where within the file it came from (backup) and goes to (restore).

  • Backup RMAN Incremental Level 1 without Level 0 - 10gR2

    Hi,
    I'm a bit confused after some tests.
    The Question: It's mandatory to perform backup incremental level 0 before the level 1 using Oracle 10gR2 ?
    On Oracle 11.2 it's mandatory but on Oracle 10.2.0.5 I don't know.
    Test on 11.2. If doesn't exists level 0 rman take care about it and perform automaticaly level 0 before level1
    RMAN> backup incremental level 1 database;
    Starting backup at 29-APR-11
    using channel ORA_DISK_1
    no parent backup or copy of datafile 1 found
    channel ORA_DISK_1: starting incremental level 0 datafile backup set
    channel ORA_DISK_1: specifying datafile(s) in backup set
    ...Docs said:
    Incremental backups capture only those blocks that change between backups in each datafile.
    In a typical incremental backup strategy, a level 0 incremental backup is used as a starting point. A level 0 backup captures all blocks in the datafile.
    So, on Oracle 10.2.0.5 this not happen like on 11.2:
    Perfoming backup level 1 without level 0:
    RMAN> list backup;
    RMAN> backup incremental level 1 database;
    Starting backup at 29-APR-11
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting incremental level 1 datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    input datafile fno=00001 name=+DG_ORCL/db10g/datafile/system.260.749756975
    channel ORA_DISK_1: starting piece 1 at 29-APR-11
    channel ORA_DISK_1: finished piece 1 at 29-APR-11
    piece handle=+DG_FRA/db10g/backupset/2011_04_29/nnndn1_tag20110429t190340_0.260.749761421 tag=TAG20110429T190340 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:25
    channel ORA_DISK_1: starting incremental level 1 datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    including current control file in backupset
    including current SPFILE in backupset
    channel ORA_DISK_1: starting piece 1 at 29-APR-11
    channel ORA_DISK_1: finished piece 1 at 29-APR-11
    piece handle=+DG_FRA/db10g/backupset/2011_04_29/ncsnn1_tag20110429t190340_0.262.749761449 tag=TAG20110429T190340 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:05
    Finished backup at 29-APR-11
    RMAN> backup archivelog all delete input;
    Starting backup at 29-APR-11
    current log archived
    using channel ORA_DISK_1
    Finished backup at 29-APR-11
    RMAN> shutdown abort;
    Oracle instance shut downDelete all files on ASM (except SPFILE).
    ASMCMD> cd +DG_ORCL/DB10g
    ASMCMD> ls
    PARAMETERFILE/
    spfiledb10g.oraSo, let's perfom restore of database
    oracle@butao:/home/oracle> rman target /
    Recovery Manager: Release 10.2.0.5.0 - Production on Fri Apr 29 19:06:52 2011
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    connected to target database (not started)
    RMAN> startup nomount
    Oracle instance started
    Total System Global Area     293601280 bytes
    Fixed Size                     2095872 bytes
    Variable Size                 92275968 bytes
    Database Buffers             192937984 bytes
    Redo Buffers                   6291456 bytes
    RMAN> restore controlfile from '+DG_FRA/db10g/backupset/2011_04_29/ncsnn1_tag20110429t190340_0.262.749761449';
    Starting restore at 29-APR-11
    using channel ORA_DISK_1
    channel ORA_DISK_1: restoring control file
    channel ORA_DISK_1: restore complete, elapsed time: 00:00:05
    output filename=+DG_ORCL/db10g/controlfile/current.263.749761699
    output filename=+DG_FRA/db10g/controlfile/current.263.749761699
    Finished restore at 29-APR-11
    RMAN> startup mount
    database is already started
    database mounted
    released channel: ORA_DISK_1
    RMAN> restore database;
    Starting restore at 29-APR-11
    Starting implicit crosscheck backup at 29-APR-11
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=156 devtype=DISK
    Crosschecked 1 objects
    Finished implicit crosscheck backup at 29-APR-11
    Starting implicit crosscheck copy at 29-APR-11
    using channel ORA_DISK_1
    Finished implicit crosscheck copy at 29-APR-11
    searching for all files in the recovery area
    cataloging files...
    cataloging done
    List of Cataloged Files
    =======================
    File Name: +dg_fra/DB10G/BACKUPSET/2011_04_29/ncsnn1_TAG20110429T190340_0.262.749761449
    File Name: +dg_fra/DB10G/BACKUPSET/2011_04_29/annnf0_TAG20110429T190442_0.264.749761485
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting datafile backupset restore
    channel ORA_DISK_1: specifying datafile(s) to restore from backup set
    restoring datafile 00001 to +DG_ORCL/db10g/datafile/system.260.749756975
    restoring datafile 00002 to +DG_ORCL/db10g/datafile/undotbs1.261.749757085
    restoring datafile 00003 to +DG_ORCL/db10g/datafile/sysaux.262.749757095
    restoring datafile 00004 to +DG_ORCL/db10g/datafile/users.264.749757107
    channel ORA_DISK_1: reading from backup piece +DG_FRA/db10g/backupset/2011_04_29/nnndn1_tag20110429t190340_0.260.749761421
    channel ORA_DISK_1: restored backup piece 1
    piece handle=+DG_FRA/db10g/backupset/2011_04_29/nnndn1_tag20110429t190340_0.260.749761421 tag=TAG20110429T190340
    channel ORA_DISK_1: restore complete, elapsed time: 00:00:26
    Finished restore at 29-APR-11
    RMAN> recover database;
    Starting recover at 29-APR-11
    using channel ORA_DISK_1
    starting media recovery
    archive log thread 1 sequence 27 is already on disk as file +DG_FRA/db10g/onlinelog/group_3.259.749756971
    archive log thread 1 sequence 28 is already on disk as file +DG_FRA/db10g/onlinelog/group_1.257.749756963
    archive log filename=+DG_FRA/db10g/onlinelog/group_3.259.749756971 thread=1 sequence=27
    archive log filename=+DG_FRA/db10g/onlinelog/group_1.257.749756963 thread=1 sequence=28
    media recovery complete, elapsed time: 00:00:02
    Finished recover at 29-APR-11
    RMAN> alter database open resetlogs;
    database opened
    RMAN>See I don't need level 0 backup to restore level 1.
    Thanks,
    Levi Pereira

    Hi Gokhan,
    Thank you for point this.
    After spending a time studying about this I find out this:
    Your expanation apply only in Oracle 10gR1/R2.
    Because there is differences between RMAN Version 10gR1/R2 and 11gR1/R2 about Incremental Level 1 and this confuse me.
    Oracle 10gR1/R2 run only one backup incremental level 1 even if level 0 not exists .
    Oracle 11gR1/R2 run two backups incremental if level 0 not exists. i.e level 0 first and after that level 1.
    Oracle 10gR2
    If no level 0 backup is available, then the behavior depends upon the compatibility mode setting. If compatibility is >=10.0.0, RMAN copies all blocks changed since the file was created, and stores the results as a level 1 backup. In other words, the SCN at the time the incremental backup is taken is the file creation SCN.
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14192/bkup004.htm
    Thats means wich RMAN run level 0 with name level 1. (i.e: Only one Backup) This is confuse.
    Oracle 11gR1
    If no level 0 backup is available in either the current or parent incarnation, then the behavior varies with the compatibility mode setting. If compatibility is >=10.0.0, RMAN copies all blocks that have been changed since the file was created. Otherwise, RMAN behaves as it did in previous releases, by generating a level 0 backup.
    http://download.oracle.com/docs/cd/B28359_01/backup.111/b28270/rcmcncpt.htm#BRADV89500
    Oracle 11gR2
    If no level 0 backup is available in either the current or parent incarnation, then the behavior varies with the compatibility mode setting. If compatibility is >=10.0.0, RMAN copies all blocks that have been changed since the file was created. Otherwise, RMAN generates a level 0 backup.
    http://download.oracle.com/docs/cd/E11882_01/backup.112/e10642/rcmcncpt.htm#BRADV89500
    Thats means wich RMAN run (automatically) level 0 first after finish level 0 backup RMAN run level 1 backup (i.e Two Backups). This seems right.
    Regards,
    Levi Pereira

  • If RMAN incremental level-1 backup fails...

    Hi there,
    I have a question. If the RMAN incremental level-1 backup fails, will the next level-1 backup attempt take backup of all changes since last successful level-0 OR level-1 backup?
    Best regards

    Hi,
    I have a question. If the RMAN incremental level-1 backup fails, will the next level-1 backup attempt take backup of all changes since last successful level-0 OR level-1 backup?
    Check the V$BACKUP_SET dictionary to confirm whether the last backup has been touched by data dictionary. If the failed incremental backup is picked up then the previous incremental backup will be required in case of the next DIFFERENTIAL INCREMENTAL LEVEL 1 backup.
    But to be on safe side , it is recommended you take a LEVEL 01 CUMILATIVE INCREMENTAL backup from Level 0 till date. So that the recovery process can go through even  if the previous backup is not valid.
    Thanks &
    Best Regards

  • If I need a full rman restore which backups will it use?

    Hello,
    I have a database 11.1.0.7 with 8TB. Block change tracking is enabled.
    At the weekend I take level 0 backup and during the week level 1 cumulative.
    For some weeks the level 0 backup is failing, so I only have level 1 cumulative backups taken every week day with a 4 weeks old level 0 backup.
    If I need a full rman restore which backups will it use? Will it be the last level 0 backup with the last level 1 cumulative?
    I ask this because grid crontrol tells me that the recent level 1 backups input size is smaller than last week level 1 backups and in between I dont have any level 0 sucessfull backups. Shouldn't the input size of level 1 cumulative increase until the next level 0 backup ?
    The grid reports:
    Backup Name Status Start Time Time Taken Type Output Devices Input Size Output Size Output Rate (Per Sec)
    rman_df_lv1c COMPLETED 25/Jul/2011 21H00m WEST 02:33:29 DB INCR SBT_TAPE *1.32T* 289.02G 32.14M
    rman_df_lv0 FAILED 23/Jul/2011 02H01m WEST DB INCR SBT_TAPE 8.78T 8.06T
    rman_df_lv1c COMPLETED 21/Jul/2011 21H00m WEST 04:39:38 DB INCR SBT_TAPE *3.46T* 550.82G 33.62M
    rman_df_lv1c COMPLETED 20/Jul/2011 21H00m WEST 04:47:36 DB INCR SBT_TAPE *3.37T* 524.36G 31.12M
    rman_df_lv1c COMPLETED 19/Jul/2011 21H00m WEST 04:06:09 DB INCR SBT_TAPE *3.15T* 490.75G 34.03M
    rman_df_lv1c COMPLETED 18/Jul/2011 21H00m WEST 03:40:24 DB INCR SBT_TAPE *2.49T* 410.88G 31.82M
    rman_df_lv0 FAILED 16/Jul/2011 22H16m WEST DB INCR SBT_TAPE 6.27T 5.69T
    rman_df_lv1c FAILED 14/Jul/2011 21H00m WEST 06:13:40 DB INCR SBT_TAPE 4.38T 714.30G 32.62M
    rman_df_lv1c FAILED 13/Jul/2011 21H01m WEST 04:40:45 DB INCR SBT_TAPE 3.25T 542.98G 33.01M
    rman_df_lv1c COMPLETED 12/Jul/2011 21H00m WEST 07:15:54 DB INCR SBT_TAPE 4.74T 847.93G 33.20M
    rman_df_lv1c COMPLETED 11/Jul/2011 21H00m WEST 07:26:40 DB INCR SBT_TAPE 3.78T 766.40G 29.28M
    rman_df_lv0 FAILED 9/Jul/2011 02H32m WEST 04:30:44 DB INCR SBT_TAPE 749.89G 716.02G 45.14M
    rman_df_lv1c FAILED 7/Jul/2011 21H01m WEST 04:49:24 DB INCR SBT_TAPE 2.16T 515.90G 30.42M
    rman_df_lv1c FAILED 6/Jul/2011 21H00m WEST 01:26:06 DB INCR SBT_TAPE 745.83G 165.48G 32.80M
    rman_df_lv1c FAILED 5/Jul/2011 21H01m WEST 00:05:48 DB INCR SBT_TAPE 58.56G 7.56G 22.24M
    rman_df_lv1c FAILED 4/Jul/2011 21H00m WEST 01:55:03 DB INCR SBT_TAPE 422.40G 79.55G 11.80M
    rman_df_lv0 FAILED 3/Jul/2011 16H32m WEST 30:22:04 DB INCR SBT_TAPE 4.53T 4.21T 40.40M

    >
    If I need a full rman restore which backups will it use? Will it be the last level 0 backup with the last level 1 cumulative?
    From http://download.oracle.com/docs/cd/B28359_01/backup.111/b28270/rcmvalid.htm
    Validating Backups Before Restoring Them
    You can run RESTORE ... VALIDATE to test whether RMAN can restore a specific file or set of files from a backup. RMAN chooses which backups to use.
    The database must be mounted or open for this command. You do not have to take datafiles offline when validating the restore of datafiles, because validation of backups of the datafiles only reads the backups and does not affect the production datafiles.
    When validating files on disk or tape, RMAN reads all blocks in the backup piece or image copy. RMAN also validates offsite backups. The validation is identical to a real restore operation except that RMAN does not write output files.
    You can monitor what RESTORE VALIDATE does.
    Make precautions, so you do not damage the production DB!!!
    Iordan Iotzov
    http://iiotzov.wordpress.com/

  • RMAN report need backup

    We have an incremental level-1 backup Mon-Sat and cold full backup on Sundays with retention policy of 7 days. While troubleshooting some backup issues (space issue, expired backups) I ran the following commands and trying to understand the output.
    RMAN> report need backup database;
    RMAN retention policy will be applied to the command
    RMAN retention policy is set to recovery window of 7 days
    Report of files whose recovery needs more than 7 days of archived logs
    File Days Name
    100 146 /orahprdidx/hprd/psindex05.dbf
    RMAN> report unrecoverable;
    Report of files that need backup due to unrecoverable operations
    File Type of Backup Required Name
    RMAN> report need backup days = 7 database;
    Report of files whose recovery needs more than 7 days of archived logs
    File Days Name
    100 146 /orahprdidx/hprd/psindex05.dbf
    RMAN> report obsolete recovery window of 7 days;
    no obsolete backups found
    RMAN>
    I looks like I need 146 days worth of archive log files to recover the psindex05.dbf. If so, what I could do to bring that into the 7 days policy?
    The database is fine, I am not trying to recover the database.
    This was setup by someone and now I am taking over with minimum RMAN experience.
    I appreciate any help in this subject.

    The datafile was offline. I guess it was created my mistake and hanging in there. Once I do the cleanup it should go away.

  • What to do if there is abrupt termination of RMAN during a backup session

    Hi All,
    I am trying to automate the Level 0 and Level 1 backups which we ought to take. Following the is the RMAN related part of it for L1 backup:
    CONFIGURE CONTROLFILE AUTOBACKUP ON;"
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '${BKP_LOCATION}/${LType}_%F';"
    run {"
    allocate channel c1 type disk;"
    backup"
    incremental level 1 cumulative tag = $BTAG"
    format '${BKP_LOCATION}/${LType}_%d_set%s_piece%p_%T_%U.bkp'"
    (database include current controlfile tag $CTAG) ;"
    sql 'alter system archive log current';"
    sql 'alter system archive log current';"
    backup archivelog from sequence ${CSEQ} tag $ATAG"
    format '${BKP_LOCATION}/${LType}_Arch_%d_set%s_piece%p_%T_%U.bkp';"
    release channel c1;"
    exit;"
    In the above snippet, the variables are substituted for within a shell script and then put into a command file for RMAN. I am a novice in the backup and recovery. I got above piece of code from someone working on RMAN and built my automation logic around it.
    The script works fine and I am trying to build to script level recovery feature around it. My question is:
    -- What happens if I invoke the script, the backup session starts and then there is abrupt termination of the RMAN session either because of losing the db connection or receiving an interrupt signal or a kill signal or some other weird reason.
    -- What if I re-invoke my script? Will it start from the point where it was stopped earlier or would it start from the point where we had last successful Level 1 backup completed?
    Thanks in Advance.

    Hi user781131,
    What happens if I invoke the script, the backup session starts and then there is abrupt termination of the RMAN session either because of losing the db
    connection or receiving an interrupt signal or a kill signal or some other weird reason?The backup set which rman was creating is not commited due to the abnormal termination but all succesfull backup sets can be used.
    What if I re-invoke my script? Will it start from the point where it was stopped earlier or would it start from the point where we had last successful Level 1 backup
    completed?In your backup script you do not use the < NOT BACKED UP SINCE TIME > clause so it will again do a level 1 backup off all datafiles.
    See:
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14194/rcmsynta009.htm#i1017236
    This option is a convenient way to back up files that were not backed up during a previous failed backup. For example, you back up the database, but the instance fails halfway through. You can restart the backup with the NOT BACKED UP SINCE TIME clause and avoid backing up those files that you already backed up. If AS BACKUPSET is set, then this feature is only useful if RMAN generates multiple backup sets during the backup.
    Regards,
    Tycho
    Edited by: tychos on 28-jan-2010 15:21

  • RMAN CUMULATIVE LEVEL 0 to tape WORKS BUT NOT LEVEL 1 RMAN

    Hi All:
    I have this saturation My rman cumulative level 0 to tape works everytime but when I try to do level-1 rman backup it failed and it never works. From the rman log, I posted below, it looks like the MML is having a problem. My question:
    1. IF this is only MML problem. Isn't that both level-0 and level-1 will failed? Why only level-1 is having the MML problem not level-0?
    2. What is RMAN doing different between level-0 and level-1?
    ORA-19502: write error on file "cum1_TNLTST8_9qf8fef5_1_1", blockno 1 (blocksize=51
    2)
    ORA-27030: skgfwrt: sbtwrite2 returned error
    ORA-19511: Error received from media manager layer, error text:
    Any suggestion or comment are welcome!

    Hi Guys
    I have a customer where I am supporting a Veritas Netbackup environment and found similar errors on 3 of their oracle databases during backups. The problem is intermittent and if you keep on trying you will get a successful backup. I am not skilled in Oracle and would like some pointers.
    Thanx

  • NOLOGGING with CTAS and RMAN's Incremental backup

    DB Version: 10.2.0.4
    OS : AIX
    We use RMAN for our backup scheduled via cron.
    Retention Policy : REDUNDANCY 1
    Type             : Incremental On 31st of every month, in most of our schemas, we recreate lots of tables using CTAS.
    Because of the size , CREATE TABLE statements take a long time. Since we run on Standard edition, we can't use PARALLELISM.
    NOLOGGING is the only option to improve the performance. But we are worried about the redo not being generated for these tables and the potential loss of data in case of a crash.
    Currently we take a LEVEL0 backup every wednesday and Sunday nights and LEVEL1 backup on the rest of the days.
    I know that everything will be backed up on LEVEL0. But, what if 31st falls on a day where only LEVEL1 backup occurs. We'll only be safe until the next LEVEL0 comes along.
    Any workarounds for this?

    When you write "we need" you make an assumption not supported by the facts.
    The fact is that you need to refresh the data ... you do not need to recreate the table.
    This is just one better solution:
    http://www.morganslibrary.org/reference/materialized_views.html
    there are others too. But not knowing your version number, and you still have not really stated the business case, I can not advise which would be the best. But it is safe to say there is no way on earth I would do what you are doing based on what you've posted. For example why at the end of each day can't you copy that day's rows to a predefined table spreading the load out over all 30 days and then, at month's end truncate the current table and rename it then rename the already loaded staging table. The swap could be done in a few seconds with essentially no overhead.

  • Will RMAN remove invalid backup pieces from Backup tests?

    DB Version: 10.2.0.4.0
    Thinking that Level1 backups don't take much time, In production, I was testing a Level 1 bkp (I took a level 0 bkp of our 700gb only yesterday).
    But, the end users were complaining that system has become very slow. So, i've cancelled the LEVEL 1 backup.
    Now i can see 5 backup pieces wasting some space.
    I know that RMAN removes expired backup like
    delete expired backup;But, how do i script RMAN to remove files mentioned above ie.files from a backup that was aborted halfway through ?

    Hi Insignificant
    But, how do i script RMAN to remove files mentioned above ie.files from a backup that was aborted halfway through ?If you can locate them on the OS level you could remove them with OS commands.
    For backup pieces containg datafiles use <crosscheck backup;> followed by <delete expired backup;> with rman client.
    Tycho

  • Very first step in configuring RMAN for a Backup

    DB version:10gR2
    I am a DBA supporting applications development and i am not familiar with RMAN. This weekend we are going to Patch 10.2.0.1.0 to 10.2.0.3.0. Before that i am going to take a backup of the entire Database containing around 57 schemas(total of around 600gb).
    We don't have Tape drives. I am going to backup this up on three filesystems in the same machine. This instance is not running on ASM. What is the first step i should be doing in configuring RMAN for a backup?
    Edited by: user10583227 on Jan 27, 2009 4:50 AM

    Be careful, three filesystems doesn't necessarily mean the use of three channels. Could be more...could be less.
    Are you in a position to shutdown the database? If not, you'll also want to backup the archivelogs with BACKUP DATABASE PLUS ARCHIVELOG. You may also consider creating a Guaranteed Restore Point which would allow you to rollback your database in minutes if the upgrade fails.

  • RMAN  %N Format Backup

    Hi Gurus,
    I have rman script that backups up my 10g database. I'm trying to format the backup ser as databasename_tablespaceName_date_UniqueNo.dbf. This is my script:
    backup incremental level 1
    filesperset 1
    format '%d_%N_%T'
    keep until time "sysdate+1" logs
    (database include current controlfile);
    All datafiles complete but at the end I get this error:
    ORA-19715: invalid format N for generated name
    ORA-27302: failure occurred at: slgpn
    continuing other job steps, job failed will not be re-run
    channel ch2: starting incremental level 1 datafile backupset
    channel ch2: specifying datafile(s) in backupset
    including current SPFILE in backupset
    channel ch2: starting piece 1 at 27-AUG-09
    RMAN-03009: failure of backup command on ch2 channel at 08/27/2009 07:45:01
    ORA-19715: invalid format N for generated name
    ORA-27302: failure occurred at: slgpn
    continuing other job steps, job failed will not be re-run
    channel ch1: finished piece 1 at 27-AUG-09
    piece handle=MEDTEST_USERS_20090827 tag=TAG20090827T074351 comment=API Version 2.0,MMS Version 5.0.0.0
    channel ch1: backup set complete, elapsed time: 00:00:30
    released channel: ch1
    released channel: ch2
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of backup command on ch2 channel at 08/27/2009 07:45:00
    ORA-19715: invalid format N for generated name
    ORA-27302: failure occurred at: slgpn
    RMAN-03009: failure of backup command on ch2 channel at 08/27/2009 07:45:01
    ORA-19715: invalid format N for generated name
    ORA-27302: failure occurred at: slgpn
    RMAN>
    RMAN> **end-of-file**
    RMAN>
    Please help.

    I removed include current control file, I still get the same error for %N & %f:
    backup
    incremental level 1
    filesperset 1
    format '%d_%f_%N_%T_%U'
    keep until time "sysdate+1" logs
    (database);
    RMAN-03009: failure of backup command on ch2 channel at 08/27/2009 09:20:33
    ORA-19715: invalid format N for generated name
    ORA-27302: failure occurred at: slgpn
    continuing other job steps, job failed will not be re-run
    channel ch2: starting incremental level 1 datafile backupset
    channel ch2: specifying datafile(s) in backupset
    channel ch1: finished piece 1 at 27-AUG-09
    piece handle=MEDTEST_8_USERS_20090827_3sknnpe8_1_1 tag=TAG20090827T091919 comment=API Version 2.0,MMS Version 5.0.0.
    0
    channel ch1: backup set complete, elapsed time: 00:00:26
    including current SPFILE in backupset
    channel ch2: starting piece 1 at 27-AUG-09
    released channel: ch1
    released channel: ch2
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of backup command on ch2 channel at 08/27/2009 09:20:34
    ORA-19715: invalid format f for generated name
    ORA-27302: failure occurred at: slgpn
    RMAN>
    RMAN> **end-of-file**

  • EXPORT at schema level, but exclude some tables within the export

    I have been searching, but had no luck in finding the correct syntax for my situation.
    I'm simply trying to export at the schema level, but I want to omit certain tables from the export.
    exp cltest/cltest01@clprod file=exp_CLPROD092508.dmp log=exp_CLPROD092508.log statistics=none compress=N
    Thanks!

    Hi,
    Think in simple first.. you use the TABLES Clause..
    Example.
    exp scott/tiger file=empdept.expdat tables=(EMP,DEPT) log=empdept.log
    In case if you scehma contains less number of tables.. !!
    Logically if you have large number of tables, I say this solutuion might work ...all around... alternative solutions to solve the problems.. If you have hundered of tables... in your schema....
    Try to Create a New Schema and using CTAS create a tables which are skippable in the Current Scehma.
    Do an Export and once the Job Done.. you recreate the backup fom New schema
    and Import to DB (Destinaiton)
    - Pavan Kumar N

  • RMAN-06023: no backup or copy of datafile 12 found to restore

    Hi
    I'm getting the above error when trying to create a duplicate database on the same server.
    Steps
    1) Create backup.
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    backup as copy
    incremental level 0
    spfile
    database
    include current controlfile;
    2) Restore / Duplicate
    Have database orcl2 which is on the same server as ORCL1. Performing a no catalog recovery.
    I get the following error.
    executing Memory Script
    executing command: SET until clause
    Starting restore at 14-MAR-11
    allocated channel: ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: SID=555 device type=DISK
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 03/14/2011 16:02:24
    RMAN-01005: not all datafiles have backups that can be recovered to scn 666967
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-06026: some targets not found - aborting restore
    RMAN-06023: no backup or copy of datafile 12 found to restore
    RMAN-06023: no backup or copy of datafile 11 found to restore
    RMAN-06023: no backup or copy of datafile 10 found to restore
    RMAN-06023: no backup or copy of datafile 9 found to restore
    RMAN-06023: no backup or copy of datafile 8 found to restore
    RMAN-06023: no backup or copy of datafile 7 found to restore
    RMAN-06023: no backup or copy of datafile 6 found to restore
    RMAN-06023: no backup or copy of datafile 5 found to restore
    RMAN-06023: no backup or copy of datafile 4 found to restore
    RMAN-06023: no backup or copy of datafile 3 found to restore
    RMAN-06023: no backup or copy of datafile 2 found to restore
    RMAN-06023: no backup or copy of datafile 1 found to restore
    All the datafiles are not found. Not sure how this is possible as I just did the backup.
    Command for Duplication :
    DUPLICATE TARGET DATABASE TO ORCL2
    DB_FILE_NAME_CONVERT '\ORCL1','\ORCL2'
    SPFILE
    PARAMETER_VALUE_CONVERT '\orcl1','\orcl2'
    SET LOG_FILE_NAME_CONVERT '\orcl1','\orcl2'
    Additional Information
    RMAN> list backup
    2> ;
    List of Backup Sets
    ===================
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    13 Full 16.77M DISK 00:00:01 14-MAR-11
    BP Key: 13 Status: AVAILABLE Compressed: NO Tag: TAG20110314T155530
    Piece Name: D:\ORACLE\FAST_RECOVERY_AREA\ORCL1\AUTOBACKUP\2011_03_14\O1_
    MF_S_745775730_6QWWOM7G_.BKP
    SPFILE Included: Modification time: 14-MAR-11
    SPFILE db_unique_name: ORCL1
    Control File Included: Ckp SCN: 731378 Ckp time: 14-MAR-11
    RMAN>
    Any help would be appreciated.
    Thanks.

    ORADBA , thank you for your help.
    Did as you suggested but still getting the same error
    RMAN> DUPLICATE TARGET DATABASE TO ORCL2
    2> DB_FILE_NAME_CONVERT '\ORCL1','\ORCL2'
    3> SPFILE
    4> PARAMETER_VALUE_CONVERT '\orcl1','\orcl2'
    5> SET LOG_FILE_NAME_CONVERT '\orcl1','\orcl2'
    6> until scn = 666967;
    Starting Duplicate Db at 14-MAR-11
    allocated channel: ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: SID=537 device type=DISK
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 03/14/2011 18:12:47
    RMAN-06136: ORACLE error from auxiliary database: ORA-01565: error in identifyin
    g file 'C:\ORACLE\ORA11G\PRODUCT\DATABASE\SPFILEORCL2.ORA'
    ORA-27041: unable to open file
    OSD-04002: unable to open file
    O/S-Error: (OS 2) The system cannot find the file specified.
    RMAN> exit
    Recovery Manager complete.
    C:\Documents and Settings\Administrator>rman target sys/mariorun@orcl1 nocatalog
    Recovery Manager: Release 11.1.0.7.0 - Production on Mon Mar 14 18:13:20 2011
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    connected to target database: ORCL1 (DBID=1129792691)
    using target database control file instead of recovery catalog
    RMAN> connect auxiliary sys/mariorun@orcl2
    connected to auxiliary database: ORCL2 (not mounted)
    RMAN>
    RMAN> DUPLICATE TARGET DATABASE TO ORCL2
    2> DB_FILE_NAME_CONVERT '\ORCL1','\ORCL2'
    3> SPFILE
    4> PARAMETER_VALUE_CONVERT '\orcl1','\orcl2'
    5> SET LOG_FILE_NAME_CONVERT '\orcl1','\orcl2'
    6> until scn = 666967;
    Starting Duplicate Db at 14-MAR-11
    allocated channel: ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: SID=97 device type=DISK
    contents of Memory Script:
    set until scn 666967;
    restore clone spfile to 'C:\ORACLE\ORA11G\PRODUCT\DATABASE\SPFILEORCL2.ORA';
    sql clone "alter system set spfile= ''C:\ORACLE\ORA11G\PRODUCT\DATABASE\SPFIL
    EORCL2.ORA''";
    executing Memory Script
    executing command: SET until clause
    Starting restore at 14-MAR-11
    using channel ORA_AUX_DISK_1
    WARNING: A restore time was estimated based on the supplied UNTIL SCN
    channel ORA_AUX_DISK_1: starting datafile backup set restore
    channel ORA_AUX_DISK_1: restoring SPFILE
    output file name=C:\ORACLE\ORA11G\PRODUCT\DATABASE\SPFILEORCL2.ORA
    channel ORA_AUX_DISK_1: reading from backup piece D:\ORACLE\FAST_RECOVERY_AREA\O
    RCL1\AUTOBACKUP\2011_03_14\O1_MF_S_745775730_6QWWOM7G_.BKP
    channel ORA_AUX_DISK_1: piece handle=D:\ORACLE\FAST_RECOVERY_AREA\ORCL1\AUTOBACK
    UP\2011_03_14\O1_MF_S_745775730_6QWWOM7G_.BKP tag=TAG20110314T155530
    channel ORA_AUX_DISK_1: restored backup piece 1
    channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01
    Finished restore at 14-MAR-11
    sql statement: alter system set spfile= ''C:\ORACLE\ORA11G\PRODUCT\DATABASE\SPFI
    LEORCL2.ORA''
    contents of Memory Script:
    sql clone "alter system set db_name =
    ''ORCL2'' comment=
    ''duplicate'' scope=spfile";
    sql clone "alter system set audit_file_dest =
    ''c:\oracle\ora11g\admin\orcl2\adump'' comment=
    '''' scope=spfile";
    sql clone "alter system set control_files =
    ''c:\oracle\ora11g\oradata\orcl2\control01.ctl'', ''c:\oracle\ora11g\oradata\or
    cl2\control02.ctl'', ''c:\oracle\ora11g\oradata\orcl2\control03.ctl'' comment=
    '''' scope=spfile";
    sql clone "alter system set LOG_FILE_NAME_CONVERT =
    ''\orcl1'', ''\orcl2'' comment=
    '''' scope=spfile";
    shutdown clone immediate;
    startup clone nomount ;
    executing Memory Script
    sql statement: alter system set db_name = ''ORCL2'' comment= ''duplicate'' sco
    pe=spfile
    sql statement: alter system set audit_file_dest = ''c:\oracle\ora11g\admin\orc
    l2\adump'' comment= '''' scope=spfile
    sql statement: alter system set control_files = ''c:\oracle\ora11g\oradata\orc
    l2\control01.ctl'', ''c:\oracle\ora11g\oradata\orcl2\control02.ctl'', ''c:\oracl
    e\ora11g\oradata\orcl2\control03.ctl'' comment= '''' scope=spfile
    sql statement: alter system set LOG_FILE_NAME_CONVERT = ''\orcl1'', ''\orcl2''
    comment= '''' scope=spfile
    Oracle instance shut down
    connected to auxiliary database (not started)
    Oracle instance started
    Total System Global Area 267825152 bytes
    Fixed Size 1346712 bytes
    Variable Size 100664168 bytes
    Database Buffers 163577856 bytes
    Redo Buffers 2236416 bytes
    contents of Memory Script:
    set until scn 666967;
    set newname for datafile 1 to
    "D:\ORACLE\ORADATA\ORCL2\SYSTEM01.DBF";
    set newname for datafile 2 to
    "D:\ORACLE\ORADATA\ORCL2\SYSAUX01.DBF";
    set newname for datafile 3 to
    "D:\ORACLE\ORADATA\ORCL2\UNDOTBS01.DBF";
    set newname for datafile 4 to
    "D:\ORACLE\ORADATA\ORCL2\IM_DATA_01.DAT";
    set newname for datafile 5 to
    "D:\ORACLE\ORADATA\ORCL2\IM_IDX_01.DAT";
    set newname for datafile 6 to
    "D:\ORACLE\ORADATA\ORCL2\IM_INV_DATA_01.DAT";
    set newname for datafile 7 to
    "D:\ORACLE\ORADATA\ORCL2\IM_INV_DATA_02.DAT";
    set newname for datafile 8 to
    "D:\ORACLE\ORADATA\ORCL2\IM_INV_IDX_01.DAT";
    set newname for datafile 9 to
    "D:\ORACLE\ORADATA\ORCL2\IM_INV_IDX_02.DAT";
    set newname for datafile 10 to
    "D:\ORACLE\ORADATA\ORCL2\IM_PROC_LOG_01.DAT";
    set newname for datafile 11 to
    "D:\ORACLE\ORADATA\ORCL2\IM_PROC_NOLOG_01.DAT";
    set newname for datafile 12 to
    "D:\ORACLE\ORADATA\ORCL2\USERS01.DBF";
    restore
    clone database
    executing Memory Script
    executing command: SET until clause
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    Starting restore at 14-MAR-11
    allocated channel: ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: SID=555 device type=DISK
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 03/14/2011 18:13:59
    RMAN-01005: not all datafiles have backups that can be recovered to scn 666967
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-06026: some targets not found - aborting restore
    RMAN-06023: no backup or copy of datafile 12 found to restore
    RMAN-06023: no backup or copy of datafile 11 found to restore
    RMAN-06023: no backup or copy of datafile 10 found to restore
    RMAN-06023: no backup or copy of datafile 9 found to restore
    RMAN-06023: no backup or copy of datafile 8 found to restore
    RMAN-06023: no backup or copy of datafile 7 found to restore
    RMAN-06023: no backup or copy of datafile 6 found to restore
    RMAN-06023: no backup or copy of datafile 5 found to restore
    RMAN-06023: no backup or copy of datafile 4 found to restore
    RMAN-06023: no backup or copy of datafile 3 found to restore
    RMAN-06023: no backup or copy of datafile 2 found to restore
    Any suggestions are appreciated.

Maybe you are looking for

  • Some questions on swing

    import java.awt.*; import javax.swing.*; public class test {      static final int n_label = 10;      public static void main( String args[] )           JLabel[] lab1;           JWindow w = new JWindow();           Container content_pane = w.getConte

  • XML SQL Urgent Query

    I am trying to generate an XML file from a database table. I loaded the xmlparser for java into the database and executed the catxsu.sql script as indicated in the documentation. All the relevant files are in the Oracle Home. There is a sample script

  • Subtracting Text From A Background Image

    Hello! I have a banner, and some text. I would like to subtract the text from the banner to create a 'cut-out' effect. What's the easiest way to do this on photoshop? Thanks. Martin

  • Only select statements work (update/insert hang)

    Hi, I am running CF MX version 7,0,2,142559 Standard Edition and ColdFusion is hanging everytime I attempt an insert or update statement again Oracle 8i and 9i using the jdbc thin driver and an odbc socket driver. Select statements work fine. I have

  • Applets are very slow.

    Hi, Apples are getting slower.When MII server restarted applets run faster but  after a few days they getting slower again. What can we do for applet runs fast? Must we restart server on every applet slow problem? Thanks.