Oracle SQL Programming
This links to my blog posts and pages dealing with Oracle SQL programming. They include SQL programming solutions, concept examples, techniques, and user defined types. The blog pages show below the top-level page in the right hand column, while blog posts only show in the list below.
Creating specialized views ↓
These blog posts show you how to explore the Oracle database’s data dictionary.
Learn how you create a view of external files that are defined in an Oracle database.
Learn how you create a view of all schema tables and views that mimics a DESCRIBE
for all objects.
Learn how you create a view of all user defined collection data types.
Learn how to query the data dictionary to find key and reserved words.
Hierarchical queries ↓
These blog posts show you how to work with hierarchies or trees in the Oracle database.
SQL data loading patterns ↓
These blog posts show you how to work SQL*Loader, Oracle Data Pump, an external tables.
SQL joins, subqueries, statements, and normalization ↓
These blog posts show you how to work with SQL to solve problems in a database.
SQL language functions ↓
These blog posts show you how specific functions in an Oracle database.
SQL Large Objects (LOBs) ↓
These blog posts show you how to work with large objects in an Oracle database.
SQL operators ↓
These blog posts show you how to work specialized SQL operators in various databases.
SQL techniques ↓
These blog posts show you how to work with quirks or special characteristics of databases.
If you have suggestions of additional topics, let me know by posting a comment.
Is there a limit on the number of rows a query may return in Oracle? is 3,000,000,000 to many?
jbain
14 May 10 at 4:37 pm
I had these errors thrown for this entry
Brandon Hawkes
20 Sep 12 at 12:49 pm
Thanks for providing these useful topics. It makes searching topics regarding to SQL and Oracle much easier.
Thanks for that.
Oracle Datenbanken
4 Mar 13 at 4:18 am
Hi Mac,
I need suggestion for below query.
in this query the tables are very huge in production DB (Billons of records).also all columns used in where condition are indexed still its not getting tuned,i tried using using parallel hint but still cost in expaln plan was high,Need your valuable suggestion in below case.
DB VERSION :8i
swapnil
15 Apr 14 at 2:21 am
Swapnil,
Let’s make two assumptions – the tables contain the quantities of rows below and the “acc_id” column values are unique and indexed in the “a” table. Then, let’s assume the join result from table “a” and “b” is 1,000,000 rows, and you have 2,000,000 rows in the “pay” table and you have 3,000,000 rows in the “acc” table. You’ll process 1 x 106 rows times 2 x 106 rows plus 1 x 106 rows times 3 x 106 rows -> or 5 x 1012 rows. It sounds like you’re trying to do more rows than that. You should not be using correlation! You should be using something like this:
maclochlainn
15 Apr 14 at 3:26 pm
Hi Mac,
Thanks for last input ,in same context i got some weird issue regarding
INDEX
.i have query say
i have non-unique index on type column.
so its using
INDEX BY ROWID SCAN
in one of the environment.But when i moved to new environment
it had stopped using index .
then i changed query as :
its again used index by rowid scan.
so is that because of
IN
condition its not using any index.I tried rebuilding the index, gathering stats but didn’t work also
optimizer_mode
was inCHOOSE
.DB VERSIOIN:8I
Kindle let me know your valuable comments on this.
swapnil
24 Apr 14 at 5:33 am