1 connection for 1 universe

Seeking if its possible for 1 universe, and user 1 accessing connection 1 and user 2 accessing connection 2?
Many many thanks

Hi Barry,
This is BOBJ security issue.
If you want user 1 to access connection 1 with full or limited right you can do this under CMC.
If you want user 2 to access connection 2 only with full or limited rights and user 2 should not have access to connection 1 you can do this under CMC.
You will have to go to CMC and user groups and connection to restrict them.
Reards,
Bashir Awan

Similar Messages

  • Automatic way to change the connection for Multiple universes

    We recently migrated the BO objects like universes and connections from 3.1 QA to 4.1 Dev.
    But now we want to point all our universe connections of 4.1 Dev system to the BW Dev system instead of BW QA.
    Is there any automated way of doing it ?
    Thanks,
    Tilak

    Promotion Management Overrides

  • Universe Connections for SAP BEx

    Hi All,
    We are planning to build couple of Universes over SAP BEx query.
    Could anyone inform if we should go for creating a single connection and use it for all Universes (or) Create multiple connections.
    Does having different connections for different Universes(though Data Warehouse-BW) is same helps in increasing report performance?
    Thank you.
    - AK

    Hi,
    It all depends on your requirement. There are few ways.
    You can create one super universe on the top of your BW Query and then create your reports using your super universe.
    Or you can create multiple universes and then create your reports.
    Basically one universe one connection. SAP Universes are different then other universes where you create one connection.
    In SAP environment one universe one connection.
    Hope it helps.
    Regards,
    Bashir Awan

  • Windows AD connection for a BO Universe.

    Hiu2026
    I am new to the Universe Designer and CMC interface.
    My question is this:
    Can I establish a database connection, for a universe, to a MS-SQL 2008 server using either ODBC or OLE DB that uses Windows authenticated account and not a SQL Server authenticated login ID/Password?
    When I create a ODBC / OLEDB integrated security on the BO server and test the universe connection, the user that is currently using the Universe is the account that is being passed to the MSSQL 2008 database, for authentication.  I cannot use that pass-through connection. I need to use a dedicated service AD account to be the connection between our Universe an our MSSQL 2008 database.  
    I haven't read any on-line information that explains how to connect a universe to a data source, using a domain AD account.  If someone can point me to some on-line documentation, I would appreciate it. And the BO server version  that is being used: 3.1.
    Thanksu2026

    Hi Joe,
    your thread is close to
    http://scn.sap.com/thread/1532816
    http://scn.sap.com/thread/3309317
    Regards
    NK

  • 64bit CR-Enterprise wont talk with 32bit data source, 32bit IDT wont use 64bit connection for universe. How do I connect them.

    Hi.
    I installed the full suite of tools as I am involved with a company intended to become a partner and reseller so we are trying to get everything working.
    SAP Crystal Server 2013 SP1
    BusinessObjects Business Intelligence platform
    SAP Crystal Reports for Enterprise
    SAP HANA
    SAP Crystal Reports 2013 SP1
    SAP BusinessObjects Explorer
    SAP Crystal Dashboard Design 2013 SP1
    Crystal Server 2013 SP1 Client Tools
    SAP BusinessObjects Live Office 4.1 SP1
    .NET SDK
    I found out that BI was needed only after I installed all the others but I installed it without problem.
    My issue is that the Information Design Tool (IDT) which creates my universes successfully, and even lets me open and see the dada no problem. Is using a 32bit (ODBC connected to SQL Server 2008) data source.
    However, I am unable to load the .UNX in crystal reports (CR) 2011, so I used CR Enterprise (CRE) to connect to my universe. Now when I try to open the universe I start getting the following error:
    [Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application
    When I do searches online I get very generic information relating to setting up data sources. While I believe the problem is indeed with the data source, I don't believe it is setup wrong.
    When I access the universe using the IDT (which uses the 32bit version of the data source to build its connection, it wont let me use a 64bit) I can load a table under the "result objects for query #1" press refresh, I get a list of data.
    When I access the same universe using CRE (which "Seems" to use a 64bit data source, but I am not sure), and follow the same process as above. I get the above error.
    If I cancel the process, when CRE lists the fields for the report I can later manually map these fields to an ODBC connection. But if I have to do this what is the point of using the universes at all as the end user has full access to all the various DB's available in the data source.
    Thanks in advance for any help you can provide.

    On the server where Crystal Reports Server is installed, create a 64-bit ODBC connection with the same name as the 32-bit connection.  CRS will then automatically use the 64-bit version of the connection.
    -Dell

  • No. of Connections needed for creating universes from SAP BEx Queries

    Hello,
    I have 8 SAP BEx queries, my task to create to universe for all of these queries. I have created a datasource connection, my question here is can I use the same connection for all the queries by changing datasource connection and selecting the new query or is it suggestable to create 8 datasource connections in universe designer??
    please let me know if you need any more info.
    Your reply is highly appreciated.
    Thanks,
    Naresh

    HI,
    You need to create 8 connection for 8 BW queries.There is  one to one mapping in the universe.If you change the existing connection source then it will not work for earlier query.
    Other thing you can check like you have 8 queries then instead of creating 8 universe if possible then merge some queries in the single bw query and then create universe.
    Thanks,
    Amit

  • Cannot create SOA-MDS connection for JDBC driver issue

    I am unable to create a SOA-MDS connection in JDeveloper 11.1.1.6. We are using MS SQL Server database and have put the sqljdbc4.jar file into a library in our JDeveloper environments. We can use this to sucessfully create database connections.
    However, when we attempt to configure a SOA-MDS connection which uses our DEV_MDS connection (which uses the com.microsoft.sqlserver.jdbc.SQLServerDriver successfully), we do not see anything in the drop down list for 'Select MDS partition'.
    While looking at the Messages, log, we're getting:
    WARNING: Error reading db partitions for connection DEV_MDS. Reason: MDS-0003: error connecting to the database
    Error during pool creation in Universal Connection Pool Manager MBean
    ...ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerXADataSource
    I opened our sqljdbc4.jar file and see both the SQLServerXADataSource.class and SQLServerDriver.class files in there.
    So why can JDeveloper load one of them but not the other at runtime? Do I need to add the sqljdbc4.jar to a second location (besides a custom Library) in order for the Universal Connection Pool Manager MBean to load it via JDeveloper?
    Please advise,
    Michael
    NOTE: I can manually query the database and see 'soa-infra', 'owsm' and 'obpm' partitions just fine.
    Edited by: mscongdon on Aug 14, 2012 9:33 AM

    Hi,
    Do you use MS SQL Server as your MDS database? Did you create an MDS in it using RCU?
    When you created the database connection in JDeveloper could you test it succesfully? Can you connect to it with the Database Navigator?
    Regards,
    Martien

  • Developing Third Party Connectors for the Universal Worklist

    Hi,
    We need to develop a third party connector for the Universal worklist.
    In order to retrieve the workflow items we want to use a web service that will be developed according our needs.
    The documentation that I found regarding the UWL states that in terms of connectivity we can use Web based protocols such as HTTP and Web Services, but i couldn't find any example for this, besides the SONIC.
    Has someone already developed a third party connector? Examples?
    Thanks in advance.
    Best regards,
    José

    Hi,
    Have a look at these PDFs...
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/405729e9-314f-2a10-eab6-fcebe6fe8cba
    http://help.sap.com/javadocs/nwce/current/uw/UWL%20Custom%20Connector%20API.pdf
    Regards,
    Srinivas.

  • Is it OK to use USB 2.0 connection for Glyph external drive and Mac Pro as project drive?

    Is it OK to use a USB 2.0 connection for Glyph external drive and Mac Pro as project drive? I was told by Sweetwater tech support to use Firewire, but both the FW400 and FW800 connections crash my audio interface software mixer (Presonus' "Universal Control" software).
    Both Firewire connections also create a 10 second hang for each Command-Save that I do.
    USB 2.0 for the external drive seems to be working so far, but is there some reason I should be wary of using this as my go-to project drive? In other words, I am imagining that there was probably some definite reason that the tech support guy mentioned not to use it. But maybe not. It's a brand new Glyph. In any event, it's nice to have the 10 second hang eliminated, and I was just looking for some advice, since digging into the Presonus software issue could take some time.

    If you have a mac pro, why not stick the external HDD inside via one of your many SATA cables & have it run 9 times faster than your USB?
    Or stick a HDD CADDY in your mac pro, so you can slot in a full sized 3TB HDD for recording, and when you are done, pull it out & slip it in an external enclosure if you need to take it places?

  • RESTful Webservices for UNX Universe

    Dear Experts,
    Is Restful available for Changing connections for a UNX Universe (both single and multi source, more interested in multi source).
    Environment details:
    BI 4.0 SP601
    MS SQL Server 2008, Oracle 11g
    Scenarios:
    1. For a multi-source universe, with MS SQL Server, when we switch connections within an environment or between environments, we have to change the owner name manually. Please refer to the ideaplace in the following link:
    https://ideas.sap.com/ct/ct_a_view_idea.bix?c=E445BDF0-DEF5-4D6A-8A1D-519A4D301682&idea_id=65E971C3-1EE3-468D-8630-1E7CC9442775&login=0
    SAP confirmed that this is by design and we have to do all the manual work of changing the owner names, if there are any aliases, derived tables, custom SQL LOVs, etc. etc.
    So we wanted see if there is an automated way of doing that.
    2. Normally in some scenarios when we migrate universe, on the destination system, the migrated universe will have to be imported, and the connections are changed, and then exported back to the repository.
    Please advise. Let me know any questions
    -Peter

    Hi Peter,
    Updating a Universe Connection for Single/Multi source is possible using the Semantic Layer Java SDKs.
    You would not be able to achieve the same using the Semantic Restfull webservices SDKs.
    To find more details on Sematic Layer Java SDKs, Refer to the guide avialble at
    http://help.sap.com/businessobject/product_guides/boexir4/en/slsdk_java_dg_40sp5_en.zip
    Find descriptions and explanations of how samples work in the sample code files.
    Samples are supplied in the archive C:\Program Files\SAP Business Objects\SAP BusinessObjects Enterprise XI 4.0\SL SDK\SDK Samples\com.sap.sl.sdk.authoring.samples.source.jar.
    You would be referring to the below two samples from the above location
    ChangeUniverseConnectionsTest
    Replaces several connections attached to a multisource universe with others in a repository
    ChangeUniverseConnectionTest
    Replaces a connection attached to a single-source universe with another in a repository
    For any queries regarding the SL SDKs raise a post in the below forum
    http://scn.sap.com/community/bi-platform/java-sdk
    Thanks,
    Prithvi

  • Connection for efashion

    I am using BO4.0. I have installed client in my Machine. Now I am importing the efashion Universe. Its giving me connection error. I have tried creating System DSN in my machine. But I didnot get MDB file for efashion universe. In privious version we used to get these Demo universes files in DataConnetion folders But here I didnt get any such file.
    Can some please help me out to know if there are any changed in BO 4.0 version to get the mdb.
    Thanks in Advance.

    Hi,
    I wouldn't focus on efashion too much.  the old efashion was access .mdb  (32 bit only application and middleware)
    with the BI4.0 platform being 64-bit (i.e. for webi Infoview) ,  you're not going to be able to get Access to work easily on the Server.  Sure, it'll work in 32bit on your Client Tools, but not when you export and test via Web..
    the workaround is to restore this DB into SQL server 2008 and use a 'proper' database doing forward.
    It actuall a very good excercise when learning BI 4.0,  but if you are a user, rather than a developer,  it is probably more trouble than it is worth.
    Actually, if you need a demo source - I'd recommend using Ms Adventure Works sample db on SQL Server 2008,
    Regards,
    H

  • Extracting reports connected to a universe

    Hi,
    In my platform BOXI R2, I have a universe named logistic. I need to extract, using query builder if possible, all the reports (webI and DeskI) connected with this universe.
    Have someone a query to solve this issue ?
    Where I can find a manual for the query language with the predefined functions description and the tables to query description ?
    Thanks a lot

    This will have to be done in 2 steps:
    Step 1: Write a query that displays the SI_IDs of all reports connected to a universe. The query for that is:
    SELECT
           SI_NAME, SI_WEBI, SI_DATACONNECTION
    FROM
         CI_APPOBJECTS
    WHERE
         SI_KIND = u2018universeu2019 and SI_NAME = u2018logisticu2019
    Step 2: Write a query to display the webi report names from the SI_IDs of the Webi reports (SI_WEBI);
    SELECT
         SI_NAME
    FROM
         CI_INFOOBJECTS
    WHERE
         SI_ID IN (comma separated SI_WEBI values from step 1)
    As for Deski report, there is no property that lists the SI_ID of Deski reports directly (you will have to use some modification of SELECT SI_ID FROM      CI_APPOBJECTS WHERE SI_KIND='FullClient').
    Finally, there is no manual per se. The best documentation for the query builder is at:
    [http://devlibrary.businessobjects.com/BusinessObjectsXIR2/en/devsuite.htm]
    Go to BusinessObjects Enterprise SDK -> COM Developer guide and API reference -> Query Language Reference.

  • IDT SDK - getting connection for DataFoundation table

    Hello,
    I retrive universe from repository, open local DataFoundation and getting tables.
    Now I want to know which connection (repository SI_ID) using each table. Any ideas?
    My code:
    String localPath = cmsService.retrieveUniverse("MY_UNIVERSE.unx", LOCAL_FOLDER, true);
    SlResource loadedRes = localService.load(localPath);
    RelationalBusinessLayer businessLayer = (RelationalBusinessLayer) loadedRes;
    String localDFPath = businessLayer.getDataFoundationPath();
    SlResource resource = localService.load(localDFPath);
    DataFoundation dataFoundation = null;
    if (resource instanceof MonoSourceDataFoundation) {
                dataFoundation = (MonoSourceDataFoundation) resource;
    } else if (resource instanceof MultiSourceDataFoundation) {
                dataFoundation = (MultiSourceDataFoundation) resource;
    List<Table> tables = dataFoundation.getTables();
    for (Table table : tables) {
              System.out.println("Table: " + table.getName() + " using connection: ????");
    BO 4.1 SP3

    Hi
    To check the connection information for IDT universe
    To check a secured connection, in the repository resources view, open a session on the repository where the connection is published and The Connection folder or sub folder, double click connection name.
    Then check the Server, connection name, Connection Type, Repository Folder, and general information.
    Please find the below link.
    How to check connection parameters information in IDT

  • Getting Error:closing a connection for you. Please help

    Hello All,
    I'm using jboss3.2.6. I used ejb2.1 (session bean and entity bean[BMP]). I did few data base transations in cmp and few in simple data source connection.
    I'm getting below errors occasionally
    'No managed connection exception
    java.lang.OutOfMemoryError: Java heap space
    [CachedConnectionManager] Closing a connection for you. Plea
    se close them yourself: org.jboss.resource.adapter.jdbc.WrappedConnection@11ed0d
    5
    I've given below my dao connection code here,
    package com.drtrack.util;
    import java.sql.Connection;
    import java.sql.SQLException;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import javax.sql.DataSource;
    public class DAOUtil {
    private static DataSource _ds;
    public Connection con;
    public DAOUtil() throws SQLException {
    try {
    if (_ds == null)
    assemble();
    if(_ds != null && con == null) {
    con = _ds.getConnection();
    }catch(SQLException ex) {
    ex.printStackTrace();
    private void assemble() {
    Context ic = null;
    try {
    ic = new InitialContext();
    DrTrackUtil drutil = new DrTrackUtil();
    _ds = (DataSource) ic.lookup("java:/" + drutil.getText("SOURCE_DIR"));
    drutil = null;
    }catch (Exception e) {
    e.printStackTrace();
    }finally {
    try {
    ic.close();
    }catch(NamingException ne) {}
    public void closeConnection() throws SQLException {
    if(con != null)
    con.close();
    con = null;
    }below is the code with get connection and doing transaction in it.
    public static AccountMasterValueBean getAccountMasterByAcctId(String acctId) {
    AccountMasterValueBean bean = null;
    DAOUtil dao = null;
    CallableStatement cst = null;
    ResultSet rs = null;
    try {
    dao = new DAOUtil();
    cst = dao.con.prepareCall(DrTrackConstants.MSSQL_USP_ACCOUNTMASTER_BY_ACCTID);
    cst.setObject(1, acctId);
    rs = cst.executeQuery();
    if(rs != null && rs.next()) {
    bean = new AccountMasterValueBean(
    Integer.valueOf(rs.getString("accountkeyid")),
    rs.getString("latitude"),
    rs.getString("longitude"));
    }catch(SQLException se) {
    logger.info("SQL Error: " + se);
    finally {
    if(rs != null){
    try {
    rs.close();
    }catch(SQLException se) {
    logger.info("SQL Error: " + se);
    finally {
    rs = null;
    if(cst != null) {
    try{
    cst.close();
    }catch(SQLException se) {
    logger.info("SQL Error: " + se);
    finally {
    cst = null;
    if(dao != null) {
    try {
    dao.closeConnection();
    }catch(SQLException se) {
    logger.info("SQL Error: " + se);
    finally {
    dao = null;
    return bean;
    }I closed connections, resultsets and statements properly.
    Why I'm getting these errors.? Where I'm doing wrong. ? Please help me. I have to fix them ASAP.
    Thanks.

    Hello All,
    I'm using jboss3.2.6. I used ejb2.1 (session bean and entity bean[BMP]). I did few data base transations in cmp and few in simple data source connection.
    I'm getting below errors occasionally
    'No managed connection exception
    java.lang.OutOfMemoryError: Java heap space
    [CachedConnectionManager] Closing a connection for you. Plea
    se close them yourself: org.jboss.resource.adapter.jdbc.WrappedConnection@11ed0d
    5
    I've given below my dao connection code here,
    package com.drtrack.util;
    import java.sql.Connection;
    import java.sql.SQLException;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import javax.sql.DataSource;
    public class DAOUtil {
    private static DataSource _ds;
    public Connection con;
    public DAOUtil() throws SQLException {
    try {
    if (_ds == null)
    assemble();
    if(_ds != null && con == null) {
    con = _ds.getConnection();
    }catch(SQLException ex) {
    ex.printStackTrace();
    private void assemble() {
    Context ic = null;
    try {
    ic = new InitialContext();
    DrTrackUtil drutil = new DrTrackUtil();
    _ds = (DataSource) ic.lookup("java:/" + drutil.getText("SOURCE_DIR"));
    drutil = null;
    }catch (Exception e) {
    e.printStackTrace();
    }finally {
    try {
    ic.close();
    }catch(NamingException ne) {}
    public void closeConnection() throws SQLException {
    if(con != null)
    con.close();
    con = null;
    }below is the code with get connection and doing transaction in it.
    public static AccountMasterValueBean getAccountMasterByAcctId(String acctId) {
    AccountMasterValueBean bean = null;
    DAOUtil dao = null;
    CallableStatement cst = null;
    ResultSet rs = null;
    try {
    dao = new DAOUtil();
    cst = dao.con.prepareCall(DrTrackConstants.MSSQL_USP_ACCOUNTMASTER_BY_ACCTID);
    cst.setObject(1, acctId);
    rs = cst.executeQuery();
    if(rs != null && rs.next()) {
    bean = new AccountMasterValueBean(
    Integer.valueOf(rs.getString("accountkeyid")),
    rs.getString("latitude"),
    rs.getString("longitude"));
    }catch(SQLException se) {
    logger.info("SQL Error: " + se);
    finally {
    if(rs != null){
    try {
    rs.close();
    }catch(SQLException se) {
    logger.info("SQL Error: " + se);
    finally {
    rs = null;
    if(cst != null) {
    try{
    cst.close();
    }catch(SQLException se) {
    logger.info("SQL Error: " + se);
    finally {
    cst = null;
    if(dao != null) {
    try {
    dao.closeConnection();
    }catch(SQLException se) {
    logger.info("SQL Error: " + se);
    finally {
    dao = null;
    return bean;
    }I closed connections, resultsets and statements properly.
    Why I'm getting these errors.? Where I'm doing wrong. ? Please help me. I have to fix them ASAP.
    Thanks.

  • How do I set miminum # of connections for pool with Oracle and Tomcat?

    Hi,
    I can't seem to find any attribute to initialize the number of connections for my connection pool. Here is my current context.xml file under my /App1 directory:
    <Context path="/App1" docBase="App1"
    debug="5" reloadable="true" crossContext="true">
    <Resource name="App1ConnectionPool" auth="Container"
    type="oracle.jdbc.pool.OracleDataSource"
    driverClassName="oracle.jdbc.driver.OracleDriver"
    factory="oracle.jdbc.pool.OracleDataSourceFactory"
    url="jdbc:oracle:thin:@127.0.0.1:1521:oddjob"
    user="app1" password="app1" />
    </Context>
    I've been googling and reading forums, but haven't found a way to establish the minimum number of connections. I've tried all sorts of parameters like InitialLimit, MinLimit, MinActive, etc, with no success.
    Here is some sample code that I am testing:
    package web;
    import oracle.jdbc.pool.OracleDataSource;
    import oracle.jdbc.OracleConnection;
    import javax.naming.*;
    import java.sql.SQLException;
    import java.sql.ResultSet;
    import java.sql.Statement;
    import java.util.Properties;
    public class ConnectionPool {
    String message = "Not Connected";
    public void init() {
    OracleConnection conn = null;
    ResultSet rst = null;
    Statement stmt = null;
    try {
    Context initContext = new InitialContext();
    Context envContext = (Context) initContext.lookup("java:/comp/env");
    OracleDataSource ds = (OracleDataSource) envContext.lookup("App1ConnectionPool");
    message = "Here.";
         String user = ds.getUser();
    if (envContext == null)
    throw new Exception("Error: No Context");
    if (ds == null)
    throw new Exception("Error: No DataSource");
    if (ds != null) {
    message = "Trying to connect...";
    conn = (OracleConnection) ds.getConnection();
    Properties prop = new Properties();
    prop.put("PROXY_USER_NAME", "adavey/xxx");
    if (conn != null) {
    message = "Got Connection " + conn.toString() + ", ";
              conn.openProxySession(OracleConnection.PROXYTYPE_USER_NAME,prop);
    stmt = conn.createStatement();
    rst = stmt.executeQuery("SELECT username, server from v$session where username is not null");
    while (rst.next()) {
    message = "DS User: " + user + "; DB User: " + rst.getString(1) + "; Server: " + rst.getString(2);
    rst.close();
    rst = null;
    stmt.close();
    stmt = null;
    conn.close(); // Return to connection pool
    conn = null; // Make sure we don't close it twice
    } catch (Exception e) {
    e.printStackTrace();
    } finally {
    // Always make sure result sets and statements are closed,
    // and the connection is returned to the pool
    if (rst != null) {
    try {
    rst.close();
    } catch (SQLException e) {
    rst = null;
    if (stmt != null) {
    try {
    stmt.close();
    } catch (SQLException e) {
    stmt = null;
    if (conn != null) {
    try {
    conn.close();
    } catch (SQLException e) {
    conn = null;
    public String getMessage() {
    return message;
    I'm using a utility to repeatedly call a JSP page that uses this class and displays the message variable. This utility allows me to specify the number of concurrent web requests and an overall number of requests to try. While that is running, I look at V$SESSION in Oracle and occassionaly, I will see a brief entry for app1 or adavey depending on the timing of my query and how far along the code has processed in this example. So it seems that I am only using one connection at a time and not a true connection pool.
    Is it possible that I need to use the oci driver instead of the thin driver? I've looked at the javadoc for oci and the OCIConnectionPool has a setPoolConfig method to set initial, min and max connections. However, it appears that this can only be set via Java code and not as a parameter in my context.xml resource file. If I have to set it each time I get a database connection, it seems like it sort of defeats the purpose of having Tomcat maintain the connection pool for me and that I need to implement my own connection pool. I'm a newbie to this technology so I really don't want to go this route.
    Any advice on setting up a proper connection pool that works with Tomcat and Oracle proxy sessions would be greatly appreciated.
    Thanks,
    Alan

    Well I did some more experiments and I am able to at least create a connection pool within my example code:
    package web;
    import oracle.jdbc.pool.OracleDataSource;
    import oracle.jdbc.OracleConnection;
    import javax.naming.*;
    import java.sql.SQLException;
    import java.sql.ResultSet;
    import java.sql.Statement;
    import java.util.Properties;
    public class ConnectionPool {
    String message = "Not Connected";
    public void init() {
    OracleConnection conn = null;
    ResultSet rst = null;
    Statement stmt = null;
    try {
    Context initContext = new InitialContext();
    Context envContext = (Context) initContext.lookup("java:/comp/env");
    OracleDataSource ds = (OracleDataSource) envContext.lookup("App1ConnectionPool");
    message = "Here.";
         String user = ds.getUser();
    if (envContext == null)
    throw new Exception("Error: No Context");
    if (ds == null)
    throw new Exception("Error: No DataSource");
    if (ds != null) {
    message = "Trying to connect...";
    boolean cache_enabled = ds.getConnectionCachingEnabled();
    if (!cache_enabled){
    ds.setConnectionCachingEnabled(true);
    Properties cacheProps = new Properties();
    cacheProps.put("InitialLimit","5");
         cacheProps.put("MinLimit","5");
    cacheProps.put("MaxLimit","10");
    ds.setConnectionCacheProperties(cacheProps);
              conn = (OracleConnection) ds.getConnection();
    Properties prop = new Properties();
    prop.put("PROXY_USER_NAME", "adavey/xyz");
    if (conn != null) {
    message = "Got Connection " + conn.toString() + ", ";
              conn.openProxySession(OracleConnection.PROXYTYPE_USER_NAME,prop);
    stmt = conn.createStatement();
    //rst = stmt.executeQuery("SELECT 'Success obtaining connection' FROM DUAL");
    rst = stmt.executeQuery("SELECT user, SYS_CONTEXT ('USERENV', 'SESSION_USER') from dual");
    while (rst.next()) {
    message = "DS User: " + user + "; DB User: " + rst.getString(1) + "; sys_context: " + rst.getString(2);
    message += "; Was cache enabled?: " + cache_enabled;
    rst.close();
    rst = null;
    stmt.close();
    stmt = null;
    conn.close(OracleConnection.PROXY_SESSION); // Return to connection pool
    conn = null; // Make sure we don't close it twice
    } catch (Exception e) {
    e.printStackTrace();
    } finally {
    // Always make sure result sets and statements are closed,
    // and the connection is returned to the pool
    if (rst != null) {
    try {
    rst.close();
    } catch (SQLException e) {
    rst = null;
    if (stmt != null) {
    try {
    stmt.close();
    } catch (SQLException e) {
    stmt = null;
    if (conn != null) {
    try {
    conn.close();
    } catch (SQLException e) {
    conn = null;
    public String getMessage() {
    return message;
    In my context.xml file, I tried to specify the same Connection Cache Properties as attributes, but no luck:
    <Context path="/App1" docBase="App1"
    debug="5" reloadable="true" crossContext="true">
    <Resource name="App1ConnectionPool" auth="Container"
    type="oracle.jdbc.pool.OracleDataSource"
    driverClassName="oracle.jdbc.OracleDriver"
    factory="oracle.jdbc.pool.OracleDataSourceFactory"
    url="jdbc:oracle:thin:@127.0.0.1:1521:oddjob"
    user="app1" password="app1"
    ConnectionCachingEnabled="1" MinLimit="5" MaxLimit="20"/>
    </Context>
    These attributes seemed to have no effect:
    ConnectionCachingEnabled="1" ; also tried "true"
    MinLimit="5"
    MaxLimit="20"
    So basically if I could find some way to get these attributes set within the context.xml file instead of my code, I would be a happy developer :-)
    Oh well, it's almost Miller time here on the east coast. Maybe a few beers will help me find the solution I'm looking for.

Maybe you are looking for

  • Issue in CIF data between ECC to APO

    Hi Experts, We have ECC and APO system in our landscape. we have configured CIF and transferred data between ECC and APO however after ECC system refresh CIF configuration is not working. we verified and reconfigured the CIF configuration but still n

  • Query with subquery should return value but doesn't

    When I run this SQL, it returns no value: SELECT vfn.cat FROM vps_fishery_ner vfn, valid_fishery vf WHERE vfn.plan = vf.plan AND vfn.cat = vf.cat AND vf.permit_year = 2010 AND vf.moratorium_fishery = 'T' AND vfn.vp_num = 211652 AND vfn.ap_year = 2010

  • IPad guest users cannot see YouTube videos but Android devices can

    Hi all, I am in the process of moving a guest SSID from a local Wireless LAN Controller to it being anchored for security reasons to another WLC in the DMZ. I have created a test SSID which is anchored in the DMZ and have found that everything is wor

  • Cannot find Equium A210-1C4 support

    Hello I cannot find any information about the Notebook I have it is a EQUIUM A210-1C4 but I cannot find this in the initial drop down for support of the discontinued area. I need to re-install the operating system but the supplied Product Recovery di

  • Error ID 3 WebHost failed to process a request.

    We are getting the following error after installing the last 3 months Windows updates. No SharePoint updates or patches were applied. WebHost failed to process a request.  Sender Information: System.ServiceModel.ServiceHostingEnvironment+HostingManag