代码如下 create temporary tablespace oracle89_temp tempfile 'd:/oracle/prodect/10.2.0/oradata/oracle8/programming8_temp.dbf' size 10m autoextend on; 错误提示如下 在行 1 上开始执行命令时出错: create temporary tablespace oracle89_temp tempfi
代码如下
create temporary tablespace oracle89_temp
tempfile 'd:/oracle/prodect/10.2.0/oradata/oracle8/programming8_temp.dbf'
size 10m
autoextend on;
错误提示如下
在行 1 上开始执行命令时出错:
create temporary tablespace oracle89_temp
tempfile 'd:/oracle/prodect/10.2.0/oradata/oracle8/programming8_temp.dbf'
size 10m
autoextend on
命令出错, 行: 1 列: 0
错误报告:
sql 错误: ora-01119: 创建数据库文件 'd:/oracle/prodect/10.2.0/oradata/oracle8/programming8_temp.dbf' 时出错
ora-27040: 文件创建错误, 无法创建文件
osd-04002: unable to open file
o/s-error: (os 3) ? --此处为 “系统找不到指定的路径”
01119. 00000 - error in creating database file '%s'
*cause: usually due to not having enough space on the device.
*action:
在o/s-error:(os 3)处的错误提示,由于使用的pl/sql developer 的提示有乱码,没有即时发现问题所在。
根据pl/sql developer的提示可知,可能是因为 “在设备上没有足够的空间” ,实际上却又10多g的空间。
又调试了几次,最后终于发现是因为文件目录有错误,
实际目录为'd:/oracle/product/10.2.0/oradata/oracle8/programming_temp.dbf'
而我在写指令的时候,错误的把 product打成了prodect,所以提示o/s-error:(os 3) 系统找不到指定的路径。
ps:o/s-error:(os 3)系统找不到指定的路径,此时需要检查.dbf的路径是否存在。如果不存在,需要建立路径。
ora-01119错误是由于设备上没有足够的空间,此时需要考虑目录所在硬盘是ntfs还是fat32格式,在fat32格式下,
不能创建超过4g大小的数据文件
ora-01119: error in creating database file string
cause: usually due to not having enough space on the device.