Re: Slow connection to Oracle 9i
From: Peter J. Holzer (hjp_at_wsr.ac.at)
Date: 10/19/04
- Next message: James Moosmann: "RE: Invalid cursor state when using PRINT in MSSQL"
- Previous message: Peter J. Holzer: "Re: Slow connection to Oracle 9i"
- In reply to: Ron Reidy: "RE: Slow connection to Oracle 9i"
- Next in thread: Rich Jesse: "RE: Slow connection to Oracle 9i"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 19 Oct 2004 10:43:25 +0200 To: dbi-users@perl.org
On 2004-10-18 11:48:11 -0600, Reidy, Ron wrote:
> Maybe Oracle does not think it is a problem, but I (and lots of
> others) would disagree. These issues are correctable.
>
> In the case of slow logins, it depends on what is being done when the
> connection is made. When making connections that are dedicated server
> (not MTS) a process is created. If your server is memory and/or CPU
> bound, this could take a long time.
On a lightly loaded server, OTOH, it doesn't seem to make much
difference: I just tested it on two oracle instances on identical
hardware. Connecting to one with MTS took 0.059 seconds, connecting to
the one without took 0.064 seconds (of course there are other
differences between those databases as well, so this may not indicate
anything).
Invoking the script for the first time takes a lot longer (about 0.5
seconds), so I guess loading DBD::Oracle and the oracle shared libraries
from disk just takes some time.
> Other causes could be the any after-logon triggers that may be firing.
Other delays could be in finding the database and authenticating the
user. We only use tnsnames.ora and plain database users here, which is
probably the fastest method. If the client has to ask the oracle name
server where the database is, and the database has to ask an LDAP server
to authenticate the user, this will cause additional delays, which may
be noticable.
hp
-- _ | Peter J. Holzer | Shooting the users in the foot is bad. |_|_) | Sysadmin WSR / LUGA | Giving them a gun isn't. | | | hjp@wsr.ac.at | -- Gordon Schumacher, __/ | http://www.hjp.at/ | mozilla bug #84128
- application/pgp-signature attachment: stored
- Next message: James Moosmann: "RE: Invalid cursor state when using PRINT in MSSQL"
- Previous message: Peter J. Holzer: "Re: Slow connection to Oracle 9i"
- In reply to: Ron Reidy: "RE: Slow connection to Oracle 9i"
- Next in thread: Rich Jesse: "RE: Slow connection to Oracle 9i"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|