Oracle Automatic Disconnect database connection solution ___ Database

Source: Internet
Author: User
 

Recently, customers have proposed the use of Plsql developer tools in the application of the system, the database is frequently automatically disconnected, is not used in the case (at intervals) of the anomaly, but also a strange image, that is, the same network segment has not seen such a phenomenon, because the developer mentioned, On the Internet to find the appropriate information, there are three ways to solve.

Method One, directly modify the resource configuration file

The first step is to query the resource file to 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 profile with 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, use the following command to view the value in profile;

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

Method Two: Complete by creating a resource configuration file and making user assignments.

Three steps are completed in a sqlplus environment. [This method has no effect on other databases connecting users]

The first step is to view and modify the status of the Resource_limit.

Sql>show parameter resource_limit; If False, it is modified to true, otherwise the configuration does not take effect:

Sql>alter system set Resource_file=true;

The second step is to create a new profile file with the Create Profiles command:

Sql>create profile [profile filename] limit connect_time unlimited Idle_time unlimited;

[Example: Create profile Test_profile limit Connect_time unlimited Idle_time Unlimited;]

The third step is to assign this new profile to the user:

Sql>alter user [user_name, such as root_qy] profile [profile filename];

[Example: Alter user ROOT_QY profile Test_profile;]

There is also a way to set parameters in the listening file Listener.ora file connect_timeout_listener=0

There is also a possible network instability caused by

At present, only the first approach to look at the following two days of reflection, if there are corresponding problems, and then continue to follow up ....

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.