Overlapped RMAN processes
Hi Guys,
I have a problem with rman full backups and archivelog backups. The problem occurs when the full backup schedule is run and in the middle is started an archivelog backup schedule. Both run properly, but this generates a problem. With this behavior, the archives backed up with the archivelog backup schedule are not included with the backupset of full backup, and more, because both schedules has different expiration time, our archivelog backup schedule have an expiration time lower than our weekly full backup schedule.
Then, sometimes, when we try to restore a weekly full backup, we find that some needed archives are not in the backupset of the full backup, they are in the backupset of archives , with the lower expiration time, and sometimes expired. Therefore, the recover is not possible.
The question is:
Is there are any way to lock, at RMAN level, to avoid the start of the archives backup schedule, until the full backup is finished?
Thank you very much for your help.
Hello saurabh,
The script of full backup is the one that comes with the Netbackup Enterprise tool, and is:
RUN {
ALLOCATE CHANNEL ch00 TYPE 'SBT_TAPE';
ALLOCATE CHANNEL ch01 TYPE 'SBT_TAPE';
BACKUP
$BACKUP_TYPE
SKIP INACCESSIBLE
TAG hot_db_bk_level0
FILESPERSET 5
FORMAT 'bk_%s_%p_%t'
DATABASE;
sql 'alter system archive log current';
RELEASE CHANNEL ch00;
RELEASE CHANNEL ch01;
ALLOCATE CHANNEL ch00 TYPE 'SBT_TAPE';
ALLOCATE CHANNEL ch01 TYPE 'SBT_TAPE';
BACKUP
filesperset 20
FORMAT 'al_%s_%p_%t'
ARCHIVELOG ALL DELETE INPUT;
RELEASE CHANNEL ch00;
RELEASE CHANNEL ch01;
ALLOCATE CHANNEL ch00 TYPE 'SBT_TAPE';
BACKUP
FORMAT 'cntrl_%s_%p_%t'
CURRENT CONTROLFILE;
RELEASE CHANNEL ch00;
And the script for the archives that we run every 4 hours and when the archives filesystem reaches % of use, is:
RUN {
sql 'alter system archive log current';
ALLOCATE CHANNEL ch00
TYPE 'SBT_TAPE';
ALLOCATE CHANNEL ch01
TYPE 'SBT_TAPE';
SEND 'NB_ORA_CLIENT=terra01,NB_ORA_POLICY=ORACLE_REDO_CRMAX,NB_ORA_SERV=mserver1,NB_ORA_SCHED=Default-Application-Backup';
BACKUP
FORMAT 'arch_u%u_s%s_p%p_t%t'
ARCHIVELOG
ALL
DELETE INPUT;
RELEASE CHANNEL ch00;
RELEASE CHANNEL ch01;
ALLOCATE CHANNEL ch00
TYPE 'SBT_TAPE';
SEND 'NB_ORA_CLIENT=terra01,NB_ORA_POLICY=ORACLE_REDO_CRMAX,NB_ORA_SERV=mserver1,NB_ORA_SCHED=Default-Application-Backup';
BACKUP
FORMAT 'ctrl_u%u_s%s_p%p_t%t'
CURRENT CONTROLFILE;
RELEASE CHANNEL ch00;
Seems that RMAN don't have any mechanism that prevent the delete of one archive needed by an previous rman process in running state.
Similar Messages
-
To see the rman process running on UNIX
Hi
What is command on AIX / UNIX to see if we have any rman processes still running?
Thanks.
I tried ps -ef | grep oraprod (user) but see no rman processes.
Many thanksThere are 2 things what should be checked:
1. from unix side as already pavan mentioned
ps -ef | grep rman
2. from oracle side to look for rman sessions:
select * from v$session where program like 'rman%';
If both requests return nothing - rman had finished his job and already from logfiles or with help of rman commands (list, report) You can understand īs the job done or not. -
Process Chain Help - Delete Overlapping requests
Dear Experts,
I have a requitement where I want to delete the ' previous days' request from the cube. This has to be from the data coming from only one DSO.
I can use the Delete overlapping request process type but I want to know how.
And again, this has to be only for the current month.I want to delete the overlapping requests of current month i.e now since I am in April I want to delete only the April requests. When I am in month May I dont want to delete april request anymore.
In other words I want to delete the april request until April 30th. On May 1st I dont want to delete the april 30th request. On may 1st it shouldn't delete anything. On May 2nd it should delete the May 1st request.
Can anyone help me with this.
Thanks,
KKHi KK,
If I have understood you correctly, you mean to say your cube is getting loaded from various Datasources and you want to delete the requests only for a particular Datasource and not for others.
Please correct me if i am wrong.
If I am right ! Then on the window "Delete Request from Infocube after update" you can "Delete Existing Requests - > Is current month" and on the bottom of that screen you can see a checkbox for Request Selection Through Routine. Check this and you can simply write a routine to do the deletion for only requests loaded from a particular datasource.
Hope it helps.
Regards
Hemant Khemani -
RMAN, RAC, NFS, and server lock ups
Good day. My environment is:
--a 2-node RAC
--Enterprise Edition 11.2.0.3
--RHEL 5.1
The goal is to use RMAN to push backups to a shared NFS mount (on a different server). Both nodes will have access to this location (in the event one node goes down, the other can still run backups). Easy, right?
Wrong.
I've tried every NFS mount option in the book. Most work just fine, some don't. When I use the recommended NFS mount options:
rw,bg,hard,nointr,rsize=32768,wsize=32768,tcp, vers=3,timeo=600, actimeo=0
or
rw,bg,hard,nointr,rsize=32768,wsize=32768,proto=tcp,noac,forcedirectio, vers=3,suid
The mount works normally. I can "ls" and "mkdir" and "touch" and "vi" and "cp" files back and forth from the NFS backup location to the RAC node all day long. No problems. However, when I try to do almost anything in RMAN which requires writing to the NFS backup location such as the command "backup archive all delete input;" (or even things as simple as a Crosscheck or RMAN configuration change which writes any changes back to the autobackup ControlFile) the node locks up. There are no errors (or if there are, I don't know where to find them), even when I use RMAN log.
Just to recap: I run a Crosscheck (or any RMAN process that writes to the NFS backup location), the node will lock up, and I can let it sit for a day, inaccessible, with CRSCTL on the other node saying it's offline, and the node will never come out of a "frozen" state. It cannot be pinged or connected to.
I think I can safely rule out NFS mount options at this point.
I understand (after extensive reading of MOS docs and testing) that RAC RMAN can and does suffer from inefficient I/O when writing to an NFS mount. I don't think that's the culprit either. The autobackup ControlFile is not that big and I cannot see how running a simple Crosscheck would lock an entire node.
I am hoping someone has encountered this in the past and hopefully it's just a simple misconfiguration somewhere.My NFS line in /etc/fstab is (these options are for supporting 11.2.0.3, 11.1.0.7, and 10.2.0.4/5 simultaneously): server.domain:/NFS_Export /backup nfs rw,bg,hard,nointr,rsize=32768,wsize=32768,tcp,actimeo=0,vers=3,timeo=600 0 0
Before you installed GI, did you by chance do a yum update? I've encountered a similar issue which ended up being due to mkinitrd creating a corrupted kernel; mkinitrd is invoked during the GI installation when the ADVM drivers are added and in my case mkinitrd created a new kernel prior to the new kernel being installed. Second to that, make sure you have the matching kernel headers to your kernel version. If they are different then you could probably get away with just creating a new kernel with mkinitrd and relinking GI/RDBMS homes, but be prepared to wipe GI and reinstall. -
Process chain taking long time
Hi,
I developed a Process chain. In developemnt for Completion of the Update rules(Start routine) its taking 60m( for around 50,000 records).
After transporting the Process chain to Production for Start routine completion (For 1,70,000 records) its taking 7hrs and sometimes its failing as the "Process is Over due" and sometimes due to "Short dump".
How to handle this.........
ThanksHi js,
Check the ST22... Any dumps
Check out for the short dump in source system and try loading the delta again
then
I have got the problem when u have posted...but little later.Even I was about to post the issue.. Actually my issue was...
My PC is like this
1) Start Process
2) Delete index
3) Load IP
4) delete overlapping request
5) create Index
6) ABAP program
Process chain hangs at Overlapping requests process type but the status was yellow. And the previous step (3) was success. From there its not moving to next further steps.. But the Job in SM37 was canceled.
I saw Ur post and saw the note 833168 and which matches exactly our issue.
Like we run the PCs thru the TIDAL where due to some problems PC got triggered twice... I can see the two logs in the PC. (Log view) and two requests at RSMO.
Everything was recovered again thru manual steps. This is the first time we encountered... the note helped us ... We now are very cautious about the Tidal runs...
Now PC is running perfectly
we have instructed the Supported team to make the necessary changes or fix this issues in TIDAL...
i hope this is helpful to u
bye now
suresh -
I am getting below error while taking RMAN backup.
Friends,
I am getting below error while taking RMAN backup.
The issue is related with a lock while trying to backup the controlfile.
The lock is more likely caused by the autobackup controlfile process started just before RMAN process was also trying the backup controlfile as shown in the following alert.log excerpt.
Starting Control File and SPFILE Autobackup at 2009-04-07 09:24:58
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of Control File and SPFILE Autobackup command on ORA_DISK_1 channel at 04/07/2009 09:25:03
ORA-00230: operation disallowed: snapshot control file enqueue unavailable
Is there anyway to solve this issue?Thanks in advance.Hi,
SQL> SELECT s.sid, username AS "User", program, module, action, logon_time "Logon", l.*
FROM v$session s, v$enqueue_lock l
WHERE l.sid = s.sid and l.type = 'CF' AND l.id1 = 0 and l.id2 = 2; 2 3
no rows selected
Oracle version : 10.2.0.3
I am getting this error once in a month not everyday.
Starting Control File and SPFILE Autobackup at 2009-04-07 09:24:58
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of Control File and SPFILE Autobackup command on ORA_DISK_1 channel at 04/07/2009 09:25:03
ORA-00230: operation disallowed: snapshot control file enqueue unavailable
Please suggest me based on this..Thanks in advance.. -
Error while changing Overlapping Request in ProcessChain
Hi All,
We are getting Dublicate request in the Cube everyday afterload, Previous day requests are not getting delete using Overlapping Request Process Chain.
For this I have found the setting in Overlapping request Process, I made changes in Maintain Variant in BW Production.
Once i made changes, at the time of Saving i am gettin the following Error @ Load Data Infopackage for 2 DataSources Process (4).
A type "Generate Index" process has to follow process "Execute InfoPackage" var.ZPAK_B61R5KGOKBMLRN9NV7N35TRU2 in the chain
In my process chain hierarchy is like this
1. Start
2. Local Chain for Master Data
3. Deleting index for cube 0LSO_C01
4. Execute infopackage for - Two DataSource 0HR_LSO_1, 0HR_LSO_2
5. AND Process
6. Delete Overlapping Requests - from 0HR_LSO_1, 0HR_LSO_2
7. Create Index.
Please let me what shall i do in this case, since this is production, i need to solve it immediately.
Regards,
KiranHi Kiran............
U hav to create it in the following sequence.............
Start process
Delete index
Load data
Create index
Delete overlapping request
Due to this u r getting this error message.............
Check this............
http://help.sap.com/saphelp_nw04/helpdata/en/d5/e80d3dbd82f72ce10000000a114084/frameset.htm
Hope this helps...........
Regards,
Debjani.......... -
How to find out the first time RMAN be utilized in DB
I need to find out the history of RMAN process in my database, like when it was used first time, and status ect...
I have checked all v$RMAN_xxx view and v$backup_XXXX views, didn't fine anything.
Is there other views that may be helpful?
Also any way I can find out when was archivelog turned on?
ThanksHere is the version
SQL> select banner from v$version;
BANNER
Oracle Database 10g Enterprise Edition Release 10.1.0.4.0 - Prod
PL/SQL Release 10.1.0.4.0 - Production
CORE 10.1.0.4.0 Production
TNS for 32-bit Windows: Version 10.1.0.4.0 - Production
NLSRTL Version 10.1.0.4.0 - Production
Here is what I got if I just issue RMAN from command line:
E:\>rman
Recovery Manager: Release 10.2.0.2.0 - Production on Tue Feb 27 11:21:18 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
RMAN>
here is what I got if I got into $oracle_home/bin
E:\>cd oracle\product\10.1.0\db_1\bin
E:\oracle\product\10.1.0\Db_1\BIN>rman
Recovery Manager: Release 10.1.0.4.0 - Production
Copyright (c) 1995, 2004, Oracle. All rights reserved.
RMAN>
Thanks for the help. -
When executing 'duplicate target database for standby from active' the system tablespace/datafile (datafile 1) is not cloned. All other datafiles clone successfully. The RMAN process aborts with the following errors while attempting to clone the system tablespace/datafile.
ORA-19558: error de-allocating device
ORA-19557: device error, device type: DISK, device name:
ORA-17627: ORA-01041: internal error. hostdef extension doesn't exist
ORA-17627: ORA-01041: internal error. hostdef extension doesn't exist
ORA-03135: connection lost contact
Here are the details:
Primary is 11.2.0.2 RAC database on an Exadata platform
Standby is 11.2.0.2 Single Instance database (same patch level as primary) on a Red Hat Linux box
This is an ASM to ASM duplication.
This is not unique to this database. We tried another database and go the same behavior - all datafiles clone successfully with the exception of the system tablespace/datafile.
We have traced the RMAN execution and it seems to fail when it is trying to assign a NEWNAME to the system tablespace/datafile.
We even issued an explicit SET NEWNAME command but RMAN ignored it.
We also shutdown the primary and started is up in mount mode thinking that something had ahold of the System Tablespace/datafile.
We also opened up the network firewall to allow permit any,any traffic.
We increased the max_server_processes
and added TCP.NODELAY=yes to the sqlnet.ora file.
There seems to be some artifact present in our Primary System tablespace/data file that is preventing it form being cloned.
checked all alert files grid, asm, and dbhome - no abnormal messages.
We are in the process of restoring the database from a backup but we would prefer to get this working using the 'Active Database' methodologyI successfully created the standby database using RMAN backup and recovery.
I started the managed recovery. Archive logs are being sent from the primary to the standby ( I can see them in ASM), but the standby is not applying them.
I get the following messages in the standby alert log...
Fetching gap sequence in thread 2, gap sequence 154158-154257
Tue Nov 26 16:19:58 2013
Using STANDBY_ARCHIVE_DEST parameter default value as USE_DB_RECOVERY_FILE_DEST
Using STANDBY_ARCHIVE_DEST parameter default value as USE_DB_RECOVERY_FILE_DEST
Tue Nov 26 16:20:01 2013
Fetching gap sequence in thread 2, gap sequence 154158-154257
Tue Nov 26 16:20:11 2013
Fetching gap sequence in thread 2, gap sequence 154158-154257
Tue Nov 26 16:20:22 2013
Fetching gap sequence in thread 2, gap sequence 154158-154257
Tue Nov 26 16:20:32 2013
Fetching gap sequence in thread 2, gap sequence 154158-154257
I don't see any MRP processes:
select process,
status,
thread#,
sequence#,
block#,
blocks
7 from v$managed_standby;
PROCESS STATUS THREAD# SEQUENCE# BLOCK# BLOCKS
ARCH CLOSING 2 154363 1 132
ARCH CONNECTED 0 0 0 0
ARCH CONNECTED 0 0 0 0
ARCH CONNECTED 0 0 0 0
ARCH CONNECTED 0 0 0 0
ARCH CONNECTED 0 0 0 0
ARCH CONNECTED 0 0 0 0
ARCH CONNECTED 0 0 0 0
RFS IDLE 0 0 0 0
RFS IDLE 1 145418 121 1
RFS IDLE 0 0 0 0
PROCESS STATUS THREAD# SEQUENCE# BLOCK# BLOCKS
RFS IDLE 0 0 0 0
12 rows selected.
SQL> SELECT THREAD#, SEQUENCE#, APPLIED FROM V$ARCHIVED_LOG;
THREAD# SEQUENCE# APPLIED
2 154356 NO
2 154357 NO
1 145411 NO
2 154358 NO
2 154360 NO
2 154361 NO
1 145414 NO
1 145415 NO
2 154362 NO
2 154363 NO
1 145416 NO
11 rows selected.
I do have the archive logs that cover sequences 154158-154257
Crosschecked 38 objects
Crosschecked 62 objects
Finished implicit crosscheck backup at 26-NOV-13
Starting implicit crosscheck copy at 26-NOV-13
using channel ORA_DISK_1
using channel ORA_DISK_2
Crosschecked 2 objects
archived log file name=+RECO_XORA/nmuasb00/archivelog/2013_11_26/thread_2_seq_154377.344.832521989 RECID=29 STAMP=832521990
validation succeeded for archived log
archived log file name=+RECO_XORA/nmuasb00/archivelog/2013_11_26/thread_2_seq_154378.346.832521991 RECID=31 STAMP=832521993
Crosschecked 31 objects -
Overlapping requests not deleted from Infocube
Hi gurus,
I have included a delete overlapping requests process as the final step in one of my process chain.
I am using the infopackage selection options to delete the request, but it appears not to be working, the log chain gives OK status, but requests are not deleted. Am I missing any step???
We are using BI 7.0.
Thank you.Have you enabled deletion ?
In planning view just double click on "Delete overlapping request" variant.
At top you should see your infopackage or DTP.
At bottom you have "Deletion Selections" here check here if you have ticked "Delete Existing requests" and chosen overlapping or same or more comprehensive.
Hope this helps. -
Does Delete Overlapping Requests drop the BIA index like Selective deletion
Hi,
Does Delete Overlapping Requests process in a chain drop the Accelerator index like Selective Deletion does?Hi,
No is does not.
-Vikram -
Why does it show RMAN is still running...
I am using RMAN in Oracle 11.2.
I tried kicking off RMAN a few times to test my script, and then did a kill -9 on the process numbers.
But I found out that RMAN was still running in the database, and was using a lot of System I/O (from what I could see in OEM).
I see the session in Toad and killed them from within Toad, and the system I/O dropped off.
I could also see in OEM that my RMAN processes were killed off.
So, first, why didn't the kill -9 actually kill the processes running in the database?
Next, when I still look in V$RMAN_BACKUP_JOB_DETAILS, it shows I have some jobs still running.
How do I terminate these processes?
I need to do this as soon as possible. Please help if you can.There is nothing there any longer.
But it still shows up in V$RMAN_BACKUP_JOB_DETAILS.
SQL> select username, program, status from v$session where status = 'ACTIVE' and username is not null order by 1;
USERNAME PROGRAM STATUS
ARADMIN oracle@cassini (P003) ACTIVE
ARADMIN [email protected] (TNS V1-V3) ACTIVE
ARADMIN oracle@cassini (P002) ACTIVE
DBSNMP emagent@cassini (TNS V1-V3) ACTIVE
SYS sqlplus@cassini (TNS V1-V3) ACTIVE
SYSMAN OMS ACTIVE
6 rows selected.
SQL> select username, program, status from v$session where username = 'SYS';
USERNAME PROGRAM STATUS
SYS OMS INACTIVE
SYS sqlplus@cassini (TNS V1-V3) ACTIVE
SYS OMS INACTIVE
3 rows selected.But, yet if I query V$RMAN_BACKUP_JOB_DETAILS, you see it says it is running.
SESSION_KEY INPUT_TYPE STATUS START_TIME END_TIME HRS
4252 DB INCR COMPLETED 12/10/12 01:00 12/10/12 01:07 .13
4258 DB INCR RUNNING 12/10/12 13:53
4260 DB INCR RUNNING 12/10/12 13:57
4262 DB INCR RUNNING 12/10/12 14:03
4264 DB INCR RUNNING 12/10/12 14:06
4266 DB INCR RUNNING 12/10/12 14:08 -
Hello Experts
Please read my requirements.
I have an infocube with Full Load DTP. It gets the records directly from PSA. Its all in BI 7.X. My infopackage is on a datasource that is Delta Capable. Due to the design flaw, I get the records directly from PSA into InfoCube without DSO and hence the duplicate records.
What I did was, I initially ran, infopackage with "Initialize Delta with Data Transfer" and ran my DTP. All the records are in my InfoCube. So far so good. Later I created a process chain, in this Order.
Run Delta InfoPakcage
Run DTP (Full all the time) - This time it gets the full as well as delta records from PSA.
Delete Overlaping Requests
What I observerd was some of the records are still getting duplicated and some not after couple of days. Any ideas Why?
In "Delete Overlaping Request" process I selected the DTP while defining it and not the InfoPackage. How this process work with Delta InfoPackage. Please explain?
Thank you
BW User 999Hi,
You can avoid using Delete overlapping request,and load the data correctly to the cube via Full DTP.
Only if you dont need to previous days data in the PSA.
Every time when the process chain is executed
1) After the start process delete the PSA.
2) Load the data through the Infopackage.
3) Load it to the cube with the Full DTP.
In this way you wont need to delte the overlapping request. Hope this help...
Regards,
Mahesh. -
Delete overlapping request in DTP
Hi,
Is there an option to set "Delete overlapping request" in DTP?.Helllo,
There is no direct option in DTP to do so, but u can do it via process chain.
You need to have your DTP set to full update in order to make use of it in delete overlapping request process type.
Regards,
Shashank -
Cold backup downtime using RMAN
Over the weekend I performed a cold RMAN backup on a 3.6 TB
database. Because a lot of the database was backed up with
transportable tablespaces, the net amount being backed up was
approximately 365 Gb. I took down the database at 11:00 and the
script finished at 4am, but in reviewing the logs, the database
actually appears to have been opened at 2am.
I assumed that the database would be down the entirety of the
backup. Can anyone help me understand why the database was
opened so long before the RMAN command completed? Was the
backup adversely affected in any way by a user obtaining access
prior to the RMAN process completing.
Any information greatly appreciated.unfortunately i think you misunderstood the original question. i took the database down to do the cold backup. in order to use rman, you have to startup nomount the instance.
the script run was:
#!/usr/bin/ksh
rman msglog '/data2/oracle2/local/log/rman_lvl0.log' <<EOF
@connect.rman
run {
backup incremental level 0 tag full_bkup0 database diskratio=0;
alter database open;
exit;
EOF
exit
the "alter database open" tells RMAN to open the database once the backup is completed. i had a process running that checked each 10 seconds to see if the PID for the RMAN process was still running. The process itself appears to have run for an additional 2 hours after the database was opened.
there is nothing on the system to suggest that the database was opened by anything other than RMAN. was the database opened prematurely? was the additional time spent in the RMAN script doing the sync in the database? did the usage by the user prior to RMAN completing invalidate the backup? (so far the cloning is still running without error).
Maybe you are looking for
-
Can you have two iPads on one iTunes account?
Can i add two iPads to one iTunes account and then move one to another iTunes account at a later date?
-
HI, I've a doubt in Building a JTree.It wud be helpful if some one helps me with a better logic for building this Tree.. I have a tree like this: root | A--B--C--D A--B--C--D A--B--C A--B--C--E--F I have the tree nodes like this . i need to merge the
-
Problem setting External break point..
Hi All, I am using EP6 SP14 and R/3 4.6C. Java Webdynpro aRFCs to connect to R/3 BAPIs. I am having problems setting up external break points. I don't see Debug option in "Utilities -> Settings -> ABAP Editor". Do we have this option in R/3 4.
-
External display: is Theater Mode supported?
ATI has a feature on Windows called "Theater Mode" when an external display is attached: when you start a video on the primary display in a window, it shows up full-screen on the extended display. This is really useful when the extended display is a
-
Navigation hides behind slideshow
I have tried several navigation scripts and z-index all over the place but no matter what I try the sub-folders of my navigation on my homepage always gets hidden by the slideshow. Can someone tell me how to correct this? If you need to see it go to