深入解析DBWR

dbwr进程,Database Writer Process ,理论上最大支持20个dbwr进程,默认是 1/8 cpu_count的设置。dbwr进程的作用的将buffer cache的脏块写出到disk上。 继续阅读

发表在 Oracle | 标签为 | 留下评论

深入解析ckpt

ckpt是checkpoint Process的简称,即检查点进程。 继续阅读

发表在 Oracle | 标签为 | 留下评论

深入解析LGWR

lgwr 为Log writer的简称,oracle核心进程之一的lgwr进程也是极为重要的一个进程,我们通常所接触的log file sync,log file parallel write都跟该进程有做紧密联系。

继续阅读

发表在 Oracle | 标签为 | 留下评论

深入解析smon

SMON是System Monitor Process的简称,是oracle非常核心的进程。
Smon 进程有哪些作用:

  • temporary space reclamation:Creates and manages the temporary tablespace metadata
  • data dictionary cleanup:Cleans up the data dictionary when it is in a transient and inconsistent state(obj$,ind$…)
  • undo tablespace management:Maintains the undo tablespace by onlining, offlining, and shrinking the undo segments based on undo space usage statistics
  • Recover Dead transaction
  • Instance Recovery,In an Oracle RAC database, the SMON process of one instance can perform instance recovery for other instances that have failed
  • Free Space COALESCE
  • Maintains the SCN to time mapping table used to support Oracle Flashback

继续阅读

发表在 Oracle | 标签为 | 留下评论

深入解析pmon

我们在平时处理故障时甚至进行优化时,必须了解一些进程的原理,否则很难定位到根本的原因。在Oracle实例的核心进程中,Pmon进程也是一个极为关键的进程之一,这里我们将逐步揭开pmon进程的神秘面纱!
Pmon是Process Monitor process的简称。 继续阅读

发表在 Oracle | 标签为 | 留下评论

oracle internal datatype

oracle内置数据类型有:

  • CHAR,VARCHAR2,NCHAR,NVARCHAR2
  • NUMBER
  • RAW
  • LONG,LONG RAW
  • DATE
  • TIMESTAMP
  • INTERVAL
  • CLOB,BLOB,NCLOB,BFILE
  • ROWID,UROWID

每列的数据类型并不存储在数据块中,而是存储在数据字典col$.type#。 继续阅读

发表在 Oracle | 标签为 | 留下评论

Query Transformation- Distinct Aggregate Transformation

GROUP BY操作是数据库中非常常见的语法,通常用于聚合函数的聚合操作。对于oracle最早的时候对于group by还是使用的Sort Group Aggregate,之后引入了一种对于大数据量group by较为高效的算法Hash Group Aggregate。

继续阅读

发表在 Oracle, Oralce performance | 标签为 , , | 留下评论

23ai新特性:Priority Transactions

从23ai开始,oracle通过事务优先级实现了一种自动回滚的事务机制。

继续阅读

发表在 Oracle | 标签为 , | 留下评论

troubleshooting remote node crash reboot when stop Clusterware

这是来到新公司支持的第二个case,第一个case忘记记录了,不能偷懒,以后还是要记录案例。

本案例来自一个12.1的rac环境,故障现象为当关闭某节点的gi时,远端节点的os会reboot。 继续阅读

发表在 Oracle, Oracle troubleshooting | 标签为 , , | 留下评论

用一条SQL给出扑克牌24点的计算表达式

近日,有幸参与了一次sql编程比赛,题目为用一条SQL给出扑克牌24点的计算表达式。

继续阅读

发表在 Oracle, Script | 标签为 , | 留下评论