database.sarang.net
UserID
Passwd
Database
DBMS
MySQL
PostgreSQL
Firebird
ㆍOracle
Informix
Sybase
MS-SQL
DB2
Cache
CUBRID
LDAP
ALTIBASE
Tibero
DB 문서들
스터디
Community
공지사항
자유게시판
구인|구직
DSN 갤러리
도움주신분들
Admin
운영게시판
최근게시물
Oracle Tutorials 9053 게시물 읽기
 News | Q&A | Columns | Tutorials | Devel | Files | Links
No. 9053
Data와 Index가 같은 tablespace에 있는 경우 를 분리하는 방법
작성자
정재익(advance)
작성일
2001-12-25 13:43
조회수
4,791

scott user의 자료가 user라는 TableSpace에 이미 Table의 Data뿐만 아니라

 

Index까지 같이 저장되어 있는 경우, 이를 jclee user로 올기고

 

user_i라는 인덱스 tablesapce에 인덱스만 분리할려고 할때를 생각해보자,

 

만약 인덱스가 몇개 없다면 지우면 users_i tablespace에 다시 만들면되나,

 

이경우는 아주 방대한 양의 인덱스를 옮기는 경우라고 생각을 하자...

 

 

1. scott user의 data를 export하자

oracle:/usr/local>exp scott/toger file=scottuser.dmp

 

2. Export받은 파일에서 index를 제외한 부분만 import

oracle:/usr/local>import system/manager file=scottuser.dmp fromuser=scott touser=jcleem indexes=n

 

3. indexfile option을 이용하여 인덱스 대한 script 를 생성하자

oracle:/usr/local>imp system/manager file=scottuser.dmp indexfile=scottindex.sql

 

4. 위의 스크립트에서 index 샹성부분의 tablespace 부분을 원하는

user_i로 만들어 주자. 그리구 @FileName으로 수행하자..

[Top]
No.
제목
작성자
작성일
조회
9058EXCEPTION TABLE을 이용하여 중복된 자료를 확인하는 방법 [1]
정재익
2001-12-25
6592
9057ORA-1555에 관해
정재익
2001-12-25
5127
9054ora-01034 처리방법
정재익
2001-12-25
7488
9053Data와 Index가 같은 tablespace에 있는 경우 를 분리하는 방법
정재익
2001-12-25
4791
9052Oracle 8i의 Migration workbench
정재익
2001-12-25
5184
9051Repository 생성 절차
정재익
2001-12-25
4064
9049Oracle을 외부 네트워크로 열어주고자 할때(MTS인 경우)
정재익
2001-12-25
4220
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2024 DSN, All rights reserved.
작업시간: 0.024초, 이곳 서비스는
	PostgreSQL v16.2로 자료를 관리합니다