
oracle
weixin_40410849
这个作者很懒,什么都没留下…
展开
-
sql tuning advisor显示效果
plsql developer显示效果: 按sqladvisor代码的改写的显示效果: 显示成原始查询的显示效果:原创 2020-04-26 13:34:56 · 176 阅读 · 0 评论 -
在线修改错了log_archive_config后primary无法归档到DG
把log_archive_config参数修改成其它库的了(多窗口操作太危险啦!!!!!!!!!!),改回来后alter日志没保错,查看等待事件,发现一个“LNS ASYNC end of log”的等待事件的进程,目测是LNS相关的。查询spid,发现是ora_tt00_*的进程,查询v$process定位相关trace,发现有报错: ASYNC ignored current log: KC...原创 2018-03-24 17:21:01 · 806 阅读 · 0 评论 -
oracle升级监控脚本
–DB CPU/time with t as (select max(t.snap_id) over() max_snap_id, t.snap_id, t.stat_name, ((max(value) over(partition by t.stat_name order by t.snap_id ...原创 2018-04-07 15:57:32 · 271 阅读 · 0 评论 -
oracle主机产生大量defunct进程
=====DB update==== 1)我为您贴的内容来自03:00:32的ps输出,这些非数据库进程在第一时间和数据库进程一起同时处于defunct状态, 而非先是数据库进程产生defunct,然后才有其他defunct进程。 filename=cnsz081498_ps_18.03.19.0300.dat zzz ***Mon Mar 19 03:00:32 CST 2018...原创 2018-03-21 17:12:05 · 1345 阅读 · 0 评论 -
Monitoring Open and Cached Cursors
http://www.orafaq.com/node/758 Open cursors Open cursors take up space in the shared pool, in the library cache. To keep a renegade session from filling up the library cache, or clogging the CPU wit...转载 2018-04-17 12:44:44 · 294 阅读 · 0 评论 -
oracle监控语句
top sql: select round(100 * a.pct, 2) pct, round(a.elapsed_time/1000000, 2) elapsed_time, round(a.elapsed_time/a.executions/1000) ms_by_exec, round(a.cpu_time/1000000, 2) cp...原创 2018-05-22 10:41:02 · 818 阅读 · 0 评论 -
查询SYS.V_$RMAN_STATUS很慢
select * from SYS.V_$RMAN_STATUS很久不出结果加hint/+rule/解决 SELECT/*+rule*/ OBJECT_TYPE BACKUP_TYPE, (SYSDATE - MAX(END_TIME)) DAYS_SINCE_BACKUP, MAX(END_TIME) LAST_SUCCESSFUL_BACKUP FROM...原创 2018-05-22 12:51:46 · 514 阅读 · 0 评论 -
编译失效对象
begin dbms_utility.validate(object_id); end; / dbms_utility.compile_schema();原创 2018-03-30 03:45:46 · 336 阅读 · 0 评论 -
lob转varchar2
dbms_lob.substr(clobcolumn,4000);原创 2018-03-13 16:15:49 · 502 阅读 · 0 评论 -
Oracle 12c new feature: Unified Audit
RDBMS Server Unified Audit is a major architectural change: fast, easy, and impossible for the DBA to bypass. On upgrade to Oracle 12c, you really should enable it. The earlier method that we all use...转载 2018-03-09 15:00:35 · 694 阅读 · 0 评论 -
SQL Plan Management (2)
在之前的Blog 里了解了Oracle 11g SQL Plan Management的理论,这篇Blog来演示一些具体的操作示例。Oracle 11g 新特性 --SQL Plan Management 说明http://blog.youkuaiyun.com/tianlesoftware/article/details/8292410 官网说明:Using SQL Plan Management转载 2017-09-27 14:16:45 · 492 阅读 · 0 评论 -
记一次DG异常
远程DG库报错,数据库无法mount: ORA-00600: internal errorcode, arguments: [25010], [69], [1024], [131070], [], [], [], [] 数据库版本:10.2.0.5.6 平台:SunOS 查看mos发现有如下bug Bug 5493247 - ORA-600 [25010] during med原创 2017-10-19 14:35:36 · 377 阅读 · 0 评论 -
通过监听文件日志统计连接情况的perl脚本
#!/usr/bin/perl my $timestamp; my $file_name; my $listHost=false; if ($#ARGV 4){ print "Usage: -t 'time rexge' [-h] filename\n" }else{ while ($ARGV = shift) { if ($ARGV =~ m/-t/i) { $timestamp原创 2017-10-19 15:00:20 · 506 阅读 · 0 评论 -
oracle常用SQL整理
1.查询AWR报告:select s.snap_id, s.dbid, s.instance_number, to_char(s.end_interval_time, 'yyyy-mm-dd hh24:mi:ss') cdate from dba_hist_snapshot s order by snap_id desc; select dbms...原创 2017-09-27 14:42:21 · 649 阅读 · 0 评论 -
oracle数据库通过回滚点方式做重大版本部署回退方案
打回滚点: 3 生产环境 检查FRA参数设置是否正确 show parameter db_recovery_file_dest(手册中写出具体值) db_recovery_file_dest string /paic/hq/$ORACLE_HOME/log/$ORACLE_HOME db_recovery_file_原创 2017-10-25 15:49:30 · 3642 阅读 · 0 评论 -
DG库mrp进程并发超过系统上限无法起来
环境:SunOS 5.11 数据库:12.1.0.2.170117 同一台主机上有7个实例,有个实例mrp进程起不来,报错如下,其它实例正常,异常实例同城容灾环境DG库正常 Additional information: 3 Sun Oct 22 13:46:53 2017 Recovery Slave PR08 died Sun Oct 22 13:46:53 2017 M原创 2017-10-23 16:13:38 · 1019 阅读 · 0 评论 -
静默安装RAC RDBMS(11.2.0.4)
1.建立相应目录 # mkdir -p /u01/app/oracle # chown -R oracle:oinstall /u01/app/oracle # chmod -R 775 /u01/app/oracle # mkdir -p /u01/app/oracle/product/11.2.0.4/db_1 # chown -R oracle:oi原创 2017-10-25 16:26:44 · 334 阅读 · 0 评论 -
GI clone
1. RAC GI CLONE条件: No Grid Naming Service (GNS) No Intelligent Platform Management Interface specification (IPMI) Voting disk and Oracle Cluster Registry (OCR) are stored in Oracle Automatic Storag原创 2017-10-25 16:29:33 · 340 阅读 · 0 评论 -
RDBMS CLONE
1.tar 种子软件: ****************************************************************************************************** root用户: cd $ORACLE_HOME/.. tar -zcvf 11.2.0.4.5_rdbms_clone_source01.tar 11.2.0.4原创 2017-10-25 16:31:18 · 225 阅读 · 0 评论 -
SQL Plan Management (1)
一.概述 SQL 语句的SQL 执行计划发生更改时,可能存在性能风险。 SQL 计划发生更改的原因有很多,如优化程序版本、优化程序统计信息、优化程序参数、方案定义、系统设计和SQL 概要文件创建等。 在以前版本的Oracle DB 中引入了各种计划控制技术(如存储的大纲(storedoutline(9i))和SQL 概要文件等(SQLprofile(10g))),用于解决计划更改转载 2017-09-27 13:38:59 · 234 阅读 · 0 评论