OMF (9i 新增)
使用OMF建立表空间
SQL> alter system set db_create_file_dest = 'c:' scope = memory;
System altered
SQL> create tablespace xxm;
Tablespace created
SQL> drop tablespace xxm;
Tablespace dropped
使用8i方式建立表空间
SQL> create tablespace xxm
2 datafile 'c:xxm.dbf' size 2m;
Tablespace created
SQL> drop tablespace xxm;
Tablespace dropped
SQL> create tablespace xxm
2 datafile 'c:xxm.dbf' reuse;
Tablespace created
SQL> drop tablespace xxm
2 including contents and datafiles;
Tablespace dropped
OMF优势
相当于设置了建立datafile,logfile的默认路径,这样无需专门指定就可建立表空间和日志等,而且在删除表空间等时会自动将物理文件删除。 用原始方式建立表空间在删除时如不特殊指定并不删除物理文件。[@more@]
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/786540/viewspace-1004365/
,如需转载,请注明出处,否则将追究法律责任。