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

Import/Export Oracle Discussion :

Importer un dumpfile avec un datapump import


Sujet :

Import/Export Oracle

  1. #1
    Membre à l'essai
    Homme Profil pro
    Administrateur de base de données
    Inscrit en
    Mars 2014
    Messages
    18
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Cameroun

    Informations professionnelles :
    Activité : Administrateur de base de données

    Informations forums :
    Inscription : Mars 2014
    Messages : 18
    Points : 11
    Points
    11
    Par défaut Importer un dumpfile avec un datapump import
    bonjour je voudrais importer un dumpfile dans un user
    voila le script que j'ai fait:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
     impdp joresenergizer/cnps directory=jorespump dumpfile=jores11.dmp remap_schema=energizer:joresenerizer
    ci-dessous vous avez l'erreur de mon interface que j'ai copié

    Microsoft Windows [version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation. Tous droits réservés.

    C:\Users\stagiaires> impdp joresenergizer/cnps directory=jorespump dumpfile=jores11.dmp remap_schema=energizer:joresenerizer

    Import: Release 11.2.0.2.0 - Beta on Ven. Juin 27 18:05:54 2014

    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.

    Connected to: Oracle Database 11g Express Edition Release 11.2.0.2.0 - Beta
    Master table "JORESENERGIZER"."SYS_IMPORT_FULL_01" successfully loaded/unloaded
    Starting "JORESENERGIZER"."SYS_IMPORT_FULL_01": joresenergizer/******** directory=jorespump dumpfile=jores11.dmp remap_schema=energizer:joresene
    rizer
    Processing object type TABLE_EXPORT/TABLE/TABLE
    ORA-39083: Object type TABLE:"JORESENERIZER"."JASSURE" failed to create with error:
    ORA-01918: user 'JORESENERIZER' does not exist
    Failing sql is:
    CREATE TABLE "JORESENERIZER"."JASSURE" ("NUM_ASSU" VARCHAR2(13 CHAR) NOT NULL ENABLE, "NOM_ASSU" VARCHAR2(60 CHAR), "PRENOM_ASSU" VARCHAR2(60 CHA
    R), "DATE_NAISS_ASSU" DATE, "NOM_JEUNE_FILLE_ASSU" VARCHAR2(25 CHAR), "SEXE_ASSU" VARCHAR2(1 CHAR), "CIVILITE_ASSU" VARCHAR2(5 CHAR), "TEL_ASSU"
    VARCHAR2(20 CHAR), "FAX_ASSU" VARCHAR2(20 CHAR), "EMAIL_ASSU" VARCHAR2(50
    ORA-39083: Object type TABLE:"JORESENERIZER"."TCOMPTE_ASSURE" failed to create with error:
    ORA-01918: user 'JORESENERIZER' does not exist
    Failing sql is:
    CREATE TABLE "JORESENERIZER"."TCOMPTE_ASSURE" ("NUMERO_DIPE" NUMBER(5,0) NOT NULL ENABLE, "NUMERO_CONTRIB" VARCHAR2(20 CHAR) DEFAULT NULL, "MOIS_
    DIPE" NUMBER(2,0) NOT NULL ENABLE, "MATRICULE_EMPL" VARCHAR2(17 CHAR) NOT NULL ENABLE, "REGIME" NUMBER(1,0) NOT NULL ENABLE, "ANNEE" NUMBER(4,0)
    NOT NULL ENABLE, "MATRICULE_ASS" VARCHAR2(13 BYTE) DEFAULT NULL, "
    ORA-39083: Object type TABLE:"JORESENERIZER"."JASSURE_DELETE2" failed to create with error:
    ORA-01918: user 'JORESENERIZER' does not exist
    Failing sql is:
    CREATE TABLE "JORESENERIZER"."JASSURE_DELETE2" ("NUM_ASSU" VARCHAR2(13 CHAR) NOT NULL ENABLE, "NOM_ASSU" VARCHAR2(60 CHAR), "PRENOM_ASSU" VARCHAR
    2(60 CHAR), "DATE_NAISS_ASSU" DATE, "NOM_JEUNE_FILLE_ASSU" VARCHAR2(25 CHAR), "SEXE_ASSU" VARCHAR2(1 CHAR), "CIVILITE_ASSU" VARCHAR2(5 CHAR), "TE
    L_ASSU" VARCHAR2(20 CHAR), "FAX_ASSU" VARCHAR2(20 CHAR), "EMAIL_A
    ORA-39083: Object type TABLE:"JORESENERIZER"."JEMPLOYEUR" failed to create with error:
    ORA-01918: user 'JORESENERIZER' does not exist
    Failing sql is:
    CREATE TABLE "JORESENERIZER"."JEMPLOYEUR" ("NUM_EMPLOYEUR" VARCHAR2(17 CHAR) NOT NULL ENABLE, "RAISON_SOCIALE" VARCHAR2(200 CHAR), "SIGLE" VARCHA
    R2(30 CHAR), "ADRESSE_EMPLOYEUR" VARCHAR2(100 CHAR), "BOITE_POSTALE" VARCHAR2(10 CHAR), "TEL" VARCHAR2(30 CHAR), "FAX" VARCHAR2(20 CHAR), "EMAIL"
    VARCHAR2(50 CHAR), "CODE_ARROND" VARCHAR2(6 CHAR), "CODE_PAYS" VARCHA
    Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
    Processing object type TABLE_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT
    Processing object type TABLE_EXPORT/TABLE/INDEX/INDEX
    Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
    Processing object type TABLE_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
    ORA-39083: Object type INDEX_STATISTICS failed to create with error:
    ORA-20000: INDEX "ERIC_NGAH"."CIRCUIT_DOSSIEREM_FK_IDX" does not exist or insufficient privileges
    Failing sql is:
    DECLARE I_N VARCHAR2(60); I_O VARCHAR2(60); NV VARCHAR2(1); c DBMS_METADATA.T_VAR_COLL; df varchar2(21) := 'YYYY-MM-DD:HH24:MI:SS'; stmt
    varchar2(300) := ' INSERT INTO "SYS"."IMPDP_STATS" (type,version,flags,c1,c2,c3,c5,n1,n2,n3,n4,n5,n6,n7,n8,n9,n10,n11,n12,d1,cl1) VALUES (''I'',
    6,:1,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11,
    ORA-39083: Object type INDEX_STATISTICS failed to create with error:
    ORA-20000: INDEX "ERIC_NGAH"."JEMPLOYEUR_LIEUNAISS_IDX" does not exist or insufficient privileges
    Failing sql is:
    DECLARE I_N VARCHAR2(60); I_O VARCHAR2(60); NV VARCHAR2(1); c DBMS_METADATA.T_VAR_COLL; df varchar2(21) := 'YYYY-MM-DD:HH24:MI:SS'; stmt
    varchar2(300) := ' INSERT INTO "SYS"."IMPDP_STATS" (type,version,flags,c1,c2,c3,c5,n1,n2,n3,n4,n5,n6,n7,n8,n9,n10,n11,n12,d1,cl1) VALUES (''I'',
    6,:1,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11,
    ORA-39083: Object type INDEX_STATISTICS failed to create with error:
    ORA-20000: INDEX "ERIC_NGAH"."FK_CODENA_JEMPLOYEUR_IDX" does not exist or insufficient privileges
    Failing sql is:
    DECLARE I_N VARCHAR2(60); I_O VARCHAR2(60); NV VARCHAR2(1); c DBMS_METADATA.T_VAR_COLL; df varchar2(21) := 'YYYY-MM-DD:HH24:MI:SS'; stmt
    varchar2(300) := ' INSERT INTO "SYS"."IMPDP_STATS" (type,version,flags,c1,c2,c3,c5,n1,n2,n3,n4,n5,n6,n7,n8,n9,n10,n11,n12,d1,cl1) VALUES (''I'',
    6,:1,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11,
    Processing object type TABLE_EXPORT/TABLE/COMMENT
    Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
    Processing object type TABLE_EXPORT/TABLE/TRIGGER
    Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
    Job "JORESENERGIZER"."SYS_IMPORT_FULL_01" completed with 7 error(s) at 18:05:58


    C:\Users\stagiaires>
    Bien vouloir m'aider SVP

    MERCI

  2. #2
    Membre éclairé
    Avatar de Etanne
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Novembre 2003
    Messages
    469
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 40
    Localisation : France, Haut Rhin (Alsace)

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Novembre 2003
    Messages : 469
    Points : 855
    Points
    855
    Par défaut
    Aaaah les stagiaires et la flemme de chercher !

    Bon, plus sérieusement, je vous conseil de bien lire ce que Oracle a inscrit :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    Connected to: Oracle Database 11g Express Edition Release 11.2.0.2.0 - Beta
    Master table "JORESENERGIZER"."SYS_IMPORT_FULL_01" successfully loaded/unloaded
    Starting "JORESENERGIZER"."SYS_IMPORT_FULL_01": joresenergizer/******** directory=jorespump dumpfile=jores11.dmp remap_schema=energizer:joresene
    rizer
    Processing object type TABLE_EXPORT/TABLE/TABLE
    ORA-39083: Object type TABLE:"JORESENERIZER"."JASSURE" failed to create with error:
    ORA-01918: user 'JORESENERIZER' does not exist
    Failing sql is:
    CREATE TABLE "JORESENERIZER"."JASSURE" ("NUM_ASSU" VARCHAR2(13 CHAR) NOT NULL ENABLE, "NOM_ASSU" VARCHAR2(60 CHAR), "PRENOM_ASSU" VARCHAR2(
    L'utilisateur JORESENERIZER n'existe pas et il faut donc le créer !

    Etanne
    "Phylactère temporaire" = tooltips

    Votre problème a été résolu ? Alors utilisez sur et

  3. #3
    Membre à l'essai
    Homme Profil pro
    Administrateur de base de données
    Inscrit en
    Mars 2014
    Messages
    18
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Cameroun

    Informations professionnelles :
    Activité : Administrateur de base de données

    Informations forums :
    Inscription : Mars 2014
    Messages : 18
    Points : 11
    Points
    11
    Par défaut IMPORTER UN DUMPFILE AVEC UN DATAPUMP IMPORT
    Excusez moi c'est une erreur.
    je l'ai corrigé
    malgré cela j'ai toujours des erreurs
    voilà ci-dessous ce que me renvoie toujours mon interface

    Microsoft Windows [version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation. Tous droits réservés.

    C:\Users\stagiaires>impdp joresenergizer/cnps directory=jorespump dumpfile=jores11.dmp remap_schema=energizer:joresenergizer

    Import: Release 11.2.0.2.0 - Beta on Sam. Juin 28 12:46:07 2014

    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.

    Connected to: Oracle Database 11g Express Edition Release 11.2.0.2.0 - Beta
    Master table "JORESENERGIZER"."SYS_IMPORT_FULL_01" successfully loaded/unloaded
    Starting "JORESENERGIZER"."SYS_IMPORT_FULL_01": joresenergizer/******** directory=jorespump dumpfile=jores11.dmp remap_schema=energizer:joresene
    rgizer
    Processing object type TABLE_EXPORT/TABLE/TABLE
    ORA-39083: Object type TABLE:"JORESENERGIZER"."JASSURE" failed to create with error:
    ORA-00959: tablespace 'CNPS_ENERGIZER_TB' does not exist
    Failing sql is:
    CREATE TABLE "JORESENERGIZER"."JASSURE" ("NUM_ASSU" VARCHAR2(13 CHAR) NOT NULL ENABLE, "NOM_ASSU" VARCHAR2(60 CHAR), "PRENOM_ASSU" VARCHAR2(60 CH
    AR), "DATE_NAISS_ASSU" DATE, "NOM_JEUNE_FILLE_ASSU" VARCHAR2(25 CHAR), "SEXE_ASSU" VARCHAR2(1 CHAR), "CIVILITE_ASSU" VARCHAR2(5 CHAR), "TEL_ASSU"
    VARCHAR2(20 CHAR), "FAX_ASSU" VARCHAR2(20 CHAR), "EMAIL_ASSU"
    ORA-39083: Object type TABLE:"JORESENERGIZER"."TCOMPTE_ASSURE" failed to create with error:
    ORA-00959: tablespace 'CNPS_ENERGIZER_TB' does not exist
    Failing sql is:
    CREATE TABLE "JORESENERGIZER"."TCOMPTE_ASSURE" ("NUMERO_DIPE" NUMBER(5,0) NOT NULL ENABLE, "NUMERO_CONTRIB" VARCHAR2(20 CHAR) DEFAULT NULL, "MOIS
    _DIPE" NUMBER(2,0) NOT NULL ENABLE, "MATRICULE_EMPL" VARCHAR2(17 CHAR) NOT NULL ENABLE, "REGIME" NUMBER(1,0) NOT NULL ENABLE, "ANNEE" NUMBER(4,0)
    NOT NULL ENABLE, "MATRICULE_ASS" VARCHAR2(13 BYTE) DEF
    ORA-39083: Object type TABLE:"JORESENERGIZER"."JASSURE_DELETE2" failed to create with error:
    ORA-00959: tablespace 'CNPS_ENERGIZER_TB' does not exist
    Failing sql is:
    CREATE TABLE "JORESENERGIZER"."JASSURE_DELETE2" ("NUM_ASSU" VARCHAR2(13 CHAR) NOT NULL ENABLE, "NOM_ASSU" VARCHAR2(60 CHAR), "PRENOM_ASSU" VARCHA
    R2(60 CHAR), "DATE_NAISS_ASSU" DATE, "NOM_JEUNE_FILLE_ASSU" VARCHAR2(25 CHAR), "SEXE_ASSU" VARCHAR2(1 CHAR), "CIVILITE_ASSU" VARCHAR2(5 CHAR), "T
    EL_ASSU" VARCHAR2(20 CHAR), "FAX_ASSU" VARCHAR2(20 CHA
    ORA-39083: Object type TABLE:"JORESENERGIZER"."JEMPLOYEUR" failed to create with error:
    ORA-00959: tablespace 'CNPS_ENERGIZER_TB' does not exist
    Failing sql is:
    CREATE TABLE "JORESENERGIZER"."JEMPLOYEUR" ("NUM_EMPLOYEUR" VARCHAR2(17 CHAR) NOT NULL ENABLE, "RAISON_SOCIALE" VARCHAR2(200 CHAR), "SIGLE" VARCH
    AR2(30 CHAR), "ADRESSE_EMPLOYEUR" VARCHAR2(100 CHAR), "BOITE_POSTALE" VARCHAR2(10 CHAR), "TEL" VARCHAR2(30 CHAR), "FAX" VARCHAR2(20 CHAR), "EMAIL
    " VARCHAR2(50 CHAR), "CODE_ARROND" VARCHAR2(6 CHAR), "CODE_
    Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
    Processing object type TABLE_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT
    Processing object type TABLE_EXPORT/TABLE/INDEX/INDEX
    Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
    Processing object type TABLE_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
    ORA-39083: Object type INDEX_STATISTICS failed to create with error:
    ORA-20000: INDEX "ERIC_NGAH"."CIRCUIT_DOSSIEREM_FK_IDX" does not exist or insufficient privileges
    Failing sql is:
    DECLARE I_N VARCHAR2(60); I_O VARCHAR2(60); NV VARCHAR2(1); c DBMS_METADATA.T_VAR_COLL; df varchar2(21) := 'YYYY-MM-DD:HH24:MI:SS'; stmt
    varchar2(300) := ' INSERT INTO "SYS"."IMPDP_STATS" (type,version,flags,c1,c2,c3,c5,n1,n2,n3,n4,n5,n6,n7,n8,n9,n10,n11,n12,d1,cl1) VALUES (''I'',
    6,:1,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11,
    ORA-39083: Object type INDEX_STATISTICS failed to create with error:
    ORA-20000: INDEX "ERIC_NGAH"."JEMPLOYEUR_LIEUNAISS_IDX" does not exist or insufficient privileges
    Failing sql is:
    DECLARE I_N VARCHAR2(60); I_O VARCHAR2(60); NV VARCHAR2(1); c DBMS_METADATA.T_VAR_COLL; df varchar2(21) := 'YYYY-MM-DD:HH24:MI:SS'; stmt
    varchar2(300) := ' INSERT INTO "SYS"."IMPDP_STATS" (type,version,flags,c1,c2,c3,c5,n1,n2,n3,n4,n5,n6,n7,n8,n9,n10,n11,n12,d1,cl1) VALUES (''I'',
    6,:1,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11,
    ORA-39083: Object type INDEX_STATISTICS failed to create with error:
    ORA-20000: INDEX "ERIC_NGAH"."FK_CODENA_JEMPLOYEUR_IDX" does not exist or insufficient privileges
    Failing sql is:
    DECLARE I_N VARCHAR2(60); I_O VARCHAR2(60); NV VARCHAR2(1); c DBMS_METADATA.T_VAR_COLL; df varchar2(21) := 'YYYY-MM-DD:HH24:MI:SS'; stmt
    varchar2(300) := ' INSERT INTO "SYS"."IMPDP_STATS" (type,version,flags,c1,c2,c3,c5,n1,n2,n3,n4,n5,n6,n7,n8,n9,n10,n11,n12,d1,cl1) VALUES (''I'',
    6,:1,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11,
    Processing object type TABLE_EXPORT/TABLE/COMMENT
    Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
    Processing object type TABLE_EXPORT/TABLE/TRIGGER
    Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
    Job "JORESENERGIZER"."SYS_IMPORT_FULL_01" completed with 7 error(s) at 12:46:18


    C:\Users\stagiaires>

    je suis toujours coincé
    Aidez moi SVP
    merci

  4. #4
    Membre éclairé
    Avatar de Etanne
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Novembre 2003
    Messages
    469
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 40
    Localisation : France, Haut Rhin (Alsace)

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Novembre 2003
    Messages : 469
    Points : 855
    Points
    855
    Par défaut
    Avez-vous lu les messages ?!

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    Connected to: Oracle Database 11g Express Edition Release 11.2.0.2.0 - Beta
    Master table "JORESENERGIZER"."SYS_IMPORT_FULL_01" successfully loaded/unloaded
    Starting "JORESENERGIZER"."SYS_IMPORT_FULL_01": joresenergizer/******** directory=jorespump dumpfile=jores11.dmp remap_schema=energizer:joresene
    rgizer
    Processing object type TABLE_EXPORT/TABLE/TABLE
    ORA-39083: Object type TABLE:"JORESENERGIZER"."JASSURE" failed to create with error:
    ORA-00959: tablespace 'CNPS_ENERGIZER_TB' does not exist
    Failing sql is:
    CREATE TABLE "JORESENERGIZER"."JASSURE" ("NUM_ASSU" VARCHAR2(13 CHAR) NOT NULL ENABLE, "NOM_ASSU" VARCHAR2(60 CHAR), "PRENOM_ASSU" VARCHAR2(60 CH
    AR), "DATE_NAISS_ASSU" DATE, "NOM_JEUNE_FILLE_ASSU" VARCHAR2(25 CHAR), "SEXE_ASSU" VARCHAR2(1 CHAR), "CIVILITE_ASSU" VARCHAR2(5 CHAR), "TEL_ASSU"
    VARCHAR2(20 CHAR), "FAX_ASSU" VARCHAR2(20 CHAR), "EMAIL_ASSU"
    "Phylactère temporaire" = tooltips

    Votre problème a été résolu ? Alors utilisez sur et

  5. #5
    Membre à l'essai
    Homme Profil pro
    Administrateur de base de données
    Inscrit en
    Mars 2014
    Messages
    18
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Cameroun

    Informations professionnelles :
    Activité : Administrateur de base de données

    Informations forums :
    Inscription : Mars 2014
    Messages : 18
    Points : 11
    Points
    11
    Par défaut [11gR2] Importer un dumpfile avec un datapump import
    justement c'est là que je suis coincé!

    En faite, le tablespaces(CNPS_ENERGIZER_TB) est celui de la BD d'où vient le dumpfile.

    Faut_il que je le créé aussi dans ma BD destinataire 'joresenergizer'?
    où alors ya t_il des options qu'il faut ajouter à mon script?
    si oui,lesquels car moi je n'ai pas d’idée!!!!
    Merci pour votre compréhension

  6. #6
    Membre confirmé
    Femme Profil pro
    Administrateur de base de données
    Inscrit en
    Novembre 2007
    Messages
    419
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France

    Informations professionnelles :
    Activité : Administrateur de base de données

    Informations forums :
    Inscription : Novembre 2007
    Messages : 419
    Points : 616
    Points
    616
    Par défaut
    bonsoir,

    pour importer des objets qui n'ont pas été exportés par soi, qui appartiennent à un autre schéma il faut avoir le privilège imp_full_database.
    grantez le à joresenergizer. sinon le user system est une bonne piste pour l'import
    et les imports d'export fulls sont à réfléchir : pourquoi recréer un tablespace? créer le user cible avec un tablespace par défaut où les objets seront stockés parait plus simple. il faut éviter la facilité du full autant que possible

  7. #7
    Membre à l'essai
    Homme Profil pro
    Administrateur de base de données
    Inscrit en
    Mars 2014
    Messages
    18
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Cameroun

    Informations professionnelles :
    Activité : Administrateur de base de données

    Informations forums :
    Inscription : Mars 2014
    Messages : 18
    Points : 11
    Points
    11
    Par défaut [11gR2] Importer un dumpfile avec un datapump import
    mon user cible est joresenergizer a qui j'ai donné les droits exp_full , imp_full et grant resource...;
    Dans ce cas donc , comment connaitre mon tablespace par défaut?
    CAR JE VOUDRAI FAIRE UN remap_tablespace .
    merci

  8. #8
    Membre à l'essai
    Homme Profil pro
    Administrateur de base de données
    Inscrit en
    Mars 2014
    Messages
    18
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Cameroun

    Informations professionnelles :
    Activité : Administrateur de base de données

    Informations forums :
    Inscription : Mars 2014
    Messages : 18
    Points : 11
    Points
    11
    Par défaut [11gR2] Importer un dumpfile avec un datapump import
    voilà ce que je viens de faire.
    Sauf que lorsque j’interroge user=joresenergizer je ne vois qu'une seule table au lieu de 4tables.
    cela veut dire l'import ne s'est pas terminé totalement car dans la BD destinataire(joresenergizer) il manque encore des tables.
    comment faire pour avoir toutes les tables de mon dumpfile dans ma BD destinataire ?
    please help me.




    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
    C:\Users\stagiaires>impdp joresenergizer/cnps directory=jorespump dumpfile=jores11.dmp LOGFILE=jores11.log schemas=energizer remap_tablespace=CNP
    S_ENERGIZER_TB:JORES_TB, SYSTEM:JORES_TB, SYSAUX:JORES_TB, UNDOTBS1:JORES_TB, USERS:JORES_TB, TEMP:JORES_TB
     
    Import: Release 11.2.0.2.0 - Beta on Mer. Juil. 2 13:12:12 2014
     
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
     
    Connected to: Oracle Database 11g Express Edition Release 11.2.0.2.0 - Beta
    ORA-31655: no data or metadata objects selected for job
    ORA-39039: Schema expression " IN ('ENERGIZER')" contains no valid schemas.
    Master table "JORESENERGIZER"."SYS_IMPORT_SCHEMA_01" successfully loaded/unloaded
    Starting "JORESENERGIZER"."SYS_IMPORT_SCHEMA_01":  joresenergizer/******** directory=jorespump dumpfile=jores11.dmp LOGFILE=jores11.log schemas=e
    nergizer remap_tablespace=CNPS_ENERGIZER_TB:JORES_TB, SYSTEM:JORES_TB, SYSAUX:JORES_TB, UNDOTBS1:JORES_TB, USERS:JORES_TB, TEMP:JORES_TB
    Job "JORESENERGIZER"."SYS_IMPORT_SCHEMA_01" successfully completed at 13:12:16
     
     
    C:\Users\stagiaires>

  9. #9
    Membre à l'essai
    Homme Profil pro
    Administrateur de base de données
    Inscrit en
    Mars 2014
    Messages
    18
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Cameroun

    Informations professionnelles :
    Activité : Administrateur de base de données

    Informations forums :
    Inscription : Mars 2014
    Messages : 18
    Points : 11
    Points
    11
    Par défaut [11gR2] Importer un dumpfile avec un datapump import
    je viens de me rendre compte que lorsque je fais le script ci-dessous c'est plutôt lui qui crée juste une table; la table JASSURE_DELETE2.
    Malgré les erreurs ce script crée la table JASSURE_DELETE2 MAIS PAS LES AUTRES.

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    impdp joresenergizer/password directory=jorespump dumpfile=jores11.dmp LOGFILE=jores11.log 
    remap_schema=energizer:joresenergizer remap_tablespace=CNPS_ENERGIZER_TB:JORES_TB, SYSTEM:JORES_TB, SYSAUX:JORES_TB, UNDOTBS1:JORES_TB, USERS:JORES_TB, TEMP:JORES_TB

    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
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    C:\Users\stagiaires>impdp joresenergizer/cnps directory=jorespump dumpfile=jores11.dmp LOGFILE=jores11.log remap_schema=energizer:joresenergizer
    remap_tablespace=CNPS_ENERGIZER_TB:JORES_TB, SYSTEM:JORES_TB, SYSAUX:JORES_TB, UNDOTBS1:JORES_TB, USERS:JORES_TB, TEMP:JORES_TB
     
    Import: Release 11.2.0.2.0 - Beta on Mer. Juil. 2 14:10:17 2014
     
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
     
    Connected to: Oracle Database 11g Express Edition Release 11.2.0.2.0 - Beta
    Master table "JORESENERGIZER"."SYS_IMPORT_FULL_01" successfully loaded/unloaded
    Starting "JORESENERGIZER"."SYS_IMPORT_FULL_01":  joresenergizer/******** directory=jorespump dumpfile=jores11.dmp LOGFILE=jores11.log remap_schem
    a=energizer:joresenergizer remap_tablespace=CNPS_ENERGIZER_TB:JORES_TB, SYSTEM:JORES_TB, SYSAUX:JORES_TB, UNDOTBS1:JORES_TB, USERS:JORES_TB, TEMP
    :JORES_TB
    Processing object type TABLE_EXPORT/TABLE/TABLE
    ORA-39083: Object type TABLE:"JORESENERGIZER"."JASSURE" failed to create with error:
    ORA-00439: feature not enabled: Basic Compression
    Failing sql is:
    CREATE TABLE "JORESENERGIZER"."JASSURE" ("NUM_ASSU" VARCHAR2(13 CHAR) NOT NULL ENABLE, "NOM_ASSU" VARCHAR2(60 CHAR), "PRENOM_ASSU" VARCHAR2(60 CH
    AR), "DATE_NAISS_ASSU" DATE, "NOM_JEUNE_FILLE_ASSU" VARCHAR2(25 CHAR), "SEXE_ASSU" VARCHAR2(1 CHAR), "CIVILITE_ASSU" VARCHAR2(5 CHAR), "TEL_ASSU"
     VARCHAR2(20 CHAR), "FAX_ASSU" VARCHAR2(20 CHAR), "EMAIL_ASSU" VARCHA
    ORA-39083: Object type TABLE:"JORESENERGIZER"."TCOMPTE_ASSURE" failed to create with error:
    ORA-00439: feature not enabled: Basic Compression
    Failing sql is:
    CREATE TABLE "JORESENERGIZER"."TCOMPTE_ASSURE" ("NUMERO_DIPE" NUMBER(5,0) NOT NULL ENABLE, "NUMERO_CONTRIB" VARCHAR2(20 CHAR) DEFAULT NULL, "MOIS
    _DIPE" NUMBER(2,0) NOT NULL ENABLE, "MATRICULE_EMPL" VARCHAR2(17 CHAR) NOT NULL ENABLE, "REGIME" NUMBER(1,0) NOT NULL ENABLE, "ANNEE" NUMBER(4,0)
     NOT NULL ENABLE, "MATRICULE_ASS" VARCHAR2(13 BYTE) DEFAULT NU
    ORA-39083: Object type TABLE:"JORESENERGIZER"."JEMPLOYEUR" failed to create with error:
    ORA-00439: feature not enabled: Basic Compression
    Failing sql is:
    CREATE TABLE "JORESENERGIZER"."JEMPLOYEUR" ("NUM_EMPLOYEUR" VARCHAR2(17 CHAR) NOT NULL ENABLE, "RAISON_SOCIALE" VARCHAR2(200 CHAR), "SIGLE" VARCH
    AR2(30 CHAR), "ADRESSE_EMPLOYEUR" VARCHAR2(100 CHAR), "BOITE_POSTALE" VARCHAR2(10 CHAR), "TEL" VARCHAR2(30 CHAR), "FAX" VARCHAR2(20 CHAR), "EMAIL
    " VARCHAR2(50 CHAR), "CODE_ARROND" VARCHAR2(6 CHAR), "CODE_PAYS" V
    Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
    . . imported "JORESENERGIZER"."JASSURE_DELETE2"          2.096 GB 8114504 rows
    Processing object type TABLE_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'JSAP' does not exist
    Failing sql is:
    GRANT DELETE ON "JORESENERGIZER"."JASSURE_DELETE2" TO "JSAP"
     
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'JSAP' does not exist
    Failing sql is:
    GRANT INSERT ON "JORESENERGIZER"."JASSURE_DELETE2" TO "JSAP"
     
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'JSAP' does not exist
    Failing sql is:
    GRANT SELECT ON "JORESENERGIZER"."JASSURE_DELETE2" TO "JSAP"
     
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'JSAP' does not exist
    Failing sql is:
    GRANT UPDATE ON "JORESENERGIZER"."JASSURE_DELETE2" TO "JSAP"
     
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'JETAT' does not exist
    Failing sql is:
    GRANT SELECT ON "JORESENERGIZER"."JASSURE_DELETE2" TO "JETAT"
     
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'NDJENG' does not exist
    Failing sql is:
    GRANT ALTER ON "JORESENERGIZER"."JASSURE_DELETE2" TO "NDJENG"
     
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'NDJENG' does not exist
    Failing sql is:
    GRANT DELETE ON "JORESENERGIZER"."JASSURE_DELETE2" TO "NDJENG"
     
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'NDJENG' does not exist
    Failing sql is:
    GRANT INSERT ON "JORESENERGIZER"."JASSURE_DELETE2" TO "NDJENG"
     
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'NDJENG' does not exist
    Failing sql is:
    GRANT SELECT ON "JORESENERGIZER"."JASSURE_DELETE2" TO "NDJENG"
     
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'NDJENG' does not exist
    Failing sql is:
    GRANT UPDATE ON "JORESENERGIZER"."JASSURE_DELETE2" TO "NDJENG"
     
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'SHWKF' does not exist
    Failing sql is:
    GRANT SELECT ON "JORESENERGIZER"."JASSURE_DELETE2" TO "SHWKF"
     
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'SHCODEXIA' does not exist
    Failing sql is:
    GRANT SELECT ON "JORESENERGIZER"."JASSURE_DELETE2" TO "SHCODEXIA"
     
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'ERIC_NGAH' does not exist
    Failing sql is:
    GRANT INSERT ON "JORESENERGIZER"."JASSURE_DELETE2" TO "ERIC_NGAH"
     
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'ERIC_NGAH' does not exist
    Failing sql is:
    GRANT SELECT ON "JORESENERGIZER"."JASSURE_DELETE2" TO "ERIC_NGAH"
     
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'ERIC_NGAH' does not exist
    Failing sql is:
    GRANT UPDATE ON "JORESENERGIZER"."JASSURE_DELETE2" TO "ERIC_NGAH"
     
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'ADMIN' does not exist
    Failing sql is:
    GRANT SELECT ON "JORESENERGIZER"."JASSURE_DELETE2" TO "ADMIN"
     
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'SED' does not exist
    Failing sql is:
    GRANT SELECT ON "JORESENERGIZER"."JASSURE_DELETE2" TO "SED"
     
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'MAYANA' does not exist
    Failing sql is:
    GRANT INSERT ON "JORESENERGIZER"."JASSURE_DELETE2" TO "MAYANA"
     
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'MAYANA' does not exist
    Failing sql is:
    GRANT SELECT ON "JORESENERGIZER"."JASSURE_DELETE2" TO "MAYANA"
     
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'MAYANA' does not exist
    Failing sql is:
    GRANT UPDATE ON "JORESENERGIZER"."JASSURE_DELETE2" TO "MAYANA"
     
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'BIANG' does not exist
    Failing sql is:
    GRANT SELECT ON "JORESENERGIZER"."JASSURE_DELETE2" TO "BIANG"
     
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'TIAYA' does not exist
    Failing sql is:
    GRANT SELECT ON "JORESENERGIZER"."JASSURE_DELETE2" TO "TIAYA"
     
    Processing object type TABLE_EXPORT/TABLE/INDEX/INDEX
    Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
    Processing object type TABLE_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
    ORA-39083: Object type INDEX_STATISTICS failed to create with error:
    ORA-20000: INDEX "ERIC_NGAH"."CIRCUIT_DOSSIEREM_FK_IDX" does not exist or insufficient privileges
    Failing sql is:
    DECLARE I_N VARCHAR2(60);   I_O VARCHAR2(60);   NV VARCHAR2(1);   c DBMS_METADATA.T_VAR_COLL;   df varchar2(21) := 'YYYY-MM-DD:HH24:MI:SS';  stmt
     varchar2(300) := ' INSERT INTO "SYS"."IMPDP_STATS" (type,version,flags,c1,c2,c3,c5,n1,n2,n3,n4,n5,n6,n7,n8,n9,n10,n11,n12,d1,cl1) VALUES (''I'',
    6,:1,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11,
    ORA-39083: Object type INDEX_STATISTICS failed to create with error:
    ORA-20000: INDEX "ERIC_NGAH"."JEMPLOYEUR_LIEUNAISS_IDX" does not exist or insufficient privileges
    Failing sql is:
    DECLARE I_N VARCHAR2(60);   I_O VARCHAR2(60);   NV VARCHAR2(1);   c DBMS_METADATA.T_VAR_COLL;   df varchar2(21) := 'YYYY-MM-DD:HH24:MI:SS';  stmt
     varchar2(300) := ' INSERT INTO "SYS"."IMPDP_STATS" (type,version,flags,c1,c2,c3,c5,n1,n2,n3,n4,n5,n6,n7,n8,n9,n10,n11,n12,d1,cl1) VALUES (''I'',
    6,:1,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11,
    ORA-39083: Object type INDEX_STATISTICS failed to create with error:
    ORA-20000: INDEX "ERIC_NGAH"."FK_CODENA_JEMPLOYEUR_IDX" does not exist or insufficient privileges
    Failing sql is:
    DECLARE I_N VARCHAR2(60);   I_O VARCHAR2(60);   NV VARCHAR2(1);   c DBMS_METADATA.T_VAR_COLL;   df varchar2(21) := 'YYYY-MM-DD:HH24:MI:SS';  stmt
     varchar2(300) := ' INSERT INTO "SYS"."IMPDP_STATS" (type,version,flags,c1,c2,c3,c5,n1,n2,n3,n4,n5,n6,n7,n8,n9,n10,n11,n12,d1,cl1) VALUES (''I'',
    6,:1,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11,
    Processing object type TABLE_EXPORT/TABLE/COMMENT
    Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
    Processing object type TABLE_EXPORT/TABLE/TRIGGER
    Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
    Job "JORESENERGIZER"."SYS_IMPORT_FULL_01" completed with 28 error(s) at 14:12:50

    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
    C:\Users\stagiaires>
     
     
    SQL*Plus: Release 11.2.0.2.0 Beta on Mer. Juil. 2 14:13:32 2014
     
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
     
    SQL> conn joresenergizer
    Enter password:
    Connected.
    SQL> select table_name from user_tables;
     
    TABLE_NAME
    ------------------------------
    JASSURE_DELETE2
     
    SQL> select count (*) from jassure_delete2;
     
      COUNT(*)
    ----------
       8114504
     
    SQL>

    vous voyez donc que je n'ai pu que importer une table.

    AIDEZ SVP

  10. #10
    Membre confirmé
    Femme Profil pro
    Administrateur de base de données
    Inscrit en
    Novembre 2007
    Messages
    419
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France

    Informations professionnelles :
    Activité : Administrateur de base de données

    Informations forums :
    Inscription : Novembre 2007
    Messages : 419
    Points : 616
    Points
    616
    Par défaut
    tout est dans la log. le problème maintenant est lié à la compression : ORA-00439: feature not enabled: Basic Compression
    ou a une absence de quota ensuite éventuellement. si vous ne précisez pas de remap tablespace les données iront dans le tablespace par défaut du user cible, que vous trouverez dans dba_users, ensuite les quotas sont visible dans dba_ts_quotas
    et on ne remappe pas les tablespace system, sysaux, ni temp! on ne met rien dedans non plus explicitement!

  11. #11
    Membre à l'essai
    Homme Profil pro
    Administrateur de base de données
    Inscrit en
    Mars 2014
    Messages
    18
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Cameroun

    Informations professionnelles :
    Activité : Administrateur de base de données

    Informations forums :
    Inscription : Mars 2014
    Messages : 18
    Points : 11
    Points
    11
    Par défaut [11gR2] Importer un dumpfile avec un datapump import
    bonjour je ne comprends pas lorsque tu parles de l’absence de quotas?
    Aussi mon table space crée est jores_TB.
    Alors je ne fais que remap_tablespace=cnps_energizer_TB:jores_TB ????

  12. #12
    Membre à l'essai
    Homme Profil pro
    Administrateur de base de données
    Inscrit en
    Mars 2014
    Messages
    18
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Cameroun

    Informations professionnelles :
    Activité : Administrateur de base de données

    Informations forums :
    Inscription : Mars 2014
    Messages : 18
    Points : 11
    Points
    11
    Par défaut [11gR2] Importer un dumpfile avec un datapump import
    j'ai installé oracle 11gr2 enterprise edition.

    ci-dessous vous avez les réponses des interfaces lors de mon import.

    interface 1: création de tablespace et répertoire



    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
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    SQL*Plus: Release 11.2.0.1.0 Production on Ven. Juil. 11 16:55:52 2014
     
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
     
    Entrez le nom utilisateur : jores_meka@sapelli
    Entrez le mot de passe :
     
    ConnectÚ Ó :
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, Oracle Label Security, OLAP, Data Mining,
    Oracle Database Vault and Real Application Testing options
     
    SQL> select tablespace_name from user_tablespaces;
     
    TABLESPACE_NAME
    ------------------------------
    SYSTEM
    SYSAUX
    TEMP
    USERS
    CNPS_ENERGIZER_TB
    CNPS_PROXAPP_TB
    CNPS_OLDSYSTEM_TB
    PHOTOS
    SHCODEXIA
    SHWKF
    CNPS_UNDO_TB
     
    11 ligne(s) sÚlectionnÚe(s).
     
    SQL>
    SQL> create tablespace jores_tb datafile'E:Oracleoradatastagiairesjores_dbf'size
     1024M autoextend on next 100M maxsize 2048M;
    create tablespace jores_tb datafile'E:Oracleoradatastagiairesjores_dbf'size 1024
    M autoextend on next 100M maxsize 2048M
    *
    ERREUR Ó la ligne 1 :
    ORA-01031: privilÞges insuffisants
     
     
    SQL>
    SQL> alter tablespace jores_tb add datafile 'E:/Oracle/oradata/stagiaires/jores_
    dbf' size 1024M autoextend on next 100M maxsize 2048M;
    alter tablespace jores_tb add datafile 'E:/Oracle/oradata/stagiaires/jores_dbf'
    size 1024M autoextend on next 100M maxsize 2048M
    *
    ERREUR Ó la ligne 1 :
    ORA-01031: privilÞges insuffisants
     
     
    SQL>
    SQL> alter tablespace jores_tb add datafile 'E:/Oracle/oradata/stagiaires/jores_
    dbf' size 1024M autoextend on next 100M maxsize 2048M;
    alter tablespace jores_tb add datafile 'E:/Oracle/oradata/stagiaires/jores_dbf'
    size 1024M autoextend on next 100M maxsize 2048M
    *
    ERREUR Ó la ligne 1 :
    ORA-01031: privilÞges insuffisants
     
     
    SQL> select tablespace_name from user_tablespaces;
     
    TABLESPACE_NAME
    ------------------------------
    SYSTEM
    SYSAUX
    TEMP
    USERS
    CNPS_ENERGIZER_TB
    CNPS_PROXAPP_TB
    CNPS_OLDSYSTEM_TB
    PHOTOS
    SHCODEXIA
    SHWKF
    CNPS_UNDO_TB
     
    11 ligne(s) sÚlectionnÚe(s).
     
    SQL> conn system
    Entrez le mot de passe :
    ConnectÚ.
    SQL>
    SQL> create tablespace jores_tb datafile'E:Oracleoradatastagiairesjores_dbf'size
     1024M autoextend on next 100M maxsize 2048M;
     
    Tablespace crÚÚ.
     
    SQL>
    SQL> alter tablespace jores_tb add datafile 'E:/Oracle/oradata/stagiaires/jores_
    dbf' size 1024M autoextend on next 100M maxsize 2048M;
     
    Tablespace modifiÚ.
     
    SQL>
    SQL> alter tablespace jores_tb add datafile 'E:/Oracle/oradata/stagiaires/jores_
    dbf' size 1024M autoextend on next 100M maxsize 2048M;
    alter tablespace jores_tb add datafile 'E:/Oracle/oradata/stagiaires/jores_dbf'
    size 1024M autoextend on next 100M maxsize 2048M
    *
    ERREUR Ó la ligne 1 :
    ORA-01537: impossible d'ajouter le fichier
    'E:/Oracle/oradata/stagiaires/jores_dbf' - il fait dÚjÓ partie de la base de
    donnÚes
     
     
    SQL> select tablespace_name from user_tablespaces;
     
    TABLESPACE_NAME
    ------------------------------
    SYSTEM
    SYSAUX
    UNDOTBS1
    TEMP
    USERS
    EXAMPLE
    JORES_TB
     
    7 ligne(s) sÚlectionnÚe(s).
     
    SQL>
    SQL> --drop user joresenergizer ;
    SQL>
    SQL> create directory jores_tb as 'C:/Users/stagiaires/Documents/datadump/jores_
    tb';
     
    RÚpertoire crÚÚ.
     
    SQL>
    SQL> create user joresenergizer identified by cnps default tablespace jores_tb t
    emporary tablespace TEMP;
     
    Utilisateur crÚÚ.
     
    SQL>
    SQL> grant connect, resource to joresenergizer;
     
    Autorisation de privilÞges (GRANT) acceptÚe.
     
    SQL>
    SQL> grant imp_full_database, exp_full_database to joresenergizer;
     
    Autorisation de privilÞges (GRANT) acceptÚe.
     
    SQL>
    SQL> grant read, write on directory jores_tb to joresenergizer;
     
    Autorisation de privilÞges (GRANT) acceptÚe.
     
    SQL>
    SQL>
    interface 2: script import

    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
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    Microsoft Windows [version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation. Tous droits réservés.
     
    C:\Users\stagiaires>set oracle_sid=stagiaires
     
    C:\Users\stagiaires> impdp system/cNPs2014 DIRECTORY=jores_tb  DUMPFILE=jores11.dmp SCHEMAS=joresenergizer REMAP_TABLESPACE= ENERGIZER_TB:jores_t
    b, USERS:jores_tb, SYSTEM:jores_tb, SYSAUX:jores_tb
     
    Import: Release 11.2.0.1.0 - Production on Ven. Juil. 11 17:35:20 2014
     
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
     
    ConnectÚ Ó : Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    ORA-39002: opÚration non valide
    ORA-39070: Ouverture du fichier journal impossible
    ORA-29283: opÚration non valide sur le fichier
    ORA-06512: Ó "SYS.UTL_FILE", ligne 536
    ORA-29283: opÚration non valide sur le fichier
     
     
     
    C:\Users\stagiaires>impdp joresenergizer/ directory=jores_tb dumpfile=jores11.dmp LOGFILE=jores11.log remap_schema=energizer:joresenergizer remap
    _tablespace=CNPS_ENERGIZER_TB:JORES_TB, SYSTEM:JORES_TB, SYSAUX:JORES_TB, UNDOTBS1:JORES_TB, USERS:JORES_TB, TEMP:JORES_TB
     
    Import: Release 11.2.0.1.0 - Production on Ven. Juil. 11 17:38:51 2014
     
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
     
    UDI-01005: l'opÚration a gÚnÚrÚ l'erreur ORACLE 1005
    ORA-01005: aucun mot de passe indiquÚ ; connexion refusÚe
     
    Nom utilisateur : joresenergizer
    Mot de passe :
     
    ConnectÚ Ó : Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    ORA-39002: opÚration non valide
    ORA-39070: Ouverture du fichier journal impossible
    ORA-29283: opÚration non valide sur le fichier
    ORA-06512: Ó "SYS.UTL_FILE", ligne 536
    ORA-29283: opÚration non valide sur le fichier
     
     
     
    C:\Users\stagiaires>
    je suis toujours coinçé.

    please help!!!!!

  13. #13
    Membre à l'essai
    Homme Profil pro
    Administrateur de base de données
    Inscrit en
    Mars 2014
    Messages
    18
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Cameroun

    Informations professionnelles :
    Activité : Administrateur de base de données

    Informations forums :
    Inscription : Mars 2014
    Messages : 18
    Points : 11
    Points
    11
    Par défaut [11gR2] Importer un dumpfile avec un datapump import
    j'ai installé oracle 11gr2 enterprise edition.

    ci-dessous vous avez les réponses des interfaces lors de mon import.

    interface 1: creation de tablespace et repertoire



    SQL*Plus: Release 11.2.0.1.0 Production on Ven. Juil. 11 16:55:52 2014

    Copyright (c) 1982, 2010, Oracle. All rights reserved.

    Entrez le nom utilisateur : jores_meka@sapelli
    Entrez le mot de passe :

    ConnectÚ Ó :
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, Oracle Label Security, OLAP, Data Mining,
    Oracle Database Vault and Real Application Testing options

    SQL> select tablespace_name from user_tablespaces;

    TABLESPACE_NAME
    ------------------------------
    SYSTEM
    SYSAUX
    TEMP
    USERS
    CNPS_ENERGIZER_TB
    CNPS_PROXAPP_TB
    CNPS_OLDSYSTEM_TB
    PHOTOS
    SHCODEXIA
    SHWKF
    CNPS_UNDO_TB

    11 ligne(s) sÚlectionnÚe(s).

    SQL>
    SQL> create tablespace jores_tb datafile'E:Oracleoradatastagiairesjores_dbf'size
    1024M autoextend on next 100M maxsize 2048M;
    create tablespace jores_tb datafile'E:Oracleoradatastagiairesjores_dbf'size 1024
    M autoextend on next 100M maxsize 2048M
    *
    ERREUR Ó la ligne 1 :
    ORA-01031: privilÞges insuffisants


    SQL>
    SQL> alter tablespace jores_tb add datafile 'E:/Oracle/oradata/stagiaires/jores_
    dbf' size 1024M autoextend on next 100M maxsize 2048M;
    alter tablespace jores_tb add datafile 'E:/Oracle/oradata/stagiaires/jores_dbf'
    size 1024M autoextend on next 100M maxsize 2048M
    *
    ERREUR Ó la ligne 1 :
    ORA-01031: privilÞges insuffisants


    SQL>
    SQL> alter tablespace jores_tb add datafile 'E:/Oracle/oradata/stagiaires/jores_
    dbf' size 1024M autoextend on next 100M maxsize 2048M;
    alter tablespace jores_tb add datafile 'E:/Oracle/oradata/stagiaires/jores_dbf'
    size 1024M autoextend on next 100M maxsize 2048M
    *
    ERREUR Ó la ligne 1 :
    ORA-01031: privilÞges insuffisants


    SQL> select tablespace_name from user_tablespaces;

    TABLESPACE_NAME
    ------------------------------
    SYSTEM
    SYSAUX
    TEMP
    USERS
    CNPS_ENERGIZER_TB
    CNPS_PROXAPP_TB
    CNPS_OLDSYSTEM_TB
    PHOTOS
    SHCODEXIA
    SHWKF
    CNPS_UNDO_TB

    11 ligne(s) sÚlectionnÚe(s).

    SQL> conn system
    Entrez le mot de passe :
    ConnectÚ.
    SQL>
    SQL> create tablespace jores_tb datafile'E:Oracleoradatastagiairesjores_dbf'size
    1024M autoextend on next 100M maxsize 2048M;

    Tablespace crÚÚ.

    SQL>
    SQL> alter tablespace jores_tb add datafile 'E:/Oracle/oradata/stagiaires/jores_
    dbf' size 1024M autoextend on next 100M maxsize 2048M;

    Tablespace modifiÚ.

    SQL>
    SQL> alter tablespace jores_tb add datafile 'E:/Oracle/oradata/stagiaires/jores_
    dbf' size 1024M autoextend on next 100M maxsize 2048M;
    alter tablespace jores_tb add datafile 'E:/Oracle/oradata/stagiaires/jores_dbf'
    size 1024M autoextend on next 100M maxsize 2048M
    *
    ERREUR Ó la ligne 1 :
    ORA-01537: impossible d'ajouter le fichier
    'E:/Oracle/oradata/stagiaires/jores_dbf' - il fait dÚjÓ partie de la base de
    donnÚes


    SQL> select tablespace_name from user_tablespaces;

    TABLESPACE_NAME
    ------------------------------
    SYSTEM
    SYSAUX
    UNDOTBS1
    TEMP
    USERS
    EXAMPLE
    JORES_TB

    7 ligne(s) sÚlectionnÚe(s).

    SQL>
    SQL> --drop user joresenergizer ;
    SQL>
    SQL> create directory jores_tb as 'C:/Users/stagiaires/Documents/datadump/jores_
    tb';

    RÚpertoire crÚÚ.

    SQL>
    SQL> create user joresenergizer identified by cnps default tablespace jores_tb t
    emporary tablespace TEMP;

    Utilisateur crÚÚ.

    SQL>
    SQL> grant connect, resource to joresenergizer;

    Autorisation de privilÞges (GRANT) acceptÚe.

    SQL>
    SQL> grant imp_full_database, exp_full_database to joresenergizer;

    Autorisation de privilÞges (GRANT) acceptÚe.

    SQL>
    SQL> grant read, write on directory jores_tb to joresenergizer;

    Autorisation de privilÞges (GRANT) acceptÚe.

    SQL>
    SQL>


    interface2: script import


    Microsoft Windows [version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation. Tous droits réservés.

    C:\Users\stagiaires>set oracle_sid=stagiaires

    C:\Users\stagiaires> impdp system/cNPs2014 DIRECTORY=jores_tb DUMPFILE=jores11.dmp SCHEMAS=joresenergizer REMAP_TABLESPACE= ENERGIZER_TB:jores_t
    b, USERS:jores_tb, SYSTEM:jores_tb, SYSAUX:jores_tb

    Import: Release 11.2.0.1.0 - Production on Ven. Juil. 11 17:35:20 2014

    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.

    ConnectÚ Ó : Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    ORA-39002: opÚration non valide
    ORA-39070: Ouverture du fichier journal impossible
    ORA-29283: opÚration non valide sur le fichier
    ORA-06512: Ó "SYS.UTL_FILE", ligne 536
    ORA-29283: opÚration non valide sur le fichier



    C:\Users\stagiaires>impdp joresenergizer/ directory=jores_tb dumpfile=jores11.dmp LOGFILE=jores11.log remap_schema=energizer:joresenergizer remap
    _tablespace=CNPS_ENERGIZER_TB:JORES_TB, SYSTEM:JORES_TB, SYSAUX:JORES_TB, UNDOTBS1:JORES_TB, USERS:JORES_TB, TEMP:JORES_TB

    Import: Release 11.2.0.1.0 - Production on Ven. Juil. 11 17:38:51 2014

    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.

    UDI-01005: l'opÚration a gÚnÚrÚ l'erreur ORACLE 1005
    ORA-01005: aucun mot de passe indiquÚ ; connexion refusÚe

    Nom utilisateur : joresenergizer
    Mot de passe :

    ConnectÚ Ó : Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    ORA-39002: opÚration non valide
    ORA-39070: Ouverture du fichier journal impossible
    ORA-29283: opÚration non valide sur le fichier
    ORA-06512: Ó "SYS.UTL_FILE", ligne 536
    ORA-29283: opÚration non valide sur le fichier



    C:\Users\stagiaires>


    je suis toujours coinçé.

    please help!!!!

  14. #14
    Membre confirmé
    Femme Profil pro
    Administrateur de base de données
    Inscrit en
    Novembre 2007
    Messages
    419
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France

    Informations professionnelles :
    Activité : Administrateur de base de données

    Informations forums :
    Inscription : Novembre 2007
    Messages : 419
    Points : 616
    Points
    616
    Par défaut
    bonsoir,
    tu penses pouvoir importer les données de tous les users et de tous les tablespaces de la base source dans ton tablespace jores_tb? et il contient quoi ton dump?
    mais il y a plus urgent à régler.
    la belle interface : user tablespaces te montre tous les tablespaces y compris system et sysaux. premier pb. tu as granté trop de droit à ton user jores, ou du moins tu crois l'avoir fait. oracle refuse la création de tbs, tu passes sous le user system. .
    ce tbs est de 1024M en autoextend max size 2048 M. ok. tu ajoutes un second datafile de 1024 M mais le fichier a le même nom que le fichier qui existe déjà. ça ne peut pas marcher. mais déjà essaie de comprendre ce que tu fais : avec les deux fichiers tu es d'emblée à 2048M, alors quel est l'intérêt de l'ajout d'un autre fichier. crée un tablespace directement avec un fichier de 2Go. et si tu tiens à faire ça en deux fichiers évite de leur donner le même nom, indente les avec des numéros. et là l'auto extend est superflu parce que tu es déjà au max size du tablespace.

    d'un point de vue système, c'est normal ça ? le premier chemin est très étrange non? erreur de frappe? il manque des slash:
    SQL> create tablespace jores_tb datafile'E:Oracleoradatastagiairesjores_dbf'size
    1024M autoextend on next 100M maxsize 2048M;

    Tablespace crÚÚ.

    SQL>
    SQL> alter tablespace jores_tb add datafile 'E:/Oracle/oradata/stagiaires/jores_
    dbf' size 1024M autoextend on next 100M maxsize 2048M;

    Tablespace modifiÚ.
    et il faut arrêter de faire du grant connect (deprecated) et resource (solution de facilité qui en effet donne des quotas sur tous les tablespaces mais il ne faut JAMAIS écrire dans temp , system, sysaux des données d'autres users). ce n'est pas propre du tout.

    et surtout
    je te recommande de dropper ton tbs et de recommencer proprement, en indiquant des répertoires physiques existants et en suivant une logique.
    et ensuite, n'y a -t-il pas une confusion entre directory et tablespace?
    il y a un tbs jores_tb puis un répertoire jores_tb. attention, ce n'est pas la même chose
    ce répertoire existe t-il : 'C:/Users/stagiaires/Documents/datadump/jores_tb'
    est-ce là que le dump est physiquement placé?
    sinon ton erreur vient de cela
    mais si l'exercice de style consiste à remapper les données dans un seul tablespace non, tu ne peux pas inclure system, sysaux et temp. tu ne touches pas à cela

Discussions similaires

  1. Réponses: 2
    Dernier message: 20/04/2012, 09h24
  2. Import plusieurs fichiers avec DataPump
    Par SamOra77 dans le forum Outils
    Réponses: 2
    Dernier message: 18/02/2010, 15h52
  3. [DTS] Import de données avec des doublons
    Par Hotchotte dans le forum MS SQL Server
    Réponses: 5
    Dernier message: 24/03/2005, 14h19
  4. Pb import fichier txt avec lignes de longueurs diverses
    Par zebulon90 dans le forum MS SQL Server
    Réponses: 2
    Dernier message: 09/12/2004, 08h32
  5. Importation des mails avec Kmail et Thunderbird ?
    Par axel-erator dans le forum Applications et environnements graphiques
    Réponses: 6
    Dernier message: 30/11/2004, 00h36

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