Database adapter configuration - how to manage between environments

Hi,
I am new to Oracle SOA. I am developing a new service which uses a database adapter to write request data to database.
Currently I am developing in a development environment and the database adapter is working as expected.
My question is should I keep changing the server connection details in the db adapter before moving the service to new environment(say from DEV to UAT then UAT to PROD) ?
Thanks,
Priya.

Arik,
Please let me know how to update the following database adapter JCA file using Configuration Plan.
<adapter-config name="OFSDEV" adapter="Database Adapter" wsdlLocation="OFSDEV.wsdl" xmlns="http://platform.integration.oracle/blocks/adapter/fw/metadata">
  <connection-factory location="eis/db/OFSDEV1" UIConnectionName="OFSDEV" adapterRef=""/>
  <endpoint-interaction portType="OFSDEV_ptt" operation="insert">
    <interaction-spec className="oracle.tip.adapter.db.DBWriteInteractionSpec">
      <property name="DescriptorName" value="OFSDEV.Test"/>
      <property name="DmlType" value="insert"/>
      <property name="MappingsMetaDataURL" value="OFSDEV-or-mappings.xml"/>
      <property name="DetectOmissions" value="true"/>
      <property name="GetActiveUnitOfWork" value="false"/>
    </interaction-spec>
  </endpoint-interaction>
</adapter-config>
I need to update connection-factory to the following so the database adapter point to UAT instance.
<connection-factory location="eis/db/OFSUAT1" UIConnectionName="OFSUAT" adapterRef=""/>
I tried using configuration plan updating the reference section, it was not working as expected.
Here is the code from config file.
<binding type="jca">
<attribute name="location">
<searchReplace>
<search>eis/db/OFSUAT1</search>
<replace>eis/db/OFSDEV1</replace>
</searchReplace>
</attribute>
</binding>
Thanks,
Priya

