Does RMAN in 10g Enterprise Have Backup with *Compression* ?

hi RMNA experts,
I use the Enterprise edition of 10g. Using RMAN for database backups.
Can you request compression in an RMAN backup - to get a smaller backup file?
Thanks, John

Yes you can. Here is the script.
run {
allocate channel ch1 device type disk;
backup as compressed backupset incremental level 0 format '/u03/rman_backup/RMAN_DBF_TST<%s:%t:%p>.bkp' database;
sql 'alter system archive log current';
backup as compressed backupset format '/u03/rman_backup/RMAN_ARCH_TST<%s:%t:%p>.bkp' archivelog all delete input;
backup as compressed backupset format '/u03/rman_backup/RMAN_CTL_TST<%s:%t:%p>.bkp' current controlfile;
Regards
Asif Kabir

Similar Messages

  • MSSQL 2008 R2 - 32bit, TSQL backup with compression, error: There is insufficient system memory in resource pool 'internal' to run this query

    Hello,
    I would like to ask you about advice.
    We have MSSQL 2008 R2, 32 bit. Memory is 4GB, split into 2GB for Windows and 2GB for applications. Database has recovery model simple because we have replicated data into other servers ( 2 ). Contemporary we work with 2 servers. Max memory for MSSQL is 2048
    MB.
    We set the backup as follows:
    USE MSDB
    GO
    DECLARE @JMENO_ZALOHY VARCHAR(120)
    SELECT  @JMENO_ZALOHY = 'E:\backup\BackupSQL\1 Pondeli\DAVOSAM_'+ convert( varchar(2), datepart( hh, getdate() ) ) + '00_DEN_DIFF.bak'
    SELECT  @JMENO_ZALOHY
    BACKUP DATABASE [DAVOSAM]
    TO DISK = @JMENO_ZALOHY
    WITH INIT, DIFFERENTIAL, CHECKSUM, COMPRESSION
    GO
    Every second or third day in log there is error message: 'There is insufficient system memory in resource pool 'internal' to run this query' Accurate in time of backup. The error is still repeat, majority in working hours.
    Today I have found out, that problem is probably in compression of backup. Because if I removed word: compression, a backup normally runs without error.
    Question: Is my hypothesis correct that problem is in backup with compression?
    Thank you David

    Hello, today evening I have ran backup command bellow. All is OK. Probably MSSQL has cleaned memory. Next attempt I will try in peak next week.
    Since time I have removed word compression, in error log is not any error.
    I have checked memory as soon as memory gets on top, it is about 1.707 GB the MSSQL writes into log this messgages:
    2014-03-14 15:00:04.63 spid89      Memory constraints resulted reduced backup/restore buffer sizes. Proceding with 7 buffers of size 64KB.
    2014-03-14 15:00:08.74 Backup      Database differential changes were backed up. Database: DAVOSAM, creation date(time): 2014/01/12(22:03:10), pages dumped: 16142, first LSN: 1894063:1673:284,
    last LSN: 1894063:1792:1, full backup LSN: 1894053:15340:145, number of dump devices: 1, device information: (FILE=1, TYPE=DISK: {'E:\backup\BackupSQL\5 Patek\DAVOSAM_1500_DEN_DIFF.bak'}). This is an informational message. No user action is required.
    2014-03-14 15:00:12.79 spid72      Memory constraints resulted reduced backup/restore buffer sizes. Proceding with 7 buffers of size 64KB.
    2014-03-14 15:00:12.88 Backup      Database differential changes were backed up. Database: WEBFORM, creation date(time): 2014/02/01(05:22:47), pages dumped: 209, first LSN: 125436:653:48, last
    LSN: 125436:674:1, full backup LSN: 125435:689:36, number of dump devices: 1, device information: (FILE=1, TYPE=DISK: {'E:\backup\BackupSQL\5 Patek\WEBFORM_1500_DEN_DIFF.bak'}). This is an informational message. No user action is required.
    After that the MSSQL reduced memory on 1.692.
    USE MSDB
    GO
    DECLARE @JMENO_ZALOHY VARCHAR(120)
    SELECT  @JMENO_ZALOHY = 'E:\backup\BackupSQL\6 Sobota\DAVOSAM_'+ convert( varchar(2), datepart( hh, getdate() ) ) + '00_DEN_FULL.bak'
    SELECT  @JMENO_ZALOHY
    BACKUP DATABASE [DAVOSAM]
    TO DISK = @JMENO_ZALOHY
    WITH INIT, CHECKSUM, COMPRESSION, MAXTRANSFERSIZE=65536
    GO
    E:\backup\BackupSQL\6 Sobota\DAVOSAM_2100_DEN_FULL.bak
    (1 row(s) affected)
    Processed 467240 pages for database 'DAVOSAM', file 'DavosAM_Data' on file 1.
    Processed 2 pages for database 'DAVOSAM', file 'DavosAM_Log' on file 1.
    BACKUP DATABASE successfully processed 467242 pages in 24.596 seconds (148.411 MB/sec).
    select * from sys.dm_exec_connections
    where net_packet_size > 8192
    session_id  most_recent_session_id connect_time            net_transport                            protocol_type            
                   protocol_version endpoint_id encrypt_option                           auth_scheme                
                 node_affinity num_reads   num_writes  last_read               last_write              net_packet_size client_net_address  
                                client_tcp_port local_net_address                                local_tcp_port
    connection_id                        parent_connection_id                 most_recent_sql_handle
    (0 row(s) affected)
    SELECT SUM (pages_allocated_count * page_size_in_bytes)/1024 as 'KB Used', mo.type, mc.type
    FROM sys.dm_os_memory_objects mo
    join sys.dm_os_memory_clerks mc on mo.page_allocator_address=mc.page_allocator_address
    GROUP BY mo.type, mc.type, mc.type
    ORDER BY 1 DESC;
    KB Used     type                                                         type
    29392       MEMOBJ_SORTTABLE                                             MEMORYCLERK_SQLSTORENG
    9392        MEMOBJ_SOSNODE                                               MEMORYCLERK_SOSNODE
    8472        MEMOBJ_SQLTRACE                                              MEMORYCLERK_SQLGENERAL
    5480        MEMOBJ_SECOLMETACACHE                                        USERSTORE_SCHEMAMGR
    5280        MEMOBJ_RESOURCE                                              MEMORYCLERK_SQLGENERAL
    5008        MEMOBJ_CACHEOBJPERM                                          USERSTORE_OBJPERM
    4320        MEMOBJ_SOSSCHEDULER                                          MEMORYCLERK_SOSNODE
    2864        MEMOBJ_PERDATABASE                                           MEMORYCLERK_SQLSTORENG
    2328        MEMOBJ_SQLCLR_CLR_EE                                         MEMORYCLERK_SQLCLR
    2288        MEMOBJ_SESCHEMAMGR                                           USERSTORE_SCHEMAMGR
    2080        MEMOBJ_SOSDEADLOCKMONITORRINGBUFFER                          MEMORYCLERK_SQLSTORENG
    2008        MEMOBJ_LOCKBLOCKS                                            OBJECTSTORE_LOCK_MANAGER
    1584        MEMOBJ_CACHESTORETOKENPERM                                   USERSTORE_TOKENPERM
    1184        MEMOBJ_LOCKOWNERS                                            OBJECTSTORE_LOCK_MANAGER
    840         MEMOBJ_SNIPACKETOBJECTSTORE                                  OBJECTSTORE_SNI_PACKET
    760         MEMOBJ_SOSDEADLOCKMONITOR                                    MEMORYCLERK_SQLSTORENG
    752         MEMOBJ_SESCHEMAMGR_PARTITIONED                               USERSTORE_SCHEMAMGR
    688         MEMOBJ_RESOURCEXACT                                          MEMORYCLERK_SQLSTORENG
    616         MEMOBJ_SOSWORKER                                             MEMORYCLERK_SOSNODE
    552         MEMOBJ_METADATADB                                            MEMORYCLERK_SQLGENERAL
    480         MEMOBJ_SRVPROC                                               MEMORYCLERK_SQLCONNECTIONPOOL
    424         MEMOBJ_SQLMGR                                                CACHESTORE_SQLCP
    400         MEMOBJ_SBOBJECTPOOLS                                         OBJECTSTORE_SERVICE_BROKER
    384         MEMOBJ_SUPERLATCH_BLOCK                                      MEMORYCLERK_SQLSTORENG
    384         MEMOBJ_RESOURCEDATASESSION                                   MEMORYCLERK_SQLGENERAL
    352         MEMOBJ_SOSSCHEDULERMEMOBJPROXY                               MEMORYCLERK_SOSNODE
    328         MEMOBJ_SBMESSAGEDISPATCHER                                   MEMORYCLERK_SQLSERVICEBROKER
    320         MEMOBJ_METADATADB                                            USERSTORE_DBMETADATA
    296         MEMOBJ_INDEXSTATSMGR                                         MEMORYCLERK_SQLOPTIMIZER
    264         MEMOBJ_LBSSCACHE                                             OBJECTSTORE_LBSS
    224         MEMOBJ_XE_ENGINE                                             MEMORYCLERK_XE
    216         MEMOBJ_GLOBALPMO                                             MEMORYCLERK_SQLGENERAL
    208         MEMOBJ_PROCESSRPC                                            USERSTORE_SXC
    200         MEMOBJ_SYSTASKSESSION                                        MEMORYCLERK_SQLCONNECTIONPOOL
    200         MEMOBJ_REPLICATION                                           MEMORYCLERK_SQLGENERAL
    192         MEMOBJ_SOSSCHEDULERTASK                                      MEMORYCLERK_SOSNODE
    176         MEMOBJ_SQLCLRHOSTING                                         MEMORYCLERK_SQLCLR
    168         MEMOBJ_SYSTEMROWSET                                          CACHESTORE_SYSTEMROWSET
    128         MEMOBJ_RESOURCESUBPROCESSDESCRIPTOR                          MEMORYCLERK_SQLGENERAL
    128         MEMOBJ_CACHESTORESQLCP                                       CACHESTORE_SQLCP
    128         MEMOBJ_RESOURCESEINTERNALTLS                                 MEMORYCLERK_SQLSTORENG
    120         MEMOBJ_BLOBHANDLEFACTORYMAIN                                 MEMORYCLERK_BHF
    120         MEMOBJ_SNI                                                   MEMORYCLERK_SNI
    88          MEMOBJ_QUERYNOTIFICATON                                      MEMORYCLERK_SQLOPTIMIZER
    72          MEMOBJ_HOST                                                  MEMORYCLERK_HOST
    72          MEMOBJ_INDEXRECMGR                                           MEMORYCLERK_SQLOPTIMIZER
    64          MEMOBJ_RULETABLEGLOBAL                                       MEMORYCLERK_SQLGENERAL
    56          MEMOBJ_SERVICEBROKER                                         MEMORYCLERK_SQLSERVICEBROKER
    56          MEMOBJ_REMOTESESSIONCACHE                                    MEMORYCLERK_SQLGENERAL
    56          MEMOBJ_PARSE                                                 CACHESTORE_PHDR
    48          MEMOBJ_CACHESTOREBROKERTBLACS                                CACHESTORE_BROKERTBLACS
    48          MEMOBJ_APPENDONLYSTORAGEUNITMGR                              MEMORYCLERK_SQLSTORENG
    40          MEMOBJ_SBASBMANAGER                                          MEMORYCLERK_SQLSERVICEBROKER
    32          MEMOBJ_OPTINFOMGR                                            MEMORYCLERK_SQLOPTIMIZER
    32          MEMOBJ_SBTRANSPORT                                           MEMORYCLERK_SQLSERVICEBROKERTRANSPORT
    32          MEMOBJ_CACHESTOREBROKERREADONLY                              CACHESTORE_BROKERREADONLY
    32          MEMOBJ_DIAGNOSTIC                                            MEMORYCLERK_SQLGENERAL
    32          MEMOBJ_UCS                                                   MEMORYCLERK_SQLSERVICEBROKER
    24          MEMOBJ_STACKSTORE                                            CACHESTORE_STACKFRAMES
    24          MEMOBJ_CACHESTORESXC                                         USERSTORE_SXC
    24          MEMOBJ_FULLTEXTGLOBAL                                        MEMORYCLERK_FULLTEXT
    24          MEMOBJ_APPLOCKLVB                                            OBJECTSTORE_LOCK_MANAGER
    24          MEMOBJ_FULLTEXTSTOPLIST                                      CACHESTORE_FULLTEXTSTOPLIST
    24          MEMOBJ_CONVPRI                                               CACHESTORE_CONVPRI
    16          MEMOBJ_SQLCLR_VMSPY                                          MEMORYCLERK_SQLCLR
    16          MEMOBJ_VIEWDEFINITIONS                                       MEMORYCLERK_SQLOPTIMIZER
    16          MEMOBJ_SBACTIVATIONMANAGER                                   MEMORYCLERK_SQLSERVICEBROKER
    16          MEMOBJ_AUDIT_EVENT_BUFFER                                    OBJECTSTORE_SECAUDIT_EVENT_BUFFER
    16          MEMOBJ_HASHGENERAL                                           MEMORYCLERK_SQLQUERYEXEC
    16          MEMOBJ_SBTIMEREVENTCACHE                                     MEMORYCLERK_SQLSERVICEBROKER
    16          MEMOBJ_ASYNCHSTATS                                           MEMORYCLERK_SQLGENERAL
    16          MEMOBJ_BADPAGELIST                                           MEMORYCLERK_SQLUTILITIES
    16          MEMOBJ_QSCANSORTNEW                                          MEMORYCLERK_SQLQUERYEXEC
    16          MEMOBJ_SCTCLEANUP                                            MEMORYCLERK_SQLGENERAL
    16          MEMOBJ_XP                                                    MEMORYCLERK_SQLXP
    8           MEMOBJ_SECURITY                                              MEMORYCLERK_SQLGENERAL
    8           MEMOBJ_CACHESTOREBROKERRSB                                   CACHESTORE_BROKERRSB
    8           MEMOBJ_EXCHANGEXID                                           MEMORYCLERK_SQLGENERAL
    8           MEMOBJ_CACHESTOREVENT                                        CACHESTORE_EVENTS
    8           MEMOBJ_CACHESTOREXPROC                                       CACHESTORE_XPROC
    8           MEMOBJ_DBMIRRORING                                           MEMORYCLERK_SQLUTILITIES
    8           MEMOBJ_SERVICEBROKERTRANSOBJ                                 CACHESTORE_BROKERTO
    8           MEMOBJ_CACHESTOREOBJCP                                       CACHESTORE_OBJCP
    8           MEMOBJ_CACHESTOREXMLDBELEMENT                                CACHESTORE_XMLDBELEMENT
    8           MEMOBJ_ENTITYVERSIONINFO                                     MEMORYCLERK_SQLSTORENG
    8           MEMOBJ_AUDIT_MGR                                             MEMORYCLERK_SQLGENERAL
    8           MEMOBJ_EXCHANGEPORTS                                         MEMORYCLERK_SQLGENERAL
    8           MEMOBJ_DEADLOCKXML                                           MEMORYCLERK_SQLSTORENG
    8           MEMOBJ_CACHESTORETEMPTABLE                                   CACHESTORE_TEMPTABLES
    8           MEMOBJ_HTTPSNICONTROLLER                                     MEMORYCLERK_SQLHTTP
    8           MEMOBJ_CACHESTOREVIEWDEFINITIONS                             CACHESTORE_VIEWDEFINITIONS
    8           MEMOBJ_CACHESTOREPHDR                                        CACHESTORE_PHDR
    8           MEMOBJ_CACHESTOREXMLDBTYPE                                   CACHESTORE_XMLDBTYPE
    8           MEMOBJ_CACHESTORE_BROKERUSERCERTLOOKUP                       CACHESTORE_BROKERUSERCERTLOOKUP
    8           MEMOBJ_EVENTSUBSYSTEM                                        MEMORYCLERK_SQLGENERAL
    8           MEMOBJ_CACHESTOREBROKERDSH                                   CACHESTORE_BROKERDSH
    8           MEMOBJ_SOSDEADLOCKMONITORXMLREPORT                           MEMORYCLERK_SQLSTORENG
    8           MEMOBJ_CACHESTOREXMLDBATTRIBUTE                              CACHESTORE_XMLDBATTRIBUTE
    8           MEMOBJ_CACHESTOREBROKERKEK                                   CACHESTORE_BROKERKEK
    8           MEMOBJ_QPMEMGRANTINFO                                        MEMORYCLERK_SQLQUERYEXEC
    8           MEMOBJ_CACHESTOREQNOTIFMGR                                   CACHESTORE_NOTIF
    (101 row(s) affected)
    David

  • RMAN merge backup with compression

    Hi All,
    Os : solaris 10
    db: 10.2.0.4
    as of now as per our backup strategy we are taking RMAN levle 0 weekly and daily incremental backup as compressed.
    we are planning to take RMAN merge backup like below
    For full backup on sunday
    backup incremental level 0 AS COPY tag 'DEMO_MERGE_DB' database ;rest of the days
    BACKUP INCREMENTAL LEVEL 1 FOR RECOVER OF COPY WITH TAG 'DEMO_MERGE_DB' DATABASE;My question is , while taking as merge is there any option to compress the backup.
    i have gone through but dint see any info regarding this.
    Please help...
    Thanks in Advance
    Mvk

    merge backup , updated backup and image copy are these things are same or any difference inbetween..Image copy of backup copy of the data file
    merge backup means that you take incremental backup of data and merge it with the image backup copy of the datafile so that backup copy is updated all the time and in case of recovery, you don't need to apply all archives since backup copy because his copy is already up to date till the time of last merge backup.
    Now your image copy backup is an updated backup because it is keep on updated with the incremental backups using merge backup strategy.
    Salman

  • Does iPod touch 4th gen. have update with iOS 7?

    does iPod touch 4th gen. (old one like i bought mine in 2010 or 2011) have update with iOS 7? or is there any way to change from iOS 6 to iOS 7?
    or is it just iOS 6 only for iPod touch 4th generation.

    No iOS 7 for the 4th Gen...
    See the very end of this link for Compatible Devices and Features...
    http://www.apple.com/ios/ios7/features/

  • Does the iPad 2 still have issues with light bleeding/yellowing?

    Hi,
    I placed an order for an iPad 2 back in April but cancelled the order when I heard about initial quality control issues such as light bleeding/yellowing.  However, I am keen to buy a iPad 2.  Could anyone who bought an iPad 2 more recently (say, since mid May) advise whether they too have had these issues?  I can't afford to spend £500+ on a device that doesn't work like it's supposed to.
    Thanks!
    Tony

    Hi there Tony!
    All iPads should work as expected, to have a fault with one is usually a random, and rare event. Your iPad will probably be perfect, only a few out of a very large number have defects.
    However, if your iPad does not meet your standards when you purchase it, I would take it to the local Apple Store. You receive a 1 year limited warranty, and they will be happy to replace it if any defects occur.
    Hope that put your mind at rest.

  • HT1222 Does the ipod 4th generation have siri with the ios 6.1 update?

    In the iOS 6.1 update details it says,
    "Purchase movie tickets through Fandango with Siri (USA only)". 
    Does this mean the update comes with siri?

    Nope, Siri is not available on the 4th generation

  • Does any one out there have problems with all in ones. Mine never last more than 6 months

    I have had numerous printers/fax/scanners and they only last 4 to 6 months. I would think for the money you have to pay for them they would last longer. Something that cost 500 dollars should last more than 4 months

    What is it that does not last?  Do your printers go wrong in the same way?
    From a printing standpoint, the number of total printed pages is a good way to measure the life of a printer instead of in days, weeks or months.
    I was an HP employee.
    Please mark the post that solves your problem as "Accepted Solution"

  • TS3276 why does apple deny that they have trouble with some hotel wireless connections that prevent us from sending mail?

    This morning I had no trouble sending mail from ALB.  Then I did have trouble at the Marriott in Baltimore.  This is a recurrent issue.  Some hot spots work fine, some only allow me to retrieve mail, but not send any.  More than frustartiong as it denies me working ability with mail on the road!

    I have noticed this too because I work a lot overseas and live out of many hotels.  This is not just a Mail issue but also with Outlook, and it has to do with your outgoing port configurations.  It's not Apple's fault it is the ISP behind the wifi and some of these ports are blocked for whatever reason.  The only thing that I do is try different mail accounts, ie Yahoo, Google, Mac, until you find one that works.  Sounds stupid but that's the only way that
    I can keep communicating back to the US.

  • Why does apple ipad and iphone have problems with comcast?

    We attempt to send pictures through our comcast wifi account and gets to about 90%and freezes. Have reset modem, and router, have turned off phone and reset it. Have switched to 4G then pictures will send. Only has problem when connected to wifi. As my ipad is wifi, I cannot send pictures at all with it.
    Did not have this problem until iOS 6 update.
    Any suggestions?

    My iPad and other devices have no problems with Comcast, but I didn't get my WiFi router from them. If you did, your router may need a firmware update, or you may need to get a different model of router.
    Regards.

  • Solaris x86 with Oracle RAC 10g Enterprise Edition Release 10.2.0.3.0

    Hello,
    Maybe you can help me (new on RMAN backup) in doing this.
    I have configured a single Oracle 10g database to have backup with RMAN with following steps:
    1. $ mkdir $ORACLE_BASE/rman_scripts
    2. $ mkdir $ORACLE_BASE/logs
    3. $ mkdir $ORACLE_BASE/tracking
    4. $ mkdir $ORACLE_BASE/c_backup
    5. $ sqlplus sys/<password> as sysdba
    6. SQL> alter system set db_recovery_file_dest_size = 50G scope=both;
    7. SQL> alter system set db_recovery_file_dest='${ ORACLE_BASE}/flash_recovery_ area' scope=both;
    8. SQL> alter system set log_archive_dest_10='location= use_db_recovery_file_dest';
    9. SQL> shutdown immediate
    10. SQL> startup nomount
    11. SQL> alter database archivelog;
    12. SQL> alter database open;
    13. SQL> alter database enable block change tracking using file '${ORACLE_BASE}/tracking/rman_ change_track.f';
    14. $ rman target /
    15. RMAN> CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK
    TO '/var/opt/oracle/flash_ recovery_area/ORCL/c_backup/% F';
    16. RMAN> CONFIGURE CONTROLFILE AUTOBACKUP ON;
    17. RMAN> CONFIGURE BACKUP OPTIMIZATION ON;
    18. RMAN> CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;
    19. RMAN> exit
    I need to configure incremental backup with RMAN on a two node Solaris x86 with Oracle RAC 10g Enterprise Edition Release 10.2.0.3.0 installation.
    We also use ASM to store database files, and have Oracle software installed on separate file systems (two Oracle roots for Node1 and Node2).
    I have following questions:
    1) where to put Flash Recovery Area (FRA)?
    I saw recommendations to put FRA on the ASM, is this the best way to do it?
    2) Can I put FRA on another file system (not on the ASM) which is available only from Node1? This way I can save space on the ASM.
    3) Is it possible/recommended to run RMAN from Node1 only?
    Below is the script used to run RMAN on the normal Oracle database (without RAC) which I need to change :
    =============================================================================================
    2.0 Oracle backup script: /opt/app/oracle/rman_scripts/backup.sh
    Use this for daily backups, possiblly as a cron job.
    Once a week run this: /opt/app/oracle/rman_scripts/backup.sh FULL
    All other days of the week: /opt/app/oracle/rman_scripts/backup.sh INCREMENTAL
    Note: You may have to change ORACLE_SID, ORACLE_BASE below to match your database.
    =============================================================================================
    #!/usr/bin/ksh
    ORACLE_SID=orcl
    ORACLE_BASE=/opt/app/oracle
    ORACLE_HOME=${ORACLE_BASE}/product/10.2.0/db_1
    PATH=${ORACLE_HOME}/bin:/usr/bin
    LOGDIR=${ORACLE_BASE}/logs
    LOGFILE=${LOGDIR}/rman.log
    if [[ $# < 1 ]]
    then
    echo "usage: backup.sh FULL|INCREMENTAL"
    exit;
    fi
    BACKUPTYPE=${1}
    full='FULL'
    incremental='INCREMENTAL'
    if [[ $BACKUPTYPE == $full ]]
    then
    $ORACLE_HOME/bin/rman target / nocatalog log ${LOGFILE} append << eof
    run {
    backup database;
    SQL 'alter system archive log current';
    backup archivelog all;
    delete noprompt obsolete;
    exit;
    eof
    echo ''
    fi
    if [[ $BACKUPTYPE == $incremental ]]
    then
    $ORACLE_HOME/bin/rman target / nocatalog log ${LOGFILE} append << eof
    run {
    backup database;
    backup incremental level 1 database;
    SQL 'alter system archive log current';
    backup archivelog all;
    delete noprompt obsolete;
    exit;
    eof
    echo ''
    fi

    Hi [email protected],
    Q1) where to put Flash Recovery Area (FRA)?
    A1) With RAC: on the shared storage
    I saw recommendations to put FRA on the ASM, is this the best way to do it?
    If you want your backups to be available for both nodes you have to use shared storage or tape using an mml library.
    So if you want to use the FRA for rman backups and the database is on ASM just make ASM the standard for the FRA as well.
    Q2) Can I put FRA on another file system (not on the ASM) which is available only from Node1? This way I can save space on the ASM.
    A2) Than you cannot recover in case Node1 is down. Best would be to send your storage admin to a training course so he can manage the clustered raw devices needed for ASM.
    Q3) Is it possible/recommended to run RMAN from Node1 only?
    A3) No see A2.
    Regards,
    Tycho

  • Problem with Oracle 10g Enterprise Manager DB control scheduled backup

    Hi
    DB is - Oracle Database 10g Enterprise edition-10.2.0.1.0
    OS is - Windows Server 2003, Enterprise edition, Service Pack - 2
    I have scheduled daily backup from DB control, some backup didn't completed.
    Status of backup was - "Suspended on Agent Unreachable"
    While try scheduling new backup job from DB control, it is giving error.
    Error - Connection to host as user <user_name> failed: IOException in sending Request :: Connection refused: connect
    Anyone has any clue regarding this? please help.

    Hi,
    Have a read of this thread which talks about the same issue and its solution.
    Oracle 10g EM DB console Host Preferred Credentials for Windows
    And if you are finding issues in the entering the Host credentials itself, you may need to log on as batch job. Follow thiese steps,
    +1. Go to control panel/administrative tools+
    a. click on "local security policy"
    b. click on "local policies"
    c. click on "user rights assignments"
    d. double click on "log on as a batch job"
    e. click on "add" and add the user that was entered in the "normal username" or "privileged username" section of the EM Console.
    +2. Go to the Preferences link in the EM GUI+
    a. click on Preferred Credentials (link on the left menu)
    b. under "Target Type: Host" click on "set credentials"
    c. enter the OS user who has logon as a batch job privilege into the "normal username" and "normal password" fields
    +3. Test the connection+
    a. while in the Set Credentials window, click on "Test"
    From http://www.orafaq.com/forum/t/89472/0/
    HTH
    Aman....

  • HT1296 Having a problem with new iphone 5c. have backup iphone 4 and trying to move info to iphone 5c. is not working. when plugging into computer backups from iphone 5c which does not have contacts on it. what am I missing?

    I have backuped my iphone 4 on itunes.
    plugged in iphone 5c- automatically backups the new phone and gets rid of the obackup on the iphone 4
    How to transfer information from iphone 4 to iphone 5c

    Is your 5C already setup? If so, you'll have to erase it before you can restore the backup of your iPhone 4 to it: Settings>General>Reset>Erase All Content & Settings.

  • Scheduled backups with Enterprise Manager

    Hi all,
    I have shceduled a full backup with Entreprise Manager 10g. Previusly I went to Backup settings and I have specified the path. The test executed sucssesfully.
    Then, once the backup was executed, it fails, but I can see any log from the Enterprise Manager on Backup Reports. Does somene know where I can find the backup logs?
    Thanks in advance!
    Víctor.

    When u r using oracle EM to schedule the backup it is actually using RMAN at the backend so you should provide the location of the backup log file aswell, only then it will generate the log file.
    The following are the command line RMAN parameters in which log is one of them,
    target
    catalog
    nocatalog
    cmdfile
    LOG
    trace
    append
    debug
    msgno
    send
    pipe
    timeout
    checksyntax

  • RMAN-05556: not all datafiles have backups that can be recovered to SCN

    Oracle 11.2.0.2 SE-One
    Oracle Linux 5.6 x86-64
    Weekly refresh of a test db from prod, using rman DUPLICATE DATABASE, failed with “RMAN-05556: not all datafiles have backups that can be recovered to SCN”
    Background Summary:
    Weekly inc 0 backup of production starts on Sunday at 0100, normally completes around 1050.  Includes backups of archivelogs
    Another backup of just archivelogs runs on Sunday at 1200, normally completes NLT 1201.
    On the test server, the refresh job starts on Sunday at 1325.  In the past this script used a set until time \"to_date('`date +%Y-%m-%d` 11:55:00','YYYY-MM-DD hh24:mi:ss')\"; -- hard-coded for ‘today at 11:55’.
    For a variety of reasons I decided to replace this semi-hard coding of the UNTIL with a value determined by querying the rman catalog, getting the completion time of the inc 0 backup.  This tested out just fine in my vbox lab, even when I deliberately drove some updates and log switches during the period the backup was running.  But the first time to go live I got the above reported error.
    Details:
    The key part of the inc 0 backup is this (run from a shell script)
    export BACKUP_LOC=/u01/backup/dbprod
    $ORACLE_HOME/bin/rman target=/ catalog rman/***@rmcat<<EOF
    configure backup optimization on;
    configure default device type to disk;
    configure retention policy to recovery window of 2 days;
    crosscheck backup;
    crosscheck archivelog all;
    delete noprompt force obsolete;
    delete noprompt force expired backup;
    delete noprompt force expired archivelog all;
    configure controlfile autobackup on;
    configure controlfile autobackup format for device type disk to '$BACKUP_LOC/%d_%F_ctl.backup';
    CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT   '$BACKUP_LOC/%U.rman' MAXPIECESIZE 4096 M;
    sql "alter system archive log current";
    show all;
    backup as compressed backupset archivelog all delete all input format "$BACKUP_LOC/%U.alog";
    backup as compressed backupset incremental level 0 database tag tag_dbprod;
    sql "alter system archive log current";
    backup as compressed backupset archivelog all delete all input format "$BACKUP_LOC/%U.alog";
    list recoverable backup;
    EOF
    The archivelog-only backup (runs at noon) looks like this:
    export BACKUP_LOC=/u01/backup/dbprod
    $ORACLE_HOME/bin/rman target=/ catalog rman/***@rmcat<<EOF
    configure backup optimization on;
    configure default device type to disk;
    configure retention policy to recovery window of 2 days;
    crosscheck backup;
    crosscheck archivelog all;
    delete noprompt force obsolete;
    delete noprompt force expired backup;
    delete noprompt force expired archivelog all;
    configure controlfile autobackup on;
    configure controlfile autobackup format for device type disk to '$BACKUP_LOC/%d_%F_ctl.backup';
    CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT   '$BACKUP_LOC/%U.rman' MAXPIECESIZE 4096 M;
    sql "alter system archive log current";
    show all;
    backup as compressed backupset archivelog all delete all input format "$BACKUP_LOC/%U.alog";
    list recoverable backup;
    EOF
    And the original refresh looked like this:
    >> a step to ftp the backups from the prod server to the test server, and some other housekeeping  <<, then
    cd /backup/dbtest
    echo "connect catalog rman/***@rmcat" >  /backup/dbtest/dbtest_refresh.rman
    echo "connect target sys/*******@dbprod" >> /backup/dbtest/dbtest_refresh.rman
    echo "connect auxiliary /"             >> /backup/dbtest/dbtest_refresh.rman
    echo "run {"                           >> /backup/dbtest/dbtest_refresh.rman
    echo "set until time \"to_date('`date +%Y-%m-%d` 11:55:00','YYYY-MM-DD hh24:mi:ss')\";"  >> /backup/dbtest/dbtest_refresh.rman
    echo "duplicate target database to DBTEST;"  >> /backup/dbtest/dbtest_refresh.rman
    echo "}" >> /backup/dbtest/dbtest_refresh.rman
    So, my mod to the refresh was
    bkup_point=`sqlplus -s rman/***@rmcat <<EOF1
    set echo off verify off feedback off head off pages 0 trimsp on
    select to_char(max(completion_time),'yyyy-mm-dd hh24:mi:ss')
    from rc_backup_set_details
    where db_name='DBPROD'
    and backup_type='D'
    and incremental_level=0
    exit
    EOF1`
    cd /backup/dbtest
    echo "connect catalog rman/***@rmcat"     > /backup/dbtest/dbtest_refresh.rman
    echo "connect target sys/*******@dbprod"    >> /backup/dbtest/dbtest_refresh.rman
    echo "connect auxiliary /"                >> /backup/dbtest/dbtest_refresh.rman
    echo "run {"                              >> /backup/dbtest/dbtest_refresh.rman
    echo "set until time \"to_date('${bkup_point}','YYYY-MM-DD hh24:mi:ss')\";"  >> /backup/dbtest/dbtest_refresh.rman
    echo "duplicate target database to DBTEST;" >> /backup/dbtest/dbtest_refresh.rman
    echo "}"                                  >> /backup/dbtest/dbtest_refresh.rman
    Now the fun begins.
    First, an echo in the refresh script confirmed the ‘bkup_point’:
    =======================================================
    We will restore to 2013-08-25 10:41:38
    =======================================================
    Internally, rman reset the ‘until’ as follows:
    executing command: SET until clause
    Starting Duplicate Db at 25-Aug-2013 15:35:44
    allocated channel: ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: SID=162 device type=DISK
    contents of Memory Script:
       set until scn  45633141350;
    Examining the result of LIST BACKUP (the last step of all of my rman scripts) the full backup shows this:
    BS Key  Type LV Size       Device Type Elapsed Time Completion Time    
    5506664 Full 61.89M     DISK        00:00:03     25-Aug-2013 02:11:32
            BP Key: 5506678   Status: AVAILABLE  Compressed: NO  Tag: TAG20130825T021129
    Piece Name: /u01/backup/dbprod/DBPROD_c-3960114099-20130825-00_ctl.backup
      SPFILE Included: Modification time: 24-Aug-2013 22:33:08
      SPFILE db_unique_name: DBPROD
      Control File Included: Ckp SCN: 45628880455   Ckp time: 25-Aug-2013 02:11:29
    BS Key Type LV Size       Device Type Elapsed Time Completion Time    
    5507388 Incr 0 206.03G    DISK        08:30:00     25-Aug-2013 10:41:30
      List of Datafiles in backup set 5507388
      File LV Type Ckp SCN    Ckp Time             Name
      1    0 Incr 45628880495 25-Aug-2013 02:11:38 +SMALL/dbprod/datafile/system.258.713574775
      >>>>>>>>> snip lengthy list <<<<<<<<<
      74   0 Incr 45628880495 25-Aug-2013 02:11:38 +SMALL/dbprod/event_i2.dbf
      Backup Set Copy #1 of backup set 5507388
      Device Type Elapsed Time Completion Time      Compressed Tag
      DISK        08:30:00     25-Aug-2013 10:41:36 YES        TAG_DBPROD
        List of Backup Pieces for backup set 5507388 Copy #1
        BP Key  Pc# Status      Piece Name
        5507391 1   AVAILABLE   /u01/backup/dbprod/eeoi55iq_1_1.rman
        >>>>>>>>>>>>> snip lengthy list <<<<<<<<<<<
        5507442 52  AVAILABLE   /u01/backup/dbprod/eeoi55iq_52_1.rman
    Notice the slight difference in time between what is reported in the LIST BACKUP and what was reported by my query to the catalog.
    Continuing with the backup list, the second archivelog  backup in the script generated six backupsets.  The fifth set  showed:
    BS Key Size       Device Type Elapsed Time Completion Time    
    5507687 650.19M DISK        00:02:18     25-Aug-2013 10:54:53
            BP Key: 5507694   Status: AVAILABLE  Compressed: YES  Tag: TAG20130825T104156
    Piece Name: /u01/backup/dbprod/ekoi643j_1_1.alog
      List of Archived Logs in backup set 5507687
      Thrd Seq     Low SCN    Low Time             Next SCN   Next Time
      1    1338518 45632944587 25-Aug-2013 05:58:18 45632947563 25-Aug-2013 05:58:20
        >>>>>>>>>>>>> snip lengthy list <<<<<<<<<<<
      1    1338572 45633135750 25-Aug-2013 10:08:21 45633140240 25-Aug-2013 10:08:24
      1    1338573 45633140240 25-Aug-2013 10:08:24 45633141350 25-Aug-2013 10:30:06
      1    1338574 45633141350 25-Aug-2013 10:30:06 45633141705 25-Aug-2013 10:41:51
      1    1338575 45633141705 25-Aug-2013 10:41:51 45633141725 25-Aug-2013 10:41:55
    Notice the availability of the archivelogs including the referenced scn.
    Investigation of the ftp portion of the refresh script confirmed that all backup pieces were copied from the prod server.
    So what am I overlooking?  Having reverted back to the original script to get the refresh completed,

    HemantKChitale wrote:
    So, technically, you only need the database and archivelogs backed up by the database script and not the noon run of the archivelog backup.
    backup as compressed backupset archivelog all delete all input format "$BACKUP_LOC/%U.alog";
    backup as compressed backupset incremental level 0 database tag tag_dbprod;
    sql "alter system archive log current";
    backup as compressed backupset archivelog all delete all input format "$BACKUP_LOC/%U.alog";
    Yet, why does backupset 5 of the noon archivelog backup show archivelogs from 10:30 to 10:40  if they had been deleted by the database backup script which has a delete input ?  It is as if the database backup script did NOT delete the archivelogs and the noon run was the one to backup the archivelogs (again ?)
    No, that is from the morning full backup.  Note the 'Completion Time" of 25-Aug-2013 10:54:53
    However, the error message seems to point to a datafile.  Why would reverting the recovery point to 11:55 make a difference, I wonder.
    As do I.
    Also puzzling to me are the times associated with the completion of the backups.  I don't recall ever having to scrutinize a backup listing this closely so I'm sure it's just a matter of filling in some gaps in my understanding, but I noticed this.  The backup report (list backup;) shows this for the inc 0 backup:
    BS Key  Type LV Size  
    Device Type Elapsed Time Completion Time
    5507388 Incr 0  206.03G
    DISK   
    08:30:00
    25-Aug-2013 10:41:30   ------- NOTE THE COMPLETION TIME ----
      List of Datafiles in backup set 5507388
      File LV Type Ckp SCN
    Ckp Time        
    Name
      1
    0  Incr 45628880495 25-Aug-2013 02:11:38 +SMALL/dbprod/datafile/system.258.713574775
    ------ SNIP ------
      74   0  Incr 45628880495 25-Aug-2013 02:11:38 +SMALL/dbprod/event_i2.dbf
      Backup Set Copy #1 of backup set 5507388
      Device Type Elapsed Time Completion Time 
    Compressed Tag
      DISK   
    08:30:00
    25-Aug-2013 10:41:36 YES   
    TAG_DBPROD   ------- NOTE THE COMPLETION TIME ----
    List of Backup Pieces for backup set 5507388 Copy #1
    BP Key  Pc# Status 
    Piece Name
    5507391 1   AVAILABLE   /u01/backup/dbprod/eeoi55iq_1_1.rman
    ------ SNIP ------
    5507442 52  AVAILABLE   /u01/backup/dbprod/eeoi55iq_52_1.rman
    Then the autobackup of the control file immediatly following:
    BS Key  Type LV Size  
    Device Type Elapsed Time Completion Time
    5507523 Full
    61.89M
    DISK   
    00:00:03
    25-Aug-2013 10:41:47   ------- NOTE THE COMPLETION TIME ----
    BP Key: 5507587   Status: AVAILABLE  Compressed: NO  Tag: TAG20130825T104144
    Piece Name: /u01/backup/dbprod/DBPROD_c-3960114099-20130825-01_ctl.backup
      SPFILE Included: Modification time: 25-Aug-2013 05:57:15
      SPFILE db_unique_name: DBPROD   
      Control File Included: Ckp SCN: 45633141671   Ckp time: 25-Aug-2013 10:41:44
    Then the archivelog backup immediately following (remember, this created a total of 5 backupset, I'm showing number 4)
    BS Key  Size  
    Device Type Elapsed Time Completion Time
    5507687 650.19M
    DISK   
    00:02:18
    25-Aug-2013 10:54:53   ------- NOTE THE COMPLETION TIME ----
    BP Key: 5507694   Status: AVAILABLE  Compressed: YES  Tag: TAG20130825T104156
    Piece Name: /u01/backup/dbprod/ekoi643j_1_1.alog
      List of Archived Logs in backup set 5507687
      Thrd Seq
    Low SCN
    Low Time        
    Next SCN   Next Time
      1
    1338518 45632944587 25-Aug-2013 05:58:18 45632947563 25-Aug-2013 05:58:20
    ------ SNIP ------
      1
    1338572 45633135750 25-Aug-2013 10:08:21 45633140240 25-Aug-2013 10:08:24
      1
    1338573 45633140240 25-Aug-2013 10:08:24 45633141350 25-Aug-2013 10:30:06
      1
    1338574 45633141350 25-Aug-2013 10:30:06 45633141705 25-Aug-2013 10:41:51
      1
    1338575 45633141705 25-Aug-2013 10:41:51 45633141725 25-Aug-2013 10:41:55
    and the controlfile autobackup immediately following:
    BS Key  Type LV Size  
    Device Type Elapsed Time Completion Time
    5507984 Full
    61.89M
    DISK   
    00:00:03
    25-Aug-2013 10:55:07   ------- NOTE THE COMPLETION TIME ----
    BP Key: 5508043   Status: AVAILABLE  Compressed: NO  Tag: TAG20130825T105504
    Piece Name: /u01/backup/dbprod/DBPROD_c-3960114099-20130825-02_ctl.backup
      SPFILE Included: Modification time: 25-Aug-2013 05:57:15
      SPFILE db_unique_name: DBPROD
      Control File Included: Ckp SCN: 45633142131   Ckp time: 25-Aug-2013 10:55:04
    and yet, querying the rman catalog
    SQL> select to_char(max(completion_time),'yyyy-mm-dd hh24:mi:ss')
      2  from rc_backup_set_details
      3  where db_name='DBPROD'
      4  and backup_type='D'
      5  and incremental_level=0
      6  ;
    TO_CHAR(MAX(COMPLET
    2013-08-25 10:41:38
    SQL>
    which doesn't match (to the second) the completion time of either the full backup or the associated controlfile autobackp.
    Hemant K Chitale
    I hope this posts in a readable, understandable manner.  I really struggeled with the 'enhanced editor', which I normally use.  When I pasted in blocks from the rman report, it kept trying to make some sort of table structure out of it .... guess I'll have to follow that up with a question in the Community forum ....

  • How to update host username/password in RMAN - 10g Enterprise manager bkp

    Hi,
    We have RMAN - 10g Enterprise manager scheduled.
    Last week we changed OS - Oracle password.
    Now backups are failing.
    Please let me know where to update Host username/password details in 10g Enterprise manager...

    it is showing sys credentials only.
    I see the following tips in Enterprise manager.
    "Normal credentials are used by Enterprise Manager functions that need operating system access but do not require administrator privileges. Privileged credentials are used by functions that do need administrator privileges. Database functions and jobs that require host credentials do not use the credentials set on this page; they instead use database-specific host credentials set on the Database Preferred Credentials page."
    Please let me know where can i set database-specific host credentials ?
    Message was edited by:
    user589334

Maybe you are looking for

  • ColdFusion 9 suddenly won't consume Web Services...

    Ok, the weirdest problem has cropped up, and I'm hoping someone will have a solution... Suddenly none of the Web Services we're consuming will work from our production server... Our test-server, locally-hosted, will consume all these web-services jus

  • Help Improving CS4 Performance

    I'm using Premiere CS4 on a Macbook with OS X 10.6.2.  I have a new project with one video track and one audio track.  The audio plays fine but the video doesn't.  It isn't anywhere near real-time and often only renders a frame every few seconds.  Ex

  • Sequences operators in Dimensions

    Hi there, I'm wondering how to reset the current value of a sequence created along with a dimension. When I click on the sequence in the design tree I can change the initial value and the increment value but I don't know how to change the current val

  • One instance registered in two rman catalogs is possible?

    Customer wants that one instance be registered in two different rman catalogs. and perform two different backups. There is a sincronism between control file and Catalog, what could mess it up having two catalogs. On the other hand there is the DBID w

  • Firefox is hanging

    Ever since I got a new hard drive, Firefox has been hanging at, as far as I can tell, random intervals. I can be filling out a post, reading the news, whatever. The only thing that reliably (more than 70% of the time) gets it to hang is trying to acc