How many number of database connections used in a transaction

Hi All,
We are using weblogic 8.1 with Oracle 9i both running on windows 2000. We are trying to estimate the potential resource usage in the system we are building. As part of this activity we want to find out how the database connections are used for entity beans -
If a session bean calls more than one entity beans
(each method in the entity bean doing one update) does weblogic use the same database connection for all the entity beans or does it use seperate connections ? Is such behaviour documented somewhere ?
Here the assumption is all the entity beans are linked to the same datasource.
If the (default) behaviour is to use seperate connections is there a way to make it use one connection across multiple entity beans.
Thanks
Kingshuk

Hi Bodapati,
Sorry for the delay in replying to this.
There is optimization, which will use the XA
connections from the pool. Can you tell me what your
observations are? I may be able to see if we can tune it.From our tests the XA driver too appear to make use of one connection only for the life of the transaction. There is a good document here explaining how it is ensured that only one connection is used - http://e-docs.bea.com/wls/docs81/oracle/trxjdbcx.html#1083132
Quoting from the above URL :
When a thread attempts to use a connection, the XA jDriver calls xa_open (and xa_start) to create the connection and associate it with the thread. After the database connection is created, the connection remains associated with the thread; the driver does not call xa_close. When the thread subsequently needs a database connection, it uses the same database connection associated with it, even though it appears to get and return a connection from the JDBC connection pool
I am not sure why you say the connections will be
blocked. One connection will be blocked only if you are > using non-XA driver to setup the pool, until the
transaction commits. For XA there is no need to reserve
the same connection for the transaction.Probably my understanding on this is incorrect and I need to read up. I was under the impression that - once a transaction begins, each connection used within that transaction, is enlisted as a part of that transaction and can not be used by in another transaction until the transaction commits or rollsback.
Thanks
Kingshuk

