- 最后登录
- 2012-8-24
- 在线时间
- 82 小时
- 威望
- 316
- 金钱
- 2458
- 注册时间
- 2011-12-16
- 阅读权限
- 60
- 帖子
- 136
- 精华
- 2
- 积分
- 316
- UID
- 107
|
3#
发表于 2012-2-15 01:11:14
$sqlplus / as sysdba
SQL*Plus: Release 10.2.0.4.0 - Production on Wed Feb 15 00:55:02 2012
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> select max(t.file_id) from dba_extents t;
MAX(T.FILE_ID)
--------------
77
当前存在区分配的最大文件号是77
SQL> select * from v$dbfile t where t.file# = 78;
FILE# NAME
---------- --------------------
78 /dev/rlvindex_8g_001
SQL> var v_filestate number;
SQL> exec dbms_space.isdatafiledroppable_name('/dev/rlvindex_8g_001',:v_filestate)
PL/SQL procedure successfully completed.
SQL> exec dbms_output.put_line(:v_filestate)
0
// 78 号文件既无区分配,却被识别为不可删除。
PL/SQL procedure successfully completed.
SQL> select * from v$dbfile t where t.file# = 79;
FILE# NAME
---------- --------------------
79 /dev/rlvindex_8g_002
SQL> exec dbms_space.isdatafiledroppable_name('/dev/rlvindex_8g_002',:v_filestate)
PL/SQL procedure successfully completed.
SQL> exec dbms_output.put_line(:v_filestate)
1
// 79 号文件是一个可删除的范例。
PL/SQL procedure successfully completed.
我想知道78 为什么 是不可删除的?
[ 本帖最后由 武汉-SSH 于 2012-2-15 01:17 编辑 ] |
|