ADD DATAFILE in ASM

Hello
How can I add a datafile in a RAC database with ASM?
The filename are create by ASM are like this
'+DATA/csoprd1a/datafile/aalarge.615.594210853'
where aalarge.615.594210853' is generated by ASM
thanks

Hello Daljit,
I already have this file, and I want to add another one and yes, I'm confused with the numbers, because , they are generated by ASM, so how can I do?
There is an Instance ASM, is there that I must add the datafile?
Regards
Carlos

Similar Messages

  • How to add datafile in asm

    Hi,
    Can anybody let me know how to add datafile using ASM
    DB- ORACLE 10.2
    OS-RHEL

    SQL> select name from v$asm_diskgroup;
    NAME
    DATA1
    DATA
    Above we are having two asm diskgorup
    SQL> alter tablespace users add datafile ‘+data1′ size 5M;
    Tablespace altered.
    SQL> select name from v$datafile;
    NAME
    +DATA1/nonasmtoasm/datafile/system.259.721108803
    +DATA1/nonasmtoasm/datafile/undotbs1.261.721108865
    +DATA1/nonasmtoasm/datafile/sysaux.260.721108841
    +DATA1/nonasmtoasm/datafile/users.262.721108873
    +DATA1/nonasmtoasm/datafile/users.269.721187971                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Adding datafile to ASM file system tablespace

    Hi
    Can some one plz help in writing a script to add a datafile to the system tablespace on ASM filesystems.
    below is the result of the query ..
    select file_name, bytes, autoextensible, maxbytes from dba_data_files where tablespace_name='SYSTEM';
    FILE_NAME BYTES AUT MAXBYTES
    +DATA1/cir_p/datafile/system.260.6037360 5892997120 NO 0
    Thanks

    790072 wrote:
    Hi
    Can some one plz help in writing a script to add a datafile to the system tablespace on ASM filesystems.
    below is the result of the query ..
    select file_name, bytes, autoextensible, maxbytes from dba_data_files where tablespace_name='SYSTEM';
    FILE_NAME BYTES AUT MAXBYTES
    +DATA1/cir_p/datafile/system.260.6037360 5892997120 NO 0
    Thanks
    You can use
    ALTER TABLESPACE "SYSTEM" ADD DATAFILE '+DATA1' SIZE 1024M
    Cheers

  • Why asm startwith with + sign? what happen add file in asm tablespace without using + sign,please explain with error no.

    Hi folks,
    I have one query why asm startwith with + sign? what happen add datafile file in table space,or add disk in disk group  without using + sign ,please explain with error no.

    hello,
    + sign is to indicate the diskgroup you intended to place datafile. this apply to all database files.
    without + sign,will be place in ORACLE_HOME/dbs directory. there will be NO error.
    see example here: without using +
    SQL> create tablespace test45 datafile 'temdg' size 10m;
    Tablespace created.
    SQL> select name from v$datafile;
    NAME
    /u01/app/oracle/product/11.2.0/dbhome_1/dbs/temdg
    7 rows selected.
    second example: with using + sign to specify diskgroup
    SQL> create tablespace test55 datafile '+temdg' size 10m;
    Tablespace created.
    SQL> select name from v$datafile;
    NAME
    /u01/app/oracle/product/11.2.0/dbhome_1/dbs/temdg
    +TEMDG/orcl/datafile/test55.261.844200359
    8 rows selected.
    HTH
    Tobi
    Tobi's Oracle DBA & UNIX Blog

  • Alter tablespace add datafile taking too much time

    Hi All,
    DB Version :10.2.0.1
    OS Version: Windows Server 2003 32 Bit
    When i am trying to add datafile into tablespace it takes lot of time approx 8 hours.but earlier it take approx 40 to 60 mins
    When i check Alert log file i got the message:
    ORA-604 signalled during: alter tablespace crbt add datafile
    I check there is sufficent space in Disk as i need to add Datafile of 30G.
    Syntax i am using is
    ALTER TABLESPACE TEST
    ADD DATAFILE 'C:\TEST02.DBF' SIZE 30G
    Can anyone tell me exactly the reason for the same
    Thanks in advance

    Hi Aman,
    The space is added sometime but most of the time i am getting this error
    SQL> ALTER TABLESPACE IN_OCT2011
    2 ADD DATAFILE 'E:\CAT\IN_OCT04.DBF' SIZE 30G REUSE;
    ALTER TABLESPACE IN_OCT2011
    ERROR at line 1:
    ORA-19502: write error on file "E:\CAT\IN_OCT04.DBF", blockno 11008
    (blocksize=8192)
    ORA-27072: File I/O error
    OSD-04008: WriteFile() failure, unable to write to file
    O/S-Error: (OS 33) The process cannot access the file because another process
    has locked a portion of the file.
    Kindly help over the same
    Edited by: Vikas Kohli on Nov 5, 2011 8:38 PM

  • Add datafile in a network drive

    Hi,
    I mapped in my NT machine a network disk, but when I try to create a datafile there, the next error message appear.
    ALTER TABLESPACE CRM_DATA ADD DATAFILE 'h:\database\crm\dbs\CRM_TAB_5.DBF' SIZE 6000M
    ORA-01119: error in creating database file 'h:\database\crm\dbs\CRM_TAB_5.DBF'
    ORA-27040: skgfrcre: create error, unable to create file OSD-04002: unable to open file
    O/S-Error: (OS 5) Access is denied.
    Somebody know if I need to do something before for Oracle identified this network drive like a other local disk? Can I create datafiles in a network disk?
    Thanks.
    null

    The architecture of Windows is due to this problem. Keep in mind that YOU do have this share available but the Oracle process has not. You yourself are the connecting user of the share and this share is availbale to you and not to the Oracle process. Oracle itselfs runs in the background (and not on your console) with another user (default Windows internal user: SYSTEM) and you cannot get this share available for this user. The previous reply (run the Oracle service using another DOMAIN user) will help.

  • Best Practices To Size the Datafile on ASM in Oracle 11gR2

    Hi DBAs,
    I need to know that what should be the datafile next extent on ASM. I have created a database 11gR2 with ASM. Now some certified DBA told me to create the datafile as small as possible and make it auto extend with the next extent size 1M. The expected data growth every month is about 20-25 Gig.
    Please let me know what are the best practices while for sizing the datafiles and extents in 11g using ASM. Any good document/note refer would be great help.
    Thanks
    -Samar-

    Hi Samar,
    I need to know that what should be the datafile next extent on ASM. I have created a database 11gR2 with ASM. >Now some certified DBA told me to create the datafile as small as possible and make it auto extend with the next >extent size 1M. The expected data growth every month is about 20-25 Gig.
    Please let me know what are the best practices while for sizing the datafiles and extents in 11g using ASM. Any >good document/note refer would be great help.I don't think there is any kind of recomendations for that, at least, I've never seen. As You probably know, ASM already divides the ASM files (any sort of files written in a ASM diskgroup) in extents and those extents are composed of AU. So, doesn't matter the datafile size, ASM will balace the I/O on all ASM disks in a diskgroup.
    I guess this thread ( AU_SIZE and Variable Extent Size ), even not being the subject of Your question, Will help You.
    I do believe there are more important factors for ASM performance, like stripe size, LUN size, storage configuration, etc.
    Hope it helps,
    Cerreia

  • Error: add datafile to an tablespace

    I have a 10g database in Sun machine.
    I issued the following command and got this error. What the problem:
    SQL> l
    1 alter TABLESPACE "TEST" add DATAFILE
    2 '/local/ORACLE/product/10.2.0/oradata/orcl/test_02.dbf' SIZE 10m
    3* EXTENT MANAGEMENT LOCAL UNIFORM SIZE 40960 SEGMENT SPACE MANAGEMENT AUTO
    SQL> /
    EXTENT MANAGEMENT LOCAL UNIFORM SIZE 40960 SEGMENT SPACE MANAGEMENT AUTO
    ERROR at line 3:
    ORA-00933: SQL command not properly ended
    However, if I issue the following commanc, it went through
    1 alter TABLESPACE "TEST" add DATAFILE
    2* '/local/ORACLE/product/10.2.0/oradata/orcl/test_02.dbf' SIZE 10m
    SQL> /
    SQL>
    Any help will be appraciated!

    I believe that is the syntax for add datafile nothing else can be done other than this.
    ADD TEMPFILE 'filespec' SIZE int K
    [ AUTOEXTEND ON [NEXT int K | M]
    [MAXSIZE {UNLIMITED|int K|int M}] ]
    SS

  • Can I add datafile bigger then 2GB

    Hi all,
    Can I add datafile bigger then 2GB (on the raw device) to the tablespace ?
    I get err:
    ORA-01119 : error in creating database file '/opt/DISK/data02'
    ORA-27042 : not enought space on raw partition to fullfill request
    Aditional information : 1
    And
    partition has size 4096543 kB
    when I use partition with size 2GB it is Ok.
    Is it limitation by Linux ?
    I have linux 7.1
    and oracle 8.1.7
    What can I do ?
    thanks
    null

    If you want to use raw devices with linux you have to use the utility 'raw' to map the device. You could also use the Logical Volume Manager (or both)
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Martin Silar ([email protected]):
    I do not know where it is my problem.
    I wont to create datafile on raw disk and
    I wont to need raw disk with 4GB size, becose
    I can not create more logic devices on my SCSI disk then 15 logic partition. Disk have 39GB.
    I have problem with add raw datafile to tablespace.
    Have you sambody idea ?
    thanks Martin<HR></BLOCKQUOTE>
    null

  • How to add datafile to standby database

    Hi,
    We have standby database on another site and we are using manual recovery. How to add datafile to standby database after datafile is added to primary database.
    We are on Oracle 9i R2.
    Please help.
    Thanks in advance

    Hi,
    When you recover the standby database after you added a datafile to the production, you will get an error that the file that needs recovery does not exist.
    At this point you can connect to the standby and issue:
    alter database create datafile '<original_name>' as '<new_name>';the new name is optional if the location of the files are the same.
    After that, you can continue recovering the standby database.
    Liron Amitzi
    Senior DBA consultant
    [www.dbsnaps.com]
    [www.orbiumsoftware.com]

  • Add datafile or increase the size?

    Hi, I have this question. When is recomendable to add a datafile on the tablespace and when is recomendable to increase the size of the datafile on the tablespace?
    Thanks!

    What i feel is
    if you dont have free space in the file system then adding datafile to another filesystem is the only option.In this case we cannot increase the datafilesize.
    NO free space in filesystem---add datafile in another filsystem
    else increase data file size.
    increasing the datafile increases the time in recovery incase if datafile is crashed.
    Datawarehouse Db suits big tablespaxces.
    Correct me if i am wrong

  • Move datafile from asm datafile database to non asm database

    Hi Nice morning all DBA Guys, I want move datafile from asm database datafile to non asm configurated database. Hoe to move this?
    Datafiles like this
    +DATA/saico/datafile/users.259.631612183
    +DATA/saico/datafile/DBA.XXX.XXXXXXXXX
    Regards
    S.Azar

    The all files movement of asm to non-asm and vice-versa is given in document id 252219.1 on metalink. Please look at the same. In nut shell you have to do the following:
    1. Start your database with ASM.
    2. Create pfile from spfile.
    3. Edit pfile to reflect controlfile name in file system location.
    4. SQL> Startup nomount.
    5. Use RMAN to copy the control file from ASM to NON-ASM.
    RMAN> RESTORE CONTROLFILE FROM '<filename_of_old_control_file>';
    6. SQL> alter database mount;
    7. Use RMAN to copy the database from ASM to NON-ASM.
    RMAN> BACKUP AS COPY DATABASE format '/u01/oradata/nonasmdb/datafile/%U';
    8. From RMAN
    RMAN> SWITCH DATABASE TO COPY;
    Regards.

  • Dynamic alter tablespace statement to add datafiles

    Hi Gurus,
    I need a PL/SQL stored procedure which will accept a datafile name as parameter and dynamically create and execute "alter tablespace" command to add this passed datafile dynamically.
    Thanks
    Amitava.

    See this demo : 11.2.0.1 Windows
    Before running this demo, I logged into SYS account and said :
    grant create tablespace to scott;
    grant select on dba_tablespaces to scott;
    grant select on dba_data_files to scott;
    grant alter tablespace to scott;
    even scott user is having DBA role. Then I login as scott user and :
    set serveroutput on;
    create or replace procedure create_tbs(tbs_name in varchar2, filename in varchar2) as
    rt dba_tablespaces%rowtype;
    str_tbs varchar2(500);
    v_tbs varchar2(100);
    begin
    str_tbs := 'create tablespace ' || tbs_name || ' datafile '''||filename|| ''' size 1m' ;
    dbms_output.put_line(str_tbs);
    select * into rt from dba_tablespaces where tablespace_name=upper(tbs_name);
    dbms_output.put_line('tablespace exists');
    exception
    when no_data_found then
    execute immediate str_tbs;
    dbms_output.put_line('tablespace was created');
    end;
    select tablespace_name from dba_tablespaces;
    TABLESPACE_NAME
    SYSTEM
    SYSAUX
    UNDOTBS1
    TEMP
    USERS
    EXAMPLE
    PERFSTAT
    7 rows selected.
    SQL> exec create_tbs('TESTTBS','c:\data\test.dbf');
    create tablespace TESTTBS datafile 'c:\data\test.dbf' size 1m
    tablespace was created
    PL/SQL procedure successfully completed.
    SQL> exec create_tbs('SYSAUX','c:\data\test.dbf');
    create tablespace SYSAUX datafile 'c:\data\test.dbf' size 1m
    tablespace exists
    PL/SQL procedure successfully completed.
    SQL> drop tablespace testtbs including contents and datafiles;
    Tablespace dropped.
    SQL>Now I am going to create add datafile procedure, which is your question :
    column file_name for a50;
    column tablespace_name for a20;
    select file_name,tablespace_name from dba_data_files;
    FILE_NAME                                          TABLESPACE_NAME
    E:\APP\SERVERROOM\ORADATA\ORCL\USERS01.DBF         USERS
    E:\APP\SERVERROOM\ORADATA\ORCL\UNDOTBS01.DBF       UNDOTBS1
    E:\APP\SERVERROOM\ORADATA\ORCL\SYSAUX01.DBF        SYSAUX
    E:\APP\SERVERROOM\ORADATA\ORCL\SYSTEM01.DBF        SYSTEM
    E:\APP\SERVERROOM\ORADATA\ORCL\EXAMPLE01.DBF       EXAMPLE
    E:\APP\SERVERROOM\ORADATA\ORCL\PERFSTAT            PERFSTAT
    6 rows selected.
    create or replace procedure alter_tbs(tbs_name in varchar2, filename in varchar2) as
    rt dba_data_files%rowtype;
    str_tbs varchar2(500);
    v_tbs varchar2(100);
    begin
    str_tbs := 'alter tablespace ' || tbs_name || ' add datafile '''||filename|| ''' size 10m' ;
    dbms_output.put_line(str_tbs);
    select * into rt from dba_data_files where tablespace_name=upper(tbs_name) and file_name=upper(filename);
    dbms_output.put_line('Datafile already exists.');
    exception
    when no_data_found then
    execute immediate str_tbs;
    dbms_output.put_line('Datafile added.');
    end;
    SQL> exec alter_tbs('users','E:\APP\SERVERROOM\ORADATA\ORCL\USERS01A.DBF');
    alter tablespace users add datafile 'E:\APP\SERVERROOM\ORADATA\ORCL\USERS01A.DBF' size 10m
    Datafile added.
    PL/SQL procedure successfully completed.
    SQL> column file_name for a50;
    SQL> column tablespace_name for a20;
    SQL> select file_name,tablespace_name from dba_data_files;
    FILE_NAME                                          TABLESPACE_NAME
    E:\APP\SERVERROOM\ORADATA\ORCL\USERS01.DBF         USERS
    E:\APP\SERVERROOM\ORADATA\ORCL\UNDOTBS01.DBF       UNDOTBS1
    E:\APP\SERVERROOM\ORADATA\ORCL\SYSAUX01.DBF        SYSAUX
    E:\APP\SERVERROOM\ORADATA\ORCL\SYSTEM01.DBF        SYSTEM
    E:\APP\SERVERROOM\ORADATA\ORCL\EXAMPLE01.DBF       EXAMPLE
    E:\APP\SERVERROOM\ORADATA\ORCL\PERFSTAT            PERFSTAT
    E:\APP\SERVERROOM\ORADATA\ORCL\USERS01A.DBF        USERS
    7 rows selected.
    SQL> alter tablespace users drop datafile 'E:\APP\SERVERROOM\ORADATA\ORCL\USERS01A.DBF';
    Tablespace altered.
    SQL> select file_name,tablespace_name from dba_data_files;
    FILE_NAME                                          TABLESPACE_NAME
    E:\APP\SERVERROOM\ORADATA\ORCL\USERS01.DBF         USERS
    E:\APP\SERVERROOM\ORADATA\ORCL\UNDOTBS01.DBF       UNDOTBS1
    E:\APP\SERVERROOM\ORADATA\ORCL\SYSAUX01.DBF        SYSAUX
    E:\APP\SERVERROOM\ORADATA\ORCL\SYSTEM01.DBF        SYSTEM
    E:\APP\SERVERROOM\ORADATA\ORCL\EXAMPLE01.DBF       EXAMPLE
    E:\APP\SERVERROOM\ORADATA\ORCL\PERFSTAT            PERFSTAT
    6 rows selected.
    SQL>Similar thread : Create a procedure to dynamically add a tablespace
    Regards
    Girish Sharma

  • Autoextend user tablespace or add datafile

    Hello,
    My USERS tablespace had problem today when loading a file using sqlldr. It stopped loading halfway through the file.
    The allocated is set to 1900 mb and the used was at 1850. I only have 1 datafile for users tablespace. I have autoextensible to YES.
    Why did it not extend the tablespace when I should still have 2gb free??
    I dropped a couple unused user tables and it reduced the used amount, then I was able reran the sqlldr load and it completed.
    Should I create a new datafile
    ALTER TABLESPACE USERS ADD DATAFILE ‘/usr/lib/oracle/xe/oradata/XE/users01.dbf’ SIZE 2000M AUTOEXTEND OFF;
    or increase the allocation
    ALTER DATABASE DATAFILE ‘/usr/lib/oracle/xe/oradata/XE/users.dbf’ RESIZE 3000M;
    Thanks for the help...

    Why did it not extend the tablespace when I should still have 2gb free??
    Might be maxsize was defined at the time of tablespace creation
    For example
    SQL> select DBMS_METADATA.GET_DDL('TABLESPACE', 'USERS') from dual;
    DBMS_METADATA.GET_DDL('TABLESPACE','USERS')
    CREATE TABLESPACE "USERS" DATAFILE
    'C:\ORACLE\ORACLEXE\ORADATA\XE\USERS.DBF' SIZE 104857600
    AUTOEXTEND ON NEXT 10485760[b] MAXSIZE 5120M
    LOGGING ONLINE PERMANENT BLOCKSIZE 8192
    EXTENT MANAGEMENT LOCAL AUTOALLOCATE SEGMENT SPACE MANAGEMENT AUTO
    Should I create a new datafile
    ALTER TABLESPACE USERS ADD DATAFILE
    ‘/usr/lib/oracle/xe/oradata/XE/users01.dbf’ SIZE
    2000M AUTOEXTEND OFF;
    or increase the allocation
    ALTER DATABASE DATAFILE
    ‘/usr/lib/oracle/xe/oradata/XE/users.dbf’ RESIZE
    3000M; It is good idea to add new file and having multiple file with same size.
    Also in future if needed you can relocate datafile to reduce I/O contention.

  • Can one tablepace have their datafile on ASM also filesystem. ???

    Hello Oracle Gurus''
    1.can one tablespace have their datafile on ASM as well as filesystem ?? like 1 tablespace =1ASMfile + 1 localfilesystem file
    2.also tell me will there be any database error code triggered on the DB alert log file. if we use the datafiles on ASM as well as local filesystem for one tablespace??and any performance issues on that tablespaces which resides on filesystem and ASM disk both? ..if all are fine how the filesystem datafile will be support for ASM rebalancing also mirroring level on ASM ??
    3.what is type of SCN? is there any types we have ?
    4.what are the wait events views on RAC clusters used? to monitor the cluster events and rectify the issues?

    user13014926 wrote:
    Hello Oracle Gurus''
    1.can one tablespace have their datafile on ASM as well as filesystem ?? like 1 tablespace =1ASMfile + 1 localfilesystem file
    Yes.
    2.also tell me will there be any database error code triggered on the DB alert log file. if we use the datafiles on ASM as well as local filesystem for one tablespace??and any performance issues on that tablespaces which resides on filesystem and ASM disk both? ..if all are fine how the filesystem datafile will be support for ASM rebalancing also mirroring level on ASM ??
    AFAIK no. The files which are present on the disk/file system only and not on asm, are not managed by it so no support for asm based striping and mirroring would be there for them.Second, rebalancing is NOT done for the files but for the disks when they are not present or have become offline due to some reason.
    3.what is type of SCN? is there any types we have ?
    Just remember one type, System Commit Number and forget about rest.
    4.what are the wait events views on RAC clusters used? to monitor the cluster events and rectify the issues?Please see the Performance Tuning section of Oracle RAC Admninistration guide with a special attention to Cluster wait class and wait events related to it. Best is, use EM and it would show all the things in a nice manner.
    HTH
    Aman....

Maybe you are looking for

  • File Information

    We received an InDesign file from a client that was not packaged. Is there a way to find out some information on who authored the document, what platform it was created on, what version of InDesign (cs2,3,4,5?) ect. There unfortunately is no informat

  • Using mouse wheel to zoom and pan

    I was wondering if there would be a way to make a javascript that would load at Photoshop's startup that would allow the user to zoom in and out using the mouse wheel (instead of using it for scrolling), and to use that same mouse wheel as a third bu

  • Apps That Cannot Be Deleted

    While trying to delete apps on my torch 9800 there were a few that could not be deleted so I chose to Hide them. Where are they now? Can they somehow be deleted?

  • Normal + 3 chimes at startup with intel mac mini

    I posted this in the mac mini forum, but didn't get a helpful response. So maybe someone can help me here. I have a 300GB USB drive (formatted as Mac OS extended (journaled)) connected to my intel mac mini with the drive's power on all the time. When

  • Need help getting an area code out of my program.

    I wrote a program that displays a phone number with a bunch of things, like mutators, constructors and what not. Then I created a test class to test the methods. It prints the phone number, but it won't extract the area code from the number. Any advi