Similar Messages

  • How to Know the How many number of JCo connections established?

    Hi
    How to Know the How many number of JCo connections established for mapping?

    Hi
    mConnection =  JCO.createClient("001", // SAP client
                  "<userid>", // userid
                  "****", // password
                  null, // language
                  "<hostname>", // application server host name
                  "00"); // system number
    //Connections to a specific application server (as in the above example)
    mConnection.connect();
    //Creating the JCO.Client object does not connect to SAP, but a subsequent call to
    connect() will accomplishes this
    So you can easily find out the number of JCo connections by checking out these.
    Thanks

  • How to make common database connection using bean, etc.

    anyone know how to make a coomon database connection because on my web pages each of them need to connect on the database for their specific objectives... please help
    regards
    blingbling
    Edited by: BlingBling15 on Oct 22, 2007 1:16 PM

    Making a 'common' connection and passing it around is a bad idea. And making a new connection on every page, as you seem to have already guessed, also involves an overhead that you can do without.
    Like drvijayj2k2 has mentioned, you should use connection pooling.
    Take a look at the Apache Commons DBCP [1] and it's examples [2].
    [1] http://commons.apache.org/dbcp/
    [2] http://wiki.apache.org/jakarta-commons/DBCP
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
    ----------------------------------------------------------------

  • How to make new database connection using Oracle BI Interactive Dashboards

    Hi,
    I install Oracle BI Intelligence on my system.
    I am using Oracle BI Interactive Dashboard. Here we have default database connection.
    but now i want to use it for my own database. Can any body give me guideline how to
    make a new data base connection using this s/w or how to connect to my database so
    that i can make my own reports.
    I am using
    http://www.oracle.com/technology/obe/obe_bi/bi_ee_1013/saw/saw.html
    this link.
    i make odbc connection which is fine.
    but
    Restoring the Business Intelligence Presentation Catalog and Updating Metadata
    The third point blow above heading is not clear.
    Thanks

    Umesh - in order to build Answers and Dashboard content you must first setup a Physical model, then a Business model, followed by a Presentation Catalog/Subject Area.
    All these tasks are carried out using the Repository Administration Utility.
    1) Import your physical tables using OCI/ODBC into the physical layer.
    2) Build your model
    3) Deploy
    Then you're ready to start building answers/dashboards.
    Good Luck.

  • How to create a database connection using Jdeveloper 10g

    when i try to create a database connection,its asking for connection name.is that connection name is user-defined or predefined name??In the next step its asking for username and password.where do i get that username and password.if anyone know this please explain me in detail coz this is for the first time am using JDeveloper.
    Thanks in advance.

    Hi user583040,
    May be you could have a look on this: http://my.opera.com/Tiftif/blog/faq-jdeveloper-english §5.2. If you have suggestions to improve this document, i will greatly appreciate to add them to it.
    Regards,
    Tif

  • How to disconnect the database connection using crystal report

    Post Author: cp_pramodu
    CA Forum: Crystal Reports
    Hi All,
    We have developed an application using .Net and Crystal Reports 10 for generating Adhoc reports from Business system (db sybase 12). We are using the below mentioned script for opening rpt files.
    Try
           ReportDocument1.Load(sReportName)
           For Each table In ReportDocument1.Database.Tables
                  ' Get the TableLogOnInfo object.
                  logonInfo = table.LogOnInfo
                  ' Set the server or ODBC data source name, database name,
                  ' user ID, and password.
                  logonInfo.ConnectionInfo.ServerName = sReportServerName
                  logonInfo.ConnectionInfo.DatabaseName = DBName
                  logonInfo.ConnectionInfo.UserID = UserName
                  logonInfo.ConnectionInfo.Password = Password
                  ' Apply the connection information to the table.
                 table.ApplyLogOnInfo(logonInfo)
    Next
    'Me.Cursor = Cursors.WaitCursor
    Me.CrystalReportViewer1.ReportSource = ReportDocument1
    'Me.Cursor = Cursors.Default
    Catch ex As Exception
    'Response.Write(ex.Message)
    Finally
    Me.Cursor = Cursors.Default
    'ReportDocument1.Close()
    'ReportDocument1.Dispose()
    End Try
    Each time user opens the report a new connection is established to the database, can we disconnect the connection established from crystal reports, while closing crystal report. At the same time i want to setup an Idle time for these connections. In database level, i will not be able to set idle time in database level, as it affect our electronic channels.
    Waiting for a reply.
    Thanks & Regards,
    Pramodu. C. P

    Hi,
    If you are reworking the application can you not build in the functionality to re-establish a connection if there is a failure? That is, a submission from the application server to the database server detects a failure, etc. and then re-establishes the connection. If you need a more frequent check than during a user-initiated roundtrip, you may be best served by using the "dummy query" technique on some time interval.
    From my understanding using HA Event Notification would require a RAC database (plus a multi-threaded application and services correctly configured on the RAC-side).
    In the documentation I see this:
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14250/oci09adv.htm#sthref1495
    "Applications must connect to a RAC instance to enable HA event notification."
    In any case, this has the potential to be a bit complicated...
    Regards,
    Mark

  • How to check the database connection using OCI

    I am working on enhhancement of very old application developed using C and OCI. It has a background process which acts as a middleware for interaction of any other front end process with oracle database. Any processes, which needs to interact with database sends a request to background peocess and then it will execute a call to execute the stored procedures for performing requested operation (like select, update, insert) on table and will send the result back to respective process. So this process has to be always running in background and connected to branch database.
    If branch database gets restarted or connection gets dropped due to some ad-hoc problem then the background process also has to be restarted manually. Because this process establishes the connection to branch database only once on start up and it does not have the intelligence to reconnect automatically in such scenario.
    I am looking forward to build the intelligence in this process to automatically reconnect if connection with branch database is lost. But I am not familer with OCI, and I am not sure if there is any OCI call which can determine if my earlier connection is still available. Can any one please tell me if there is any other way to check the connection other than the execution of dummy query, then check if it gets executed properly and then do the actual query.
    Thanks in advance,
    Deeapk

    Hi,
    If you are reworking the application can you not build in the functionality to re-establish a connection if there is a failure? That is, a submission from the application server to the database server detects a failure, etc. and then re-establishes the connection. If you need a more frequent check than during a user-initiated roundtrip, you may be best served by using the "dummy query" technique on some time interval.
    From my understanding using HA Event Notification would require a RAC database (plus a multi-threaded application and services correctly configured on the RAC-side).
    In the documentation I see this:
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14250/oci09adv.htm#sthref1495
    "Applications must connect to a RAC instance to enable HA event notification."
    In any case, this has the potential to be a bit complicated...
    Regards,
    Mark

  • How to create database connection using DB2Driver in JDeveloper 10.1.2.1.0?

    I am trying to create a JDeveloper/Data Connection using com.oracle.ias.jdbc.db2.DB2Driver. The driver is registered from a User Libraries: DataDirect JDBC. I have the following class path for the library:
    E:\DataDirect\3.4\lib\YMdb2.jar;E:\DataDirect\3.4\lib\YMbase.jar;E:\DataDirect\3.4\lib\YMutil.jar
    I have no trouble configuring the connection but when I test it and I got ‘No suitable driver Vendor code 0’. What’s wrong? I have successfully created several database connections using Oracle thin driver. This is first time I am using a third party driver. Has any one successfully create a database connection using the com.oracle.ias.jdbc.db2.DB2Driver?

    Hi
    Since the error points to the unavailability of the driver class,can you double check your library claspath entries again.
    I just tried a DB2 connection using the following properties and the connection went through fine:
    Driver class name: com.oracle.ias.jdbc.db2.DB2Driver
    URL: jdbc:merant:db2://<host_name>:50000;DatabaseName=SAMPLE
    Thanks
    Prasanth

  • How Many  NUMBER Fields Can SINGLE DATA BASE TABLE CONTAIN

    How Many  NUMBER Fields Can SINGLE DATA BASE TABLE CONTAIN

    Hi
    One Database table contain 249 Fields.
    Rewards Points if useful..
    Regards
    Nikunj Shah
    Edited by: Nikunj Shah on May 13, 2008 1:08 PM

  • How many users are registered for using the firefox sync server?

    I'm working on a german wikipedia article about "Firefox Sync" and I need more information about the current usage and the historical development of this feature - number of registered users for the Sync Server at Mozilla - would be nice to have numbers for 2011, 2012, and current usage.
    If possible, it would be also useful to know how many german speaking users are using the sync service.
    Where are your Sync Servers located (US, Europe, Asia)?
    What kind of systems and platforms are supported?
    Is there a current documentation about the importance of the Firefox Sync Service, that I may reference?

    thanks for your fast reply,
    your URL to the page with the ideas of the new PiCL service shows in the remark about the usability of the "Firefox Sync" some hints about the usage of the current sync service "only 1% of our users have actually done so" - so I will use that as reference.
    But it would be nicer to have some public message - for example: a mozilla blog entry - from the mozilla services group about the number of registered Sync Server User - and also about performance and reliabilty.
    But if that is private information only, you can close this problem.

  • How many iproducts can u connect to one account

    i have 2 questions...
    first, i was just wondering how many iproducts you can connect to one account. we have a laptop (which is having problems and is very slow)  that my son, husband, and i connect  and update all our iproducts (2 itouches, 3 iphones and 1 ipad, and the 1st gen ipod, which i dont update anymore) on...
    and second, i just got a new ipod nano for christmas and i was wondering if i downloaded itunes onto my personal laptop ( so i dont have to deal with then slowness) can i use the same apple id for that nano?
    please someone help!!!
    thank u.

    You can have upto 5 Computers authorized with your Apple ID
    You can have upto 10 Devices Associated with that iTunes account
    For moving your content to a new iTunes on your personal laptop from the old laptop this may help
    http://support.apple.com/kb/HT4527
    When set up if you enable Home sharing between the two laptops that will help you to easil sync content from 1 computer to another

  • How many apple tvs can i use on one network from one apple account ?

    how many apple tvs can i use on one network from one apple account ?
    if i have 16 in each of my rooms connected to a network switch and a good fiber internet line
    will this work ok from my one account ? or would i neeed a mac book mini with raid storage set up ?
    any help would be very gratfully recived !
    james

    Welcome to the Apple Community.
    Homesharing allows up to 5 computers to be authorised and a total of 10 computers and devices to be associated with a single Apple ID.

  • MM: Purchase requisition line Items - How many line items can we use

    Hi all,
    1. Purchase requisition Line items  (How many line items can we use?), is there any restrictions.
    2. While creating PO with only one tax code for the related PR to input Tax code (without selecting  line Items).
    Regards,
    Sudheer

    Hi
    There is no limitation for number of items in PR.
    Tax code is always applicable for individual item only.It cannot be selected form the whole PO.
    Regards
    Dev

  • In ecatt - how to check at database level using ABAP

    Hi,
    How to check at database level using ABAP in Ecatt tool.
    say,for example I want to check a particular sales order is invoiced or not ,at the database level and if it is invoiced I have stop proceeding to invoicing of that sales order number.
    Could anybody suggest on this with an example?
    thanks.

    Hi,
    you can use the command GETTAB to access single db records.
    Full specified or partitial specified keys can be use at GETTAB. It will return always only one record, also if a couple could match your selection.
    For more advanced scenarios you can also use eCATTs Inline ABAP. In a block between the commands ABAP. ENDABAP. you can code ABAP statements, e.g. SELECT ... INTO TABLE ...
    eCATT script parameters of type 'V' defined in that script using ABAP/ENDABAP will be transfered into the ABAP block and back to script after ABAP perform.
    Best regards
    Jens

  • No of records in SAP BI Corresponds to how many records in database

    Dear all
                   If i have 2lakh records in a datasource  then how it  Corresponds to how many records in database.

    For the first time load the datasource , the no of records in the database(source) must be equal to the number of records in the PSA(datasource).
    If you are daily deleting the records in the PSA , and doing a delta load then the no of records in PSA must be equal to the no of records in delta queue RSA7 for the corresponding datasource .
    If the load is a full load everytime or a full repair  ,then the no of  records in PSA  must be equal to the numbers of records in source.

Maybe you are looking for