Similar Messages

  • Database Adapter Configuration Execute Pure SQL

    Hii
    I have following scenario in my Project.
    I have ERRORCODE Details Table in Database which has following columns.
    1)ERRORCODE VARCHAR2
    2)PRIORITY VARCHAR2
    3)QueueName Varchar2
    I have one web service which takes errorcode as input parameter of string type in which i have to pass values like 1,2,3.
    Web service treated these values as complete one string value but i want it should be treated like seperately.Beacuse i have to pass these values to the query.
    I have configured database adapter for the following query using Execute Pure SQL.
    SELECT DISTINCT QueueName FROM ErrorCodeDetails where priority= (select min (priority) from ErrorCodeDetails where ErrorCode In(#ERRORCODE))
    So can anyone please help me what changes i have to make in this query so the sql query treat the errorcode string value as three different value rather than one single value??
    Thanks in advance.
    Regards,
    Priyanka

    Change the query like this.
    SELECT DISTINCT QueueName FROM ErrorCodeDetails where priority= (select min (priority) from ErrorCodeDetails where ErrorCode In(select csv from xmltable(#ERRORCODE)))
    In case it is required to treat the individual comma separated values in #ERRORCODE as number use the to_number function.
    SELECT DISTINCT QueueName FROM ErrorCodeDetails where priority= (select min (priority) from ErrorCodeDetails where ErrorCode In(select to_number(csv) from xmltable(#ERRORCODE)))
    In case this helps , please mark the answer as correct/helpful.
    Regards.

  • Database Adapter Configuration Wizard "File already exists" error

    I'm uding JDeveloper 10.1.3.1 on an XP machine running Java 1.5.0_06 and having trouble editing SOAOrderBooking.bpel as part of the tutorial.
    The tutorial calls for me to drag a new Database Adapter onto the diagram, select the "soademo_ssn" database and, on page 3 of the wizard select "Perform an operation on a table" and have only "Select" checked.
    When I click "Perform an operation on a table", the 5 tickboxes enable and are checked but the mouse pointer remains as an hourglass. If I press "Next" without doing anything else, the Wizard title changes to "Select Table" but never draws its controls, aside from the "Back" etc buttons along the bottom and the decorative graphic to the left. If I do try unchecking boxes to have only "Select" selected, every check box state change generates the error "File already exists" and the path of the .mwp file whose name I specified earlier. The file does exist, but it didn't before I entered the wizard.
    I've tried with three different filenames, and with two different database connections- both of which check out fine when I do "Test connection" in their property pages from the Connection Navigator.
    If I delete the file after each check state change, I can stop the errors appearing after I untick each checkbox, but the wizard still hangs on pressing "Next" whether the file is there or not.
    Does anyone have any suggestions?

    I am facing the same issues.
    I want to pick the new files and retain the files after polling.
    Any idea on this would help me to solve this issue.
    Thanks in advance.

  • How to manage your environments, going from Development (DEV) to Production (PRD) with Management Packs.

    I am looking for a way to go from the development (DEV) environment to the production (PRD) environment in a controlled manner.
    As I do not want to manually click around with a walk-through screen-shots document = error prone.
    As I read these articles
    http://technet.microsoft.com/en-us/library/hh519659.aspx
    http://blogs.technet.com/b/antoni/archive/2013/10/09/system-center-service-manager-operations-manager-management-pack-and-naming-convention-best-practices.aspx
    http://blogs.technet.com/b/wincat/archive/2013/03/28/copying-user-roles-between-management-servers-in-service-manager-2012.aspx
    http://www.netiviaconsulting.com/2012/05/10/staying-organized-with-scsm-beware-of-the-management-pack-jungle/
    I still have some questions:
    1. Can all MPs (un-sealed) be exported from DEV and imported to PRD without breaking things?
    2. Are there any known pitfalls?
    3. Do you have some tips on this matter? In other words, how do you manage this?
    Regards,
    Erik

    Alex is spot-on. Most MPs are environment/management group independent.
    But some MPs contain what I call "Environment Specific Variables". In my experience, ESVs are in:
    1) Templates (such as the runbook guids)
    2) Criteria blocks (like view criteria, and rule criteria)
    3) Parameters (such as write action parameters, and console task parameters)
    Alex already gave an example of a template ESV.
    An example of a Criteria ESV might be some view that you developed that returns objects that have a specific set of values in your dev environment, but may be different for your prod environment. ie: You have a view whose criteria looks afor a specific business
    service ServiceId property. Let's say "Business Service X". But "Business Service X" has a different ServiceId in your dev environment than in your prod environment. So, every time you import your view MP from dev to prod, you have to remember to change your
    criteria.
    A quick Parameter ESV example; you have a notification subscription (a rule+writeaction). In Dev, you've hardcoded the notification recipient to be yourself. In Prod, the recipient has to be your boss. So, every time you import your MP from Dev to Prod,
    you have to remember to change the recipient parameter in the subscription's writeaction.
    Like Alex said, handling ESVs by hand is error-prone and time consuming.
    Alex, when you write that utility, you should make it more robust. Within an MP, allow a user to pick and configure
    any ESV. Store that configuration. Then, just run the MP through the utility and have it automatically set all the configured ESVs to the appropriate environment specific value :) (It's been something I've wanted to write into TFS for
    a while, but I never take the time to do it ;) ) If an ESV is missing (because it was removed or changed in such a way that it no longer resembles the configured ESV), throw a warning during conversion.

  • Reading an external property file for adapter configurations (How-To)

    One thing that has bugged me is having to change an Adapter's property settings in the context file and then build and re-deploy the bundle to effect those changes. This really becomes a problem when you want to test a bundle in different server environments (Development, QA, Staging) and then finally deploy that same bundle to Production. Here at EnerNOC, all those environments have different message servers and database schema names, making it a real challenge to insure you're building the same bundle each time for the different environments.
    I played with a number of different ideas, but I wanted the solution to be Spring based. I finally settled on a rather simple solution to use external property files with the <util:properties/> tag of Spring, and then injecting the bean created from this into the adapters requiring different configurations.
    First, in the context file, I needed to add a new Spring namespace - http://www.springframework.org/schema/util:
    +<beans xmlns="http://www.springframework.org/schema/beans"+
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"*
    xmlns:osgi="http://www.springframework.org/schema/osgi"*
    xmlns:wlevs="http://www.bea.com/ns/wlevs/spring"*
    xmlns:util="http://www.springframework.org/schema/util"*
    xsi:schemaLocation="*
    http://www.springframework.org/schema/beans*
    http://www.springframework.org/schema/beans/spring-beans.xsd*
    http://www.springframework.org/schema/osgi*
    http://www.springframework.org/schema/osgi/spring-osgi.xsd*
    http://www.springframework.org/schema/util*
    http://www.springframework.org/schema/util/spring-util-2.5.xsd*
    http://www.bea.com/ns/wlevs/spring*
    http://www.bea.com/ns/wlevs/spring/spring-wlevs-v11_1_1_3.xsd">*
    Next, I defined a bean for my property file:
    +*<util:properties id="serverProperties" location="file:./applications/MyApplication/server.properties"/>*+
    And then finally, I modified my adapter to inject a Properties object and use that to define the other properties in the Adapter:
    +*<wlevs:adapter id="MyMessageAdapter" class="com.enernoc.cep.message.adapter.MyMessageAdapter" >*+
    +*<wlevs:instance-property name="properties" ref="serverProperties"/>*+
    +*<wlevs:listener ref="HAInputAdapter"/>*+         
    +*</wlevs:adapter>*+
    With this change, I can now build and deploy a bundle once to whatever servers I choose, and modify the server.properties file in each environment to make the necessary changes for message servers and databases. In a multi-server enviroment this becomes really handy as our deploy script needs to only create and push server.properties files and not new bundles.
    As a nice-to-have feature someday, it would be great if Oracle could enable their <wlevs:/> namespace to recognize the Spring PropertyPlaceholderConfigurer feature, so that we could use placeholder variables for property values of <wlevs:/> specific tags.
    Edited by: Jim Leary on Feb 28, 2011 4:11 PM
    Edited by: Jim Leary on Feb 28, 2011 4:14 PM
    Edited by: Jim Leary on Feb 28, 2011 4:15 PM
    Edited by: Jim Leary on Feb 28, 2011 4:16 PM
    Edited by: Jim Leary on Feb 28, 2011 4:17 PM
    Edited by: Jim Leary on Feb 28, 2011 4:18 PM
    Edited by: Jim Leary on Feb 28, 2011 4:19 PM

    Jim,
    You can use com.bea.wlevs.spring.support.ConfigurationPropertyPlaceholderConfigurer, which is based on org.springframework.beans.factory.config.PropertyPlaceholderConfigurer. For example,
    <bean class="com.bea.wlevs.spring.support.ConfigurationPropertyPlaceholderConfigurer">
    <property name="location" value="file:config/test.properties"/>
    </bean>
    <wlevs:adapter id="myAdapter" class="oracle.cep.sample.MyTestAdapter" >
    <wlevs:instance-property name="serverAddress" value="${serverAddress}"/>
    </wlevs:adapter>
    Manju.

  • Mapping Routing service with a database adapter in ESB

    Hi,
    I have a database adapter configured for a Stored procedure that takes in a XML_TYPE and returns a CLOB. I also have the Schema for request and response, which I have configured in a Routing Service. Now how do I map the Routing Service to the Database adapter.
    The problem I am facing is 'CLOB' is returned as a simple type which can't be mapped to a complex type schema of the Routing Service.
    Also the 'any' tag of the XML_TYPE is not supported by jdeveloper.
    Any suggestions plz....
    Thanks..

    Adapters may have been tesed under load but messages are kept small. Of you adapter keep your messages as small as possible. Try and keep messages under 1MB, if possible.
    If you know Apps will I would stick to using the DB adapter for calling APIs, and Apps adapter for the more complex integrations, e.g. business events, xml gateway. I use DB adapter for concurrent programs, but the apps adapter is good for these integrations as well.
    The reason I used the DB adapter for APIs is because the PL/SQL stub the adapter creates forces you to uses all fields in the APIs. In some case you may only need a handfull out of 100. You get issues when you don't provide values.
    If you are in evaluation stage of products I would recommend Oracle Data Integrator for eBusiness Suite integration if you are implementing batch type interfaces. This is because of the inbuild error handling. It manages batch messages much better. Whereas SOA Suite is designed for single messages so it manges small messages well.
    The best option Oracle offers is Oracle Data Integration Suite, which includes ESB and BPEL.
    cheers
    James

  • Sql queries in database adapter

    Hi,
    I want to write, say, 2 select statements in the database adapter. How can I accomadate using "execute pure sql"?
    Regards,
    Aasta

    maybe these links will help you :
    Urgent : Fault Policies in 11g
    http://download.oracle.com/docs/cd/E15523_01/integration.1111/e10226/soacompapp_mang.htm
    http://www.it-eye.nl/weblog/2009/12/10/using-fault-management-framework-in-oracle-11g/
    http://download.oracle.com/docs/cd/E12839_01/integration.1111/e10224/med_faulthandling.htm#SOASE274

  • Database Adapter in 11g

    is anyone know how to configure 'OutputCompletedXml' in SOA 11g Database Adapter?
    How to configure Toplink sequencing in JDeveloper SOA applicatoin(Database adapter generated mappings).
    Thanks
    --Sree                                                                                                                                                                                                                                                                                                                                                                                                                               

    When you enter the xADataSourceName property, did you hit enter on the field? If you simply tab off the field and hit save changes without hitting the enter key then it doesn't record the change to the property.

  • Database Adapter and SQL Server procedure issue

    Hello,
    I am using Jdev 11.1.1.7.0 and SQL Server 2005.
    In the Database Adapter configuration wizard, Specify Stored Procedure step, I choose the “GEACupax” schema and got the following error after a click on “Procedure Browse” button:
    com.microsoft.sqlserver.jdbc.SQLServerException: Invalid object name 'GEACUPAX.INFORMATION_SCHEMA.SCHEMATA'.
    The command Database Adapter tried to execute was:
    (from jdev log:) select schema_name from GEACUPAX.INFORMATION_SCHEMA.SCHEMATA order by schema_name;
    Note, the schema name has changed to uppercase. I think that is the problem. If I try this query in SQLDeveloper, it returns the same error. I can fix it changing the schema name to “GEACupax”. The case matters.
    Any ideas?
    Leandro.

    Vijay,
    Thanks for you reply.
    I figure out a related bug:
    Bug 12859472: Cannot browse store procedure in case-sensitive MS SQL Database
    There are two possible workarounds:
    1. Use a database name with capital letters
    2. Do not use stored procedures, but access the tables directly.
    The notes on the Bug ticket describes that the issue would be scheduled to be fixed in PS7 which is 11.1.1.8.
    Cheers!
    Leandro.

  • Database Adapter and Paging

    Hi
    I would like to add paging (first row, number of rows) to the Database Adapter that are calling PL/SQL. I can't see any options for this. Is this is something that I have to do at the PL/SQL level to work with Database Adapter? How would I do this in PL/SQL?
    Regards

    Try something like this...
    SELECT * FROM
         SELECT a.*, rownum r__
         FROM
              SELECT * FROM ORDERS WHERE CustomerID LIKE 'A%'
              ORDER BY OrderDate DESC, ShippingDate DESC
         ) a
         WHERE rownum < ((pageNumber * pageSize) + 1 )
    WHERE r__ >= (((pageNumber-1) * pageSize) + 1)
    This was extracted from Frans Bouma's blog...
    http://weblogs.asp.net/fbouma/archive/2007/05/21/api-s-and-production-code-shouldn-t-be-designed-by-scientists.aspx
    Cheers,
    Vlad

  • How to configure Oracle Enterprise Manager for ASM RAC Database ?

    Dears,,
    We have two databases (Primary & Standby), each database has two instances
    Database version: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit
    How to configure Oracle Enterprise Manager for this environment ?
    I need documentation for this please.
    Many thanks & Regards,,

    Assuming an agent is running on the servers you want to monitor,
    navigate to the Agent home page (Via setup --> Agent)
    When in the agent home page select 'Add Database'and press [Go]
    Assuming yopur database now gets recognized, select the Configure icon and enter the password for dbsnmp.
    When done, press [Ok] to return to the agent home page.
    Regards
    Rob
    http://oemgc.wordpress.com

  • How to use Database Adapter in BPEL

    I want to use Database Adapter in BPEL to transfer data from one table to other table and the data is still hold in the read table?
    I can find a example from http://download.oracle.com/docs/cd/B31017_01/integrate.1013/b28994/adptr_db.htm#BDCIGDCB.
    And the general design of my BPEL is as following:
    1. Add a "status" column to the read table. And alter the value of status column of all data in read table to "unreaded".
    2. Then create a empty BPEL (BPELAdapter) Project.
    3. Add a Database Adapter:
    (1) In step 1 of Adapter Configuration Wizard, configure the Service Name to datain.
    (2) In step 2, configure the database connection.
    (3) In step 3, choose "Poll for New or Changed Records in a Table".
    (4) Then click Import Tables button, and choose the read table.
    (5) In step 5, choose a column.
    (6) Don’t do anything in step 6 and 7.
    (7) In step 8, choose "Update a Field in the [Datain] Table (Logical Delete)".
    (8) In step 9, configure Logical Delete Field to STATUS, configure Read Value to readed and configure Unread Value to unreaded.
    (9) Don’t do anything in step 10 and 11.
    4. Add a receive activity to connect to above database adapter.
    5. Add another Database Adapter. Then configure this database adapter service WSDL:
    (1) In step 1 of Adapter Configuration Wizard, configure the Service Name to dataout.
    (2) In step 2, configure the database connection.
    (3) In step 3, choose Perform an Operation on a Table (and all items under it).
    (4) Then click Import Tables button, and choose the write table.
    (5) In step 5, choose a column.
    (6) Don’t do anything in step 6, 7 and 8.
    6. Add a invoke activity to connect to above database adapter.
    7. Add a assign activity between the receive activity and invoke activity. And configure the assign copy operation.
    But after I deploy this BPEL project to the BPEL server and invoke this project, I get following error. Meanwhile, this BPEL don't take effect.
    The following exception occured while processing this request:
    Can't find partnerLinkType 2.
    in
    "file:/D:/soft/SOASuite/product/10.1.3.1/OracleAS_1/bpel/domains/default/tmp/.bpel_BPELAdapter_1.0_e82210b05e4d3e997eed581d0d220293.tmp/_BPELAdapter.wsdl" WSDL to find PartnerLinkType "{http://xmlns.oracle.com/pcbpel/adapter/db/datain/datain_plt"。
    How to resolve?
    Thanks,
    Melody

    Now, I can insert data into the table through Database Adapter.
    But still can't select data from the table through Database Adapter.
    Above error still happen when invoke the read database table with Database Adapter project:
    Can't find partnerLinkType 2.
    in
    "file:/D:/soft/SOASuite/product/10.1.3.1/OracleAS_1/bpel/domains/default/tmp/.bpel_BPELAdapter_1.0_e82210b05e4d3e997eed581d0d220293.tmp/_BPELAdapter.wsdl" WSDL to find PartnerLinkType "{http://xmlns.oracle.com/pcbpel/adapter/db/datain/datain_plt"。

  • How to configure Oracle Enterprise manager 11.2.0.1 for ASM instance

    Hi All,
    Please let us know How to configure Oracle Enterprise manager 11.2.0.1 for ASM instance.
    Reagrds,
    Vikas

    Assuming an agent is running on the servers you want to monitor,
    navigate to the Agent home page (Via setup --> Agent)
    When in the agent home page select 'Add Database'and press [Go]
    Assuming yopur database now gets recognized, select the Configure icon and enter the password for dbsnmp.
    When done, press [Ok] to return to the agent home page.
    Regards
    Rob
    http://oemgc.wordpress.com

  • How to pass dynamic values to JDBC Database adapter in PureSQL operation?

    I want to fetch the records from the table via JDBC database adapter with the criteria but I should not hardcode the values inside my query. I am using Execute by PureSQL operation. Values might change in future and it is the reason I should not hardcode the values and instead I should pass it dynamically.
    This is my query:
    SELECT FROM Table0 t0, Table1 t1 WHERE t0.Field1= 'ABC' AND t0.Field2= 'DEF' AND t0.Field3 = 'CBA' AND t1.FLAG IS NULL AND t1.Field1 = t0.Field4*
    The values 'ABC', 'DEF', 'CBA', 'NULL' are not fixed and it can be changed. Hence, I need to pass the values for these fields dynamically. What must be passed in the query and where to pass the User Defined Values during the run time.
    Please can anyone suggest how to resolve this. I am using SOA 11g.
    Thanks in advance.

    Hi,
    Ensure that you use the Adapter Configuration Wizard to do the query modification suggested by Arik. This will allow the schema for the DB Adapter getting created automatically. Also revisit this schema to assure that the data types of the bind parameters (parameters with #) have been correctly populated in the schema.
    You can get some help from this too although this doesn't fully match your use-case.
    Regards,
    Neeraj Sehgal

  • Configuration Files for AEX: How to change between multiple configurations?

    I have both an Airport Extreme and and Airport Express at home. The Extreme is used for my wireless network at my house and the Airport Express is used for streaming Airtunes. I want to use my Airport Exress as a base station when traveling (to my parents' house, hotels, etc.) and for streaming when I get home. I don't want to have to reconfigure the AEX each time I change uses for it. I have configuration files saved for both uses, but don't know how to change between them. The older version of Airport Utility allowed you to change between configurations, but I can't figure out how to do this with Airport Utility 5.4.2. In the older version, I could select the Airport station in AP Utility, click under configurations, choose my preferred file, and restart. Unplug the AEX and when I plugged it back in, it would load the preferred configuration. How do I do this with the newest AP Utility?

    Oops, you're right, that article is a bit dated.
    Try this ...
    To create a new profile:
    o Open AirPort Utility, select your AX from the list, and then, click "Manual Setup."
    o From the AirPort Utility menu, select "Base Station," and then "Manage Profiles."
    o Click "+" to create a new profile; give it a name, and then, click OK.
    o Set options, such as network name, passwords, Internet connection method, etc.
    o When done setting the options, click Update.
    To switch profiles:
    o Open the AirPort Utility, select your AX from the list, and then, click "Manual Setup."
    o From the AirPort Utility menu, select "Base Station," and then "Manage Profiles."
    o Click on the desired profile, and then, click OK to apply the new profile and restart the AX.
    Just remember to switch to the desired configuration profile before removing power from the AX.

Maybe you are looking for

  • Deleting blank Calendars in iCloud and on iDevices

    I have consolidated all my calendars into a single calendar, now my default. I have three empty and un needed calendars left and want to delete them.  When I select them on my iDevices (pad phone) while in the calendar app or in Settings, I can see n

  • Ios7 incorrectly syncs music when "Manually manage music and videos" checked

    iPhone 5 with ios7.0.2 Mac 10.6.8 with iTunes 11.1.1 Since installing ios7 iTunes syncs music even though I always have the "Manually manage music and videos" checkbox checked.  Since I don't want to keep the same music on my Mac that I have on my ph

  • Oracle 10g Express Edition Beta 3 ODBC Driver Always Crashes

    I find that if you set up an ODBC Data Source for Oracle 10g Express Edition on Windows XP SP2 using the "Oracle in XE" driver, anything that tries to access it will crash, even the Windows ODBC Data Source Administratior if you click the "Test Conne

  • Premiere Elements 13 - Installer fail to initialize

    Hello I am receiving a "installer failed to initialize" error, when trying to install Premiere Elements 13. OS: Windows 8.1 I HAVE tried the below, but I do not have the program on the list to uninstall when I get to the Control Panel Programs list.

  • Building the varchar string to return from a pl sql function

    i'm new with pl/sql and i'm having trouble trying to build the string that i want to return from a function that is inside a package. it seems my problem stems from the fact that i'm trying to incorporate a variable (varchar2) into the string to be r