configuration file ( startup.pl )!!!

2000-11-20 Thread Edmar Edilton da Silva

Dear all,

I am with a small problem. I used the following command to open some

connections when the WWW server is initialized:

#Initialize the database connections for each child
Apache::DBI-connect_on_init
("dbi:Oracle:ora8", "travel", "travel",
   {
   PrintError = 1, # Warn() on errors
   RaiseError = 0, # Don't die on error
   AutoCommit = 1, # Commit executes immediately
   }
);

The problem is which I do not know how to configure the WWW server

to open many connections for example "20 connections"!!!

Can anyone help me ? If possible, I would like someone send me your

configuration file (startup.pl).

Thanks,



Edmar Edilton da Silva
Bacharel em Ciência da Computacão - UFV
  Mestrando em Ciência da Computacão - UNICAMP






Re: configuration file ( startup.pl )!!!

2000-11-20 Thread John K. Sterling

The below code in your startup.pl will have 1 connection per child.  If
you're apache config allows for 20 kids, each one will get its own
connection to your database.  There is no built in pooling support (though
that will be trivial in 2.0) but usually having a connection per kid is
what you're looking for.


sterling


On Mon, 20 Nov 2000, Edmar Edilton da Silva wrote:

 Dear all,
 
 I am with a small problem. I used the following command to open some
 
 connections when the WWW server is initialized:
 
 #Initialize the database connections for each child
 Apache::DBI-connect_on_init
 ("dbi:Oracle:ora8", "travel", "travel",
{
PrintError = 1, # Warn() on errors
RaiseError = 0, # Don't die on error
AutoCommit = 1, # Commit executes immediately
}
 );
 
 The problem is which I do not know how to configure the WWW server
 
 to open many connections for example "20 connections"!!!
 
 Can anyone help me ? If possible, I would like someone send me your
 
 configuration file (startup.pl).
 
 Thanks,
 
 
 
 Edmar Edilton da Silva
 Bacharel em Ciência da Computacão - UFV
   Mestrando em Ciência da Computacão - UNICAMP
 
 
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]