Oracle 视图 ALL_JAVA_THROWS 官方解释,作用,如何使用详细说明

本站中文解释

ALL_JAVA_THROWS是Oracle中封装在数据视图ALL_JAVA_THROWS中的系统表,用于记录Oracle中由异常反映出来的信息。它存储了类中的异常信息,如类名、方法、异常类名、是否是Checked Exception等。

使用ALL_JAVA_THROWS来查询表中的异常信息,可以使用SELECT语句,如:

SELECT * FROM ALL_JAVA_THROWS WHERE OWNER = ‘TESTUSER’ AND CLASS_NAME = ‘MyClass’

上述语句将查出OWNER为TESTUSER,类名为MyClass的所有的异常信息。此外,ALL_JAVA_THROWS还可以用于检查Java程序中是否已经抛出异常,或者检查类中是否存在异常。

官方英文解释

ALL_JAVA_THROWS displays information about exceptions thrown from methods of the Java classes accessible to the current user.

Related Views

  • DBA_JAVA_THROWS displays information about exceptions thrown from methods of all Java classes in the database.

  • USER_JAVA_THROWS displays information about exceptions thrown from methods of the Java classes owned by the current user. This view does not display the OWNER column.

Column Datatype NULL Description

OWNER

VARCHAR2(128)

NOT NULL

Owner of the Java class

NAME

VARCHAR2(4000)

Name of the Java class

METHOD_INDEX

NUMBER

Index of the throwing method of the exception

METHOD_NAME

VARCHAR2(4000)

Name of the throwing method of the exception

EXCEPTION_INDEX

NUMBER

Index of the exception

EXCEPTION_CLASS

VARCHAR2(4000)

Class of the exception

See Also:

  • “DBA_JAVA_THROWS”

  • “USER_JAVA_THROWS”


数据运维技术 » Oracle 视图 ALL_JAVA_THROWS 官方解释,作用,如何使用详细说明