Oracle Temp Files

Hi,
I have a Space Problem on C drive of my Oracle Application Tier. C drive has only 111 MB space which cause my application very slow. On investigating the C drive i found that C:\Documents and Settings\oracle\Local Settings\Temp contain 3 GB of data.
Can any body tell If i Delete that oracle temp files it will not cause my application to stop work.
Regards,
Awais Riaz

find $ORACLE_BASE -name "*.trc"
find $ORACLE_BASE -name "*.log"
--MM                                                                                                                                                                                       

Similar Messages

  • Error with Oracle temp file after Offline restore

    Hi,
    I did a offline backup of my Oracle 9I database after shutting down the DB. After I restore the offline file system backup, I saw the following error in alter.log:
    "ORA-01186: file 255 failed verification tests
    ORA-01122: database file 255 failed verification check
    ORA-01110: data file 255: '/oracle/SED/sapdata1/temp_1/temp.data1'
    ORA-01205: not a data file - type number in header is 0
    File 255 not verified due to error ORA-01122"
    When I did a query I got the following error :
    "SQL> select * from dba_temp_files;
    select * from dba_temp_files
    ERROR at line 1:
    ORA-01187: cannot read from file 255 because it failed verification tests
    ORA-01110: data file 255: '/oracle/SED/sapdata1/temp_1/temp.data1'
    I know how to recover it but Why is this so ? Is this normal when I restore the offline backup file including the temp.data1 ?
    Any reply is appreciated.
    Rgds,
    WP

    Because you did something wrong.
    This is just one more brilliant laser beam example of why RMAN is the only tool that should be used for backup and recovery once you are on 9i or higher versions.

  • Fail to create temp file in Oracle 10g on CentOS

    My disk is full so I delete six temp files and create only one, but when I execute this SQL give me this error. I know i have more than 4GB free space but i don´t know what problem is happen.
    ALTER TABLESPACE temp ADD TEMPFILE '/oracle/oradata/ral/temp01.dbf' SIZE 512m AUTOEXTEND ON NEXT 250m MAXSIZE 2048m;
    ERROR
    ALTER TABLESPACE temp ADD TEMPFILE '/oracle/oradata/ral/temp01.dbf' SIZE 512m AUTOEXTEND ON NEXT 250m MAXSIZE 2048m
    Informe de error:
    Error SQL: ORA-01119: error create database file '/oracle/oradata/ral/temp01.dbf'
    ORA-27044: no se ha podido escribir el bloque de cabecera del archivo
    Linux-x86_64 Error: 28: No space left on device
    Additional information: 3
    +01119. 00000 - "error in creating database file '%s'"+
    *Cause:    Usually due to not having enough space on the device.+
    *Action:+
    Could you help me plz?
    Thanx in advance

    993296 wrote:
    My disk is full so I delete six temp files and create only one, but when I execute this SQL give me this error. I know i have more than 4GB free space but i don´t know what problem is happen.
    ALTER TABLESPACE temp ADD TEMPFILE '/oracle/oradata/ral/temp01.dbf' SIZE 512m AUTOEXTEND ON NEXT 250m MAXSIZE 2048m;
    ERROR
    ALTER TABLESPACE temp ADD TEMPFILE '/oracle/oradata/ral/temp01.dbf' SIZE 512m AUTOEXTEND ON NEXT 250m MAXSIZE 2048m
    Informe de error:
    Error SQL: ORA-01119: error create database file '/oracle/oradata/ral/temp01.dbf'
    ORA-27044: no se ha podido escribir el bloque de cabecera del archivo
    Linux-x86_64 Error: 28: No space left on device
    Additional information: 3
    +01119. 00000 - "error in creating database file '%s'"+
    *Cause:    Usually due to not having enough space on the device.+
    *Action:+
    Could you help me plz?
    Thanx in advanceHi,
    please check space under /oracle/oradata/ral filesystem
    Linux-x86_64 Error: 28: No space left on device
    Regards

  • Where can i find the temp file in oracle 9ias ver 9.0.3

    Hi All,
    When I am trying to deploy stateless session bean(SLSB)in oracle 9ias ver 9.0.3,i am getting the following exception
    SequenceHome_StatelessSessionHomeWrapper3.java:9: SequenceHome_StatelessSessionHomeWrapper3 should be declared abstract; it does not define create (java.lang.String) in SequenceHome_StatelessSessionHomeWrapper3
    public class SequenceHome_StatelessSessionHomeWrapper3 extends com.evermind.server.ejb.RemoteStatelessSessionEJBHome implements sequence.SequenceHome
    and one more where can i find this temp file.I want to see this SequenceHome_StatelessSessionHomeWrapper3.java file..how its possible
    Thanks and Regards,
    Bala

    Try this link - it should always point to the latest iteration

  • Temp File in SQL Server change to Oracle

    Dear all,
    If there is temp file in SQL Server named '#Tablename',
    HOw can I change it to use in Oracle Database?
    Now I am doing upgrade to oracle database. If I need to create the temp file name , HOw can I do in oracle database?
    Thanks for your big help.

    Can you clarify the question a bit? I'm not sure what you're trying to accomplish.
    Are you trying to create a temporary table? A data file for a temporary tablespace? A temporary operating system file?
    Is there something ODBC-related in this question? If not, you may want to post the question in the general database forum.
    Justin
    Distributed Database Consulting, Inc.
    www.ddbcinc.com/askDDBC

  • Upload a file into Oracle database without using a temp file in the server.

    Hello.
    I need to upload a file into a Oracle database, but I have not permission to write a temp file in the aplication server. Because of this, I can't use a MultipartRequest object.
    Does anybody know how to do this?
    Thanks everybody for your help.

    You can still use a MultiPart request.
    Use the Apache FileUpload package.
    Get the InputStream of the file being uploaded.
    Now you can either store the file in memory by writing to a java.io.ByteArrayOutputStream or you can save the file to Oracle by writing it to a java.sql.Blob object using the Blob.setBinaryStream method. This Blob object can then be persisted to Oracle.
    Unfortunately I don't have sample code readily available.

  • How to move temp file, redo log to different drive oracle 9i

    Hi ,
    I am using oracle 9i
    by mistakenly, i have instaled oracle installable on system drive i mean c: drive.I have installed teh database on D: drive.
    For tunning perfomance i would like to move the redlog files and temp files to different drive.
    Could you please explain me the step by step procedure how to do this
    Thanks
    AITS

    Very easy -
    Create a new temp tablespace with the files on the drive you want, make it the default temp tablespace for any users/schemas you have created, then drop the old temp tablespace including datafiles.
    For the redo logs, create new groups, again with the logfiles on the dirves you want them on, cycle out of the old ones with "alter system switch logfile;" then drop them.

  • Temp file of oracle

    Hi...
    here I am using oracle 10g on RHEL 5. it was running properly. But few days ago I noticed that my oracle applications become slow. I have deleted some backup file which I took on weekly basis. I suspect that this slowness may because of the oracle temporary files. Can anyone advice me how to delete oracle temporary files. Is this deletion can occur any errors to my oracle services. Here is the overview of my file system and disk uses.
    Filesystem Size Used Avail Use% Mounted on
    /dev/cciss/c0d0p3 109G 97G 6.7G 94% /
    /dev/cciss/c0d0p1 487M 31M 432M 7% /boot
    tmpfs 16G 0 16G 0% /dev/shm
    /dev/mapper/SANSCR1-SANSCR2 591G 367G 195G 66% /opt/SANSCR2
    none 16G 104K 16G 1% /var/lib/xenstored

    Girish Sharma wrote:
    Wow... Within 9 minutes you have posted in 6 threads all MOS notes....
    Great... But how you are finding these ? Please share with us too...
    RegardsNot to be harsh, but there's no contest to flood the forum in a minimum of time with dozens of MOS notes. And whether a MOS note can help time to time, most of the time it looks like RTFM or totally wrong (obviously haven't been read and does not match the OP's need - after all, who can read 6 notes in 9 minutes to know if that applies to the OP's case).
    For instance here, it would be much better to take a little bit more time and continue to ask for investigation, as already done earlier by other posters.
    Why and how the OP 'suspect' the root cause of the slowness of database would somehow come from the temp file ? Or, how delete/recreate tempfile would help to solve an unknown slowness problem ? etc...
    Unless there's something I don't see here, I really don't get the point of throwing up a note about tempfile. Would it be based on just a feeling instead of facts ?
    And of course, since this is the only response that the OP was waiting for (even if this is not the one it should be), that response has been grateful with 5 points... what about the future readers ?
    Nicolas.

  • Oracle dbsonsole not running after drop temp files

    before drop temp tablespace
    i was create temp2 tablespace as default temp tablespace
    after that
    i have droppped temp files last to first
    temp4.dbf ..3..2
    when i have clicked to delete temp table space in dbconsole
    after a few time dbconsole not running
    in iexplore
    i have tired to start db control again with emctl start dbconsole
    it was already running
    then i have command
    emctl status dbconsole
    is not running
    i have looked log file i see temp file warning
    now what can i do to start dbconsole again

    Dbconsole doesn't work proper without temp files. So you should create temp file for temporary tablespace in some other tool.

  • Oracle Best Practices / Guidelines regarding Cleaning TEMP files

    Hi folks,
    Can any one help me with a set of steps / guidelines or best practices to clean TEMP files from OBIEE servers (our PROD environment)?
    Does perhaps OBIEE take care of this for you automatically, how is that process happening?
    Thanks a lot for your time and attention and hope to hear from you soon.

    TEMPS files are deleted from the server once a user logs out. But there might be chance where the TEMP files does not get deleted automaticlly, when the user logs out of the system even before the TEMP file has been generated completely. In this case the temp files get stored in the server, and a bounce of services cleans up the files.
    The best practice would be to create a script to empty out the temp directory during the start up of the services.
    -Amith.

  • Confuse between temp file error and perment file error

    during the weekend, i usually maintain our database and this weekend i end up with strange situation,
    i lunched my scripts to reorginize datafiles, however the scripts is crash all the time due to weird message which is in my opinion is misleading ora message.
    this is the situaion:
    i am using this scripts to tell me if my datafiles are full or not
    1 L_INDEX 24 107.12109375 103.74609375 3.375 0 96.8493600262553 3.15063997374467
    2 L_TABLES 30 108.2939453125 97.1689453125 11.125 0 89.7270341680719 10.2729658319281
    as you can see, the free space on the l_index tablespace is now 3G and need to reogrinze to free space, however when we run our scripts to free spaces by moving objects to tools tablespace and then return them back,
    I recieve this message:
    ORA-01652: unable to extend temp segment by .......
    to solve this error is adding new temp files, however we have 5 temps file and there were pantly of space there and also i add 2 new files with size 1g and maxsize is 32G, still i am receving this error and my scripts crash when i try to rebuild the index,
    the workaround was is adding new datafile to l_index and try again to rebuild the index and it works,
    so i am wondering if the problem was on the datafiles, why i recieved error about temp, i waste some time thinking that my problem was with temp, however the real problem came from l_index tablespace.
    oracle verison is 10.1.0.4 and os is windows
    Thanks

    ORA-01652: unable to extend temp segment by Temporary tablespace is also used when re-creating or creating indexes in database.
    A temp segment is created the moment create or re-build indexes command is issued and will be held until the index is being created completely. If either of the tablespace have insufficient space, you might get the error ORA-1652 or ORA 1654.
    You should be looking at the tablespace name for adding space instead of looking temp segment.
    ORA-1652: unable to extend temp segment by in tablespace

  • Issue in deleting temp file.

    Hi experts ,
    i am using Oracle 10g and my database is in archive log mode my default temporary tablespace is temp and there are 3 tempfiles in it by name temp01.dbf,temp02.dbf,temp03.dbf i am trying to drop temp03.dbf through sql prompt
    sql > alter tablespace temp drop tempfile '/path/temp03.dbf' ;
    and got a error ora-02142 missing or invalid alter tablespace option.
    then i made this tempfile offline and again tried to drop this tempfile with the same command and again i got the same error please tell me why i am getting this error and how to drop that temp file .
    thanks .

    Try it!
    ALTER DATABASE TEMPFILE '<YOUR TEMPFILE NAME>' DROP INCLUDING DATAFILES;
    Cheers,
    Jonathan Ferreira
    http://oracle4dbas.blogspot.com

  • How to create temp files in temp tablespace

    Dear all,
    Due to outage of our SAN, we our out of production for the
    last 3 days. By the grace of Almighty we have restored production by
    database recovery from our standby backup. Since temp tablespace and
    temp data files do not taken as backup for standby, now after recovery
    we are getting abap dumps asking for temp_1 and temp_2 datafiles.
    Please guide us how to create temp files. v$tablespace is showing tablespace PSAPTEMP but datafile are not there
    Abap dumps are giving these errors as mentioned below
    ====================================================
    The exception must either be prevented, caught within the procedure            
    "DATA_SELECTION"                                                              
    "(FORM)", or declared in the procedure's RAISING clause.                       
    To prevent the exception, note the following:                                  
    Database error text........: "ORA-01157: cannot identify/lock data file 256 -  
    see DBWR trace file#ORA-01110: data file 256:                                 
    '/oracle/SD1/sapdata4/temp_2/temp.data2'"                                     
    Internal call code.........: "[RSQL/FTCH/MARA ]"                               
    ===================================================
    another one asking for 
    '/oracle/SD1/sapdata3/temp_1/temp.data1'"
    Best Regards
    Waqas

    if you want to add a new tempfile to your TEMP Tablespace,you can do like that.
    <i>ALTER TABLESPACE</i> <<b><u>name of TEMP Tablespace</u></b>> ADD TEMPFILE <<b><u><b><u>pfad to the file_and_file name</u></b></u></b>> <b>SIZE</b> <size>;
    You can use also the options <i>REUS</i>E <i>autoextend off</i> or <i>on</i> .
    e.g:
    <i>alter tablespace</i> <u><b>PSAPTEMP</b></u> add <i>tempfile</i> <b><u>'/oracle/SD1/sapdata4/temp_2/temp.data2'</u></b> <i>SIZE 1000K</i> <i>REUSE</i>;
    The directory <b><u>temp_2</u></b> should exist.
    Or you can use the BR*Tools to create a new datafile. Enter brtools and follow the instructions or menu.
    More to TEMP Tablespaces see please following SAP notes:
    <u><b>659946</b></u> - FAQ: Temporary tablespaces
    <u><b>600513</b></u> - ORA-25153 after recovery due to missing tempfiles
    and the Oracle Note:
    <u><b>160426.1</b></u>: TEMPORARY Tablespaces : Tempfiles or Datafiles ?
    I hope it helps.

  • Unable to extend TEMP segment even after adding fresh temp files

    Hi All,
    I have a huge table with rows nearly 2 million. When this table is moved to another tablespace, the command failed giving the following error:
    ORA-01652: unable to extend temp segment by 128 in tablespace XYZ
    To overcome this error, an additional temp file was added with huge size. Unfortunately, the same error appeared again when the table was tried to move to another tablespace. I wonder if the new temp file was not recognized by database, so tried to see how many files belong to temporary tablespace, but the query listed the newly added temp file also.
    What could be the possible reason for this error? Suggestions or clues are most welcome.
    Thanks,
    ...

    The temp segment is for the table that is being moved.
    Oracle creates a temporary segment when doing a move. If the target tablespace has enough space, the move succeeds and the temp segment gets converted to a Table segment. Else, if the move fails because of lack of space (the temp segment itself unable to grow), then the temp segment is dropped on failure.
    Thus, in a
    alter table ABC move tablespace MY_TBS;or
    the target tablespace MY_TBS should have enough space for ABC. While Oracle is building the copy of ABC in MY_TBS, it is being built as a temporary segment. If the copy succeeds, the temporary segment is renamed as a Table segment 'ABC' and the original table segment 'ABC' is dropped.
    This behaviour also happens when you do an ALTER TABLE .. MOVE ; into the same tablespace that it is existing in. The new copy of the table is a temporary sgement till the copy succeeds.

  • (9I) OMF(ORACLE MANAGED FILES) 개념과 사용 예제

    제품 : ORACLE SERVER
    작성날짜 : 2002-04-01
    (9I) OMF(ORACLE MANAGED FILES) 개념과 사용 예제
    ==============================================
    PURPOSE
    Space Management와 관련된 Oracle 9i의 새로운 기능은 크게 다음 세 가지이다.
    - Oracle Managed Files, Delete Datafiles, Default Temporary Tablespace.
    이를 이용하면 개발 중인 혹은 운영 중인 데이터베이스에 대해 DBA의 수고를 덜게
    할 수 있다.
    Oracle 9i의 새 기능인 OMF에 대하여 개념과 사용 예제를 알아보기로 한다.
    Explanation
    DBA가 테이블스페이스를 생성할 때, 혹은 기존의 테이블스페이스에 새로운 데이터
    화일을 추가할 때, 실제 OS 화일명(디렉토리 포함)과 크기를 주면 자동으로 해당
    화일이 생성된다. 9i의 Oracle Managed Files(OMF) 기능을 이용하면 OS 화일명을
    줄 필요도 없다. 즉, 데이터베이스 차원에서 유일한 화일명을 생성하고, 그 이름의
    데이터 화일을 생성하는 것이다. 또한 OMF를 이용해 만들어진 데이터 화일의 경우,
    나중에 그 데이터 화일이 속한 테이블스페이스를 삭제하면 데이터 화일까지 자동
    으로 삭제가 된다. DBA가 필요없는 데이터 화일을 찾아서 OS 상에서 일일이 삭제
    해야만 하는 수고를 덜어주게 되는 것이다.
    1. Oracle Managed Files (OMF)
    Overview에서 기술했듯이 OMF를 이용하면 데이터베이스가 사용하는 OS 화일에 대해
    DBA가 일일이 관리해야 하는 번거로움을 덜 수 있다. OMF 화일은 Oracle 서버에 의해
    자동으로 생성(유일성을 보장하기 위한 Naming Structure 존재)되고 삭제된다.
    이 OMF를 이용할 수 있는 화일은 Control File, Online Redo Log File, Data File
    등이다.
    1) Benefits of Oracle Managed Files
    화일과 관련된 DBA 작업이 쉽다.
    유일한 화일명이 생성되기 때문에, DBA가 화일명을 잘못 사용할 염려가 없다.
    사용되지 않는 데이터 화일이 자동으로 삭제되기 때문에, 사용되지 않는 데이터
    화일에 의한 디스크 공간 낭비의 우려가 없다.
    테스트 데이터베이스, 개발용 데이터베이스 생성이 단순하다.
    SQL 스크립트에 OS의 화일명을 명시하지 않아도 되기 때문에 Portable Application
    개발이 용이하다.
    2) Oracle Managed File Configurations
    다음 두 가지의 초기 파라미터를 정의하면 된다.
    DB_CREATE_FILE_DEST : data file들이 위치하게 될 기본 디렉토리
    DB_CREATE_ONLINE_LOG_DEST_n : online redo log와 control file들이 위치하게
    될 기본 디렉토리 (n : 1과 5 사이의 정수 - for multiplexing)
    Note :
    위 두 파라미터는 ALTER SYSTEM/SESSION에 의해 동적으로 정의/변경될 수 있다.
    Note : DB_CREATE_FILE_DEST 파라미터는 정의되어 있지만 DB_CREATE_ONLINE_LOG_DEST_n
    파라미터가 정의되어 있지 않으면, 모든 화일들(Data Files, Control Files,
    Online Redo Logs)은 DB_CREATE_FILE_DEST 파라미터에 정의된 디렉토리에
    존재하게 된다.
    3) Oracle Managed File Name Structure
    OMF 화일은 Oracle Flexible Architecture(OFA)를 따르며 플랫폼에 의존적이다.
    아래는 Solaris 환경의 OMF Naming Structure의 예이다.
    Control Files : ora_%u.ctl
    Redo Log Files : ora_%g_%u.log
    Data Files : ora_%t_%u.dbf
    Temporary Data Files : ora_%t_%u.tmp
    Note :
    %u is an 8 character string that guarantees uniqueness.
    %t is the tablespace name, truncated if necessary.
    %g is the redo log file group number.
    ora_ identifies the file as an Oracle Managed File.
    Note : 위 Naming Structure를 따르지 않으면 OMF로 인식하지 않는다.
    즉, 위 Naming Structure를 따르는 화일을(OMF로 생성) 추후 이 structure
    를 따르지 않는 화일 이름으로 rename하게 되면 OMF 기능을 사용하지 못한다.
    별 다른 옵션 없이 DROP TABLESPACE를 수행하면 해당 데이터 화일의 OS
    화일이 자동으로 삭제되지는 않는다.
    4) Managing Control Files with OMF
    데이터베이스 생성 시 CONTROL_FILES 초기 파라미터를 정의하지 않으면
    DB_CREATE_ONLINE_LOG_DEST_n에 정의된 디렉토리에 Control File이 기본적으로
    생성된다(OMF). Control File 이름은 유일하게 생성되며 이 결과는 alert.log에
    기록이 된다. 데이터베이스 생성 후에는 CONTROL_FILES 초기 파라미터에 생성된
    Control File 이름을 정의해주어야 한다.
    5) Managing Online Redo Log Files with OMF
    Redo Log File specification 없이 아래와 같이 전체 Redo Log Group을 생성할
    수 있다.
    SQL> ALTER DATABASE ADD LOGFILE;
    Note : 이 경우 해당 redo log file은 DB_CREATE_ONLINE_LOG_DEST_n에 정의된
    디렉토리에 생성된다. 만일 이 파라미터 값이 정의되지 않았으면
    DB_CREATE_FILE_DEST 디렉토리에 생성된다.
    특정 Redo Log Group을 삭제할 때 관련 OMF 화일들은 OS 레벨에서 자동으로
    삭제된다.
    SQL> ALTER DATABASE DROP LOGFILE GROUP 3;
    Note : Archived Log File은 OMF일 수 없다.
    6) Managing Tablespaces with OMF
    아래와 같이 테이블스페이스를 생성하면 DB_CREATE_FILE_DEST에 정의된
    디렉토리에 크기가 100M인 데이터 화일이 자동으로 생성된다. 이 데이터 화일의
    이름은 Naming Structure에 의해 유일하게 만들어진다.
    (Autoextend On, Unlimited Restriction)
    SQL> CREATE TABLESPACE TBS1;
    데이터 화일의 기본 값 이외의 화일을 생성하려면 다음과 같이 하면 된다.
    SQL> CREATE TABLESPACE TBS1 DATAFILE SIZE 400M AUTOEXTEND OFF;
    기존 테이블스페이스에 데이터 화일을 추가하려면 다음과 같이 하면 된다.
    SQL> ALTER TABLESPACE TBS1 ADD DATAFILE;
    아래와 같이 테이블스페이스를 삭제하면 관련 데이터 화일(OMF)들도 OS 레벨에서
    삭제된다.
    SQL> DROP TABLESPACE TBS1;
    Note : DB_CREATE_FILE_DEST의 값은 다음과 같이 동적으로 변경할 수 있다.
    SQL> ALTER SYSTEM SET DB_CREATE_FILE_DEST = '/disk2/oradata/';
    세션 단위의 변경은 ALTER SESSION 구문을 사용하면 된다. 하지만 이와 같은
    변경이 이미 생성되어져 있는 데이터 화일의 위치를 바꾸는 것은 아니며,
    다만 새로 생성되는 데이터 화일에만 영향이 있다. OMF 기능을 사용하지 않으려면
    다음과 같이 하면 된다.
    SQL> ALTER SYSTEM SET DB_CREATE_FILE_DEST = '';
    Example
    테스트 1) OMF를 이용한 테이블스페이스 생성/삭제 및 이에 대한 확인
    As SYSTEM
    DB_CREATE_FILE_DEST 파라미터 값 정의
    SQL> alter session set db_create_file_dest='/d02/ora9i/oracle/dbs/ora9i/tbs_omf';
    - OMF를 이용한 테이블스페이스 생성 : 크기가 10M인 두 개의 데이터 화일 자동 생성
    SQL> host ls -l /d02/ora9i/oracle/dbs/ora9i/tbs_omf
    total 0
    SQL> create tablespace tbs_4 datafile size 10M, size 10M;
    SQL> host ls -l /d02/ora9i/oracle/dbs/ora9i/tbs_omf
    total 41024
    -rw-r----- 1 ora9i dba 10489856 Mar 12 17:10 ora_tbs_4_xbs141rr.dbf
    -rw-r----- 1 ora9i dba 10489856 Mar 12 17:10 ora_tbs_4_xbs142xv.dbf
    - 해당 테이블스페이스에 데이터 화일 추가
    SQL> alter tablespace tbs_4 add datafile size 10M;
    SQL> host ls -l /d02/ora9i/oracle/dbs/ora9i/tbs_omf
    total 61536
    -rw-r----- 1 ora9i dba 10489856 Mar 12 17:10 ora_tbs_4_xbs141rr.dbf
    -rw-r----- 1 ora9i dba 10489856 Mar 12 17:10 ora_tbs_4_xbs142xv.dbf
    -rw-r----- 1 ora9i dba 10489856 Mar 12 17:11 ora_tbs_4_xbs156ff.dbf
    - 해당 테이블스페이스 삭제 : 이 테이블스페이스의 모든 OMF 데이터 화일 자동 삭제
    SQL> drop tablespace tbs_4;
    SQL> host ls -l /d02/ora9i/oracle/dbs/ora9i/tbs_omf
    total 0
    테스트 2) OMF를 이용한 UNDO Tablespace 생성/삭제 및 이에 대한 확인
    As SYSTEM
    DB_CREATE_FILE_DEST 파라미터 값 정의
    SQL> alter session set db_create_file_dest='/d02/ora9i/oracle/dbs/ora9i/tbs_omf';
    - OMF를 이용한 UNDO 테이블스페이스 생성 : 크기가 10M인 데이터 화일 자동 생성
    SQL> create undo tablespace undotbs_1 datafile size 10M;
    SQL> host ls -l /d02/ora9i/oracle/dbs/ora9i/tbs_omf
    total 20512
    -rw-r----- 1 ora9i dba 10489856 Mar 12 17:12 ora_undotbs__xbs17brr.dbf
    - 해당 테이블스페이스에 데이터 화일 추가
    SQL> alter tablespace undotbs_1 add datafile size 10M;
    SQL> host ls -l /d02/ora9i/oracle/dbs/ora9i/tbs_omf
    total 41024
    -rw-r----- 1 ora9i dba 10489856 Mar 12 17:12 ora_undotbs__xbs17brr.dbf
    -rw-r----- 1 ora9i dba 10489856 Mar 12 17:13 ora_undotbs__xbs19hr8.dbf
    - 해당 테이블스페이스 삭제 : 이 테이블스페이스의 모든 OMF 데이터 화일 자동 삭제
    SQL> drop tablespace undotbs_1;
    SQL> host ls -l /d02/ora9i/oracle/dbs/ora9i/tbs_omf
    total 0
    테스트 3) OMF를 이용한 Temporary Tablespace 생성/삭제 및 이에 대한 확인
    As SYSTEM
    DB_CREATE_FILE_DEST 파라미터 값 정의
    SQL>alter session set db_create_file_dest ='/d02/ora9i/oracle/dbs/ora9i/tbs_omf';
    - OMF를 이용한 Locally Managed Temporary 테이블스페이스 생성 : 크기가 10M인
    데이터 화일 자동 생성
    SQL>create temporary tablespace omf_temp tempfile size 10M extent
    management local;
    SQL> host ls -l /d02/ora9i/oracle/dbs/ora9i/tbs_omf
    total 176
    -rw-r----- 1 ora9i dba 10489856 Mar 12 17:14 ora_omf_temp_xbs1cqrv.tmp
    - 해당 테이블스페이스에 temp file 추가
    SQL> alter tablespace omf_temp add tempfile size 10M;
    SQL> host ls -l /d02/ora9i/oracle/dbs/ora9i/tbs_omf
    total 352
    -rw-r----- 1 ora9i dba 10489856 Mar 12 17:14 ora_omf_temp_xbs1cqrv.tmp
    -rw-r----- 1 ora9i dba 10489856 Mar 12 17:15 ora_omf_temp_xbs1d9xp.tmp
    - 해당 테이블스페이스 삭제 : 이 테이블스페이스의 모든 OMF 데이터 화일 자동 삭제
    SQL> drop tablespace omf_temp;
    SQL> host ls -l /d02/ora9i/oracle/dbs/ora9i/tbs_omf
    total 0
    테스트 4) OMF를 이용한 Online Redo Log 생성/삭제 및 이에 대한 확인
    As SYSTEM
    DB_CREATE_ONLINE_LOG_DEST_n 파라미터 값 정의
    SQL> alter session set db_create_online_log_dest_1 =
    '/d02/ora9i/oracle/oradata/ora9i/redo_omf';
    - OMF를 이용한 새로운 Online Redo Log Group 생성 : 크기가 10M인 Online Redo
    Log File 자동 생성
    SQL> host ls -l /d02/ora9i/oracle/oradata/ora9i/redo_omf
    total 0
    SQL> select group#, member from v$logfile;
    GROUP# MEMBER
    3 /d02/ora9i/oracle/oradata/ora9i/redo03.log
    2 /d02/ora9i/oracle/oradata/ora9i/redo02.log
    1 /d02/ora9i/oracle/oradata/ora9i/redo01.log
    SQL> alter database add logfile size 10M;
    SQL> host ls -l /d02/ora9i/oracle/oradata/ora9i/redo_omf
    total 20512
    -rw-r----- 1 ora9i dba 10486272 Mar 12 17:15 ora_4_xbs1fv2r.log
    SQL> select group#, member from v$logfile;
    GROUP# MEMBER
    3 /d02/ora9i/oracle/oradata/ora9i/redo03.log
    2 /d02/ora9i/oracle/oradata/ora9i/redo02.log
    1 /d02/ora9i/oracle/oradata/ora9i/redo01.log
    4 /d02/ora9i/oracle/oradata/ora9i/redo_omf/ora_4_xbs1fv2r.log
    - 해당 Online Redo Log Group 삭제 : 이 Redo Log Group의 모든 OMF Redo Log
    Member 화일 자동 삭제
    SQL> alter database drop logfile group 4;
    SQL> host ls -l /d02/ora9i/oracle/oradata/ora9i/redo_omf
    total 0
    SQL> select group#, member from v$logfile;
    GROUP# MEMBER
    3 /d02/ora9i/oracle/oradata/ora9i/redo03.log
    2 /d02/ora9i/oracle/oradata/ora9i/redo02.log
    1 /d02/ora9i/oracle/oradata/ora9i/redo01.log
    Reference Document
    <Note:137482.1>

Maybe you are looking for

  • Urgent: Account Posting

    Dear SAP Guru's, In the sales order i have configured service tax in the pricing condition it shows the prices of the material with the taxes but when i create the billing document the accounting document does not show the reason what will be the rea

  • Windows 2012 Hyper-V Virtual SAN Switch Best Practice

     I have a four node cluster running W2012 Datacenter edition on each.  All systems have Emulex HBA compatible with Hyper-V and Virtual SAN technology. The hosts are connected to a Brocade SAN Switch with NPIV Enabled. I've created a Virtual SAN on ea

  • OPA Siebel Error - Entity instance does not exist

    Hi We have installed Siebel OPA connector in our environment and want to have a rule base based on below entities Opportunity(S_OPTY) and Opportunity Product(S_REVN) Created new Entities : dealProduct (1 to M) to Global Added attributes in dealProduc

  • Is there a workshop on how to use an iphone

    i follow iphone on facebook and they say there is one

  • Visual Webpart validation using RegularExpressionValidator

    I've created a visual webpart and in the webpart i want to apply validations on the asp textbox for restricting users to enter valid telephone number,i want user to enter only numeric values like  97123456713. my requirement is User cannot enter any