MainBlogContactRSS




Login    
Login
 
Recent Entries    
Next Projects
INITCAP this!
APEX 3.1 released ...
Exploiting the strange behavio ...
Where's my SQL?
Undocumented Packages for Back ...
Debugging an APEX application
Splitting strings
Where's the space gone?
The size of a (XE) database
1 2 3 4 5 6 
Search    
Search
 
Recent Articles    
Introduction to Regular Expres ...
Extracting SQL statements from ...
BBCode Parser
MODEL clause vs. old school SQ ...
IF NULL or how to match two va ...
Views    
Firefox1241
IExplorer1597
Linux108
Windows2888
Total Views49338
System    
BCHR 
CMS_TS (100MB) 
DB (XE) (5GB) 
PGA (256MB) 
Daily insights of a database application developer    
Where's my SQL? [2008.02.21] Bookmark (1.0.0.0)

I usually tend to ignore those urgent threads on OTN, but this one made me curious: URGENT:extracting a query from a procedure. Oracle does provide some sort of cross reference, dependencies, between PL/SQL code (packages, functions, etc.) and other objects, including tables and views, through the [dba|all|user]_dependencies view, yet displaying the complete SQL statement inside a package is left to scanning the [dba|all|user]_source view. After taking a look at that thread, I decided to see for myself, how difficult this problem is and wrote another small article: Extracting SQL statements from PL/SQL

Undocumented Packages for Backup & Restore [2008.01.22] Bookmark (1.0.0.0)

Finally overcoming my writing blockade, here's something I found recently.

During a discussion in the OTN XE Forum (which, unfortunately, requires additional authentification) in the thread ISV - Bundle Oracle XE install into Software Install I suggested to use a seed db for software installation as shown in the installation process of XE.

Since Oracle provides said installation procedure as shell scripts (both Windows and Linux), I took a peek at the script rmanRestoreDatafiles.sql in the directory /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/config/scripts. Seems like this installation process uses an internal package for recovering the necessary tablescripts instead of a RMAN call, as shown in the shell scripts backup.sh or restore.sh in the same directory.

The name of that installation script hints that DBMS_BACKUP_RESTORE is a wrapper for RMAN, however I couldn't find a chapter on this in the 10g2 documentation, only a few references, for example an error message. Anyway, according to that script DBMS_BACKUP_RESTORE has several procedures/functions with names that seem self explanatory:

deviceAllocate
restoreSetDataFile
restoreDataFileTo
restoreBackupPiece
deviceDeallocate

1 2 3 
Entries rendered in: 0.27 s




nobody