简体   繁体   English

PHP-PDO-Oracle和Phonegap:SESSIONS_PER_USER限制错误

[英]PHP - PDO - Oracle and Phonegap: SESSIONS_PER_USER limit error

Hi stackoverflowianers! 嗨stackoverflowianers!

I have a problem on using PHP, PDO, ODBC and Oracle on ServerSide and Phonegap 3 with Android on ClientSide. 我在ServerSide上使用PHP,PDO,ODBC和Oracle以及在ClientSide上将Android与Phonegap 3一起使用时遇到问题。

For some important reasons I have to use in some cases PDO and in other cases ODBC to interact with the Oracle database. 由于某些重要原因,在某些情况下,我必须使用PDO,而在其他情况下,则必须使用ODBC与Oracle数据库进行交互。

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: 经过几个小时的Phonegap-App测试之后,我总是会收到odbc错误:

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

and the PDO error: 和PDO错误:

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' ; 然后使用select * from dba_profiles where profile='profile_name_from_above_query'限制配置文件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. 此外,如果要确保您永远不会遇到此错误,请将会话限制为允许的限制,或者增加SESSION_PER_USER限制。

For more information, follow this link 有关更多信息,请点击此链接

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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