Got it

A database connection failure alarm is generated on the LMT

Latest reply: Jul 3, 2019 12:15:43 772 1 0 0 0

This section describes how to solve the problem that the connection to the database fails.


Problem description


A database connection failure alarm is generated on the LMT and the login to the BMU fails.


Problem analysis

1. The BMU logs contain many SESSIONS_RER_USER limit errors.


174539cjtho1tydbojhyq7.png?bmu_error_inf


2. Log in to the Oracle database and run the following statement. It is found that the DEFAULT is used:


SELECT * FROM DBA_PROFILES P1 WHERE P1.PROFILE = 'ORA11GSECPROFILE'AND P1.RESOURCE_NAME = 'SESSIONS_PER_USER';


174737wrkp3u9uorko3vzj.png?view_profile.


3. Check the value of SESSIONS_PER_USER DEFAULT:


select resource_name, limit from dba_profiles where profile='DEFAULT';


174826b0lqqzvld644a066.png?view_SESSIONS

 

4. Check the number of current connections, the number of connections has reached the upper limit.


SELECT count(*) as connections, username FROM v$session GROUP BY username ORDER  BY username;


174852yuumc8ffq8zzvzdq.png?view_connecti


Solution


1. Log in to the database as the oracle user and run the sqlplus / as sysdba command.


2. Query the total number of connections.


show parameter process;


3. Change the upper limit of SESSIONS_PER_USER to the required value.


ALTER PROFILE DEFAULT LIMIT SESSIONS_PER_USER 4000;


4. Check whether the value of DEFAULT upper limit is the new value.


select resource_name,limit from dba_profiles where profile='DEFAULT';


Thanks for sharing
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.