创建时出错:
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.