Reverse engineer using DBMS_METADATA

Hi,
Can I use DBMS_METADATA package to reverse engineer a scheduled job from the database. I tried running below statement but it only returns the first job no matter what I do:
select JOB,WHAT,dbms_metadata.get_ddl('JOB',USER) FROM DBA_JOBS
I even used a where clause to make sure that I am using a specific job but the output remains same I mean I get statement generated only for first job.
Any thought?
Onkar

Solomon Yakobson wrote:
Gokhan Atil wrote:
You may try to use DBMS_JOB.USER_EXPORT:I don't believe DBMS_JOB.USER_EXPORT is available in 9i.
SY.Tested or guessing? Anyway, you can believe that it's available:
BANNER
Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
PL/SQL Release 9.2.0.8.0 - Production
CORE    9.2.0.8.0       Production
TNS for Solaris: Version 9.2.0.8.0 - Production
NLSRTL Version 9.2.0.8.0 - Production
FUNCTION BACKGROUND_PROCESS RETURNS BOOLEAN
PROCEDURE BROKEN
Argument Name                  Type                    In/Out Default?
JOB                            BINARY_INTEGER          IN
BROKEN                         BOOLEAN                 IN
NEXT_DATE                      DATE                    IN     DEFAULT
PROCEDURE CHANGE
Argument Name                  Type                    In/Out Default?
JOB                            BINARY_INTEGER          IN
WHAT                           VARCHAR2                IN
NEXT_DATE                      DATE                    IN
INTERVAL                       VARCHAR2                IN
INSTANCE                       BINARY_INTEGER          IN     DEFAULT
FORCE                          BOOLEAN                 IN     DEFAULT
PROCEDURE INSTANCE
Argument Name                  Type                    In/Out Default?
JOB                            BINARY_INTEGER          IN
INSTANCE                       BINARY_INTEGER          IN
FORCE                          BOOLEAN                 IN     DEFAULT
PROCEDURE INTERVAL
Argument Name                  Type                    In/Out Default?
JOB                            BINARY_INTEGER          IN
INTERVAL                       VARCHAR2                IN
FUNCTION IS_JOBQ RETURNS BOOLEAN
PROCEDURE ISUBMIT
Argument Name                  Type                    In/Out Default?
JOB                            BINARY_INTEGER          IN
WHAT                           VARCHAR2                IN
NEXT_DATE                      DATE                    IN
INTERVAL                       VARCHAR2                IN     DEFAULT
NO_PARSE                       BOOLEAN                 IN     DEFAULT
PROCEDURE NEXT_DATE
Argument Name                  Type                    In/Out Default?
JOB                            BINARY_INTEGER          IN
NEXT_DATE                      DATE                    IN
PROCEDURE REMOVE
Argument Name                  Type                    In/Out Default?
JOB                            BINARY_INTEGER          IN
PROCEDURE RUN
Argument Name                  Type                    In/Out Default?
JOB                            BINARY_INTEGER          IN
FORCE                          BOOLEAN                 IN     DEFAULT
PROCEDURE SUBMIT
Argument Name                  Type                    In/Out Default?
JOB                            BINARY_INTEGER          OUT
WHAT                           VARCHAR2                IN
NEXT_DATE                      DATE                    IN     DEFAULT
INTERVAL                       VARCHAR2                IN     DEFAULT
NO_PARSE                       BOOLEAN                 IN     DEFAULT
INSTANCE                       BINARY_INTEGER          IN     DEFAULT
FORCE                          BOOLEAN                 IN     DEFAULT
PROCEDURE USER_EXPORT
Argument Name                  Type                    In/Out Default?
JOB                            BINARY_INTEGER          IN
MYCALL                         VARCHAR2                IN/OUT
PROCEDURE USER_EXPORT
Argument Name                  Type                    In/Out Default?
JOB                            BINARY_INTEGER          IN
MYCALL                         VARCHAR2                IN/OUT
MYINST                         VARCHAR2                IN/OUT
PROCEDURE WHAT
Argument Name                  Type                    In/Out Default?
JOB                            BINARY_INTEGER          IN
WHAT                           VARCHAR2                INRegards
Gokhan

