Question

Maximum limit of Oracle sessions / processes in Oracle 9i & HP-UX kernel parameters required

Asked by: sunhux

Hi,

The link below said number 32000 is the max limit number of processes
that can be set in Oracle 10g :
http://forums.oracle.com/forums/thread.jspa?threadID=540004

The number of Oracle processes I'm referring to are illustrated below :
SQL>show parameter processes;

NAME                                 TYPE        VALUE
------------------------------------ ----------- -----------
. . . . . . .
processes                            integer     900


Q1:
What's the max value of Oracle processes/sessions that we can set for
Oracle 9i  ( Version 9.2.0.8.0 ) ? (ie what's the max value for ??? in the commands :
SQL> alter system set processes=??? scope=SPFILE;
SQL> alter system set sessions=??? scope=SPFILE;


Q2:
On our HP-UX B11.11 with 4Gb RAM, our current sem* kernel
parameter settings are shown in bracketts below and it can
support up to about 1000 Oracle sessions and if we increase the
number of Oracle sessions much higher, we have to repair the
spfile.
My current values are indicated in bracketts below, so if I were
to increase them say by four fold, does that mean I can increase
the max limit # of Oracle sessions/processes in the same proportion,
ie
SQL> alter system set processes=4000 scope=SPFILE
            New value I
            plan to set to:   (current value):
           -----------------  -------------------
semmni        8400    (currently 2000)
semmns     16800    (currently 2000)
semmnu       4196    (currently 1000)

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-08-03 at 23:32:43ID24623747
Tags

Maximum limit of Oracle sessions / processes in Oracle 9i & HP-UX kernel parameters required

Topics

Oracle Database

,

Unix Operating Systems

,

HP-UX Unix

Participating Experts
3
Points
390
Comments
12

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Threads in HP-UX
    Is there any threading mechanism in HP-UX? Does HP-UX support POSIX threads? Please give details regarding this.
  2. hp-ux 10.20 configurable kernel parameters
    what are the Hp-ux 10.20 configurable kernel parameters which govern system performance for running I-deas 8m2 software???
  3. Hp-UX Tools
    Hello, I'm looking for some tools to collect Hp-UX 11i system's statistics at regular intervals. I want to check for the CPU utilization,IO,Memory usage etc etc..my client is complaining the system is slow. We have installed an Oracle DB on the server.I wanted to check the...
  4. hpus_aes_override kernel parameter in HP-UX 11i
    Hi HP Gurus, I am relative new to HP-UX 11i . I have two queries 1)Could you please tell me the use hpux_aes_override How to I change its value . 2)Also when I am trying to set the value of shmmax to 0x4000000000 it gives me error saying maximum allowed is 0x40000000...
  5. Installing Oracle 9i on HP UX
    I am trying to install Oracle on HP UX and I did the downloads from oracle and did the steps as mentioned below but then I do not know how to start the install. Oracle9i Enterprise Edition for HP/IA64, Release 2 (v9.2.0.2) Download the Complete File HP_IA64_server_9.2....
  6. Oracle installation on HP-UX
    Hello, One of our client has asked me to install Oracle 10.2.0.3 on a HP-UX 11.11 machine. I have no knowledge about Oracle or installing it. Could you please give me a link for installation procedure? I tried in the Oracle website but not getting the exact one. Uname resul...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: tomcatkevPosted on 2009-08-04 at 02:28:11ID: 25011778

Generally you've identified the correct relationships and SHM tunables that need to be increased to allow Processes to be increased.

I'm using Solaris rather than HPUX, but I might tend to suggest putty really high estimates in for the Semaphore Kernel parms, particularly if you want to try and set something near Oracle maximum, then set the corresponding SHM kernel parameters closer to the maximum.  There is a VERY SMALL AMOUNT of kernel memory to be saved by specifying anything less than the maximums, and hey, I'll presume that if you want to have 32767 processes, you probably have a decent 32G+ memory configuration and probably aren't concerned if the kernel grows by a few MB to give you maximum flexibility for scalability.  It is what we do :-)

semmns = 32767 (maximum specifiable hpux value, maximum total of all Oracle Processes for all instances on the box)
semmni = 64 (maximum number of Oracle instances on the box)

And with apology, I don't recognize semmnu as important to mess with.

A few others worthy to note that you don't mention...

semmsl = 32767 (maximum number of processes per instance / per semaphore identifier)

shmmax = 0xffffffffffff   (or some value that is bigger than the maximum memory your server can be expanded to)

 

by: schwertnerPosted on 2009-08-04 at 03:01:26ID: 25011923

