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.
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.
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
Vous avez un bloqueur de publicités installé.
Le Club Developpez.com n'affiche que des publicités IT, discrètes et non intrusives.
Afin que nous puissions continuer à vous fournir gratuitement du contenu de qualité, merci de nous soutenir en désactivant votre bloqueur de publicités sur Developpez.com.
Partager