[转帖]创建表空间时ora-01119和ora-27040的处理_MySQL, Oracle及数据库讨论区_Weblogic技术|Tuxedo技术|中间件技术|Oracle论坛|JAVA论坛|Linux/Unix技术|hadoop论坛_联动北方技术论坛  
网站首页 | 关于我们 | 服务中心 | 经验交流 | 公司荣誉 | 成功案例 | 合作伙伴 | 联系我们 |
联动北方-国内领先的云技术服务提供商
»  游客             当前位置:  论坛首页 »  自由讨论区 »  MySQL, Oracle及数据库讨论区 »
总帖数
2
每页帖数
101/1页1
返回列表
0
发起投票  发起投票 发新帖子
查看: 2026 | 回复: 1   主题: [转帖]创建表空间时ora-01119和ora-27040的处理        上一篇   下一篇 
hosea
注册用户
等级:新兵
经验:76
发帖:1
精华:0
注册:2016-9-29
状态:离线
发送短消息息给hosea 加好友    发送短消息息给hosea 发消息
发表于: IP:您无权察看 2019-9-18 14:21:26 | [全部帖] [楼主帖] 楼主

创建时出错:

SQL> create tablespace gaotbs logging datafile '/u01/app/datafiles/gaodata1.dbf'
2  size 50M autoextend on next 50M maxsize 2048M
3  extent management local;
create tablespace gaotbs logging datafile '/u01/app/datafiles/gaodata1.dbf'
*
ERROR at line 1:
ORA-01119: error in creating database file '/u01/app/datafiles/gaodata1.dbf'
ORA-27040: file create error, unable to create file
Linux-x86_64 Error: 2: No such file or directory


这是因为,目录尚未建立:

[root@o_target ~]# su - oracle
[oracle@o_target ~]$ cd /u01/app
[oracle@o_target app]$ ls
arch  arch1_6_842088414.dbf  oracle  oraInventory
[oracle@o_target app]$ mkdir datafiles
[oracle@o_target app]$ ls
arch  arch1_6_842088414.dbf  datafiles  oracle  oraInventory
[oracle@o_target app]$


建立好目录后,再次执行:

SQL> create tablespace gaotbs logging datafile '/u01/app/datafiles/gaodata1.dbf'
2  size 50M autoextend on next 50M maxsize 2048M
3  extent management local;
Tablespace created.




赞(0)    操作        顶端 
联动大白
注册用户
等级:列兵
经验:91
发帖:0
精华:0
注册:2015-5-27
状态:离线
发送短消息息给联动大白 加好友    发送短消息息给联动大白 发消息
发表于: IP:您无权察看 2019-11-5 0:30:00 | [全部帖] [楼主帖] 2  楼

为了方便大家阅读,我对文章中错误号来解释一下吧!

Error Id: ORA-01119

Title: error in creating database file ’string’

Description:

error in creating database file ’string’

Action:

none

Cause:

Usually due to not having enough space on the device.


Error Id: ORA-27040

Title: file create error, unable to create file

Description:

file create error, unable to create file

Action:

verify filename, and permissions

Cause:

create system call returned an error, unable to create file


也许你已明白,但对一个人有用也是我存在的理由!^_^ By:持之以恒的大白

-- 来自: 北京联动北方科技有限公司



赞(0)    操作        顶端 
总帖数
2
每页帖数
101/1页1
返回列表
发新帖子
请输入验证码: 点击刷新验证码
您需要登录后才可以回帖 登录 | 注册
技术讨论