5

How do I change the maximum number of connection to Oracle database at start? I use :

ALter system set sessions=500 scope=spfile; 

However, after restart the database, use show parameter sessions still give value 772 for sessions

Khue.

Khue Vu
  • 151
  • 1
  • 1
  • 3

2 Answers2

3

are you also changing PROCESSES parameter afterwards? sessions is a derived parameter.

Try changing sessions last?

Nick Kavadias
  • 10,796
  • 7
  • 37
  • 47
1
  1. Change:

    echo "alter system set processes=1000 scope=spfile;" | sqlplus system/password@localhost:1521/orcl

    echo "alter system set sessions=1000 scope=spfile;" | sqlplus system/password@localhost:1521/orcl

  2. Restart DB

  3. Check:

    echo "SELECT value FROM v\$parameter WHERE name = 'processes';" | sqlplus system/password@localhost:1521/orcl

    echo "SELECT value FROM v\$parameter WHERE name = 'sessions';" | sqlplus system/password@localhost:1521/orcl