Unpredictable/inconsistent logon?

Similar to this topic: why ODP open connections redundent

I wrote a VERY simple console app VB in order to check if it makes a difference if you pass an object of connection DB ByVal or ByRef in VB.NET.

It seems that this has no importance, but I have observed a VERY STRANGE behavior with the code.

With the program run as below, check session $ v in Oracle to monitor how many sessions opened I see this:

Breakpoint #.

Sessions

1

1

2

1

3

1

Program closed

0

The only thing here is that after

  1. Conn. Close()
  2. Conn. Dispose()

The session is still open-weird but not overwhelming.

HERE'S THE ODD BIT:

Uncomment the 2 lines in Main() which create a second connection...

' Uncomment the 2 lines below to see the CRAZY behavior.

Dim conn2 As new OracleConnection (oradb)

conn2. Open()

now when I run the program I see:

Breakpoint #.

Sessions

1

3

2

4

3

5

Program closed

0

I suspect it's something to do with the connection pooling, but it seems totally illogical and could easily explain why we have a problem with the connections in a system spiraling out of control.

I use VS2013, v2.0.50727 Oracle.DataAccess with OraClient11g, it's just a console application simple VB on .net 4.5 running against Oracle database 9

Code:

Imports System.Data

Imports Oracle.DataAccess.Client

Imports Oracle.DataAccess.Types

Module Module1

Sub Main()

' Deleted... connection details

Dim oradb As String = "Source = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) data (HOST = < snip >)(PORT=1521)) (CONNECT_DATA = (SERVICE_NAME = < snip >))); User Id = < snip >; Password = < snip >; »

Dim conn = New OracleConnection (oradb)

Conn. Open()

Dim cmd As new OracleCommand

Connection group conn cmd.

cmd.CommandText = 'select sysdate from double'

cmd.CommandType = CommandType.Text

Dim dr As OracleDataReader = cmd. ExecuteReader()

Dr. Read()

' Uncomment the 2 lines below to see the CRAZY behavior.

' Dim conn2 As New OracleConnection (oradb)

' conn2. Open()

Sub1 (conn)

' Breakpoint 2

Conn. Close()

Conn. Dispose()

' Breakpoint 3

End Sub

Sub Sub1 (out dbconn)

Dim cmd As new OracleCommand

cmd connection the Group dbconn

cmd.CommandText = 'select sysdate from double'

cmd.CommandType = CommandType.Text

Dim dr As OracleDataReader = cmd. ExecuteReader()

Dr. Read()

' Breakpoint 1

dbConn. Close()

End Sub

End Module

I wouldn't say five connections such as spiral out of control. The difficult part of creating a generic connection pooling algorithm is to predict how many connections to keep idle in the pool. There is really no good answer.

For example, when all users log on to work in the morning, the connection pool should quickly try the more open connections to accommodate all the people who signed in quick succession. In this case, you may say that five connections is too little after two fast Open() requests.

The best way to check if there are too few or too many connections in the pool is to increase the size of the Pool of minutes or decrease the maximum Pool size. Bring the Max Pool Size at a lower level, so too many connections are created.

Tags: Database

