Oracle 参数 PRIVATE_TEMP_TABLE_PREFIX 官方解释,作用,如何配置最优化建议
本站中文解释
参数
Oracle参数PRIVATE_TEMP_TABLE_PREFIX 基本是当某个用户创建一个会话权限的表时,名称前面会附加上特定前缀,其aim 是为了避免重名导致的问题。
设置过程:
1、登录Oracle的Net Manager
2、将TNS的Entry directory指定至当前DB的host
3、进入Oracle Server Instance 选择当前DB
4、点击右侧的右上角三角符号以expand collapse 展开机器设置信息
5、点击Advanced选项,此时会看到一堆设置parameters,其中有机器号“PRIVATE_TEMP_TABLE_PREFIX”
6、设置“PRIVATE_TEMP_TABLE_PREFIX”的值,其会用于限定用户生成的temporary table的名字
7、最后Save Changes 确认设置的内容
官方英文解释
PRIVATE_TEMP_TABLE_PREFIX
specifies the prefix that the database uses for private temporary tables.
Property | Description |
---|---|
Parameter type |
String |
Syntax |
|
Default value |
|
Modifiable |
|
Modifiable in a PDB |
Yes |
Basic |
No |
Oracle RAC |
The same value must be specified on each instance. |
The default value used for the PRIVATE_TEMP_TABLE_PREFIX
parameter is ORA$PTT_
.
If you choose to specify a different prefix value, it must begin with the string ORA$
and must be unique across the database. Use the following SQL query to determine if the prefix value is unique (in the query, replace prefix-value with your actual prefix value):
select count(*) from obj$ where name like '<prefix-value>%';
If the above query returns 0, then the prefix you specified is an appropriate value to set.
Note:
After setting the prefix, regular table, view, and object names cannot use the same prefix.
See Also:
-
“DBA_PRIVATE_TEMP_TABLES”
-
“USER_PRIVATE_TEMP_TABLES”
-
Oracle Database
Administrator’s Guide for an introduction to private temporary tables