RMAN script for hot backup (looking for code critic) code attached.

Hello Guru's,
I have been having soem trouble running a successful hot full rman backup nightly.
We max our CPU load whenever our RMAN takes too long and conflicts with a Legato tape backup. I have a development server that I attempted to get a consistent backup time duration that is rock solid as to not conflict with the Legato backup time.
I just found out about duration with RMAN scripts here is my code:
#!/bin/bash
#rman backup script for daily hot whole database backup
at -f /hd1/rman_scripts/rman_backup 0600 tomorrow
rman target/
run {
allocate channel d1 device type disk format '/path/%U';
backup duration 1:00 partial minimize load database filesperset 1;
backup as BACKUPSET tag '%TAG' database;
backup as BACKUPSET tag '%TAG' archivelog all delete all input;
delete noprompt obsolete;
release channel d1;
exit
It completes the backup, but does not use the 1 hour allocated- it only uses 15 minutes on average and creates many files instead of normally three backup files.
Here is the results from querying the v$rman_status table for operation,status,start_time:
RMAN,FAILED, 17-OCT-06 0600
BACKUP,FAILED,17-OCT-06 0600
RMAN,FAILED,17-OCT-06 0606
BACKUP,COMPLETED,17-OCT-06 0606
BACKUP,COMPLETED,17-OCT-06 0606
BACKUP,FAILED,17-OCT-06 0615
RMAN,COMPLETED,17-OCT-06 1513
REPORT,COMPLETED,17-OCT-06 1513
DELETE,COMPLETED,17-OCT-06 1513
However, the timestamps of the backupset files it creates is:
06:15 and not 1513?????????????
RMAN appears to have only taken 15 minutes to create the files, why do I have a completed timestamp from v$rman_status of 1513???
Please advise and comment, I am just learning RMAN.

Try to remove the DURATION option in your script.
Here more details about that part.
http://download-east.oracle.com/docs/cd/B19306_01/backup.102/b14194/rcmsynta009.htm#i1010261
Bye, Aron

Similar Messages

  • Minimum privilege for  hot backup

    Hi,
    Dears,
    which privilege is required to take hot backup i want create user to take hotbackup with minimum privilege .now i take hotbackup with SYS user but this is danger because another department should be take hotbackup.
    best regards
    allahmorad

    Allahmorad wrote:
    Hi,
    Dears,
    which privilege is required to take hot backup i want create user to take hotbackup with minimum privilege .now i take hotbackup with SYS user but this is danger because another department should be take hotbackup.
    best regards
    allahmoradalter database,alter system, create session is enough privileges to make vast changes in your database.So there is not such priveleges.(as fortmann suggested).
    I will suggest you to use the rman for hot backup.
    Hope this help :)
    --neeraj                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Difference betwen RMAN,COLD and HOT backup

    Hi Experts,
    I have faces some interview question .
    what is difference between COLD and HOT backup ?
    what is difference between RMAN, COLD and HOT backup?

    You mean the following,
    Mark the beginning of the online tablespace backup.
    SQL> ALTER TABLESPACE users BEGIN BACKUP;
    Back up the online datafiles of the online tablespace with operating system commands. For UNIX:
    % cp /oracle/oradata/trgt/users01.dbf /d2/users01_'date "+%m_%d_%y"'.dbf
    After backing up the datafiles of the online tablespace, run the SQL statement ALTER TABLESPACE with the END BACKUP option.
    SQL> ALTER TABLESPACE users END BACKUP;
    Please visit here for more details:
    Making User-Managed Backups of Online Read/Write Tablespaces
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/osbackup004.htm#sthref1489
    Adith

  • Shell scripting for hot backup

    Hi,
    can you please give me shell scripting and it's explanation for taking hot backup. and which shell scripts are frequently use in real time.
    thank a lot in advance.

    HAve you ever heard about RMAN ? Much better than reinvent the wheel.
    http://download.oracle.com/docs/cd/E11882_01/backup.112/e10642/rcmquick.htm
    Nicolas.

  • RMAN script advice(Hot full daily backup)

    I am currently running a daily hot full backup (by customers request).
    My code is executed as an "at" job nightly, but I am running into some hits on performance of the server at the time my backup is running. Here is the code I run:
    rman target /
    run {
    backup database plus archivelog;
    delete noprompt obsolete;
    sql 'alter system archive log current';
    exit;
    My RMAN show all;
    retention policy to recovery window of 3 days;
    backup optimization off; #default
    default device type to disk; #default
    controlfile autobackup on;
    controlfile autobackup format for device type disk to '/path/%F';
    device type disk parallelism 1 backup type backupset; #default
    datafile backup copies for device type disk to 1; #default
    archivelog backup copies for device type disk to 1; #default
    channel device type disk format '/path/%U';
    maxsetsize to unlimited; #default
    archivelog deletion policy to none; #default
    snapshot controlfile name to '$ORACLE_HOME/dbs/snapcf_sid.f'; #default
    I do not have a recovery catalog established- customer request also.
    I am running the buggy 10.1.0.2.0 on Linux AS3. My normal backups should only last 1 hour 20 minutes, but it varies between 12 hours to 5 hours to 3 hours- never consistent.
    Any thoughts?

    So CPU performance seems to be inline, but you may want to check I/O during the backup with vmstat.
    You can also query V$BACKUP_ASYNC_IO and look at EFFECTIVE_BYTES_PER_SECOND, WAITS and IO_COUNT.
    During the backup, you can run the following query to monitor RMAN:
    SELECT sid, serial#, context, sofar, totalwork,
         round(sofar/totalwork*100,2) "% Complete"
         FROM v$session_longops
         WHERE opname LIKE 'RMAN%'
         AND opname NOT LIKE '%aggregate%'
         AND totalwork != 0
         AND sofar <> totalwork;If the % Complete doesn't seem to be increasing, you should run the following select to determine what waits exist:
    SELECT sid, seconds_in_wait AS sec_wait, event FROM v$session_wait
         WHERE wait_time = 0
         ORDER BY sid;Even though you are using automated SGA, you may want to specify LARGE_POOL_SIZE = 16m.

  • Environment configuration for Hot Backups

    Hi all,
    1. I am trying to create a hot backup tool based on the read-only Environment strategy ([discussed in a previous thread|http://forums.oracle.com/forums/message.jspa?messageID=3674008#3674008] ).
    Now, leaving aside the EnvironmentConfig.setReadOnly(true), I have found quite a few possible other configuration options in the EnvironmentParams class and I'm wondering if there are some that I should be using.
    Here are a couple of examples:
    - ENV_RECOVERY
    - ENV_RUN_INCOMPRESSOR
    - ENV_RUN_CHECKPOINTER
    - ENV_RUN_CLEANER
    Would it make sense to configure any of these?
    2. After creating a hot backup I have tried to test its state. Basically, the approach was quite simple:
    - open a read-only env on the backup
    - try to access the databases in the env
    My idea is that if the above 2 ops are succeeding then there is a very good chance that the backup is correct.
    Now, while playing with the above configuration options I have noticed that if I'm setting ENV_RECOVERY to false in this test environment, then any attempt to access the databases within results in a DatabaseNotFoundException.
    Can someone help me understand what is happening? (basically, I cannot make a connection between recovery and access to the DBs in the environment)
    Many thanks in advance,
    ./alex
    PS: I've forgot to mention that I'm running a quite old version: 2.1.30
    Edited by: Alex Popescu on Aug 13, 2009 5:50 AM

    ENV_RECOVERY - suppresses running recovery at Environment creation. Internal parameter.
    ENV_RUN_INCOMPRESSOR, ENV_RUN_CHECKPOINTER, ENV_RUN_CLEANER - disable the INCompressor, Checkpointer, and Cleaner Daemon threads.
    You should not need to adjust any of these parameters for your DbBackup utility. In fact, ENV_RECOVERY is an "internal use only" parameter.
    PS: I've forgot to mention that I'm running a quite old version: 2.1.30
    I'm sorry to be the bearer of bad news, but as my colleague Mark Hayes stressed in a previous post, you really need to upgrade from 2.1.30 to 3.3.latest. It is highly probable that you will eventually run into bugs with 2.x and we are unlikely to (1) be willing to diagnose them, and (2) fix them. As Mark pointed out, 2.1 is 3.5 years old and the product has had a lot of improvements in that time. We are happy to answer questions on this forum relating to the latest major release, but dealing with old and crusty code is certainly going to be well below our allowable priority level.
    Charles Lamb

  • Metalink Ids for hot backup clonning

    Hi i want to perform hot backup clonning in R12 single node to single node and single node to multi node,
    Please tell me the metalink ids

    Hi,
    Please see these docs.
    Cloning Oracle Application 11i /R12 with Rapid Clone - Database (9i/10g/11g) Using Hot Backup on Open Database [ID 760772.1
    Cloning E-Business Suite Using Hot Backup for Minimal Downtime of Source Environment. [ID 362473.1]
    Rapid Clone Documentation Resources, Release 11i and 12 [ID 799735.1]
    RMAN Guides
    http://www.oracle.com/pls/db112/homepage
    Thanks,
    Hussein

  • I am looking for a backup drive for my macbook pro, any suggestions?

    I have a macbook pro and I am looking for a backup drive.  There are so many out there and I would like suggestions for which one to purchase.  Thanks!

    Pretty much any drive will work, but for a laptop, you might like to get a portable drive (doesn't require that you connect it to power) with USB3. Thunderbolt drives are also available, but they're more expensive and no faster than USB3 for a single hard drive.
    I personally like the Lacie rugged series: http://store.apple.com/us/product/H9377ZM/A/lacie-1tb-rugged-hard-drive-triple-u sb-30-5400-rpm?fnode=5f
    If you shop around you should be able to get it a little cheaper than Apple's prices.
    Matt

  • Why archivelog mode is mandatory for hot backups.

    Hi,
    Why the database should be put in archivelog mode when we take hot backups. What happens actually. Why can't we put in noarchivelog mode and take hot backups?

    Suppose you are not using RMAN then you must put your tablespaces in backup mode. Otherwise the backup you can take will be unrecoverable.
    In order to recover from a Hot Backup you have to do followings
    - Restore your Hot Backup
    - Recover the database - here, the archive log files are important
    How does Oracle know what has to be recovered from archivelogs?It looks at the SCN.
    If you never put your tablespaces in backup mode then SCN would not be frozen and Oracle wouldn't know what has to be recovered.
    Talip Hakan Ozturk
    http://taliphakanozturken.wordpress.com/

  • Azure for hot backup

    Hi guys,
    I can't seem to search this scenario.
    Can Azure be used as a Hot Backup? An on-prem server is backed up on the the Azure Cloud. When some disaster befalls the on prem server, can we switch to the cloud server?
    Most document just discusses the backup and restore capabilities of Azure but not as hot backup capabilities.
    Thanks,
    Jojo

    Hi Jojo,
    You can backup your op-promise server on Azure Cloud. Please refer to this page about how to configure it:
    http://blogs.technet.com/b/systemcenter/archive/2014/05/08/using-and-monitoring-azure-backup-for-windows-server.aspx
    But for Azure Backup how to work, I suggest you can post this issue on Azure back up forum for more details.
    https://social.msdn.microsoft.com/forums/azure/en-US/home?forum=windowsazureonlinebackup
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Options for Seagate Backup Plus for Mac/Windows

    I have a new Mac-mini (my first Mac since my original Mac 128), and just got a 3TB Seagate Backup Plus.  It's so new, I haven't even read up on Time Macine though I assume that's the way to go.
    I originally had in mind partitioning the Seagate with one HFS+ for the Mac and one NTFS for my Windows laptop (Win7) and old Windows desktop (XP).  The latter is mainly for storing files in a place where it will be convenient to use them on the Mac.  But with all the threads about partition and other errors, I'm wondering if that's not so wise. 
    The obvious alternatives are leave the drive as NTFS and find something other than Time Machine for backing up the Mac - or format it as HFS+, use TM to backup the Mac, and install HFS+ drivers at least on my laptop. 
    I usually like to try and research these sorts of questions directly, but with the learning curve moving to the Mac, and all sorts of other things, it would take me to next year to find my ideal solution.  So for now, I'm just looking for suggestions on a backup strategy for the Mac that would, in addition to backups, leave space for manually archiving Mac files as well as exploiting the spare space on the external drive for some Windows purposes.  (Not much videos, mostly photos, finances, and eventually my main reason for getting the Mac, ios development.)
    Thanks for any suggestions.
    Gary

    The following troubleshooter from Seagate may help: http://knowledge.seagate.com/articles/en_US/FAQ/213059en

  • Any suggestions for what to look for in a good production monitor?

    I'm in the market for a production monitor and I'm looking at B&H's online catalogue now. Any tips on what to look for and if anyone has any recommendations or favorites? Thanks.

    it would help if you could determine a budget and then shop for models within or slightly above that budget.
    basically, some necessary items are switchable aspect ratio, underscan/overscan and then some sort of blue check for proper chroma and phase calibration. some monitors have a gray scale blue check which i think completely blows. it's better to have a monitor with viewable red, blue and green guns as the blue gun is more accurate for calibration than a grayscale blue check feature. also, there are other diagnostic functions that are viewable by using the red or green guns to view color bars.
    some other nice features to have are horizontal/vertical delay, sdi inputs, hd-sdi inputs.
    it's been mentioned in the last larry jordan newsletter than the crt monitor is going the way of the dinosaur and now sony and panasonic are marketing lcd products only. i think this is a very sad trend. as a freelance video operator/camera shader, i am of the opinion that lcd monitors are horrible; they hurt my eyes and the color rendition isn't as accurate as a crt. leitch is now manufacturing an lcd scope which is just terrible to behold. the black area of the vectorscope is a huge, amorphous blob of white light that shows no signal detail whatsoever.
    i don't know what to make of larry's statement as a quick check of the sony business website reveals only bvm crt's in their product lineup, no more pvm series. i haven't looked at the panasonic product catalog yet.
    although the sony pvm L5 that shane mentioned is a quality product, to my eyes, i would get an ikegami monitor but you'll find that the superior imaging of the ikegami also has a superior price point.
    one last point, don't buy an used monitor from ebay, you don't know where it's been or how it's been treated. give jvc monitors a fair shake as well, not a bad product for the price, no matter what their reputation is.
    good luck.

  • Thanks for helping me look for an answer. HD Codec for Quick Time?

    Thanks everybody who sent me ideas on how to play a .mov Quick Time Movie Codec HDV 720p50, 1280x720. It's for playing on TV, as well as Mac and PC. Someone suggested H264, but I thought this is for the Internet, not for HD quality 1280x720?
    Could it be that the Mac and PC people who can't play it don't have a strong enough video card in their computer? I'm looking at various answers.
    I appreciate any help gratefully.
    PS: I didn't see Helpful above the window, only Yes question answered and No.

    if you can't play an HDV file on your computer, it most likely means you don't have the HDV codec on your computer.
    It's a free download - google it and you can find it. You will have to drop the codec into your Quicktime library - it's all explained in the download. I've installed it for several people and it solves that problem right away.
    pJ

  • Task Privileges for Existing Users - Looking for a global update solution

    After some reading I understand that if you set the task privileges for the PUBLIC user in the Privileges section of Discoverer Administrator (10g), any new user created in the system will pick up the privileges you have assigned to the PUBLIC user.
    I currently have 4000+ users who have access to Discoverer Plus and the ability to create/edit queries. I want to limit who can access Discoverer Plus functionality to approximately 150 users.
    I have changed my PUBLIC user to NOT have privileges but this will only affect new users. Is there any way to restrict 4000+ users without having to go through each user individually and set the privileges.
    I am looking for a global update solution. I am wondering if this can be done through the back-end.

    Hi Mezzobella
    If you change the rights for the public user then other users, who have not been manually adjusted in any way, will automatically pick up the public rights. Therefore, if you have a lot of users that are not changing this means that at some point in their life you will have clicked OK or Apply on the screen with a user displayed. This now assigns the rights to that user as opposed to inheriting them from the public user.
    What you are describing is the perfect reason why you should not administer Discoverer using user accounts but to use roles or responsibilities instead.
    In your case you are now somewhat stuck. The programatic way to revoke these rights is to drop rows from the EUL5_ACCESS_PRIVS table but this could take longer than doing inside Discoverer. Basically, when a user has been granted privileges one row per privilege is inserted into this table. The column AP_EU_ID contains the ID of the user. The column GP_APP_ID is the one that tells you what privilege a user has. Here is a list of the privileges:
    1000 Desktop / Plus Privilege (U)
    1001 Create / Edit Query (U)
    1002 Item Drill (U)
    1003 Drill Out (U)
    1004 Grant Workbook (aka Sharing) (U)
    1005 Collect Query Statistics (U)
    1006 Admin Privilege (A)
    1007 Set Privilege (A)
    1008 Create / Edit Business Area (A)
    1009 Format Business Area (A)
    1010 Create / Edit Summaries (A)
    1011 Not used as far as can be determined
    1012 Schedule (U)
    1013 User is never required to schedule workbooks (U)
    1014 Save workbooks to database (U)
    1015 Managed scheduled workbooks (A)
    1016 This is an apps mode EUL
    1017 This is the user's assigned language
    1018 User is allowed to change password
    1019 to 1023 Not used as far as can be determined
    1024 Create Link (U)
    Note: A = Admin privilege, U = User privilege
    Theoretically you could manually delete rows from this table and that will revoke the rights. In reality, Oracle do not like it when inexperienced users manually the EUL as you could corrupt it. Therefore, any manual updates must be done with utmost caution after making sure you back up or have a copy of the table you will be updating - just in case.
    Try running this query to see the content:
    SELECT DECODE( AP_EU_ID, 104198, 'Viewer', 103697, 'Plus', 'Other' ) "Who" , AP_ID, AP_TYPE, AP_EU_ID, AP_PRIV_LEVEL, GP_APP_ID, GBA_BA_ID, GD_DOC_ID, AP_ELEMENT_STATE
    FROM EUL5_ACCESS_PRIVS
    Best wishes
    Michael

  • Job Board: Looking for Job? Looking for a BizTalk specialist?

    Friend of mine was looking for a BizTalk professional recently and it was painful process because of lack of resources.
    So let's help each other on job market :)
    For BizTalk professionals: You can place here your information, if you are on market now. Please, use the format below:
    Position:  (Entry / Middle / Sr. level ; Architect / Team Lead / Developer / Administrator; etc)
    BizTalk Server experience: _ years
    Good at: _________________
    Expert at: ________________
    LinkedIn profile link.
    Please do not place here your resume :) It is too big for forums.
    This is only for individuals.
    If you are looking for a BizTalk professional, please, place the job description in this format:
    Position (Entry / Middle / Sr. level ; Architect / Team Lead / Developer / Administrator; etc)
    Location
    Duration
    Contact email or LinkedIn profile
    I will monitor this thread and remove all unrelated posts.
    Thanks!
    Leonid Ganeline [BizTalk MVP] BizTalk Development Architecture

    Hi Leonid, We have good and experience team on Biztalk and worked on Middleware tool AMTrix.
    Please find our details:-
    iVision Software is a 9 year old software development organization with expertise in Biztalk among other technologies. We have worked for clients like GE in various geographies like USA, Scandinavia
    and India doing both EAI and B2B integrations. Our people work closely with their client counterparts taking care of their business needs utilizing Agile methodologies. We provide an optimal combination of people who are experts in their field and in working
    offshore with onsite business teams resulting in great quality service at low prices. Please find below a brief description of our capabilities.
    The iVision BizTalk Developer Team have the following competencies:
    Developing xml schema, flat file schema and EDI Schemas.
    Developing simple and complex maps as per the requirement.
    Implementing  various Integration patterns in BizTalk.
    Implementing various design patterns in Orchestration.
    Comfortable in handling Exceptions.
    Working on BRE and BAM.
    Creating C# helper class, custom functoid and custom pipeline components whenever required .
    Proficient with Visual studio , SQL Server .
    Working with following adapters : FILE, FTP,SMTP, WCF-SQL, SQL, SOAP, WCF-custom
    Custom XSLT
    Packaging and deploying application.
    Expertise in EDI X12 , EDIFACT and major XML standards(cXML, OIOXML,UBL,Svefaktura,Finvoice,xCBL etc).
    Proficient in creating EDI Agreements and Trading Partner Profile.
    For further discussion, please drop email to me at [email protected] or skype me at atul.kumar651984
    Regards,

Maybe you are looking for