简体   繁体   中英

PHP - PDO - Oracle and Phonegap: SESSIONS_PER_USER limit error

Hi stackoverflowianers!

I have a problem on using PHP, PDO, ODBC and Oracle on ServerSide and Phonegap 3 with Android on ClientSide.

For some important reasons I have to use in some cases PDO and in other cases ODBC to interact with the Oracle database.

Always after I opened a connection, I do what is to do and after that I'm closing the connection.

Now my question is:

How can it be that after some hours of testing the Phonegap-App I always get the odbc error:

odbc_connect(): SQL error: exceeded simultaneous SESSIONS_PER_USER limit in SQLConnect on line xy

and the PDO error:

Notice: Undefined variable: dbh in file on line yz

Please help me to find out about this issue. Any idea or suggestion would be very much welcome.

Thank you in advance and best regards to you all!

Ingmar

This error happens when the profile assigned to the user is limited to few session only and you have created sessions more than that limit.

You can check the profile name using

select * from dba_users where USERNAME = 'your_user_name';

And then the profile limits using select * from dba_profiles where profile='profile_name_from_above_query' ;

Further, if you want to make sure that you never face this error, either limit the session to the allowed limit or increase the SESSION_PER_USER limit.

For more information, follow this link

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM