Schedule Hot backup via OEM

Hello all,
We have a realtively small system running Oracle 10G on Windows 2003 O/S. I've scheduled a full offiline (cold) backup of the whole db to run once weekly via OEM. Every night we run a script to do a 'logical' backup by EXPORTing the 2 main schemas in the DB out to .DMP files. However this now may not be enough to satisfy DB recovery requirements.
Is there an easy way to schedule a 'Hot' backup via OEM, that could replace the EXPORT scripts mentioned above, or would we have to write an RMAN script to do this ?? The requirement is really to allow the database to be updateable whilst any daily backup is running. I realise that the DB needs to be in ARCHIVELOG mode for anything like this to work.
Any advice would be greatly appreciated.
Thanks,
Shaun.

hi,
on the OEM main page, click on targets, you should see your databse there. click on the database and then on the maintenance tab.
from here you can schedule jobs and you have the option to schedule a online rman backup of your database. However, to do an online backup your database needs to have archiving turned on. Is this the case as you currently carry out offline backups which might indicate that archiving is turned off.
regards
Alan
Edited by: alanm on Sep 5, 2008 11:47 AM

Similar Messages

  • User Managed Hot Backup via Sql

    Hi being a bit old school - I am trying to understand the steps required for a Hotbackup managed via Sql ( sorry all RMAN fans ! )
    I understand that I can backup each tablespace in turn ( via the necessary ALTER TABLESPACE <x> BEGIN BACKUP and then take it out of backup)
    I presume also that I simply take a backup of my control file ( wither as binary or as trace if need be )
    I am also guessing that you do not backup the Redo Logs ( since you will reset these on any recovery anyway )
    The bit I am not sure about is the Undo Tablespace - can it be backup in eactly the same way as any of the other tablespaces ?
    Are there any other components that I need to backup ( apart from archive logs )
    thanks,
    Jim

    EdStevens wrote:
    Jim Thompson wrote:
    Hi being a bit old school - I am trying to understand the steps required for a Hotbackup managed via Sql ( sorry all RMAN fans ! )
    I understand that I can backup each tablespace in turn ( via the necessary ALTER TABLESPACE <x> BEGIN BACKUP and then take it out of backup)
    I presume also that I simply take a backup of my control file ( wither as binary or as trace if need be )
    I am also guessing that you do not backup the Redo Logs ( since you will reset these on any recovery anyway )
    The bit I am not sure about is the Undo Tablespace - can it be backup in eactly the same way as any of the other tablespaces ?
    Are there any other components that I need to backup ( apart from archive logs )
    thanks,
    JimI'm old school too. Been in this business over 30 years. Still prefer a command line interface.Me too.
    >
    But c'mon .... user managed backups? How about dictionary managed tablespaces? initialization parameter files instead of spfiles? Ok, I'll give you the DMT (old skool hippies should be lol now). But user managed backups do have their place, and seriously, I think plain old parameter files are in many cases better than strange binary things that need special software to manipulate and require you to remember arbitrary things. I cuss at regedit every time...
    >
    What is the business or technical justification for not going with rman?
    I can still remember my grandfather arguing with the guy at the tire store, insisting they put inner tubes in those "newfangled" tubeless tires . . .My last lawn tractor had much better luck with tubed replacement tires than tubeless with puncture sealant. Naturally as soon as I bought a new tractor I got a puncture, it doesn't come with sealant. Anyone who's ever struggled with a bead that doesn't set in without a high pressure air pump will appreciate grandpa's point of view. As well as sew-ups.

  • Scheduled backups on oem disappear after hardware crash

    I am using OEM12c 12.1.0.3 to manage 12 databases (11.2.0.3 and 11.2.0.4) on several suse11 linux machines.
    We schedule the backups thru oem (availability->backup&recovery->schedule backups)
    Last friday the hardware crashed, and once we got everything backup and running we noticed all of the scheduled backups
    were missing and we had to reschedule everything. Has anyone seen this behavior before or know how to prevent the schedules from disappearing,.
    It's a pain to have to reschedule everything.

    What had to be restored?  OMS/Repository? Or target databases?  
    If you look in EM at Enterprise -> Jobs -> Job Activity, be sure to go to advanced search, look for all Scheduled and see if they're there?
    If they were a group backup, might be scheduled as a Deployment Procedure instead.

  • Consistent hot backup possible

    Is a consistent hot backup possible?
    I would like to perform hot backups while the database is in basically a read only state. I am currently using Oracle recommended backups via OEM, for example.
    run {
    allocate channel oem_disk_backup device type disk;
    recover copy of database with tag 'ORA$OEM_LEVEL_0';
    backup incremental level 1 cumulative copies=1 for recover of copy with tag 'ORA$OEM_LEVEL_0' database;
    release channel oem_disk_backup;
    allocate channel oem_sbt_backup1 type 'SBT_TAPE' format '%U';
    backup recovery area;
    Would executing the sql command "alter database begin backup;" before running the above RMAN script accomplish this task? Then off course when completed execute sql "alter database end backup;".
    My basic concern is this type of RMAN hot backup usable in a disaster situation, i.e recreated on another server from tape backup.
    I am open to any other ideas.
    Thanks for your help in advance.
    Ed - Wasilla, Alaska
    Edited by: evankrevelen on Sep 11, 2008 10:18 PM

    Thanks everyone who replied to this thread.
    Just to clarify my complete backup strategy, there are two RMAN scripts run on daily and weekly basis. The daily does pickup the archivelogs. I had shown the weekly when first opening this thread. Here is the daily.
    run {
    allocate channel oem_disk_backup device type disk;
    recover copy of database with tag 'ORA$OEM_LEVEL_0';
    backup incremental level 1 cumulative copies=1 for recover of copy with tag 'ORA$OEM_LEVEL_0' database;
    release channel oem_disk_backup;
    allocate channel oem_sbt_backup1 type 'SBT_TAPE' format '%U';
    backup archivelog all not backed up;
    backup backupset all not backed up since time 'SYSDATE-1';
    My question now is what RMAN does in the increments. It appears to be updating the original level 0 copies of datafiles with changed blocks only. Is the new copy of the datafile now a level 0 type file?
    Here is a transcript from one of the daily backups.
    Starting recover at 11-SEP-08
    channel oem_disk_backup: starting incremental datafile backupset restore
    channel oem_disk_backup: specifying datafile copies to recover
    recovering datafile copy fno=00001 name=+DEVRVYG1/landesk/datafile/system.2576.616107783
    recovering datafile copy fno=00002 name=+DEVRVYG1/landesk/datafile/undotbs1.2574.616107865
    recovering datafile copy fno=00003 name=+DEVRVYG1/landesk/datafile/sysaux.2575.616107829
    recovering datafile copy fno=00004 name=+DEVRVYG1/landesk/datafile/users.2572.616107871
    recovering datafile copy fno=00005 name=+DEVRVYG1/landesk/datafile/landesk.2914.616107643
    channel oem_disk_backup: reading from backup piece +DEVRVYG1/landesk/backupset/2008_09_10/nnndn1_tag20080910t220150_0.12330.665100189
    channel oem_disk_backup: restored backup piece 1
    piece handle=+DEVRVYG1/landesk/backupset/2008_09_10/nnndn1_tag20080910t220150_0.12330.665100189 tag=TAG20080910T220150
    channel oem_disk_backup: restore complete, elapsed time: 00:05:16
    Finished recover at 11-SEP-08
    Starting backup at 11-SEP-08
    channel oem_disk_backup: starting incremental level 1 datafile backupset
    channel oem_disk_backup: specifying datafile(s) in backupset
    input datafile fno=00005 name=+DEVG1/landesk/datafile/landesk.374.614072207
    input datafile fno=00003 name=+DEVG1/landesk/datafile/sysaux.384.614002027
    input datafile fno=00001 name=+DEVG1/landesk/datafile/system.383.614002025
    input datafile fno=00002 name=+DEVG1/landesk/datafile/undotbs1.385.614002027
    input datafile fno=00004 name=+DEVG1/landesk/datafile/users.386.614002027
    channel oem_disk_backup: starting piece 1 at 11-SEP-08
    channel oem_disk_backup: finished piece 1 at 11-SEP-08
    piece handle=+DEVRVYG1/landesk/backupset/2008_09_11/nnndn1_tag20080911t220708_0.12999.665186835 tag=TAG20080911T220708 comment=NONE
    channel oem_disk_backup: backup set complete, elapsed time: 00:02:26
    channel oem_disk_backup: starting incremental level 1 datafile backupset
    channel oem_disk_backup: specifying datafile(s) in backupset
    including current control file in backupset
    including current SPFILE in backupset
    channel oem_disk_backup: starting piece 1 at 11-SEP-08
    channel oem_disk_backup: finished piece 1 at 11-SEP-08
    piece handle=+DEVRVYG1/landesk/backupset/2008_09_11/ncsnn1_tag20080911t220708_0.2301.665186983 tag=TAG20080911T220708 comment=NONE
    channel oem_disk_backup: backup set complete, elapsed time: 00:00:21
    Finished backup at 11-SEP-08
    It appears to be updating the previous copy with updated blocks thus rolling forward the datafile copy to a new level 0 copy.
    Then to restore from the backup RMAN would first use this new copy of the datafile and then apply any archivelogs to them to bring the database to the point in time the incremental backup was taken.
    Are these assumptions true?
    Thanks for your help,
    ED

  • ALLOnl+LOG Backup via DB13 failed

    Hi!
    I have planned each week a ALL Online Backup with LOG.
    When the action has been performed the backup failed and I get the following error:
    BR0301W SQL error -1031 at location saplikey_read-1, SQL statement:
    'OPEN curs_122 CURSOR FOR'
    'SELECT SELECT LIKEY, VALUE FROM SAP_SAPLIKEY ORDER BY LIKEY'
    ORA-01031: insufficient privileges
    BR1301W Error message from likeywlib: likey_init: likeyche_fill_buffer: couldn't get the list of all records from the persistence.
    BR1302W Initialization of license key library likeywlib failed, return code 1
    BR1304W Checking SAP license failed at location BrLicCheck-104
    BR0602W No valid SAP license found - please contact SAP
    I checked via tcode SLICENSE and detected that a valid SAP license exist.
    Question:
    How can I solve this problem?
    Thank you very much!
    regards
    Holger

    Hello Holger,
    before you can perform a backup the BR*Tools are checking the valid licenses. The PUBLIC synonym SAP_SAPLIKEY is used for that.
    Your user that is performing this action is not allowed to query the PUBLIC synonym (and the corresponding base table). This can have different reasons (wrong synonym, sapconn or sapdba role script was not executed, etc.).
    Normally the BR*Tools are run under <SID>adm, if you schedule the backup via DB13. So please check all these stuff (#1028220, #834917, #480266).
    I also have investigated a topic like that with another user in the forum... please also check this thread:
    Re: DB13: ORA-01031: insufficient privileges
    Regards
    Stefan

  • HOT Backups for smaller databases

    Should we schedule hot backups for small databases? the database size is around 1.5 GB. We have already scheduled daily FULL DB Export.
    The database is Oracle 8i.

    RMAN> run {
    2> allocate channel ch1 type disk format 'e:\rman_backup\backup%d_DB_%u_%p';
    3> backup database;
    4> backup archivelog all;
    5> release channel ch1;
    6> }
    RMAN-03022: compiling command: allocate
    RMAN-03026: error recovery releasing channel resources
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure during compilation of command
    RMAN-03013: command type: allocate
    RMAN-06172: not connected to recovery catalog database
    RMAN>

  • Which is better for User Managed Hot backup - running in cron or oracle scheduler

    We are taking hot backup in our environment by using sql script of just begin backup, host copy and end backup
    Can we use this script to be put in cron for weekly two times or to use oracle scheduler .
    Which is better option and why?

    The answer to your question depens on your condition. Do you have more experienced Unix admin or DBA?
    From my point of view cron is better becuase all you need is SQL*Plus utility and shell script:
    export ORACLE_SID=...
    sqlplus <username>/<password> as sysdba <<EOF
    ALTER TABLESPACE .. BEGIN BACKUP;
    host copy ..
    ALTER TABLESPACE .. END BACKUP;
    EXIT
    EOF

  • Hot backup full disk job Scheduled failed

    Hello,
    We are facing the issue with hot backup job. Can some one help me on this how to fix.
    Here is the error log message..
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of backup command on c1 channel at 03/20/2014 01:25:20
    ORA-19510: failed to set size of 4985610 blocks for file "+DB_FLASH_1/##########"(block size=8192)
    ORA-17505: ksfdrsz:1 Failed to resize file to size 4985610 blocks
    ORA-15041: diskgroup space exhausted
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of allocate command on c1 channel at 03/19/2014  23:00:01
    ORA-19554: error allocating device, device type: SBT_TAPE, device name:
    ORA-27211: Failed to load Media Management Library
    Additional information: 2

    Hi,
    It doesn't look like a Scheduler issue, but an RMAN one instead.
    According to the error, the diskgroup space is exhausted, so perhaps you're running out of space on your disk?

  • Need help for DB backup through OEM 11g grid

    I need to know how to schedule the hot backup of whole DB using OEM 11g grid.
    In our system there is a backup running for DB (10gr2). It is not scheduled through jobs.
    I am not able to find this scheduled db backup information from OEM.
    Can anyone guide me how to check the current backup schedules and backup script ?
    Is there any good document for this ?

    Hi Dhaval,
    You may look out option for restore backup from production and restore the same on QAS.
    Refer SAP note
    683447
    SAP Tools for MS SQL Server
    Which shall help you with post restore steps on the database.
    Once DB and SAP is up you may perform generic post restore steps like
    - STMS re-configuration
    - Adjusting profiles
    - Executing BDLS
    - Importing RFCs and user master ( if exported before the restore)
    - Adjusting Partner profiles
    - Configuring backup
    - Apply SAP license
    Above are just a few of them to name. There could be many more as per customer landscape.
    Regards,
    Deepak Kori

  • Errors in Offline Backup via DB13 SAP & Oracle on Linux

    OS: Linux Database : Oracle Systems Affected : Production & Disaster Recovery Server
    Hi
    We have offline backup scheduled every friday via SAP the backup runs fine & copies all the files in the backup directory but when i go see the backup logs in DB 14 i see the Offline Backup ending with Error Code 0005 & when i see the Detail logs i see following in red
    BR0278E Command output of '/oracle/UHP/102_64/bin/sqlplus /nolog < /oracle/UHP/sapbackup/.beelhrfo.spi':
    BR0279E Return code from '/oracle/UHP/102_64/bin/sqlplus /nolog < /oracle/UHP/sapbackup/.beelhrfo.spi': 0
    BR0302E SQLPLUS call for database instance UHP failed
    BR0306E Start and open of database instance UHP failed
    Also if i check the BRARCHIVE i see them ending with following errors in Detail Log
    BR0278E Command output of 'LANG=C cd /oracle/UHP/sapreorg && LANG=C cp spaceUHP.log paramUHP.log /backup/UHPARCH//UHP':
    cp: cannot create regular file `/backup/UHPARCH//UHP/spaceUHP.log': Permission denied
    cp: cannot create regular file `/backup/UHPARCH//UHP/paramUHP.log': Permission denied
    BR0280I BRARCHIVE time stamp: 2010-10-30 23.02.40
    BR0279E Return code from 'LANG=C cd /oracle/UHP/sapreorg && LANG=C cp spaceUHP.log paramUHP.log /backup/UHPARCH//UHP': 1
    BR0222E Copying space_log to/from /backup/UHPARCH//UHP failed due to previous errors
    BR0202I Saving /oracle/UHP/saparch/aeelofvf.svd
    BR0203I to /backup/UHPARCH//UHP ...
    BR0202I Saving /oracle/UHP/saparch/archUHP.log
    BR0203I to /backup/UHPARCH//UHP ...
    BR0278E Command output of 'LANG=C cp /oracle/UHP/saparch/archUHP.log /backup/UHPARCH//UHP':
    cp: cannot create regular file `/backup/UHPARCH//UHP/archUHP.log': Permission denied
    BR0280I BRARCHIVE time stamp: 2010-10-30 23.02.40
    BR0279E Return code from 'LANG=C cp /oracle/UHP/saparch/archUHP.log /backup/UHPARCH//UHP': 1
    BR0222E Copying /oracle/UHP/saparch/archUHP.log to/from /backup/UHPARCH//UHP failed due to previous errors
    Please also note that we have a Disaster Recovery Server too & the above mentioned errors are in our (Production )Primary Database & once this backu finished the DR Server stops getting any log files, this happens only when this offline backup on every friday runs,
    Issues
    The backup ends with errors although the backup file is generated & all data is copied
    DR Server dont get redo log files after this offline backup on every friday

    for the Cp errors i will see the permissions in backup/UHP ( this error is happening in online backup ) my main concern is the error occured in offline backup as it is somehow connected with our DR SERVER NOT GETTING THE LOG FILES EVEN AFTER THE SYSTEM IS UP ( yes if the primary is down no logs will be shipped to standby i know that but even after the primary is up after a offline backup via SAP via DB 13 the standby dont get any log files unless i restart the database and SAP )
    So the error in the offline backup mentioned above in my post occurred at 29 OCT 15: 45  20
    BR0302E SQLPLUS call for database instance UHP failed
    BR0306E Start and open of database instance UHP failed
    after this my primary database comes up & sap starts but the DR server dont get any logs & also the backup logs show the above errors in red
    Given below is the text from Oracle alert file for the same time duration when the system tries to start the database & the above mentioned error comes up in opening the database time Stamp : OCT 29 15: 45 20
    Deprecated system parameters with specified values:
    log_archive_start
    End of deprecated system parameter listing
    This is the only oracle alert log errors i can find relevant to database instance errors from DB 14
    moreover in the alert file it also starts the data broker service relevant to i guess DR server in that all seems fine it starts everything then it gives this error & then keeps giving errors ( from oracle alert log file )
    Error 12154 received logging on to the standby
    Fri Oct 29 15:45:37 2010
    Errors in file /oracle/UHP/saptrace/background/uhp_arc0_12086.trc:
    ORA-12154: TNS:could not resolve the connect identifier specified
    FAL[server, ARC0]: Error 12154 creating remote archivelog file 'UHR'
    FAL[server, ARC0]: FAL archive failed, see trace file.
    Fri Oct 29 15:45:37 2010
    Errors in file /oracle/UHP/saptrace/background/uhp_arc0_12086.trc:
    ORA-16055: FAL request rejected
    ARCH: FAL archive failed. Archiver continuing
    Fri Oct 29 15:45:37 2010
    ORACLE Instance UHP - Archival Error. Archiver continuing
    & then keep on saying given below error in oracle alert log file
    Fri Oct 29 15:51:32 2010
    Errors in file /oracle/UHP/saptrace/background/uhp_arc8_12102.trc:
    ORA-12154: TNS:could not resolve the connect identifier specified
    PING[ARC8]: Heartbeat failed to connect to standby 'UHR'. Error is 12154.
    Thanks for your help again i would appreciate a little more assistance on this.
    Edited by: Prashant Shandilya on Oct 31, 2010 12:18 PM

  • Backup via Cron job - SQL ERROR: ORA-01031: insufficient privileges

    Hi,
    We are Using Oracle RAC - linux - SAP EP . We have scheduled online backup through crontab .
    Always we are getting below error when the backup job runs via crontab
    ================
    BR0278E Command output of '/usr/sap/EP1/SYS/exe/run/brtools -f printcmd -U /oracle/EP1/sapbackup/.begpjvay.003 'archive log list;' 'exit;' | /oracle/EP1/102_6
    4/bin/sqlplus /nolog':
    SQL*Plus: Release 10.2.0.5.0
    Copyright (c) 1982, 2010, Oracle.  All Rights Reserved.
    SQL> ERROR:
    ORA-01031: insufficient privileges
    SQL> ORA-01012: not logged on
    SQL>
    BR0280I BRBACKUP time stamp: 2011-08-22 02.00.12
    BR0279E Return code from '/usr/sap/EP1/SYS/exe/run/brtools -f printcmd -U /oracle/EP1/sapbackup/.begpjvay.003 'archive log list;' 'exit;' | /oracle/EP1/102_64
    /bin/sqlplus /nolog': 0
    BR0302E SQLPLUS call for database instance EP12 failed
    =====================
    whereas if i trigger the same commend
    brbackup -u / -c force -t online -m all -p <init*.sap> manually it end successfully.
    Kindly can anyone help over below issue.
    Regards,
    Ayyappan

    Hi Ayyappan,
    Thanks in Advance,
    We are also having same scenario with RAC and Linux, we are trying to configure backup and getting the same error could you please guide me how u resolved the issue, please help....
    Regards,
    Sumeesh

  • RMAN Hot Backup Errors.

    Hello Everyone
    I would appreciate if someone can assist me in resolving a problem. Starting from December of last year, we were able to take daily hot backups of our ORACLE 10g database server successfully with no issues. Presently we have been experiencing a number of errors in the logs, even though the script has not been changed. The main errors are as follows:
    RMAN-03009: failure of backup command on t1 channel at 05/08/2007 00:01:19
    ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
    In investigating the errors, it seemed to be associated to the tablespace not being put offline or backup mode cleanly, I assumed this was due to persons working later, so I scheduled the backup for a later time but I still got the same error in the log the following day. Can you assist me in resolving this problem please?

    Is the db running in ARCH mode?
    Error:     ORA 19602
    Text:     cannot backup or copy active file in NOARCHIVELOG mode
    Cause:     You tried to copy or backup a file that was not closed cleanly, and
         the database was in NOARCHIVELOG mode. This is not allowed because when
         restored, the file will require redo application before it is usable,
         and redo is not currently being saved beyond the contents of the online
         redo logs.
    Action:     Take the tablespace offline clean or close the database and retry the
         copy or backup. Take the tablespace offline clean or close the database
         and retry

  • Hot backup related question

    Hi all,
    i have a question related to hot backup
    If we take a hot backup ie. alter tablespace tbs begin backup....then it freezed the datafile and all the entries happen to the redo log files.....if we a two log groups and and hot backup happens to continue from BOD(beginning of day) to EOD,then there might be a situation in which log switch happen it means it will archive the same,so how the datafile will recover the same...
    here it freezed the whole datafile or only datafile header.....

    user00726 wrote:
    Hi all,
    i have a question related to hot backup
    If we take a hot backup ie. alter tablespace tbs begin backup....then it freezed the datafile and all the entries happen to the redo log files.....if we a two log groups and and hot backup happens to continue from BOD(beginning of day) to EOD,then there might be a situation in which log switch happen it means it will archive the same,so how the datafile will recover the same...
    here it freezed the whole datafile or only datafile header.....The crux of the hot backup done via manual cp command is that datafile is completely operational. So all the objects which can undergo changes like tables and all , they keep on working as like they used to do without the back up is on. As all the changed vectors are logged in the redo log files , so the same is true in this case also when the datafile goes into the backup mode. Oracle just freezes the header of teh datafile and freezes the SCN at that point for it to know where to start the recovery from in the order of a crash. When the file is put into the backup mode, the header is freezed and the checkpoint is done before putting the file into the backup mode. Makes sense as with the checkpointing , the related buffers for that file are put into the file , ensuring that the file now is a self consistent file.
    There is no checkpoint that happens with the end backup though. The file is made in sync with the rest of the database files when the next full, system level checkopint will happen. All the changes required to make the file get in sync with the rest of the database is already logged in teh redo and archived files. So in the case of a crash, oracle just applies those to the respective file and the recovery is complete. So there won't be any impact on the recovery. Just there is one issue that there would be extra redo generation due to the first time logging of the whole data block in the redo stream to avoid the fractured block issue.
    HTH
    Aman....

  • Hot backup question

    Our DBA duties are currently outsourced and I'm just curious about something.
    We asked them to copy a schema from our Production database (during the day) down to it's equivalents in the Acceptance and Test environments. We found a problem in that the maximum value of a primary key on a table was 100121, and the sequence uses to generate the value for the primary key was only at 100081.
    Is this just one of the risks of taking a hot backup, and so should schedule a backup be taken after hours? Or did he possibly do something wrong?
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi

    If the request was to copy only one schema, then it is unlikely that a "hot backup" would have been used. Quite possibly exp/imp or expdp/impdp would have been used to export the schema from Production and import it into the other two databases.
    Sequences are always "a problem" when export - import is used while the database is active. The export of the sequence and the export of the table (or tables) that use the sequence are not at the same time / SCN so the values may diverge as they get updated in the source database.
    The plan is to reset the sequence in the target database by manually incrementing it till it reaches the desired target (100122).
    Hemant K Chitale

  • Oracle Hot Backup Script Windows Server 2003

    Hello,
    Does anyone here have a working Oracle 10I database hot backup script for Windows Server 2003? If so can you please post it here.
    Thanks.

    Here is a basic batch script I have used for a hot backup of Oracle databases using RMAN
    Will just need to update some locations based on you environment just check all the comments and change what you need to but this can be scheduled to run regularly through the windows scheduler for database backups.
    This will take a hot backup and backup the archive logs.
    Let me know if you have any quesitons.
    REM #####################################################################
    REM # Name: rman_hot_backup_dsk.bat
    REM #
    REM # Description:
    REM #
    REM # Generic Hot backup script that accepts the SID
    REM #
    REM # Parameters: Instance Name, backup level
    REM #
    REM #####################################################################
    REM #
    REM # Check if SID was Passed
    if (%1)==() goto USAGE
    if (%2)==() goto USAGE
    REM # assign ORACLE_SID to passed SID
    set ORACLE_SID=%1
    REM # Set the hot backup level 0-full 1-incremental
    set LEVEL=%2
    REM # export the page list
    set [email protected]
    REM # assign a date we can use as part of the logfile
    set DTE=%date:~-4%%date:~4,2%%date:~7,2%_%time:~0,2%%time:~3,2%%time:~6,2%
    REM # Take the spaces out of the date string so we can use in our file name
    set DTE=%DTE: =%
    REM # set the script location
    REM # Set location of where you will put script
    set SCRIPTLOC=C:\app\oracle\scripts
    cd %SCRIPTLOC%
    REM # Set the Temporary command file that we will write our rman script to
    set CMDFILE=%SCRIPTLOC%\%ORACLE_SID%_rman_hot_backup_dsk.cmd
    REM # Remove the temporary file if it exists
    del /q %CMDFILE%
    REM # Set the logfile directory
    REM # Change based on where you want the backup logs to go
    set LOGPATH=W:\ORACLE_BACKUP\logs
    set LOGFILE=%ORACLE_SID%_rman_hot_backup_dsk_%DTE%.log
    set LOG=%LOGPATH%\%LOGFILE%
    REM # Set the path of the backup location
    REM # Change based on disk pach for you disk based backups
    set BACKLOC=\\VirtualBox\ORA_ITS03P\ORACLE_BACKUP\%ORACLE_SID%
    REM # Lets set the ORACLE_HOME for the host
    REM # Set to your actual ORACLE_HOME location
    set ORACLE_HOME=C:\app\oracle\product\10.2.0\db_1
    # Set the rest of the Oracle Environment
    # based on our ORACLE_HOME
    set LIBPATH=%ORACLE_HOME%/lib
    set LD_LIBRARY_PATH=%ORACLE_HOME%/lib
    set TNS_ADMIN=%ORACLE_HOME%/network/admin
    REM #set ORA_NLS10=%ORACLE_HOME%/nls/data
    REM Set our PATH with the ORACLE_HOME so that we have a good
    REM clean environment to work with
    set PATH=%ORACLE_HOME%/bin;%ORACLE_HOME%/OPatch;%PATH%
    REM # Write Temporary command file for RMAN backup
    echo # configure retention policy >> %CMDFILE%
    echo CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 14 DAYS ; >> %CMDFILE%
    echo # >> %CMDFILE%
    echo # lets start clean for our hot backup by doing full crosschecks >> %CMDFILE%
    echo change archivelog all crosscheck ; >> %CMDFILE%
    echo crosscheck backup of database; >> %CMDFILE%
    echo crosscheck backup of controlfile; >> %CMDFILE%
    echo # >> %CMDFILE%
    echo # delete all expired and obsolete backups >> %CMDFILE%
    echo allocate channel for maintenance type disk ; >> %CMDFILE%
    echo delete noprompt expired archivelog all ; >> %CMDFILE%
    echo delete noprompt expired backup ; >> %CMDFILE%
    echo delete noprompt obsolete ; >> %CMDFILE%
    echo # >> %CMDFILE%
    echo # Configure control file for auto backup >> %CMDFILE%
    echo configure controlfile autobackup on ; >> %CMDFILE%
    echo CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%BACKLOC%\%ORACLE_SID%_controlfile_%%F' ; >> %CMDFILE%
    echo # >> %CMDFILE%
    echo # Configure default device type here we use disk and set parallelism to 2 >> %CMDFILE%
    echo configure default device type to disk ; >> %CMDFILE%
    echo configure device type disk parallelism 2 ; >> %CMDFILE%
    echo # >> %CMDFILE%
    echo # Must format the default channel for the device type disk >> %CMDFILE%
    echo # other wise tmp area in creating pieces will be done in >> %CMDFILE%
    echo # the $ORACLE_HOME/dbs directory >> %CMDFILE%
    echo CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT = '%BACKLOC%\%ORACLE_SID%_hot_%%U' ; >> %CMDFILE%
    echo # >> %CMDFILE%
    echo # Configure our retention policy for this database >> %CMDFILE%
    echo configure retention policy to recovery window of 14 days ; >> %CMDFILE%
    echo # >> %CMDFILE%
    echo # Let configure our channels for our backup >> %CMDFILE%
    echo # Channel 1 disk and we indicate where it goes not taking the default >> %CMDFILE%
    echo configure channel 1 device type disk MAXPIECESIZE = 4G format '%BACKLOC%\%ORACLE_SID%_hot_%%U' ; >> %CMDFILE%
    echo # Channel 2 disk and we indicate where it goes not taking the default >> %CMDFILE%
    echo configure channel 2 device type disk MAXPIECESIZE = 4G format '%BACKLOC%\%ORACLE_SID%_hot_%%U' ; >> %CMDFILE%
    echo # >> %CMDFILE%
    echo # Backup our database with compression on >> %CMDFILE%
    echo backup as compressed backupset incremental level %LEVEL% tag hot_%LEVEL%_%DTE% DATABASE ; >> %CMDFILE%
    echo # >> %CMDFILE%
    echo # Backup our archive log files that have not been backed up >> %CMDFILE%
    echo backup as compressed backupset format '%BACKLOC%\%ORACLE_SID%_Archive_%%d_%%s_%%p_%%t' archivelog all not backed up 1 times ; >> %CMDFILE%
    echo # >> %CMDFILE%
    echo # Backup Control file for standby in case needed >> %CMDFILE%
    echo backup current controlfile for standby ; >> %CMDFILE%
    echo # >> %CMDFILE%
    echo # let put a controlfile to trace >> %CMDFILE%
    echo sql 'ALTER DATABASE BACKUP CONTROLFILE TO TRACE' ; >> %CMDFILE%
    REM # Run the RMAN backup without using the recovery catalog
    %ORACLE_HOME%\bin\rman target=/ nocatalog cmdfile=%CMDFILE% msglog=%LOG%
    REM # Remove our temporary command file
    del /q %CMDFILE%
    REM # Mail Archive backup log
    REM # This relies on the free bmail utility
    bmail -date -m %LOG% -f [email protected] -s <smtpserver> -t %PAGE_LIST% -a "HOT Backup results"
    REM # Goto end of script as we are done
    goto END
    :USAGE
    echo "Must Pass ORACLE_SID and hot backup level as parameters."
    goto END
    :END

Maybe you are looking for

  • VI Analyzer User Plugins Directory

    Hi Ppl, I have been using VI Analyzer in labVIEW 2010. It has the option to created user plugins or Tests. I have created some plugings, but the constraint that I face is that, I have to place these plugins within the LabVIEW Data directory for the V

  • Oracle 9.2.0.1  on Redhat Linux ADVANCED SERVER -PATCHES

    HI Can some one help me out, is Oracle 9.2.0.1 on Redhat Linux ADVANCED SERVER , is having some patch set to work on Developer2000, if so,please let me know where in we get the same tks narayana rao

  • F110 t code

    Hi guru's I am an abaper I am working in FI module its very new for me. When I am runing F110 T code, payment run T code. IF the file format is ACH-CTX file format. The file will auotmatically save in /temp/ .directory (AL11) Please let me know what

  • Unable to start OC4J 10.1.3 on AIX

    Hi All, I have installed OC4J on AIX and on running the oc4j.sh script with -start option results in a coredump. Just wondering if I am missing something. Any help would be greatly appreciated. thanks -sheshi Here is the trace st-ibm18:$ ./oc4j.sh -s

  • X-Fi Simultaneous Digital & Analog out

    On the X-Fi Xtreme Music, is there a way to simultaneously have both Digital coax output via the Flexijack port and Analog stereo output via the Line Out port. I have found that I have to uncheck the "Enable Digital I/O" button in the "Advanced Contr