I came across an interesting issue helping a customer with his database.
The main issue was to analyse why a tablespace has grown rapidly latelly.
But when starting to work, the server (Windows) was peeking at 90-100% cpu.
Bad Plan With Table Function
I am helping a customer, looking into an application that has performance issues.
Most of the issues seems to be related to IO.
UTLTZ_UPG_CHECK.SQL took 15 minutes to run
I have built a new server using linux and Oracle 19c, we have an old Windows server with 19c installed. We use use the Windows server for development and testing. Most of our customers are using windows but Linux is becoming more and more used, so we needed a Linux server to test on. I have cloned several pdbs from our Windows server to our Linux server, no issues there.
Continue readingORA-00932: inconsistent datatypes: expected – got BLOB
I was contacted by a developer that experienced ORA-00932: inconsistent datatypes: expected – got BLOB in a production system. This was seen after some changes of memory parameters and a reorg of the table. Continue reading
X$UNIFIED_AUDIT_TRAIL is slow
Looking at a production system I noticed that we every morning around 6am had a sql consuming cpu. From the sql it seemed to be related to auditing, it was executed from the CDB and the program is perl@. This seems to come from Grid Control. This is a Oracle 12.1 database and we are planing to upgrade to 12.2 before the end of 2018. This is a JDE system so we cannot go to 18c.
Select from sys.dba_audit_session consumes resources
Looking at a 11g production database I noticed the following picture. I also checked previous days and the pattern are the same.

All_source is slow
A customer is preparing to move an application from 11g to 12c. A key function in the application is to detect new tasks, I do not have the details how it works but the function is executed every minute. The sql listed below is part of that function. In 11g this sql is very fast, less than a second. In 12.2 it takes much longer I have seen from 17 to 46 seconds to run.
Enq TX for a long time.
I’m helping a customer that experienced a scenario where some functions in the application stopped responding. The situation was seen for 48 hours. It has also been seen pretty frequent in the past months.
When approaching the vendor of the application the response was that the session was not receiving data from the database which implied it was a database issue. A reference to a blog by Oracle is used to confirm it to be a database issue. Looking at the details and reading the blog I agree that the conclusion that the jdbc session is stuck waiting for data from the database, but the reason for not receiving data are not database related. I think it is clearly a design issue related to the application. Here are my analyze…
High buffer gets for small delete (updated)
I noticed a long running sql in one of our systems, looking at it I was puzzled that we had a huge amount of buffer gets for a small delete (~40000 rows). We had over 3 billion buffer gets. And it has been executed for more than 9 hours
Free Buffer Waits
I have been working on an application for some time now, the plan is to move it to Oracle 12c. We started with 12.1 but as soon as 12.2 was released we focused on using 12.2. We also applied the last bundle patch. This is a test system that uses the same data over and over so no new data are added.
A little background: The application has a job running every hour calculating prices, in 12.1 when I was first involved the execution time was around 90 minutes.
In 11.2 which is the current version each calculation took around 10 minutes.
My first steps was to revert all parameter changes used in 11g and basically starting with default values.