How to Remove and Drop Datafiles from Tablespace in Oracle Database 앤 드롭 데이터 파일을 제거하는 방법에 오라클 데이터베이스의 테이블에서

Oracle RDBMS databases stores data logically in the form of tablespaces and physically in the form of data files. 오라클 rdbms의 형태로 논리적으로 데이터베이스의 테이블 공간에 데이터를 저장하고 데이터 파일의 형태로 물리적으로합니다. The datafiles are added to the tablespaces as database space requirement grows bigger. 테이블 공간 데이터 파일을 데이터베이스에 추가됩니다 점점 더 큰 공간을 요구합니다. However, there are several reasons you may want to remove or delete data files from a tablespace. 그러나 다음과 같은 여러 가지 이유로 데이터를 삭제하려고 할 수있습니다에서 파일을 제거하거나 테이블합니다. Such as accidentally add a wrongly sized or unwanted datafile to a tablespace, or the data space usage has became smaller and some data files want to be removed, or attempt to recover Oracle database which fails to start due to missing or corrupted datafiles by removing them, Oracle does not provide an easy way or user interface to delete or drop datafiles from a tablespace. 실수로 잘못 추가하는 등 원치 않는 크기의 데이터 파일이나 테이블을, 또는 데이터 공간을 사용하는 방법은 작아과 일부 데이터 파일을 제거되고 싶어, 또는 오라클 데이터베이스의 시도가 실패를 복구를 시작 누락되었거나 손상된 데이터 파일을 제거하여 그들로 인해 오라클, 사용자 인터페이스를 제공하지 않습니다 쉬운 방법으로 또는 테이블에서 데이터 파일을 삭제하거나 드롭합니다. Once a datafile is made part of a tablespace, it can no longer be detached or removed from the tablespace, albeit there are several workarounds. 테이블 공간 데이터 파일은 일부를 한 번 수있습니다 테이블에서 더 이상 분리하거나 제거 나마 해결 방법을 다양합니다.

How to Completely Drop the Whole Tablespace with All Datafiles 전체 테이블 공간을 완벽하게 드롭하는 방법의 모든 데이터 파일과

The easiest way to drop a or multiple datafiles is by dropping the entire tablespace together with its datafiles. 또는 여러 개의 데이터 파일을 떨어뜨릴 수있는 가장 쉬운 방법은 의도적으로 하락과 함께 테이블의 데이터 파일의 전체합니다. If you no longer need the data contents of the tablespace, the following command will drop the tablespace, the datafile, and the tablespace’s contents from the data dictionary. 데이터를 더 이상 필요하지 않으면 테이블의 내용을 다음과 같은 명령이 내려 테이블 공간, 데이터 파일, 그리고 테이블에서 데이터를 사전의 내용. All of the objects that where contained in that tablespace are permanently removed. 에 포함되어있는 개체가 어디에있는 모든 테이블이 영구적으로 제거합니다.

DROP TABLESPACE <tablespace name> INCLUDING CONTENTS AND DATAFILES; 드롭 테이블 <tablespace 이름 내용 및 데이터 파일 포함;

If you don’t specify “AND DATAFILES”, Oracle will not drop the physical datafile after the DROP TABLESPACE command, but you can always delete the files from operating system shell (If the data files are locked, restart the server). 지정하지 않을 경우 "와 데이터 파일", 오라클은 데이터 파일의 물리적 드롭 드롭 테이블 명령 이후에,하지만 당신은 항상 운영 체제에서 파일을 삭제합니다 셸 (경우에 데이터 파일이 잠겨 있으면 서버를 다시 시작합니다).

But always perform a backup of the database, as the “DROP TABLESPACE” command is irreversible. 하지만 항상 백업을 수행하는 데이터베이스,로 "드롭 테이블"명령이 돌이킬 수없는합니다. It’s also a good practice to check and identify how many datafiles a tablespace actually has before performing the drop action in order to avoid mistake. 그것도 좋은 연습을 확인하고 확인을 수행하기 전에 실제로는 얼마나 많은 테이블 공간 데이터 파일의 드롭 실수를 피하기 위해 행동을합니다.

How to Check How Many Datafiles a Tablespace Has 테이블 공간이 얼마나 많은 데이터 파일을 확인하는 방법

To determine and identify all datafiles that link to a tablespace, use the following query, with tablespace name in capital letter: 이 링크의 모든 데이터 파일을 확인하고 식별 테이블을 사용하여 다음과 같은 검색어를, 테이블 이름은 대문자 :

