Oracle数据库管理员职责(四)
2008-09-20 12:55:16 来源:WEB开发网existext.sql
To check existing extents
This tells us how many of each object's extents differ in size from
the tablespace's default size. If this report shows a lot of different
sized extents, your free space is likely to become fragmented. If so,
this tablespace is a candidate for reorganizing.
12/15/98
SELECTsegment_name,segment_type
,count(*)asnr_exts
,sum(DECODE(dx.bytes,dt.next_extent,0,1))asnr_illsized_exts
,dt.tablespace_name,dt.next_extentasdflt_ext_size
FROMdba_tablespacesdt,dba_extentsdx
WHEREdt.tablespace_name=dx.tablespace_name
ANDdx.owner='&OWNER'
GROUPBYsegment_name,segment_type,dt.tablespace_name,dt.next_extent;
3. No_pk.sql
no_pk.sql
To find tables without PK constraint
11/2/98
SELECTtable_name
FROMall_tables
WHEREwner='&OWNER'
MINUS
SELECTtable_name
FROMall_constraints
WHEREwner='&&OWNER'
ANDconstraint_type='P';
4. disPK.sql
disPK.sql
To find out which primary keys are disabled
11/30/98
SELECTowner,constraint_name,table_name,status
FROMall_constraints
WHEREwner='&OWNER'ANDstatus='DISABLED’ANDconstraint_type='P';
- ››oracle 中 UPDATE nowait 的使用方法
- ››Oracle ORA-12560解决方法
- ››Oracle 10g RAC 常用维护命令
- ››Oracle如何在ASM中定位文件的分布
- ››Oracle的DBMS_RANDOM.STRING 的用法
- ››oracle 外部表导入时间日期类型数据,多字段导入
- ››Oracle中查找重复记录
- ››oracle修改用户登录密码
- ››Oracle创建删除用户、角色、表空间、导入导出等命...
- ››Oracle中登陆时报ORA-28000: the account is lock...
- ››Oracle数据库在配置文件中更改最大连接数
- ››Oracle中在pl/sql developer修改表的两种方式
更多精彩
赞助商链接