Archive Backup procedure & Advantage
Hi,
We want to configure archive backup. As well as, we want to know something about archive backup so could anyone help & explain following inquiry.
1)How to configure archive backup.
2)what is the advantages of this backup.
3)When does it require & perform.
4)Can it be configured both way (SAP & Database)
Our System Information:
SAP ECC6
Database : DB2 9.1
Regards
Abhijit
Hi,
I didn't get any feedback regarding my issue.
Regards
Abhijit
Similar Messages
-
What is the correct procedure to make.
1. Every evening a "hot" on-line back.
2. Every saturday evening a "full" backup.
Message was edited by:
olivejuiceThe databases are running in archive mode.
Daily we do an on-line backup at 10pm.
We have an incremental tape backup of our system every night.
On saturday, I manually shutdown the databases and I copy the ORADATA files to a directory that is backup with our full tape backup during saturday night.
It's this procedure that I want to automate.
I can only create one backup procedure in EM console.
So my question is, how can I create an extra weekly off-line (with shutdown and restart of the databases) backup thats runs automatically. -
RMAN archive backup takes more than 1 hour.
Hello,
We execute the following command from HP Data Protector 5.50 in order to backup archives from an Oracle 8.1.7 database running in HP-UX 11.00:
run {
allocate channel 'dev_0' type 'sbt_tape'
parms 'ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=inf,OB2BARLIST=Oracle_Archivers_Inf)';
allocate channel 'dev_1' type 'sbt_tape'
parms 'ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=inf,OB2BARLIST=Oracle_Archivers_Inf)';
allocate channel 'dev_2' type 'sbt_tape'
parms 'ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=inf,OB2BARLIST=Oracle_Archivers_Inf)';
sql 'alter system switch logfile'
sql 'alter system archive log current'
backup
filesperset 1
format 'Oracle_Archivers_Inf<inf_%s:%t:%p>.dbf'
archivelog until time 'SYSDATE-2'
delete input;
backup
filesperset 1
format 'Oracle_Archivers_Inf<inf_%s:%t:%p>.dbf'
archivelog all;
This process takes more than 2 hours for just 3 GB and we don't think this is network issue.
Is our RMAN command doing more thinks than just archives backup?
Almost at the end of backup we get following message:
Default exp binary /INF/oracle/app/product/8.1.7/bin/exp/ is used for catalog export.
Does this message mean an export is done at the end of archive backup?
Note that message belongs it is more than 2 hours later.
Thanks in advance for your help.
Regards,
CarlesYes, it appears one of your utilities is doing an export backup, check HP Data Protector settings.
-- and/or -- you are having tape problems: ... type[b] 'sbt_tape' -
Archive Backup Failure in Quality Server
Hello Guru's
Since morning archive backup failure in our quality server.
I am attaching log for your reference, Please guide us to resolve this issue
BR0002I BRARCHIVE 6.40 (50)
BR0006I Start of offline redo log processing: aeardegy.svd 2009-05-28 07.08.28
BR0484I BRARCHIVE log file: /oracle/QBS/saparch/aeardegy.svd
BR0252W Function remove() failed for '/oracle/QBS/920_64/dbs/sap.ora' at location BrInitOraCreate-1
BR0253W errno 13: Permission denied
BR0252W Function fopen() failed for '/oracle/QBS/920_64/dbs/initQBS.ora' at location BrInitOraCopy-2
BR0253W errno 13: Permission denied
BR0101I Parameters
Name Value
oracle_sid QBS
oracle_home /oracle/QBS/920_64
oracle_profile /oracle/QBS/920_64/dbs/initQBS.ora
sapdata_home /oracle/QBS
sap_profile /oracle/QBS/920_64/dbs/initQBS.sap
backup_dev_type util_file
util_par_file /oracle/QBS/920_64/dbs/initQBS.utl
archive_dupl_del only
system_info oraqbs/oracbs bascop08 AIX 3 5 00396F7C4C00
oracle_info QBS 9.2.0.7.0 8192 423 5563906655
sap_info 640 SAPR3 QBS W1421187153 R3_ORA 0020121351
make_info rs6000_64 OCI_920 Oct 11 2008
command_line brarchive -u system/******** -c -d util_file -sd
BR0252E Function fopen() failed for '/oracle/QBS/saparch/archQBS.log' at location arch_last_get-1
BR0253E errno 13: Permission denied
BR0016I 0 offline redo log files processed, total size 0.000 MB
BR0252W Function fopen() failed for '/oracle/QBS/saparch/archQBS.log' at location BrCleanup-8
BR0253W errno 13: Permission denied
BR0121W Processing of log file /oracle/QBS/saparch/archQBS.log failed
BR0007I End of offline redo log processing: aeardegy.svd 2009-05-28 07.08.29
BR0280I BRARCHIVE time stamp: 2009-05-28 07.08.29
BR0005I BRARCHIVE terminated with errors
Thanks & Regards
ShishirHello Shishir,
It looks as if the issue is with the permissions of saparch directory,
Check the permissions of oracle/QBS/saparch/archQBS and /oracle/QBS/920_64 oracle_profile /oracle/QBS/920_64/dbs/initQBS.ora directories and compare with the production server
Also make sure that initQBS.ora is present in the location specified
Rohit -
Proper Backup Procedures with External Hard Drives
I use external firewire drives for all of my photos and I have a quick question about backup procedures. I currently use Intego's Personal Backup X5 software solution and I wanted to know whether it is better to backup your files or Sync your files when making duplicate drives?
Aperture's vault function will "sync" your library with your vault. This means that the vault will only hold one specific version of your library, which is fine for most users. The vault file will be more or less the same size as your Aperture library file.
If you want to make incremental backup of your library (which will allow you to restore specific versions of your library) then you could take a look at "Backup 3" which can be downloaded in a trail version here:
http://www.mac.com/1/solutions/backup.html
Incremental backup will mean that your initial backup file plus all your incremental backup files will fill up more space on your harddisk than the size of your Aperture library. (incremental = adding)
Karsten -
Log file sync during RMAN archive backup
Hi,
I have a small question. I hope someone can answer it.
Our database(cluster) needs to have a response within 0.5 seconds. Most of the time it works, except when the RMAN backup is running.
During the week we run one time a full backup, every weekday one incremental backup, every hour a controlfile backup and every 15 minutes an archival backup.
During a backup reponse time can be much longer then this 0.5 seconds.
Below an typical example of responsetime.
EVENT: log file sync
WAIT_CLASS: Commit
TIME_WAITED: 10,774
It is obvious that it takes very long to get a commit. This is in seconds. As you can see this is long. It is clearly related to the RMAN backup since this kind of responsetime comes up when the backup is running.
I would like to ask why response times are so high, even if I only backup the archivelog files? We didn't have this problem before but suddenly since 2 weeks we have this problem and I can't find the problem.
- We use a 11.2G RAC database on ASM. Redo logs and database files are on the same disks.
- Autobackup of controlfile is off.
- Dataguard: LogXptMode = 'arch'
Greetings,Hi,
Thank you. I am new here and so I was wondering how I can put things into the right category. It is very obvious I am in the wrong one so I thank the people who are still responding.
-Actually the example that I gave is one of the many hundreds a day. The respone times during the archive backup is most of the time between 2 and 11 seconds. When we backup the controlfile with it, it is for sure that these will be the response times.
-The autobackup of the controfile is put off since we already have also a backup of the controlfile every hour. As we have a backup of archivefiles every 15 minutes it is not necessary to also backup the controlfile every 15 minutes, specially if that even causes more delay. Controlfile is a lifeline but if you have properly backupped your archivefiles, a full restore with max 15 minutes of data loss is still possible. We put autobackup off since it is severely in the way of performance at the moment.
As already mentioned for specific applications the DB has to respond in 0,5 seconds. When it doesn’t happen then an entry will be written in a table used by that application. So I can compare the time of failure with the time of something happening. The times from the archivelog backup and the failure match in 95% of the cases. It also show that log file sync at that moment is also part of this performance issue. I actually built a script that I used for myself to determine out of the application what the cause is of the problem;
select ASH.INST_ID INST,
ASH.EVENT EVENT,
ASH.P2TEXT,
ASH.WAIT_CLASS,
DE.OWNER OWNER,
DE.OBJECT_NAME OBJECT_NAME,
DE.OBJECT_TYPE OBJECT_TYPE,
ASH.TIJD,
ASH.TIME_WAITED TIME_WAITED
from (SELECT INST_ID,
EVENT,
CURRENT_OBJ#,
ROUND(TIME_WAITED / 1000000,3) TIME_WAITED,
TO_CHAR(SAMPLE_TIME, 'DD-MON-YYYY HH24:MI:SS') TIJD,
WAIT_CLASS,
P2TEXT
FROM gv$active_session_history
WHERE PROGRAM IN ('yyyyy', 'xxxxx')) ASH,
(SELECT OWNER, OBJECT_NAME, OBJECT_TYPE, OBJECT_ID FROM DBA_OBJECTS) DE
WHERE DE.OBJECT_id = ASH.CURRENT_OBJ#
AND ASH.TIME_WAITED > 2
ORDER BY 8,6
- Our logfiles are 250M and we have 8 groups of 2 members.
- Large pool is not set since we use memory_max_target and memory_target . I know that Oracle maybe doesn’t use memory well with this parameter so it is truly a thing that I should look into.
- I looked for the size of the logbuffer. Actually our logbuffer is 28M which in my opinion is very large so maybe I should put it even smaller. It is very well possible that the logbuffer is causing this problem. Thank you for the tip.
- I will also definitely look into the I/O. Eventhough we work with ASM on raid 10 I don’t think it is wise to put redo logs and datafiles on the same disks. Then again, it is not installed by me. So, you are right, I have to investigate.
Thank you all very much for still responding even if I put this in the totally wrong category.
Greetings, -
Hi ,
We are taking archive backup using rman but all the archive is not deleted after backup.only few archive is delete
Please help on this
OS is window and database verion is 10g
Below is the script for takinhg a backup
run
sql 'ALTER SYSTEM ARCHIVE LOG CURRENT';
allocate channel CH01 type 'sbt_tape';
send 'NB_ORA_POLICY=N10-NDLORADB02-DB-Oracle-billhost-Archive-Full-Backup-Daily,NB_ORA_SERV=CNDBBKPRAPZT33,NB_ORA_CLIENT=NDLORADB02,NB_ORA_SCHED=Default-Application-Backup';
backup filesperset 20 format 'ARC%S_%R.%T' (archivelog like 'T:\ARCHIVE\ARC%');
backup format 'cf_%d_%U_%t' current controlfile tag='backup_controlfile';
delete noprompt archivelog all backed up 1 times to sbt_tape ;
release channel CH01;
Regards
GauravNo evidence with respect to your assertion exists in your post.
These two commands
backup filesperset 20 format 'ARC%S_%R.%T' (archivelog like 'T:\ARCHIVE\ARC%');
delete noprompt archivelog all backed up 1 times to sbt_tape ;are potentially contradictory, but as you also don't provide the log_archive_format parameter who can tell.
This forum is about providing help. In order to be able to help people asking help need to provide sufficient information.
You don't ask for help, you ask to solve a riddle, without providing a webcam.
Sybrand Bakker
Senior Oracle DBA -
Hi,
we are taking archive backup for that i getting below error plz help me to resolve the error.
BR0002I BRARCHIVE 7.00 (32)
BR0006I Start of offline redo log processing: aecmkecv.cds 2010-02-02 10.51.45
BR0484I BRARCHIVE log file: /oracle/KBP/saparch/aecmkecv.cds
BR0280I BRARCHIVE time stamp: 2010-02-02 10.51.45
BR0301E SQL error -9925 at location BrInitOraCreate-2, SQL statement:
'CONNECT / AT PROF_CONN IN SYSOPER MODE'
ORA-09925: Unable to create audit trail file
IBM AIX RISC System/6000 Error: 13: Permission denied
Additional information: 9925
BR0303E Determination of Oracle version failed
BR0007I End of offline redo log processing: aecmkecv.cds 2010-02-02 10.51.45
BR0280I BRARCHIVE time stamp: 2010-02-02 10.51.46
BR0005I BRARCHIVE terminated with errors
kvlHi kvl
Check the parameter AUDIT_FILE_DEST. This will point to a directory which has to exist and be writable by the orasid account.
Do you want to have an audit trail for you SAP database? Are you ever going to us it? If not, another option is to turn it off with another parameter, audit_trail = none.
Regards
Doug -
N97: backup procedure bugged
Hi all,
The backup procedur has a bug.
If you have setted to store the messages in e: after that you made a backup on the microsd and you open message it will be an error message about the memory is not avaible and the memory storage will set once again in C:Lucky you got ur refund
i am gonna have to stay with this **bleep**ing phone but in like a year i am going to sell it to someone unlucky guy ans then get a coolest phone. oh yeah!
and i will never going to buy any Nokia **bleep** phone, NEVER, NO MORE NOKIA!! -
SnapshotDB failed for archive backup
hi!
one server i manage had a power failure. now when i try to start the calendar service i get this error:
20070528154729 - 1 Fatal Error: SnapshotDB failed for archive backup at /var/opt/SUNWics5/csdb/archive/archive_20070528
20070528154729 - csstoredExit: Exiting with [-1].the whole log:
20070528154726 - caldb.berkeleydb.homedir.path = /var/opt/SUNWics5/csdb
20070528154726 - caldb.berkeleydb.archive.path = /var/opt/SUNWics5/csdb/archive
20070528154726 - caldb.berkeleydb.hotbackup.path = /var/opt/SUNWics5/csdb/hotbackup
20070528154726 - caldb.berkeleydb.archive.enable = 1
20070528154726 - caldb.berkeleydb.hotbackup.enable = 1
20070528154726 - caldb.berkeleydb.hotbackup.mindays = 3
20070528154726 - caldb.berkeleydb.hotbackup.maxdays = 6
20070528154726 - caldb.berkeleydb.hotbackup.threshold = 70
20070528154726 - caldb.berkeleydb.archive.mindays = 3
20070528154726 - caldb.berkeleydb.archive.maxdays = 6
20070528154726 - caldb.berkeleydb.archive.threshold = 70
20070528154726 - caldb.berkeleydb.circularlogging = no
20070528154726 - caldb.berkeleydb.archive.interval = 120
20070528154726 - alarm.msgalarmnoticercpt = [email protected]
20070528154726 - service.admin.sleeptime = 2
20070528154726 - local.serveruid = icsuser
20070528154726 - local.hostname = jespre.dominio.local
20070528154726 - service.http.calendarhostname = jespre.dominio.local
20070528154726 - Reading configuration file - Done
csstored is started
Calendar service(s) were started
20070528154728 - Notice: Store Archiving is Enabled
20070528154728 - Notice: Hot Backup is Enabled
20070528154728 - WARNING: Removing directory [archive_20061102] from [/var/opt/SUNWics5/csdb/archive] according to system settings.
20070528154728 - In backup directory [/var/opt/SUNWics5/csdb/archive] we had [6] days worth of backup
20070528154728 - According to the system settings, we must keep between [3] and [6] days of backup
20070528154728 - We now have [5] days of backup in [/var/opt/SUNWics5/csdb/archive]
20070528154728 - Creating directory [/var/opt/SUNWics5/csdb/archive/archive_20070528] 20070528154728 - ... success
20070528154729 - Checking condition for [/var/opt/SUNWics5/csdb/archive], threshold [70], DB [257031]KB
20070528154729 - Hotbackup on [/var/opt/SUNWics5/csdb/hotbackup] mounted on [/dev/dsk/c0d0s6]
20070528154729 - Archivebackup on [/var/opt/SUNWics5/csdb/archive] mounted on [/dev/dsk/c0d0s6]
20070528154729 - Checking condition for [/var/opt/SUNWics5/csdb/archive], threshold [70], DB [257031]KB
20070528154729 - Hotbackup on [/var/opt/SUNWics5/csdb/hotbackup] mounted on [/dev/dsk/c0d0s6]
20070528154729 - Archivebackup on [/var/opt/SUNWics5/csdb/archive] mounted on [/dev/dsk/c0d0s6]
20070528154729 - SnapshotDB: Creating archive copy at /var/opt/SUNWics5/csdb/archive/archive_20070528
20070528154729 - Run CheckpointDB prior to backing up the database files
20070528154729 - Running CheckpointDB: /opt/SUNWics5/cal/lib/../tools/unsupported/bin/db_checkpoint -1 -h /var/opt/SUNWics5/csdb 2> /tmp/csstored.checkpoint.out
20070528154729 - Running CheckpointDB: /opt/SUNWics5/cal/lib/../tools/unsupported/bin/db_checkpoint -1 -h /var/opt/SUNWics5/csdb 2> /tmp/csstored.checkpoint.out
20070528154729 - Copying database files to /var/opt/SUNWics5/csdb/archive/archive_20070528
20070528154729 - Copying database file ics50alarms.db to /var/opt/SUNWics5/csdb/archive/archive_20070528
20070528154729 - SnapshotDB - Copy failed to /var/opt/SUNWics5/csdb/archive/archive_20070528 for ics50alarms.db
20070528154729 - 1 Fatal Error: SnapshotDB failed for archive backup at /var/opt/SUNWics5/csdb/archive/archive_20070528
20070528154729 - csstoredExit: Exiting with [-1].any hint?long time ago, in a galaxy far away...
i discovered that csstored.pl doesn't play very well with spanish locale (not sure with other locale).
if i launch /opt/SUNWics5/cal/sbin/start-cal with this locale
LANG=es_ES.UTF-8
LC_CTYPE=es_ES.UTF-8
LC_NUMERIC=es_ES.UTF-8
LC_TIME="es_ES.UTF-8"
LC_COLLATE=es_ES.UTF-8
LC_MONETARY=es_ES.UTF-8
LC_MESSAGES=es.UTF-8
LC_ALL=
i get the error described before. the i just reset LANG and LC_ALL to C and all goes well.
thanks to truss for the inspiration. -
Backup procedures documentation
hi guys
Im a new dba here n have been asked to document the backup procedures. they didnt have any documentation till now. Could anyone share any template to document the backup procedures. Thanks in advance.10g Release 2 documentation will help -
http://www.oracle.com/pls/db102/portal.portal_db?selected=4 -
Hello, I have a database that takes in between 80 to 600 transactions per day through an external feed. I need to implement a hot backup that will run once a day. I don't need to do point in time recovery because I can restore from the prior nightly backup and then replay the tlog file from the external feed. What is the best way to implement a hot backup. Is it as simple as running a sql procedure that will loop through all the tablespaces and put them in backup mode and then copy them to another location? I am open to all and any recommendations. The database is Oracle 9.2.0.1 running on Windows 2000 or 2003 server. Please provide any scripts if you can. Thank you and have a great day!
DavidI wrote a dynamic hot backup script once, you can look into it if you want:
-- YJAM - Modele backup dynamique
-- SQL*Plus Env
SET TIM OFF TIMI OFF ECHO OFF VERIFY OFF FEED OFF TRIMS ON
-- Variables dépendantes du systeme
DEFINE DEST_DIR=C:\Backup
DEFINE DIR_SEP=\ -- win*=\ | unix=/
DEFINE SH=host -- win*=host | unix=!
DEFINE COPIE=copy -- win*=copy | unix=cp
DEFINE SUPPR=del -- win*=del | unix=rm
DEFINE MARGE_ARCHIVELOGS=10
-- Preparation pour les archives
COL FARCH NEW_VALUE FIRST_ARCHIVELOG NOPRINT;
SELECT MAX(SEQUENCE#)-1 FARCH FROM V$LOG;
PROMPT *************************************************
SET SERVEROUTPUT ON SIZE 200000
SPOOL &DEST_DIR.&DIR_SEP.part1.sql
DECLARE
-- Curseur pour recuperer la liste des datafiles
CURSOR cDatafiles IS SELECT TABLESPACE_NAME, FILE_NAME FROM DBA_DATA_FILES ORDER BY TABLESPACE_NAME;
REP_BACKUP VARCHAR2(500 CHAR) := ''; -- Définition du répertoire principal de destination de sauvegarde
OTN VARCHAR2(50 CHAR) := ' '; -- Variable en aiguillde trainante pour le declanchement du mode backup
PFILE_INFO VARCHAR2(500 CHAR) := ''; -- Variable pour test de type de fichier d'initialisation
BEGIN
-- Validation du repertoire de destination
SELECT INSTANCE_NAME INTO REP_BACKUP FROM V$INSTANCE;
REP_BACKUP := '&DEST_DIR.&DIR_SEP'||REP_BACKUP||'&DIR_SEP'||TO_CHAR(SYSDATE,'YYYYMMDD')||'&DIR_SEP';
DBMS_OUTPUT.PUT_LINE('&SH mkdir ' || REP_BACKUP);
DBMS_OUTPUT.PUT_LINE('--');
-- Traitement des DATAFILEs
FOR vDatafiles IN cDatafiles
LOOP
-- Si le tablespace parcourru n'est pas le meme que le precedent
IF (OTN != vDatafiles.TABLESPACE_NAME) THEN
-- Si ce n'est pas le premier alors on bascule l'ancien hors du mode backup
IF (OTN != ' ') THEN
DBMS_OUTPUT.PUT_LINE('ALTER TABLESPACE ' || OTN || ' END BACKUP;');
END IF;
-- Mise a jour de l'aiguillde trainante et mise en mode backup du tablespace
OTN := vDatafiles.TABLESPACE_NAME;
DBMS_OUTPUT.PUT_LINE('ALTER TABLESPACE ' || OTN || ' BEGIN BACKUP;');
END IF;
-- Il faut sauvegarder les fichiers!
DBMS_OUTPUT.PUT_LINE('&SH &COPIE ' || vDatafiles.FILE_NAME || ' ' || REP_BACKUP);
END LOOP;
-- Evite un effet de bord: sortir le dernier tablespace du mode backup*
DBMS_OUTPUT.PUT_LINE('ALTER TABLESPACE ' || OTN || ' END BACKUP;');
DBMS_OUTPUT.PUT_LINE('--');
-- Sauvegarde du fichier de controle sous forme controlfile et trace
DBMS_OUTPUT.PUT_LINE('ALTER DATABASE BACKUP CONTROLFILE TO ''' || REP_BACKUP || 'control.ctl'';');
DBMS_OUTPUT.PUT_LINE('ALTER DATABASE BACKUP CONTROLFILE TO TRACE AS ''' || REP_BACKUP || 'trace.ctl'';');
DBMS_OUTPUT.PUT_LINE('--');
-- Vérification du type de fichier d'initialisation
SELECT VALUE INTO PFILE_INFO FROM V$PARAMETER WHERE NAME='ifile';
IF (PFILE_INFO IS NULL) THEN
-- A priori on utilise un fichier de type SPFILE ou le PFILE standard
SELECT VALUE INTO PFILE_INFO FROM V$PARAMETER WHERE NAME='spfile';
IF (PFILE_INFO IS NULL) THEN
-- On utilise le pfile standard
-- Donc on créée temporairement un spfile pour en faire une sauvegarde)
DBMS_OUTPUT.PUT_LINE('CREATE SPFILE=''' || REP_BACKUP || 'spfile.ora'' FROM PFILE;');
DBMS_OUTPUT.PUT_LINE('CREATE PFILE=''' || REP_BACKUP || 'pfile.ora'' FROM SPFILE=''' || REP_BACKUP || 'spfile.ora'';');
DBMS_OUTPUT.PUT_LINE('&SH &SUPPR ' || REP_BACKUP || 'spfile.ora');
ELSE
-- On utilise un spfile
-- Donc on le sauvegarde simplement
DBMS_OUTPUT.PUT_LINE('CREATE PFILE=''' || REP_BACKUP || 'pfile.ora'' FROM SPFILE;');
END IF;
ELSE
-- on utilise un pfile specifique
DBMS_OUTPUT.PUT_LINE('&SH &COPIE ' || PFILE_INFO || ' ' || REP_BACKUP);
END IF;
DBMS_OUTPUT.PUT_LINE('--');
END;
SPOOL OFF
@&DEST_DIR.&DIR_SEP.part1.sql
PROMPT *** Exec part 1
SPOOL &DEST_DIR.&DIR_SEP.part2.sql
DECLARE
-- urseur de parcours de la liste des archivelogs
CURSOR cListearchive(pLow NUMBER, pHigh NUMBER) IS SELECT NAME,SEQUENCE#
FROM V$ARCHIVED_LOG
WHERE SEQUENCE# BETWEEN pLow AND pHigh
AND DEST_ID IN
(SELECT DEST_ID
FROM V$ARCHIVE_DEST
WHERE DESTINATION IS NOT NULL
AND UPPER(DEST_NAME) IN
(SELECT UPPER(NAME)
FROM V$PARAMETER
WHERE VALUE IS NOT NULL
AND NAME LIKE '%log_archive_dest_%'
AND UPPER(SUBSTR(VALUE,1,8))='LOCATION'
ORDER BY SEQUENCE#;
LAST_ARCHIVELOG NUMBER := 0;
-- Variables de bornage des archives a sauvegarder
FIRST_ARCHIVELOG NUMBER := &FIRST_ARCHIVELOG;
CURR_ARCHIVELOG NUMBER := 0;
REP_BACKUP VARCHAR2(500 CHAR) := '';
-- Définition du répertoire principal de destination de sauvegarde
BEGIN
-- Validation du repertoire de destination
SELECT INSTANCE_NAME INTO REP_BACKUP FROM V$INSTANCE;
REP_BACKUP := '&DEST_DIR.&DIR_SEP'||REP_BACKUP||'&DIR_SEP'||TO_CHAR(SYSDATE,'YYYYMMDD')||'&DIR_SEP';
-- Marge de travail sur les fichiers archivelogs
EXECUTE IMMEDIATE 'ALTER SYSTEM SWITCH LOGFILE';
-- On va savegarder les &MARGE_ARCHIVELOGS derniers archivelogs.
SELECT MAX(SEQUENCE#)-1 INTO LAST_ARCHIVELOG FROM V$LOG;
FIRST_ARCHIVELOG := FIRST_ARCHIVELOG - &MARGE_ARCHIVELOGS;
DBMS_OUTPUT.PUT_LINE('-- tranche: ' || FIRST_ARCHIVELOG || ' a ' || LAST_ARCHIVELOG);
-- Parcours de la liste des elements archives concernes
FOR vListearchive IN cListearchive(FIRST_ARCHIVELOG,LAST_ARCHIVELOG)
LOOP
-- Traite t'on une nouvelle archive?
IF (CURR_ARCHIVELOG != vListearchive.SEQUENCE#) THEN
DBMS_OUTPUT.PUT_LINE('&SH &COPIE ' || vListearchive.NAME || ' ' || REP_BACKUP);
CURR_ARCHIVELOG := vListearchive.SEQUENCE#;
END IF;
-- si non il n'y a rien à faire.
END LOOP;
END;
SPOOL OFF
PROMPT *** Exec part 2
@&DEST_DIR.&DIR_SEP.part2.sql
PROMPT *************************************************But it's provided without guarantee. It's been a long time i've not used it! And it might have bugs. Up to you to test it, backup is not a matter where you trust people :-)
Of course, you could also use a simple RMAN script, depending on what you are trying to achieve exactly:
RUN
allocate channel c01 type disk format 'c:\backup\%d%U';
backup database;
backup archivelog all delete input;
}This is just a sample. And you need to choose how you'll use RMAN.
Yoann.
Edited to clean up the code from unnecessary blank lines...
Message was edited by:
Yoann Mainguy -
Hi ,
Can any body help me. i taking backup using TCODE: DB13 i got follwing errors
Job log
Job started
Step 001 started (program RSDBAJOB, variant &0000000000025, user ID KUMARS)
Execute logical command BRARCHIVE On host blrsap002
Parameters:-u / -jid LOG__20070706121833 -c force -p initVMD.sap -s
BR0002I BRARCHIVE 7.00 (22)
BR0006I Start of offline redo log processing: advqhufa.sve 2007-07-06 12.18.42
BR0484I BRARCHIVE log file: E:\oracle\VMD\saparch\advqhufa.sve
BR0252W Function remove() failed for 'E:\oracle\VMD\102\database\sap.ora' at location BrInitOraCopy-7
BR0253W errno 13: Permission denied
BR0166I Parameter 'log_archive_dest' not found infile E:\oracle\VMD\102\database\initVMD.ora - default assumed
BR0280I BRARCHIVE time stamp: 2007-07-06 12.18.43
BR0008I Offline redo log processing for database instance: VMD
BR0009I BRARCHIVE action ID: advqhufa
BR0010I BRARCHIVE function ID: sve
BR0048I Archive function: save
BR0011I 2 offline redo log files found for processing, total size 59.521 MB
BR0112I Files will not be compressed
BR0130I Backup device type: disk
BR0106I Files will be saved on disk in directory:F:\SAPDEVBACKUP\ARC
BR0134I Unattended mode with 'force' active - no operator confirmation allowed
BR0202I Saving init_ora
BR0203I to F:\SAPDEVBACKUP\ARC\VMD ...
BR0278E Command output of 'E: && cd E:\oracle\VMD\102\database && E:\usr\sap\VMD\SYS\exe\uc\NTI386\brtools.exe -f copyfile F:\SA
Access is denied.
0 file(s) copied.
BR0280I BRARCHIVE time stamp: 2007-07-06 12.18.43
BR0279E Return code from 'E: && cd E:\oracle\VMD\102\database && E:\usr\sap\VMD\SYS\exe\uc\NTI386\brtools.exe -f copyfile F:\SAP
BR0222E Copying init_ora to/from F:\SAPDEVBACKUP\ARC\VMD failed due to previous errors
BR0016I 0 offline redo log files processed, totalsize 0.000 MB
BR0007I End of offline redo log processing: advqhufa.sve 2007-07-06 12.18.43
BR0280I BRARCHIVE time stamp: 2007-07-06 12.18.43
BR0005I BRARCHIVE terminated with errors
External program terminated with exit code 5
BRARCHIVE returned error status E
Job finished
Thanks
siva kumar
[email protected]Hi,
i think It seems to be a cause of incorrect authorizations/roles. Please check the following two methods
1)Make sure that directory or executables like SAPDBA,
BRBACKUP, BRARCHIVE, BRRESTORE, BRRECOVER, BRCONNECT
and BRTOOLS have correct authorizations
Please refer the snote: 113747.
2)Run the sapdaba role to update the proper authorizations
Oracle 10g: sqlplus /nolog @sapdba_role <SID>
you can get it from \usr\sap\<SID>\SYS\exe\run folder
Regards,
Venkat -
Hello Experts,
I have developed a store procedure to archive of old data for a huge table. Before deleting a row from the table, inserts the same row in another table. I need to schedule the same through dbms_job for daily execution.
CREATE OR REPLACE PROCEDURE Proc1 AS
BEGIN
DECLARE
success_flag varchar2(1);
total1 NUMBER := 0;
CURSOR c1 IS SELECT rowid,col1,col2 from table1 WHERE CREATE_DATE < sysdate -120;
BEGIN
FOR z IN c1
LOOP
INSERT INTO table2 values(z.val1,val2 …);
success_flag :='T';
if success_flag ='T' then
COMMIT;
DELETE FROM table1
WHERE rowid = z.rowid;
COMMIT;
ELSE
ROLLBACK;
END IF;
END LOOP;
EXCEPTION
WHEN OTHERS THEN
success_flag:= 'F';
END;
END;
Please help me to handle the space related issues through this procedure. Please let me know any better approach to achieve the same.
Thanks in Advance,
BalaDon't know what FileNet is. Why can't you partition it?
Anyway, if you must use insert/delete technique then why not
insert into table2
select <whatever>
from table1
where create_date < sysdate -120;
delete from table1
where create_date < sysdate -120;Also, do NOT commit between those two statements. If your procedure aborts during the delete
it would roll back the delete but not the insert. When you restart the procedure it will insert again.
Get rid of useless success flag as well.
Also, remove the exception section: it adds nothing useful and hides the real error. -
IMovie - Best Way to Archive & BackUp Projects
Hi All,
I'd like to move some iMovie projects from my MacBook Pro HD to an external FireWire drive (or maybe two). What's the best strategy to do this? I'll need to be able to access and work on the archived files (to produce for example different language versions) easily. I guess one of the main things is how to I tell iMovie where to look for the archived project files? Any help would be much appreciated.
PhilTo move a project to an external disk, it must be done within iMovie. Click VIEW/EVENTS BY DISK. You should see all your properly formatted disks in the Project Library and in the Event Library along the left side of iMovie.
Note: Disks must be formatted as Mac OS Extended (journaled) for Imovie to see them.
Now, you should see your projects listed under your internal drive in the iMovie Project Library. To move to an external disk. hold don the Command key while dragging the small project icon to the small icon for the external drive.
A similar process works for moving Event files (which are the large files). Hold down the Command Key as you drag the small icon for the Event to the small icon for the external drive in the Event Library List in iMovie.
Another really good way to do this is to use the File/Consolidate Media command. First you move the Project to the external drive, just as I mentioned above. Then, select the project in the Project Library List, and click FILE/CONSOLIDATE MEDIA. iMovie will offer to move or copy Event Files. It will also offer to place a copy of any photos, music files, etc. on the external disk (although it will not move the originals out of iPhoto or iTunes). This has the advantage of making your archive on the external drive self contained. You can plug this external drive into any Mac running iMovie 11 and edit your project.
Maybe you are looking for
-
Hello, My Specs: Summary Operating System MS Windows 7 Ultimate 64-bit CPU AMD Phenom II X4 955 34 °C Deneb 45nm Technology RAM 4.0GB Single-Channel DDR3 @ 733MHz (9-9-9-20) Motherboard
-
Hi Our report displays data according to key date given in the variable. When a user enters a key date, the report displays the following data col1=keydate sales col2= MTD col3=YTD Here our requirement is when a user gives keydate and execute, The ke
-
all the windows are solid, is there a setting to make them translucent?
-
SCN number showing unknown intigers
Hi, I was checking the scn number of both Primary and Standby database and got this value SQL> select current_scn from v$database; CURRENT_SCN 5.9654E+12 How to make is in correct format?
-
Is there a way to sync a local Oracle database with an online one?
Hi guys, I like the Oracle DBMS and it is taught at my University. The problem is, for my final year project I'd like to create a Windows App in C# and an ASP website that synchronises it's database with the Application/local database. If I use Oracl