SELECT file_name, tablespace_name 파일 이름을 선택, tablespace_name
FROM dba_data_files dba_data_files에서
WHERE tablespace_name =’<tablespace name>’; 어디에 tablespace_name = '<tablespace 이름';

If a tablespace contains multiple datafiles, and you just want to drop one or some of the datafiles and keep the remaining datafiles together with the objects and contents, the objects or data must be exported for the affected table space. 이 테이블에 여러 개의 데이터 파일, 그리고 당신을 떨어뜨 단지 1 개 또는 데이터 파일의 일부와 함께 보관하는 개체의 나머지 데이터 파일과 내용에 영향을받는 개체 또는 테이블 공간에 대한 데이터를 내보낼되어야합니다. Once exported, the tablespace can be dropped with above “DROP TABLESPACE” command. 한때 수출의 하락으로 테이블 위의 수있습니다 "드롭 테이블"명령을합니다. Then, recreate the tablespace with the datafile(s) required (that you initially want to keep), and then import the objects into the recreated tablespace. 그 다음에 다시 테이블 공간 데이터 파일 (들)가 필요합니다 (이 처음에 소유하고 싶어하는)를 입력한 다음 다시 테이블 개체를 가져옵니다.

If one or more datafiles is missing after a recovery process or accidental deletion, you can use ALTER DATABASE DATAFILE <datafile name> OFFLINE DROP command to make the datafile offline so that database can starts up after which the troubled tablespace can be dropped. 만약 하나 이상의 데이터 파일이 누락 또는 우발적인 삭제 후 복구 프로세스를 사용할 수있습니다 드롭 명령을 오프라인으로 이름을 변경 데이터베이스 데이터 파일 <datafile 데이터 파일을 오프라인으로 있도록 데이터베이스를 시작한 후 문제가있는 테이블을 삭제할 수있습니다. (See (참조 instruction to recover from missing datafiles 누락된 데이터 파일을 복구하는 명령 .) 합니다.)

How to Resize a Datafile to Minimum Size 데이터 파일의 크기를 최소 크기로하는 방법을

Another alternative to drop the datafile is by shrinking the size of datafile instead of dropping. 또 다른 방법을 떨어뜨는 데이터 파일은 떨어지는 대신에 데이터 파일의 크기를 축소합니다. This option is only possible if there is no extents in the datafile. 이 옵션은 범위에서이없는 경우에만 데이터 파일 수있습니다. If there are none, it’s possible to resize the data file down to a very small file (2 blocks), where Oracle database will no longer create any extent in the datafile. 해당 없음, 들여볼 수있게 데이터 파일의 크기가 매우 작은 파일을 다운 (2 블록), 어디에 어떤 범위 내에서 오라클 데이터베이스는 더 이상의 데이터 파일 작성합니다. However, this workaround does not remove the datafile from tablespace nor delete the file physically, but it reduce the risk as no data will be truncated as only empty blocks are reduced. 그러나,이 문제 해결 방법도 제거되지 않습니다는 데이터 파일 테이블에서 파일을 삭제합니다 육체적으로, 그러나 그것의 위험을 줄이기로 잘린다에만 데이터가없습니다 빈 블록이 단축된다. It simply makes it unusable and takes up almost close to no disk space. 단순히 사용 불능이 그것을 차지하는 디스크 공간이 거의 주변없습니다. To resize a datafile, use the following query: 데이터 파일 크기를 조절하려면, 다음과 같은 검색어를 사용합니다 :

alter database datafile ‘<datafile name>’ resize 8M; 데이터베이스 데이터 파일을 변경 '<datafile 이름>'의 크기 8m;

How to Determine the Extents inside Datafile 익스텐트 내부 데이터 파일을 확인하는 방법

To check and determine the extents that exists in a datafile, use this query: 에 존재를 확인하고 범위를 결정하는 데이터 파일을 사용이 검색어 :

SELECT owner, segment_name 선택 소유자, segment_name
FROM dba_extents a, dba_data_files b dba_extents에서 a, dba_data_files b
WHERE a.file_id = b.file_id 어디에 a.file_id = b.file_id
AND b.file_name = ‘<datafile name>’ 그리고 b.file_name = '<datafile 이름>'

IMPORTANT : This is a machine translated page which is provided "as is" without warranty. 중요 사항 : 이것은 기계 번역 페이지는 "있는 그대로"제공하지 않고 보증합니다. Machine translation may be difficult to understand. 기계 번역을 이해하기 어려울 수있습니다. Please refer to 를 참조하시기 바랍니다 original English article 기존 영어 자료 whenever possible. 언제 수있습니다.