Similar Questions

  • iOS 10 Mail: moving Messages, inconsistent behavior when you tapoterez folder icon

    iPhone 6, iOS 10

    I see inconsistent behavior when I try to move a message in Mail from in the message.

    In previous versions of iOS, during playback of an e-mail message, I could tap the icon of the folder at the bottom of the messages, and which would lead to the top of the hierarchy of the folders for the email of the message account. From there on, it was just a matter of tapping on the file I want to move the message to, and he settled there the message and look back to the Inbox display (or the folder view I moved this message of).

    In iOS 10, when I hit this folder icon, two things happen: it happens the same thing I described above, or sometimes, rather than see the hierarchy of folders, I see three buttons slide up from the bottom of the screen. The top button allows me to move the message directly to a folder in my account called 'Action' I created (I don't know why he chose this particular file to the default value for this button - maybe because it is first in alphabetical order of all my folders created by the user), the second button says "Another mailbox" and when it takes me to the hierarchy of the mailbox as described above, and the third button is a Cancel button.

    I can't understand what dictates which of those two things happening. I tried again and again on a bunch of different messages. Some do happen, some do the other thing happens, and sometimes I'll have a different behavior in the message even if I try again later.

    I prefer the old way. But I could get used to the new way, if I could at least choose what default folder appears in the first box.

    Anyone else seeing this?

    Someone knows how to change the default folder in the first box of this new process?

    Thank you!

    I seem to have solved the problem on my own. I went to settings > Mail, and in the "Threading" section, I have disabled "Complete Threads."

  • Inconsistent results Spotlight

    I've known inconsistent results of Spotlight with OS X servers for a year or so now. I worked on that with Yosemite and El Capitan.

    What is happening is that Spotlight does not see inside some files scattered in various actions. The problem is consistent if the search of a customer attached or on the server itself. It has many, many of these records.

    I deleted it. Index files V100-focus on volumes several times with the following process:

    sudo mdutil - a-i off

    sudo rm - rfv. Spotlight-V100 (I run on each volume)

    sudo mdutil - a-i on

    sudo mdutil - Ea

    However after letting the Spotlight re-indexing it does not fix things.

    I think next reset the ACL on the volume where the data is stored. I first want to make sure that what I'm doing, that's enough:

    sudo chmod-r/path/to/volume n

    Then set the permissions for the shares as it should.

    Suggestions or comments?

    You happen to have the system during a rebuild Spotlight log tail?  If Yes, have you seen errors, files or records which failed to index, or all mdworker default processes?  The system log can provide valuable data as to why Spotlight does not complete.

    Then, if you are going to strip the ACL, you will also remove user _spotlight.  This system is essential for the proper functioning of the projector.  Make sure that when you go to spread your new ACLs that account _Spotlight is listed as an ACE inherited.  All files and folders on your part must contain this account from the ACL table service.

    And finally, don't forget to watch the POSIX permissions.  If you have restrictive permissions POSIX, you may have implemented a condition in which the mdworker process simply can not cross your data structure.  Search for files located at 700 or files located at 600.  Perhaps considered using the propagation process to restore all the POSIX permissions standard umask.

    I hope this helps.

    Reid

    Apple Consultants Network

    Author - "El Capitan Server - Foundation Services.

    Author - "El Capitan Server - Collaboration & control»

    Author - "El Capitan Server - Advanced Services '.

    : IBooks exclusively available in Apple store

  • Multiple logons on a desktop computer

    Home office - do not want to use separate Windows accounts, but like having logons unique Firefox for self and partner.
    If I use Firefox, I want to see my preferences; When my partner uses his, she wants to see his preferences,

    Moreover, the 'Ad Blocker for Firefox 0.7.7 + 11 update"extension is obsolete and Adblock Plus is now much more up-to-date. I suggest to delete this older one.

  • screen saver on the logon screen

    Hi all

    in the settings I disabled completely safe screen. But now I've started my mac, waited half an hour and then tried to open a session. And... guess it... the logon screen showed a screen saver.

    So two questions:

    -where can I turn on / turn off screen saver for the logon screen?

    -where can I set up the screen saver for the logon screen?

    Greetings from the Germany

    Chris

    OK, a third party, but please Don t laugh:

    s ' is he or safer screen saver?

    In English, it means "Screen Saver".

    To set the screensaver used at the login screen, you can use the following command, which in this example is the name of the computer aka things. 'Message' screen saver.

    / usr/bin/defaults write /Library/Preferences/com.apple.screensaver loginWindowModulePath '/System/Library/Frameworks/ScreenSaver.framework/Resources/Computer Name.saver '.

    For more details, see these two items Apple.

    Managed client: how to customize the message of saving screen the computer name for the login window - Apple Support

    OS x: setting up a screen saver to display the login window - Apple support

  • Logon screen does not appear for public wifi

    I recently bought two Macs (Macbook Pro and Macbook Air).

    When I connect to wifi, which requires a logon, the Macbook Pro works fine. The Macbook Air does not work. It connects to the network, but when you open a browser, it says that you are not connected to internet (which is true, as did no logon).

    Forums offers various ways to approach this (try to force the login screen by entering the URL, look at the DNS settings, enter http://192.168.1.1 etc etc) but none of these work.

    I am lucky to have two Macs and I watched the network settings, Notification etc settings and they are (essentially) - things the same as the Mac address are obviously different.

    Two Macs are OS X El Captain (Version 10.11.4).

    Can anyone help as the Macbook Air is not very useful if I can't access public wifi?

    And if anyone has the definitive answer, I think it would help a lot of people.

    Thank you very much.

    How are you connected to the router? What's an auto assigned DNS or that you must do it manually.  If it's self assigned, remove the wifi settings in the preferences system, network. Network / airport / advanced, under the airport click Network in the box, then the negative pole. Then close and open the airport icon in the top menu. Make sure that the airport is on. Click on join the network, and then follow the instructions.  you will be asked for the name of the network and security. then your network password.  Do of course, don't forget that this network is enabled. You are basically removing the network in system preferences and starting over.

  • Re: How to reset the password on the logon screen - Satellite A300?

    How to reset the password on the logon screen?

    I can not access the installation of the establishment or BIOS because I can't pass this screen. Enter something wrong 3 times turns off the computer. I do not have the current password and I don't know what kind of password is and why it s asking one as soon as I turn it on.

    How can I solve this problem?

    You can not fix it. You can only disable it, but to do this, correct password must be known to you.
    As many times before in this forum we have already discussed on this topic.

    Password is very important security feature and we cannot advise how to bypass or remove passwords on the public forum. In other words, each stolen notebook protected by password will be easy to start and access to the recorded data will be easy.

    What is your laptop? You may have purchased this used an and now it is blocked by password?

  • Firefox does not display some things, for example the box for this text, but only on a logon - how to fix?

    Firefox does not appear certain things. For example, the area around the text, the above options (bold, italic, type inserting a link - I can see what they are just by moving the mouse pointer in the approximate area and reading the small text that appears). Other things, that it does not appear - the word 'Google' when I opened the page of search engine, icons in eBay. On eBay, when I log in, the words "sign in" appear as 2 different fonts superimposed on one another, both in black. In Internet Explorer, it appears as white text on a blue background and is quite readable. Now that this description has reached the length where the scroll box is needed, the scroll box appeared, but there is still no box around the text. Underneath, there is a box to a drop down menu ("what happened"), but not for "began when this" or "troubleshooting information. I don't know where to put the cursor to find these areas because it turns into a bar I when I'm in the right place. The really funny thing is: only, it has that way about my logon - works of fine wife! (Work that one!) It all started when I was running version 3.8.5 (I think it was). I downloaded version 4 hoping he could solve the problem, but it didn't. I uninstalled and reinstalled, but the problem is still there. I have several months now (I think - at least 2 months) while the computer was turned off and rebooted several times, without effect.

    Looks like a broken profile. Back up your bookmarks, create a new profile , and then import your bookmarks back in. Let me know if you need additional assistance.

    Thank you!
    handsomeorlandoman

  • Satellite L750 - user profile service has no logon

    Oh Dear

    I now have an attractive thin red brick
    What to do to fix outside such scary things?

    Note the new hard disk password is ok

    + The message was edited: link has been removed.

    I guess this will help you solve your problem, because it seems to be known MS system issue:

    See article Microsoft Knowledge base:
    [You receive a "the user profile Service has no logon error message:"] http://support.Microsoft.com/kb/947215/en-us]

  • Re: Satellite C660-242 - "the service user profile Service has no logon.

    By turning on the laptop the following message when you try to enter the password
    "The service user profile Service has no logon.
    "Unable to load the user profile.

    Hello

    Check http://support.microsoft.com/kb/947215 and post comments to the first Microsoft document on this issue.

  • How can I delete-auto-completion of logons?

    Sometimes a wrong connection gets typed in a site and the opening of this session is saved somewhere I want to go to this place and remove incorrect logons that I have accumulated in this list. If I have to, I delete all logons and start over just to get rid of the worst.

    See http://kb.mozillazine.org/Deleting_autocomplete_entries

  • customization of the google search and the new inconsistency of tabs

    1. is there a way to customize the google search bar to the effect of doing this and this addons?

    2. I dislike the inconsistency of FF3 when it comes to opening new tabs: CTRL + T opens a new tab to the very good, while clicking on a link or search in the menu shortcut opens the new tab next to the tab that is currently open. There should be a way to make the FF to work one way or the other.

    1. you can change the google.xml file in the program folder files \searchplugins\ to match one of these two XML files search plugins.

    2. which changed in Firefox 3.6 to fix a Bug which was introduced some time - ago "related" URL opens to the right of the tab being viewed, others open on the far right. Many of us did not like that and we have disabled this feature.

    Type of topic: config in the URL bar and press ENTER.

    If you see the warning, you can confirm that you want to access this page.

    Filter = browser.tabs.insertRelatedAfterCurrent

    Double-click the preference to change the false value

  • How to remove a user name from the logon screen?

    Hi all

    I have an annoying problem and do not know how to solve.

    What happened is that used to use my laptop for the log-in het Skype account my ex-girlfriend. But in the login screen continues to display his name as mine always does.

    I used different registry cleaners and uninstalled and reinstalled Skype and had no results.

    How can I remove users on the logon screen?

    Thanks for all the help.

    Basically, you need to remove the folder of the account. I think the second part of this FAQ Help: https://support.skype.com/en-gb/faq/FA142/How-do-I-delete-my-profile-or-Skype-Name

    André

    If the answer was helpful, please mark with congratulations , and if the problem is resolved you can mark it with solution. This will help other users found this answer more easily. Thanks in advance!

  • Satellite A300 - stopped to ask fingerprint logon

    Hello

    I have a Toshiba A300 with Windows Vista on what I bought late last year.
    Everything worked very well and in order until 2 months ago, when he stopped suddenly to ask fingerprint logon.

    I don't really know what caused it to stop working. Could someone help please?

    Try to update the software of fingerprints. I think that her place at v2.5.29 (Authentec).

    Also have a look in the settings of Authentec fingerprint, make sure that blow on Windows logon is enabled.

  • Skype won't start no-logon screen

    I just installed Skype on my computer Windows 7 Samsung, and every time I open it I'm gretted with a white screen logon that simply says Skype through it. This has happened with previous versions of Skype as well, and I don't know why. I've attached a screenshot of what I get.

    For those who need to know, my specs are:

    -2.40 GHz Intel i5 450 M processor

    -8.00 GB RAM DDR3

    -Windows 7 64 bit

    Laptop - Samsung Q430

    Thank you!

    Now try to IE10 to uninstall and reinstall IE9.

    In order to uninstall IE10, you should go to the Windows Control Panel-> programs and features-> view installed updates-> Microsoft Windows-> Windows Internet Explorer 10.

    http://techdows.com/2012/11/how-to-downgrade-from-IE10-to-IE9-or-IE8-Windows-7.html

Maybe you are looking for