Query on adapter.ini - DBApter

Hi,
I have installed Infustructure Database in the same box where I have installed Oracle Apps Server. That particular is not big enough to run Oracle Apps server, Database server in full effect and Adapters. Now I want to move the tables and procedures in a different database fron there a dblink will be created to communicate with OAI schema.
The problem is in the DBAdapter how can I specify two different database informations.
Please find the part of a snap from DBAdapter where actually DB information is specified :
db_bridge_num_schemas=1
db_bridge_schema1_username=oai
db_bridge_schema1_password=testme12
db_bridge_schema1_host=iphbit04
db_bridge_schema1_port=1521
db_bridge_schema1_instance=infra101
db_bridge_schema1_num_readers=1
db_bridge_schema1_num_writers=1
db_bridge_schema1_writer_username=ichub
db_bridge_schema1_writer_password=testme12
db_bridge_schema1_writer_use_oracle_objects=true
Now from the data above I want to specify Reader and Writer in two different separate database. But there is only one place where I can specify database hostname, port, sid. How can I specify the other database information ?
Regards,
Koushik

I sad no!
You should use separate adapter for each database.
But you may try set db_bridge_num_schemas=2 and define all the db_bridge_schema2_* parameters and see what you get.
If you'll do that - let me know about the results. I'm interested what will be in case of receiveing message (subscribe) and sending (publish) of such an adapter?
Is the result equal when publishing from the first and the second DB?

