RMAN backup problme becasue of TSM

I Joined one call today , topic was RMAN backups problem because of TSM, I am wondering what is TSM, i guess Tivoli Storage manager...Not sure, and how it can effect RMAN Backup & its performance...Just trying to get general idea....

Yes, TSM is Tivoli Storage Manager which is IBM's backup/recovery/storage management product. RMAN needs a media manager interface to write to tapes, this is where TSM comes into play. It acts as this media manager passing off the data to write to tape. This is made possible via a library which TSM provides (an Oracle library link file is replaced with one pointing to the TSM library file) to inform RMAN of it's presence and enable it's use. There are also configuration settings (network timeout, throughput, client name, media server name, etc.) which to a great deal affect the performance of RMAN and TSM to the extent where backups may not be possible if setup incorrectly.
For more information you can look at the IBM site.
Hope this helps.

Similar Messages

  • RMAN backups are slow with TSM

    Hi,
    I encountered a problem using RMAN with TSM to backup a database. It seems that the RMAN channel doesn't use the entire bandwidth to the TSM (or whatever) and is idle most of the time. This makes the database backup really slow.
    As a comparison, we backup also filesystem and SQL Server, they both use very few channels and each channel backup about X5 more data per second than Oracle. For example, SQL Server uses 5 channels to the TSM, and we get a total of around 100MB/s. When we configure Oracle to backup using 5 channels we get about 20MB/s and we see that the SQL Server is writing to the TSM all the time while Oracle is idle a large portion of the time.
    Any ideas? Known configuration issues?
    I hope I'm clear about the problem.
    Thanks,
    Liron

    Hi,
    Thanks for everybody for your responses, I'll try to sum the answers here:
    1. Yes, we backup the filesystem, and everything works fine. The problem is only with RMAN backups
    2. Resources are not an issue, it happens on strong and weak servers (and several O/S as well)
    3. Database versions are not the issue, it happens on 10.2 as well as 11.2
    My feeling is that this has something to do with the integration, either oracle setting or TSM setting, but I can't be sure until I solve this.
    For those of you who backup with TSM, did you notice that filesystem / SQL Servers are being backed up faster? Did you check the Oracle wait events and TSM status while you run the backup?
    Thanks
    BTW Girish, great comment, I wish I had all the answers... :)

  • RMAN Backup to TSM

    I am looking into Oracle Database which use RMAN backup directly to tape (TSM). Before I never worked with TMS (Tivoli) and looking for simple command which I could run from UNIX prompt to see what is available on tape what files, directories…
    Any help would be appreciated.
    My Oracle version 8.1.7 and OS: AIX

    Unfortunately there's no 'simple command'. You have to study the documentation for this TSM API:
    http://www.redbooks.ibm.com/abstracts/sg246249.html
    Werner

  • Rman backups slowly

    Hi,
    We backup our oracle database to tsm server using rman through TSM. The backup takes about 3 minutes. Topas shows that the disks containing datafiles are very busy(about 90%), Readch is about 160m, top processes are lrud and aioserver. lrud process takes up about 20% cpu.
    ==========================================================================
    System configuration: lcpu=4 mem=7680MB
    kthr memory page faults cpu
    r b avm fre re pi po fr sr cy in sy cs us sy id wa
    1 0 1341070 323795 0 1 0 7080 30662 0 960 3947 2357 11 10 76 3
    0 0 1341073 323821 0 0 0 18953 65907 0 5343 2777 5995 3 24 73 0
    0 0 1341073 323756 0 0 0 19642 62385 0 5806 3876 6715 3 26 71 0
    2 0 1341074 323805 0 0 0 18866 122816 0 5922 3565 7077 3 26 71 0
    5 0 1341074 323745 0 0 0 17989 73069 0 5876 2864 6816 3 24 73 0
    3 0 1341074 323794 0 0 0 18738 78024 0 5791 3771 6654 3 25 72 0
    2 0 1341074 323769 0 0 0 17000 139139 0 5727 3447 6659 3 24 73 0
    0 0 1341074 323711 0 6 0 14675 308433 0 5786 3540 6547 3 22 73 1
    0 0 1341070 323803 0 0 0 14297 477320 2 6041 3509 6097 3 24 74 0
    2 0 1341070 323802 0 0 0 16128 61138 0 7030 3428 6506 3 23 74 0
    0 0 1341070 323770 0 0 0 16992 132824 0 6864 2668 6035 3 25 72 0
    2 0 1341070 323777 0 0 0 19456 80078 0 6516 3575 5742 3 26 71 0
    1 0 1341071 323736 0 0 0 19541 44201 0 6226 3417 5540 3 25 72 0
    0 0 1341071 323784 0 0 0 16175 81816 0 5083 2695 4925 2 22 75 0
    2 0 1341070 323847 0 0 0 14650 103203 0 3799 3640 4368 2 21 76 0
    0 0 1341070 323754 0 0 0 13062 35588 0 3840 3123 4335 2 18 80 0
    0 0 1341071 323711 0 0 0 14421 33350 0 5155 2555 5829 2 20 78 0
    1 0 1341072 323788 0 0 0 15051 38281 0 5819 3679 6734 3 22 76 0
    0 0 1341075 323824 0 0 0 15013 63271 0 5885 3318 6946 3 22 75 0
    1 0 1341073 323777 0 0 0 14799 86901 0 5838 2678 6819 3 23 75 0
    kthr memory page faults cpu
    r b avm fre re pi po fr sr cy in sy cs us sy id wa
    0 0 1341072 323804 0 0 0 15130 55187 0 5898 3643 6823 3 22 75 0
    0 0 1341072 323800 0 0 0 14848 40871 0 5894 3313 6843 3 21 76 0
    0 0 1341072 323854 0 0 0 15030 65990 0 5926 2659 6705 2 22 75 0
    1 0 1341072 323757 0 0 0 18591 103796 0 6394 3738 6566 3 27 70 0
    0 0 1341072 323777 0 0 0 17940 57273 0 6409 3091 6006 3 24 73 0
    1 0 1341072 323743 0 0 0 18398 57154 0 6890 2547 6148 3 24 73 0
    1 0 1341069 323649 0 0 0 17310 85715 0 6227 3423 5500 3 24 73 0
    4 0 1341069 323733 0 0 0 26198 106064 0 6325 3201 5706 3 30 66 1
    1 0 1341070 323532 0 0 0 30520 149981 0 5259 2604 5073 3 35 62 0
    0 0 1341070 323585 0 0 0 40458 153252 0 4106 3520 4558 3 39 58 0
    0 0 1341067 323501 0 0 0 43409 195787 0 3619 2991 4053 3 41 56 0
    1 0 1341069 323692 0 0 0 50948 214097 0 5152 2666 5637 4 48 49 0
    0 0 1341071 323689 0 0 0 51202 158777 0 5647 3733 6379 4 48 48 0
    0 0 1341074 322772 0 0 0 52618 222345 0 5666 3394 6567 4 50 45 0
    6 13 1341073 323746 0 0 0 45521 235212 0 14984 850 27754 2 73 3 22
    0 11 1341071 323730 0 0 0 44784 828817 2 12666 1876 22631 2 69 5 24
    1 7 1341072 323793 0 0 0 43535 254540 0 13997 1547 24971 2 70 3 25
    2 14 1341071 323804 0 0 0 45865 219003 0 12473 908 23468 2 69 4 25
    1 1 1341075 323789 0 0 0 44456 175438 0 13592 1785 24081 2 69 5 24
    1 7 1341075 323736 0 0 0 45665 147529 0 15600 1550 27193 2 73 3 22
    kthr memory page faults cpu
    r b avm fre re pi po fr sr cy in sy cs us sy id wa
    3 13 1341074 323711 0 0 0 44915 196143 0 13172 831 23717 2 68 4 25
    0 4 1341074 323464 0 0 0 47081 205553 0 13477 1842 23942 2 71 4 23
    3 0 1341076 322764 0 0 0 47123 153689 0 13458 1602 24078 2 70 4 24
    1 7 1341075 323790 0 0 0 45925 207603 0 14407 852 25255 2 72 3 24
    0 14 1341075 323851 0 0 0 43262 193764 0 14559 1521 26005 2 70 4 23
    1 11 1341074 323834 0 0 0 55925 243470 0 2516 2000 9047 3 56 18 23
    1 0 1341074 323772 0 0 0 56664 266906 0 2055 973 6256 2 56 17 24
    1 11 1341073 322774 0 0 0 56645 264452 0 2472 1688 6809 3 56 16 25
    2 7 1341072 323725 0 0 0 56679 259652 0 2488 1980 7141 3 56 15 26
    1 12 1341072 323212 0 0 0 46596 795450 2 2214 891 5433 2 54 17 27
    3 1 1341069 323276 0 0 0 56065 324469 0 2409 2134 6600 3 60 13 24
    0 2 1341082 323823 0 0 0 56799 271413 0 2087 2121 7589 3 56 18 24
    1 10 1341082 322863 0 0 0 56883 227047 0 3221 1072 9399 3 59 16 23
    0 1 1341082 323167 0 0 0 53678 218700 0 1827 1738 6232 2 52 19 26
    0 1 1341082 323302 0 0 0 46302 168013 0 1860 1902 6617 2 45 23 30
    1 8 1341081 323842 0 3 0 49937 184776 0 2756 1043 8127 2 53 17 28
    2 8 1341080 323322 0 0 0 50682 208350 0 2074 1617 7707 2 52 17 29
    2 12 1341080 323716 0 0 0 50667 199451 0 2617 1950 8501 2 53 16 29
    1 1 1341080 323728 0 0 0 55968 199068 0 2159 981 7801 2 54 16 27
    0 4 1341082 323787 0 0 0 54052 187569 0 2850 1627 7588 2 55 15 27
    kthr memory page faults cpu
    r b avm fre re pi po fr sr cy in sy cs us sy id wa
    1 0 1341081 323716 0 0 0 54517 236595 0 2192 1247 6628 3 55 17 25
    3 10 1341082 323795 0 0 0 49300 221695 0 2453 1596 7474 2 50 19 29
    0 5 1341082 322981 0 0 0 53371 263864 0 2475 1640 6981 2 54 17 26
    10 4 1341082 322974 0 0 0 56363 843346 2 1937 1239 6175 2 58 16 24
    0 2 1341082 323662 0 0 0 50072 222453 0 2603 1646 7008 2 52 18 27
    3 1 1341078 323845 0 0 0 48705 235183 0 2110 1570 7536 2 49 20 28
    0 2 1341079 323708 0 0 0 47744 173912 0 2745 1170 7571 2 50 18 30
    2 0 1341080 322736 0 0 0 52503 197162 0 2926 2764 8070 3 55 14 27
    1 1 1341078 322660 0 0 0 54685 220478 0 2121 1616 7116 2 55 15 27
    1 1 1341077 323780 0 0 0 49784 207631 0 2464 1176 7228 2 51 17 29
    1 8 1341077 323809 0 0 0 54587 227612 0 2390 1688 7061 2 56 16 25
    1 1 1341076 322759 0 0 0 56282 216411 0 2473 1714 6726 3 57 16 24
    6 6 1341074 323229 0 0 0 57798 206629 0 2191 1376 6850 3 57 17 24
    But if we backup the database to local disks, the backup lasts only 1 minutes. Topas shows that Readch is about 30m.
    =========================================================================
    kthr memory page faults cpu
    r b avm fre re pi po fr sr cy in sy cs us sy id wa
    3 1 1346096 319044 0 0 0 15411 39566 0 550 1224 1384 1 18 61 20
    0 1 1346099 318940 0 0 0 16443 106765 0 556 1673 1403 1 21 59 19
    2 0 1346098 318949 0 0 0 17237 48476 0 581 555 1474 1 19 59 21
    1 1 1346102 318935 0 0 0 16361 40913 0 563 1211 1468 1 18 60 20
    1 1 1346102 318954 0 0 0 21171 45571 0 615 1767 1706 1 23 56 20
    0 1 1346096 319031 0 0 0 19673 95635 0 527 505 1416 1 22 57 20
    2 0 1346095 318992 0 0 0 22072 84596 0 574 1307 1677 1 24 55 20
    1 0 1346096 318938 0 0 0 16136 41121 0 468 1654 1323 1 18 60 20
    1 1 1346096 318944 0 0 0 17601 44046 0 500 563 1361 1 19 60 20
    0 1 1346097 318803 0 0 0 15712 93689 0 456 1152 1291 1 19 60 20
    2 1 1346099 318986 0 0 0 15661 60958 0 479 1707 1429 1 19 60 20
    1 1 1346098 319030 0 0 0 16198 38227 0 482 991 1326 1 18 59 21
    11 0 1346099 318924 0 0 0 15998 43314 0 515 1259 1364 1 18 61 19
    3 0 1346097 319001 0 0 0 14935 40394 0 448 1619 1325 1 18 59 22
    1 0 1346103 318927 0 0 0 15941 90931 0 477 521 1328 1 19 60 19
    0 1 1346099 319052 0 0 0 16338 60353 0 458 1140 1259 1 19 61 20
    0 1 1346099 318965 0 0 0 14640 39725 0 487 1743 1351 1 18 60 21
    2 2 1346098 318925 0 0 0 15950 47318 0 472 497 1306 1 18 62 19
    3 0 1346102 318932 0 0 0 14989 76385 0 475 1253 1292 1 18 61 20
    2 0 1346095 318932 0 0 0 15791 86242 0 454 1645 1304 1 19 60 19
    OS is AIX 5308. The version of oracle is 10.2.0.4.
    Please help me.
    Thanks.

    Siko Lee wrote:
    Topas shows the readch is about 160m when backup uses tsm, but the backup lasts for 3 minutes. However, readch is about 30m when backup to local disks, and it only last for 1 minutes. What is the extra read when backup uses tsm?CHeck this metalink note.
    *Slow RMAN backup and restore using TSM [ID 1072800.1]*

  • Is it possible to restore TSM/ADSM RMAN backup pieces to disk manually?

    Is it possible to restore TSM/ADSM RMAN backup pieces to disk manually, and re-catlog as disk backups?
    Oracle 10.2.0.3
    TSM client 5.5.1.1
    SUN Solaris 10 64-bit
    We are gearing up to switch from IBM's Tivoli (TSM/adsm) to EMC's Networker (Legatto), and the old TSM software drivers are going to be uninstalled.
    In a worse case scenario, we would therefore not be able to easily restore using RMAN and TSM just after the switch, and before new backups are made on Networker.
    To be comfortable with the backup methodology change, we need to explore restoring the RMAN backup pieces of a given tag using TSM commands (dsmc ?) to a filesystem, re-catalog the backup pieces now on disk, and then perform test restore/recoveries using RMAN with disk channels.
    Does anyone know of the TSM command (dsmc ?) to perform the restores of RMAN backup pieces?
    Thanks!

    This is a set of guesses and thoughts.
    1: When you say you are removing the Tivoli software drive, is this just the driver from the oracle home, or is it more substantive. In fact could you have a different oracle home to access tivoli, possible with a rman catalog copy.
    2: I dont believe the backup tag is part of the filename, however is it possilbe to query the rman catalog to get the filenames mapped to a tag?
    3: Providing you know the filenames you wish to restore then it is possible to browse the tivoli catalog. Its ages since I've done this but doesn't samc have at interactive mode
    Apologies if these suggestions are rubbish and hopefully someone gives a better answer.

  • RMAN backup and TSM question

    We have rman backup file name contains the datetime so it is unique and easy to tell. But TSM keeps every file 4 versions, so the backup file (always 1 version because of unique name) will stay on tape forever. I have no idea about TSM, according to your experience, what is the normal solution here?

    Dedicated forum for {forum:id=74}.
    But quickly, in general, "DBA" and "TSM/Storage manager" need to agree on media manager use and setup the system accordingly.
    Edited by: orafad on May 19, 2011 3:00 PM

  • How to stop a rman backup in progress?

    OS: AIX 5.3 L and Oracle 10g R2
    I got panic when my scheduled rman backup (incremental level 0 plus archivelog) run too long and I want to stop the process. I could not find the rman doc mentioning how to use any rman command to do that, instead of just shutdowning the database instance.with ps -ef, there were just too many PID of oracle. Is there a way by rman to STOP the process?
    Furthermore, I had no idea why it happened. Last week when I did a full copy backup, it only took 23 minutes for 32G database, Today, I changed the scheme to a level 0 incremental, and it is still running after 5 and half hours. But it already created the archivelog, datafile backupset (checked by the DB control). How to find out what went wrong?

    I did not use any third party application with rman or TSM in my AIX. what is the tdpo? Killing at OS level is probably only thing I can do now. kill -9 PID#
    Message was edited by:
    user508054
    Message was edited by:
    user508054

  • RMAN backup in HP Ultrium 3-SCSI(3mn) tape device

    Dear All
    IS it possible to take online RMAN backup in HP Ultrium 3-SCSI(3mn) tape device?
    Note: this is not a tape library, a stand alone tape device.
    Thanks & Regards
    Quazi Abdur Rab

    In RAC, Please note that you can take backup from any node and you can able to restore from any node.
    If you taking backup to disk then you must mount the same backup mount on both servers in order to able to backup and restore.
    In your case you are taking backup to FRA and from there taking to tape.
    The TSM wtih tdop agent is congiured on Node1 and not on Node 2 thats why you are not able to restore from node2.
    27029, 00000, "skgfrtrv: sbtrestore returned error"
    // *Cause:  sbtrestore returned an error.  This happens when retrieving a
    // backup file during a restore operation.
    // *Action: This error is returned from the media management software which is
    // linked with Oracle. There should be additional messages which
    // explain the cause of the error. This error usually requires
    // contacting the media management vendor.
    /u01/home/oracle:DBA>
    If you restore from FRA or using RMAN both nodes know the backup location and able to restore.
    Hope this helps,
    Regards
    http://www.oracleracexpert.com
    Cross platform Transportable tablespace using RMAN
    http://www.oracleracexpert.com/2009/10/cross-platform-transportable-tablespace.html
    Duplicate RAC Database using RMAN
    http://www.oracleracexpert.com/2009/12/duplicate-rac-database-using-rman.html

  • How to check the size of rman backups to tape

    instead of asking tsm person to check, how do I check how big is a rman backup sent to tape?

    query to find the backupset sizes
    SQL> select ctime "Date"
      2       , decode(backup_type, 'L', 'Archive Log', 'D', 'Full', 'Incremental') backup_type
      3       , bsize "Size MB"
      4  from (select trunc(bp.completion_time) ctime
      5          , backup_type
      6          , round(sum(bp.bytes/1024/1024),2) bsize
      7     from v$backup_set bs, v$backup_piece bp
      8     where bs.set_stamp = bp.set_stamp
      9     and bs.set_count  = bp.set_count
    10     and bp.status = 'A'
    11     group by trunc(bp.completion_time), backup_type)
    12  order by 1, 2;
    Date      BACKUP_TYPE    Size MB
    03-JUL-10 Archive Log       7.31
    03-JUL-10 Full             29.81
    03-JUL-10 Incremental    2853.85
    04-JUL-10 Archive Log       3.59
    04-JUL-10 Full              7.45
    04-JUL-10 Incremental       3.05

  • Slow rman backup and slow database

    Hello all,
    Whenever I run rman backup to sbt_tape, the complete database becomes slow. Also RMAN takes more than 12 hours to complete.
    RMAN script is:
    run {
    allocate channel t1 type 'sbt_tape' parms 'ENV=(TDPO_OPTFILE=/usr/tivoli/tsm/client/oracle/bin64/tdpo.opt)';
    sql 'alter system switch logfile';
    backup incremental level 2 tag 'db_level2_backup'
    format'%d/INC2/%t/%s/%p'
    database diskratio=0;
    backup
    format '%d/LOG_INC2/%t/%s/%p'
    archivelog all
    delete all input;
    release channel t1;
    }The AWR shows following "Top 5 timed events"
    Event                                      Waits     Time(s)     Avg Wait(ms)     % Total Call Time     Wait Class
    db file sequential read                    817,467     17,419         21                         28.6         User I/O
    CPU time                                  14,294                              23.5     
    log file sync                            141,642     8,570         61                         14.1          Commit
    enq: TX - row lock contention              3,371     7,171       2,127                          11.8         Application
    log file parallel write                     149,486     5,356         36                           8.8           System I/OWhat can be done? Can anyone tell what wrong is happening here?
    Database is 10.2.0.4
    OS is AIX 5.3
    SGA_TARGET is 6G
    PGA_AGGREGATE_TARGET is 2G
    Total physical RAM is 12G
    EBiz application is running in the same server
    Regards,
    SA

    On my server, we needed to adjust the vmm on aix for oracle to run best. Before I did that it was really slow.
    http://www.ibm.com/developerworks/aix/library/au-aixoracle/index.html
    Specifically these as outlined in the document linked above:
    Listing 3. Changing the default setting for the lru_file_repage parameter using vmo
    root@lpar21ml16ed_pub[] > vmo -o lru_file_repage=0
    Setting lru_file_repage to 0
    root@lpar21ml16ed_pub[] >
    Setting this to 0 tells the VMM that you want to steal only file pages and not computational pages. As this will change if the numperm < minperm or > maxperm, we will make maxperm high and minperm very low. Years ago, before the lru_file_repage parameter was introduced, we used to make maxperm low. If we did this now, we would stop the application caching programs that are currently running.
    Listing 4 shows how we'll set these parameters:
    Listing 4. Setting the minperm, maxperm and maxclient parameters
    vmo -p -o minperm%=5
    vmo -p -o maxperm%=90
    vmo -p -o maxclient%=90
    We also want to take a look at minfree and maxfree. When the pages on our free list fall below minfree, the VMM will start to steal pages, which we don't want to happen until the free list has beefed up the number in maxfree. The values should be similar to the ones shown in Listing 5.
    Listing 5. Setting the minfree and maxfree parameters
    vmo -p -o minfree=960
    vmo -p -o maxfree=1088
    Edited by: user455434 on Oct 12, 2010 1:14 PM

  • ASM RMAN backup to File System

    Hi all,
    I have a rman backup (datafile and controlfile) which was took in an ASM instance (not a RAC) ORACLE 11.2.0.2 in a Linux server, now I want restore the backup in a new database in windows/Linux OS using general File System storage (single instance rdbms) instead of ASM.
    Is this possible?
    Can I restrore an ASM rman backup in a file system storage mechanisim in a new server?
    Kindly clarify my question.
    Thanks in Advance..
    Nonuday

    Nonuday wrote:
    Hi Levi,
    Thanks for your invaluable script and blog.
    can you clarify me on this query:
    I have a RMAN backup taken from ASM and the backup is database and controlf file backup which contains datafiles and controlfiles.
    Now I need to restore this on my system and here I dont use ASM or archive log, I use single instance in no archive log mode database.
    I have restored the control file from the RMAN controfile backup.
    Before restoring the control file I have checked the orginal pfile of the backup database which had parameters like
    'db_create_file_dest',
    'db_create_online_log_dest',
    'db_recovery_file_dest_size',
    'db_recovery_dest',
    'log_archive_dest'.
    Since I am not gng to create a DB in no archive log mode, I didnt use any of the above parameters and created a database.
    Now my question is:
    If i restore the database and the datafile will get restored and after renaming all the logfiles, database will be opened.
    I want to know whether this method is correct or wrong and will the database work as it was working previously. Or do i need create the db_file_recovery and other parameters also for this database.About Parameter:
    All these parameters should reflect your current environment any reference to the old environment must be modified.
    About Filesystem used:
    Does not matter what Filesystem you are using the File (datafile/redolog/controlfile/archivelog/backuppiece) are created on Binary Format which depend on Platform only. So, The same binary file ( e.g datafile) have same format and content on raw device, ASM, ext3, ext2, and so on. So, to database it's only a location where file are stored, but the file are the same. ASM has a different architecture from Regular Filesystem and need be managed in a different manner (i.e using RMAN).
    About Database:
    Since your database files are the same even using different filesystem what you need is rename your datafiles/redofiles on controlfile during restore, the redo files will be recreated.
    So, does not matter if you database are noarchivelog or archivelog, the same way which you will do a restore on ASM is the same way to restore on Regular Filesystem. (it's only about renaming database file on controlfile during restore)
    On blog the post "How Migrate All Files on ASM to Non-ASM (Unix/Linux)" is about move the file from filesystem to another. But you can modify the script used to restore purposes;
    ## set newname tell to RMAN where file will be restored and keep this files location on memory buffer
    RMAN> set newname for datafile 1 to <location>;
    ### swich get list of files from memory buffer (rman) and rename on controlfile the files already restored.
    RMAN>switch datafile/tempfile all ;With database mounted use this script below:
    I just commented three lines that are unnecessary in your case.
    SET serveroutput ON;
    DECLARE
      vcount  NUMBER:=0;
      vfname VARCHAR2(1024);
      CURSOR df
      IS
        SELECT file#,
          rtrim(REPLACE(name,'+DG_DATA/drop/datafile/','/u01/app/oracle/oradata/drop/'),'.0123456789') AS name
        FROM v$datafile;
      CURSOR tp
      IS
        SELECT file#,
          rtrim(REPLACE(name,'+DG_DATA/drop/tempfile/','/u01/app/oracle/oradata/drop/'),'.0123456789') AS name
        FROM v$tempfile;
    BEGIN
    --  dbms_output.put_line('CONFIGURE CONTROLFILE AUTOBACKUP ON;'); ### commented
      FOR dfrec IN df
      LOOP
        IF dfrec.name  != vfname THEN
          vcount      :=1;
          vfname     := dfrec.name;
        ELSE
          vcount := vcount+1;
          vfname:= dfrec.name;
        END IF;
      --  dbms_output.put_line('backup as copy datafile ' || dfrec.file# ||' format  "'||dfrec.name ||vcount||'.dbf";');  ### commented
      END LOOP;
      dbms_output.put_line('run');
      dbms_output.put_line('{');
      FOR dfrec IN df
      LOOP
        IF dfrec.name  != vfname THEN
          vcount      :=1;
          vfname     := dfrec.name;
        ELSE
          vcount := vcount+1;
          vfname:= dfrec.name;
        END IF;
        dbms_output.put_line('set newname for datafile ' || dfrec.file# ||'  to  '''||dfrec.name ||vcount||'.dbf'' ;');
      END LOOP;
      FOR tprec IN tp
      LOOP
        IF tprec.name  !=  vfname THEN
          vcount      :=1;
          vfname     := tprec.name;
        ELSE
          vcount := vcount+1;
          vfname:= tprec.name;
        END IF;
        dbms_output.put_line('set newname for tempfile ' || tprec.file# ||'  to  '''||tprec.name ||vcount||'.dbf'' ;');
        END LOOP;
          dbms_output.put_line('restore database;');
        dbms_output.put_line('switch tempfile all;');
        dbms_output.put_line('switch datafile all;');
        dbms_output.put_line('recover database;');
        dbms_output.put_line('}');
    ---   dbms_output.put_line('alter database open;');  ### comented because you need rename your redologs on controlfile before open database
        dbms_output.put_line('exit');
    END;
    /After restore you must rename your redologs on controlfile from old location to new location:
    e.g
    ##  use this query to get current location of redolog
    SQL>  select group#,member from v$logfile order by 1;
    ## and change from <old_location> to <new_location>
    SQL > ALTER DATABASE
      RENAME FILE '+DG_TSM_DATA/tsm/onlinelog/group_3.263.720532229' 
               TO  '/u01/app/oracle/oradata/logs/log3a.rdo'  When you change all redolog on controlfile issue command below:
    SQL> alter database open resetlogs;PS: Always track database in real time using alert log file of database.
    HTH,
    Levi Pereira

  • Rman backups delete

    What commands would I use to do the following:
    Daily I take a full compressed backup. I currently use:
    backup as compressed backupset database;
    And backup my archivelogs. I currently use:
    backup archivelog all;
    Then I want to keep 2 days of backup and archivelogs on disk and maybe 7 days of backup and backed up archivelogs on tape. How do I accomplish this part?

    For what you are doing I like to utilize a storage manager product with my tape system where the files on disk are brought to tape automatically and stub files left in place where the files appear to be in the directory but are really on tape. This way I can just manage RMAN backup pieces and execute dsik based backups normally but manage my disk space better, manage RMAN as normal because as for as RMAN is concerned the files are there on disk. Tivoli Storage Manager (TSM) has a product that does this called HSM, other vendors have Hierarchical Storage Management (HSM) products as well. They are usually pretty inexpensive and remove complication related to managing the backup pieces between disk and tape with RMAN. You get the best of both worlds without having to manage anything differently then just disk based backups and you can use less storage.

  • Rman backup on TEVOLI tape

    Hi,
    Can anybody help me.TSM tape configured for linux RAC oracle database for rman backups.once i start backup its giving me followng error.can anybody provide me help
    Recovery Manager: Release 10.2.0.1.0 - Production on Fri Aug 18 20:49:36 2006
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    RMAN> connect target;
    connected to target database: IPO (DBID=1999149714)
    RMAN> BACKUP DATABASE PLUS ARCHIVELOG;
    Starting backup at 18-AUG-06
    current log archived
    using target database control file instead of recovery catalog
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of backup plus archivelog command at 08/18/2006 20:50:19
    ORA-19554: error allocating device, device type: SBT_TAPE, device name:
    ORA-27000: skgfqsbi: failed to initialize storage subsystem (SBT) layer
    Linux Error: 2534: Unknown system error
    Additional information: 7011
    ORA-19511: Error received from media manager layer, error text:
    SBT error = 7011, errno = 2534, sbtopen: system error
    RMAN>

    Possible solution is:
    The default path where TDPO looks at is '/usr/tivoli/tsm/client/api/bin64'
    even if the file DSM.SYS exists in another directory.
    The read permission of the file '/usr/tivoli/tsm/client/api/bin64/dsm.sys'
    was incorrect:
    -rw-r----- i.e. "OTHERS" which is Oracle isn't allowed to read the
    file /usr/tivoli/tsm/client/api/bin64/dsm.sys
    After changing permissions on /usr/tivoli/tsm/client/api/bin64/dsm.sys in order
    to allow oracle to use it then the backup works fine.
    $ chmod +r /usr/tivoli/tsm/client/api/bin64/dsm.sys
    The problem is on the TSM side. If the solution does not work you have to check TSM logs for further error messages.
    Werner

  • RMAN backup finish with ORA-07445: exception encountered: core dump

    Hi Group,
    Repeatly we have problems with RMAN, showing this message, we need to know if this message is related to Oracle Database or is the backup software.
    Thanks a lot
    /pcpdci/oracle/product/920/admin/PCPDCI_bd/udump/pcpdci_ora_31187.trc
    Oracle9i Enterprise Edition Release 9.2.0.8.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.8.0 - Production
    ORACLE_HOME = /pcpdci/oracle/product/920
    System name:    Linux
    Node name:      bd.copesa.cl
    Release:        2.6.9-78.ELhugemem
    Version:        #1 SMP Wed Jul 9 15:57:33 EDT 2008
    Machine:        i686
    Instance name: PCPDCI
    Redo thread mounted by this instance: 1
    Oracle process number: 948
    Unix process pid: 31187, image: [email protected] (TNS V1-V3)
    *** 2011-04-11 00:58:44.241
    *** SESSION ID:(1519.515) 2011-04-11 00:58:44.240
    SKGFQ OSD: Error in function sbtwrite2 on line 1031
    SKGFQ OSD: Look for SBT Trace messages in file /pcpdci/oracle/product/920/admin/PCPDCI_bd/udump/sbtio.log
    Exception signal: 11 (SIGSEGV), code: 1 (Address not mapped to object), addr: 0x126, PC: [0xf6abe90b, __GI_strlen()+11]
    Registers:
    %eax: 0x00000126 %ebx: 0xf6b7dff4 %ecx: 0x00000002
    %edx: 0x00000000 %edi: 0x00000000 %esi: 0x00000126
    %esp: 0xfeff6154 %ebp: 0xfeff6794 %eip: 0xf6abe90b
    %efl: 0x00010202
      __GI_strlen()+0 (0xf6abe900) mov 0x4(%esp),%ecx
      __GI_strlen()+4 (0xf6abe904) mov %ecx,%eax
      __GI_strlen()+6 (0xf6abe906) and $3,%ecx
      __GI_strlen()+9 (0xf6abe909) je 0xf6abe933
    __GI_strlen()+11 (0xf6abe90b) cmpb %ch,(%eax)  __GI_strlen()+13 (0xf6abe90d) jz 0xf6abe9aa
      __GI_strlen()+19 (0xf6abe913) inc %eax
      __GI_strlen()+20 (0xf6abe914) xor $3,%ecx
      __GI_strlen()+23 (0xf6abe917) je 0xf6abe933
    *** 2011-04-11 00:58:44.570
    ksedmp: internal or fatal error
    ORA-07445: exception encountered: core dump [__GI_strlen()+11] [SIGSEGV] [Address not mapped to object] [0x126] [] []
    ----- Call Stack Trace -----
    calling              call     entry                argument values in hex
    location             type     point                (? means dubious value)
    ksedmp()+274         call     ksedst()             1 ? 0 ? 0 ? 1 ? 33396562 ?
    ===========================================================
    Tracing started for:
       Application Client :   TDPO Linux86
                  Version :   5.4.1.0
    ===========================================================
    SBT-13207 07/12/2010 16:32:29 send2.cpp(412): sbtwrite2(): Exit - DSMSENDDATA() failed. dsmHandle = 1
    ===========================================================
    Tracing started for:
       Application Client :   TDPO Linux86
                  Version :   5.4.1.0
    ===========================================================
    SBT-14436 07/12/2010 16:52:58 send2.cpp(412): sbtwrite2(): Exit - DSMSENDDATA() failed. dsmHandle = 1
    ===========================================================
    Tracing started for:
       Application Client :   TDPO Linux86
                  Version :   5.4.1.0
    ===========================================================
    SBT-15110 07/12/2010 17:01:58 send2.cpp(412): sbtwrite2(): Exit - DSMSENDDATA() failed. dsmHandle = 1
    ===========================================================
    Tracing started for:
       Application Client :   TDPO Linux86
                  Version :   5.4.1.0

    Reply from nagulan is correct. Our turned out to be an error with TSM. The disk pool had filled up and it was writing this to tape before allowing the backup to continue. The backup didn't handle the "pause" event well and failed out. We only get this with V9 RMAN, not V10 or V11 RMAN backups. This has to be addressed by the backup vendor for V9 as the Oracle RMAN software doesn't seem to handle it well. Maybe configuring a really large timeout for responses MAY fix this, depending on what the code returned from the backup software vendor is and why RMAN isn't happy with it.
    In the end it is an issue between V9 RMAN and the backup software we run TSM. Maybe version incompatibility or maybe just V9 is not that robust.

  • How can i do a RMAN backup of my database from the network ?

    i'm using oracle 8i.1.7.3 with win server 2003
    i want to know how can i do a RMAN backup of my database (sever machine A) from the network.
    i'd like to save the backup in another machine (the same LAN, the same OS ).
    to do that i've mapped a logical device in my comptur (z):
    when i run rman command i got this error:
    channel ORA_DISK_1: starting piece 1 at .......
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of backup command ON ORA_DISK_1 channel at .......
    00
    ORA-19504: failed TO CREATE file "\\remote\save\"
    ORA-27040: skgfrcre: create error, unable to create file
    OSD-04002: unable to open file
    O/S-Error: (OS 123) The filename, directory name, or volume label syntax is inco
    rrect.

    Hi,
    ORA-19504: failed TO CREATE file "\\remote\save\"make sure you have created this directory and change it's ownership (chown command)to oracle.
    also make sure that oracle user has permission to write to this direcotry (chmod command)
    hope this helps
    cheers, walrus

Maybe you are looking for

  • Labview graph scale labels do not update

    I am using XScale.NameLbl.Text and YScale.NameLbl.Text graph properties to programmatically change the labels on the X & Y axis. It seems to work when I run the subVI containing the graph, but when the subVI is placed in an application, they do not u

  • Problem applying SAPKB64012

    Hi, I'm applying SAPKB64012 and I get an error in the import_proper phase. The import finish with sy-subrc eq 16. I have tried several times but I always get the same error ETW674Xstart import of "LIMUDYNPSAPLSALM2400" ... 4 ETW000   1 entry for TADI

  • Can't join tables.query dependency not found "" in EUL

    hi ALL, i created one report in disco 3.1.38 and its' running fine but after storing it in database and then again trying to open it from database it gives me error "can't join tables."name of query folder" dependency not found "" in EUL" if any one

  • Volume based price adjustments in PO

    Hi SAP experts, Are you aware of any functionality (other than vendor rebates) that allows you to get volume discounts at the vendor level (multiple contracts)? We would like to systematically get volume based price adjustment in the PO based on purc

  • Some songs stop playing after minute 1

    I recently purchased some songs from iTunes and the majority of them have this issue, they stop playing after minute 1 or 1:30.