Creat too many instance when writing an oracle database

Hi
I want to write Oracle database with database toolkits;
but..i found there are too many instance or called session(exceed the upper limit) created when the program running .  that makes the Orace server stop responding
Is there anything  i need to modify?
Attachments:
Oracle DB.vi ‏36 KB

Frankly I have never seen this problem, but then I make a point of never using the database connectivity toolkit. Assuming a Windows platform, Windows implements something called connection pooling so when you "close" a connection the OS inserts it into a pool so If you ask for another connection it doesn't actually open a new one it just gives you back a reference to one of the ones you "closed" before.
What OS are you running on?
What version of Oracle?
Is the instance of Oracle local or on another computer?
How are you communicating with Oracle (odbc, oledb, etc)?
Mike...
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

Similar Messages

  • FindByPK creates too many instances

    Hi all,
    When using JBoss (I don't know other servers behavior) the findByPrimaryKey method creates a "home instance".
    I think that JBoss need a "home instance" for finder methods and it could create only one to do that, but, in fact, it creates a new instance for each call and doesn't reuse it.
    For example:
    Integer pk = new Integer(1);
    First findByPrimaryKey(pk): 2 instances created (Home instance and Bean instance)
    Secound findByPrimaryKey(pk): 1 instance created (Home instance)
    Third findByPrimaryKey(pk): 1 instance created (Home instance)
    The ejbLoad method is called only on the first call (it's my configuration).
    Any idea?
    Thank you,
    Denis.

    Hi Denis,
    Check your deployment descriptor - maybe you've
    mistyped the remote interface for the home interface.
    If I'm not mistaken, finder methods should return
    remote, not home interfaces.
    DimitarI think Denis meant a new HomeImpl (or whatever it's called) instance is created each time in the container to receive the home.findByPrimaryKey() request.
    As such requests are stateless, one would expect the container to direct several of them (at least when they are serial and not in parallel) to only one instance of HomeImpl.
    But it's a container decision. The container is free to instantiate a pool of HomeImpl, or one HomeImpl for each request,...
    As far as EntityImpl instances go, it's not surprising that only one instance is created and that ejbLoad() is called only once, as long as the instance created first is still alive and active.
    Not surprising but not obvious either : the container would be free to create several instances representing the same entity, provided it ensures transactionality (that seems one way of ensuring isolation of concurrent container-managed transactions on the same entity).
    So in general one shouldn't rely on the instantiation of the Java object representing the implementation of a Home or a Remote as it may vary per container.
    Now I think Denis' concern may be : does such an approach of creating a HomeImpl instance each time scale?

  • Portal creates too many database sessions. fix doesn't work!!

    Oracle Database 9i, Application Server 9iAS,
    Operating System SUSE Linux 7.2
    CPU - Athlon 1400
    Ram - 1GB
    There is a modification for the http server that aims to eliminate a problem on unix that causes the database to create too many sessions. The script can be found at
    http://portalstudio.oracle.com/servlet/page?_pageid=1787&_dad=ops&_schema=OPSTUDIO
    However the script fails to work. The http server is on port 80 with the redirect on port 7778. However going to http://myhost/pls/ results in a server error - connection refused. Is it possible that there may be an error in the script.
    Thanks in anticipation

    ok so my sound is ok now I can check that off of the list... I just looked around and found some external USB speakers that work just right. My built in computer speakers are just not the best quality.
    As for the microphone, I still haven't been able to find out what is causing it to not work. I notice that it isn't actually broken since if I make a really loud noise right next to the input it will register a little but only a little bit.
    $ arecord -L
    null
    Discard all samples (playback) or generate zero samples (capture)
    pulse
    PulseAudio Sound Server
    default
    Default ALSA Output (currently PulseAudio Sound Server)
    sysdefault:CARD=Intel
    HDA Intel, ALC269 Analog
    Default Audio Device
    front:CARD=Intel,DEV=0
    HDA Intel, ALC269 Analog
    Front speakers
    surround40:CARD=Intel,DEV=0
    HDA Intel, ALC269 Analog
    4.0 Surround output to Front and Rear speakers
    surround41:CARD=Intel,DEV=0
    HDA Intel, ALC269 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
    surround50:CARD=Intel,DEV=0
    HDA Intel, ALC269 Analog
    5.0 Surround output to Front, Center and Rear speakers
    surround51:CARD=Intel,DEV=0
    HDA Intel, ALC269 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
    surround71:CARD=Intel,DEV=0
    HDA Intel, ALC269 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
    $
    here is some additional information about my sound. Also, when I open alsamixer, I find that when I go to "select sound card"(F6) I see default and HDA Intel. If the default is pulseaudio, then is it possible that pulseaudio is causing the problem?

  • Will Analyze create too many redo logs ??

    DB : 10gR2
    Hello Folks,
    Is analyze process creates too many redo log files ?? Is their any other valid option other than no log ?

    I guess that's also going to create too many log switches as it's part of DDLHUH?
    REDO log switches result from DML.
    If you are obsessed with LOG switches, then you need to use LOGMINER to observe the the relative per centage of changed data is from DBMS_STATS
    when compared to normal DML activity.
    I seriously doubt that DBMS_STATS has any significant impact to redo log switches.

  • I tried to send a mail message to too many addees. when the rejection came back "cannot send message using the server..." the window is too long to be able to see the choices at the bottom of it. how can i see the choices at the bottom of that window?

    I tried to send a mail message to too many addees. when the rejection came back "cannot send message using the server..." the window is too long to be able to see the choices at the bottom of it. how can I see the choices at the bottom of that window?

    I tried to send it through gmail and the acct is  a POP acct
    I'm not concerned about sending to the long address list. I just can't get the email and window that says "cannot send emai using the server..." to go away. The default must be "retry", because although I cannot see the choices at the bottom of the window if I hit return it trys again... and then of course comes back with the very long pop up window that I cannot see the bottom of so I can tell it to quit trying...

  • Digital Editions - too many activations when trying on Windows 8.1 system  HELP!

    Digital Editions - too many activations when trying on Windows 8.1 system  HELP!

    This is the Reader mforum. The Digital Editions one is here:
    http://forums.adobe.com/community/adobe_digital_editions

  • IWeb re-creates too many pages

    I understand the difference between "Publish" and "Publish All", but what I don't understand is why iWeb re-creates so many pages when I "Publish". If I work on three pages and then simply "Publish", the darn thing spends five minutes re-creating those three and a half-dozen other pages I didn't touch. Not the end of the world, but kind of annoying.
    Is there something I can do to eliminate this, or can someone at least help me understand why I am sitting and watching iWeb spin it's wheels for so long?
    Thanks,
    Bryan

    The strange thing is that:
    Even when the new page you are working on is in another site in iWeb the publish feature goes through some long process. While no files in the other sites are changed they are 'checked one by one,' making the publish process more tedious than it has to be.
    Since the nav bar is a part of the html code all pages in the site you add a page to must be modified. If you don't wish this to happen uncheck the checkboxes in the Inspector:
    1. Select the page and Open the Inspector
    2. Click on the page icon.
    3. uncheck 'include this page in the navigation menu.' and 'display navigation menu'
    iWeb makes it very easy to create your own nav menu. Just type in some text and select it. Then open the Inspector and click on the hyperlink icon. (Arrow icon) and select 'enable as hyperlink' From the pull down menu choose one of your pages in your site.
    Kurt

  • Oracle SQL template to create re-usable DDL/DML Scripts for Oracle database

    Hi,
    I have a requirement to put together a Oracle SQL template to create re-usable DDL/DML Scripts for Oracle databases.
    Only the Oracle DBA will be running the scripts so permissions is not an issue.
    The workflow for any DDL is as follows:-
    1) New Table
    a. Check if the table exists from the system/admin views.
    b. If table exists then give message "Table Exists"
    c. If table does not exist then execute DDL code
    2) Add Column
    a. Check if Column exists for a given table from system/admin views
    b. If column exists in the specified table,
    b1. backup table.
    b2. alter table to make changes to the column
    b3. verify data or execute dml script convert from backup to the new change.
    c. If Column does not exist
    c1. backup table
    c2. alter table to add column
    c3. execute dml to populate column with default value.
    The DML scripts are for populating base tables with data required for business operations.
    3) Add new row
    a. check if row exists by comparing old values of each column with new values to be added for the new record.
    b. If exists, give message row exists
    c. If not exists, add new record.
    4) Update existing record (We have createtime columns in these tables so changes can be tracked)
    a. check if row exists using primary key.
    b. If exists,
    b1. deactivate the record using the "active" column of the table
    b2. Add new record with the changes required.
    c. If does not exist, add new record with the changes required.
    Could you please help with some ideas which can get this done accurately?
    I have tried several ways, but I am not able to put together something that fulfills all requirements.
    Thank you,

    First let me address your question. (This is the easy part.)
    1. The existence of tables can be found in DBA_TABLES. Query it and and then use conditional logic and execute immediate to process the DDL.
    2. The existence of table columns is found in DBA_TAB_COLUMNS. Query it and then conditionally execute your DDL. You can copy the "before picture" of the table using that same dba view, or even better, use DBMS_METADATA.
    As for your DML scripts, they should be restartable, reversible, and re-run-able. They should "fail gracefully" on error, be written in such a way that they can run twice in a row without creating duplicate changes.
    3. Adding appropriate constraints can prevent invalid duplicate rows. Also, you can usually add to the where clause so that the DML does only what it needs to do without even relying on the constraint (but the constraint is there as a safeguard). Look up the MERGE statement to learn how to do an UPSERT (update/insert), which will let you conditionally "deactivate" (update) or insert a record. Anything that you cannot do in SQL can be done with simple procedural code.
    Now, to the heart of the matter...
    You think I did not understand your requirements?
    Please be respectful of people's comments. Many of us are professionals with decades of experience working with databases and Oracle technology. We volunteer our valuable time and knowledge here for free. It is extremely common for someone to post what they feel is an easy SQL or PL/SQL question without stating the real goal--the business objective. Experienced people will spot that the "wrong question" has been asked, and then cut to the chase.
    We have some good questions for you. Not questions we need answers from, but questions you need to ask yourself and your team. You need to reexamine this post and deduce what those questions are. But I'll give you some hints: Why do you need to do what you are asking? And will this construct you are asking for even solve the root cause of your problems?
    Then ponder the following quotations about asking the right question:
    Good questions outrank easy answers.
    — Paul Samuelson
    The only interesting answers are those which destroy the questions.
    — Susan Sontag
    The scientific mind does not so much provide the right answers as ask the right questions.
    — Claude Levi-Strauss
    You can tell whether a man is clever by his answers. You can tell whether a man is wise by his questions.
    — Mahfouz Naguib
    One hears only those questions for which one is able to find answers.
    — Friedrich Nietzsche
    Be patient towards all that is unresolved in your heart and try to love the questions themselves.
    — Rainer Maria Rilke
    What people think of as the moment of discovery is really the discovery of the question.
    — Jonas Salk
    Judge a man by his questions rather than his answers.
    — Voltaire
    The ability to ask the right question is more than half the battle of finding the answer.
    — Thomas J. Watson

  • When I opened Oracle Database Configuration Assistant....

    hi all,
    when I opened Oracle Database Configuration Assistant(9i,windows) to chose ORCL database to configure,it told me:
    ORA-01078L failure in processing system parameters.What is that.thank u for your response.

    bash-2.03$ oerr ora 01078
    01078, 00000, "failure in processing system parameters"
    // *Cause:  Failure during processing of INIT.ORA parameters during
    // system startup.
    // *Action:  Further diagnostic information should be in the error stack.      
    Not enough to go on, but that is what oracle is saying.
    William

  • Erro in writing in Oracle database thru ODBC

    Hi Iam getting a error in writing the oracle database thru ODBC using VB, but I can able to read the data. Can anyone tell me what could be the problem and how to solve it.
    Thanks, Nasir
    null

    Sorry I forgot to attach the code.
    Below is the VB 6.0 Code for the stated problem
    Dim DB As Database
    Dim RS As Recordset
    Private Sub Command1_Click()
    Text1.Text = ""
    RS.AddNew
    End Sub
    Private Sub Command2_Click()
    Unload Me
    End Sub
    Private Sub Command3_Click()
    If RS.EditMode = RSEDITNEW Then
    RS.Fields("NAME") = Text1.Text
    RS.Fields("No") = Text2.Text
    End If
    RS.Update
    End Sub
    Private Sub Form_Load()
    Set DB = OpenDatabase("ODATA", False, False, "ODBC;DSN=ODBC;Uid=SCOTT;PWD=TIGER")
    Set RS = DB.OpenRecordset("SELECT * FROM test")
    RS.MoveFirst
    moveFields
    End Sub
    Public Sub moveFields()
    Text2.Text = RS.Fields("No")
    Text1.Text = RS.Fields("NAME")
    End Sub

  • Java exception "Too many rows" when launching

    Hi,
    I'm trying to run SQLDeveloper on AIX 5.2
    The Java software is the JAVA 1.5 :
    $ ./java -version
    java version "1.5.0"
    Java(TM) 2 Runtime Environment, Standard Edition (build pap64devifx-20070725 (SR5a))
    IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 AIX ppc64-64 j9vmap6423-20070426 (JIT enabled)
    J9VM - 20070420_12448_BHdSMr
    JIT - 20070419_1806_r8
    GC - 200704_19)
    JCL - 20070725
    When launching sqldeveloper, I get more than 3000 error lines...
    Here are the beginning :
    java.io.FileNotFoundException: <INSTALLATION-PATH>/jdev/extensions/oracle.jdeveloper.db.sqlplus.jar (Too many open files)
    at java.io.RandomAccessFile.<init>(RandomAccessFile.java:243)
    at oracle.ide.boot.JarDirs.getDirsImpl(JarDirs.java:75)
    at oracle.ide.boot.JarDirs.<init>(JarDirs.java:63)
    at oracle.ide.boot.SharedJarByPackage.<init>(SharedJarByPackage.java:19)
    at oracle.ide.boot.IdeSharedCodeSourceFactory.createCodeSource(IdeSharedCodeSourceFactory.java:30)
    at oracle.classloader.SharedCodeSourceFactory.create(SharedCodeSourceFactory.java:43)
    at oracle.classloader.SharedCodeSourceSet.subscribe(SharedCodeSourceSet.java:315)
    at oracle.classloader.SharedCodeSourceSet.subscribe(SharedCodeSourceSet.java:174)
    at oracle.classloader.SharedCodeSourceSet.subscribe(SharedCodeSourceSet.java:148)
    at oracle.classloader.SharedCodeSourceSet.subscribe(SharedCodeSourceSet.java:215)
    at oracle.classloader.PolicyClassLoader.addCodeSource(PolicyClassLoader.java:874)
    at oracle.ideimpl.extension.ExtensionManagerImpl.addToPolicyClassLoader(ExtensionManagerImpl.java:1464)
    at oracle.ideimpl.extension.ExtensionManagerImpl.addURLToClassPath(ExtensionManagerImpl.java:1401)
    at oracle.ideimpl.extension.ExtensionManagerImpl.mav$addURLToClassPath(ExtensionManagerImpl.java:116)
    at oracle.ideimpl.extension.ExtensionManagerImpl$4.addToClasspath(ExtensionManagerImpl.java:690)
    at javax.ide.extension.spi.BaseExtensionVisitor.addExtensionSourceToClasspath(BaseExtensionVisitor.java:278)
    If it could help you, the splash screen is display a short time and the progression bar is beginning but for a short time only, after what the process is dying.
    Thanks,
    Christian

    java.io.FileNotFoundException: <INSTALLATION-PATH>/jdev/extensions/oracle.jdeveloper.db.sqlplus.jar (Too many open files)
    You have exceeded your max open files limit as determined by your operating system. You need to talk to your system administrators.

  • WUT-113 Too many rows when using Webutil to upload a doc or pdf

    Hi All,
    I am using Webutil to upload and view files and am receiving the error msg 'WUT-113 Too many rows matched the supplied where clause'
    The process works fine for uploading photos but not when I try and upload documents and pdf files.
    I am on v 10.1.2.0.2 and using XP.
    The code example (for documents) is outlined below but think that the issue must be to do with some sort of incorrect Webutil configuration
    on my machine.
    declare
         vfilename varchar2(3000);
         vboolean boolean;
    begin
         vfilename := client_get_file_name('c:\',file_filter => 'Document files (*.doc)|*.doc|');
         vboolean := webutil_file_transfer.Client_To_DB_With_Progress
    ( vfilename,
    'lobs_table',
    'word_blob',
    'blob_id = '||:blob_id,
    'Progress',
    'Uploading File '||vfilename,
    true,
    'CHECK_LOB_PROGRESS');
    end;
    Any assistance in this matter would be appreciated.
    kind regards,
    Tom

    Hi Sarah,
    Many thanks for the reply.
    All I'm trying to do is to click on the Browse Document button in a form to upload
    a document (in this example) from my machine and save it to the db table called lobs_table
    using the webutil_file_transfer.Client_To_DB_With_Progress program.
    When I first access the form the field :blob_id is populated (by a When-create-Record trigger)
    with a value made up of sysdate in NUMBER format as DDMMHHMISS e.g. 0106101025
    When I press 'Browse Document' - a button in the form) and the dialog box is opened and
    I select a document and click ok then I see the error message 'WUT-113 Too many rows matched the supplied where clause' and yet the where clause element of the call to webutil_file_transfer.Client_To_DB_With_Progress program
    should be the :blob_id value ('blob_id = '||:blob_id) i.e. should be a single value populated in the field when I first access the form - so why am I seeing the when too many rows error?
    I may be missing something obvious as I've only just started using Webutil.
    Kind regards,
    Tom

  • IPhones w ActiveSync creating too many connections on mail server

    Over the past two days, I have started getting 503 errors, indicating too many connections. When I went to look at active connections, I noticed that the vast majority were from the iPhones that connect using ActiveSync. Just in the 45 minutes since I cleared all active connections, my iPhone has created 14 active connections. When you multiply that by the eight iPhones we have at this company the number jumps to 112. It is easy to see why the 503 error is getting generated by the end of the business day. It is as though the iPhone is unable to let go of an active connection, and just starts a new one. This only seems to be happening since the iPhone 3.0 update. Is anyone else experiencing similar issues?

    Yes - I'm having a very similar problem on our server. But in this case the user has a very large mailbox - and imap processes are spawned but never die unless I go in and manually kill them.

  • Possible Memory Leak, many instances of macromedia.jdbc.oracle.OracleConnection, serviceFactory

    I'm using a plug-in for Eclipse to help identify possible memory leaks however we are having trouble interpreting the results.  The top, and pretty much the only, suspect is this...
    7,874 instances of "macromedia.jdbc.oracle.OracleConnection", loaded by "coldfusion.bootstrap.BootstrapClassLoader @ 0xf935218" occupy 604,781,904 (71.02%) bytes. These instances are referenced from one instance of "java.util.HashMap$Entry[]", loaded by "<system class loader>"
    Any ideas what could cause this many instances?  How do we track this back to a particular cfm or cfc?  Do these number seem high or is that normal?  The system in question normally only has 30-60 concurrent users.
    The one item I'm a little skeptical of is the use of the "coldfusion.server.ServiceFactory" and "coldfusion.sql.QueryTable" objects.  We use them for 1000s of different queries, even queries within large loops.  Could these be the problem?  Each time we need to execute a query we do a createObject for each of these objects, when done we close the connection.  I recently found a similar example where they close the recordSet first and then close the connection, we are not closing the recordSet.  Any help at all is much appreciated.

    It could simply be caused by the obvious: a query or queries making a large number of connections and/or consuming large resources on the Oracle database. Use Eclipse to search your application folder for queries. Can you identify any queries that could be the culprit? Is there a loop containing a method or an instance of a component that queries an Oracle database?
    What's your Coldfusion  version? If you're on CF8 or CF9 then the server monitor (in the Coldfusion Administrator) might tell you the process responsible for the high consumption.

  • Is anyone else getting a "554 too many recipients" when sending to groups?

    I am trying to work from home, and a current project has a large number of people that need to stay informed.  When I try to do a "reply all" to the group I get a "554 Too many recipients" error message back really quickly.  Seems I can only send to 49 people at once...needless to say this casues problems as the group (so far) is 74 people...
    Anyone got a work arround other that splitting up the group into two messages (what a pain)
    Supposedly the WebMail interface will let me send to 100 at once, but I can't cut-n-paste the addresses from Outlook to Webmail without some MAJOR editing.
    Suggestions PLEASE

    Hey Bob -- You are correct that there is a limit to how many outgoing recipients an email can be sent to, but it is 100 unique addresses.  It sounds like you may be having an issue with your Outlook program; possibly the way your address book is configured if you have more than one address saved for each person you're trying to send the message to.  The address book would be a good place to check first and then looking into troubleshooting the Outlook program would be your next step.  Thanks!
    Karl
    Verizon Support
    Notice: Content posted by Verizon employees is meant to be informational and does not supersede or change the Verizon Forums User Guidelines or Terms or Service, or your Customer Agreement Terms and Conditions or Plan.

Maybe you are looking for