Changing Data source in connection pools

hi all,
When the primary data source goes down or is unresponsive, we have to often point our repository connection pool to a backup data source. As this is production environment, we would like to do this without bringing the services down.
I usually make sure that there are no requests running by going to Manage Sessions and clicking on 'close all cursors' and 'Cancel all running requests'. Are there any other implications of not restarting the services while changing the data source connections? Do the connection pools are kept open to the old data source?
We use Oracle 10G as a database, but I have also done this with DB2 database.
Thanks in Advance

Turribeach said it correct.
But if you are handling the failover manually for now until you figure out the RAC setup, it is better you kill all the user session through the admin tool . AdminTool -> Manage -> Sessions
Otherwise the users already connected will keep getting errors until they choose to relogin or choose to "Reload Server Metadata" in the answers, which they would probably not even know. So it is better to kill their session forcing them to relogin. But the transition will not be seamless if they in the process of firing a query.

Similar Messages

  • Mapping Data Source and Connection Pools

    Is it possible to Map a Data Dource with Multiple connection pools in Weblogic ? If Yes how do we do that ?

    Which version of WLS are you using. With version 10.0 you could use a multi data source.
    http://e-docs.bea.com/wls/docs100/jdbc_admin/jdbc_multidatasources.html

  • 903/902/BC4J can't get data-sources.xml conn pooling to work in production; help

    I have several BC4J ears deployed to a 903 instance of OC4J being configured as a standalone
    instance. I've had this problem since I started deploying in development on 902. So it's
    some basic problem that I've not mastered.
    I can't get data-sources.xml managed connection pooling to actually pool conn's. I'm wanting
    to declare my jndi jdbc source connection pool in j2ee/home/config/data-sources.xml.
    Have all BC4J apps get conns from this JNDI JDBC pool. I've removed all data-sources.xml from my BC4J ears,
    and published the jndi jdbc source in my oc4j common data-sources.xml. I've tested that this is
    the place controlling the conn URL/login passwd by commenting it out of config/data-sources.xml
    and my BC4J apps then throw exceptions, can't get conn.
    I've set the oc4j startup cmd line with the BC4J property to enabled connection pooling:
    -Djbo.doconnectionpooling=true
    symptom
    Connections are created and closed. Instead of being put back into the pool managed by oc4j,
    what ever BC4J is doing or my data-sources.xml is doing, the connections are just being created and
    closed.
    I can verify this via (solaris) lsof and netstat, where I see my oc4j instance under test load
    with only 1 or 2 conns to the db box, and the ephemeral port is tumbling, meaning a new socket is
    being opened for each conn. ;( grrrrrrr
    Does anyone have a clue as to why this is happening?
    Thanks, curt
    my data-sources.xml
    <data-sources>
         <data-source
            class="com.evermind.sql.DriverManagerDataSource"
            connection-driver="oracle.jdbc.driver.OracleDriver"
            ejb-location="jdbc/DEVDS"
            location="jdbc/DEVCoreDS"
            name="DEVDS"
            password="j2train"
            pooled-location="jdbc/DEVPooledDS"
            url="jdbc:oracle:thin:@10.2.1.30:1521:GDOC"
            username="jscribe"
            xa-location="jdbc/xa/DEVXADS"
            inactivity-timeout="300"
            max-connections="50"
            min-connections="40"
        />
    </data-sources>

    I've run another test using local data-source.xml, that's packaged in the .ear. Still
    pooling under BC4J doesn't work??
    A piece of info is that the 903 oc4j release notes states that global conn pooling doesn't
    work. Infering that the j2ee/home/config/data-sources.xml data sources aren't pooled or ??
    I just tested so called local connection pooling, where I edited the data-sources.xml that
    gets packaged in the ear, to include the min/max params and re-ran my test.
    Still, the AM creates a new conn, it's to a new socket, and closes the conn when done. Causing
    each conn to not be pooled, rather opened then closed to the DB box. As verified with lsof and
    netstat, checking the ephemeral port # on the DB box side, always changes, meaning it's a
    new socket and not an old pooled conn socket.
    ???? What the heck??
    Surely if the AM conn check out / return code works properly, OC4J's pooling JDBC driver would
    pool and not close the socket??
    Has anywone gotten JDBC Datasource connections in BC4J to actually be pooled under OC4J??
    Since I couldn't get this to work in my early 902 oc4j testing, and now can't get it to work
    still under 903 OC4J, either it's my config or BC4J AM's code or OC4J?
    Any thoughts on how to figure out what's not configed correctly or has a bug?
    Thanks, curt

  • 903/902/BC4J can't get OC4J data-sources.xml conn pooling to work in production: help

    [cross posted to the j2ee forum]
    I have several BC4J ears deployed to a 903 instance of OC4J being configured as a standalone
    instance. I've had this problem since I started deploying in development on 902. So it's
    some basic problem that I've not mastered.
    I can't get data-sources.xml managed connection pooling to actually pool conn's. I'm wanting
    to declare my jndi jdbc source connection pool in j2ee/home/config/data-sources.xml and
    have all BC4J apps get conns from this JNDI JDBC pool. I've removed all data-sources.xml from
    my BC4J ears, and published the jndi jdbc source in my oc4j common data-sources.xml.
    I've tested that this is the place controlling the conn URL/login passwd by commenting it
    out of config/data-sources.xml and my BC4J apps then throw exceptions, can't get conn.
    I've set the oc4j startup cmd line with the BC4J property to enabled connection pooling:
    -Djbo.doconnectionpooling=true
    symptom
    Connections are created and closed. Instead of being put back into the pool managed by oc4j,
    what ever BC4J is doing or my data-sources.xml is doing, the connections are just being created and
    closed.
    I can verify this via (solaris) lsof and netstat, where I see my oc4j instance under test load
    with only 1 or 2 conns to the db box, and the ephemeral port is tumbling, meaning a new socket is
    being opened for each conn. ;( grrrrrrr
    Does anyone have a clue as to why this is happening?
    Thanks, curt
    my data-sources.xml
    <data-sources>
         <data-source
            class="com.evermind.sql.DriverManagerDataSource"
            connection-driver="oracle.jdbc.driver.OracleDriver"
            ejb-location="jdbc/DEVDS"
            location="jdbc/DEVCoreDS"
            name="DEVDS"
            password="j2train"
            pooled-location="jdbc/DEVPooledDS"
            url="jdbc:oracle:thin:@10.2.1.30:1521:GDOC"
            username="jscribe"
            xa-location="jdbc/xa/DEVXADS"
            inactivity-timeout="300"
            max-connections="50"
            min-connections="40"
        />
    </data-sources>

    Thanks Leif,
    Yes, set it to the location jndi path.
    A piece of info is that the 903 oc4j release notes states that global conn pooling doesn't
    work. Infering that the j2ee/home/config/data-sources.xml data sources aren't pooled or ??
    I just tested so called local connection pooling, where I edited the data-sources.xml that
    gets packaged in the ear, to include the min/max params and re-ran my test.
    Still, the AM creates a new conn, it's to a new socket, and closes the conn when done. Causing
    each conn to not be pooled, rather opened then closed to the DB box. As verified with lsof and
    netstat, checking the ephemeral port # on the DB box side, always changes, meaning it's a
    new socket and not an old pooled conn socket.
    ???? What the heck??
    Surely if the AM conn check out / return code works properly, OC4J's pooling JDBC driver would
    pool and not close the socket??
    Has anywone gotten JDBC Datasource connections in BC4J to actually be pooled under OC4J??
    Since I couldn't get this to work in my early 902 oc4j testing, and now can't get it to work
    still under 903 OC4J, either it's my config or BC4J AM's code or OC4J?
    Any thoughts on how to figure out what's not configed correctly or has a bug?
    Thanks, curt

  • Using different data source and connection name

    Hi,
    We have a requirement where the data source for our application is already configured on the server by name like MyDBDataSource. But the database connection name in our application is like My_DB. So application module is using data source name like My_DBDS. If i change data source name in application module configuration manually to be MyDBDataSource, then it fails at runtime. This has been identified as bug as mentioned in this post
    http://andrejusb.blogspot.in/2009/01/practical-adf-security-deployment-on.html
    Is this still valid? I am using 11.1.1.6 version. Also want to know if there is any workaround for this ? If i change the name in web.xml at deployment time using script, will it work ?
    Thanks

    Hi Ami,
    Is your issue get solved ?
    I would like to mention few things about the database connection in application & data source in Weblogic.
    1. When you create a database connection in Application (for example say connection name as hr) then in the Application Module Database Configurations in the bc4j.xcfg File Custom JDBCDataSource will be set as <Custom JDBCDataSource="java:comp/env/jdbc/hrDS"/> for both ApplnModule shared & Local. So when you create data source in weblogic it is better to create the JNDI Name like jdbc/hrDS ( ie between the '/' and 'DS' you have to specify the name of database connection you created in the application ).What ever the Data source name is no matter.
    2.If you change the JNDI name of data source later like jdbc/hrconnectionDS then it is better to delete the old hr connection from application and recreate a connection as hrconnection. After that you have to edit bc4j.xcfg file in the Application Module--> Configurations and set Custom JDBCDataSource as below for both local & shared config.
    <Custom JDBCDataSource="java:comp/env/jdbc/hrconnectionDS"/>
    I hope this will help you.
    Gijith.

  • Changing Data Source for command objects

    Hi,
    My report (designed in CR 10) is running based on the Stored Procedure call using a command object; which is running successfully in the DEV environment. The report data source connectivity is a DSN.
    Now i want to switch it to QA environment with different DSN name. When i tried to update the Change Data Source option, it doesn't allows to update the existing command with a new command!!!!
    I don't know how to fix this. Could any one of you have idea, pls. share it here???
    Thanks
    Viswa

    If you have same table structure in new data source then you can change the datasource connection.
    Follow the steps in this article
    KBase Article ID:c2016958
    Article refers to:Crystal Reports 10
    Symptom
    In Crystal Reports (CR) 10, can you change the database connection of an existing command object to use a different database connection without the use of a Crystal Repository?
    Resolution
    Yes, you can change the database connection of an existing command object to use a different database connection without the use of a Crystal Repository by using the following steps:
    ====================
    NOTE:
    You must apply the CR 10 Monthly Hot Fix (cr10win_en.zip) and the CR 10 Database and Export Drivers Monthly Hot Fix (dbex10win_en.zip) before starting the steps below.
    You can download these hot fixes at http://support.businessobjects.com/search
    ====================
    1. Open a report with a command object.
    2. Go the 'Database' menu and click 'Set Datasource Location'.
    3. In the 'Set Datasource Location' dialog box, select the connection for the command object (the connection appears as a cylinder with a plug).
    4. In the lower window, select the new connection and log on to the database.
    5. Ensure the connection is highlighted for the command object in the top window, and the connection is highlighted for the new command object in the bottom window.
    6. Click Update.
    The database connection for the command object now changes to use the new database connection information.
    Regards,
    Raghavendra

  • Trying to Change Data Source but is not highlighted

    I have a pivot table running with inventory and we are doing a  server upgrade so i need to change the path, but the "Change Data Source" button is not lit up and will not let me do this. Anyone know why this might be happening? Thanks!!!

    Hi Frank,
    We can directly update the existing connection string to connect to new server. Please take a look at the following articles:
    Different Ways to Update Data in PowerPivot:
    http://msdn.microsoft.com/en-us/library/gg399134(v=sql.110).aspx
    How to change the database for your PowerPivot sheet:
    http://www.keepitsimpleandfast.com/2011/04/how-to-change-database-for-your-power.html
    Elvis Long
    TechNet Community Support

  • I can not map field after changing data source location

    Hi
    I have a small problem that I got a report file and database from my customer, after that I setup database, open the file and change data source to my setting. but some filed can not map. The field mapping widonw does not display all field in the table. Of course I have checked the missing fields are existing in the table.
    OS:Windows7
    DB:Oracle11
    CR:XI Release 2
    Does anyone have an idea?

    hi,
    In Map Fields window, there is an option "Match Type".
    Please Unchek that option, so that you will be able to see all the fields from that table.
    Also, while mapping please verify the datatypes of source and target fields.
    Regards,
    Vamsee

  • How to change data source name and context root during deployment

    Hi,
    Env:
    WLS 10.1.3
    JDev 11.1.1.6
    Hudson
    I need to deploy two instances of my ADF application on the same development enviroment. We are using Hudson to deploy. My question is how to change data source name and application context root before second deployment.
    Kuba

    I don't believe there is an inbuilt facility to do this.
    Previously how I've done this is when checking files out using Hudson jovs, before the build I then use an Ant extension called XmlTask (http://www.oopsconsultancy.com/software/xmltask/) to modify the required XML files.
    Can I ask why you're doing this in the first place please? Multi-tenancy? 2 versions of the same app?
    CM.

  • Change data source

    Hi,
    In portal EP6.0
    In System Administrator->System Configuration->UM Configuration  here in Data Source Tab already data source is assigned to "Read-only microsoft ADS ( Deep Hierarchy ) + Data base". I changed this data source to "Read-only SAP System + Data base" and saved.
    But it is giving warninig message saying 'you are not allowed to select dataSourceConfiguration_R/3.xml as Active configuration file. This will lead to inconsistancy'.
    How can we change data source?
    Thanks in Adv.
    Ganesh

    Hi Ganesh,
    You want to change the configuration to this "Read-only SAP System + Data base" rite ?
    Dont change from here -System Administrator->System Configuration->UM Configuration in Data Source Tab
    Start the Config Tool by executing j2eeconfigtoolconfigtool.bat.
    Switch to Edit mode.
    In the tree, navigate to Global server configuration ® services ® com.sap.security.core.ume.service
    Here change the value of the property ume.persistence.data_source_configuration to the one you want to apply(for example dataSourceConfiguration_R/3.xml)
    Click on "Apply Custom" Save the changes.
    Restart the cluster.
    This should work.
    Let me know if you need any other help.
    Thanks,
    Samta

  • Change data source dynamically

    is it possible to change data source dynamically when using ibatis frame work...?

    We don't need a Java reporting tool to change data source dynamically.
    In Oracle Reports we can use:
    - lexical parameters
    - dynamic ref cursors
    - XML runtime customization
    Regards

  • Change Data Source not showing tables (in the taget drop down) that begin with "SYSTEM"

    I am trying to change the data source to a database table that is named someschema.SYSTEM_XXX_XXX but none of my tables that are named SYSTEM_.......  are in the combo box list of the taget tables (Change Data Source) dialog.   I have tried this on several database with the same results.   Are you filtering out tables that begin with system ?

    <p>This issue has been resolved in the latest hot fix for CR4E.   You can download the latest version of the hot fix by   following these steps:</p> <ol><li>Go under the <strong>Help</strong> menu</li><li>Select the option <strong>Software Updates -> Manage Configuration</strong></li><li>Expand the tree until you see <strong>Crystal Reports for Eclipse 1.0.1.v671</strong> (or similar)</li><li>Highlight this entry and select the <strong>Scan for Updates</strong> option in the window on the right.</li></ol> <p>This will allow you to update to the latest version which is   currently <strong>1.0.2.v795</strong> </p> <p>Please let me know if this fix does not resolve the issue   outlined in this thread. </p><p> </p><p>Regards,<br />Sean Johnson (CR4E Product Manager) <br /><br /> <a href="http://www.eclipseplugincentral.com/Web_Links-index-req-ratelink-lid-639.html">Rate this plugin @ Eclipse Plugin Central</a>          </p>

  • Unable to change data source of any report

    Hello there,
    I am using the Crystal Reports Eclipse plugin. I added a datasource to Eclipse 3.3 which connects to a Oracle database using JDBC.
    Now I want to change the data source of a report. I get a popup window which displays the old data source with all tables and columns on the left side. On the right side of the window I see the name of the new data source at the top, but a list of "remove" options below it with a red cross in front (see screenshot).
    It does not matter if I want to change an existing report or a new report.
    I can create a new report with a datasource, but even when I want to change to the same datasource as already assigned to the report, I get the problem described above.
    I already followed some tips found in this forum, e.g. expanding all used tables in the data source explorer etc., but this did not help.
    I know that there was also a possibility to remove the "data source" information completely from the query (as mentioned at http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do;jsessionid=2F140BDBA03E8E97EEF1E15F84964F12?cmd=displayKC&docType=kc&externalId=c2017570&sliceId=&dialogID=13402443&stateId=1%200%2013406567), but I cannot find this option in Crystal reports for Eclipse. I see a field "qualified name" in the properties of each table of my report, but this field is read-only...

    Doesn't anyone have an answer to this problem? I would just like to change the datasource of a report. But I am not able to do so, because the only option I have in the dialog is to remove all tables.
    I just saw that the screenshot is missing. See it here:
    http://img119.imageshack.us/img119/4999/pic1dh1.png

  • How to change data source of Universe

    Hi,
    I have two databases called A_Database and B_Database
    Same tables and data are in both the databases.
    I created universe U_universe using A_Database. It is working fine
    Now I would like to change from A_Database to B_Database in U_universe without affecting any thing in U_universe because tables and data are same.
    Please let me know following doubts.
    1.How to do above things?
    2.if A_Database and B_Database are in different server, how to overwrite data source in the universe
    3.if A_Database and B_Database are in the same server, how to overwrite data source in the universe
    Thanks and Regards,
    Manjunath

    In Designer, import your universe, click on File>Paramers or click on parameters icon on the tool bar and change connection used by the universe from one pointing to Universe A to one pointed to universe B.
    Also, visit this site : http://help.sap.com/content/bobj/bobj/index.htm
    Look for Universe Designer guide.

  • Change data source - mail merge

    I have a mail merge document which was migrated to a new server. Now every time when I run the mail merge document it tells me "Error has occurred: The Microsoft Access database could not find the object '   '. Make sure the object exists and
    that you spell its name and the p". In the error it points to the old path on the server. When I click OK the data link properties window pops up. I change the data source to point to the path of the new server and the document opens up. The only problem is
    that this does not save. I have to specify the new path to the server everytime. How do I set this permanently?

    1. Do you have the same problem if you try to connect a completely new Word document to the data source? If so, probably something wrong with the Excel file - if you can reconstruct it, or even create a test file with the same sheet name and column names,
    that may show that the file is/was at fault.
    2. For the default OLE DB connection type, the SQL message is the correct one - the SQL does not reference the workbook path or name - that comes from the file name or connection string which is not displayed in that dialog box.
    3. When you see the SQL warning and click Yes, do you then see a dialog box which provides the workbook path/name. Does that file exist? Is it the one you expect? If yes, again, I would suspect the Excel file. If no, the wrong data source is "sticking".
    That will happen if the previous data source has not been properly disconnected - e.g. If you proceed from the dialog I mention, then choose the option to find the data source in the next or subsequent dialog, it does then appear that you have corrected
    the problem, but in fact Word "reverts" to the previous source the next time you open. Typically clicking Yes in the SQL dialog box should disconnect the old data source, but I would at least "make sure" by e.g. setting the mail merge main
    document type to Normal Word Document in the mailings tab.
    Peter Jamieson

Maybe you are looking for