Basic Standby Database(Manually Managed) in Standard edition
Hello,
We are using oracle SE where dataguard feature is not available. So we cloned the database and applied archived logs for recovery followed a metalink doc. Everything is good. Now I need to keep my standby in synch with primary, for this i need to manually transfer all the archived logs from primary to standby arch dest location. So any idea as this is a manual process which we cant scp daily...so do we have any script that we can set up in cron to scp the archive logs once during a particular time and then delete them after applying at standby? or else please tell any better idea if you have. Appreciate any help.
Thanks
kumar
Hello;
It might be simpler to use 'rsync'
rsync -e ssh -Pazv /ora/oracle/arch/ oracle@remote:/export/home/oracle/arch/
There's an example here :
http://www.databasejournal.com/features/oracle/article.php/3682421/Manual-Standby-Database-under-Oracle-Standard-Edition.htm
I use rsync for similar things like when I want to move a group of files without listing them.
Best Regards
mseberg
Similar Messages
-
Basic standby database configuration in Oracle10g standard edition
Have anyone successfully implemented the technology in Oracle8i and earlier known as "Basic standby database" in Oracle10g SE? From the information, that I've been able to gather, this technology still exists in Oracle9i and later, along with Oracle Data Guard.
I'm not interested in the complete Data Guard environment - only the standby database feature as mentioned above. Basci
I've tried the documentation regarding the configuration of Data Guard (in lack off precise documentation on this technology) - but it's very confusing what's possible on SE an EE editions.
I've followed all the guidelines, enabled archive logging on primary database, created standby control file, copied the primary database files, created the pfile from the primary database - and then used this as the source for the spfile on the standby database.
I can then mount the standby database and start the recovery process with the following command:
alter database recover standby database disconnect;
The database is altered but no archive is applied (I've manually copied the archive logs from the primary). I've configured the standby_archive_dest - but the status for the MRP0 process keeps saying: WAITING_FOR_LOG
It seems like the "automatic" recovery mode doesn't work on SE. My conclusion is that you'll have to do everything manually - which means that I've have run the recover command manually - everytime I want to apply the archive logs from the primary.
Does anyone have a complete how-to-guide on this issue or have tried implementing in a real solution?Hi,
>>The database is altered but no archive is applied (I've manually copied the archive logs from the primary). I've configured the standby_archive_dest - but the status for the MRP0 process keeps saying: WAITING_FOR_LOG
because ur using standard edition and in this edition the archivelog will not automatically move to standby from primary database.so u have to automatically transfer and apply it.
Thanks
Kuljeet -
Creation of Standby Database on Oracle 10g Standard Edition
Hi Gurus,
Can anyone let me know how to create physical standby database on Oracle 10.2.0.1(Standard Edition). I am using the Fedora7(32-bit) machine. Can anyone please send me some documentation on how to create.
Thanks in advance.
Thanks & Regards,
Farooqui.How to create physical standby database without dataguard
-
Standby Database on Oracle 10g Standard Edition ?
Hi All,
Is it possible to do Oracle Stand By Database on Oracle 10g SE ?
I read somewhere in this group that we can do standby database even in SE by writing a script that copy the archive log to the secondary server.
Is this approach reliable enough to be done in production ?
Does anybody have sample of the script ?
Thank you for your help,
xtantoHi,
Well, I think I'd beter put the scripts right there. Remember, they have been tested under MY environment, using MY releases, MY O.Ses. It's up to you to check whether the're valid for you. They are provided as is, for sample.
There are 4 files:
. generic.sh : you can duplicate this file in order to set up as many standby as needed, etc. It calls other scripts in order to:
. archivemove.sh : Get the archived redo logs to the standby host
. recover.sh : Synch the standby
. getrecid.sql : get the maximum progess point on the Manual Standby (used by archivemove.sh)
These scripts are used from the standby host. Remember to throughly check it before relying on it for production.
generic.sh
#!/bin/sh
# Be sure environment variable are set. If not, then it might fail!
# These environment variables are those for the Manual Physical Standby host
export ORACLE_HOME=/logical/oracle/Ora9i
export ORACLE_BASE=/logical/oracle
export ORACLE_STANDBY=tns_alias
export ORACLE_STANDBY_SYSDBA_PASS=change_on_install
export PATH=$ORACLE_HOME/bin:$PATH
export SOURCE_HOST=primary_host
export SOURCE_DRIVE=/primary/absolute/path/to/archived/redo/logs
export LOCAL_ARC_PARTH=/path/to/logical/archive/dest
# Check the date command usage depending on the platform
dateexec=`date "+%Y-%m-%d-%H-%M"`
# copy archived redo logs from main database
archivemove.sh > $dateexec.generic.log
# recover/sync the Manual Standby Database
recover.sh >> $dateexec.generic.log
archivemove.sh
#!/bin/sh
echo ----------------------------------------------------------------
echo ----------------------------------------------------------------
echo Get what log has last been applied to: $ORACLE_STANDBY
echo ----------------------------------------------------------------
sqlplus /nolog @getrecid.sql $ORACLE_STANDBY
echo ----------------------------------------------------------------
maxval=`tail -1 recid.log`
echo maxval=$maxval
rm recid.log
echo ----------------------------------------------------------------
# Check source drive to see what we're missing locally (source = primary)
for filename in `remsh $SOURCE_HOST 'ls $SOURCE_DRIVE' | sort`
do
# get archive number.
# WARNING here I'm based on MY archived redo log name format! Put yours for the cut
filename_parsed=`echo $filename | cut -c12-16`
# Check if the number is after the last one applied to standby
if [ $filename_parsed -gt $maxval ]
then
# grab it!
echo $filename
rcp $SOURCE_HOST:$SOURCE_DRIVE/$filename $LOCAL_ARC_PARTH
fi
done
echo ----------------------------------------------------------------
echo Removing old files
echo ----------------------------------------------------------------
# Check in local directory
for filename in `ls $LOCAL_ARC_PATH | sort`
do
# WARNING again about filename format
filename_parsed=`echo $filename | cut -c12-16`
# Check the arc number...
if [ $filename_parsed -lt `expr $maxval - 15` ]
then
# Delete it!
echo $filename
rm -f $LOCAL_ARC_PATH/$filename
fi
done
echo ----------------------------------------------------------------
echo end archivemove.sh
echo ----------------------------------------------------------------
recover.sh
#!/bin/sh
echo ----------------------------------------------------------------
echo Traitement de la base $ORACLE_STANDBY
echo ----------------------------------------------------------------
sqlplus /nolog << EOF
connect sys/$ORACLE_STANDBY_SYSDBA_PASS@$ORACLE_STANDBY as sysdba
SELECT MAX(RECID) "Log id now" FROM V\$LOG_HISTORY;
RECOVER AUTOMATIC DATABASE UNTIL CANCEL USING BACKUP CONTROLFILE
CANCEL
SELECT MAX(RECID) "Log id after recover" FROM V\$LOG_HISTORY;
exit;
EOF
echo ----------------------------------------------------------------
echo End of recovery process
echo ----------------------------------------------------------------
getrecid.sql
connect sys/change_on_install@&1 as sysdba
SET HEAD OFF FEEDBACK OFF VERIFY OFF TERMOUT ON ECHO OFF TRIMSPOOL ON SERVEROUTPUT OFF
SPOOL recid.log
SELECT MAX(RECID) FROM V$LOG_HISTORY;
SPOOL OFF
exitHTH building your own scripts.
Yoann. -
Can i create a standby database in oracle 10g standared edition ?
what are the steps required for creating a standby database using oracle 10g standard edition. or Any other feature for mirroring database in oracle 10g standared edition
Dear mithun,
Please read the following online documentation;
http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14239/standby.htm
+"+
+2.3.2 Oracle Software Requirements+
+The following list describes Oracle software requirements for using Data Guard:+
+* Oracle Data Guard is available only as a feature of Oracle Database Enterprise Edition. It is not available with Oracle Database Standard Edition. This means the same release of Oracle Database Enterprise Edition must be installed on the primary database and all standby databases in a Data Guard configuration.+
+Note:+
+It is possible to simulate a standby database environment with databases running Oracle Database Standard Edition. You can do this by manually transferring archived redo log files using an operating system copy utility or using custom scripts that periodically send archived redo log files from one database to the other. The consequence is that this configuration does not provide the ease-of-use, manageability, performance, and disaster-recovery capabilities available with Data Guard.+
+"+
Hope That Helps.
Ogan -
To create standby database using oracle 10g standared edition
my producation database is oracle 10G standard edition .Can i implement a oracle dataguard or standby database using standard edition licenses.if standby database is possiable in standard edition .what are the steps for creating a standby database using oracle 10g standard edition.
General answer is http://download.oracle.com/docs/cd/B19306_01/license.102/b14199/editions.htm#BABJICBB.
For Data Guard you cannot :
- use instance parameters to automatically send archived redo logs
- use instance parameters to resolve archived redo logs gaps
- create a logical standby
- use SQL statements to do switchover / failover
- use Data Guard Broker. -
Is it possible to configure a basic standby database with Oracle Express Edition?
no, they are not features of XE
-
Creating standby or logical standby database manually?
Hi,
I have to create 4 logical standby databases on a Linux Red Hat 64-bits server.
The primary databases reside on another Linux Red Hat 64-bits server.
The oracle database version is 10.2.0.3.
The question is as follows:
Should I create the logical standby databases manually or should I do it with the Oracle EM Grid Control?
I have read that the creation of standby databases with the Grid Control is very straightforward, but I really want to read of some of your experiences.
I have read that there are some problems in Grid Control with the test of Failover and Switchover.
Please advice.Hi,
It all depends.
I assume you don't backup your database to tape using RMAN.
Do you backup your database to disk using RMAN?
You would need to set up NFS links from your standby server to the primary server.
For this purpose, in 9i, I made sure my disk backup ended up in <directory>/backup/<nodename>, so I could easily set up a NFS link.
If you do it manually, you need to have made a full database RMAN backup first.
Probably Grid Control is taking care of this for you.
I have done it once using database control in 10g. It is really simple, and you just have to click a few buttons and sit back.
Doing it manually is slightly more work: you need to make sure parameters are correct and you need to write a (generic) script of less than 10 lines.
You probably do have more control over it, though RMAN's duplicate database command is robust and can be restarted easily.
I can't answer your last remark.
Hth
Sybrand Bakker
Senior Oracle DBA -
Standby DB is available in standard edition ???
Hi,
i want to ask whether standby DB feature is available in oracle standard edition server ???
Thanks
Steve
nullAccording to the 10g Licencing info, only table compression is listed under Table 1-1 Features Not Available with Oracle Database Standard Edition or Standard Edition One.
Cheers, APC -
Database link between Oracle Standard Edition and Oracle Enterprise Edition
Hi,
I am looking at setting up a data transfer process between an Oracle 11g Enterprise Edition database and an Oracle 11g Standard Edition database. Database links would be required each way.
I heard once that this is not permitted as connecting Standard to Enterprise via a DB Link means that the Standard Edition database would now need an Enterprise license.
I have searched around but can't find anything to confirm this. Am I being mislead by this information? Is it permitted to
connect Standard to Enterprise via a DB Link?
JohnJohn O'Toole wrote:
Hi,
I am looking at setting up a data transfer process between an Oracle 11g Enterprise Edition database and an Oracle 11g Standard Edition database. Database links would be required each way.
I heard once that this is not permitted as connecting Standard to Enterprise via a DB Link means that the Standard Edition database would now need an Enterprise license.
============================================================================
Where did you hear that?
--- On the internet
And you believed it?
--- Sure. They can't put anything on the internet that isn't true
Where did you hear that?
--- On the internet.
============================================================================
I have searched around but can't find anything to confirm this. Am I being mislead by this information? Is it permitted to
connect Standard to Enterprise via a DB Link?I would be shocked if it were not permitted due to licensing issues. When a db-1 has a link pointing to db-2, as far as db-2 is concerned db-1 is just another client .. no different than sqlplus. If you have an Enterprise Edition database, of course it will need to be properly licensed. But that doesn't mean all of its clients (including a SE database) have to be EE licensed.
But even my reply is just something you read on the internet. Licensing questions can only be definitively answered by Oracle itself. Ultimately you will need to put your hands on an official Oracle document or a written statement from someone authorized to make such statements.
>
John -
Dataguard with 11g Standard Edition
Hi, We have 11g standard edition. I wish to provide high availability. From the license document We are able to setup Basic Standby Database(Manually Managed). What is difference between Data guard and Basic standby? Hw can i configure? What r all the requirements? Any other possible ways?
Thanks. That document is very useful for me. That document contains Version: 8.1.7.4 to 10.2. But i have 11g. Is this applicable for 11g also.
Edited by: ziya on Apr 24, 2009 2:55 PM -
Standby Database with Standard Edition
Hi All,
I'm attempting to setup a Standby database with Oracle 10g Standard Edition. I must manually copy over the archive logs to my Standby database server because i'm using Standard Edition.
Once my primary database archive logs have been copied over to the standby location shouldn't the database automatically apply those archive logs? I have issued the "alter database recover managed standby database disconnect from session" so my understanding is that it is in recovery mode and shoudl be finding the archive logs to apply. Can anyone confirm that this configuration should work with Standard Edition and perhaps point me in the right direction, which parameters in the init file to check, to get my standby database to apply these archive logs automatically.
Thanks,To quickly determine the level of synchronization for the standby database, issue the following query on the physical standby database:
SQL> SELECT ARCHIVED_THREAD#, ARCHIVED_SEQ#, APPLIED_THREAD#, APPLIED_SEQ#
2> FROM V$ARCHIVE_DEST_STATUS;
ARCHIVED_THREAD# ARCHIVED_SEQ# APPLIED_THREAD# APPLIED_SEQ#
1 947 1 945 -
Standby Database on Oracle Standard Edition
Is there a way to create a standby database on Oracle Server Standard Edition? Some guys told me that it can be possible using RMAN. What are your comments on this?
Is there a way to create a standby database on Oracle
Server Standard Edition? Some guys told me that it
can be possible using RMAN. What are your comments on
this?hi,
Checkout Niall's site:
http://www.niall.litchfield.dial.pipex.com/index.html
He has some scripts for manual standby on windows
If posible, I'm looking some scripts for Linux Red Hat 3.0
Thanks
Gissel -
Creating Standby database with Oracle 10gR2 SE (no dataguard). Procedure
Hello,
I have problems in creating a standby database without Dataguard (Oracle Standard Edition)
-Oracle 10gR2 SE (No DataGuard !!!!)
- SUSE Enterprise 10.
Both primary and standby databases are running in Virtual machines (lab).
I will describe the exact steps I followed :
1.---------------------------------------------------
Both primary and standby databases have exactly the same file / folder structure
2.---------------------------------------------------
I enabled archive log mode with a new destination : /opt/oracle/oradata/orcl/archive_logs.
Also : SQL> alter database force logging;
3.---------------------------------------------------
I shut down the primary database (shutdown immediate)
4.---------------------------------------------------
I created a standby controlfile on the primary database:
SQL> startup mount
SQL> alter database create standby controlfile as '/tmp/standby.ctl'
SQL> shutdown immediate
5.---------------------------------------------------
I did a cold backup from the primary db to the standby db
(I copied all the db files, control files, redo log)
6.---------------------------------------------------
I copied from the primary db to the standby db the standby control file
(from primary /tmp/standby.ctl)
7.---------------------------------------------------
I copied from the primary db to the standby db the standby control file
(from primary /tmp/standby.ctl)
8.---------------------------------------------------
I created on the standby database a pfile from the spfile :
SQL> create pfile from spfile;
9.---------------------------------------------------
I edited the pfile and changed the controlfile location (with the standby controlfile created in step 4)
>>>>> *.control_files='/opt/oracle/oradata/orcl/standby.ctl'
10.--------------------------------------------------
I started the standby db
SQL> startup mount pfile='/opt/oracle/product/10.2/db_1/dbs/initorcl.ora'
SQL> alter database recover managed standby database disconnect from session;
SQL> quit
11.--------------------------------------------------
I made some changes on the primary db on user scott
SQL> update table set .......
12.--------------------------------------------------
I switched logfile on the primary db
SQL> alter system switch logfile;
13.--------------------------------------------------
I manually copied the new archivelog to the standby db
And then nothing !!!
The db changes are not applied.
Please help me fix the procedure !!!
ThanksHi
Ref to your Oracle SE Standby issue, we were in similar situation couple of years ago to build an Automated Standby for our disaster recovery on Oracle SE. We finally got a solution provider Anbul Technologies , they have a one of their solutions based on Oracle SE which provided fully automated Standby in Oracle SE.
We are successfully running that solution in our prod env for many years. You can visit their site www.anbultechnologies.co.uk or contact them for further details. They are Uk based but provides support and services all over Europe.
Cheers -
Physical standby database in Standard Edition.
Hi, we have Standard Edition and want to implement a stand by environment. Is it true that with this edition archive logs are not transported automatically to the stand by server using LOG_ARCHIVE_DEST = my_stdby_service ?
Also, let's suposse I managed to transport archive logs, do they get applied by stand by database automatically or with Standard Edition the only way we have is applying them manually?
Thanks and regards.Hi
Ref to your SE Standby database, if you are still looking for an Automated Solution you can visit www.anbultechnologies.co.uk . In solutions you can find a product which provides fully automated Standby solution with Automatic failover. We have been using that solution for couple of years without any problems.
This solution is based on Oracle Standard Edition and provide functionaility similar to EE data guard.
Cheers
Harry
Maybe you are looking for
-
PDF documents suddenly not opening in Firefox 3.5.6
I'm running Windows XP and using Adobe Reader 9.2 with Acrobat 6.0 installed. In the last couple of weeks Adobe Reader has suddenly stopped opening some PDF documents (but not all) in Firefox 3.5.6. The error message is attached. "The Adobe/Acrobat
-
Any Bapi or function Module to update standard table
Can u Plz let me know , is there any bapi or function module to update few fields of a standard table using an internable.
-
Best environment to work with Studio 10g?
Hi ! Which environment, in your experience, do you recommend as a good and stable one to work with Oracle BPM Studio 10g ? Windows Vista ? Windows 7 ? Windows 2003 ? I know the compatibility matrix, but we are suffering some performance issues while
-
Revision: 11118 Author: [email protected] Date: 2009-10-23 16:35:38 -0700 (Fri, 23 Oct 2009) Log Message: Did some code cleanup on the Spark components to enforce the conventions about how to order stuff within an AS file. QE notes: None Doc no
-
How to upload record 0018 instead of 18 from FF to IO
Hello, I am trying to upload data from FF into ZCOMP_CODE (customized 0COMP_CODE) which have records like this: 0001, 0018, 0167, 0313.... for CHAR 4. After succefull load I am able to see records as 1, 18, 167, 313. How can I load them as it is. Is