Report from different connection pools

Hi All
My requirement is as below.
When USER1 logs in and builds a report from a subject area then the data is fetched from connection_pool1 and when user 2 logs in and builds the same report then data is fetched from connection_pool2.
The data are in identical table structures in both connection pools but for user2 there is a restriction on the volume of data hence can this dynamic feature be implemented? and How.
thanks
swastik

We cannot do this dynamically,We need to change this manually
Connection Pool ---- Permissions
Mark if helps,
Thanks,

Similar Messages

  • Problem in getting the database connection from a connection pool

    Hai All,
    I am facing a problem in getting the database connection from a connection pool created on weblogic server 8.1.
    I am using the Oracle database 8.1.7.
    I have configured my connection pool, datasource and JNDI in weblogic.
    In my java program i have the following code to retrieve the connection.
    import java.sql.*;    
    import java.util.Hashtable;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    class jdbcshp1 {
        public static void main(String[] args) {
         Connection connection = null;
         try {
               Hashtable ht = new Hashtable();
               ht.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");  // Wanna get rid of this.
               ht.put(Context.PROVIDER_URL,"t3://localhost:7001"); // wanna get rid of this.
               // Get a context for the JNDI look up
               Context ctx = new InitialContext(ht);
            javax.sql.DataSource ds = (javax.sql.DataSource) ctx.lookup ("myjndi1");
              //Create a connection object
              connection = ds.getConnection();
         The above code is working fine but, the two ht.put statements are creating problem.
    The problem is, after converting the application into WAR file it can be deployed
    on any machine or different port on same machine. My application fails if its deployed on
    weglogicserver which is at different port.
    Is there any way that i can get rid of those ht.put statements or any other way to solve the problem.
    any help is appreciated.
    Thanks in advance
    Pooja.

    Hai All,
    Firstly, thanks for ur reply.
    Even i have seen some code which uses context constructor with out any parameter and works fine.
    i dont understand why its not working for my code.
    When i remove those ht.put code and use context constructor with out any parameter, it giving an error.
    Context ctx = new InitialContext();
    javax.sql.DataSource ds = (javax.sql.DataSource) ctx.lookup ("ocjndi");
    connection = ds.getConnection();The error is as follows:
    javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
    the above error is forcing me to include those code but if the port number is changed the code will not work. Plz let meknow if some setting have to be made.
    I appreciate all ur valuable help.
    Thanks once again.
    Pooja.

  • Possible to detect if a connection was fetched from the connection pool?

    Is there any way to differentiate between newly opened connections and connections that came from the connection pool? It would have to work without requiring a round trip to the server because I'd only use it to optimize away a procedure call that I now have to do for every connection that is opened.
    If the answer is different for the classic provider and the fully managed one, please provide both.

    @Op. What you are trying to do can't be done.

  • Physical Tables from multiple connection pools

    Hi all,
    we have in our RPD file two connection pools (let's say A and B), each connecting to a different source DBs.
    Thus, each physical table resides either in source DB A or B (xor).
    The specified connections work in Admin tool, and also direct database requests work in OBIEE 11G if we explicitly
    provide the correct connection pool. The connection pools are specified in order A,B in the Admin tool.
    However, using OBIEE answers always results in following error message if data from the connection pool B
    is to be queried:
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000]
    [nQSError: 10058] A general error has occurred.
    [nQSError: 43113] Message returned from OBIS.
    [nQSError: 17001] Oracle Error code: 942, message: ORA-00942: table or view does not exist at OCI call OCIStmtExecute.
    [nQSError: 17010] SQL statement preparation failed. (HY000)
    If we exchange the order of connection pools to B,A in Admin tool, we get the same error if we query
    data from connection pool A.
    It seems that each connection pool needs to be able to access all physical tables. Is that correct?
    Thanks, Thomas
    Edited by: user13376481 on Mar 4, 2013 3:08 AM

    Hi Thomas.
    I have the same escenario...
    you tried the solution? worked?
    Thanks.
    Hamilton T

  • Using EJB from another connection pool in WLPI

    Hi All,
    I've deployed an entity bean (CMP) which used the connection pool other than the
    one used by WLPI. When I execute the business operation I've defined for this
    bean, the following exception is encountered:
    "Couldn't get connection: java.sql.SQLException: Connection has already been created
    in this tx context for pool named wlpiPool. Illegal attempt to create connection
    from another pool: oraclePool"
    Is there any other alternative for me to use the entity bean in WLPI?
    Thanks,
    Fred

    Instead of using mulitiple connection pool,we are using single connection pool.
    Our one application, accessing remote db also, for that we are using simple jdbc
    connection. No pool.
    We also tried OracleXAdriver. In that case, at the time of startup we are getting
    weird error.
    Thanks
    JIgnesh Patel
    "Fred" <[email protected]> wrote:
    >
    I simply turned all my CMP to BMP and get the connection from another
    connection
    pool. But that was not what I want. Is there any method that allows a
    CMP to use
    connection pool other than the wlpiPool pool in WLPI?
    Thanks
    "jignesh" <[email protected]> wrote:
    Hi Fred,
    We are also getting same error. How did you resolve this error ?
    I'd appreciate,if you can post resolution of this error.
    Thanks
    Jignesh Patel
    "Fred" <[email protected]> wrote:
    Hi All,
    I've deployed an entity bean (CMP) which used the connection pool other
    than the
    one used by WLPI. When I execute the business operation I've defined
    for this
    bean, the following exception is encountered:
    "Couldn't get connection: java.sql.SQLException: Connection has already
    been created
    in this tx context for pool named wlpiPool. Illegal attempt to create
    connection
    from another pool: oraclePool"
    Is there any other alternative for me to use the entity bean in WLPI?
    Thanks,
    Fred

  • Compare Merge Model problems with models from different connections

    Hi all,
    I've experienced a problem while using the compare/merge model funcion under tools.
    Just to put in place:
    I've 4 model, one for each enviroment that I have: DEV, INT, TEST, PROD(*each model imported from different connections*). Because I haven't found any reliable way to keep them sincronyzed, using DLL deltas. Is there a way to do that?
    Anyway, regarding the main subject problem. Whem I try to sync for example, from PROD, to TEST, using compare/merge model function under tools, the process find the differences. When I selecte those that I want, and click on merge, the destination model TEST, get the selected objects merged into.
    But now, the model Schema, when I select sincronyze model with data dictionary to get de DLL delta, things get crazy, and the merged objects doesn't get detected to be created.
    If it's help, I think that the is with the associated import connection than the merged objects have. They have the PROD connection name, instead of the TEST connection name. Also when I try to syncronize the relational model againts de data dictionary(database), datamodeler ask me wich connection to use, PROD or TEST. When, before, merging, model, data modeler did not ask me anything.
    Why is data modeler doing this?
    What I have seen is when you import in a model things from different connections/models, when you try to sincronyze agains a connection, all objects that are not from the selected connection doesn't get compared.
    Is there a bug or a problem?
    How can I can keep a schema in different enviroments, sync? What are the step that I shoulf follow?
    Thanks in advance.
    Edited by: morfeo8marc on 14-mar-2012 11:17

    I shall try to explain what is happening here.
    When you import objects from TEST data dictionary, their source information (see Summary info in Properties dialog) will refer to TEST.
    The relational model for TEST will contain source information (see Summary info in Properties dialog) for the connection to TEST.
    Similarly, imported objects from PROD will refer to the PROD data dictionary, and the PROD relational model will hold connection details for PROD.
    If you merge PROD objects into the TEST model, they will retain their source information (i.e. referring to PROD).
    The TEST model will be updated to include connection details to PROD.
    When you synchronize a model, if it only has one source connection, it uses that.
    If it has more than one, it will prompt you to decide to which data dictionary it should synchronize.
    In your case, for the TEST data dictionary, it will synchronize all objects that have source information for TEST (i.e. those imported from TEST).
    It will also compare any new objects (i.e. those not imported from a data dictionary).
    It will not compare objects that were imported from a different data dictionary (e.g. PROD).
    This supports the scenario where a model consists of objects imported from more than one data dictionary, and where the data dictionaries are maintained separately.
    We may need to review the above strategy in light of your experience and development process.
    In the meantime, may I suggest that from your updated TEST model, you Import from Data Dictionary using the TEST connection.
    The resulting Compare Models dialog should show all objects (i.e. those from TEST and PROD).
    You may need to set the Swap Models option to generate DDL with which to update your TEST data dictionary.
    Thank you for raising this matter.
    Regards,
    Tony Rose

  • Different connection pool for a report

    Hi experts,
    For one my reports using 'CLOBS' like explained (http://oraclebizint.wordpress.com/2007/11/12/oracle-bi-ee-101332-working-with-clob-fields/) I need to disable parallel processing because it's not supported.
    NO_PARALLEL and NO_INDEX_PARALLEL hints at the query level couldn't disable the parallelism.the optimizer still use it.
    I thought about having a new connection pool that contains 'before query' and 'after query' statements that will disable the parallelism.This will take me a lot of time to rebuild the whole Presentation and Business layers to point to a new physical tables.
    Any one has an idea about how I can use another connection pool for a specific report?
    Regards

    I have the problem. My issue is that I need to have a webservice use the 2 database connection pools I have created. Originally the pools were Non-XA. When I change them to XA I cannot get the JMS JDBC Store to work.
    java.lang.Exception: WebLogic Pool Driver doesn't support XA driver, Please change your config to use a Non-XA driver
    However, part of what you wrote below I don't understand. You said you configured a brand new JMS JDBC Store and was able to use an XA Connection Pool? I tried to delete my existing one and create it anew, but was not able to use an XA pool.
    Is there any solution around this? I need to have an XA Pool for a webservice but non-XA for my JMS Store.
    "After much digging I found documentation that you cannot configure an XA JDBC Connection Pool for use with a JMS JDBC Store: http://edocs.bea.com/wls/docs81/ConsoleHelp/jms_config.html#1128929
    The only thing is that if I configure a brand new JMS JDBC Store and make it use the XA JDBC Connection Pool (instead of just selecting the new MySQLXAConnPool from the list that includes the non XA pool) it works without an error."

  • Connect to two different connection pool

     

    You should post to jdbc group.
    Please post more detail about the exception.
    "ahmad" <[email protected]> wrote in message
    news:40d83847$1@mktnews1...
    Hi, everybody,
    I have two entity bean, associated with two different datasource andconnection pool, how can I look up these two entity bean, and get them from
    one session bean.
    >
    now, when I looking up and get them, an exception throws :
    Illegal attemp to connect two another connection pool.
    regards
    Ahmad R. Seddighi

  • How to get Driver and url names from a connection pool

    Hi,
    How to get the DriverName and URL from an existing pool, If I know the name of
    connection pool ? Is it possible to know the name of related pool , if I know
    the name of datasource?
    Thx
    Manish

    hi
    there are 2 ways:
    url must be: jdbc:weblogic:pool[:connectionPoolID]
    or
    jdbc:weblogic:jts[:connectionPoolID] (if you want to use jts with your JDBC connection.)
    see http://e-docs.bea.com/wls/docs60//javadocs/weblogic/jdbc/pool/Driver.html
    However, I think it is safer to configure and use DataSource to get connection.
    Nicolas
    "kumar" <[email protected]> wrote:
    >
    Hi,
    How to get the DriverName and URL from an existing pool, If I know the name
    of
    connection pool ? Is it possible to know the name of related pool , if I
    know
    the name of datasource?
    Thx
    Manish

  • Could not retrieve connection info from torque connection pool

    Hi,
    I am using Apache Torque for making connection with my Oracle 9i server.
    My Torque.properties file configuration is as follows:-
    torque.dsfactory.cpm.factory=org.apache.torque.dsfactory.SharedPoolDataSourceFactory
    torque.dsfactory.cpm.pool.maxActive=10
    torque.dsfactory.cpm.pool.maxWait=60
    torque.dsfactory.cpm.pool.testOnBorrow=true
    torque.dsfactory.cpm.pool.validationQuery=SELECT 1 from dual
    torque.dsfactory.cpm.connection.driver = oracle.jdbc.driver.OracleDriver
    I am getting the following error:-
    Caused by: org.apache.commons.dbcp.SQLNestedException: Could not retrieve connection info from pool
    at org.apache.commons.dbcp.datasources.SharedPoolDataSource.getPooledConnectionAndInfo(SharedPoolDataSource.java:169)
    According to me the cause of error is because of the database connection was not available in the connection pool. Or it might be due to The connection was not closed properly becuase of the some issue in the persistent layer.
    My Research till now:-
    Checked all the connection object properly closed in my classes as well as Torque Classes.
    Do anyone have any idea regarding this error. If yes, please suggest some solution for it.
    ----Anurag----

    Hi,
    I have my complete Torque.properties file, just for the reference, I have pasted few lines from my torque.properties file. Secondly, I am using the JDBC Driver for my oracle connection & its working fine. The problem is when my application tries to access connection from connection pool, & if it finds no connection in the pool it gives error. After increasing the size of the connection in the pool, still I am getting the same error. Do you have some idea regarding this.

  • Consolidate report from different contexts

    Hello, is there a way to build a report that consolidates virtual indicators from different contexts?

    One approach would be to build a set of PAS measures that bring together the data, and then report from those measures.

  • ABAP report  from fields connecting to an external database

    Hi All,
    The requirement is to connect some GL data with external audit data which is stored in an oracle database.  These two table data has to be merged and a report has to be generated.
    I heard we could connect to the external database from the R/3 4.7 version through DBconnect.  Has anyone come across any such requirement and done a similar report, could you give me the inputs please.
    regards
    Girish

    Questions like yours are best asked over at the webOS Developer's Forum.  The Palm Support Community here is geared to answering end-user questions about devices, not programming information.
    https://developer.palm.com/
    WyreNut
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

  • Import/Convert reports from different software.

    Post Author: cchang
    CA Forum: General
    I am a recent hire to a company that is using Relation&Report Writer for database reporting.  Previous to my hiring the company purchased Crystal to replace the current report writer because of it's limitations.  The problem I have is I don't want to rewrite all the existing reports but would like to use Crystal exclusively and get rid of the old writer.  I would like to know if anyone has ever tried importing or cnverting old reports to Crystal?  Is it even possible?  Thanks!

    Hi Ella,
    You can exclude universes and connections to get import while importing , import only reports if those reports using same universe.

  • Ajax Dynamic Conntent -- pull report from different page

    Hi All,
    I am reposting my question, the previous thread was hacked by Fifi :-) . I am trying to implement Denes's solution in this Pulling Dynamic Conntent . Somehow I am getting java script error "unknown runtime error". on page load itself. It is giving error at the code html_GetElement('ReportDrop').innerHTML = gReturn;
    I believe I am missing some of the referenced java script files.
    Any help please ?
    I have kept my application on Apex.oracle.come
    workspace : edw_apex
    manish/manish
    Thanks
    Manish

    Finally I figured out the page template was missing, which was causing the issue. Just overwrote the body and footer of the template from this Make a copy of exiting page template and replace the body part with the code below:
    <htmldb:SUCCESS_MESSAGE><div id="SUCCESS_MESSAGE">#SUCCESS_MESSAGE#</div></htmldb:SUCCESS_MESSAGE>
    <htmldb:NOTIFICATION_MESSAGE><div id="NOTIFICATION_MESSAGE">#NOTIFICATION_MESSAGE#</div></htmldb:NOTIFICATION_MESSAGE>
    <htmldb:GLOBAL_NOTIFICATION><div id="GLOBAL_NOTIFICATION">#GLOBAL_NOTIFICATION#</div></htmldb:GLOBAL_NOTIFICATION>
    <htmldb:REGION_POSITION_01><div id="REGION_POSITION_01">#REGION_POSITION_01#</div></htmldb:REGION_POSITION_01>
    <htmldb:REGION_POSITION_02><div id="REGION_POSITION_02">#REGION_POSITION_02#</div></htmldb:REGION_POSITION_02>
    <htmldb:REGION_POSITION_03><div id="REGION_POSITION_03">#REGION_POSITION_03#</div></htmldb:REGION_POSITION_03>
    <htmldb:REGION_POSITION_04><div id="REGION_POSITION_04">#REGION_POSITION_04#</div></htmldb:REGION_POSITION_04>
    <htmldb:REGION_POSITION_05><div id="REGION_POSITION_05">#REGION_POSITION_05#</div></htmldb:REGION_POSITION_05>
    <htmldb:REGION_POSITION_06><div id="REGION_POSITION_06">#REGION_POSITION_06#</div></htmldb:REGION_POSITION_06>
    <htmldb:REGION_POSITION_08><div id="REGION_POSITION_08">#REGION_POSITION_08#</div></htmldb:REGION_POSITION_08>
    <htmldb:BOX_BODY><div id="BOX_BODY">#BOX_BODY#</div></htmldb:BOX_BODY>
    Replace the footer part with the code
    #FORM_CLOSE#</body></html>Thanks again !!
    --Manish                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Multiple connection pools

    Hi,
    I have a requirement to build a report. The columns are scatterred in different connection pools. Copying the tables from different databases gives me error of OCI.
    What is the best way of doing this, i do not have the connection entries like username and pwd for different connection pools so i cannot import from the database.
    Is there some easy way of doing this.
    Help will be appreciated
    Rgds
    Amit

    hi Amit,
    I have imported some tables which has the columns and when i queried the rpd i found some columns residing in different databases. Then you need to import to RPD from different sources(connection pool1,2....)
    so is it the right way to bring in tables from different connection pools and build the tables or have one connection poolYeah there will be no issue if u have more connection pool we can create the report,make the join conditions properly
    Let me know if u are facing problem
    thanks,
    Saichand.v

Maybe you are looking for

  • DUNNING

    Hi , I tried to run Dunning process for a customer . Posted an customer invoice , and started the dunning procedure for overdue items . The system threw the error : Forms for MAHR ( dunning procedure ) , RBUKM ( Company code ) , KOART ( D- Customer )

  • I want to relocate my iTunes library on a NAS drive and stream to apple tv2 and DLNA tbs around the house is this possible and if so which is the best NAS drive to buy???

    I want to relocate my iTunes library on a NAS drive and stream to apple tv2 and DLNA tbs around the house is this possible and if so which is the best NAS drive to buy???

  • Finder Window Sizes and View Options

    In an earlier message under Mac OS X Panther it was recommended that I post a new message in the AppleScript forum. I'm looking for a way to automate the repetitive task of resizing Finder windows and resetting view options. For example resetting a h

  • Where is the itunes playlist in version 12?

    Really? why is apple making things so complicated with all its new updates?! Just updated to itunes 12.01 after resisting for a while. The whole navigation has changed. Change for the sake of change it completely not necessary especially when there i

  • Disk image size

    Hello. I have a number of files on an external drive that I would like to save to an encrypted image. The files amount to over 300 gb(and will grow). The external HD is 500gb. Is there a limit to the size of dmg file? Is there a better way to lock/en