1、查看表空间的名称及大小 select t.tablespace_name, round(sum(bytes/(1024*1024)),0) ts_size from dba_tablespaces t, dba_data_files d where t.tablespace_name = d.tablespace_name group by t.tablespace_name;
Posts under ‘脚本’
SCRIPT: LATCH PERFORMANCE 判断什么latch才是问题所在
SCRIPT: LATCH PERFORMANCE 判断什么latch才是问题所在
xplan.sql
xplan.sql
常用脚本1
1、删除重复记录 delete from wr_recordformtable a where rowid!= (select max(rowid) from wr_recordformtable t where t.pid=a.pid and t.tablename=a.tablename ) 2、获得视图执行的时间,精确获得时间 create table test_view (viewname varchar2(32),d integer,cn integer); create or replace procedure ppp is cursor c1 is select object_name from user_objects o where o.object_type = ‘VIEW’ and o.status = ‘VALID’; sqlstr varchar2(1000); [...]
oracle 获得当前用户的权限
oracle 获得当前用户的权限
oracle 存储过程,导出sql到文本,动态sql,dbms_sql使用
oracle 存储过程,导出sql到文本,动态sql,dbms_sql使用
导出创建用户下各个对象数据结构的sql语句的脚本,包括表、视图、索引、约束等等
导出创建用户下各个对象数据结构的sql语句的脚本,包括表、视图、索引、约束等等