Call now: 252-767-6166  
Oracle Training Oracle Support Development Oracle Apps

Free Oracle Tips

HTML Text

 Home
 E-mail Us
 Oracle Articles


 Oracle Training
 Oracle Tips

 Oracle Forum
 Class Catalog


 Remote DBA
 Oracle Tuning
 Emergency 911
 RAC Support
 Apps Support
 Analysis
 Design
 Implementation
 Oracle Support


 SQL Tuning
 Security

 Oracle UNIX
 Oracle Linux
 Monitoring
 Remote s
upport
 Remote plans
 Remote
services
 Application Server

 Applications
 Oracle Forms
 Oracle Portal
 App Upgrades
 SQL Server
 Oracle Concepts
 Software Support

 Remote S
upport  
 Development  

 Implementation


 Consulting Staff
 Consulting Prices
 Help Wanted!

 


 Oracle Posters
 Oracle Books

 Oracle Scripts
 Ion
 Excel-DB   


 

 

 


 

 

 

 

 

Oracle dbms_rowid

Oracle Tips by Burleson Consulting

 


Using Oracle dbms_rowid

Bigfile Tablespace Rowid Format

In a bigfile tablespace, there is only one file that always has a relative file number of 1024. A bigfile tablespace has a three-piece format, OOOOOOLLLLLLLLLRRR, in which

LLLLLLLLL is used to denote the block number. The concatenation of FFF and BBBBBB makes the encoded block number. For BFTs, the only supported way of getting components of extended rowids is to use the Oracle DBMS_ROWID package.

Here is an example on how to use the Oracle dbms_rowid package to retrieve rowid information:

select dbms_rowid. rowid_relative_fno(rowid, 'BIGFILE')
bigfile_rowid,
dbms_rowid. rowid_relative_fno(rowid, 'SMALLFILE')
smallfile_rowid,
first_name, last_name
FROM hr.employees
where rownum < 3;

BIGFILE_ROWID SMALLFILE_ROWID FIRST_NAME LAST_NAME

------------- --------------- -------------------- ---------

1024 4 Ellen Abel

1024 4 Sundar Ande


The rowid can be easily manipulated with the Oracle DBMS_ROWID package (.If, against Oracle admonitions not to, you used rowid in your Oracle7 application, you will have to familiarize yourself with this package..

Old rowids (called restricted rowids) will be automatically converted to the new format if:

You use export/import to move data.

You use the migration utility.

You use the ODMA to upgrade to 9i.

If you used rowids in your Oracle7 application and stored them as columns in other tables, then these columns will have to be manually changed to the new format using the Oracle DBMS_ROWID package. If a column in a table has been designated as a datatype of rowid, it will be altered to accept the new format during migration; this will not affect the data in the column.
 


 

 

  
 

 
 
 
 
Oracle performance tuning software
 
 

 

 
 
 
Oracle performance Tuning 10g reference poster
 
 
 
Oracle training in Linux commands
 
Oracle training Excel
 
Oracle training & performance tuning books
 

 

Burleson is the American Team

Note: This Oracle documentation was created as a support and Oracle training reference for use by our DBA performance tuning consulting professionals.  Feel free to ask questions on our Oracle forum.

Verify experience! Anyone considering using the services of an Oracle support expert should independently investigate their credentials and experience, and not rely on advertisements and self-proclaimed expertise. All legitimate Oracle experts publish their Oracle qualifications.

Errata?  Oracle technology is changing and we strive to update our BC Oracle support information.  If you find an error or have a suggestion for improving our content, we would appreciate your feedback.  Just  e-mail:  and include the URL for the page.


                    









Burleson Consulting

The Oracle of Database Support

Oracle Performance Tuning

Remote DBA Services


 

Copyright © 1996 -  2012 

All rights reserved.

Oracle © is the registered trademark of Oracle Corporation.