摘要:
1.创建表,分区表,大对象字段,分别查询出它们是否为段对象,给出SQL演示的整个过程。SQL> create table tt1 as select * from dba_objects where object_id<1000;Table created.SQL> create table tt2(id number(10), object_type varchar2(40)) partition by list(object_type) (partition p_table values('TABLE'), partition p_others value 阅读全文
摘要:
1.查看一个表空间,有多少个extents,多少blocks,多少空余空间。select a.tablespace_name, sumblocks, nvl(usedextents, 0) usedextents,nvl(usedblocks, 0) usedblocks, freeblocks,nvl(usedblocks,0) + nvl(freeblocks,0)checkblocks,sumblocks-nvl(usedblocks, 0)-nvl(freeblocks,0) minblocksfrom (select tablespace_name, sum(blocks) sumb 阅读全文