Results 1 to 5 of 5

Thread: Resizing the datafile of oracle database

  1. #1
    Join Date
    Jan 2010
    Posts
    56

    Resizing the datafile of oracle database

    Hi,
    I used the below command to create a datafile.

    SQL> create tablespace new datafile '/gxsdb/database/oradata4/RCA/RCA_REF_CFM_PROP_DATA.dbf' resize 1M;

    After this , I want to increase the size of the datafile again in order to use more space ? It was already altered for a while/period of time .How can I do this ? Any suggestion ?
    Can you introduce me to different ways to increase the size of datafile.

  2. #2
    Join Date
    Oct 2005
    Posts
    2,393

    Resizing the datafile of oracle database

    The storage of the contents of your database objects.In the logical way,we called it as tablespace and physically indicate it as a datafile.

    The collection of one or more datafile is called as a tablespace.If you are going to allocate more space to tablespace then definitely, you are resizing the datafile .

    There are three ways to increase the space of the a datafile :

    1. Resizing of datafile using RESIZE command
    2. Adding more datafile using ADD DATAFILE
    3. Using AUTOEXTEND command

  3. #3
    Join Date
    May 2008
    Posts
    2,389

    Resizing the datafile using RESIZE command

    Using RESIZE command :

    If you are using a database and you need more space to store some object in the tablespace, you have to increase the size of datafile.

    Here, I am going to elaborate the space adjustment using RESIZE command.

    Code:
    SQL> ALTER DATABASE DATAFILE '/u01/oracle/vikdb1/stuff01.dbf'
       RESIZE 100M;
    After using this command,your datafile has been the size of 100M.In this way,you can alter the size of your datafile later.

  4. #4
    Join Date
    Feb 2008
    Posts
    1,852

    Resizing the datafile using AUTOEXTEND

    Using AUTOEXTEND command:

    You can resize your datafile using AUTOEXTENTD command with the name of datafile.You can use it due to creation of database or after.You can use it with the create tablespace statement .

    With Create tablespace statement:

    SQL> CREATE TABLESPACE DATAFILE '/u01/oracle/db1/users03.dbf' SIZE 10M AUTOEXTEND ON;
    After creation :

    SQL> ALTER DATABASE DATAFILE '/u01/oracle/db1/users03.dbf'
    AUTOEXTEND ON;

  5. #5
    Join Date
    Jan 2008
    Posts
    1,521

    Resizing the datafile using Add datafile

    Using ADD DATAFILE command:

    You can use more than one datafile with one tablespace. In this case, we are going to associate another datafile with a tablespace.This would be done as follows :

    Code:
    SQL> ALTER TABLESPACE Mine 
            ADD DATAFILE '/u02/oracle/Moddb/Mine02.dbf' SIZE 20M;

Similar Threads

  1. Cursor in oracle database
    By Ainsley in forum Software Development
    Replies: 5
    Last Post: 11-02-2010, 06:24 PM
  2. Installing RAC with oracle database
    By Aileen_L in forum Software Development
    Replies: 4
    Last Post: 08-02-2010, 04:38 PM
  3. Managing oracle 9i Database
    By Landan in forum Software Development
    Replies: 3
    Last Post: 21-01-2010, 11:05 AM
  4. Connect to Oracle database using VB 6.0
    By Ariadne in forum Software Development
    Replies: 2
    Last Post: 19-01-2009, 06:09 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,717,512,921.24146 seconds with 16 queries