메뉴 건너뛰기

tnt_db

DB2 DB를 백업받을때

원우석 2004.07.31 12:56 조회 수 : 2811 추천:60

1. export 때 받을 위치로 이동해서 다음과 같이 명령을 주면
   db2move [dbname] export -sn [schemaname] -l [destination]
   destination에 데이터 파일이 생성된다.
  
   예]db2move nrsdb export -sn nrsinst -l /home/nrsinst/bk
                           -sn nrs     -l /home/nrsinst/bk
                           -tc nrs     -l /home/nrsinst/bk
                           -ts ts이름  -l /home/nrsinst/bk

2. db2move nrsdb import -io insert         -sn nrsinst -l /home/nrsinst/bk
                            replace        -sn nrsinst -l /home/nrsinst/bk
                            replace_create -sn nrsinst -l /home/nrsinst/bk
위로