Category: Database

Oracle function to calculate wait event correlation

Cool little function to provide statistical correlation between two events. This helped us to identify performance drivers in our database. Statistically, anything above 60 is considered “statistically significant”, or correlated. If one goes up, so does the other. create or…

Control file writes when updating???

I had never seen this before, but while testing a migration strategy for a large table with XMLTYPE’s, almost half our wait time was spent on control file sequential read and control file parallel write waits. Each of these occurred…

Oracle regular expressions

A recent question on CDOS was regarding how to have only one space at the end of a CSV output row. Below was my response… SQL> create table t1110(c varchar2(10)) 2 / Table created. SQL> insert into t1110 values(‘1’) 2…