Similar Messages

  • SQL query in adapter process task

    Hi all,
    I am building a custom connector with its bunch of adapters.
    In one of the adapters, i need an auto increment number and therefore i have built an SQL sequence in the DB. Is there a way to use the tcDataProvider variable mapped to the adapter database reference to execute an sql query and retrieve the number? What other ways may i have to accomplish this task?
    thx in advance

    i've found the jar containing the tcErrorReceiver class. But now i get this exception
    + Thor.API.Exceptions.tcAPIException: Error while getting utility Thor.API.Base.tcUtilityOperationsIntf +
    +     at Thor.API.tcUtilityFactory.getRemoteUtility(tcUtilityFactory.java:433) +
    +     at Thor.API.tcUtilityFactory.getUtility(tcUtilityFactory.java:330) +
    +     at FirstAPITest.main(FirstAPITest.java:46) +
    below is my code.
    +public static void main(String[] args) {+
    +          System.setProperty("XL.HomeDir", "/home/alex/workspace/OIMSignatureClient"); +
    +          System.setProperty("java.security.auth.login.config","/home/alex/workspace/OIMSignatureClient/config/authwl.conf"); +
    +          System.setProperty("java.security.policy","/home/alex/workspace/OIMSignatureClient/config/xl.policy"); +
    +          try{ +
    +               System.out.println("Startup..."); +
    +               System.out.println("Getting configuration..."); +
    +               ConfigurationClient.ComplexSetting config = +
    +                    ConfigurationClient.getComplexSettingByPath("Discovery.CoreServer"); +
    +               System.out.println("Login..."); +
    +               Hashtable env = config.getAllSettings(); +
    +               tcUtilityFactory ioUtilityFactory = new tcUtilityFactory(env,"xelsysadm","Technology0"); +
    +               System.out.println("Getting utility interfaces..."); +
    +               tcBaseUtility mBaseUtil = (tcBaseUtility) ioUtilityFactory.getUtility("Thor.API.Base.tcUtilityOperationsIntf"); +
    +               tcDataProvider databaseReference=mBaseUtil.getDataBase(); +
    +               +
    +          }catch (Exception e){ +
    +               e.printStackTrace(); +
    +          } +
    +          System.exit(0); +
    +     } +
    +} +
    any ideas?
    Edited by: Prorad on Dec 17, 2010 6:48 AM

  • Query operation in file adapter

    Dear All,
    we have faced several issues in using polling for production env.
    We have to ensure sequential nature of data, which means FIFO order of inserts
    is there any alternative to using polling - Receive in file adapter ?
    Can we use {query database adapter  - invoke activity } in file adapter ?
    Please let me know if any body as any leads.
    Appreciate your response.
    Regards
    Arc

    we cant use Invoke activity for Read functionality for File Adapter but there is another way to achive this we can use two recieve activities in one BPEL please find the Sample here $BPEL_HOME\samples\tutorials\109.CorrelationSets
    Krishna

  • InterConnect - FTP adapter:Message queue empty

    Hi,
    I have installed oracle InterConnect 9.0.4.
    The send point and receive end point are configured as separate folders
    ota.send.endpoint=ftp://hcsdlx01/interexample/sender/
    ota.receive.endpoint=ftp://hcsdlx01/interexample/receiver
    We have placed an xml file at the sender location.
    And trying to retrieve at reciever end point
    But we are getting a message saying message queue empty in the oailog.txt
    can anyone shed the possible sources of error.
    Regards
    Venkat

    Finally succeeded in spotting error.
    The FTP adapter.ini file was not configured properly
    The point is that The send point and receive points should be as per the file system.
    In our case the endpoint as we see in browser say:
    ftp://example/endpoint
    but in the file in Unix server was
    <dir1>/<dir2>/endpoint
    In the adapter.ini we changed to endpoint = <dir1>/<dir2>/endpoint.
    It started working properly,
    Thank u marcus

  • FTP Adapter - Send (Target)

    Hi,
    I have interconnect 9i standalone installation on HP-UNIX with most of the adapters installed.
    The integration scenario/flow of the data is:
    Source: DB Adapter
    Target: DB Adapter and FTP.
    I have multiple targets in the above scenario. The integration trigger point is change in a table of the Source DB Adapter.
    The integration works fine from Source DB to Target DB. Whereas the second target adapter FTP is not receiving the data/creating a file as mentioned in the parameter file.sender.file_name_rule in the adapter.ini file. I have included the settings of my adapter.ini below:
    application=trg_consultants_ftp
    bridge_class=oracle.oai.agent.adapter.technology.TechBridge
    ota.type=XML
    ota.send.endpoint=file://localhost/shahul/ftp/out
    file.sender.type=ASCII
    file.sender.file_name_rule=emp_%TIME%.xml
    the other settings is as default. Could any one help me why i am not able receive the file. The APP view of the Ftp adapter was created using a DTD. I exported the PL/SQL code for the application and got a empty package definition. Hence i didnt create the package for Ftp.
    Thanks,
    Shah

    Hi,
    I defined the message type as XML (ota.type=XML). I thought i may have to create the PL/SQL package for FTP adapter too - like a DB Adapter. But now my integration is working and both the DB and FTP adapter are subscribing the message from the hub. Actually i had some of the receiving end property enabled and then i commented them and restarted the adapter then it started working.

  • How to get file name in adapter module

    Hi all
    Is it possible to get the file name in a adapte module? If so how can I achieve this?

    Hi,
    Check below thread. it shows code for file name.
    [Re: Query regarding Adapter Module development]
    -Gouri

  • ORA-06550: Error in Oracle InterConnect DB Adapter

    Hi,
    We are facing a problem while inserting a row into
    Oracle database using Oracle InterConnect DB Adapter.
    All the required configuration information like AppViews,CommonViews,Events,Application etc have been
    created and configured in iStudio.
    At runtime, OracleDB Adapter bridge (subscription) gets
    the message from the interconnect hub and throws the
    following error, while trying to insert the details into
    table.
    Error: db_bridge_writer_1 could not write the message to
    the database because of an application error (java.sql.SQLException: ORA-06550: line 1, column 7:
    PLS-00201: identifier 'EMPLOYEE_OBJ.SUB_NEWEMPLOYEE_OAI_V1' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    ) in the application stored procedure. Please check your stored procedure. (Em
    ployee_Obj.NewEmployee:OAI/V1,OAI/V1,false,0
    EMPNO: 1000.0
    FULLNAME: aaaaaaaaa
    MANAGERNAME: sss
    DIVISIONNO: 19.0
    ) was not written to the database.
    java.sql.SQLException: ORA-06550: line 1, column 7:
    PLS-00201: identifier 'EMPLOYEE_OBJ.SUB_NEWEMPLOYEE_OAI_V1' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:189).........
    Following is the stored procedure that was defined in the
    iStudio at the design time.
    PROCEDURE sub_NewEmployee_OAI_V1(
    EMPNO IN NUMBER,
    FULLNAME IN LONG,
    MANAGERNAME IN LONG,
    DIVISIONNO IN NUMBER
    AS
    dummy NUMBER;
    -- fill declarations here
    BEGIN
    -- fill code here
    dummy:= 0;
    'insert into employee values(EMPNO, FULLNAME,MANAGERNAME, DIVISIONNO)';
    END sub_NewEmployee_OAI_V1;
    What could be the reason for this error? Are we missing
    something in the configuration?
    Appreciate any pointers in solving this issue.
    Thanks in advance,
    Regards,
    Murali.

    Murali,
    Where have you installed the Package EMPLOYEE_OBJ in your database?
    It sounds like you've missed this vital step.
    In iStudio...File > Export PL/SQL. Expand your subscribing Application (e.g. APPS) ... APPS > Subscribed Events, and highlight "Subscribe(EMPLOYEE_OBJ.NEWEMPLOYEE)". Press the "Browse" button, and select where you want to save the file. (e.g. d:\iStudio_Packages\XXOAI). The "XXOAI" prefix is added to the start of the created file.
    A *.sql file will be created in the directory you specified (e.g. d:\iStudio_Packages\XXOAI_APPS_EMPLOYEE_OBJ.sql).
    (Note: Ignore the empty "XXOAI_APPS_EMPLOYEE_OBJTypes.sql" file as you haven't created any new ones (i.e. NUMBER and LONG are standard))
    Login to SQL*Plus now, as the same user specified in your DB Adapter.ini file (Hint: In adapter.ini, look for the entry "db_bridge_schema1_writer_username=[Your DB User]", e.g."db_bridge_schema1_writer_username=APPS.)
    Execute the iStudio generated XXOAI_APPS_EMPLOYEE_OBJ.sql file.
    You will now have the Package EMPLOYEE_OBJ created, together with a procedure SUB_NEWEMPLOYEE_OAI_V1.
    You will notice that the DB Adapter (unless you've stopped it and cleared down any persistence files), will automatically find this new Package and Procedure, and will have updated your 'Employee' table. :-)
    Hope this helps
    Ian

  • Novice Question:  XML File using FTP Adapter Help Requested

    I need to create (publish) a message from an XML file that is written to a particular folder on a Win2000 machine (I intend running the adapter on the same machine). I think that the FTP adapter should be the easiest way to do this but I have only used this adapter to publish DL3-defined files, and only then on a unix platform.
    Is the FTP adapter the correct approach or is there a better way, and if it is the correct approach, can anyone point me to a sample application or pass along a sample adapter.ini so I can figure out configuring the adapter.
    Thanks
    Eric

    We use the FTP adapter for both reading and writing XML files. And it works quite OK (there are a few gliteches but nothing you cannot work around). You need to first make (find) a DTD for your XML file and import that as the AV for the message in IS (IStudio). Then you just point the adapter to the correct directory and it should work from there.
    As for better way Im not sure I'm no InterConnect expert but I dont know any other way to do it.
    Might be worth to notice (if you didn't already know) that you dont actually need FTP if it is on the local filesystems you can in the FTP adapter read from the local FS something along the lines of file:///c:/foo/bar as oposed to ftp://...
    As for adapter.ini you shouldn't need anything besids pointing the reciver to the correct directory the rest is done from IS.
    Let me know if you want more details...
    // MickeM

  • Sendpoint metadata in HTTP Adapter

    Hi All
    I'm trying to configure several parameters not through the adapter.ini file but through iStudio defined metadata.
    This is the standard way suggested in the (scarce) documentation to handle multiple endpoints and other parameters.
    According to the "Oracle9 iAS InterConnect Adapter for HTTP
    Installation and User�s Guide" the way to do it is through a "Modify Fields button of the Subscribe Wizard - Define Application View dialog".
    The problem is... I cannot get that button in any subscribe wizard when the document type is "XML". I can get that button by selecting "Generic" as the message type when subscribing to the event, but the Fields I have to create (nothing to modify there in) are ignored by the HTTP Adapter.
    Has anybody out there done this and can help me ?
    Regards
    Gast�

    Hi Gaston,
    Yes, you are correct in using the "Generic" message type which essentially is equivalent to XML, except you now have to specify the Root element manually.
    Now, there are a few additional things to check which I will describe here.
    1- You must define the Modify Fields properties on the subscribing side, not on the publishing side.
    2- You need to define a unique endpoint name for each Modify Fields property set, e.g.:
    ota.endpoint=myHttpEndpoint1
    3- Finally you must define the actual endpoint, using the following property:
    ota.send.endpoint=http://www.acme.com:8080/su...
    In general all the properties from adapter.ini that you need to override, must be defined here (for example authentication information etc).
    Hope this helps.

  • Adapter Message Based Partitioning

    Hi,
    I'm trying to investigate the use of partitioning without much success. I have set up two publishing AQ adapters with a partition created on both, routing event1 via first partition (on adapter1) and routing event2 via the second partition (on adapter2). There is no in order delivery required across events and both events are subscribed to by the same application.
    However when i publish event1 and event2 they are not being picked up by the appropriate adapter, adapter1 picks up some event2 messages and adapter2 picks up some event1 messages. The adapters then error as the message does not comply with the event based routing set up. (AQ Adapter: ** Error ** there was no OAI message corresponding to the message dequeued from the AQ. Please check your Event Map rules in iStudio.... ).
    I've had a look at the 10g documentation (we're using OAI 10.1.2) but its not very useful.
    Does anyone have any experience of partitioning or is my problem simply that i can not have more than 1 AQ adapter dequeueing from a queue?
    Thanks
    Carol

    Thanks for your reply,
    As far as i'm aware having multiple adapter instances means that the adapters need to be installed within different oracle homes and we wanted to steer clear of that.
    My problem was related to incorrect configuration within iStudio, once this was corrected the publishing worked fine. The following parameters were set within the adapter.ini files
    partition=P1
    agent_subscriber_name=<adapter1>P1
    agent_message_selector=recipient_list like '%,<adapter1>P1,%'
    Application name remained unchanged (application=<adapter1>)
    I'm now looking at pure load balancing partitioning and while the publishing adapters are working correctly the subscribe adapters are not.
    I've set up a PL/SQL subscribe adapter with one partition, however when i send a message across both the original adapter and the partition adapter are picking up the message resulting in the message being processed twice into the database. The adapter.ini files are configured exactly the same as the publishing adapters so have no idea why they're not working.
    thanks
    Carol

  • Req/Reply message using HTTP adapter

    I am using a HTTP Adapter to receive a request message from a client application and sending a response back to the client. The response is being sent by the adapter is XML with a HTML wrapper. However, the client application can't accept HTML; we have to send pure XML.
    Is there any easy way to change this in adapter.ini? Can we do something using ReceiverCustomizer? or we have to do something in the TransportServlet?
    -----------------------------------------Current Response message-------------------------
    <html><head><title>TransportServlet </title></head>
    <body><h1>TransportServlet</h1>
    <?xml version = '1.0' encoding = 'UTF-8' standalone = 'yes'?>
    <ns1:response userId=""
    xmlns:ns1="http://quikpayasp.com/namespace/activity">
    <account type="StanfordCardPlan">
    <currentBalance></currentBalance>
    <accountActivityDate></accountActivityDate>
    </account>
    </ns1:response>
    </body></html>
    --------------------Expected----------------------------------------------
    <?xml version = '1.0' encoding = 'UTF-8' standalone = 'yes'?>
    <ns1:response userId=""
    xmlns:ns1="http://quikpayasp.com/namespace/activity">
    <account type="StanfordCardPlan">
    <currentBalance></currentBalance>
    <accountActivityDate></accountActivityDate>
    </account>
    </ns1:response>
    Appreciate your response.

    Try using D3L mode.
    babu

  • DB adapter with different  db instance

    Hi,
    I need to configure different db instance into the same data base adapter.
    I've one instance for publisher schema and another one for subscriber schema .
    In the adapter.ini there are parameters only for OAI (publisher schema)
    db_bridge_schema1_host=vvvvv
    db_bridge_schema1_port=1521
    db_bridge_schema1_instance=ora92
    It's possible set a db_bridge_schema_instance for the spoke writer (subscriber schema)?
    Thanks.
    Regards.

    Hi,
    I don't think you could configured single DB adaptert for wo schemas .
    But you can always copy the main adapter and rename it(have two seperate adapters), one adapter for subscriber event and another for the Publisher event.
    Regards,
    Larry

  • Multiple endpoints for HTTP adapter (OracleAS 10g - 10.1.2)

    The HTTP adapter documentation states the HTTP adapter supports sending outgoing messages for Interconnect to multiple HTTP endpoints. This enables sending messages to various remote web servers.
    The HTTP user guide states:
    "An endpoint is associated with a subscribing event in iStudio by adding the transport properties such as the HTTP endpoint as metadata for the event. This is done using the Modify Fields function of the Subscribe Wizard - Define Application View dialog. After associating an endpoint and event, the message from the subscribing event is sent to the HTTP endpoint.
    When using the multiple endpoint feature with XML data type, use the Generic event type, instead of XML. Using the Generic event type allows you to enter the metadata for the endpoints using the Modify Fields feature associated with iStudio.
    When invoking this through iStudio, the screen allows you a name/value pair and I have entered 'multipleEP' for the name & 'http://....servlet' for the value. Is this the correct way? For an additional endpoint I assume I add another name/value pair in a similar way to above, can someone confirm this method?
    Some confirmation or additional HOWTO documentation on this facility would be appreciated.
    Regards,
    David

    I've done a bit of testing and this is what I found. Feel free to expand as you see fit.
    Using the Modify Fields feature allows you to enter name/value pairs. I found that you enter the metadata parameter in the name, and the metadata value in the value. For example:
    Name - ota.endpoint, Value - createMemoEP (appears to arbitrary but my example is related to event crateMemo)
    Name - ota.send.endpoint, Value - http://..../servlet/yourServlet
    The data gets saved in table EMDDATALET and when used by the adapter, the above information overrides the metadata from the adapter.ini file.
    Hopes this helps anyone who wants to use this facility.
    David

  • Changing RMI Port in HTTP adapter in interconnect

    Hi
    I need to change the RMI port for one of my HTTP adapters in Interconnect. I have changed it in the adapter.ini and in the web.xml files. I have then recreated the JAR/EAR files and redeployed the application to the oai component. The adapter starts ok but it still appears to be using the old port number and i can't send any messages to it (get a 500 Internal server error). Is there something else that needs changing?
    Cheers

    Hello,
    http://server:port/sap/xi/adapter_plain?service=<xxx>&namespace=<xxx>&interface=<xxx>&sap-user=<xxx>&sap-password=<xxx>&qos=BE&ProductID=000000000000000216&uid=500014&deviceID=0725&StoreID=0004
    In above "HTTP Post" format data has been sent in url without body of message.
    Please remember that when creating a sender/receiver using the Plain HTTP Adapter, the following are automatically filled out
    Transport Protocol: HTTP 1.0, Message Protocol: XI Payload in HTTP Body. The transport protocol means that only HTTP 1.0 is supported and that for it to work, an HTTP Body is required.
    Hope this helps,
    Mark

  • HTTP Adapter receiver.customizer_class

    I'm trying to do something with the reply from a HTTPS-message from a website.
    The HTTPCustomizedSender works fine, I tested:
    import oracle.oai.agent.adapter.technology.HTTPSenderCustomizer;
    import oracle.oai.agent.adapter.sdk.Agent;
    import oracle.oai.agent.adapter.transport.TransportMessage;
    import oracle.oai.agent.adapter.sdk.MessageObject;
    import oracle.oai.agent.adapter.sdk.AttributeObject;
    public class CustomizedSenderResponse implements HTTPSenderCustomizer {
    public void customizeTransportMessage (Agent agent, TransportMessage transportMessage,
    MessageObject mobj, AttributeObject aobj)
    agent.logTraceMessage ("Sent message sender xml:" + transportMessage.getBodyAsString(),
    null,null,null);
    Now I want to catch the reply from the website (I can see the reply when I set the tracelevel to 2 in the adapter.ini), so accordingly to the documentation I should implement the CustomerReceiver class:
    import oracle.oai.agent.adapter.technology.ReceiverCustomizer;
    import oracle.oai.agent.adapter.sdk.Agent;
    import oracle.oai.agent.adapter.transport.TransportMessage;
    public class CustomizedReceiverResponse implements ReceiverCustomizer {
    public void customizeTransportMessage (Agent agent, int receiverType,
    TransportMessage transportMessage)
    public String createReplyMessage(Agent agent, int status, TransportMessage transportMessage)
    agent.logTraceMessage ("Return message receiver :" + transportMessage.getBodyAsString(),
    null,null,null);
    agent.logTraceMessage ("Return message receiver:" + transportMessage.getResponse(),
    null,null,null);
    return "Successfull";
    But it's not working, it even seems the parameter http.receiver.customizer_class=CustomizedReceiverResponse
    is not recognized by the adapter
    We are using version 9.0.2.0.2 of Interconnect

    Patrick
    A similar issue has been discussed here:
    XI_J2EE_ADAPTER_XI_HANDLER - GENERAL_ERROR
    Unfortuantely it is a gnereic error.
    Try extending the trace file in the log configurator in Visual Admin to see if you can get a better indication of what is triggering the error.
    Try running RSXMB_ACTIVATE_ICF_SERVICES in SE38 to see if this kicks off the Integration Engine services.
    Also, check page 29 from this guide:
    https://websmp102.sap-ag.de/~sapidb/011000358700001697502004E.PDF

Maybe you are looking for