The maximum value of Oracle processes depends also on the available memory.
Every process consumes RAM (Oracle warns about 5 MB, some experts say it is 2 MB).
So these processes will eat the RAm and also use ports (Listener redirects the ports to
establish socket connection).
The best practice is to try to remove the dead connections adding to SQLNET.ORA file the parameter:

SQLNET.EXPIRE_TIME= 30
every 30 minutes the dead connections will be removed.

 

by: mrjoltcolaPosted on 2009-08-04 at 07:50:34ID: 25014404

I do not recommend increasing your Oracle PROCESSES by fourfold. That would be 3600, which is extremely high for a single instance, and I have never seen that high of a setting.

You may need to look at other ways of scaling:
1) Faster hardware to reduce the invididual process lifetime
2) RAC - To spread the processes out over multiple nodes

 

by: sunhuxPosted on 2009-08-04 at 22:45:14ID: 25020429

Thanks chaps.

Hi Tomcatkey, is the value below correct or are you trying to mean 6400?
(64 is too low as my servers' current value is 2000)
semmni = 64

Hi Schwertner:
I did try out the "SQLNET.EXPIRE_TIME= 20" when you suggested to me the last time & it
did not help.  We've written scripts to monitor number of Oracle sessions and when it
surges above 120 (about once-thrice every fortnight, # of Oracle processes wud go
above 120), we asked users to finish their last transaction & stop and we've seen that
within 5 seconds, # of Oracle processes could dive from 800+ to just 35 within 5 secs.
So don't think there's any dead/idle processes  involved here, they must be active
processes based on what we've noticed


Hi mrjoltcola:
I understand setting the number of Oracle processes too high may prevent Oracle from
starting up subsequently if the sem*  parameters are not increased sufficiently.  Today,
on the HP-UX UAT server, we've just increased a dozen over kernel parameters (including
the sem*) & this time, we're able to increase number of Oracle processes to 3200 (previously
1600 would have failed & my DBA colleague has to do some sort of repair to spfile or
inittab.ora)

Q4 :
Btw, does anyone has the steps to recover (ie repairing the spfile/inittab.ora) in case I
increased # of Oracle processes too high and upon subsequent restart of Oracle, it
won't allow us to restart due to insufficient sem* values??

 

by: mrjoltcolaPosted on 2009-08-04 at 23:03:29ID: 25020492

Hi, just because you were able to boot does not mean Oracle will ever successfully reach 3200 simultaneous processes before the system stops dead. What I meant was, by the time you have that many sessions,  you'll likely have a non-responsive system. But good luck, let us know how it goes.

Q4:

1) Make a init.ora file copy right now that you can use as a safe copy.
SQL> create pfile='/backup/initORA1.ora' from spfile;  -- will create a clear text init.ora

2) Use RMAN and autobackups and RMAN will backup the spfile for you

RMAN> CONFIGURE CONTROLFILE AUTOBACKUP ON;

 

by: schwertnerPosted on 2009-08-05 at 00:57:31ID: 25021023

