scott계정의 테이블과 데이터를 다른 사용자에
복사는 방법은 exp/imp를 사용하시면 됩니다.
아래 순서대로 실행해보세요.


1.scott schema export
exp scott/tiger
Enter array fetch buffer size: 4096 > (엔터)
Export file: expdat.dmp > (엔터)
(1)E(ntire database), (2)U(sers), or (3)T(ables): (2)U > (엔터)
Export grants (yes/no): yes > (엔터)
Export table data (yes/no): yes > (엔터)
Compress extents (yes/no): yes > (엔터)
Export done in KO16KSC5601 character set and UTF8 NCHAR character set
About to export specified users ...
User to be exported: (RETURN to quit) > (엔터)

위 순서처럼 실행하면 scott계정에서 데이터를
export할수 있습니다.

2. test 계정으로 export된 데이터 import(test계정은 만들어진
상태여야 함)

imp system/oracle file=expdat.dmp fromuser=scott touser=test


이렇게 하면 scott유저의 table및 데이터가 test 계정으로
복사가 됩니다.


Posted by ilus


,