How to create a service for TAF without LB?

Hi,all:
env: 11.2.0.1 RAC (2 nodes of test6/test7 ,corresponding instance: testrac1/testrac2),db :testrac
I want to create a service to use Service-side TAF ,and also need let some app use rac1 only ,while other app use rac2 only. So I issue the following command:
testrac1: srvctl add service -d testrac -s testsrv -r testrac1 -a testrac2 -P BASIC -y AUTOMATIC -j LONG -e SELECT     -m BASIC -z 5 -w 30
srvctl start service -d testrac -s testsrv
create user cxall to test:
create user cxall identified by cxall ;
grant resource,create session,select any dictionary to cxall;
and I add entry in tns:
testrac_11g_staf =
(DESCRIPTION=
(ADDRESS = (PROTOCOL = TCP)(HOST = test6-vip)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = test7-vip)(PORT = 1521))
(CONNECT_DATA=(SERVICE_NAME=testsrv))
on client:
sqlplus cxall/cxall@testrac_11g_staf
select host_name from v$instance;
HOST_NAME
test6
and then I shutdown testrac1 to simulate testrac1 is off service:
srvctl stop instance -d testrac -i testrac1
and then re-execute the above command:
select host_name from v$instance;
It return error.report ORA-03113.
Can not fail over to testrac2!
why ?