Similar Messages

  • Reverse Engineer Models Using DB Links ?

    Hi,
    I have tables that reside in database A.
    I can access those tables from Database B using db link.
    Is it possible to reverse engineer the tables belonging to database A in a model. If yes How?
    Please reply.
    Urgent Requirement
    Regards,
    Prerna

    Hi Prerna Vij,
    Yes you will.
    - In topology, create a physical schema in your dataserver B. Put the name of the source schema on A and enter the dblink name you want to use.
    - Create a logical schema and map it to the physical schema through contexts
    - In Designer, create a new model using the logical schema you just created and build all the datastore manually
    - Use these datastore as source in your interfaces and choose LKM Oracle to Oracle (DBLINK)
    Hope it helps.
    Regards,
    Jerome

  • Can SQL Dev Data Modeler be used to reverse engineer Windchill PDMLink

    Does anyone know if SQL Developer Data Modeler be used to reverse engineer Windchill PDMLink Oracle database? I need to get the DDL and ERDs from Windchill PDMLink.
    Can SQL Developer Data Modeler be used to reverse engineer object oriented Oracle databases?

    SQL Developer Data Modeler be used to reverse engineer Windchill PDMLink Oracle databaseprobably you mean Windchill PDMLink tables in Oracle database - yes, it's possible to get the structure of tables.
    Can SQL Developer Data Modeler be used to reverse engineer object oriented Oracle databases?It's not clear for me - you can reverse engineer definition of object and collection types, definitions of tables and views including those that use object and collection types in their definition.
    You can try it.
    Philip

  • Using Rational Rose to reverse engineer

    Hi,
    I am trying to reverse engineer the already existing code (it is an framework ) that our company is following. Any help in this direction will be really helpful.
    What will be the starting point to do that.

    Your postgresqldriver is missing ( in userlib/agent folder) - Could not load JDBC driver class .
    Similar issue for SQL Server - Unable to connect to SQL Server 2005 using ODI 11 g

  • Reverse-Engineer Java Code using JDeveloper

    Hi,
    Is it possible to reverse-engineer java code and produce class diagrams in JDeveloper? If so , how?
    I have JDeveloper 10g.
    Thanks

    Yes you can.
    Just open the java classes in a JDeveloper project, create a new class diagram and drag the classes onto the empty diagram.

  • Not able to see executions in operator - Reverse engineer problem

    Hi All,
    I´m starting a new project, this is the situation. I've created the agent (physical and logical), it's running as a service (OPMN instance). When I execute the test, "Agent test Successfull". So I guess that is not the problem.
    I'm creating a new model, I've already created the Data server (SQL server), connection test is Ok, I've also created the physical and Logical Schema. The problem is after creating a new model, when I select reverse engineer option, everything looks like that data is being correctly retrieve, however data do not appear in the model. When I go to the operator to check the log, nothing is there. Any idea?
    Thanks in advance,
    Gonzalo.-

    >
    The problem is after creating a new model, when I select reverse engineer option, everything looks like that data is being correctly retrieve, however data do not appear in the model. When I go to the operator to check the log, nothing is there. Any idea?
    >
    Do you mean to to say that uou are not finding any infor about the reverse engineering process in Operator ?
    If yes then please note Standard reverse engineering does not list down the operation performed in Operator.
    If you are using some RKM then only it will display the steps performed in Operator

  • Enquiry:  Any tool to reverse engineer an existing db schema in Oracle 8i

    Dear All,
    Do you know whether Oracle SQL Developer Data Modeler (3.1.1.703) supports Oracle 8i? If not, is there any tool that can be used to reverse engineer an existing database schema in Oracle 8i?
    Your early reply is appreciated.
    Thanks a lot.
    LAWRENCE CHOW

    That's a pity. The initial version of Data Modeler used to support import from Oracle 8i.
    You could try setting up an ODBC connection to your database and using the JDBC tab (rather than the Oracle tab) when entering the Connection details into Data Modeler.
    Alternatively, if you can get hold of an earlier version of Data Modeler (e.g. version 3.0 or earlier), you could try this (and if it works you could then upgrade your model to the current version).
    David

  • Reverse engineer issues in ODI 11g

    Hello gurus,
    We are testing ODI upgrade and we have an issue while reversing a data model.Its an existing sql server table and in ODI when we click on the reverse engineer ODI datastore doesnt sync with sql server DB table.
    Please help ?
    Thanks,
    Mastan.

    Thank you so much for your reply....Yes thats exactly right it is not considering the deleted columns....when i try to remove the the data store it gives me an error saying
    "object column : workflow_activity_identifier is referenced by: Txt CrossRef : 12142111, Txt CrossRef : 20617111
    Cannot remove"
    i think i have to edit my interfaces which is using the data store ? is there any way i can know how many interfaces are using this data store?
    Thanks for your help.

  • When i reverse engineer CSV file into datastore It is not diplaying coloums

    Hi All,
    When am trying to do reverse engineer the CSV file in the datastore it is not displaying all the Coloums at a time.
    Can anyone suggest me , how to do it
    Thanks & Regards:
    Vamsi

    Hi,
    Unfortunately there is no way of changing the delimiter from within DM. It's comma and that's it. I've logged a bug on that.
    Here is a workaround though. Open CSV file with text editor and use Replace functionality.For search mode you have to select Regular Expression, Type this:
    search string : (?![^(]+\)),
    replace string : ;
    This will replace all commas with semicolons, except those in brackets.
    I've tested it with Notepad++ (it's free). I think it can be used for all opened files at same time.
    Hope it helps
    When exporting, could you check that null pointer exception in log file and post stack trace here? Not entire file of course, just first 20-30 lines. Thanks
    Edited by: Dimitar Slavov on Mar 25, 2013 2:40 AM

  • ODI - Java Error when trying to reverse engineer - Hyperion Planning

    Hi,
    I am receiving the error below when I am attempting reverse engineer the emission members into the models tab in the ODI Designer. In topology manager I get connection successful in both Synopsis memory engine and in File technology and I have checked all my settings and everything looks correct compared to the test environment. We are actually testing the Production install with a very simple Hyperion Planning dimension build. Does anyone have any ideas why I am receiving the error below.
    Thank you in advance for the help!!
    org.apache.bsf.BSFException: exception from Jython:
    Traceback (innermost last):
    File "<string>", line 1, in ?
    ImportError: no module named java
    at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:146)
    at com.sunopsis.dwg.codeinterpretor.k.a(k.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting(SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSqlC.treatTaskTrt(SnpSessTaskSqlC.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
    at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
    at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
    at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
    at com.sunopsis.dwg.cmd.e.i(e.java)
    at com.sunopsis.dwg.cmd.g.y(g.java)
    at com.sunopsis.dwg.cmd.e.run(e.java)
    at java.lang.Thread.run(Unknown Source)

    Hi,
    It looks as though we got it to work. However the way we got it to work is a bit confusing. We had someone just login and try it. The only difference is they used the admin username instead of the one we were using. They successfully ran the reverse. Then we re-logged in with the other username we were using before and it worked.
    I just realized however before they did that, I was on the Prod server trying to open and view the odiparams.bat file. I accidentally ran the file by choosing 'open' instead of 'edit'. Thus I'm thinking that running that odiparams.bat file actually fixed the issue rather than logging in with admin account.
    What would your professional opinion be on this as we can't recreate the issue and figure out which one fixed it.
    Thanks,

  • EBS reverse engineer table/view names

    In SQL developer I connected to EBS and created some hierarchies from these tables - fnd_flex_value_hierarchies, fnd_flex_values_tl,FND_FLEX_VALUE_CHILDREN_V
    Now I am using the trying to reverse engineer in ODI using the EBS knowledge module, but I can't find these tables.
    ...I was told by an EBS person I should be using the above tables to build my account hierarchy...is this correct? Or are there other tables I should be using?
    Thank you,
    Jz

    Hi Frank,
    I assume you imported your Table definitions from a DDL file.
    Column datatypes appear in dialogs in the way you have described if Domains are set up during the import and the Columns are associated with these Domains.
    You can change this by opening the Preferences dialog (select Preferences from the Tools menu) and selecting Data Modeler/DDL in the tree.
    On the Data Modeler/DDL page of the Preferences you should unset the option "Create Domains During Import".
    David

  • Reverse engineer data model

    I was trying to reverse engineer database information into a data model diagram in visio 2000.
    I received the following error :
    Encountered a fatal error during reverse engineer of information from database
    My Database version is
    Oracle9i Enterprise Edition 9.2.0.5.0 64bit
    Is it true that Visio does not support Oracle 9i (as I was told) ? If so, is there any freeware on internet where I can do the same (reverse engineer)
    Thanks

    You can use most any ERD product to reverse engineer an existing system: oracle designer, ERWin ,ER/Studio, etc....
    But it is likely to be a very manual process.
    If the application does not make use of database defined FK, UK, and PK then you will likely be forced into reading source and/or running traces on application processes to follow the DML.
    HTH -- Mark D Powell --

  • Reverse Engineering using Desinger 6i

    Hi,
    I am using Oracle8i database. My database is already designed
    and developed. Now, I want to use Designer6i and want to reverse
    engineer my database. I have installed Designer6i successfully.
    But I am not finding option how to capture server model and ER
    Diagram into my repository from existing database.
    Please reply ASAP,
    Thanks & regards,
    Bhavesh Doshi

    Hi,
    Go to the Design Editor an select the option:
    Generate->Capture Design Of-> Server Model
    Here specify the Source as Database and give UserID/Password@conn
    along with Target Container and a Database(if none present, then
    create one using the DB Admin Tab).After this go to the objects
    Tab and Select all definitions(tables,procedures,etc.) which you
    want to bring to Designer and press start.This will bring your
    database to designer.
    Further, if you want to create entities for these tables you have
    just captured, go to ER Diagrammer,Select
    Utilities->Tables to Entity Retrofit,press Candidate Tables
    followed by Retrofit.
    This will do the job.

  • Reverse engineer on meta data

    How to reverse engineer and capture
    1. constraints
    2. indexes
    3. permissions
    fom a oracle 9.2 database ?

    See the DBMS_METADATA package.

  • Reverse engineer error with Hyperion Essbase and Planning

    We are getting the following error in ODI Operator (3rd step) when trying to reverse-engineer Hyperion Essbase and Planning models. com.microsoft.sqlserver.jdbc.SQLServerException: Cannot invoke a rollback operation when the AutoCommit mode is set to "true".
    Our ODI repository resides in SQL Server.. Any help is appreciated. Thanks.

    Hi Dmitriy,
    You should upgrade to the latest patch of ODI available on metalink.oracle.com 10.1.3.4.4.
    There was an issue in 10.1.3.4 ODI with the intial reverse when using SQL server. If you shutdown all the ODI UI's and then restart. And then reverse it should work correctly. But you have to make sure you shut down all ODI tools.
    Thanks,
    Denis

Maybe you are looking for