Glassfish in a Dataguard Environment

Hello,
i am not sure if this is the right place to post, if not please forgive me.
I am searching for some sample of jdbc connection pool Parameter when i also use a Standby Database in the backend.
I use "is-connection-validation-required" with checking dual table. The Problem is when my primary database (which is first in the connect descripter) fails (network outage) my database session needing a long time for reconnect. I have also change some network parameter (at TCP Level) to reduce the time where time JDBC Driver waits for the SYN_SENT event. But when we have over 100 Session to the Database and i must wait 2 Minutes for one session to close its to long.
I only want some ideas or example like use or not use "associate-with-thread" parameter or someone else has fixed this thing. I have also observed that setting the "ENABLE=BROKEN" Parameter is not getting the things better to work.
OS OEL 5 64Bit
Glassfish 3.2
JDBC (one of the latest version)
Using JDBC Thin (required)
regards
Peter

Hi, the July Patch can be from Metalink site into Note:432865.1 and the link is
https://metalink.oracle.com/metalink/plsql/f?p=130:14:1963896718475765486::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,278641.1,1,0,1,helvetica
Good luck.
Regards.

Similar Messages

  • Flashback in dataguard environment

    Hi,
    We have dataguard environment with Sun OS & Oracle 10g, 11g. Now we want to enable flashback for the primary database as well as standby database (physical standby). NO RMAN. I did manage to configure the flashback for the primary database but confusion is:
    -- Do I need to configure flashback at standby or recreate standby after enabling flashback at primary site?
    -- Suppose if I use flashback database to restore point and open database with resetlogs, what would be the situation at standby site? Will it be in sync with primary or after resetlogs I need to make new standby database??
    -- Is there any space requirement ratio for flashback recovery partition?
    Thanks,
    Amit.

    If you only enabled flashback on your Primary, your Standby is not affected. If you did actually a flashback database on your Primary, you need to address that on the Standby. See an example here:
    http://uhesse.wordpress.com/oracle-database-ha-architecture/2010/08/06/using-flashback-in-a-data-guard-environment/
    Kind regards
    Uwe Hesse
    http://uhesse.wordpress.com

  • Configuring rman for dataguard environment.

    Hi all,
    Here we have a dataguard environment with db1 as primary and db2 as physical standby database. We configured dataguard in 10g environments and we are not using grid control. Can anyone provide the steps for configuring rman for incremental backups in this environment? We want to schedule the backups to be taken in standby db, (that is applicable in case of swithover too). In the case of swithover to db2 what all do we need to do in rman manually to resume backups in db1?
    Thanks

    Hello;
    A Standby database is a copy of the Primary so if you try to register it RMAN will probably tell you its already registered. I would start with this :
    Standby based backup
    1. Enable auto backup of the control file and server parameter file. CONFIGURE CONTROLFILE AUTOBACKUP ON.
    2. Skip backups on datafiles already backup. CONFIGURE BACKUP OPTIMIZATION.
    3. Set the archive deletion policy. CONFIGURE DELETION POLICY TO NONE.
    You have to decide on the exact RMAN script you want to use, but since the database is registered you can perform backup on either the Primary or the Standby as the need arises.
    See "Using RMAN to Back Up and Restore Files" in "Data Guard Concepts and Administration 10g Release 2 (10.2) B14239-05"
    http://docs.oracle.com/cd/B19306_01/server.102/b14239/rman.htm
    Example in this post
    How to manage primary and standby database backups using rman catalog
    How to use standby backup to restore primary db
    http://alexzeng.wordpress.com/2008/09/13/how-to-use-standby-backup-to-restore-primary-db/
    Best Regards
    mseberg

  • How to test failover of dataguard environment?

    I would like to test failover (not switchover ) in dataguard environment.
    How to achieve that?
    Thanks.

    Hello;
    Happy to share my test notes :
    http://www.visi.com/~mseberg/Data_Guard_Failover_Test_using_SQL.pdf
    These oracle notes may also help :
    Can We Use Manual SQL*PLUS Steps For (switchover,Failover,etc....), If DataGuard Broker Has Already Activated And GridControl Is Also Used? [ID 744396.1]     
    Oracle10g: Data Guard Switchover and Failover Best Practices [ID 387266.1]
    Step by Step Guide on How To Reinstate Failed Primary Database into Physical Standby [ID 738642.1]
    Best Regards
    mseberg

  • Standby redologfile -Dataguard environment

    Hi,
    I have had a small confusion regarding an oracle Dataguard environment(standby database).
    If i add a redo log group in my production db say "PRODDB",is the same log file will be replicate to the standby db say "STDBYDB"?
    If so, based on which parameter settings/functions the redo log group switches may happen?
    Kindly suggest
    Regards,
    mafaiz

    Hello;
    No , it wont create.
    If you want to add Standby Redo you have to use a different method.
    1. On primary defer log shipping (dynamic change)
    alter system set log_archive_dest_state_2 = defer
    2. On standby database cancel managed recovery
    alter database recover managed standby database cancel;
    3 Create the new Standby logs
    ALTER DATABASE ADD STANDBY LOGFILE GROUP 4 '/u01/app/oracle/oradata/PRIMARY/redo04.log' SIZE 50M;
    ALTER DATABASE ADD STANDBY LOGFILE GROUP 5 '/u01/app/oracle/oradata/PRIMARY/redo05.log' SIZE 50M;
    ALTER DATABASE ADD STANDBY LOGFILE GROUP 6 '/u01/app/oracle/oradata/PRIMARY/redo06.log' SIZE 50M;
    4. Enable log shipping on the Primary database
    alter system set log_archive_dest_state_2 = enable scope = memory;
    5. Enable managed recovery on standby database
    alter database recover managed standby database using current logfile disconnect;
    Test of ONLINE addition
    set linesize 200
    select type,member from v$logfile;
    ONLINE /u01/app/oracle/oradata/PRIMARY/redo01.log
    ONLINE /u01/app/oracle/oradata/PRIMARY/redo02.log
    ONLINE /u01/app/oracle/oradata/PRIMARY/redo03.log
    STANDBY /u01/app/oracle/oradata/PRIMARY/redo04.log
    STANDBY /u01/app/oracle/oradata/PRIMARY/redo05.log
    STANDBY /u01/app/oracle/oradata/PRIMARY/redo06.log
    -- add ONLINE group 7
    /u01/app/oracle/oradata/PRIMARY/redo07.log
    alter system switch logfile;
    Check of Standby system, no group 7 exists
    Summary
    So neither ONLINE or STANDBY logs gets added despite STANDBY_FILE_MANAGEMENT=AUTO on both systems.
    Best Regards
    mseberg

  • Applying oracle patchset in oracle-dataguard environment

    Hello There,
    I wish to apply oracle patchset in oracle dataguard environment.
    can you please let me know the steps that has to be taken on Primary & standby database?
    is there any specific document for this?
    DB - oracle 10.2.0.4
    OS - Linxu x86_64
    Best Regards
    Sachin Bhatt

    Hi Sachinn,
    To patch primary site, you can find the detailed infirmation in readme.html, in the patch zip file. Additionally, at the standby site, In order to apply the patch;
    1) stop the log shipment
    2) stop the oracle related services
    3) patch the Oracle
    4) Startup migrate
    5) execute the SQL scripts
    6) start the log shipment
    Check the link below;
    http://dbaforums.org/oracle/index.php?showtopic=17398
    Best regards,
    Orkun Gedik

  • Oracle patching on Dataguard Environment

    Hi,
    I have to do oracle patching on my customer system having Dataguard environment.
    Can someone please guide me, if i have to run installer on both primary and standby server or not ?
    Is someone has done it in past, please share your experience.
    Thanks,
    Kanchan

    In Readme they have just mentioned to refer oracle note 278641.1. When i checked that note, it says
    1. In the primary disable log shipping to the standby site.
    2. Shutdown the standby site and apply interim patchsets to the RDBMS binaries as per the README. This includes Patchset/Patchset Update (PSU)/Critical Patch Update (CPU). You will not be able to and do not need to run the scripts (catpatch.sql etc) against the standby rdbms itself.
    3. Shutdown the primary site, apply the Patchset/PSU/CPU patch to the RDBMS binaries and patch the RDBMS itself using the instructions in the README (run catpatch/catbundle/catcpu etc).
    4. Start the primary site, re-enable log shipping to the standby.
    5. At the standby site restart redo apply/managed recovery and the RDBMS changes implemented in the Primary Site through catpatch/catbundle/catcpu will also be applied to the standby.
    Information about Bundle patch is clear. But Applying patchset is not clear.
    Do we need to run catupgrd.sql script on standby after patchset installtion ? or that will also be shipped through logs ?
    and if below command is right for disabling the Log shipping from primary ?
    SQL> alter system set log_archive_dest_state_2=defer scope=both sid='*'

  • RMAN catalog resync in Dataguard environment

    Hello,
    I have a quick question regarding the resync of the recovery Catalog in a 10g Dataguard environment...
    I plan to perform the backups from the physical standby side. (Backups of DB and archives).
    If I want to restore/recover a datafile on the primary side, do I automatically see the backup information once i am connected to the catalog DB, or do I have to perform a "resync catalog;" statement to resync the control file of the primary side with the actual backup information from the catalog?
    Thanks in advance,
    Boris...

    But what is the effect, if I perform this statement on the primary side? Do I loose backup information if I perform a resync of the catalog because the backups were made from standby side? If I perform all backups from standby side the control file on the primary side does not know about the backups.
    I am asking because I want to know if I have to adjust the backupscripts. They perform a resync of catalog per default.
    Thx, Boris..

  • Refresh primary db in a dataguard environment using datapump

    I just built a dataguard 10.2.0.3 environment(primary/physical standby)...we need to refresh the primary database using a datapump export. Can i just go ahead and refresh it just as i would refresh a normal database?
    For e.g., i would drop the users, create users, and run the datapump import. This will automatically get run on the standby as well, if i understand it properly. Has anyone done this and can confirm?
    Thanks.

    Thanks for the reply.

  • Patch application in a DataGuard environment!

    Just curious if anyone out there has any patch application best practices in a DG environment.
    Our environment is:
    - Oracle v 10.2.0.3
    - Solaris 10
    - DG in Physical Standby
    We are in the process of applying July CPU patch and just want to check if anyone out there has any recommendations.
    Appreciate all your help.

    Hi, the July Patch can be from Metalink site into Note:432865.1 and the link is
    https://metalink.oracle.com/metalink/plsql/f?p=130:14:1963896718475765486::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,278641.1,1,0,1,helvetica
    Good luck.
    Regards.

  • Flashback database in Dataguard environment

    On primary if i flashback database to a restore point, do I need to rebuild standby environment. Is there any other option. Can I flashback standby to restore point also. Can you please detail me the steps.
    These I think are the steps.
    1) Create Flashback database Guarantee restore point on Standby.
    2) Create Flashback database Guarantee restore point on primary.
    Backout
    1) Flashback Database to restore point on primary.
    2) Flashback Database to restore point on standby
    Is it possible if we follow the above steps we dont need to rebuild the standby after flashing back the primary database.

    If I flashback database to a restore point, do I need to rebuild standby environment?
    No, since the standby database should be synchronized to the primary (assumes no delay) it should come along for the ride.
    Can I flashback standby to restore point also?
    Yes, but the retention period must be greater or equal than the Primary database retention period.
    There are very few cases where you would want to do this on the standby.
    For example you might use it if a RESETLOGS was used on the Primary.
    Setup
    Guaranteed restore points provide a complementary capability to Flashback Database.
    You might set them up during an upgrade.
    Ex.
    CREATE RESTORE POINT before_upgrade GUARANTEE FLASHBACK DATABASE;
    FLASHBACK DATABASE TO RESTORE POINT before_upgrade;
    Section 5 of B14192-03 has some good information on this.
    This is worth a look too:
    www.oracle.com/us/solutions/sap/wp-ora4sap-flashback11g-1-303814.pdf
    Queries
    SELECT
      NAME,
      SCN,
      TIME,
      DATABASE_INCARNATION#,
      GUARANTEE_FLASHBACK_DATABASE,
      STORAGE_SIZE
    FROM
      V$RESTORE_POINT;
    SELECT
      NAME,
      SCN,
      STORAGE_SIZE
    FROM
      V$RESTORE_POINT
    WHERE
      GUARANTEE_FLASHBACK_DATABASE = 'YES';Best Regards
    mseberg

  • Delete Archive Logs In Dataguard Environment

    Hi YFA,
    I'm facing a FI, in my DG environrmnt :
    OS : Solaris 5.10
    Oracle : 10.2.0.4
    I've this env :
    Prod >>> Prod_DG
    In my rman shell svcript that delete archivelogs I make a "Delete Input" after Backup,
    but
    I fear that the archivelog are deleted without being applied in the dataguard Database.
    Does anyone has find a workarround? or does it exist a parameter in RMAN to bypass this ?
    PS
    To Att of Mr. : "someonelse"
    Pls do not Reply to this request,
    and Please replace your login from "someonelse" to "nobodyelse"
    Thxs

    Thxs for your Reply but I need one more Info,
    In the Standby Site how do I manage my archivelogs?
    When I connect with RMAn and I try a new configuration
    i Get an ORA 600
    RMAN> CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of configure command at 02/19/2009 15:40:04
    RMAN-03014: implicit resync of recovery catalog failed
    RMAN-03009: failure of partial resync command on default channel at 02/19/2009 15:40:04
    ORA-00600: internal error code, arguments: [13011], [51167], [20981165], [7], [20981165], [17], [], []

  • 9.2.0.6 DataGuard - how to "break" replication, make standby "standalone"

    Hi All,
    I have an existing 9.2.0.6.0 DataGuard environment, where currently I just have one primary and one physical standby database. I am planning to add in another physical standby database, but then at some point, I want to "break" the dataguard replication to this one, and basically take it out of the DataGuard environment, and have it run as a standalone database. I am not talking about putting it into "open read-only" mode, I want to completely remove it from the DataGuard replication, and have it up and running as a standalone db. Is that even possible? I don't see anything mentioned about this in the official DataGuard documentation.
    If anyone has any thoughts on the best way to do this, I'd really appreciate it!!
    Thanks,
    Brad

    Actually, both... here is my potential plan:
    1. Put a copy of the production database onto the new hardware, and instantiate it into the DataGuard configuration as a new physical standby database.
    2. "Break" the dataguard replication, so that the new database on the new hardware becomes a standalone database, separate from DataGuard. At this point, we can test out some of the application against this database. The testing could last up to a few weeks.
    3. Once we are happy with the testing, then we need to re-create this database as a backup from production, and get it back into the DataGuard replication as a standby. When it is time to cutover the production system, then we do a DataGuard Switchover, so that the database on the new hardware becomes the new primary database, replicating out.
    Does that sound feasible? I think I can take care of all of those steps, the only one that I don't really know how to do is step 2, where we "break" the dataguard replication, and bring up the database on the new hardware as a fully stand-alone db.
    Thanks,
    Brad

  • Standby log files in Oracle Dataguard

    Hi,
    What is the difference between standby log files and online redo log files in a Dataguard environment?
    What is the use of standby log files?
    Thanks,
    Charith.

    You're probably familiar with the Online Redo Logs (ORLs). Transaction changes are written from the Log Buffer to the ORLs by the LGWR process.
    If you are setting up a physical standby, then you will want to create Standby Redo Logs (SRLs) in the standby database. When SRL's are in place, a process called LNS will transport redo from the Log Buffer of the primary to the RFS process on the standby which will write the redo to the SRLs. If the SRL does not exist, RFS can't do this. The biggest benefit of using SRLs is that you will experience much less data loss, even in MAX PERFORMANCE mode. Redo will constantly be shipped. You won't have to wait for ARCH to transport a full archived redo log.
    Cheers,
    Brian

  • Configuring RMAN for dataguard.

    Hi all,
    Here we have a dataguard environment with db1(db_unique_name) as primary and db2(db_unique_name) as physical standby database. For both primary and secondary the ORACLE_SID is 'oracledb'.We configured dataguard in 10g environments and we are not using grid control. And now we want to configure rman for incremental backups. We are using a third catalog database to which we registered from primary db successfully. During primary rman configuration it is showing conflicts. Even the changes made in primary RMAN configuration are applied on to the standby too which i think shouldn't happen in this scenario. How to resolve this issue? Is this happening because of the same ORACLE_SID for both primary and secondary? I'm attaching the link of the doc that we followed also the errors and configuration in rman. Can anyone help?
    http://docs.oracle.com/cd/B28359_01/server.111/b28294/rman.htm#BAJFBBBB
    RMAN> CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY;
    new RMAN configuration parameters:
    CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY;
    new RMAN configuration parameters are successfully stored
    starting full resync of recovery catalog
    full resync complete
    RMAN-08591: WARNING: invalid archivelog deletion policy
    RMAN> CONFIGURE DB_UNIQUE_NAME db1 CONNECT IDENTIFIER 'db1';
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00558: error encountered while parsing input commands
    RMAN-01009: syntax error: found "db_unique_name": expecting one of: "archivelog, auxiliary, auxname, backup, channel, controlfile, clonename, compatible, datafile, device, default, exclude, encryption, maxsetsize, retention, snapshot"
    RMAN-01007: at line 1 column 11 file: standard input
    RMAN> show all;
    starting full resync of recovery catalog
    full resync complete
    RMAN configuration parameters are:
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 2 DAYS;
    CONFIGURE BACKUP OPTIMIZATION OFF; # default
    CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
    CONFIGURE CONTROLFILE AUTOBACKUP OFF; # default
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
    CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE MAXSETSIZE TO UNLIMITED; # default
    CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
    CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
    CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY;
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/10.2.0/db_1/dbs/snapcf_NIOS.f'; # default
    Thanks.

    RMAN> show db_unique_name;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00558: error encountered while parsing input commands
    RMAN-01009: syntax error: found "db_unique_name": expecting one of: "all, archivelog, auxiliary, auxname, backup, channel, controlfile, datafile, device, default, exclude, encryption, maxsetsize, retention, snapshot"
    RMAN-01007: at line 1 column 7 file: standard input
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00558: error encountered while parsing input commands
    RMAN-01009: syntax error: found ";": expecting one of: "allocate, alter, backup, beginline, blockrecover, catalog, change, connect, copy, convert, create, crosscheck, configure, duplicate, debug, delete, drop, exit, endinline, flashback, host, {, library, list, mount, open, print, quit, recover, register, release, replace, report, renormalize, reset, restore, resync, rman, run, rpctest, set, setlimit, sql, switch, spool, startup, shutdown, send, show, test, transport, upgrade, unregister, validate"
    RMAN-01007: at line 1 column 21 file: standard input
    But on this i'm getting response
    SQL> select db_unique_name from v$database;
    DB_UNIQUE_NAME
    db1
    same and db2 as db_unique_name for standby....
    Edited by: 954758 on Sep 3, 2012 3:41 AM

Maybe you are looking for

  • Printing grayscale by default in the HP LJ 500 color MFP M570dw

    Hello! Help me please, tell me how i can set by default for this printer printing grayscale? I have mac os, and windows, but in the driver settings i don't see this tick. And i need choose printing grayscale every time when i printing from any applic

  • Process chain 'OS COMMAND'

    Hi I would like to use the OS_COMMAND in process chain to rename file to another filename after data loaded from file into the targeted cube. Eg: I would like to delete brand.txt from folder named /interface/. I would like to create the command name

  • Source system field

    Hi all, I am looking for source system field in FCH8 or F-44 transactions. Can any one let me know what would be this field. Thanks Khan

  • ORA-24381: error(s) in array DML

    Hi, I encountered error during mya testing. The script run thru several cases, until it encouter this error ORA-24381: error(s) in array DML. What could be the possible reason for this and can anyone give an idea to resolve this issue. Bulk collect w

  • BLOBDestination. Problem in updating BLOB field

    hi, Im trying to customize BLOBDestination package to update a BLOB field. So I modified the method insertBLOB replacing the insert statement with this stmtStr = "UPDATE " + " " + tab + " " + "SET "+ "'" blobCol "'=" + "'" + "empty_blob()" + "'"+ "WH