$>srvctl status service -d testrac -s testsrv
Service testsrv is running on instance(s) testrac1
$>srvctl config service -d testrac -s testsrv
Service name: testsrv
Service is enabled
Server pool: testrac_testsrv
Cardinality: 1
Disconnect: false
Service role: PRIMARY
Management policy: AUTOMATIC
DTP transaction: false
AQ HA notifications: false
Failover type: SELECT
Failover method: BASIC
TAF failover retries: 5
TAF failover delay: 30
Connection Load Balancing Goal: LONG
Runtime Load Balancing Goal: NONE
TAF policy specification: BASIC
Preferred instances: testrac1
Available instances: testrac2
if I stop instance testrac1,
srvctl stop instance -d testrac -i testrac1
$>srvctl status service -d testrac -s testsrv
Service testsrv is not running.
the testsrv service cannot start on instance testrac2 auto,so the client connection will return ORA-12514 due to the testsrv is not running.
I have a doubt why Available instances doesn't effect!
If I use the following :
srvctl add service -d testrac -s testsrv -r testrac1,testrac2 -P BASIC -y AUTOMATIC -j LONG -e SELECT     -m BASIC -z 5 -w 30
the TAF will work well.But that may let some connection use testrac2 instance.
So I have such idea:
1.create service
srvctl add service -d testrac -s testsrv -r testrac1,testrac2 -P BASIC -y AUTOMATIC -j LONG -e SELECT     -m BASIC -z 5 -w 30
2.
srvctl start service -d testrac -s testsrv
3.
client tns:
testrac_11g_staf =
(DESCRIPTION=
(load_balance=off)
(ADDRESS = (PROTOCOL = TCP)(HOST = test6-vip)(PORT = 1521)) ---I need app only use test6,but also need TAF
(ADDRESS = (PROTOCOL = TCP)(HOST = test7-vip)(PORT = 1521))
(CONNECT_DATA=(SERVICE_NAME=testsrv))
4.
some test script:
in test6:
I make a huge file copy to make the test6 high load.
cat a.sh
count=0
while [ $count -lt 3 ] ;
do
count=`expr $count + 1`
cp *.zip aa
rm -rf aa/*.zip
done
nohup sh a.sh &
test.sh ---a loop shell to test which instance it connect
count=0
while [ $count -lt $1 ] ;
do
count=`expr $count + 1`
sqlplus -s cxall/cxall@testrac_11g_staf<test.sql
done
test.sql
col host_name format a30
select host_name from v$instance;
5.
perform the test:
test6:
sh test6.sh 10000 --- the output is test6
sh a.sh ---make the test6 high load,the tes6.sh output is still "test6"
srvctl stop instance -d testrac -i testrac1 -o abort ---stop testrac1 of test6
---the test6.sh output become to "test7" ,TAF is affect.
srvctl start instance -d testrac -i testrac1 ---restart instance testrac1 of test6 again
---the test6.sh output revert to "test6"
the test indicate the TAF and non-LB all work well.

Similar Messages

  • How to create an instance for RemoteSession without using create() method

    How to create an instance for RemoteSession without using create() method?

    What's RemoteSession? Not in the JDK. And does the question have anything to do with concurrency?

  • How to create a service for Oracle HTTP Server

    Hi,
    I hope someone can help me.
    I would like to create a service for an Oracle HTTP Server.
    We are running APEX 3.2 on an 10.2.0.4 database (not XE).
    We have a Windows XP system.
    To run APEX on a 10g we need the HTTP Server.
    Unfortunately no service was created while the installing of the Oracle HTTP Server.
    How can I create a service later. After the installation.
    I know that you can create a service with Instrsrv.exe and Srvany.exe. But I dont know wheather I can use this in this case.
    I need an .exe file for that.
    The HTTP-Server has the opmnctl.exe.
    But I have to write opmnctl.exe startall when I start or opmnctl.exe stopall when I want to stop it . How can I realize that in a Service?
    Thanks for your answer
    Jens

    Hi,
    I hope someone can help me.
    I would like to create a service for an Oracle HTTP Server.
    We are running APEX 3.2 on an 10.2.0.4 database (not XE).
    We have a Windows XP system.
    To run APEX on a 10g we need the HTTP Server.
    Unfortunately no service was created while the installing of the Oracle HTTP Server.
    How can I create a service later. After the installation.
    I know that you can create a service with Instrsrv.exe and Srvany.exe. But I dont know wheather I can use this in this case.
    I need an .exe file for that.
    The HTTP-Server has the opmnctl.exe.
    But I have to write opmnctl.exe startall when I start or opmnctl.exe stopall when I want to stop it . How can I realize that in a Service?
    Thanks for your answer
    Jens

  • How to create web service for a Java class in SAP NetWeaver Studio

    hi all,
    i am using SAP Netweaver Developer Studio.have created a normal java project and i want to create web service for one of the classes in this project. i used the  Web Service Creation Wizard to create a web service for this class. but it says there's no methods available for VI. all my methods in this class are public, what should i do?

    Hi,
    I guess there are other ways. But this is an easy way, if you find the right wizards.
    Besides this it is good practise to define interface methods so that session bean implement these interface methods, and thus seperate the interface from the implementation.
    In this approach you will need 3 projects:
    An enterprise application project (will contain EJB Module)
    An EJB Module project (will contain session bean)
    A Java project (contains code that implements the session bean methods)
    In my previous post I suggested to use a J2EE web mudule project. This was a mistake, it should be EJB module.
    But it should be possible to do it in another way. It is up to you.
    Good luck, Roelof

  • How to create web service for database application

    Hi everyone
    Is it possible to create a web service for an apex database application page which has reports and radio fields and dialog boxes and validations in it. IF it is possible to create, pls help me with example or step by step procedure. I have seen all oracle docs of implementation of Web services in apex but unable to figure out how to get that link of wsdl for an application.
    Thanks in advance.
    Regards
    Sandeep Artham

    Hi,
    I guess there are other ways. But this is an easy way, if you find the right wizards.
    Besides this it is good practise to define interface methods so that session bean implement these interface methods, and thus seperate the interface from the implementation.
    In this approach you will need 3 projects:
    An enterprise application project (will contain EJB Module)
    An EJB Module project (will contain session bean)
    A Java project (contains code that implements the session bean methods)
    In my previous post I suggested to use a J2EE web mudule project. This was a mistake, it should be EJB module.
    But it should be possible to do it in another way. It is up to you.
    Good luck, Roelof

  • How to create a service for the OHS (Apache 2.0) on Windows?

    I've downloaded the Oracle HTTP Server (Apache 2.0) (10.1.3.3.0).
    It works also fine with DB 10gR2 and APEX.
    But how do I create a windows service for the opmnctl.exe?
    Thanks
    Ralph

    I've downloaded the Oracle HTTP Server (Apache 2.0) (10.1.3.3.0).
    It works also fine with DB 10gR2 and APEX.
    But how do I create a windows service for the opmnctl.exe?
    Thanks
    Ralph

  • How to Create Gateway Service for Individual Account with create Operation?

    Hi All,
    I am new to the gateway service can you please guide me.
    Thanks,
    Prasaditha.

    Hello,
    Follow the below link for creation of gateway service. Prior to that, do check with the system setting like tRFC and system alias with the backend server(ECC),
    Detailed step by step procedure for Creating Gateway Service with all the CRUD Operations and testing them in Service Explorer Part1
    Thanks,
    SK

  • How to creat web service for a function module?

    who can provide me some resource on the topic.
    thanks
    Johnney.

    Hi John,
    http://help.sap.com/saphelp_nw04/helpdata/en/e9/ae1b9a5d2cef4ea4b579f19d902871/content.htm
    Reward Points if Useful
    All the Best
    Gokul

  • Issue in creating web service for a ABAP Function Module

    Hi,
    now i'm learning how to create web service for a ABAP Function Module. I used the following steps.
    1. select the Function Module, named "zws_test".
    2. in the context menu, select "create->proxy object". so we enter into wizard.
    3. in the wizard, press the radio button "Service Provider".
    4. in the next page, press the radio button "Existing ABAP Objects(Inside Out)".
    5. In the next page, Enter the "zws_test_prvider" as Service Definition and select "Function Module" as Endpoint Type.
    6. in the next page, enter "zws_test" as Function Module and mark the "Mapping der Namen" button
    7. in the next page,select "PRF_DT_IF_SEC_LOW" as Profile and mark "Deploy Service".
    8. Save in the local package.
    9. then it will pop up a window with title "WSDL Source". i selected "URL/HTTP Destination" and press "OK".
    10.in the next page, i enter the URL as "http://hostname:portnumber/", and press "OK".
    11. then it will pop up a window with title "Display logs". A record with error message "HTTP error(return code 404, message "Not found")" appears.
    12. i press "ok" and a service provider with name "zws_test_prvider" appears in my local package.
    13. i use "zws_test_prvider"'s URL to create a service consumer "ZCO_WS_TEST_CONSUMER" and logic portal "LP1".
    14. But when i test my service consumer "ZCO_WS_TEST_CONSUMER", it will throw an exception "cx_ai_system_fault" with errortext "SOAP:14 Unexpected element -el=definitions ns=http://schemas.xmlsoap.org/wsdl/".
    15. I use t-code SM59 to test connection  and get the following info.
          Status HTTP Response     200
          Status Text                      OK
          Duration Test Call             328 ms.
    who can give me the reasons about item 11 and 14, and explain me how to create service provider and service consumer for a Function Module.
    Thanks in advance
    Johnney

    have you seen this weblog
    /people/thomas.jung3/blog/2004/11/15/bsp-150-a-developer146s-journal-part-xiii-developing-abap-webservices

  • How to create iTune or App Store without credit card for my existing Apple ID without create new Apple ID or email?

    I got 2 Apple ID and the first time to I use it to iTune or App Store, a box will pop out and telling me this:
    "This Apple ID has not yet been used with the i Tunes Store. Please review your account information."
    Then, I click on the button, "Review". Bla bla... but ended up, I must provide a credit card in order to complete it.
    I do not have credit card, so I search 'How to create iTune or App Store without credit card', same link and same tactic only valid for New Apple ID.
    So, it seem no other option to create iTune or App Store without credit card for existing Apple ID, right?

    The same thing is happening to me!

  • How to create a Tip for a field in a Descriptive Flex Field in Self Service

    How to create a Tip for a field in a Descriptive Flex Field in Self Service ?
    Example :
    For Address
    Each Address Line should have one Tip.
    What should I do ?
    Thanks,
    John

    Hi John,
    It seems you have created Address Location DFF in self service in OA Framework.....
    I have created a Address Location flex in OA Framework . It dipslays the segments properly but i dont want to display the segments if they dont have any value.
    I only want to display segments with values . The segments with null values should not display at all...
    i.e , if Address Line 2 value is null , it should not display Address Line 2..
    If you have done this, pls let me know how to go abt it.
    Thanks in Advance,
    Tanveer

  • How to create a service call for more then one item

    Hi All,
            How to create a service call for more then one item. i.e. the service call should be logged for more then one item

    As you noticed this is not possible by design.
    Maybe you could have a dummy item for that purpose and register the real items to be handled in a UDT...
    HTH

  • How to create apple id for mac app store without using credit card and there is no any option for payment none. please tell how to download free apps from mac app store

    how to create apple id for mac app store without using credit card and there is no any option for payment none. please tell how to download free apps from mac app store

    my problem solve by me
    first create apple id
    fill credit card details
    and complete your account creating  process.
    than go to app store or itune store
    login your acount
    click right side  - account button
    than again login for account setting
    next go to payment information and click edit button
    when u enter payment infomation
    click none button in payment method and click done button.
    than ur credit card has been removed.
    but rs. 60 will deducted in your account when u doing this process.

  • How to create web service client

    Hi All,
    I am new to web services .Can any body explain how to create web service client ....
    Please give the give the discription step wise.
    Thanx
    Arun

    Hi Krishna,
    Yes it is possible.
    Check this Link
    [JDeveloper Web Service|http://www.oracle.com/technology/obe/obe1013jdev/10131/10131_wstopdown/wstopdown.htm#t2]
    http://www.oracle.com/technology/obe/obe1013jdev/10131/10131_wstopdown/wstopdown.htm#t2
    I strongly suggest you to go for Eclipse, instead of Netbeans or Jdeveloper incase of WebService. If you want to run your code in all the Server without making any changes go for Eclipse based development for Web Service.
    Kindly let me know if you need some more inputs.
    Regards,
    Zack

  • Problem with user services (creating a service for mpdas)

    Hi, I'm using mpd and using a user service to start it.
    However, I'm trying to create a service for mpdas (a mpd client for last.fm) and getting some errors:
    currently, my mpdas.service is as following:
    [Unit]
    Description=AudoScrobbler client for MPD
    After=mpd.service
    [Service]
    ExecStart=/usr/bin/mpdas
    [Install]
    WantedBy=default.target
    Which giving me the following errors:
    (14:49:55) [ERROR] You are not root. Not changing user ..
    (14:49:55) [INFO] Connected to MPD.
    (14:49:56) [INFO] Last.fm handshake successful. SessionID: ...
    terminate called after throwing an instance of 'std::ios_base::failure'
      what():  basic_filebuf::underflow error reading the file
    Aborted
    Which are the same errors I get if I run just "mpdas" instead of running it with sudo.
    If I use it as a root service (instead of a user service) it fails on startup, but works fine when I restart the server.
    So, I'm assuming:
    1) mpdas needs root permission
    2) if used as a root service, it fails at startup cause the mpd service (enabled as a user service) hasn't started yet
    3) if used as a user service, it fails cause it needs root permission
    What's the 'correct' way to solve this? (I believe mpdas should be a user service, cause it runs with a config that is just for my user).
    Is there a way to make a user service run with root privileges?
    I couldn't figure out the best way to configure it.
    Last edited by alv-r- (2014-11-29 18:37:56)

    TheSaint wrote:Why should it fails with sudo?
    It works only with sudo. It was failing as a system service because it needs mpd, which I configured as an user service. Then when systemd starts the system services (when booting) there's not mpd instance running and it fails.
    TheSaint wrote:Doesn't it works with fakeroot ?
    As a noob, I don't know exactly how fakeroot works, I'll take a better look at it, but running it with fakeroot takes rid of the errors I was getting when not running as sudo.
    The problem I have now is that it still fails on startup, but there isn't any helpful (or unhelpful) message. It just shows the PID and says it failed.
    If I run
    systemctl --user start mpdas
    it works well though. Any ideas of why this happens?
    My current unit file looks like this:
    [Unit]
    Description=AudoScrobbler client for MPD
    After=mpd.service
    Requires=mpd.service
    [Service]
    ExecStart=/usr/bin/fakeroot /usr/bin/mpdas
    [Install]
    WantedBy=default.target
    Raynman wrote:Why does it need root privileges? Maybe you just need to configure it properly to run under your normal user?
    Seeing the options in the man page and the config options for the config file, I don't see any that could do the trick.
    I'll send a message to the developer with the error I'm getting (when not running as sudo).
    Last edited by alv-r- (2014-11-29 18:36:59)

Maybe you are looking for

  • Port Forwarding on Home Hub 5 not working

    Hi, Is anybody else having problems getting ports to forward on their Home Hub or Home Hub 5? I am a new BT customer, less than a week infact and BT have been utterly hopeless in getting this resolved. All they do is send me instructions for port for

  • [Soundblaster Audigy 2ZS] Sound cutting out in middle of gamepl

    I have Vista, and I never had this problem with XP. I downloaded the Vista drivers and have ran Windows Update for all the missing drivers. When I run dxdiag.exe I go to the sound tabs and find this. The file ctaud2k.sys is not digitally signed, whic

  • HP Pavilion DV 9000 battery dead?

    I have a DV9000 series PC.  Several months ago I received a message from HP that the batteries in some DV9000 laptops were failing unexpectedly.  A link in the message sent me to a page with a program that scanned my PC and told me my battery was fin

  • Please Help... datagrid display double..

    i have 7 frames, each frame contain 1 datagrid(instance name "datagrid" for all datagrid. i put this code in each frame.. frame 1 datagrid.addColumn("Name"); datagrid.addColumn("Address"); datagrid.addColumn("Phone"); datagrid.addItem({Name:"John", A

  • Toshiba S50-a-10R will not boot

    Hi, My laptop started acting up very awkward. Yesterday, i used it, it worked fine and all was good. Today, i wanted to open it, and it would not boot at all. It turns on, it shows me the toshiba logo, and then it shuts down.  I managed to get into t