[Oracle工程师手记]创建表空间时ora-01119和ora-27040的处理

返回 Oracle 索引页

创建时出错:

复制代码
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.                            
                            
SQL>     

 

返回 Oracle 索引页          

posted @   健哥的数据花园  阅读(31047)  评论(0编辑  收藏  举报
编辑推荐:
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
阅读排行:
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· C#/.NET/.NET Core优秀项目和框架2025年2月简报
· 一文读懂知识蒸馏
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
点击右上角即可分享
微信分享提示