PC Review Forums Newsgroups Microsoft DotNet Microsoft ADO .NET ORA-00020: maximum number of processes (%s) exceeded

Reply

ORA-00020: maximum number of processes (%s) exceeded

 
Thread Tools Rate Thread
Old 15-09-2006, 09:21 PM   #1
John G
Guest
 
Posts: n/a
Default ORA-00020: maximum number of processes (%s) exceeded


I have been using the OleBDhelper
(http://msdn.microsoft.com/library/d...2/html/daab.asp)
with oracle. With a small group of people we recieved the following
message:
ORA-00020: maximum number of processes (%s) exceeded


Looking at some of the code in the OledbHelper, I noticed that there
was no close method on the connection. Can this be it. Also, I saw from
another user was they also set the connection to null so the garbage
collection would clean up that connection. thanks in advance.
Code:

public static DataSet ExecuteDataset(string connectionString,
CommandType commandType, string commandText, params OleDbParameter[]
commandParameters)
{
//create & open an OleDbConnection, and dispose of it after we are
done.
using (OleDbConnection cn = new OleDbConnection(connectionString))
{
cn.Open();

//call the overload that takes a connection in place of the
connection string
return ExecuteDataset(cn, commandType, commandText,
commandParameters);
}
}

  Reply With Quote
Old 15-09-2006, 09:49 PM   #2
Cowboy \(Gregory A. Beamer\)
Guest
 
Posts: n/a
Default Re: ORA-00020: maximum number of processes (%s) exceeded

Go through and call Dispose on connections when finished with them. Profile
the connections in Oracle and ensure they are being closed (I have seen
instances where this is not true and it is not good). You should also ensure
the connections are used for as short a time as possible.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************************************************
Think outside of the box!
*************************************************
"John G" <jwgiblin3@hotmail.com> wrote in message
news:1158351673.592815.126750@m73g2000cwd.googlegroups.com...
>I have been using the OleBDhelper
> (http://msdn.microsoft.com/library/d...2/html/daab.asp)
> with oracle. With a small group of people we recieved the following
> message:
> ORA-00020: maximum number of processes (%s) exceeded
>
>
> Looking at some of the code in the OledbHelper, I noticed that there
> was no close method on the connection. Can this be it. Also, I saw from
> another user was they also set the connection to null so the garbage
> collection would clean up that connection. thanks in advance.
> Code:
>
> public static DataSet ExecuteDataset(string connectionString,
> CommandType commandType, string commandText, params OleDbParameter[]
> commandParameters)
> {
> //create & open an OleDbConnection, and dispose of it after we are
> done.
> using (OleDbConnection cn = new OleDbConnection(connectionString))
> {
> cn.Open();
>
> //call the overload that takes a connection in place of the
> connection string
> return ExecuteDataset(cn, commandType, commandText,
> commandParameters);
> }
> }
>



  Reply With Quote
Old 19-09-2006, 01:44 AM   #3
John G
Guest
 
Posts: n/a
Default Re: ORA-00020: maximum number of processes (%s) exceeded

Thanks Cowboy. Should I also make the connection = null;

Cowboy (Gregory A. Beamer) wrote:
> Go through and call Dispose on connections when finished with them. Profile
> the connections in Oracle and ensure they are being closed (I have seen
> instances where this is not true and it is not good). You should also ensure
> the connections are used for as short a time as possible.
>
> --
> Gregory A. Beamer
> MVP; MCP: +I, SE, SD, DBA
>
> *************************************************
> Think outside of the box!
> *************************************************
> "John G" <jwgiblin3@hotmail.com> wrote in message
> news:1158351673.592815.126750@m73g2000cwd.googlegroups.com...
> >I have been using the OleBDhelper
> > (http://msdn.microsoft.com/library/d...2/html/daab.asp)
> > with oracle. With a small group of people we recieved the following
> > message:
> > ORA-00020: maximum number of processes (%s) exceeded
> >
> >
> > Looking at some of the code in the OledbHelper, I noticed that there
> > was no close method on the connection. Can this be it. Also, I saw from
> > another user was they also set the connection to null so the garbage
> > collection would clean up that connection. thanks in advance.
> > Code:
> >
> > public static DataSet ExecuteDataset(string connectionString,
> > CommandType commandType, string commandText, params OleDbParameter[]
> > commandParameters)
> > {
> > //create & open an OleDbConnection, and dispose of it after we are
> > done.
> > using (OleDbConnection cn = new OleDbConnection(connectionString))
> > {
> > cn.Open();
> >
> > //call the overload that takes a connection in place of the
> > connection string
> > return ExecuteDataset(cn, commandType, commandText,
> > commandParameters);
> > }
> > }
> >


  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off