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

本站中文解释

V$SQLFN_ARG_METADATA是Oracle数据库中的一个视图,主要用于提供SQL函数和存储过程的参数元数据。它所显示的信息涉及到参数的编号、函数的命名、参数的模式类型、参数的位置、参数的默认值等。这个视图可以帮助DBA更有效地使用数据库中的函数和存储过程,避免可能出现的错误和问题。

以下是使用V$SQLFN_ARG_METADATA视图的例子:

SELECT *
FROM V$SQLFN_ARG_METADATA
WHERE FUNCTION_NAME = ‘LOG’
ORDER BY ARGUMENT_POSITION;

这条SQL查询可以列出LOG函数的所有参数元数据,从而有助于DBA更轻松地使用LOG存储过程。

官方英文解释

V$SQLFN_ARG_METADATA contains metadata about function arguments. There is one row for each argument of every function found in V$SQLFN_METADATA. There are no rows for functions that do not have any arguments.
Column Datatype Description

FUNC_ID

NUMBER

Internal function identification number. This column can be used to join with the V$SQLFN_METADATA view.

ARGNUM

NUMBER

Argument number

DATATYPE

VARCHAR2(8)

Data type of the argument. The value is NULL if this argument is not used. Otherwise, it can take values of any Oracle data type, family data type, or EXPR data type.

DESCR

VARCHAR2(128)

This column is reserved for future use.

CON_ID

NUMBER

The ID of the container to which the data pertains. Possible values include:

  • 0: This value is used for rows containing data that pertain to the entire CDB. This value is also used for rows in non-CDBs.

  • 1: This value is used for rows containing data that pertain to only the root

  • n: Where n is the applicable container ID for the rows containing data

See Also:

“V$SQLFN_METADATA”


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