
I enjoy unhealthy food and databases
Hemel Hempstead, East
Joined April 2010
- Tweets3.6K
- Following255
- Followers418
- Likes1.2K
Oracle performance quiz for the long weekend. How would you make this fast: count unique clients with unpaid invoices, stop counting at 99, expect 1m unpaid invoices. Basic sql: select count(*) from (select distinct client_id from invoice where status='unpaid') where rownum<=99
There will be about 100m total invoices, I’ve put together a DB fiddle with mostly random data dbfiddle.uk/17Rg3YxC (ratios are slightly different to advertised but shouldn’t matter too much)
1
246
Has anyone on Windows been able to install 19.18 oracle home from a gold image? Our process has worked for every other patch but this time it’s complaining about not being able to restore cloned files. @myoraclesupport is waiting for other users to raise before treating as a bug
Oracle performance: It seems that enabling large pages prevents direct path reads, unless _serial_direct_read=always. Currently raising an SR but has anyone looked into this before? Already tried reducing _small_table_threshold
Andy Sayer retweeted
I don't open much Oracle SRs but when I need to do I get high blood pressure and a resting pulse of 150 during the first replies from support.
This is not healthy 🤒
If anyone wants to follow me on Mastodon, my handle is @SQL@mastodon.online (which probably suggests I’ve chosen a wrong server)
3
Dbms_optim_bundle doesn’t work for Windows since 19.11 as it writes commands via utl_file, this command gets too long in 19.11 (so many bug fixes to enable) and the code the pl/sql uses to determine the max line size is off by one as it assumes a one character line break
@MikeDietrichDE this bug is something you probably care about, unfortunately getting @myoraclesupport to understand the problem is a nightmare. Do you mind giving them a nudge SR 3-30731176251. @connor_mc_d has already tried but they asked me to fix the Oracle package myself 🤦♂️
If you are currently testing DRCP in 19c then check drcp_dedicated_opt. It was defaulted to YES (it’s NO in 21c where it was released). Sessions you’d expect to be freed to the pool are no longer freed (if you haven’t reached max pool size) until they hit inactivity_timeout
3
This could be interesting (if valid) dba.stackexchange.com/questi… adding comments adds 2 seconds to run time. I expect it will be a boring measurement error though
2
1
Andy Sayer retweeted
Session keynote: New and cool features for developers in Oracle database by @GeraldVenzl at #DOAG2022
Expected new features in @OracleDatabase 23c.
A thread. (1/17)
Raised an SR yesterday for an optimizer problem that gets hit with an EM metric query (Doc ID 2697438.1). Optimizer transforms IN (subquery) to inner join when it later groups by but doesn’t count the number of rows. I can’t see the transformation helping, only hurting
I have two jobs with thousands of failures, so this transformation gives me a result size of 2*1000s*1000s rather than 2*1000s. Adding a count(*) forces the optimizer to keep the semi join.
1
2
Andy Sayer retweeted
DG PDB : Oracle Data Guard for Pluggable Databases in 21c, and why you shouldn’t use it!
oracle-base.com/blog/2022/08…





