Oracle 视图 ALL_SQL_TRANSLATION_PROFILES 官方解释,作用,如何使用详细说明
本站中文解释
Oracle 内置视图 ALL_SQL_TRANSLATION_PROFILES 用于获取当前数据库实例所有 SQL 语句转换配置,并将此配置显示到表中。界面字段信息如下:
OWNER:该语句转换配置的所有者。
PROFILE_NAME:该语句转换配置的名称。
PROFILES:该语句转换配置的具体内容。
使用方法:
1)通过ALL_SQL_TRANSLATION_PROFILES查询当前用户名下拥有的SQL转换配置,以确认是否拥有某一SQL转换配置:
SQL> SELECT * FROM ALL_SQL_TRANSLATION_PROFILES WHERE OWNER=’CURRENT_USER’ ORDER BY PROFILE_NAME;
2)为某一会话级别添加一个SQL转换配置:
SQL> ALTER SESSION SET SQL_TRANSLATION_PROFILE=’APP_PROFILE_TONGLI’;
官方英文解释
ALL_SQL_TRANSLATION_PROFILES
describes all SQL translation profiles accessible to the user.
Related Views
-
DBA_SQL_TRANSLATION_PROFILES
describes all SQL translation profiles in the database. -
USER_SQL_TRANSLATION_PROFILES
describes all SQL translation profiles owned by the user. This view does not display theOWNER
column.
Column | Datatype | NULL | Description |
---|---|---|---|
|
|
|
Owner of the SQL translation profile |
|
|
|
Name of the SQL translation profile |
|
|
The translator package |
|
|
|
Indicates whether the SQL syntax is foreign. Possible values:
|
|
|
|
Indicates whether to translate new SQL statements and errors using the translator. Possible values:
|
|
|
|
Indicates whether to raise translation error. Possible values:
|
|
|
|
Indicates whether to log translation error. Possible values:
|
|
|
|
Indicates whether to trace translation. Possible values:
|
|
|
|
Indicates whether there are log errors ( |
See Also:
-
“DBA_SQL_TRANSLATION_PROFILES”
-
“USER_SQL_TRANSLATION_PROFILES”