Share and contribute or get technical support and help at 를 공유하고 기술 지원 및 도움을 공헌하지 않는다면 My Digital Life Forums 내 디지털 라이프 공개 토론 . 합니다.



One Response to “How to Remove and Drop Datafiles from Tablespace in Oracle Database” 하나의 대응책을 "테이블에서 데이터 파일을 제거하는 방법을 놓기 오라클 데이터베이스"

  1. How Drop Tablespace and Recover Oracle Database When Accidentally Delete Datafile » My Digital Life 오라클 데이터베이스 테이블 공간 및 복구하는 방법을 드롭 실수로 데이터 파일을 삭제»내 디지털 라이프
    August 4th, 2007 02:55 2007년 8월 4일 02:55
    1

    [...] Tip: How to check datafiles that belong to tablespace. [...] 팁 : 데이터 파일을 확인하는 방법에 속하는 테이블합니다. [...]

Leave a Reply 남길 회신

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> 이러한 태그를 사용할 수있습니다 : <a href="" title=""> <acronym title=""> <abbr title=""> <blockquote cite=""> <b> <cite> <code> <델 날짜 = ""> <em> <i> <strike> '<q cite="">

Subscribe without commenting 논평없이 구독 신청
이메일


Custom Search

New Articles 새로운 기사

Incoming Search Terms for the Article 이 문서에 대한 검색어를 수신

oracle drop datafile 오라클 드롭 데이터 파일 - - oracle drop tablespace 오라클 드롭 테이블 - - drop datafile 드롭 데이터 파일 - - remove datafile 데이터 파일을 제거 - - Drop datafile oracle 드롭 오라클 데이터 파일 - - drop tablespace oracle 드롭 테이블 오라클 - - delete tablespace 테이블을 삭제 - - delete datafile 데이터 파일을 삭제 - - drop tablespace datafile 드롭 테이블 공간 데이터 파일 - - remove datafile oracle 오라클 데이터 파일을 제거 - - drop datafiles 드롭 데이터 파일 - - oracle remove datafile 오라클 데이터 파일을 제거 - - delete datafile oracle 오라클 데이터 파일을 삭제 - - drop tablespace command 드롭 테이블 명령을 - - drop oracle datafile 드롭 오라클 데이터 파일 - - oracle drop tablespace datafile 오라클 드롭 테이블 공간 데이터 파일 - - drop tablespace in oracle 오라클 드롭 테이블에서 - - oracle drop datafiles 오라클 드롭 데이터 파일 - - drop datafile from tablespace 드롭 테이블에서 데이터 파일 - - oracle delete tablespace 오라클 테이블을 삭제 - - oracle delete datafile 오라클 데이터 파일을 삭제 - - remove tablespace 테이블을 제거 - - drop tablespace and datafile 드롭 테이블 공간 및 데이터 파일 - - delete datafile from tablespace 테이블에서 데이터 파일을 삭제 - - oracle tablespace remove datafile 오라클 테이블 공간 데이터 파일을 제거 - - how to delete tablespace 테이블을 삭제하는 방법 - - delete tablespace oracle 오라클 테이블을 삭제 - - drop datafile + oracle 드롭 데이터 파일 + 오라클 - - oracle drop table 오라클 드롭 테이블을 - - drop tablespace including contents and datafiles 드롭 테이블 공간 데이터 파일 내용을 포함하여 - - drop datafiles oracle 드롭 데이터 오라클 - - drop tablespace file 드롭 테이블 파일을 - - drop datafile in oracle 오라클 데이터 파일을 내려 - - drop data file 드롭 데이터 파일을 - - oracle remove datafile from tablespace 오라클 테이블에서 데이터 파일을 제거 - - delete oracle datafile 오라클 데이터 파일을 삭제 - - drop tablespace with datafile 드롭 테이블과 데이터 파일 - - datafile drop 데이터 파일 드롭 - - oracle drop tablespace file 오라클 드롭 테이블 파일을 - - oracle remove data file 오라클 데이터 파일을 제거하는 - - drop tablespace datafiles 드롭 테이블 공간 데이터 파일 - - how to drop tablespace in oracle 오라클 테이블에 드롭하는 방법을 - - drop datafile 드롭 데이터 파일 - - drop tablespace including datafiles 드롭 테이블 공간 데이터 파일 포함 - - how to remove datafile 데이터 파일을 제거하는 방법 - - Oracle datafile drop 오라클 데이터 파일 드롭 - - all 모두 - - delete datafiles oracle 오라클 데이터 파일을 삭제 - - oracle empty datafile 오라클 빈 데이터 파일 - - oracle delete DATAFILES 오라클 데이터 파일을 삭제 - -