vendredi 31 octobre 2014

Schéma Oracle Exemples (OE, HR, SH, IX et PM).

Afin de faciliter la tâche pour importer directement les schémas oracle dans une bd Oracle 11g, voici toutes les étapes:

  1. Télécharger le fichier Oracle Schema Sample DMP ou aller directement sur mon site web (www.oraweb.ca)
  2. Lancer Toad et configurer les exécutables pour impdp et expdp (voir l'image). Ensuite, créer tablespace EXAMPLE.

 
      3. Cliquer sur Toad Options du menu View




  
    4. Cliquer sur Database - Import - Data Pumpp Import.


    5. Dans l'onglet Files, mettez les chemins pour DMP et le fichier log tel que montre cette image.


   6. Dernière étape consiste à exécuter le processus de l'import.

Voici le résultat de l'import:

Traitement du type d'objet SCHEMA_EXPORT/SYSTEM_GRANT
Traitement du type d'objet SCHEMA_EXPORT/ROLE_GRANT
Traitement du type d'objet SCHEMA_EXPORT/DEFAULT_ROLE
Traitement du type d'objet SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Traitement du type d'objet SCHEMA_EXPORT/SYNONYM/SYNONYM
Traitement du type d'objet SCHEMA_EXPORT/TYPE/INC_TYPE
Traitement du type d'objet SCHEMA_EXPORT/TYPE/TYPE_SPEC
Traitement du type d'objet SCHEMA_EXPORT/SEQUENCE/SEQUENCE

Traitement du type d'objet SCHEMA_EXPORT/TABLE/TABLE_DATA

. . import : "SH"."CUSTOMERS"                            9.853 MB   55500 lignes

. . import : "PM"."ONLINE_MEDIA"                         7.752 MB       9 lignes

. . import : "SH"."SUPPLEMENTARY_DEMOGRAPHICS"           697.3 KB    4500 lignes

. . import : "OE"."PRODUCT_DESCRIPTIONS"                 2.379 MB    8640 lignes

. . import : "SH"."SALES":"SALES_Q4_2001"                2.257 MB   69749 lignes

. . import : "SH"."SALES":"SALES_Q1_1999"                2.071 MB   64186 lignes

. . import : "SH"."SALES":"SALES_Q3_2001"                2.130 MB   65769 lignes

. . import : "SH"."SALES":"SALES_Q1_2000"                2.012 MB   62197 lignes

. . import : "SH"."SALES":"SALES_Q1_2001"                1.965 MB   60608 lignes

. . import : "SH"."SALES":"SALES_Q2_2001"                2.051 MB   63292 lignes

. . import : "SH"."SALES":"SALES_Q3_1999"                2.166 MB   67138 lignes

. . import : "SH"."SALES":"SALES_Q4_1999"                2.014 MB   62388 lignes

. . import : "SH"."SALES":"SALES_Q2_2000"                1.802 MB   55515 lignes

. . import : "SH"."SALES":"SALES_Q3_2000"                1.909 MB   58950 lignes

. . import : "SH"."SALES":"SALES_Q4_1998"                1.581 MB   48874 lignes

. . import : "SH"."SALES":"SALES_Q4_2000"                1.814 MB   55984 lignes

. . import : "SH"."SALES":"SALES_Q2_1999"                1.754 MB   54233 lignes

. . import : "SH"."SALES":"SALES_Q1_1998"                1.412 MB   43687 lignes

. . import : "SH"."SALES":"SALES_Q3_1998"                1.633 MB   50515 lignes

. . import : "PM"."PRINT_MEDIA"                          187.8 KB       4 lignes

. . import : "SH"."SALES":"SALES_Q2_1998"                1.160 MB   35758 lignes

. . import : "SH"."FWEEK_PSCAT_SALES_MV"                 419.8 KB   11266 lignes

. . import : "SH"."PROMOTIONS"                           58.89 KB     503 lignes

. . import : "SH"."TIMES"                                380.8 KB    1826 lignes

. . import : "OE"."CUSTOMERS"                            77.98 KB     319 lignes

. . import : "OE"."WAREHOUSES"                           12.46 KB       9 lignes

. . import : "SH"."COSTS":"COSTS_Q4_2001"                278.4 KB    9011 lignes

. . import : "PM"."TEXTDOCS_NESTEDTAB"                   87.73 KB      12 lignes

. . import : "SH"."COSTS":"COSTS_Q1_1999"                183.5 KB    5884 lignes

. . import : "SH"."COSTS":"COSTS_Q1_2001"                227.8 KB    7328 lignes

. . import : "SH"."COSTS":"COSTS_Q2_2001"                184.5 KB    5882 lignes

. . import : "SH"."COSTS":"COSTS_Q3_2001"                234.4 KB    7545 lignes

. . import : "OE"."PRODUCT_INFORMATION"                  72.77 KB     288 lignes

. . import : "SH"."COSTS":"COSTS_Q1_1998"                139.5 KB    4411 lignes

. . import : "SH"."COSTS":"COSTS_Q1_2000"                120.6 KB    3772 lignes

. . import : "SH"."COSTS":"COSTS_Q2_1998"                79.53 KB    2397 lignes

. . import : "SH"."COSTS":"COSTS_Q2_1999"                132.6 KB    4179 lignes

. . import : "SH"."COSTS":"COSTS_Q2_2000"                119.0 KB    3715 lignes

. . import : "SH"."COSTS":"COSTS_Q3_1998"                131.1 KB    4129 lignes

. . import : "SH"."COSTS":"COSTS_Q3_1999"                137.3 KB    4336 lignes

. . import : "SH"."COSTS":"COSTS_Q3_2000"                151.4 KB    4798 lignes

. . import : "SH"."COSTS":"COSTS_Q4_1998"                144.7 KB    4577 lignes

. . import : "SH"."COSTS":"COSTS_Q4_1999"                159.0 KB    5060 lignes

. . import : "SH"."COSTS":"COSTS_Q4_2000"                160.2 KB    5088 lignes

. . import : "IX"."AQ$_ORDERS_QUEUETABLE_S"              10.92 KB       4 lignes

. . import : "IX"."AQ$_STREAMS_QUEUE_TABLE_S"            11.17 KB       1 lignes

. . import : "OE"."INVENTORIES"                          21.67 KB    1112 lignes

. . import : "OE"."ORDERS"                               12.39 KB     105 lignes

. . import : "OE"."ORDER_ITEMS"                          20.88 KB     665 lignes

. . import : "OE"."PROMOTIONS"                           5.507 KB       2 lignes

. . import : "SH"."CAL_MONTH_SALES_MV"                   6.320 KB      48 lignes

. . import : "SH"."CHANNELS"                             7.257 KB       5 lignes

. . import : "SH"."COUNTRIES"                            10.21 KB      23 lignes

. . import : "SH"."PRODUCTS"                             26.18 KB      72 lignes

Pour plus d'information sur la structure des schémas, cliquer sur la doc Oracle:
http://docs.oracle.com/cd/B28359_01/server.111/b28328/scripts.htm