Showing posts with label RMAN. Show all posts
Showing posts with label RMAN. Show all posts

Monday, November 16, 2015

11gR2: Bug causes RMAN to remove spfile during database upgrade

The title of MOS document "Upgrade Of Database From 11.2.0.1 To 11.2.0.4 Caused RMAN Duplication To Error On Spfile" from article ID 1951266.1 tells us about a bug which needs to be avoided during 11gR2 upgrades with either a workaround or one-off patch.

Tuesday, July 28, 2015

RAC: ORA-245 can be thrown due to controlfile not being shared

Make sure you check out article "ORA-245: In RAC environment from 11.2 onwards Backup Or Snapshot controlfile needs to be in shared location" on My Oracle Support from document ID 1472171.1 to learn a bit about RAC and RMAN!

Sunday, July 19, 2015

Weekend Learning: Recovering with RMAN from before last resetlogs

Did you know that each time you open an Oracle database using the resetlogs parameter it will synchronize with RMAN and as a result it remembers what "version" of your database has been opened so restoring to a point prior to that takes some work.  Take a peek at note ID 1070453.6 on My Oracle Support for the document "RMAN: Point-in-Time Recovery of a Backup From Before Last Resetlogs" that has all of the details!

Wednesday, October 29, 2014

Cursor sharing and RMAN errors on 11.2.0.2

Tonight I learned that if you have the gv$parameter cursor_sharing set to FORCE or SIMILAR on an 11.2.0.2 platform RMAN may spit out some odd ORA-01008 or ORA-07445 error messages.  My Oracle Support article "ORA-01008: RMAN backup fails with Assorted Errors on 11.2.0.2 if cursor sharing is enabled" via note ID 1472116.1 has all the details including the patch you need to apply in order to avoid "resolving" this by flushing the shared pool all the time.

Wednesday, August 6, 2014

Database Week: RMAN notes

Continuing Database Week are several very good articles about Recovery Manager AKA RMAN!  How much do you know about RMAN?  Have you ever had to do a restore or recovery?  Could you learn a bit more about RMAN in general?  If so, you are in luck!

RMAN: RAC Backup, Restore and Recovery using RMAN - Note ID 243760.1
How to Move/Restore DB to New Host and File System using RMAN - Note ID 1338193.1
ORA-01008: RMAN backup fails with Assorted Errors on 11.2.0.2 if cursor sharing is enabled - Note ID 1472116.1
RMAN-6429 / RMAN-06429 - Note ID 227481.1

Tuesday, September 17, 2013

RMAN: To connect, or not to connect?

For once I'm not going to focus on 12c; instead, I'm going to introduce you to a new feature in 11gR2 that really blew my mind.  RMAN does not need to connect to a target database in order to duplicate the target database.  Let that sink in for a minute or two.  Now if you are experiencing some type of corruption on your live system, you can grab your backup tapes and not even have to mount or open the database at all.  Amazing!!

Thursday, February 21, 2013

Using RMAN, but not effectively

Since I've been on a RMAN/DBA kick lately, I figure this article is ripe for sharing!
"This article isn’t going to get into every aspect of backup testing but we will show one example of how an inadequate test of incremental backups can have disastrous results in a database recovery scenario."
Does that sound familiar or scary to anybody else out there?  I know I was scared after reading through the scenario!

Thursday, January 24, 2013

RMAN hanging up

Recently I've had to verify or look into our RMAN process potentially hanging up, so I thought I'd share how I've been finding it in our system.

If you look in the table v$rman_backup_job_details, you can see details such as the status, start time, duration, device type, backup type, and even how large the backup job was; but it also shows the current running session(s) as well (the word backup made me initially think it was a history table).  If this doesn't show the information for some reason, you can also look in gv$session by the program column looking for %rman% to find the active sessions.  (Sometimes the module column will have rman as well, but it will change into something that doesn't have rman at certain points so I find the program column much more reliable for my system since it is rman@system and I assume that's the natural setup for all implementations!)

As you can see the common thread running through a lot of posts recently, we have access to the data behind some of our processes and now we need to come up with ways to monitoring this for when RMAN is thrashing against the DB and taking up critical resources that should be available instead.

Wednesday, October 17, 2012

System Wait Events Part 2

For my first follow up post, I thought it would be appropriate to show why ample alerting can help you to save the day.  It just so happens that on the day that we were closing A/R for the year, we started seeing some very odd things in a new alert we have.

Waits                                                           Wait Time

  gc buffer busy acquire                                     17253.907174
  read by other session                                      16173.301272
  cell single block physical read                             4533.532144
  Disk file operations I/O                                    3961.591694
  gc buffer busy release                                       3783.63651
  RMAN backup & recovery I/O                                  2962.854376
  buffer busy waits                                           1803.283808
  gc current block busy                                       1652.088758

At this time, we see in our DB logs a multitude of these entries:

Tue Sep 04 13:15:04 2012
OSPID: 19311: connect: ossnet: connection failed to server x.x.x.x, result=5 (login: sosstcpreadtry failed) (difftime=1953)

Anecdotal evidence of something going wrong is that at this time I observed that closing a form took 20-30 seconds for an individual, and I had another business user indicate that in the last hour or so he's been getting a "circle mouse" indicating waiting on the form when he tries to move between records on a student account.  So knowing that "something is going on" I start drilling in some more to investigate sessions which are making up some of the time in the above alert buckets and this session breakdown of wait times over 2 seconds shows:

WAIT_EVENT
TOT_WAITS
WAIT_PCT
WAIT_SECONDS
WAIT_MINUTES
TIME_PCT
gc buffer busy acquire
1033
0.09
418.49
6.97
0.03
gc cr block 2-way
31312
2.71
3.21
0.05
0
gc cr block busy
6460
0.56
3.24
0.05
0
SQL*Net message from client
532955
46.14
1526240.71
25437.35
99.96
cell single block physical read
1972
0.17
2.8
0.05
0

I don’t know what the session was doing, or if it was successful, but that doesn’t look like a normal session wait time profile on our system.  Later we saw this as well (but it was related to our DBA trying to kill the RMAN jobs):
Tue Sep 04 14:18:52 2012
ARCH: Possible network disconnect with primary database

So, this is all nice and everything but what happened?

Answer:  Our storage engineer started researching the issue and found that our IB switches and other Exadata components had no issues, but when he checked our 7420 storage array out it was a completely different matter all together.  There were no issues with head 1 of the array, but when he went to check on head 2 he was unable to log in through GUI or ssh with also a simple df command hanging on an NFS mount coming from that head.  When he performed a takeover to move NFS control over to head 1, head 2 complained about lacking resources when attempting to fork something and the only way he could force a takeover was to power down head 2.  What I learned by researching for this article can be found here about what a 7420 head configuration could look like in Illustration 20 and Illustration 21 and the following paragraph as well.