oracle的文件后缀名,转:数据文件的扩展名是ora,dbf,dat的,有什么区别? | 您所在的位置:网站首页 › sql数据库文件格式有哪些类型的 › oracle的文件后缀名,转:数据文件的扩展名是ora,dbf,dat的,有什么区别? |
只是通过扩展名来标识文件的类型而已,对于数据文件不管是ora/dat/dbf,都是一样的,没有什么区别。 .dbf-数据文件, .tmp-临时文件, .log-重作日志文件(redo log file), .ctl-控制文件 .ora-参数文件, .dat-Oracle系统文件 实在不行可以rename: SQL> alter tablespace test_data_16k offline; Tablespace altered Executed in 0.235 seconds SQL> alter database 2 rename file 'f:oracleoradatasdusuntest_data_16k.ora' 3 to 'f:oracleoradatasdusuntest_data_16k.dbf'; Database altered Executed in 0.063 seconds 为了验证上述的说明,测试如下: 1 为表空间增加一个.d后缀的数据文件 SQL> alter tablespace test_data_16k 2 add datafile 'f:oracleoradatasdusuntest.d' size 5m; Tablespace altered Executed in 0.297 seconds 2 建表 SQL> create table test 2 (num number(6,2)) 3 tablespace test_data_16k; Table created Executed in 0.14 seconds 3 为表指定数据文件 SQL> alter table test 2 allocate extent (size 500k datafile 'f:oracleoradatasdusuntest_data_16k.dbf'); 4 写数据 SQL> insert into test 2 select rownum from dba_objects where rownum commit;Commit complete Executed in 0.047 seconds 由此可见,test.d 的数据文件也是可以用来存储数据的,与.dbf 和.ora 并没有什么区别,但规范起见还是使用 .dbf,.ora比较好! |
今日新闻 |
推荐新闻 |
专题文章 |
CopyRight 2018-2019 实验室设备网 版权所有 |