Andy Sayer (@AndrewSayer_) profile picture

I enjoy unhealthy food and databases

Hemel Hempstead, East
Joined April 2010
Photo by Andy Sayer (@AndrewSayer_)Photo by Andy Sayer (@AndrewSayer_)Photo by Andy Sayer (@AndrewSayer_)Photo by Andy Sayer (@AndrewSayer_)Photo by Andy Sayer (@AndrewSayer_)Photo by Andy Sayer (@AndrewSayer_)Photo by Andy Sayer (@AndrewSayer_)Photo by Andy Sayer (@AndrewSayer_)Photo by Andy Sayer (@AndrewSayer_)Photo by Andy Sayer (@AndrewSayer_)
Just spotted in the docs: Oracle 23c increases the maximum size of an inline lob to 8000 bytes
1
6
566
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
6
1
6
2,482
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
2
1
1
652
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
1
3
6
715
Might be prefetching, as it wants to fill up the cache. Possibly related to it also wanting to startup with Full DB Caching (even though it’s disabled and nowhere near enough memory)
1
2
253
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 🤒
11
8
1
80
7,750
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
2
3
4
@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 🤦‍♂️
3
1
9
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
Most annoying part is figuring out which drop down options to select when raising the SR
5
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)
12
38
12
113
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
1
2
5
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
Weirdly, a similar thing happens when you replace the semi join with an inner join to a distinct subquery - the distinct is removed in favour of the later group by.
1
2
DG PDB : Oracle Data Guard for Pluggable Databases in 21c, and why you shouldn’t use it! oracle-base.com/blog/2022/08…
4
8
1
29