Ddl triggers froma dump file

I have a dump file made with exp command. It is a schema dump.
I would like to extract the ddl of the trigger. how can I do this?
I tried with imp + indexfile
but I the file created there are no triggers.

Why not use dbms_metadata.get_ddl('TRIGGER','<TRIGGER_NAME') to generate the ddl and create.

Similar Messages

  • Problem in data import from dump file on NAS device

    I am using oracle 10g on solaris 10. I have mounted NAS device on my solaris machine.
    I have created a directory object dir on my NAS storage in which i have placed the dump file.
    Now when i execute the following command to import data
    impdp user/pass DIRECTORY=DIR DUMPFILE=MQA.DMP logfile=import.log
    then i get the following error message
    ORA-39002: invalid operation
    ORA-39070: Unable to open the log file.
    ORA-29283: invalid file operation
    ORA-06512: at "SYS.UTL_FILE", line 475
    ORA-29283: invalid file operation
    Can any body help ?

    Also, Datapump from NAS device would perform slow.
    Take a look at this:
    10gR2 "database backup" to nfs mounted dir results in ORA-27054 NFS error
    Note:356508.1 - NFS Changes In 10gR2 Slow Performance (RMAN, Export, Datapump) From Metalink.

  • Some objects didn't come from dump file

    Al salamo 3likom ,,
    Hi guys.. this is the first question here in this forum and I will appreciate your answers
    when I made import dump file to my database via impdp command I found some objects
    didn't come like triggers, some function and procedures, I don't know what is the reason?!could any body help me
    by the way my Database: 10g and my Operation system: windows xp
    this is the code i wrote " impdp user_name/password@host_string directory=directory_name dumpfile=name.dmp logfile=name.log full=y "
    thank you and God bless you :)

    Pl post exact 10g version, along with the complete impdp log file. Are the objects that are missing definitely in the dump file ? Can you post the export command used and the expdp log file ?
    HTH
    Srini

  • How To Import From Dump File

    Dear All
    How Are You ?
    I have a dump file i and i need to import this dump file in my database this dump file consist of the database structure
    So how can i import this dump file in my blank database
    Note:- I am using Database Oracle 10 g
    Ramez S. Sawires

    Hi,
    If you have original export dump file then you have to choice 1.using impdp through OEM. or using original imp utility.
    Regards
    Taj

  • Cannot start ldap after drop ODS,ODSSM and impdp from last night dump file.

    Hello Experts,
    I have daily export (use expdp) for ODS and ODSSM schemas on new 11.1.1.5 OID environment. I am testing to use ldapadd to add entries (for Net Service only) from old version (10.1.5).
    During the ldapadd test, there are some errors and I fix these errors on ldif file. I try to do a clean load. So, I stop the ldap, drop schema (ODS, ODSSM), use impdp to import these two schemas with a good dump file.
    But I cannot start ldap again. I know the dump file contains some status for running ldap. How to clean the status after impdp completed?
    The error message when I try to start ldap:
    /u01/oracle/OracleOID/opmn/bin>> ./opmnctl shutdown
    /u01/oracle/OracleOID/opmn/bin>> ./opmnctl status
    opmnctl status: opmn is not running.
    /u01/oracle/OracleOID/opmn/bin>> ps -ef|grep ldap
    oracle 19921 22984 0 13:17:58 pts/0 0:00 grep ldap
    /u01/oracle/OracleOID/opmn/bin>> ps -ef|grep OID
    oracle 17515 1 0 Sep 8 ? 0:00 /u01/oracle/OracleOID/ccr/bin/nmz
    oracle 19926 22984 1 13:18:13 pts/0 0:00 grep OID
    /u01/oracle/OracleOID/opmn/bin>>
    Then I drop ODS, ODSSM. (Done)
    Then impdp from dump file (Done)
    /u01/oracle/OracleOID/opmn/bin>> ./opmnctl startall
    opmnctl startall: starting opmn and all managed processes...
    ================================================================================
    opmn id=thruway:6701
    1 of 2 processes started.
    ias-instance id=asinst_1
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    ias-component/process-type/process-set:
    oid1/oidmon/OID/
    Error
    --> Process (index=1,uid=194262388,pid=20189)
    time out while waiting for a managed process to start
    Log:
    /u01/oracle/bea_default/asinst_1/diagnostics/logs/OID/oid1/console~OID~1.log
    thruway:/u01/oracle/OracleOID/opmn/bin>> ./opmnctl status
    Processes in Instance: asinst_1
    --------------------------------------------------------------+---------
    ias-component | process-type | pid | status
    --------------------------------------------------------------+---------
    oid1 | oidldapd | N/A | Down
    oid1 | oidldapd | N/A | Down
    oid1 | oidmon | N/A | Down
    EMAGENT | EMAGENT | 19969 | Alive
    Thank you,
    Xiaogang

    Try to reboot physical machine. Your problem will be solved.
    Regards,
    A

  • Error while importing dump file to Oracle server

    Hi All,
    I'm pretty new to Oracle and I need to do the following job:
    - import data from dump file to Oracle server
    - then export it into CSV format to load to our web system
    Oracle dump file is called EXPDAT.DMP and it is placed in the default location, so no need to specify it. Here I'm trying to do the 1st step:
    impdp SYSTEM/XXXXXX REMAP_SCHEMA=DATA01:SYSTEM
    And then I'm getting the following errors:
    Connected to: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    Master table "SYSTEM"."SYS_IMPORT_FULL_01" successfully loaded/unloaded
    Starting "SYSTEM"."SYS_IMPORT_FULL_01": SYSTEM/******** REMAP_SCHEMA=DATA01:SYSTEM
    Processing object type TABLE_EXPORT/TABLE/TABLE
    ORA-39083: Object type TABLE failed to create with error:
    ORA-00959: tablespace 'K_DATA' does not exist
    But tablespace 'K_DATA' exists in Oracle database (I've created it manually). What does it mean? Is it a permission issue? Or may be there is more simple way to accomplish my task? Please help me! Thank you!

    Create the user DATA01 in your database, with sufficient quota on tablespace K_DATA. DO NOT import another schema's objects into SYSTEM. If you must REMAP_SCHEMA to something other than DATA01, create a user other than SYSTEM to receive it.

  • To read dump file without importing dump file

    Hi All,
    I want to check table data from dump file without import utility.
    how can i open dump file in oracle 10g release 2 version.
    Thanks in advance.

    user647572 wrote:
    Hi All,
    I want to check table data from dump file without import utility.
    how can i open dump file in oracle 10g release 2 version.
    Thanks in advance.You cannot open the oracle dumpfile . Though you can see it bu simply using the import utility .(actually data is not imported it show the sql only .)
    In datapump , use parameter sqlfile=abc.sql
    e.g; impdp scott/tiger@orcl directorory=dpump sqlfile-abc.sql dumpfile=xyz.dmp and logfile=xyz_log.log full=y
    in case of original import use the parameter "show"
    e.g; imp scott/tiger@orcl file=abc.dmp show=y log=abc_log.log full=y
    hope this help u ..
    --neeraj                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • CSV from DMP file

    Dear Masters/Gurus/All,
    We are using oracle 10.2.04 version on HP UNIX.
    We have a specific requirement to prepare CSV file from oracle dump(DMP File).
    Please let me know the process.
    Thanks,
    KODS

    KODS wrote:
    Dear All,
    Thanks for reply and kindly accept my apologies for delayed in reply.
    let me explain little background.
    In a telecom domain for every customer there are multiple records exists with respect to calls on any particular day if you consider. On few tables the production dba will take the schema/table backup. But the end users/customer care people's application is designed in such a way that, it can read data from CSV format.
    Because of this reason I like to know the process of reading data from dump file and convert it into CSV file.
    Thanks,
    Kods
    Edited by: KODS on Apr 1, 2013 4:33 PM
    Edited by: KODS on Apr 1, 2013 4:34 PMDoesn't matter. A dmp file can ONLY be read by the import utility. If you want a csv file, you'll need to import the dump file back into a database, then create your csv file from there.
    Or create the csv file instead of the dump file in the first place.

  • Is it possible to load a dump file collected from sql server to orcle 10gR2

    Hi..
    As a part of data migration from legacy systems , we need to migrate only required tables from Sql server to Oracle 10gr2 .
    At present client is telling that he will give it as dump file.
    My question is , Is it possible to load the dump file collected from sql server to oracle 10gR2?
    Thanks in advance ..

    yes, it is.
    Using for example SQL Developer Migration Workbench even allows you to create unload scripts for the desired SQL Server tables and it also creates the DDL scripts for you to create the Oracle tables similar to the SQL Server table AND it alows creates the SQL*Loader scripts that allow you to load the SQL Server generated dump file into the Oracle db.
    Here the link:
    http://www.oracle.com/technology/tech/migration/workbench/index_sqldev_omwb.html
    If you do not want to use this utility, you can also use SQL*Loader to load the content of the SQL Server dump file into the Oracle database; but in this case you have to write the whole SQL*Loader control scripts on your own.
    Edited by: kgronau on Sep 16, 2009 1:54 PM

  • How to find the tablespace name and schema name from a dump file

    Good day to all,
    I recived a dump file from a client with oracle 11g, and I need do get the tablespace and schema name from the dump file. How can I do that?
    Thanks.
    Flávio Melo
    Edited by: 933141 on 09/05/2012 07:41

    user12038066 wrote:
    Use imp utility, it generates DDL for both tables and indexes. So you will get tablespace info for both.
    Use impdp utility, it generates DDL for indexes only. So you will miss tablesapce info for tables.
    Haven't found a workaround for impdp utility. Anyone knows?Are you sure you are using the impdp utility correctly? Because if you do, then sqlfile should have all gory details.

  • How to find out what was imported from a dump file

    Hi.
    I got the dump file from a group and they told me to import it. Import job went successfully without errors as following:
    Import: Release 9.2.0.6.0 - Production on Mon Oct 16 20:53:12 2006
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Connected to: Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.6.0 - Production
    Export file created by EXPORT:V09.02.00 via conventional path
    Warning: the objects were exported by OPS$ORACLETS, not by you
    import done in US7ASCII character set and UTF8 NCHAR character set
    import server uses WE8ISO8859P1 character set (possible charset conversion)
    export server uses AL16UTF16 NCHAR character set (possible ncharset conversion)
    . importing OPS$ORACLETS's objects into SYS
    . importing BDS_APP's objects into BDS_APP
    Import terminated successfully without warnings.
    How do i find out what was imported from a dump file?

    another way would be to just list the contents of the dump file
    imp user/pass file=dumpfile show=Y

  • Short dump while reading a currency field from Flat file into internal tabl

    Hi,
    I am getting a short dump........saying number conversion dump (while reading a currency value into field in internal table from a fixed lenght flat file).........
    Do I need to use a string variable to get the value from flat file or how ??
    Please suggest.

    Santosh,
    Thanks for your inputs,
    But my internal table type is of DEC (5,2) , I am getting that... it needs to be of type 'C'. Can you suggest.
    Ex :
    MOVE wa_temp-infile_string+106(8)  TO wa_item-QT_PERCENT
    This didnt work
    so i tried moving into a seperate variable
    MOVE wa_temp-infile_string+106(8)  TO v_percent.
    and then write to
    WRITE v_percent to  wa_item-QT_PERCENT.

  • IMPORT a VIEW from an export dump file

    I'm trying to import a view from an export dump file. In using the Import Utility, do I use the TABLE parameter and give the View name ie: TABLES=view1
    null

    Only I want to do is import ONE view from an export dmp file that contains hundereds of table, many views and procedures. I do not want to reimport everything from the export file.

  • HOW TO IMPORT DATA MORE THAN ONCE FROM THE SAME EXPORT DUMP FILE?

    before asking my question i'd like to mention that i'm a french spoke...
    so my english is a little bit bad. sorry for that.
    my problem is : IMPORT
    how to import data a SECOND TIME from an export dump file within oracle?
    My Export dump file was made successfully (Full Export) and then i
    tried to import datas for the first time.
    I got this following message in my logfile: I ADDED SOME COMMENTS
    Warning: the objects were exported by L1, not by you
    . importing SYSTEM's objects into SYSTEM
    REM ************** CREATING TABLESPACES *****
    REM *********************************************
    IMP-00015: following statement failed because the object already exists:
    "CREATE TABLESPACE "USER_DATA" DATAFILE 'E:\ORANT\DATABASE\USR1ORCL.ORA' SI"
    "ZE 3145728 DEFAULT STORAGE (INITIAL 10240 NEXT 10240 MINEXTENTS 1 MAX"
    "EXTENTS 121 PCTINCREASE 50) ONLINE PERMANENT"
    IMP-00015: following statement failed because the object already exists:
    "CREATE TABLESPACE "ROLLBACK_DATA" DATAFILE 'E:\ORANT\DATABASE\RBS1ORCL.ORA"
    "' SIZE 10485760 DEFAULT STORAGE (INITIAL 10240 NEXT 10240 MINEXTENTS "
    "1 MAXEXTENTS 121 PCTINCREASE 50) ONLINE PERMANENT"
    etc........
    IMP-00017: following statement failed with ORACLE error 1119:
    "CREATE TABLESPACE "L1" DATAFILE 'E:\ORADATA\L1.DBF' SIZE 1048576000 "
    "DEFAULT STORAGE (INITIAL 10240 NEXT 10240 MINEXTENTS 1 MAXEXTENTS 121 PCTIN"
    "CREASE 50) ONLINE PERMANENT"
    IMP-00003: ORACLE error 1119 encountered
    ORA-01119: error in creating database file 'E:\ORADATA\L1.DBF'
    ORA-09200: sfccf: error creating file
    OSD-04002: unable to open file
    O/S-Error: (OS 3) The system cannot find the path specified
    --->etc..........
    the drive E: with the folder E:\ORADATA didn't exist, but after
    all that i created it.
    see below, before my IMPORT statement
    REM ********************* CREATING USER *********
    REM ********************************************
    IMP-00017: following statement failed with ORACLE error 959:
    "CREATE USER "L1" IDENTIFIED BY VALUES 'A6E0DAA6865E7627' DEFAULT TABLESPACE"
    " "L1" TEMPORARY TABLESPACE "TEMPORARY_DATA""
    IMP-00003: ORACLE error 959 encountered
    ORA-00959: tablespace 'L1' does not exist
    IMP-00017: following statement failed with ORACLE error 959:
    "CREATE USER "MLCO" IDENTIFIED BY VALUES '56AC6447B7D50467' DEFAULT TABLESPA"
    "CE "MLCO" TEMPORARY TABLESPACE "TEMPORARY_DATA""
    IMP-00003: ORACLE error 959 encountered
    ORA-00959: tablespace 'MLCO' does not exist
    ETC.......
    REM ********************* GRANTING ROLES ***********
    REM ************************************************
    IMP-00017: following statement failed with ORACLE error 1917:
    "GRANT ALTER ANY TABLE to "L1" "
    IMP-00003: ORACLE error 1917 encountered
    ORA-01917: user or role 'L1' does not exist
    ETC.........
    IMP-00017: following statement failed with ORACLE error 1918:
    "ALTER USER "L1" DEFAULT ROLE ALL"
    IMP-00003: ORACLE error 1918 encountered
    ORA-01918: user 'L1' does not exist
    -- that is normal, since the creation of the
    tablespace failed !!
    REM******************************
    IMP-00015: following statement failed because the object already exists:
    "CREATE ROLLBACK SEGMENT RB_TEMP STORAGE (INITIAL 10240 NEXT 10240 MINEXTENT"
    "S 2 MAXEXTENTS 121) TABLESPACE "SYSTEM""
    IMP-00015: following statement failed because
    . importing SCOTT's objects into SCOTT
    IMP-00015: following statement failed because the object already exists:
    "CREATE SEQUENCE "EVT_PROFILE_SEQ" MINVALUE 1 MAXVALUE 999999999999999999999"
    "999999 INCREMENT BY 1 START WITH 21 CACHE 20 NOORDER NOCYCLE"
    ETC............
    importing L1's objects into L1
    IMP-00017: following statement failed with ORACLE error 1435:
    "ALTER SCHEMA = "L1""
    IMP-00003: ORACLE error 1435 encountered
    ORA-01435: user does not exist
    REM *************** IMPORTING TABLES *******************
    REM ****************************************************
    . importing SYSTEM's objects into SYSTEM
    . . importing table "AN1999_BDAT" 243 rows imported
    . . importing table "BOPD" 112 rows imported
    . . importing table "BOINFO_AP" 49
    ETC................
    . . importing table "BO_WHF" 2 rows imported
    IMP-00015: following statement failed because the object already exists:
    "CREATE TABLE "DEF$_CALL" ("DEFERRED_TRAN_DB" VARCHAR2(128),
    IMP-00015: following statement failed because the object already exists:
    "CREATE SYNONYM "DBA_ROLES" FOR "SYS"."DBA_ROLES""
    IMP-00015: following statement failed because the object already exists:
    "CREATE SYNONYM "DBA_ERRORS" FOR "SYS"."DBA_ERRORS""
    IMP-00008: unrecognized statement in the export file:
    . importing L1's objects into L1
    IMP-00017: following statement failed with ORACLE error 1435:
    "ALTER SCHEMA = "L1""
    IMP-00008: unrecognized statement in the export file:
    J
    Import terminated successfully with warnings.
    -------------------------------------b]
    So after analysing this log file, i created
    the appropriate drives and folders... as the
    import statement doesn't see them.
    E:\ORADATA G:\ORDATA etc...
    And i started to [b]IMPORT ONE MORE TIME. with:
    $ IMP73 sys/pssw Full=Y FILE=c:\temp\FOLD_1\data_1.dmp BUFFER=64000
    COMMIT=Y INDEXFILE=c:\temp\FOLD_1\BOO_idx.sql
    LOG=c:\temp\FOLD_1\BOO_log.LOG DESTROY=Y IGNORE=Y;
    after that i could not see the users nor the
    tables created.
    and the following message appeared in the log file:
    Warning: the objects were exported by L1, not by you
    . . skipping table "AN1999_BDAT"
    . . skipping table "ANPK"
    . . skipping table "BOAP"
    . . skipping table "BOO_D"
    ETC.....skipping all the tables
    . . skipping table "THIN_PER0"
    . . skipping table "UPDATE_TEMP"
    Import terminated successfully without warnings.
    and only 2 new tablespaces (originally 3) were
    created without any data in ( i check that in
    the Oracle Storage manager : the tablespaces exit
    with 0.002 used space; originally 60 M for each !!)
    so,
    How to import data (with full import option) succefully
    MORE THAN ONE TIME from an exported dump file ?
    Even if we have to overwrite tablespaces , tables and users.
    thank you very much

    The Member Feedback forum is for suggestions and feedback for OTN Developer Services. This forum is not monitored by Oracle support or product teams and so Oracle product and technology related questions will not be answered. We recommend that you post this thread to the appropriate Database forum.
    The main URL is:
    http://forums.oracle.com/forums/index.jsp?cat=18

  • I have a problem to  extract data from oracle dump file (.dmp) using oracle database or any other tools.

    There is IMP utility which provides me data as graphical way. But i need extract data in such a way so that i could able to use in my application.
    thanks,
    mohan

    Hi,
    EdStevens
    Actually I was using SQL Developer. Sorry for the wrong define question. Now the real problem is:
    I want to read or extract data in a txt file from Oracle Dump (.dmp) file without using Oracle sqlPlus or Oracle Database.
    No need to say that i am able to extract dump data using sqlPlus. But for that, there is a little burden to install oracle database
    or sql Developer.
    I also listen about Oracle Loader a little bit. Is it a tool for providing extraction of data from Oracle dump file.
    Thanks for your previous reply,
    And now waiting for your suggestion.
    thanks,
    mohan

Maybe you are looking for