Site search

Categories

Archives

Tags





The GNU/Linux Advanced Administration

Free Linux Manuals !


A Newbie's Getting Started Guide to Linux

-- FREE --
IT Magazine
Subscriptions

Oracle Magazine Oracle Magazine Contains technology strategy articles, sample code, tips, Oracle and partner news, how-to articles for developers and DBAs

WebSite Magazine WebSite Magazine Practical advice, helpful tools and insights for website owners

Dr Dobb's Journal Dr Dobb's Journal enables coders to write the most efficient programs and help in daily programming quandaries

DM Review DM Review is recognized as the premier business intelligence, analytics and data warehousing publication
Various other Free IT magazine subscriptions
NoAdware Free Trial

NoAdware Remove
harmful
adware,
spyware,
trojans,
dialers
and worms!
- Featured ebook -

Database Normalization
by Alf Pedersen

Database Normalization ebook Understand and master how to normalize a database using methods richly documented with graphical ERD and server diagram examples

RSS
XML RSS
What is this?
AddThis Feed Button

Social
Bookmarking


Standby database commands.

This section, standby db tutorials aims to give you real-life examples and practical advice on
setting up and maintaining Oracle’s standby database technology, now called Oracle Data Guard.

Standby databases are no longer very complex to set up.
By using Data Guard Broker, all the hard work is done for you in the background,
and all you have to do is click a few buttons.

If you would rather get your hands dirty, this is the place for you.

The tutorials below will take you through all the steps needed to set up and maintain an Oracle standby database.

The examples are all related to a physical standby database, not a logical one.

Standby databases are really Oracle’s gift to the DBA community.

Gone are the days where hardware failure meant days of restoring backup files from tapes,
which were probably far away in an offsite vault,
while hoping that the tapes were not corrupt and that no bug had crept into your backup routine.

With a standby database in place, you can be up and running in no time,
minimizing the impact on your users and their businesses.

Quick reference to monitor, start and stop a physical standby database

Starting a physical standby database:

startup nomount;
alter database mount standby database;

Starting the managed recovery:

alter database recover managed standby database disconnect from session;

Stop the managed recovery:

alter database recover managed standby database cancel;

Shutdown the physical standby database:

shutdown immediate;

Monitor primary’s archive destination status:

select destination, status, archived_thread#, archived_seq# from v$archive_dest_status
where status <> ‘deferred’ and status <> ‘inactive’;

Check if archived logs are synching OK, compare both results:

  • on primary db

select max(sequence#) from v$log_history;

  • on standby db:

select max(sequence#) from v$archived_log;

Check Dataguard processes status:

  • on standby db:

select process, status, thread#, sequence#, block#, blocks from v$managed_standby;

Recommended reading: