上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 24 下一页
摘要: 查询历史连接主机信息 select distinct a.machine,a.program,a.module from dba_hist_active_sess_history a where a.SAMPLE_TIME BETWEEN TO_DATE('2019-06-04 12:00:00', 阅读全文
posted @ 2019-06-04 13:17 钱若梨花落 阅读(1194) 评论(0) 推荐(0) 编辑
摘要: --现象: 修改 SGA 参数 没有修改 sga_max_size 导致数据库启动失败; SQL>alter system set sga_target=270G scope=spfile; 启动数据库报错 ERROR at line 1:ORA-01565: error in identifyin 阅读全文
posted @ 2019-05-23 17:52 钱若梨花落 阅读(332) 评论(0) 推荐(0) 编辑
摘要: oracle 如何监控索引的使用状况?在开发应用程序时,可能会建立很多索引,那么这些索引的使用到底怎么样,是否有些索引一直都没有用到过,在这种情况下就需要对这些索引进行监控,以便确定它们的使用情况,并为是否可以清除它们给出依据。监控索引有两种方式:1、直接监控索引的使用情况(1)设置所要监控的索引: 阅读全文
posted @ 2019-05-20 10:10 钱若梨花落 阅读(2426) 评论(0) 推荐(0) 编辑
摘要: 数据库版本 11.2.0.4.0 --模式:DG 日志报错: Thu May 16 10:22:30 2019Exception [type: SIGSEGV, Address not mapped to object] [ADDR:0x4] [PC:0x968F76B, evaopn3()+135 阅读全文
posted @ 2019-05-16 11:00 钱若梨花落 阅读(614) 评论(0) 推荐(0) 编辑
摘要: https://www.askmaclean.com/archives/performance-tuning-oracle-awr.html 阅读全文
posted @ 2019-04-29 17:26 钱若梨花落 阅读(223) 评论(0) 推荐(0) 编辑
摘要: col BEGIN_INTERVAL_TIME for a25 \rcol END_INTERVAL_TIME for a25 \rcol instance_number for 99 \rset linesize 1000 pagesize 999 \rselect a.snap_id, a.sq 阅读全文
posted @ 2019-04-29 17:22 钱若梨花落 阅读(779) 评论(0) 推荐(0) 编辑
摘要: 1、抓出外键没有创建索引的表(不依赖统计信息)with cons as (select /*+ materialize */ owner,table_name,constraint_name from dba_constraints where owner='SCOTT' and constrain 阅读全文
posted @ 2019-04-28 10:41 钱若梨花落 阅读(378) 评论(0) 推荐(0) 编辑
摘要: SELECT /*+ rule */ a .table_owner, a.table_name, a.index_owner, a.index_name, column_name_list, column_name_list_dup, dup duplicate_indexes, i.uniquen 阅读全文
posted @ 2019-04-28 10:36 钱若梨花落 阅读(788) 评论(0) 推荐(0) 编辑
摘要: 史上最全近百条Oracle DBA日常维护SQL脚本指令 http://blog.itpub.net/30126024/viewspace-2057474/ 具体SQL如下 查询碎片程度高(实际使用率小于30%)的表 可以收缩的表条件为什么block>100,因为一些很小的表,只有几行数据实际大小很 阅读全文
posted @ 2019-04-26 11:32 钱若梨花落 阅读(943) 评论(0) 推荐(0) 编辑
摘要: select col.table_owner "table_owner", idx.table_name "table_name", col.index_owner "index_owner", idx.index_name "index_name", uniqueness "uniqueness" 阅读全文
posted @ 2019-04-24 17:30 钱若梨花落 阅读(2465) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 24 下一页