05 2019 档案

摘要:select ss.instance_number node, begin_interval_time, sql_id, plan_hash_value, nvl(executions_delta, 0) exe_num, --执行次数trunc(elapsed_time_delta / 10000 阅读全文
posted @ 2019-05-27 17:33 Ayumie 阅读(909) 评论(0) 推荐(0) 编辑
摘要:v$sqltext中有内存中完整的sql语句(SQL被分割为多行存储),而其他两个视图都是部分sql语句。但v$sqltext中存储的比较简单,没有该语句的统计信息,比如执行次数等。 v$sqltext 的字段如下: ADDRESS RAW(4 | 8) Used with HASH_VALUE t 阅读全文
posted @ 2019-05-23 10:37 Ayumie 阅读(4858) 评论(0) 推荐(0) 编辑
摘要:一、oracle 移动分区表到指定表空间,及修改表的默认表空间 1、修改分区表的默认表空间:select 'alter table '||table_name||' modify default attributes tablespace TSDAT01' from dba_tables where 阅读全文
posted @ 2019-05-23 10:11 Ayumie 阅读(9039) 评论(0) 推荐(1) 编辑
摘要:SELECT SUM(bytes) / (1024 * 1024*1024) AS free_space, tablespace_name FROM dba_free_space GROUP BY tablespace_name; SELECT a.tablespace_name, a.bytes/ 阅读全文
posted @ 2019-05-23 10:04 Ayumie 阅读(275) 评论(0) 推荐(0) 编辑
摘要:--表 select 'ALTER TABLE '||owner||'.'||table_name||' MOVE TABLESPACE '||tablespace_name||' STORAGE(INITIAL 64K NEXT 32K);' from dba_tables where owner='TEST' and initial_extent>65536; --索引 ... 阅读全文
posted @ 2019-05-08 17:25 Ayumie 阅读(1660) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示