ORA-00018.Maximum number of sessions exceed
Initiate the environment variables
cat /etc/oratab
. oraenv
ISTCLOUD
Control the number of connections in use
loggin as PDBADMIN in your PDB
sqlplus PDBADMIN/welcome1@129.152.132.249:1521/SALESPDB4XOK68WUOMMXBE1WPHN.ieoracle12645.oraclecloud.internal
Check the number of connections
Run:
SELECT
'Currently, '
|| (SELECT COUNT(*) FROM V$SESSION)
|| ' out of '
|| VP.VALUE
|| ' connections are used.' AS USAGE_MESSAGE
FROM
V$PARAMETER VP
WHERE VP.NAME = 'sessions'
It displays “Currently n out of m connections are used.” Here n > m. It should be the opposite.
Change the max number of sessions
Loggin as sys in your PDB
quit
sqlplus / as sysdba
alter session set container = SALESPDB4XOK68WUOMMXBE1WPHN;
Change the number of sessions
alter system set sessions=100 scope=both sid='*';
Then bounce the database
Turn it off and on again
SQL> shutdown immediate
SQL> startup
Open all the PDBs (closed by the bouncing)
ALTER PLUGGABLE DATABASE ALL OPEN;
Control again
Log back into the PDBAMIN user
sqlplus PDBADMIN/welcome1@129.152.132.249:1521/SALESPDB4XOK68WUOMMXBE1WPHN.ieoracle12645.oraclecloud.internal
Run the control SQL querry
SELECT
'Currently, '
|| (SELECT COUNT(*) FROM V$SESSION)
|| ' out of '
|| VP.VALUE
|| ' connections are used.' AS USAGE_MESSAGE
FROM
V$PARAMETER VP
WHERE VP.NAME = 'sessions'
It displays “Currently n out of m connections are used.” Now n < m.
Comments
Post a Comment