-
Recent Posts
Recent Comments
- yangtingkun on 非空字段空值对查询的影响
- Eric Zong on 非空字段空值对查询的影响
- Kamus on Oracle Ace Director
- 设置全局死锁优先级 | yangtingkun on RAC全局死锁检测时间
- ORA-600(krbounotread_noctx)错误 | yangtingkun on ORA-600(krboReadBitmap_badbitmap)错误
Archives
- December 2020
- February 2019
- December 2018
- November 2018
- October 2018
- July 2018
- June 2018
- May 2018
- July 2016
- July 2013
- June 2013
- November 2012
- October 2012
- September 2012
- August 2012
- July 2012
- June 2012
- May 2012
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
Categories
Meta
Tag Archives: tablespace
获取表空间是否可自动扩展的SQL
好长时间没写SQL了,今天看到同事在使用一个检查表空间是否可自动扩展的SQL,不但效率不高,而且非常的累赘,忍不住自己写了一个。 原始SQL如下: SQL> SELECT DISTINCT tablespace_name, autoextensible 2 FROM DBA_DATA_FILES 3 WHERE autoextensible = ‘YES’ 4 UNION 5 SELECT DISTINCT tablespace_name, autoextensible 6 FROM DBA_DATA_FILES 7 WHERE autoextensible = ‘NO’ 8 AND tablespace_name NOT IN 9 (SELECT DISTINCT tablespace_name 10 … Continue reading