Oracle Auto-Disconnect database connection workaround

Source: Internet
Author: User

Recently, there are customers in the application of the system has a frequent automatic disconnection of the database (every 10 minutes) of the anomaly, through the search for learning, find the following two ways to solve. For everyone's reference.

Three steps to complete in a sqlplus environment.

The first step is to query the resource file and find the profile name where Connect_time is located.

select Resource_name,profile from Dba_profiles;

The second step is to modify the value in the profile with the ALTER command;

alter profile monitoring_profile limit Connect_time unlimited; (or with a time value, such as 1000, in minutes)

alter profile monitoring_profile limit Idle_time unlimited;

The third step is to view the values in the profile with the following command;

Select Resource_name,limit from dba_profiles where profile= ' monitoring_profile ';

Oracle Auto-Disconnect database connection workaround

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.