GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Oracle  >  Concepts and Architecture
Go To First  |  Previous Question  |  Next Question 
 Concepts and Architecture  |  Question 45 of 74    Print  

What are the Characteristics of Data Files ?

A data file can be associated with only one database. Once created a data file can't change size.

One or more data files form a logical unit of database storage called a tablespace.




  
Total Answers and Comments: 10 Last Update: May 21, 2008   
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: manish hoiyani
 

1>

datafiles comes under the physical structure of the database.

2>

It is used to store the actual data.. each  datafile can be associated with one tablespace only.. two datafiles cannot belong to different tablespace.. but two datafiles can belong to same tablespace.

3>

we cannot change the system datafiles assocaited with system tablespace.. but we can change the user datafiles associated with users tablespaces,

4>

we can resize the datafile,, we can add new datafile to the same tablespace, so whenever database runs lack of space,, either we can change the datafile size or we can add new datafile to the same tablespace..



Above answer was rated as good by the following members:
md khan
September 06, 2005 11:09:48   #1  
Girish        

RE: What are the Characteristics of Data Files ?
We can change the size of the datafile.
 
Is this answer useful? Yes | NoAnswer is useful 0   Answer is not useful 1Overall Rating: -1    
December 27, 2005 04:21:01   #2  
Deepika S. Verma        

RE: What are the Characteristics of Data Files ...
We cannot change datafile size if you are running short of storing space in database then alter the tablespace and add one more datafile in tablespace
 
Is this answer useful? Yes | No
December 28, 2005 07:24:24   #3  
       

RE: What are the Characteristics of Data Files ...

A data file is created when a 'create tablespace' or 'alter tablespace' command is executed. Creating a data file of size 10MB actually allocates 10MB space on the hard disk.

If a tablespace is declared to contain 100 data files one slot per data file is reserved in the control file.

There are four types of data files -- system data files application (or user) data files temporary data files (used by oracle to store temp data while executing complex SQL statements) and rollback data files.

It is possible to resize a datafile. The command which will serve this purpose is


 
Is this answer useful? Yes | No
April 05, 2006 22:30:01   #4  
manu        

RE: What are the Characteristics of Data Files ...

A data file stores data in binary pattern. Even database stored physically in datafile.. we could not access datafile directly to access record.it is maintained ny operation system.


 
Is this answer useful? Yes | No
April 20, 2006 02:38:35   #5  
Suraj Sharma        

RE: What are the Characteristics of Data Files ...

The data physically stored in the datafile. We can associate one or more datafile for a single tablespace but can not assign one datafile to multiple tablespaces. Datafiles only contains the committed data but sometimes uncommitted as well. we can increase the size of the datafile but can not shrink below the High Water Mark. Datafiles can be taken offline read only & begin backup stage.


 
Is this answer useful? Yes | No
September 14, 2006 05:29:06   #6  
manish hoiyani        

RE: What are the Characteristics of Data Files ...

1>

datafiles comes under the physical structure of the database.

2>

It is used to store the actual data.. each datafile can be associated with one tablespace only.. two datafiles cannot belong to different tablespace.. but two datafiles can belong to same tablespace.

3>

we cannot change the system datafiles assocaited with system tablespace.. but we can change the user datafiles associated with users tablespaces

4>

we can resize the datafile we can add new datafile to the same tablespace so whenever database runs lack of space either we can change the datafile size or we can add new datafile to the same tablespace..


 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
January 21, 2007 07:39:45   #7  
adhiraj007 Member Since: January 2007   Contribution: 1    

RE: What are the Characteristics of Data Files ...
how we can changr the size of datafile please define a procedure in detail
 
Is this answer useful? Yes | No
January 23, 2007 17:13:30   #8  
Vimal        

RE: What are the Characteristics of Data Files ...
THE SYNTAX TO RESIZE A DATAFILE IS: Alter Database Datafile 'datafilen_name.dbf' resize 1024M
 
Is this answer useful? Yes | No
April 24, 2008 13:18:59   #9  
irfanyell Member Since: April 2008   Contribution: 4    

RE: What are the Characteristics of Data Files ?
Data file is a physical storage of the database. its created when database is created or tablespace is created. you can not change the size of the datafile. but you can resize it from lower size to higher size. you can resize it from higher size to lower size ONLY WHEN YOUR DATAFILE IS EMPTY. command is alter database datafile '....path...' resize size;
 
Is this answer useful? Yes | No
May 21, 2008 00:16:00   #10  
satyam_Ora Member Since: July 2007   Contribution: 29    

RE: What are the Characteristics of Data Files ?
Oracle architecture:
Database->Tablespace->Datafiles
Data base is a set of data where data are stored in form of Relational model.
Tablespace: tablespace is the logical division of Databse. Each database has atleast one tablespace.i.e SYSETEM tablespace. A tablespace belong to only one database.

Datafiles: Datafile is the physical storage of data which associated with tablespace.
One datafile must belong to one tablespace. one tablespace can have multiple datafile. Every datafile belongs to one and only tablespace.

Note: From Oracle 7.2 datafile can be resized after creation.

We can create datafile and alter the existing datafile so that it automatically increase its size when more space is neede in database. the datfile size increases in specified increments up to specified maximum.

We can check whether the datfile is autoextensiable.
Check in view DBA_DATA_FILES and check AUTOEXTEND ON clause.
sql> select * from DBA_DATA_FILES:

Increae the size of datafile by adding new datafile with tablespace:
sql> alter tablespace SYSTEM add datafile <datafilename> size 10m
autoextend on
next 512 k
maxsize 250m

We can crease or decrease the size of existing datafile:
sql> alter database datafile <datafile_name> resize 100m;

datafile_name: '/u02/oracle/rbdb1/stuff01.dbf'

Thanks


 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape