Oracle 视图 DBA_CONNECTION_TESTS 官方解释,作用,如何使用详细说明
本站中文解释
Oracle视图 DBA_CONNECTION_TESTS 用于描述网络连接的测试情况,主要用于支撑 Oracle网络设置,DBA_CONNECTION_TESTS 视图可以使DBA在检查和修复网络设置时,针对具体的错误的细节进行快速的定位处理。
DBA_CONNECTION_TESTS 视图的使用步骤如下:
1.使用 SQL*Plus 工具登录 Oracle数据库,使用 SYS DBA用户身份登录 Oracle数据库。例如:SQL > conn sys/password@db_name as sysdba;
2.执行修复网络测试语句;例如:SQL > alter system set test_connections = true scope = both;
3.使用DBA_CONNECTION_TESTS 视图查看测试结果;例如:SQL > Select test_type, message From dba_connection_tests;
4.根据测试结果进行网络设置修复;
5.执行关闭测试语句;例如:SQL > alter system set test_connections = false scope = both;
以上就是Oracle视图 DBA_CONNECTION_TESTS 的使用方法。
官方英文解释
DBA_CONNECTION_TESTS
provides information about connection tests in use for CDBs and PDBs.
This view shows SQL and non-SQL connection tests.
Column | Datatype | NULL | Description |
---|---|---|---|
|
|
|
Indicates whether the test is predefined or custom. Possible values:
Predefined tests can be disabled, but not deleted. |
|
|
|
Indicates the test type. Possible values include:
The test type values are the |
|
|
|
SQL test. This column is null for non-SQL tests. |
|
|
|
Optional service name qualifier |
|
|
|
Indicates whether the SQL test is enabled. Possible values:
|
See Also:
Oracle Database PL/SQL
Packages and Types Reference for additional information about the ENABLE_CONNECTION_TEST
procedure for the DBMS_APP_CONT_ADMIN
PL/SQL package