I am a new oracle dba. I am concerned that one of the files is getting low on space. Running oracle 8i on AIX. Does the file automatically extend or does it create a new file? I think I have to create a new file, just not sure.
Thanks;)
Printable View
I am a new oracle dba. I am concerned that one of the files is getting low on space. Running oracle 8i on AIX. Does the file automatically extend or does it create a new file? I think I have to create a new file, just not sure.
Thanks;)
Check how was it created, meaning, if autoextend is allowed for it.
Either way, I do prefer to control my tablespaces myself so I used (Ora8i) to create datafiles with autoextend set to OFF then add datafiles as needed.
If you want to learn, then you should write a query to join these views and figure out how much
free space you have in each tablespace. You should join the two tables with tablespace_name
and file_id. Now you can make the query work for what you are looking for. This is 11g, your
version of Oracle is different.
By the way if you are learning Oracle why start with a 10+ year old version of Oracle? :rolleyes:
Code:SQL> desc DBA_FREE_SPACE
Name Null? Type
----------------------------------------- -------- ----------------------------
TABLESPACE_NAME VARCHAR2(30)
FILE_ID NUMBER
BLOCK_ID NUMBER
BYTES NUMBER
BLOCKS NUMBER
RELATIVE_FNO NUMBER
SQL> desc dba_data_files
Name Null? Type
----------------------------------------- -------- ----------------------------
FILE_NAME VARCHAR2(513)
FILE_ID NUMBER
TABLESPACE_NAME VARCHAR2(30)
BYTES NUMBER
BLOCKS NUMBER
STATUS VARCHAR2(9)
RELATIVE_FNO NUMBER
AUTOEXTENSIBLE VARCHAR2(3)
MAXBYTES NUMBER
MAXBLOCKS NUMBER
INCREMENT_BY NUMBER
USER_BYTES NUMBER
USER_BLOCKS NUMBER
ONLINE_STATUS VARCHAR2(7)
The version of Oracle is what my employer is currently using. It is a small part of the business but I want to make sure it is successful. Thank you for your help everyone.