GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  Oracle  >  Database Administration

 Print  |  
Question:  What is SYSTEM tablespace and when is it created



July 07, 2005 07:56:57 #2
 Jacob   Member Since: Visitor    Total Comments: N/A 

RE: What is SYSTEM tablespace and when is it created
 
SYSTEM TABLESPACE USAGE NOTES: 
 
 
Username - Name of the user  
Created - User creation date  
Profile - Name of resource profile assigned to the user  
Default Tablespace - Default tablespace for data objects  
Temporary Tablespace - Default tablespace for temporary objects  
 
Only SYS, SYSTEM and possibly DBSNMP should have their default tablespace set to SYSTEM.  
 
select USERNAME, 
CREATED, 
PROFILE, 
DEFAULT_TABLESPACE, 
TEMPORARY_TABLESPACE 
from dba_users 
order by USERNAME 
 
 
Objects in SYSTEM TS 
OBJECTS IN SYSTEM TABLESPACE NOTES: 
 
 
Owner - Owner of the object  
Object Name - Name of object  
Object Type - Type of object  
Tablespace - Tablespace name  
Size - Size (bytes) of object  
 
Any user (other than SYS, SYSTEM) should have their objects moved out of the SYSTEM tablespace  
 
select OWNER, 
SEGMENT_NAME, 
SEGMENT_TYPE, 
TABLESPACE_NAME, 
BYTES 
from dba_segments 
where TABLESPACE_NAME = 'SYSTEM' 
and OWNER not in ('SYS','SYSTEM') 
order by OWNER, SEGMENT_NAME
     

 

Back To Question