create tablespace命令报错的解决方法

本文介绍如何使用SQL命令创建临时表空间,并提供了一个具体的例子。同时,还解释了在创建过程中可能遇到的问题及解决方法。
部署运行你感兴趣的模型镜像

Create a temporary tablespace.

Syntax:

   CREATE TEMPORARY TABLESPACE tablespace_name
      TEMPFILE Tempfile_Options 
         [EXTENT MANAGEMENT LOCAL] 
            [UNIFORM [SIZE int K | M] ];

Tempfile_Options:
    'filespec' [AUTOEXTEND OFF]
    'filespec' [AUTOEXTEND ON [NEXT int K | M] [MAXSIZE int K | M]]

The Autoextend Maxsize clause will default to UNLIMITED if no value is specified.

To create a locally managed tablespace specify 'EXTENT MANAGEMENT LOCAL'. If you set extent management to LOCAL UNIFORM, then you must ensure that each extent contains at least 5 database blocks.

All extents of temporary tablespaces are the same size - if UNIFORM is not defined it will default to 1 MB.

Example

CREATE TEMPORARY TABLESPACE ts_temp TEMPFILE
'/data/temp01.dbf' SIZE 500M,
'/data/temp02.dbf' SIZE 500M
autoextend off
extent management local
UNIFORM SIZE 1m;

There are two kinds of fool. One says, "This is old, and therefore good." And one says, "This is new, and therefore better" - John Brunner, The Shockwave Rider

 

 

CREATE TABLESPACE dwt_data
LOGGING
DATAFILE 'd:\oracle\space\space_01.dbf'
SIZE 32M
AUTOEXTEND ON
NEXT 32M MAXSIZE 2048M
EXTENT MANAGEMENT LOCAL;

执行时候 报错

第 1 行出现错误:
ORA-01119: 创建数据库文件
'E:\product\11.2.0\dbhome_1\temp\test_temp01.dbf' 时出错
ORA-27040: 文件创建错误, 无法创建文件
OSD-04002: 无法打开文件
O/S-Error: (OS 3) 系统找不到指定的路径。

经过检查,路径没有创建。 create tablespace命令不会创建路径部分,如果找不到则会报错推出。  创建完整路径'E:\product\11.2.0\dbhome_1\temp\, 程序执行成功!

您可能感兴趣的与本文相关的镜像

Stable-Diffusion-3.5

Stable-Diffusion-3.5

图片生成
Stable-Diffusion

Stable Diffusion 3.5 (SD 3.5) 是由 Stability AI 推出的新一代文本到图像生成模型,相比 3.0 版本,它提升了图像质量、运行速度和硬件效率

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值