IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Oracle Discussion :

import partiel oracle 10g


Sujet :

Oracle

  1. #1
    Membre à l'essai
    Profil pro
    Inscrit en
    Juillet 2009
    Messages
    30
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juillet 2009
    Messages : 30
    Points : 22
    Points
    22
    Par défaut import partiel oracle 10g
    Bonjour,

    j'ai une base oracle 10g et j'ai besoin de faire un import partiel pour faire des mises à jour de certaines tables (effacer ancienne table puis import nouvelle table, comment faire ?

    Merci.

  2. #2
    Membre expérimenté Avatar de fatsora
    Profil pro
    Inscrit en
    Février 2006
    Messages
    1 103
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2006
    Messages : 1 103
    Points : 1 332
    Points
    1 332
    Par défaut
    Bonjour,

    En 10G tu as DATAPUMP

    http://jaouad.developpez.com/datapump/

    et avec IMPDP utiliser l'option TABLE_EXITS_ACTION
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    TABLE_EXISTS_ACTION={SKIP | APPEND | TRUNCATE | REPLACE}
     
     
    The possible values have the following effects:
     
        *
     
          SKIP leaves the table as is and moves on to the next object. This is not a valid option if the CONTENT parameter is set to DATA_ONLY.
        *
     
          APPEND loads rows from the source and leaves existing rows unchanged.
        *
     
          TRUNCATE deletes existing rows and then loads rows from the source.
        *
     
          REPLACE drops the existing table and then creates and loads it from the source. This is not a valid option if the CONTENT parameter is set to DATA_ONLY.
     
    The following considerations apply when you are using these options:
     
        *
     
          When you use TRUNCATE or REPLACE, make sure that rows in the affected tables are not targets of any referential constraints.
        *
     
          When you use SKIP, APPEND, or TRUNCATE, existing table-dependent objects in the source, such as indexes, grants, triggers, and constraints, are ignored. For REPLACE, the dependent objects are dropped and re-created from the source, if they were not explicitly or implicitly excluded (using EXCLUDE) and they exist in the source dump file or system.
        *
     
          When you use APPEND or TRUNCATE, checks are made to ensure that rows from the source are compatible with the existing table prior to performing any action.
     
          The existing table is loaded using the external tables access method if the existing tables have active constraints and triggers. However, be aware that if any row violates an active constraint, the load fails and no data is loaded.
     
          If you have data that must be loaded, but may cause constraint violations, consider disabling the constraints, loading the data, and then deleting the problem rows before reenabling the constraints.
        *
     
          When you use APPEND, the data is always loaded into new space; existing space, even if available, is not reused. For this reason, you may wish to compress your data after the load.

    Plus d'info ici

    http://download.oracle.com/docs/cd/B....htm#sthref365

    asktom.oracle.com tahiti.oracle.com otn.oracle.com

    Quand un homme a faim, mieux vaut lui apprendre à pêcher que de lui donner un poisson.


    phrase chinoise issue du Huainanzi

  3. #3
    Membre à l'essai
    Profil pro
    Inscrit en
    Juillet 2009
    Messages
    30
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juillet 2009
    Messages : 30
    Points : 22
    Points
    22
    Par défaut
    ca marche, merci.

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Import Dump Oracle 10g / Tablespace et User
    Par kirsito dans le forum Oracle
    Réponses: 5
    Dernier message: 10/08/2009, 12h37
  2. Réponses: 8
    Dernier message: 12/12/2007, 15h35
  3. Import dumpfile Oracle 10g
    Par dumser1 dans le forum Import/Export
    Réponses: 30
    Dernier message: 05/09/2007, 10h35
  4. Probleme importer une base oracle 10g
    Par amigauss dans le forum Oracle
    Réponses: 12
    Dernier message: 16/11/2006, 12h34
  5. Exporter et importer une BD Oracle 10g ?
    Par titexe dans le forum Oracle
    Réponses: 2
    Dernier message: 08/06/2006, 11h27

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo