Find the space in the special column value
select a.name,a.group_name,a.length1,b.length1 from (select name,group_name,length(group_name) length1 from fds_map order by name) a, (select name,group_name,length(trim(group_name)) length1 fro...
Base on SID find the trace file
今日系统要升级,需要对所有的应用程序,进行TRACE 。在应用系统里面有个里面有个程序CONTROL table :proc_control , 记录每个程序的SID,SERIAL#,可以方便的多特定的程序进行TRACE , 这个在应用设计的过程中可以学习...
一个比较全面的计算表空间的脚本
select tablespace_name, sum(freesize) "FREE SIZE(M)", sum(extentleft) "EXTENTS LEFT" from(select file_id, a.tablespace_name tablespace_name, floor((maxbytes-bytes)/next_extent) extentleft, floor((...