Oracle 원 격 내 보 내기 imp / exp 가 져 오기

1. 우선 클 라 이언 트 에 서버 쪽 에 대응 하 는 서비스 이름 만 들 기
//   .  tnsnames.ora  ,          (D:\app\Admin\product\11.1.0\db_1\NETWORK\ADMIN   tnsnames.ora  ):
TEST_ORCL =   
(DESCRIPTION =   
    (ADDRESS_LIST =   
      (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.110)(PORT = 1521))   
    )   
    (CONNECT_DATA =   
      (SERVICE_NAME = orcl)   
    )   
)
//   . oracle   ,  net manager。        TEST_ORCL,  IP :192.168.1.110,   orcl,  1521

2. 원 격 서버 가 원활 한 지 테스트
   cmd ,    :tnsping TEST_ORCL。//       

3. 사례: 사용자 프로젝트 내 보 내기
//   :
exp luob/tiger@TEST_ORCL file=d:\back.dmp  //(   owner)
//   :
exp luob/tiger@TEST_ORCL owner=scott file=d:\back1.dmp 

4. 사례: 원 격 서버 의 luob 사용자 방안 을 로 컬 zhangs 아래 에 가 져 옵 니 다.
imp zhangs/tiger@orcl file=d:\back.dmp fromuser=luob touser=zhangs

5. 증분 내 보 내기 / 가 져 오기  inctype( complete ,incremental ,cumulative)
//1.  :                ,            ,      SYSTEM   。        ,           。         export.dmp,               export.dmp,               。 
//2 “  ”    (Complete)        ,  :
exp   system/manager   inctype=complete   file=990702.dmp 
//3  “   ”                   。  : 
exp   system/manager   inctype=incremental   file=990702.dmp
//4. “   ”    (Cumulative)                “  ”                 。  :[size=medium][/size]
exp   system/manager   inctype=cumulative   file=990702.dmp

6. 사례: 데이터 관리자 로 서 백업 일정 표를 설정 하고 데이터 로 내 보 내 는 세 가지 서로 다른 방식 으로 합 리 적 이 고 효율 적 으로 완성 할 수 있 습 니 다.예 를 들 어 데이터베이스 백업 작업 은 다음 과 같이 할 수 있 습 니 다.
   :    (A)  
   :    (B)  
   :    (C)  
   :    (D)  
   :    (E)  
   :    (F)  
   :    (G)
//      ,         ,                  : 
   :   CREATE   DATABASE         ;
   :       (   )。create   public   rollback   segment   your_rb_name   tablespace   RBS storage(initial   3M   next   3M     minextents   10   optimal   500M);
   :      A:
imp   system./manager   inctype=rectore  full=y   file=A
   :      E:
imp   system/manager   inctype=rectore  full=y   file=E 
   :      F:
imp   system/manager   inctype=rectore  full=y  file=F   

7. 다른 대상 의 가 져 오기 내 보 내기 와
로 컬 가 져 오기 내 보 내기 명령 과 같 습 니 다.

좋은 웹페이지 즐겨찾기