February 3, 2012 A couple of days ago I noticed an interesting thread on the comp.databases.oracle.server Usenet group that described a problem of vanishing tables. The title of the thread certainly caught my attention, and I was a bit disappointed that the there was little to no magic involved in the vanishing act. The situation reported in [...]![]()
For those of us acquainted with the philosophical works of Douglas Adams we know that the the answer to everything is 42.
mdw1123> select all knowledge from everything
2 /
KNOWLEDGE
----------
42
This above is a real SQL statement (version 11.2.0.3, just in case you wanted to know
).
January 24, 2012 (Modified January 25, 2012) As I read the “Troubleshooting Oracle Performance” book for the second time a couple of months ago, I made note on page 385 that it was possible to specify table columns in an index hint, rather than specifying specific index names (or just specifying the table name). This might be [...]![]()
If you alter table TEST drop partition Q1, does it go in the recycle bin?
That is the question I was asked today. “Of course it….” Pause. More pause.
No, I did not know. I knew I’d seen partitions in the recyclebin on Oracle but I thought there was no option to state PURGE when you dropped a partition.
So, a quick test was needed.
First I tried a drop of a partition I knew I could live without {NB this is on version 11.2.0.3, I am 99.8% sure this is the same on 10}
January 20, 2012 A request for assistance came in from an ERP mailing list. The original poster (OP) is running an unspecified version of Oracle Database 9i, and is in need of a solution to generate new part numbers with prefixed characters that describe the type of part, followed by a sequential number that is [...]![]()
January 16, 2012 I put together a test case to demonstrate how the physical reads autotrace statistic could exceed the consistent gets autotrace statistic if a single-pass or multi-pass workarea execution were performed during the execution of the SQL statement. If you are interested, you can see the test case in this recent OTN thread. [...]![]()
How many times have you heard someone say, “The rows always came back in the correct order, but since the *event* it’s now wrong. The *event* may be an upgrade or some maintenance task on the table etc.
Oracle clearly say,
“Use the
ORDER BYclause to order rows returned by the statement. Without anORDER BY clause, no guarantee exists that the same query executed more than once will retrieve rows in the same order.”
This also applies for the GROUP BY clause, that haunted people during their 10g upgrades.
“The
GROUP BYclause groups rows but does not guarantee the order of the result set. To order the groupings, use theORDER BYclause.”
Both these statements can be found in the docs for the SELECT statements.
January 1, 2012 (Back to the Previous Post in the Series) Nearly two years ago I posted the following execution plan in a blog article and asked whether or not there was anything strange about the %CPU column: -------------------------------------------------------------------------------------------------------------- | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | TQ [...]![]()
November 28, 2011 There are a few articles that can be found on the Internet that describe the cause of indexes with names similar to BIN$ld5VAtb88PngQAB/AQF8hg==$0 and BIN$PESygWW5R0WhbOaDugxqwQ==$0 appearing in execution plans. As is likely known by readers, the Oracle Database documentation describes that these object names are associated with the recycle bin that was introduced in Oracle Database [...]![]()
November 23, 2011 I previously wrote a couple of articles that mention reasons why an index might not be use for a particular query, including an article that was formatted as a True or False quiz with several reference articles. A few days ago I saw an OTN thread that caught my curiosity, where the [...]![]()
Recent comments
2 weeks 2 days ago
4 weeks 6 days ago
5 weeks 1 day ago
22 weeks 3 days ago
30 weeks 3 days ago
1 year 4 weeks ago
1 year 5 weeks ago
1 year 10 weeks ago
1 year 10 weeks ago
1 year 11 weeks ago