Multiple connection of same database

Hi
In my program I need to have multiple connections of same database and it must execute different procedures parallely . Can any one suggest how to do it.
Thanks in advance

Threads

Similar Messages

  • How to create multiple instance on same database

    Hi ,
    I would like to know how to create multiple instance on same database . I know that some people use database configuration assistant to do this but i could not figure out how they did it.
    Any how if some one can help me with this and can give me links of this it would be great help for me.
    Thank you for reading my problem and helping me !
    Amil
    please if possible mail me on [email protected]

    How to create multiple instance?????Do you mean multiple instances on the same database, or multiple databases on the same machine ?
    I m new to this field....
    Willin to learn a lot about oracle....Then it wouldn't be bad reading a bit of Database Concepts

  • Multiple copies of same database on a 2 node RAC server - How to merge ?

    I currently have multiple copies of the same database running on a 2 node Rac system. I am looking for a way to combine them into 1 large database but keeping the data separate.
    The databases are copies of production for testing, development and a yearly "historical" databases .
    All the databases are created from production, and generally have the same schema's , tables, procedures, etc however may be different versions and need to be.
    Is There a way to use one large database and logically split all the different versions of the same objects into their own space in one database ? The structure cannot change as the database is for a 3rd party's Forms application the relies on the objects not changing names etc.
    Ideally I am looking for a solution that will allow the forms application to connect to "test" and "historical" copies of our production database separately in the same database container.
    Thanks for any direction.

    I currently have multiple copies of the same database running on a 2 node Rac system. I am looking for a way to combine them into 1 large database but keeping the data separate.
    The databases are copies of production for testing, development and a yearly "historical" databases .
    All the databases are created from production, and generally have the same schema's , tables, procedures, etc however may be different versions and need to be.
    Is There a way to use one large database and logically split all the different versions of the same objects into their own space in one database ? The structure cannot change as the database is for a 3rd party's Forms application the relies on the objects not changing names etc.
    Ideally I am looking for a solution that will allow the forms application to connect to "test" and "historical" copies of our production database separately in the same database container.
    Thanks for any direction.

  • Multiple connections through same user

    We have a web app with an n-tier backend. We have found that if we have around 7 server apps on a single box but have found when we push past that it starts degrading performance severely.
    All of our back end apps connect to the database as the same user and I'm wondering if we are bottle necking either on the database server or the back end server through the driver. The apps are written in VB6.0 and PowerBuilder7.x.
    Should we put in an additional network card in the box and point another driver through it? I don't even know if it can be done but there has to be a setting or change I can make to help it out.
    -Herb

    hi,
    Try to understand your issue,
    you have a web application connecting to the database
    it connects through a single application user
    you found that degrading performance by this connectivity
    want to add a new network card to the server
    Is my understanding correct?
    regards

  • Insert records from user form to multiple tables in same database

    Hi Experts, I need your help. I have a form that has multiple text fields that I need to insert the records to their each respective table. For example: The first name field needs to go the the name table, address goes to a seperate table, phone goes to a seperate table and so on.
    Is this possible to do?
    Thanks Much
    Sham

    The same for ASP, JSP or PHP.  Just the code syntax is different for each language.  Are you using MySQL, Access or ?
    In any case, create the three recordsets on the database and use insert queries.  If you don't know what one is, google insert query and you will see the syntax. 
    Here is a good example out on the web
    http://www.stardeveloper.com/articles/display.html?article=2000032601&page=1
    In your case you would get the values for the inserts from the form data and only need to open the database connection once.
    Good luck.
    Walt
    B & B Photography

  • Multiple instances of same database adapter

    Hi!
    For our use of bpel, we are connecting 3 or 4 legacy systems. In these systems we construct a staging area where we collect the information that is to be sent over.
    For these systems, the staging area is identical. This means, that for wiring those up to BPEL, I construct four identical partner links using database adapters.
    Is there a way to make this easier? Is there a way to construct just one adapter and deploy this four times? It seems a waste of time and resources to recreate the same thing over and over again. And, when another legacy system turns up, I need again to create an adapter.
    Thanks for your input,
    Jeroen van Veldhuizen
    Itude Technology

    Hi Jeroen,
    I like your request for being able to simultaneously poll from multiple distinct endpoints in a single process. Recently this came up in another context and there is now support for this, but it will not be available until the next patch set (off of 10.1.2.0.2).
    If everything is identical except for which database you are connecting to, you could have 4 oc4j-ra.xml entries (i.e eis/DB/DBConnection1, eis/DB/DBConnection2, etc..), and then change your bpel.xml from:
    <activationAgents>
    <activationAgent className="oracle.tip.adapter.fw.agent.jca.JCAActivationAgent" partnerLink="BPELSamples">
    <property name="portType">PollingService_ptt</property>
    </activationAgent>
    </activationAgents>
    to:
    <activationAgents>
    <activationAgent className="oracle.tip.adapter.fw.agent.jca.JCAActivationAgent" partnerLink="BPELSamples">
    <property name="portType">PollingService_ptt</property>
    <property name="eis_location">eis/DB/DBConnection1</property>
    </activationAgent>
    <activationAgent className="oracle.tip.adapter.fw.agent.jca.JCAActivationAgent" partnerLink="BPELSamples">
    <property name="portType">PollingService_ptt</property>
    <property name="eis_location">eis/DB/DBConnection2</property>
    </activationAgent>
    </activationAgents>
    Then in your wsdl, replace:
    <service name="pollingService">
    <port name="pollingService_pt" binding="tns:pollingService_binding">
    <jca:address location="eis/DB/DBConnection1"
    with a variable:
    <service name="pollingService">
    <port name="pollingService_pt" binding="tns:pollingService_binding">
    <jca:address location="$eis_location"
    Also make sure to drop the schema qualification from your toplink_mappings.xml, i.e. do a search and replace of 'SCOTT.EMP' with just 'EMP'.
    Again this will only be available starting with the first 10.1.2.0.2 patch.
    Thanks
    Steve

  • Oracle troubles with multiple schemas in same database

    We have several different users set up with individual schemas in the
    same Oracle database. We run into trouble when more than one user tries
    to use Kodo in their local schema. Things go fine for User A, but when
    the User B tries to run the schematool on their own Oracle schema, they
    get this nonsense:
    javax.jdo.JDOFatalDataStoreException: An error occurred while connecting
    to the data store.
    NestedThrowables:
    com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper: [SQL=SELECT
    DISTINCT JDO_SCHEMA_METADATAX.CLASSNAMEX FROM JDO_SCHEMA_METADATAX]
    ORA-00942: table or view does not exist
    at
    com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.<init>(SchemaTool.java:99)
    at
    com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.main(SchemaTool.java:1114)
    at
    com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.main(SchemaTool.java:1083)
    at
    com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.main(SchemaTool.java:1073)
    at
    com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.main(SchemaTool.java:1064)
    If the User A drops all the tables from their schema, then things go
    fine for User B ... but then User A will have the same problem when they
    try to run the schematool.
    It is our suspicion that Kodo is actually selecting the metadata all of
    the tables in **everybody's** schemas, and thus erroneously thinking
    that jdo_schema_medatax already exists. It really ought to restrict
    itself to the schema it's actually connected to.
    If our theory is correct, it would explain why Kodo is so incredibly,
    horribly, painfully slow to connect to our Oracle database -- we have
    dozens of schemas in there, many of which have hundreds of tables.
    Is 2.3.0 addressing this problem?
    Paul

    Paul,
    Are you using the 'schema-name' system preference setting for each user?
    Oracle's mechanism for selecting database metadata requires that the
    appropriate schema name be explicitly when more than one schemas are used.
    See the database setup section of our documentation for more information.
    -Patrick
    On 7/3/02 3:50 PM, "Paul Cantrell" <[email protected]> wrote:
    We have several different users set up with individual schemas in the
    same Oracle database. We run into trouble when more than one user tries
    to use Kodo in their local schema. Things go fine for User A, but when
    the User B tries to run the schematool on their own Oracle schema, they
    get this nonsense:
    javax.jdo.JDOFatalDataStoreException: An error occurred while connecting
    to the data store.
    NestedThrowables:
    com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper: [SQL=SELECT
    DISTINCT JDO_SCHEMA_METADATAX.CLASSNAMEX FROM JDO_SCHEMA_METADATAX]
    ORA-00942: table or view does not exist
    at
    com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.<init>(SchemaTool.java:99)
    at
    com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.main(SchemaTool.java:1114)
    at
    com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.main(SchemaTool.java:1083)
    at
    com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.main(SchemaTool.java:1073)
    at
    com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.main(SchemaTool.java:1064)
    If the User A drops all the tables from their schema, then things go
    fine for User B ... but then User A will have the same problem when they
    try to run the schematool.
    It is our suspicion that Kodo is actually selecting the metadata all of
    the tables in **everybody's** schemas, and thus erroneously thinking
    that jdo_schema_medatax already exists. It really ought to restrict
    itself to the schema it's actually connected to.
    If our theory is correct, it would explain why Kodo is so incredibly,
    horribly, painfully slow to connect to our Oracle database -- we have
    dozens of schemas in there, many of which have hundreds of tables.
    Is 2.3.0 addressing this problem?
    Paul
    Patrick Linskey [email protected]
    SolarMetric Inc. http://www.solarmetric.com

  • Perf impact due to multiple connections with same user

    We're having to allow multiple users to connect with the same user account to our 10.4.9 AFP server. This is due to restrictions of another system.
    I was wondering if anyone knew of any performance issues this would cause.

    This is fine - as long as you're within the limits of the server license (e.g. the 10-user license will only support 10 concurrent connections).

  • Multiple versions of same database

    I'm developing an app which can use Oracle9i or SQLServer.
    As the application evolves, I'm making chnages to the database and assign new version numbers. Since clients already use the product I sometimes have to go back an check something in an older version. This works really well in SQL Server but in Oracle, I don't know how to do this.
    In Oracle, I create a tablespace and then create the new tables in the tablespace. I thought I could then create a new tablespace and add the same table to that new tablespace, but this doesn't seem to be working as oracle complains ORA-00955: name is already used by an existing object.
    Is there a document that explains how this is achieved correctly (I can't imagine that this is impossible).
    Pete

    I think you are creating a Table in the same SCHEMA(user) or you are creating a tablespace with a name that already exists.
    Can you post the instructions that raise this error.
    I think one suggestion will be to create a new schema for each version of the application.
    Also the concepts between SQL server and Oracle are very different.
    You can check the concepts guide for more information.
    http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14220/toc.htm
    http://www.oracle.com/pls/db102/homepage

  • Multiple OLE DB connection managers to the same database instance in a SSIS package

    Hi,
    While migrating DTS package to SSIS package, I came across one which had multiple OLE DB connection managers all connecting to the same Oracle schema in the same instance.
    There are that many execute SQL task corresponding to each of these connection managers.
    Each of  these SQL task call different Oracle stored procedures and executes them in the same schema in the same instance.
    My question is, is there any particular reason or advantage in having multiple connection managers?
    Can't we have one single connection manager and use the same in all of these SQL tasks?
    Does multiple connection managers provide any added advantage like parallelism or something?
    In this particular case, there are no actual workflows, rather each of these SQL tasks are stand alones. But there are other packages which has SQL tasks in workflow but still each of them calling separate connection managers all calling the same schema
    in the same instance.
    Thanks for your time.
    Cordially, Biju George

    Well like I said, each of  these SQL task calls "different" Oracle stored procedures even though executes them in the same schema in the same instance. I tried a sample testing by creating two separate packages, one with only one single
    OLE DB connection referred in all of the SQL tasks and in the other one with mutiple OLE DB connections to the same schema in the same instance each of which is referred in each of the SQL task in one to one mapping.
    Now the first one created one session in Oracle but the later created as many sessions as there where OLE DB connection managers. The first one took longer to complete than the second one since second one created independent sessions and executed those procedures
    sort of parallely.
    I guess that can be called an advantage of creating multiple connection managers to the same schema in the same instance.
    Cordially, Biju George

  • How to share the same Database Connection when using several Task Flows ?

    Hi All,
    I’m using JDev 11.1.1.3.0.
    I’m developing ADF Fusion Applications (ABC BC, ADF Faces…)
    These applications are deployed on a Weblogic server.
    Each application has only one Application Module.
    All Application Modules have the same connection type defined: JDBC DataSource : jdbc/GCCDS
    It is working fine.
    I’ve also developed Task Flow Applications for small thinks that are reused in multiple main applications.
    Each Task Flow Application has also one Application Module with the same connections type as main applications.
    All these task flows are deployed to JAR file (ADF Library JAR File) and are reused on my main applications. (drag and drop from the Resource Palette to ADF Regions….).
    There are some parameters passed to Task Flows, so that they can filter data depending on which main applications they are called from.
    Everything is working perfectly.
    All my main applications are using more and more task flows. Which is nice for the reusability etc…?
    Only ONE PROBLEM: DATABASE CONNECTIONS.
    Every Task Flows service made a database connection. So one user may have 10 database connections for the same adf page. And when there are 100 users that are working at the same time, it becomes a problem.
    How to share the same database connections for the main applications and all task flows which are used in the main application?
    Best Regards
    Nicolas

    Hi John,
    When I open a ADF Library JAR file of one of my task flow. (gcc_tf_recentSites.jar)
    I can see TF_RecentSitesService.xml and TF_RecentSitesServiceImpl.class in gcc_tf_recentSites.jar\mu\gcc\tf\recentSites\model\service folder
    + bc4j.xcfg in gcc_tf_recentSites.jar\mu\gcc\tf\recentSites\model\service\common folder.
    bc4j.xcfg details are
    +<?xml version = '1.0' encoding = 'UTF-8'?>+
    +<BC4JConfig version="11.1" xmlns="http://xmlns.oracle.com/bc4j/configuration">+
    +<AppModuleConfigBag ApplicationName="mu.gcc.tf.recentSites.model.service.TF_RecentSitesService">+
    +<AppModuleConfig DeployPlatform="LOCAL" jbo.project="mu.gcc.tf.recentSites.model.TF_RecentSites_Model" name="TF_RecentSitesServiceLocal" ApplicationName="mu.gcc.tf.recentSites.model.service.TF_RecentSitesService">+
    +<Security AppModuleJndiName="mu.gcc.tf.recentSites.model.service.TF_RecentSitesService"/>+
    +<Custom JDBCDataSource="jdbc/GCCDS"/>+
    +</AppModuleConfig>+
    +<AppModuleConfig name="TF_RecentSitesServiceShared" ApplicationName="mu.gcc.tf.recentSites.model.service.TF_RecentSitesService" DeployPlatform="LOCAL" JDBCName="gccdev" jbo.project="mu.gcc.tf.recentSites.model.TF_RecentSites_Model">+
    +<AM-Pooling jbo.ampool.maxpoolsize="1" jbo.ampool.isuseexclusive="false"/>+
    +<Security AppModuleJndiName="mu.gcc.tf.recentSites.model.service.TF_RecentSitesService"/>+
    +</AppModuleConfig>+
    +</AppModuleConfigBag>+
    +</BC4JConfig>+
    So, it seems that the Application Module is packaged with the task flow....
    Is it normal ?
    Regards
    Nicolas

  • Multiple connection pools in the same DB physical source

    Hi, I have this situation in BI Admin:
    A single DB with 2 physical schema and 2 Connection Pools with OCI 10/11g.
    Clicking on any table I can see the data after selecting the right connection pool for that table.
    I created a Business Model based upon tables from one of the 2 physical schemas and a corresponding presentation layer. It is consistent and I can view the related subject area in Answers, but when I select a Dimension column (CONVERGENZA_NEGOZIO.STATO) and the fact measure ( Convergenza_Fact.INCASSO ) in viewing results I get this error:
    Odbc driver returned an error (SQLExecDirectW).
    Error Details
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [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)
    SQL Issued: SELECT CONVERGENZA_NEGOZIO.STATO saw_0, Convergenza_Fact.INCASSO saw_1 FROM Convergenza ORDER BY saw_0
    Is it caused by the multiple connection pools under the same DB?

    Yes I think that's correct, but only if you're going to use the same user to connect to them.
    If you have a single user you're using to connect to a database to read data which happens to be over more than one schema, you'd use one connection pool.
    However if you have entirely separate schemas (eg. different applications) and need to use a different user for each then you would use one connection pool per schema. Also if you thought you might move one of the schemas to another physical database at some point in the future it might be prudent to use a separate connection pool from the outset.
    If you're still getting the error that the table cannot be found and your users have full permissions then logically the table that's being looked for does not exist, or you have not qualified it. What I mean by that is if you are connecting as USER2 and SELECT * FROM TABLE_A then the database will assume that you mean USER2.TABLE_A. If you mean USER1.TABLE_A then you need to make sure the qualification is in there.
    In the admin tool check your Physical layer is set up correctly with your Physical Tables residing in the correct Physical Schemas.

  • Simulate Multiple users connecting to same session

    Hi All,
    Is there anyway we can simulate multiple users connecting to the same session in oracle using PL/SQL.
    Thanks,
    MK.

    As per the architects in our company, lots of users connect to the same session and access the database.Exactly what does this mean? A single session can service one user at a time. I would wager that the architects are envisioning (or describing) a connection pooling setup where the middle tier server maintains a relatively small number of connections to the database (each with its own session most likely) and users operate by getting a connection from the pool, making a request, and returning the connection back to the pool. At any given point, only one user can be using a connection.
    If that's the case, you would simulate this by simply executing code in a loop in PL/SQL.
    Of course, if this is the case, each connection in the connection pool would its own copy of the collection and so each connection would get its own list of order numbers. You'd have to develop some way to ensure that each session populated its collection with a different set of order numbers.
    Justin

  • Query about multiple connection pools under one database

    Hi,
    I have s query about connection pool, now we have a requirement,
    we have two schemas in one db, some data store in one schema, some in another schema,
    all tables are the same, but data is different, we want to retrive all data under two schemas,
    so we need two connection pools under one database,
    I have set two system DSN, and each connection pool was mapping to one DSN,
    but after I importing tables into RPD, when I view data, there is a dialog let me select connection pool. so If this, when we drag columns in answer, it will definitely get wrong.
    so how to realize this function about multiple connection pools under one database and we can get data normally.

    Hi,
    Try this step
    1)Better to create two different DSN for the same database with different user id and password
    2)now create multiple connection pool in the same database in u r RPD physical layer .
    also refer this link : for imporving performance
    http://obiee101.blogspot.com/2009/01/obiee-multiple-connection-pools.html
    http://gerardnico.com/wiki/dat/obiee/connection_pool
    Thanks
    Deva

  • Question on InfoView  Multiple Connections opening on SQL Database

    Hi, we are using Business Objects XI Release 2 and I am having an ODBC issue to a SQL 2005 database.  I have a Crystal XI report that contains 2 parameters and selects roughly 100,000 rows of data and summarizes the data to 1 page.  In Crystal Developer it runs fine in several seconds.  Within Infoview it runs fine if I do a schedule now and select the parameters.  The Issue is if I click on the published report, update the parameters, it then starts to run and run.  Looking at the database it opens roughly 32 connections and just keeps opening and closing connections.  Since I am invoking infoview through a url it is running on the same server that I can schedule on.  I am not sure where or what the problem is, why so many connections open and the report never finishes.  Also the connections are bogging down the SQL Database due to high CPU utilization.  Any help/insight/explanations would be appreciated.
    Thank You

    Thanks for the response, see my responses in Italics,
    If you try to run the report with multiple connections are you facing this problem, or else is it for all reports.
    I am not trying to run for multiple connections intentionally?  Is there a setting in the report itself or on the console that could be doing this?
    Have tried to run the report other than the same machine where you have sever installed.
    I have run the report from 2 different viewers which reside on different machines, both separate from the
    database.  If I run from Crystal Developer on a desktop it is fine.  Also if I schedule in the viewer it is fine.  It seems like when I run on demand (not sure if my terminology is correct).
    Also try with remote connection to logon to your server and try to run the report and observe if there is any specific error. 
    I am executing a url that is on the server where Business Objects is installed.
    Regards,
    Naveen.
    I

Maybe you are looking for