匿名用户Oracle 数据库临时表空间需要提前建立吗?
正常来说是需要的;
若不创建临时表空间,遇到排序操作无法在PGA中完成时,会报错;
评论
有用 0建库的时候,默认会创建临时表空间。
手动创建的话,可以替换默认临时的表空间,比如改临时表空间的名字
评论
有用 0When the SYSTEM tablespace is locally managed, a default temporary tablespace is included in the database by default during database creation. A locally managed SYSTEM tablespace cannot serve as default temporary storage.
当SYSTEM表空间是本地管理时,在创建数据库时,数据库中默认包含一个默认的临时表空间。本地管理的SYSTEM表空间不能作为默认的临时存储。
You can specify a user-named default temporary tablespace when you create a database by using the DEFAULT TEMPORARY TABLESPACE extension to the CREATE DATABASE statement. If SYSTEM is dictionary managed, and if a default temporary tablespace is not defined at database creation, then SYSTEM is the default temporary storage. However, the database writes a warning in the alert log saying that a default temporary tablespace is recommended.
在create database语句中使用default temporary tablespace扩展名创建数据库时,可以指定一个以用户名命名的默认临时表空间。如果SYSTEM是字典管理的,并且在数据库创建时没有定义默认临时表空间,则SYSTEM是默认临时存储。但是,数据库会在警报日志中写入一条警告,建议使用默认临时表空间。
https://docs.oracle.com/cd/E11882_01/server.112/e40540/logical.htm#CNCPT89029
根据官网对临时表空间的描述能看出其实一般情况不需要用户自己建立临时表空间
评论
有用 0
墨值悬赏

