Oracle 视图 V$SQL_REDIRECTION 官方解释,作用,如何使用详细说明
本站中文解释
Oracle视图V$SQL_REDIRECTION存储着所有已重定向SQL语句的记录,可以用来帮助管理客户端连接服务器时的SQL重定向功能。
* 使用方法:
1、查看用户对某表重定向后被转换为查询服务器上的SQL:
SELECT * FROM v$sql_redirection WHERE sql_text LIKE ‘%表名%’;
2、查看指定用户执行某SQL需要重定向到其他服务器:
SELECT * FROM v$sql_redirection WHERE sql_text LIKE ‘%SQL 语句%’ AND username = ‘用户名’;
官方英文解释
V$SQL_REDIRECTION
displays SQL statements that are redirected.
Column | Datatype | Description |
---|---|---|
|
|
Address of the cursor handle |
|
|
Address of the parent cursor handle |
|
|
Hash value of the SQL statement |
|
|
SQL identifier of the SQL statement |
|
|
Number of the child (instance) for the hash |
|
|
Parsing user ID |
|
|
Parsing schema ID |
|
|
|
|
|
Reason for redirection ( |
|
|
Error code for local parse |
|
|
Error position, 0 if unknown |
|
|
SQL Text containing position, usually a (qualified) identifier |
|
|
Error code’s corresponding error message resolved in the database language, no arguments resolved |
|
|
The ID of the container to which the data pertains. Possible values include:
|