BC remote Oracle DBA - Call (800) 766-1884
Free Oracle Tips

Oracle Consulting Oracle Training Development
Oracle Training
SQL Tuning Consulting
Oracle Tuning Consulting
Data Warehouse Consulting
Oracle Project Management
Oracle Security Assessment
Unix Consulting
Burleson Books
Burleson Articles
Burleson Web Courses
Burleson Qualifications
Oracle Internals Magazine
Oracle Links
Oracle Monitoring
Remote Support Benefits
Remote Plans & Prices
Our Automation Strategy
What We Monitor
Oracle Apps Support
Print Our Brochure
Contact Us (e-mail)
Oracle Job Opportunities
Oracle Consulting Prices





   

 

 

 

 

 

Oracle Big File Tablespace Restrictions

Oracle Tips by Burleson Consulting

This is an excerpt from "Oracle 10g New Features for Administrators" by Ahmed Baraka.

• You use bigfile tablespaces along with a Logical Volume Manager (LVM) or the Automatic Storage Management (ASM) feature, which support striping and mirroring.

• Both parallel query execution and RMAN backup parallelization would be adversely impacted, if you used bigfile tablespaces without striping.

• You cannot change tablespace type from smallfile to bigfile or vice versa. However, you can migrate object between tablespace types by using either the ALTER TABLE ... MOVE or CREATE TABLE ... AS

• To avoid performance implications, use the following table as a guide to the maximum number of extents for a BFT with specific block size. If the expected size requires more extents than specified in the table, you can create the tablespace with UNIFORM option (instead of AUTOALLOCATE) with a large extend size.

Database
Block Size

Recommended Maximum
Number of Extents

2 KB

100,000

4 KB

200,000

8 KB

400,000

16 KB

800,000

Making Bigfile the Default Tablespace Type

Once you set the default type of your tablespace, all the tablespaces you subsequently create will be by default of the bigfile type:

CREATE DATABASE test
SET DEFAULT BIGFILE TABLESPACE ... ;
ALTER DATABASE SET DEFAULT BIGFILE TABLESPACE;

You can view the default tablespace type using the following command:

SELECT PROPERTY_VALUE
FROM DATABASE_PROPERTIES
WHERE PROPERTY_NAME='DEFAULT_TBS_TYPE'

Creating a Bigfile Tablespace Explicitly

CREATE BIGFILE TABLESPACE bigtbs
DATAFILE '/u01/oracle/data/bigtbs_01.dbf' SIZE 100G ...

When you use the BIGFILE clause, Oracle will automatically create a locally managed tablespace with automatic segment-space management (ASSM).

You can use the keyword SMALLFILE in replacement with BIGFILE clause.

Altering a Bigfile Tablespace’s Size

ALTER TABLESPACE bigtbs RESIZE 120G;
ALTER TABLESPACE bigtbs AUTOEXTEND ON NEXT 20G;

Viewing Bigfile Tablespace Information

All the following views have the new YES/NO column

BIGFILE:

o DBA_TABLESPACES
o USER_TABLESPACES
o V$TABLESPACE

For bigfile tablespaces, there is only a single file, with the relative file number always set to 1024.

The only supported way to extract the ROWID components is by using the DBMS_ROWID package.

You can specify the tablespace type by using the new parameter TS_TYPE_IN, which can take the values BIGFILE and SMALLFILE.

SELECT DISTINCT DBMS_ROWID.ROWID_RELATIVE_FNO
(rowid,'BIGFILE ') FROM test_rowid

Note: The functions DATA_BLOCK_ADDRESS_FILE and DATA_BLOCK_ADDRESS_BLOCK in the package DBMS_UTILITY do not return the expected results with BFTs.

Bigfile Tablespaces and DBVERIFY

You cannot run multiple instances of DBVERIFY utility in parallel against BFT. However, integrity-checking parallelism can be achieved with BFTs by starting multiple instances of DBVERIFY on parts of the single large file. In this case, you have to explicitly specify the starting and ending block addresses for each instance.

dbv FILE=BFile1 START=1 END=10000
dbv FILE=BFile1 START=10001

Viewing Tablespace Contents

You can obtain detailed information about the segments in each tablespace using Enterprise Manager.

On the Tablespaces page, select the tablespace of interest, choose Show Tablespace Contents from the Actions drop-down list, and click Go. The Processing: Show Tablespace Contents page is displayed.
 

If you like Oracle tuning, see the book "Oracle Tuning: The Definitive Reference", with 950 pages of tuning tips and scripts. 

You can buy it direct from the publisher for 30%-off and get instant access to the code depot of Oracle tuning scripts.


Download your Oracle scripts now:

www.oracle-script.com

The definitive Oracle Script collection for every Oracle professional DBA

 

 


 

Free Oracle dictionary reference poster

BC Oracle support

Oracle books by Rampant

Oracle monitoring software

North Carolina Oracle Users Group

 

 Arabian horse breeder

Seeing eye horses

 

 

BC Remote Oracle Support
P.O. Box 511 • Kittrell, NC, 27544

Copyright © 2007 by Burleson Enterprises, Inc. All rights reserved.

Hit Counter