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,
xtanto

Hi,
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.

Similar Messages

  • 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

  • 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.

  • What is limit of database size in oracle 10g standard edition/edition one

    Hai All,
    What is the limit of database size in oracle 10g standard edition and standard edition one.. I see the white paper of oracle says that the limitation is 500 GB. This limitation is correct.? if correct then what happened after the limit..?
    Please help?
    Shiju

    What white paper would that be? I can't see any limit in the Oracle Database 10g Editions comparisons.
    C.

  • Forms 6i C/S with Oracle 10g Standard Edition

    ¿Somebody had installed Developer 6i C/S with Oracle 10g Standard Edition on Windows 2000, Windows 2003, Windows XP Professional?
    ¿What about the results?

    I believe this particular combination (6i Forms with 10g database) is not actually supported, so is perhaps best avoided.
    My own experience is that these forms run ok against a 10g database if compiled against a non-10g database, but if you try and compile the 6i form while connected to a 10g db, the results are unpredictable - forms which compile perfectly well against 9i fail against 10g, with all sorts of horrible looking internal error codes.
    regards
    Andrew
    UK

  • Create an Object in Logical standby database in Oracle 10G

    Hi,
    I have logical standby database in oracle 10g R2 for reporting purpose.Now i want to create procedure in logical standby which is use to create new temp table in logical standby and contained data generated from select operation on existing table.
    Can i create a new user in logical standby database,add new tablespace in logical standby which can insert,update and delete data in standby database base table?
    kindly provide me the steps to implement all this.What will be effect if i set guard_Status in v$database is NONE in logical standby?
    Thanks,
    Shital Patel

    Hi Shital,
    Guard_status protects the data from being changed.
    ALL- By default it is not possible for a non-privileged user to modify data on a data guard SQL apply database. This is because the database guard is automatically set to ALL.
    With this level of security, only SYS user can modify the data.
    STANDBY- When you set this level of security, users are able to modify data that is not maintained by the Logical apply engine.
    NONE permits any users to access the standby database as long as they have correct privileges. This is the normal security for all data in the database.
    You can change the guard status value from ALL to NONE in order to allow non-privileged users to modify data and Yes you can create user and extra tablespace in logical standby database..this is what the one of advantage of using Logical standby database.
    SQL> ALTER DATABASE GUARD NONE;
    Thanks

  • Installing Discoverer with Database Version Oracle 10g Express Edition

    Hello,
    Is it possilbe to install Discoverer with database version Oracle 10g Express Edition? I have Oracle Fusion Middleware 11.1.1.1.0 on my Windows XP machine as well. If so, can someone please provide me a link to the Discoverer download.
    Regards,
    Kelly

    Note that the Personal Edition of the database is 'the most powerful' version, in that it contains all features and options of the Enterprise Edition (expect RAC and Enterprise Manager packs)
    As such, the Personal Edition, at a mere USD$400-500 is one of the most cost effective for-fee products that Oracle has in it's inventory. It is targeted at the developer. And it comes with the complete set of Sample Data, whereas XE has a very limited subset (since it does not support all functionality).
    Express Edition is indeed free, but it is not supported, and can not be patched. OTOH it does have a lighter footprint.
    Again, I am not sure whether Disco 11g is compatible with Express Edition. (It's on my schedule for December ...)

  • Oracle Streaming Queues in Oracle 10G standard Edition

    I would like to configure and implement Oracle Streaming Queues in Oracle 10G standard Edition. If it is possible then please guide me and give me some clues and if not then please advise me some alternate method.

    Here is the guidance you requested.
    License information:
    http://download.oracle.com/docs/cd/B19306_01/license.102/b14199/toc.htm
    Technical information:
    http://tahiti.oracle.com/
    Since I don't even know what version you have ... this is as far as I can take you.

  • Upgrading from Oracle 10G standard edition to Oracle 10G enterprise edition

    Hi
    I want to upgrade from Oracle 10G standard edition to Oracle 10G enterprise edition. Is there any script provided by oracle which I can run on existing Oracle 10G standard edition to upgrade to enterprise edition after completing the licensing formalities or do I need to install Oracle 10g Enterprise edition from scratch and then migrate my data.
    Ramanbir S

    You will not need to perform any data migration to upgrade to EE. The diffetence between standard en enerprise editions are the features offered. When you upgrade you can use the same set of files you used to install standard edition and just add the enterprise edition features you want to use in the 'Custom' section of the Universal Installer.

  • Limitations of Oracle 10G XE as against Oracle 10G Standard Edition

    Can you please give the information regarding....
    1. Capabilities of Oracle 10G XE (Express Edition)
    2. Limitations of Oracle 10G XE as against Oracle 10G Standard Edition

    Have a look at the License Information:
    http://download-uk.oracle.com/docs/cd/B25329_01/doc/license.102/b25456/toc.htm#BABJBGGA
    There's also a feature matrix in pdf-format:
    http://www.oracle.com/technology/products/database/oracle10g/pdf/twp_general_10gdb_product_family.pdf
    C.
    Message was edited by:
    cd

  • Oracle 10g standard edition installation and problems with logon (help pls)

    I installed 10g standard edition, however I got the following two messages during installation:
    1) The host IP address can not be determined
    2) Missing or Invalid password ...
    Eventhough I unlocked all the passwords during install (tiger/scott, sys, system, etc) I can not logon now with none of them ("invalid username/password: logon denied"). I also get "ORA-12170: TNS: Connect Timeout Occured" when trying to lgoon with my email addr and password used for installation.
    Please help, this is frustrating. Thx!
    P.S> Do I need to input anything in the "Host String" box ?

    Chances are
    1) you are using WIndows of some sort;
    2) your machine does not have a static IP address (you are using DHCP);
    3) you have not installed the loopback adapter, as desrcibed in the installation document.
    You may want to review the Oracle Database 10g (release whichever you are using) "Installation Guide" manual for your operating system again. I think you missed a step.

  • 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

  • Physical Standby database Oracle 10g Standard Edition

    Hello,
    I open a new question about testing a standby database a because of this:
    I realize that my standby database is 10g Standard and not Enterprise and not 11g.
    Because for testing we plan to modify data on Standby, we are looking for some way to restore Standby to the point before testing.
    So, I can't use Flashback Recovery Area for restoring my database to a certain point after testing.
    In this scenario, the only way that I think is:
    On Standby
    - Shutdown database
    - Copy by O/S all datafiles, temp files, control files and redo logs. That will be my backup before testing.
    - Open database, test and modify data
    - When test is finished, shutdown database
    - Copy and replace by O/S all datafiles, temp files, control files and redo logs from backup place
    - Open database as standby and apply all archived redo logs needed.
    Would be it work without problem or should I copy other files?

    user521219 wrote:
    Hello,
    I open a new question about testing a standby database a because of this:
    I realize that my standby database is 10g Standard and not Enterprise and not 11g.
    Because for testing we plan to modify data on Standby, we are looking for some way to restore Standby to the point before testing.
    So, I can't use Flashback Recovery Area for restoring my database to a certain point after testing.
    In this scenario, the only way that I think is:
    On Standby
    - Shutdown database
    - Copy by O/S all datafiles, temp files, control files and redo logs. That will be my backup before testing.
    - Open database, test and modify data
    - When test is finished, shutdown database
    - Copy and replace by O/S all datafiles, temp files, control files and redo logs from backup place
    - Open database as standby and apply all archived redo logs needed.
    Would be it work without problem or should I copy other files?yes, It will work.
    it comes under Refresh of database, use --> cleanup --> restore.
    If its enterprise edition , you can use procedure mentioned in this note How To Open Physical Standby For Read Write Testing and Flashback [ID 805438.1]
    Edited by: CKPT on Jul 5, 2012 11:01 PM

  • What replication methods are available in Oracle 10g Standard Edition?

    Hi All,
    Our customer wants to have two identical servers at two different sites (Virginia and Utah). Server in Virginia will be the primary and the other one will be Standby. Application will run on the primary database and they would like to be able to use the Utah server (standby) in the event of a failure. The switch over can be manual or automated and does not have to be instantaneous.
    I know these things can be in Enterprise Edition, but the cost is an issue here, so I was wondering what other methods are available to achieve this goal with Standard Edition database running on Windows Server 2008?
    Thank you,
    Sinan

    Spajdy,
    According to the Data Guard documentation:
    Getting Started with 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."
    Unfortunately, the cost is a concern. I would love to be able to use just the Enterprise Edition and Golden Gate or Data Guard, but it is not possible, so my manager says I have to do what I have to do with the Standard Edition.
    Thanks,
    Sinan

Maybe you are looking for

  • Mapping not showing up for Oracle Tables

    I'm just getting started with OWB after attending a class and am using the textbooks received with the course. I've created a project with modules for different schemas each containing several Oracle tables. I don't get the Mapping for either of thes

  • How do I format a table in Pages so that I don't have to keep reformatting every time I go to a new cell?

    how do I format a table in Pages so that I don't have to keep reformatting every time I go to a new cell?

  • How to find variant config material changes

    Hi! I have a requirement to compare variant config material under an equipment sales order. Scenario is:- Suppose company has sold one product and that product is variant configured. Under configuration tab user has selected different characteristics

  • Review:  Apple A/V Cable

    Bought A/V Cable at Apple Store tonight! Comes with a USB A/C adapter (USB female connector, which I assume works with the standard USB cable as well as the A/V cable). Connected via RGB to my TV: . Movies worked fine . Video podcasts worked fine . S

  • IPOD Mini won't update

    I have had my IPOD mini for a couple of months but the last several weeks it will not update the new songs I have purchased from ITunes to my IPOD. The battery is being recharged when I connect my IPOD to my computer but nothing is being updated. I h