Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 21083

Oracle Database 11g Release 2. Please also tag oracle for search purposes.

2 votes

Why is the padding on months in Oracle 9 characters?

if you changed your nls_date_language variable would you also change the amount of padding? Yes, you would. http://sqlfiddle.com/#!4/007bd/49
David Aldridge's user avatar
0 votes

CONNECT BY using 3 tables(2 DIM and 1 FACT to get the Level and dependencies)

Hmmm, well that's unlike any fact table I've ever seen or used. This sort of complex line-by-line processing is best done during data load, and these relationships probably ought to be embedded in a …
David Aldridge's user avatar
1 vote

Why is a "non-single-group group function" allowed in a subselect but not on it's own?

I suspect that the query optimiser is applying a transformation to your first query that eliminates product_id from the inline view, then merging the inline view into the main query to that it execute …
David Aldridge's user avatar
7 votes
Accepted

How to retrieve disk spaces by removing tables from tablespaces in Oracle 10g?

You need to shrink the data files, which can be tricky. However, possibly the easier method to describe and implement is to create a new tablespace of approximately the right size, use ALTER TABLE to …
David Aldridge's user avatar
0 votes
Accepted

What's the most appropriate NLS_SORT parameter to cover all/most European languages?

WEST_EUROPEAN would seem to be the obvious choice, but there is no default that lets you avoid setting it on an individual language basis.
David Aldridge's user avatar
2 votes

Sudden increase in log_file_sync waits

Log file sync occurs when a commit is made and the redo buffer needs to be flushed to disk. The session has to wait for that to happen. An increase in the number of log file syncs generally means tha …
David Aldridge's user avatar
1 vote

How to keep an Oracle 11g instance lean?

The best check for memory allocations is the buffer advisories. These estimate the impact on caching effectiveness of modifying the cache sizes, so you know whether you have the sizes of the PGA and S …
David Aldridge's user avatar
1 vote

How would you track DB storage use and then extrapolate it?

You just need to start by collecting data. There are a few different valid ways of judging the size of the database -- number of rows in each table, size of table and index extents, size of data file …
David Aldridge's user avatar
5 votes

How make convincing case to DBA to use Oracle external tables for 500 MB to 5 GB files?

If your DBA's won't allow you to even explore the benefits in a proof of concept, time to move companies. External tables go back to version 10.1 at least, so they're not cutting edge technology. The …
David Aldridge's user avatar
1 vote

Shrinking the SYSTEM tablespace in Oracle

Query the DBA_EXTENTS view to see what objects are present towards the end of the data files. It is possible that they are not system objects, or are system objects which can be safely modified so tha …
David Aldridge's user avatar
2 votes

Example optimisic offline lock in SQL/PL?

Typically I think that systems would select the ora_rowscn value when they read the data, and when they write it back they would specify that value as part of the update statement. If no rows are upda …
David Aldridge's user avatar
1 vote

List partitioning or filtering a non-partitioned table, which incurs lower cost?

The performance benefits of partition pruning depend on the proportion of rows being selected from the table and the efficiency with which the rows can be isolated to their own partition(s). If you a …
David Aldridge's user avatar
1 vote
Accepted

Query to update one column based on the amount of another column

I wonder if finding the new value might be better with: update z_test_one a set a.bop = (select t.bop from z_test_one t where t.col_id = a.col_id orde …
David Aldridge's user avatar