Professional Documents
Culture Documents
DatabaseDaily
Best Practices for Developing a Web Site: Checklists, Tips, Strategies & More. Download Exclusive eBook Now.
Oracle
URL: e1.cdn.qnsr.com/cgi/d/2
June 14, 2007
MS Access /641874/549914/i0.html?;y=h
MySQL Manual Standby Database under Oracle Standard Edition //www.databasejournal.com/f
DB2 /article.php/3682421/Manual-
By Sean Hull
Database-under-Oracle-Stand
» RESOURCES
Database Tools Oracle's Standby technology has been rebranded as
DataGuard in recent versions of Oracle. Oracle has added a
SQL Scripts & Samples
layer of technology automation on top of the standby
Links
technology, making automatic Standby technology
» Database Forum seamless. But what about the folks on Standard Edition
» DBA Jobs Oracle? Are they left out in the cold?
» Sitemap
Well, it turns out that it is still possible to create a
News Via RSS Feed *manual* standby database on Oracle SE. Here's how you
do it.
1 of 10 02/04/2011 04:20 PM
Manual Standby Database under Oracle Standard ... http://www.databasejournal.com/features/oracle/ar...
DB_FILE_NAME_CONVERT='/ora/oracle','/export/home/oracle'
2 of 10 02/04/2011 04:20 PM
Manual Standby Database under Oracle Standard ... http://www.databasejournal.com/features/oracle/ar...
h. Now, of course, you'll want to test your standby database. You do this by starting up in r
i. Don't forget to put it back in standby mode so that when your manual_standby.sh script r
won't return errors.
2. What scripts should run via cron on the primary and standby database?
As we mentioned earlier, a script called manual_standby.sh would work well on the standby da
applies new archived redologs that have arrived from the production system. Run it every half
that works for you. The database must be mounted in standby mode (not read-only) or this scr
You'll also want a script on the production server. Name it move_standby.sh, and run it every
start with. This can use rsync to move redolog files from production to standby. A command lik
Note that you may want to adjust options to ssh to your needs. In addition, this presumes you
configured. Read up on the ssh-keygen command. The .ssh directory contains a public key, wh
to the standby machine, and put in the "authorized_keys" file. ssh will then login without a pas
ssh as the transport mechanism, so it also executes without a password. Rsync is very smart a
blocks and pieces of files that are different, so it is very fast, and also does checksums to guara
Be a Commerce Partner Yes, keep in mind we are creating a manual standby database. The standby database will tend
production by about half the size of a redolog file. So if those files are 100M, and you generate
Phone Cards
Prepaid Calling Card transactions in 30 minutes, then on average standby will be fifteen minutes behind.
Televisions
Virtual Server 4. What types of changes and statements on production will not be automatically app
IT Legal Contracts
Web Hosting In database parlance, any PHYSICAL changes to the db, plus any commands, issues with the N
Promote Your Website
Host your Site
Physical changes include creation of new tablespaces, adding new datafiles, renaming datafiles
Desktop Computers datafiles, altering redolog files, altering controlfiles and so on. In addition, primary database p
VPS Hosting commands using the UNRECOVERABLE option will not be propagated to the standby database.
Website Hosting
Site Hosting
There are specific and detailed instructions for making some of these physical changes on the s
Business Liability
Liability Insurance manually, however in many cases recreating the entire standby database per the instructions a
best option.
If you already have the manual_standby.sh script running from cron, disable it.
3 of 10 02/04/2011 04:20 PM
Manual Standby Database under Oracle Standard ... http://www.databasejournal.com/features/oracle/ar...
internet.com 7. What kind of messages can I expect to see in the standby alert.log?
IT
Developer The alert.log is going to have a lot of extra messages since we are repeatedly trying to RECOV
Internet News or may not be new transaction logs. When it does this it will say, "looking for archived logfile 1
Small Business
found". On the other hand, if it finds it, it will say that it is applying it. You can use unix comma
Personal Technology
"less" to scan through the alert.log file quickly.
Search internet.com
Advertise 8. What other scripts should be put in place?
Corporate Info
Newsletters
Tech Jobs a. a script to cleanup old archived redo logs on primary.
E-mail Offers
b. a script to cleanup old archived redo logs on standby
c. a script to rotate and archive the alert.log file when it gets large
d. a script to watch the alert.log file for ORA-xxxxx errors and report them to nagios if it fin
primary and standby)
e. a script to login (via ssh autologin) and check what the latest archived redolog file is, and
to the standby and check the alert.log file to verify that those transactions have been applie
Switchover *can* be done with a script, however I recommend with our manual standby datab
monitor for emergencies on production and (b) manually perform the failover if necessary. This
positives. Also, it allows you to ship additional redolog data if you have it available from produ
The listener.ora file should be already configured. You can use the same config as primary with
you can give this db a different tnsname. For instance, you could call primary SEANA and stand
your application server configs, when you failover, your database connection configurations ne
point to SEANB. The app servers will probably also need to be restarted at this point.
11. Why can't the primary ship redologs and synchronous changes?
Basically they call it a *manual* standby database for a reason. DataGuard supports options t
following:
4 of 10 02/04/2011 04:20 PM
Manual Standby Database under Oracle Standard ... http://www.databasejournal.com/features/oracle/ar...
LOG_ARCHIVE_DEST_STATE_3=ENABLE
12. Once we've failed over, how do we switch back to the primary?
a. Follow the steps in item 1 above to create a standby database on what was the primary s
13. Are there special init.ora parameters? What makes our standby database special
There are of course some init.ora parameters which are special for the standby database as we
DB_FILE_NAME_CONVERT
LOG_FILE_NAME_CONVERT
So if you do a "shutdown immediate" on the standby, you would start again with:
Conclusion:
Standby database technology in Oracle is a powerful high availability solution. Even if you're u
you can still take advantage of these features built into Oracle, with just a little scripting, hand
ample monitoring. Do your research, test, test, and test again on a development server. And d
monitor all your logfiles for errors. Following these guidelines, you should be in very good shap
cost.
Tools:
5 of 10 02/04/2011 04:20 PM
Manual Standby Database under Oracle Standard ... http://www.databasejournal.com/features/oracle/ar...
Oracle Archives
nice article with good explanations. I just wanted to point out that there is a tool that allows you
keeping your standby databases in sync. TvdStandby by Trivadis. See http://www.trivadis.com
/fileadmin/user_upload/Solutions/Technologieberatung/Admin_Tools/PDF_EN
/TvdStandby_070603_en.pdf.
Features: support for RAC and ASM, Graceful Switchover, even with ASM. Housekeeping and
Monitoring. Regards mzarick
excellent article.
Thanks
Srinivas
Excellent article , tried this. When i query select * V$archived_log on standby ; I get no rows selected.
Why?
6 of 10 02/04/2011 04:20 PM
Manual Standby Database under Oracle Standard ... http://www.databasejournal.com/features/oracle/ar...
I have a 10g linux oracle db. I followed all the steps, but run into problem when I did step 1.g
AUTO
ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
ORA-01195: online backup of file 1 needs more recovery to be consistent
ORA-01110: datafile 1: '/opt/oracle/oradata/sid/system01.dbf'
I've been looking for an article like this for some time. Very informative. I do have questions on some
of the steps:
1) Do I need to create the standby database using dbca first before copying the primary's data files
and config files over in step (1d)?
2)By config files you mean the tnsnames.ora, listener.ora, control and the init.ora files?
7 of 10 02/04/2011 04:20 PM
Manual Standby Database under Oracle Standard ... http://www.databasejournal.com/features/oracle/ar...
Your
name/nickname
Your email
Please type the alphanumeric characters above and click "Submit" to continue.What's this?
The Future of IT Continuity: Check out this webcast to see what it will take to get there.
You're Not Ready For Internal Cloud: Check Out Why.
Discover the opportunities and risks involved with virtualization. Read more.
How much will an IT security breach cost you? IBM and industry leaders share their insights.
Virtual Event: The Future of IT Continuity. Register now to see what will happen to IT continuity.
Latest Forum
Oracle Forum
Topic By Replies Updat
8 of 10 02/04/2011 04:20 PM
Manual Standby Database under Oracle Standard ... http://www.databasejournal.com/features/oracle/ar...
URL: e1.cdn.qnsr.com/cgi/d/2305/0/203
/641873/549914/i0.html?;y=http%3A
//www.databasejournal.com/features/oracle
/article.php/3682421/Manual-Standby-
Database-under-Oracle-Standard-
Search:
About Internet.com
Copyright 2011 QuinStreet Inc. All Rights Reserved.
Solutions
Whitepapers and eBooks
9 of 10 02/04/2011 04:20 PM
Manual Standby Database under Oracle Standard ... http://www.databasejournal.com/features/oracle/ar...
Webcasts
On Demand Webcast: Essentials for Managing Your SAP Applications MORE WEBCASTS, PODCASTS, AND VIDEOS
Software License Operations - Cleaning Up the Backoffice
10 of 10 02/04/2011 04:20 PM