Solved

autoextend query

Posted on 2014-02-12
10
331 Views
Last Modified: 2014-02-18
is it possible to run a query to list autoextend settings for all tables spaces in an oracle database?
0
Comment
Question by:pma111
  • 4
  • 4
  • 2
10 Comments
 
LVL 77

Accepted Solution

by:
slightwv (䄆 Netminder) earned 250 total points
ID: 39853272
Yes.

Look at FILE_NAME, AUTOEXTENSIBLE and INCREMENT_BY in DBA_DATA_FILES.
0
 
LVL 3

Author Comment

by:pma111
ID: 39853284
is dba_data_files specific to tablespaces, or does it list information on other things above and beyond tables spaces. or is it a tidy view 1 row per tablespace?
0
 
LVL 77

Expert Comment

by:slightwv (䄆 Netminder)
ID: 39853300
Tablespaces do not autoextend.  Only data files do.

A tablespace can have one to many datafiles.

A datafile belongs to one and only one tablesapce.
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 3

Author Comment

by:pma111
ID: 39853302
is there also anywhere to see a list of all default oracle tablespaces that would be evident in every database?
0
 
LVL 3

Author Comment

by:pma111
ID: 39853306
in which case is there anywhere to tie up datafiles and tablespaces, to see which datafiles are in which tablespace?
0
 
LVL 77

Expert Comment

by:slightwv (䄆 Netminder)
ID: 39853328
>>is there also anywhere to see a list of all default oracle tablespaces

The only real 'DEFAULT' tablespace is SYSTEM and I'm not 100% sure you cannot rename that one when creating a database.  There are some  sort of standard ones in the templates but they are up to the DBA that creates them.

You can see ALL tablespaces in, guess which view?  DBA_TABLESPACES.

Oracle is pretty good about naming the views.

Three levels:  USER_, ALL_ and DBA_ then the object you are looking for.

Differences:  USER is objects the USER owns.  ALL, the objects the user has permission to see, DBA everything in the database.

Looking for say, INDEXES?  DBA_INDEXES.

>>to see which datafiles are in which tablespace?

dba_data_files also has a TABLESPACE_NAME.
0
 
LVL 23

Assisted Solution

by:David
David earned 250 total points
ID: 39853337
Depending upon the scripts used to install the database, there could be additional non-default tablespaces at creation time, but try:

select t.name, min(creation_time) creation
from v$datafile d, v$tablespace t where d.ts#=t.ts#
group by t.name
order by 2
/

Your results should resemble:

NAME                           CREATION
------------------------------ ---------
SYSTEM                         06-JUL-12
SYSAUX                         06-JUL-12
UNDOTBS1                       06-JUL-12
USERS                          06-JUL-12
RMAN                           06-JUL-12
0
 
LVL 77

Expert Comment

by:slightwv (䄆 Netminder)
ID: 39853341
>>v$datafile d, v$tablespace t

I suggest using the views based on the USER/ALL/DBA labels over the V$ views for static objects.  The V$ views can be confusing.
0
 
LVL 3

Author Comment

by:pma111
ID: 39853353
dvz, yes those are the ones listed...
0
 
LVL 23

Expert Comment

by:David
ID: 39853386
That particular question is answered, then.  Does that help or are we missing your intent?
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question