DBAsupport.com Forums - Powered by vBulletin
Results 1 to 8 of 8

Thread: Incremental backups

  1. #1
    Join Date
    Mar 2008
    Posts
    140

    Incremental backups

    Hi, How to perform incremental backups using datapump in 10g?

  2. #2
    Join Date
    Mar 2007
    Location
    Ft. Lauderdale, FL
    Posts
    3,555
    You don't.
    Since you cannot recover a database from a dump file created either by expdp or exp those are not appropriate backup tools.
    Try rman.
    Pablo (Paul) Berzukov

    Author of Understanding Database Administration available at amazon and other bookstores.

    Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.

  3. #3
    Join Date
    Mar 2008
    Posts
    140
    You mean using datapump we cannot perform incremental backups, I want to setup incremental backup for recovering tables, not whole database.

  4. #4
    Join Date
    Mar 2007
    Location
    Ft. Lauderdale, FL
    Posts
    3,555
    Quote Originally Posted by iris View Post
    You mean using datapump we cannot perform incremental backups, I want to setup incremental backup for recovering tables, not whole database.
    Datapump has not support for incremental.

    On the other hand I remember reading a paper where somebody simulated such a thing.

    Here is what I remember. No delete operation was allowed on target table, dba added a timestamp column to be updated on insert/update operations.

    After that, dba used expdp WHERE clause to filter what to dump.

    Please do not construct previous comment as my advise to follow such path.
    Pablo (Paul) Berzukov

    Author of Understanding Database Administration available at amazon and other bookstores.

    Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.

  5. #5
    Join Date
    Mar 2008
    Posts
    140
    Then what is the main advantage of datapumps? I mean we would have written scripts for incremental/cummulative/complete backup scripts and schedule it to run with cronjob. Now using datapump how to do this task?


    thanks,

  6. #6
    Join Date
    Jul 2006
    Posts
    195
    If you want to recover a table at a time, thanwhy not put each table in its own tablespace and you can use RMAN to recover a particular tablespace.

    Having said that, recoving a singlee table is really not good practice.

    For example:

    create table department(
    dept_id number,
    location varchar2(20),
    CONSTRAINT pk_department PRIMARY KEY (dept_id));


    create table employee(
    emp_id number,
    dept_id number,
    salary number,
    CONSTRAINT pk_employee PRIMARY KEY (emp_id),
    CONSTRAINT fk_empl_dept FOREIGN KEY (dept_id) REFERENCES department (dept_id));

    If you recover deptartment table from a backup you may have a record in your employee table that references a deptartment record that does not exist.

    RMAN is a very powerful tool, especially used with a catalog. You may want to read up on it.

    Good luck

  7. #7
    Join Date
    Jul 2002
    Location
    Lake Worth, FL
    Posts
    1,492

    Cool Fra

    Quote Originally Posted by iris View Post
    Hi, How to perform incremental backups using datapump in 10g?
    Use the Flash Recovery functionality for those tables you wish to recover.
    "The person who says it cannot be done should not interrupt the person doing it." --Chinese Proverb

  8. #8
    Join Date
    Sep 2002
    Location
    England
    Posts
    7,334
    Quote Originally Posted by iris View Post
    Then what is the main advantage of datapumps? I mean we would have written scripts for incremental/cummulative/complete backup scripts and schedule it to run with cronjob. Now using datapump how to do this task?


    thanks,
    datapump is not a backup tool, to do backups - use a backup tool

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width