18th January 2010
in
Structure
This script generates a spool file that can be run from a SQL*Plus session to list the differences between 2 tables with identical structure. This can be useful if 2 similar tables need to be compared across different[...]
Tags: Comparing Contents of Two Tables with Identical Structure
3 Comments
16th January 2010
in
Structure
I found an interesting script that I used sometime back to compare the structure of 2 tables. Thought I should preserve and blog it for the benefit of all.
— SCRIPT START —
Rem script name – compare_tab[...]
Tags: Compare table structure in oracle
2 Comments
2nd December 2009
in
Tablespace
Unlike normal tablespaces, true temporary tablespace information is not listed in DBA_FREE_SPACE. Instead use the V$TEMP_SPACE_HEADER view:
SELECT tablespace_name, SUM(bytes_used), SUM(bytes_free)
FROM V$temp_space_hea[...]
Tags: find free space in a TEMPORARY tablespace, free size temp tablespace, TEMPORARY tablespace, uf
No Comments
1st November 2009
in
Tablespace
Oracle is the worlds most flexible database and we have many methods for renaming tablespaces and the underlying data files.
Tablespace data file rename
We can use the alter tablespace rename datafile command, but t[...]
No Comments
29th October 2009
in
Tablespace
Here are some scripts related to Tablespace Information .
Information
TABLESPACE INFORMATION NOTES:
Tablespace Name – Name of the tablespace
Initial Extent – Default initial extent size
Next Extent – D[...]
No Comments
28th October 2009
in
Structure
Le principe des annulations est assez simple. En effet, lorsqu’on travaille dans sa session, nous allons créer des transactions (suite d’ordres DML considérée comme indivisible, pour maintenir les données consist[...]
Tags: Les annulations sur Oracle, UNDO management
No Comments
27th October 2009
in
Redo Logs
Ce petit script permet de savoir si nos redo log switchent trop souvent ou pas assez.
Si ils switchent trop souvent alors cela peut engendrer des problèmes d’I/O, engendrer du redo-log contention.
Si ils ne switchent [...]
Tags: Mesure redo-log
No Comments
28th September 2009
in
Redo Logs
One of the best ways I have found to resize or recreate online redo log files and keep the current sequence is to perform it online. In this example, we will resize all online redo logs from 100MB to 250MB while the [...]
Tags: Recreating Online Redo Log, Redo Log, Resizing
No Comments