Oracle uses another style of management (shared server) when it goes to so much processes:
http://download.oracle.com/docs/cd/B10501_01/network.920/a96580/mts.htm
But shared server is not a panacea - you have to investigate what are your users doing when they
use the resource:(http://searchoracle.techtarget.com/expert/KnowledgebaseAnswer/0,289625,sid41_gci965297_mem1,00.html)
As you may know, in an Oracle instance using shared server, Oracle sessions do not have a dedicated server process to execute their SQL statements. Instead, each statement is passed by a dispatcher to one of the shared server processes associated with the instance. Such an architecture is useful in systems that have to support many hundreds or thousands of concurrent sessions, as it reduces the number of server processes on the Oracle host. There is slightly more CPU overhead associated with the use of shared servers, but it should be more than offset by the memory and CPU savings achieved by reducing the operating system's process management overhead.
Shared server is most effective when sessions spend a lot of their time in an idle state (as may be the case for OLTP applications). Systems with sessions that have a higher ratio of active-to-idle time (such as DSS) may not benefit as much from Shared Server. Remember, though, that it is a simple matter to specify a dedicated server process for a session even in the presence of Shared Server: Simply create a database service name that contains the term SERVER=DEDICATED, and use that service name at login time. Check the Oracle Net manual for details.


Also be aware a mixed strategy is also possible.

 

by: schwertnerPosted on 2009-08-05 at 07:51:38ID: 25024084

Q4. The simpliest:

SQL>create pfile='/u01/init_backup.ora' from SPFILE;
..........
SQL>startup pfile=/u01/init_backup.ora

 

by: sunhuxPosted on 2009-08-05 at 21:46:18ID: 25030187

Thanks again chaps.

I'm not a DBA, just a Unix sysadmin.

To clarify further, instead of using Rman, can I take a backup of the spfile & init.ora
using Unix "cp" command to make a copy to somewhere?

We have observed on our problem Filenet HP-UX server, the # Oracle processes could
climb to 200-300 or 800-850 and then suddenly came down to less than 50 : so on such
incidents, no disruption to services but if it exceeds our current limit of 900, then entire
Oracle would be dead and we have to restart Oracle.  So, I'm hoping that by increasing
the limit to 3200, it would never hit this new limit of 3200 and would come down.  It hit
900 about once every 2-3 weeks.  Comparatively on our Itanium (also 4Gb RAM) SAP
server, the # Oracle processes never go above 120.

I'll keep this thread open till after 17 Aug when we've implemented on our Prod Filenet
server (currently only done on Uat Filenet server).


MrJoltcola/anyone,
>by the time you have that many sessions,  you'll likely have a non-responsive system
If 3200 is considered high, why is it Oracle 10g allows a limit of up to 32000 as given by :
  http://forums.oracle.com/forums/thread.jspa?threadID=540004        ??

 

by: schwertnerPosted on 2009-08-06 at 00:04:13ID: 25030733

You can backup every Oracle file, but never try to edit the SPFILE. It will be corrupted.
Editable are mirrored copies - the parameter files.

850 sessions is too much. There should be a reason for this and you can try to investigate
who is producing these connections. If the services exceeded the number of the processes allowed
Oracle will not be "dead", only new connection will be rejected.
Possibly the explanation is that you run out of RAM size and swappings began ....
4GB RAM is too little for such kind of installation.

So I think you need further investiogation who, why and for what reason does these connections.

 

by: mrjoltcolaPosted on 2009-08-06 at 13:34:52ID: 25037769

sunhux,

You do not backup the spfile or controlfile with UNIX commands unless the database is down. RMAN or sqlplus is the approved procedure for hot backups of these files.


>>If 3200 is considered high, why is it Oracle 10g allows a limit of up to 32000 as given by

Its just my personal opinin. Years ago, 500 was high.

The same logic can be applied to why a 64-bit UNIX kernel allows use of a terabyte of memory, just because an integer value can hold an amount, does not mean the system in question will perform well with that amount.

The same goes for Oracle. You can use very large SGAs, but the larger you go, the more the performance may degrade due to buffer cache LRU list management, etc.

Regarding sessions, technically, if you tried, you could use 1 session to take all of the available CPU / disk IO resources of Oracle. Or you may have 1000 sessions idle doing nothing, but each of those idle sessions requires memory and semaphores and also equals context switching.

Oracle allows you to configure it to use all of the available power of your OS / hardware. My comment is just that 3200 is high for the average setup, but it does depend on what each session is doing, how much memory you have, and how many CPUs you have.

 

by: sunhuxPosted on 2009-08-22 at 04:23:19ID: 25158283

After a lengthy discussion & experiment, I found that increasing the
following values would allow us to increase our Oracle processes
limit to 3200.

Of course, there are other parameters that were tuned too, namely
maxuprc, maxswapchunks, etc (as recommended by Oracle page)
but found that I should not increase maxdsize and maxdsiz_64bit
as recommended, otherwise Filenet's workflow client on Windows
server won't connect to the Unix DB server.  No error/clue.

Anyway, after increasing the following values below (& other kernel
parameters), the number of oracle processes never go above 250
(it's bound to exceed 500 once per week previously).

So probably some of those settings has hold back the number of Oracle
processes from increasing but the following values below certainly allow
me to increase Oracle processes further :


            New value I
            plan to set to:   (current value):
           -----------------  -------------------
semmni        8400    (currently 2000)
semmns     16800    (currently 2000)
semmnu       4196    (currently 1000)

 

by: tomcatkevPosted on 2009-08-22 at 22:28:53ID: 25161439

I will note that I have oracle that is providing service for web pages where I'm specifying PROCESSES=5000, though most normal operational conditions have more like 500 session pool, I used to have it set to 1000 and had semi-fatal app errors occuring when it ran out of available sessions, so I have the similar inclination to "put it in the sky" and set a processes value that is perhaps a factor of 10 more than you normally intend to use, just to handle the demand spikes, or the occasional bad app code that opens sessions and fails to close them in timely manner.  Let that Java app code be the point of failure, don't let it be Oracle :-)

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...