ITPub博客

首页 > 应用开发 > IT综合 > OMF

OMF

原创 IT综合 作者:yeahokay 时间:2008-05-21 15:55:44 0 删除 编辑
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/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: Rename datafile
请登录后发表评论 登录
全部评论
  • 博文量
    140
  • 访问量
    1115940