What is best conection  string for application to connect to active standby

I have setup a primary db and an active standby database on two servers in different city.
Now for people to test it, what is the best tnsnames strings I should provide to them?
Plus how do I test it?
Thanks in advance.

Hello;
What you are looking at Transparent Application Failover for Data Guard. ( Way cool idea if you decide to use it )
Example
ernie =
(DESCRIPTION =
    (ADDRESS_LIST =
       (ADDRESS = (PROTOCOL = TCP)(HOST = Primary.server.com)(PORT = 1521))
       (ADDRESS = (PROTOCOL = TCP)(HOST = Standby.server.com)(PORT = 1521))
       (CONNECT_DATA =
       (SERVICE_NAME = ernie)
)The DBMS_SERVICE.CREATE_SERVICE will let create an alias for database which can be used on both servers so the end user never sees a failover.
The rough outline is
1. Create the service
BEGIN
   DBMS_SERVICE.CREATE_SERVICE('ernie','ernie');
END;
/2. Start the service
BEGIN
   DBMS_SERVICE.START_SERVICE('ernie');
END;
/3. default parameters can now be set for 'ernie'.
BEGIN
   DBMS_SERVICE.MODIFY_SERVICE
   ('ernie',
   FAILOVER_METHOD => 'BASIC',
   FAILOVER_TYPE => 'SELECT',
   FAILOVER_RETRIES => 200,
   FAILOVER_DELAY => 1);
END;
/4. Finally a database STARTUP trigger should be created to ensures that this service is only offered if the database is primary.
CREATE TRIGGER CHECK_ERNIE_START AFTER STARTUP ON DATABASE
DECLARE
V_ROLE VARCHAR(30);
BEGIN
SELECT DATABASE_ROLE INTO V_ROLE FROM V$DATABASE;
IF V_ROLE = 'PRIMARY' THEN
DBMS_SERVICE.START_SERVICE('ernie');
ELSE
DBMS_SERVICE.STOP_SERVICE('ernie');
END IF;
END;
/A complete document is available here :
http://uhesse.wordpress.com/2009/08/19/connect-time-failover-transparent-application-failover-for-data-guard/
Best Regards
mseberg

Similar Messages

  • Whats the BEST Deployment Practice for appsTier (2 Node) with RAC Database

    Hi All,
    Whats the BEST Deployment Practice for appsTier on Shared APPL_TOP between two application tier Nodes and a RAC Database.
    Regards
    Satish

    Satish,
    Could you elaborate; are you looking for how to distribute the tiers(forms, web, conc., etc.); are you asking about PCP (parallelt concurrent processing)..
    Regards,

  • What's SAP Router String for?

    Hi,
    I can not find proper module for me to post this message, so I post it here.
    When we create a new item in the SAP logon screen , we need to specify the following parameters:
    1) System description
    2) Message server
    3) SAP Router String (optional)
    4) System ID
    5) System Number
    4) Group
    My question is, what's SAP router string for? How to define a new SAP router string?
    Because sometimes we don't need to input SAP router string, and we can still logon to the system successfully.
    So, If I need to create a new SAP router string, where to define?
    Thanks.

    Hi
    A route string describes the stations of a connection required between two hosts. A route string has the syntax
    (/H/host/S/service/W/pass)*
    It consists of any number of substrings in the form /H/host/S/service/W/pass .
    A route string contains a substring for each SAProuter and for the target server.
    Each substring contains the information required by SAProuter to set up a connection in the route: the host name, the port name, and the password, if one was given.
    Syntax for substrings:
    ·        /H / indicates the host name‑{}‑
    Note that the host name must be at least two characters long.
    ·        /S/ is used for specifying the service (port); it is an optional entry, the default value is 3299
    ·        /W/ indicates the password for the connection between the predecessor and successor on the route and is also optional (default is u201Cu201D, no password)
    In earlier Releases (<4.0A), the password entry was made one substring later and with the letter /P/.
    New: /H/saprouter/W/pass/H/targetserver
    Old: /H/saprouter/H/targetserver/P/pass
    (Here pass is the password which is checked by the SAProuter on host saprouter to set up or prohibit the connection from the source host to the target host.)
    Due to downward compatibility, the old password entry form is still possible.
    Thenaks & Regards
    Kishore

  • HT3211 What is best track pad for laptop pro

    What is best track pad for Mac Pro laptop with mountain lion

    Honestly, the one right in front of your keyboard. It's hard to do better than that one, and the Magic Trackpad is just an external duplicate of that. In fact, my dad has one for his iMac, and I seem to recall that there are one or two things I can do with my built-in trackpad that he can't do with his Magic Trackpad... though my faulty memory means I couldn't tell you what those things are at this point.

  • Adobe flash player 11 doesen't works on 10.8.1! what can i do? whats the best flash player for mac?

    adobe flash player 11 doesen't works on 10.8.1! what can i do? whats the best flash player for mac?

    First try deleting Flash Player by carefully following the instructions on Adobe's website:
    http://helpx.adobe.com/flash-player/kb/uninstall-flash-player-mac-os.html
    Then install it again from this location only:
    http://get.adobe.com/flashplayer/

  • When you set up tracks what is best to pick for the input and output?

    When you set up tracks what is best to pick for the input and output? also what is the buss output? Thanks

    First part of the question I don't understand, so could you elaborate please?
    Second part: bus output is used for submixes, for example, let's say you want the same EQ to be applied to all guitars in the song, so instead of using same EQ plug-in on all guitar tracks, you feed the output from these tracks to a bus track and use the effect just once on this bus submix.

  • Whats the best virus checker for a MAC

    whats the best virus checker for a MAC

    rkaufmann87 wrote:
    And I'm of the school that says no virus checker is needed. This assumes the user has a minor amount of common sense and does download illegal software, visits *********** sites and keeps OS X up-to-date by using Software Update regularly.
    I'm in almost full agreement with everything you've said except for the ************** sites part. Most current Mac malware comes from very ordinary and even top level sites these days. Flashback came from hundreds of main stream WordPress blog sites. The New York Times primary web site was spreading malware for 24 hours before it was discovered. Users can no longer feel confident of not being infected just because they avoid sketchy sites.

  • Whats the best 500gb harddive for G5 june 2004?

    whats the best 500gb harddive for G5 june 2004?
    any links to uk website or give me the name and i'll look it up.

    This one for sure...
    Backwards compatible to SATA 1.5Gb/s or 3Gb/s systems.
    http://eshop.macsales.com/item/Western%20Digital/WD5002AALX/
    UK...
    http://www.amazon.co.uk/WD-Caviar-Black-WD5002AALX-internal/dp/B004DMFAJ2
    Jumper settings...
    http://wdc.cu

  • Hi Whats the best solar charger for my i phone 4

    Hi. Whats the best solar charger for my iphone 4. Thanks  James

    Hi James,
    I do a lot of biking and I found a company called Misuny that make a solar battery charger that your iphone slides into. You can charge it via USB and when I'm out and about it tops itself up by the solar panel. When your iPhone is running low on battery power just press the power button twice and it transfers the charge. It solved my problems! (although i cant make excuses to my wife that my battery ran out anymore!)
    misuny.co.uk for UK orders and i think misunycanada.com for US.
    Cheers!
    Jason

  • Do any imacs come with a touch screen if not whats the best touch  screen for a 2012 13inch macbook air

    Do any imacs come with a touch screen if not whats the best touch  screen for a 2012 13inch macbook air?
    Thx

    No they don't.
    Apple's position is that touchscreens are for tablets and phones (in Apple's case the iPad and iPhone) and that OSX does not need a touchscreen - the trackpad and/or mouse is more flexible.
    That may change in future but no one here knows.
    In answer to your second question, there is NO touch screen available for the MacBook Air (2012 or any other vintage), nor for the MacBook Pro.  If you must have a touchscreen, consider an iPad with a stand and a wireless keyboard.  Alternatively, a Windows 8.1 laptop or desktop???

  • What all connectors are available for OIM to connecting to a LDAP?

    Hi,
    Please let me know what all connectors are available for OIM to connecting to a LDAP?

    To answer your question a little more clearly:
    The first reply does have a list of connectors.
    If you are running OIM 9.x you will be better off using an older version of the Active Directory connector. You might have to search the web or request it through an SR. I have multiple versions of this particular connector to service different clients.
    If you are running OIM 11gR1 or 11gR2 or 11gR2PS1 then you will want to use the Microsoft Active Directory User Management connector which is the activedirectory-11.1.1.5.0.zip download. Be sure to apply patch p14190610 if you have OIM 11gR2 or PS1.
    If this answers your question completely please mark the thread accordingly.

  • What is best movie format for iBooks Author

    What is the best movie format for iBooks Author?

    Thanks for the people who helped my. Thanks to you I now have the answer.  It is as follows:
    1. Load your movie into Quick Time Player.
    2. When in Quick Time Player go to File then Export to then check Broadband H.264, 5Mbp/s maximum data rate.
    This worked for me so many thanks.

  • What is best antivirus software for Mac Mini? Recently the Trovi virus was on my computer and I want to make sure it is completely gone.

    What is the best antivirus software for Mac Mini?  I had thought Mac's were safer from viruses but recently I think the Trovi virus infected my computer, I have taken steps to remove but want to make sure computer is clean.

    To learn how to defend yourself from the threat of adware read How to install adware.
    There will always be threats to your information security associated with using any Internet - connected communications tool:
    You can mitigate those threats by following commonsense practices
    Delegating that responsibility to software is an ineffective defense
    Assuming that any product will protect you from those threats is a hazardous attitude that is likely to result in neglecting point #1 above.
    OS X already includes everything it needs to protect itself from viruses and malware. Keep it that way with software updates from Apple.
    A much better question is "how should I protect my Mac":
    Never install any product that claims to "clean up", "speed up",  "optimize", "boost" or "accelerate" your Mac; to "wash" it, "tune" it, or to make it "shiny". Those claims are absurd.Such products are very aggressively marketed. They are all scams.
    Never install pirated or "cracked" software, software obtained from dubious websites, or other questionable sources.
    Illegally obtained software is almost certain to contain malware.
    "Questionable sources" include but are not limited to spontaneously appearing web pages or popups, download hosting sites such as C net dot com, Softonic dot com, Soft pedia dot com, Download dot com, Mac Update dot com, or any other site whose revenue is primarily derived from junk product advertisements.
    If you need to install software that isn't available from the Mac App Store, obtain it only from legitimate sources authorized by the software's developer.
    Don’t supply your password in response to a popup window requesting it, unless you know what it is and the reason your credentials are required.
    Don’t open email attachments from email addresses that you do not recognize, or click links contained in an email:
    Most of these are scams that direct you to fraudulent sites that attempt to convince you to disclose personal information.
    Such "phishing" attempts are the 21st century equivalent of a social exploit that has existed since the dawn of civilization. Don’t fall for it.
    Apple will never ask you to reveal personal information in an email. If you receive an unexpected email from Apple saying your account will be closed unless you take immediate action, just ignore it. If your iCloud, iTunes, or App Store account becomes disabled for valid reasons, you will know when you try to buy something or log in to this support site, and are unable to.
    Don’t install browser extensions unless you understand their purpose. Go to the Safari menu > Preferences > Extensions. If you see any extensions that you do not recognize or understand, simply click the Uninstall button and they will be gone.
    Don’t install Java unless you are certain that you need it:
    Java, a non-Apple product, is a potential vector for malware. If you are required to use Java, be mindful of that possibility.
    Java can be disabled in System Preferences.
    Despite its name JavaScript is unrelated to Java. No malware can infect your Mac through JavaScript. It’s OK to leave it enabled.
    Beware spontaneous popups: Safari menu > Preferences > Security > check "Block popup windows".
    Popup windows are useful and required for some websites, but unsolicited popups are commonly used to deceive people into installing unwanted software they would never intentionally install.
    Popups themselves cannot infect your Mac, but many contain resource-hungry code that will slow down Internet browsing.
    If you ever receive a popup window indicating that your Mac is infected with some ick or that you won some prize, it is 100% fraudulent. Ignore it.
    The same goes for a spontaneously appearing dialog insisting that you upgrade your video player right this instant. Such popups are frequently associated with sites that promise to deliver movies or other copyrighted content "for free".
    The more insistent it is that you upgrade or install something, the more likely it is to be a scam. Close the window or tab and forget it.
    Ignore hyperventilating popular media outlets that thrive by promoting fear and discord with entertainment products arrogantly presented as "news". Learn what real threats actually exist and how to arm yourself against them:
    The most serious threat to your data security is phishing. Most of these attempts are pathetic and are easily recognized, but that hasn't stopped prominent public figures from recently succumbing to this age-old scam.
    OS X viruses do not exist, but intentionally malicious or poorly written code, created by either nefarious or inept individuals, is nothing new.
    Never install something without first knowing what it is, what it does, how it works, and how to get rid of it when you don’t want it any more.
    If you elect to use "anti-virus" software, familiarize yourself with its limitations and potential to cause adverse effects, and apply the principle immediately preceding this one.
    Most such utilities will only slow down and destabilize your Mac while they look for viruses that do not exist, conveying no benefit whatsoever - other than to make you "feel good" about security, when you should actually be exercising sound judgment, derived from accurate knowledge, based on verifiable facts.
    Do install updates from Apple as they become available. No one knows more about Macs and how to protect them than the company that builds them.
    Summary: Use common sense and caution when you use your Mac, just like you would in any social context. There is no product, utility, or magic talisman that can protect you from all the evils of mankind.

  • Whats the best mobile phone for syncing to macbook?

    I am about to buy a mobile phone and i want to know which one is the best, for ease of connection?

    Personally, I would recommend any of the later Sony Ericsson models. Either the K800 or K610 (supported in iSync 2.4), or any of the additional models supported by iSync Phone Plugins from here.
    You can see what data is synced on the page linked above. You can also use them with the Mac Address Book for SMS and Calls.

  • Whats the best web designer for mac?

    My site, jayapps.co.uk, is built on iWeb. But whats the best designer to use? (Mustn't be flash)

    I concur, this is what most professionals use. Dreamweaver is a horrible tool for this purpose, but it's favored because of it being packaged with other Adobe tools and there being a certain level of integration between them.
    If you are on a Mac and not already tithing to Adobe, you might like Freeway Pro, or even something basic like Nvu might satisfy your needs.
    Unfortunately, I've never really found what I would personally consider a reasonable platform for web-design: a powerful editor with integrated JavaScript debugger and real-time preview that can read actual HTML, CSS, and JavaScript as the native format; one that handles refactoring and changing the filesystem layout properly, integrates image editing, etc.

Maybe you are looking for

  • SPM(Spend Performance Management) on HANA

    Hi Experts, I need to implement the solution wherein we need the SPM tool to run directly on HANA. Please let me know if any documents available on the same. or if anyone has delivery such a solution. Thanks. Rohan

  • Disallow PGI Reversal of STO, If MIGO made against Outbound dly

    Hello all, Please guide me in solving this query it is STO between 2 plants under same company code (1) STO Pur Order made for 100 Pcs (2) [vl10b & vl02n] - partial goods issue made i.e., for 50 Pcs (3) [MIGO]- Goods Receipt made with reference to th

  • How stop ad videos from starting when I open FIrefox

    Whenever I start Firefox, unwanted advertising videos start playing in a superimposed window that I can't turn off. Should these not be stopped by popup blocker?

  • Can't join calls/group calls.

    I don't know what I did or how it happened, but I cant connect to any calls. Yes, my skype is at current verison.Yes, I've reinstalled skype (twice), no luck obviously. Here's a clip to help you figure out what the hell is going on. https://www.youtu

  • Problem calling AS3 class's methods from Flex Project

    Sorry if this is a stupid question, but after 2 days of Web searching and 2 books give up; I am a Java and c# programmer and am having problems calling AS3 classes (in packages) from Flex Builder 2 Flex Projects; the AS3 classes work great as Flex Bu