Reverse engineering SQL (not database)

Hello,
Is it planned to provide a tool to reverse engineer SQL statements as Sourceforge's Revj (Reverse Snowflakes Joins) do ?
This tool generates an ER Diagramm from an SQL Statement without connecting to the database. a demo is available at http://snowflakejoins.com/
Nb: It works fine with statements comming from SIEBEL or Oracle BI Analytics.
Regards
PAscal

You can Reverse engineering any database that
you have an ODBC driver installed for (you can set up an ODBC link to access via the ODBC administration utility under Oracle for Windows NT). From the menu choose Generate=> Capture Design of => Server Model. This brings up a tabbed dialouge box with three source settings.Choose the last radio group item - ODBC. There you will find a choice for MS Acess v7.0 (note:type will be set for you automatically).
Much success.
null

Similar Messages

  • Reverse Engineering is not working for custom

    hi odi guru's
    i installled Hyperion 11.1.2.2 and ODI 11.1.1 . while doing reverse engineering is not working for custom purpose.
    Iam working with Hyperion Financial management with odi. created dataserver and physical schema and logical schema
    and imported RKM HYperion Financial Management Knowledge module.
    is it required for hyperion latest patches to connect with odi. Please let me know . urgent?
    Thanks in adavnce

    hi
    is it required for hyperion patches to connect with odi?
    iam getting following error.
    ODI-1217: Session HFM_Model (5051) fails with return code 7000.
    ODI-1226: Step HFM_Model fails after 1 attempt(s).
    ODI-1229: An error occurred while performing a Reverse operation on model code HFM_MODEL.
    Caused By: org.apache.bsf.BSFException: exception from Jython:
    Traceback (most recent call last):
    File "<string>", line 38, in <module>
         at com.hyperion.odi.hfm.ODIHFMAppConnection.<init>(ODIHFMAppConnection.java:58)
         at com.hyperion.odi.hfm.ODIHFMAppReverser.connect(ODIHFMAppReverser.java:27)
         at com.hyperion.odi.common.ODIModelImporter.importModels(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
    com.hyperion.odi.common.ODIHAppException: com.hyperion.odi.common.ODIHAppException: Error occurred while loading driver.
         at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:146)
         at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.execInBSFEngine(SnpScriptingInterpretor.java:322)
         at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.exec(SnpScriptingInterpretor.java:170)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting(SnpSessTaskSql.java:2472)
         at oracle.odi.runtime.agent.execution.cmd.ScriptingExecutor.execute(ScriptingExecutor.java:47)
         at oracle.odi.runtime.agent.execution.cmd.ScriptingExecutor.execute(ScriptingExecutor.java:1)
         at oracle.odi.runtime.agent.execution.TaskExecutionHandler.handleTask(TaskExecutionHandler.java:50)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.processTask(SnpSessTaskSql.java:2913)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2625)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:558)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:464)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2093)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:366)
         at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:300)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:292)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:855)
         at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:126)
         at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:82)
         at java.lang.Thread.run(Thread.java:662)
    Caused by: Traceback (most recent call last):
    File "<string>", line 38, in <module>
         at com.hyperion.odi.hfm.ODIHFMAppConnection.<init>(ODIHFMAppConnection.java:58)
         at com.hyperion.odi.hfm.ODIHFMAppReverser.connect(ODIHFMAppReverser.java:27)
         at com.hyperion.odi.common.ODIModelImporter.importModels(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
    com.hyperion.odi.common.ODIHAppException: com.hyperion.odi.common.ODIHAppException: Error occurred while loading driver.
         at org.python.core.PyException.fillInStackTrace(PyException.java:70)
         at java.lang.Throwable.<init>(Throwable.java:181)
         at java.lang.Exception.<init>(Exception.java:29)
         at java.lang.RuntimeException.<init>(RuntimeException.java:32)
         at org.python.core.PyException.<init>(PyException.java:46)
         at org.python.core.PyException.<init>(PyException.java:43)
         at org.python.core.Py.JavaError(Py.java:455)
         at org.python.core.Py.JavaError(Py.java:448)
         at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:177)
         at org.python.core.PyObject.__call__(PyObject.java:355)
         at org.python.core.PyMethod.__call__(PyMethod.java:215)
         at org.python.core.PyMethod.instancemethod___call__(PyMethod.java:221)
         at org.python.core.PyMethod.__call__(PyMethod.java:206)
         at org.python.core.PyObject.__call__(PyObject.java:381)
         at org.python.core.PyObject.__call__(PyObject.java:385)
         at org.python.pycode._pyx1.f$0(<string>:38)
         at org.python.pycode._pyx1.call_function(<string>)
         at org.python.core.PyTableCode.call(PyTableCode.java:165)
         at org.python.core.PyCode.call(PyCode.java:18)
         at org.python.core.Py.runCode(Py.java:1204)
         at org.python.core.Py.exec(Py.java:1248)
         at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:172)
         at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:144)
         ... 19 more
    Caused by: com.hyperion.odi.common.ODIHAppException: Error occurred while loading driver.
         at com.hyperion.odi.hfm.ODIHFMAppConnection.<init>(ODIHFMAppConnection.java:58)
         at com.hyperion.odi.hfm.ODIHFMAppReverser.connect(ODIHFMAppReverser.java:27)
         at com.hyperion.odi.common.ODIModelImporter.importModels(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:175)
         ... 33 more
    Caused by: com.hyperion.odi.hfm.wrapper.HFMException: Error occurred while loading driver.
         at com.hyperion.odi.hfm.wrapper.HFMServer.<init>(HFMServer.java:29)
         at com.hyperion.odi.hfm.ODIHFMAppConnection.<init>(ODIHFMAppConnection.java:51)
         ... 40 more
    Caused by: com.hyperion.odi.hfm.wrapper.HFMException: no HFMDriver in java.library.path
         at com.hyperion.odi.hfm.wrapper.HFMDriverJNI.getDriver(HFMDriverJNI.java:23)
         at com.hyperion.odi.hfm.wrapper.HFMServer.<init>(HFMServer.java:26)
         ... 41 more
    please help me , thanks in advacne

  • Reverse engineering for existing database

    Hi,
    I have two different databases, one with my application (i.e. DB1), and the other with the designer installation (i.e.DB2).
    I want to get the Reverse Engineering of my app in DB1, and I know these steps:
    - Design Editor> DB Admin tab> Generate> Capture design of > Server Model.
    OK, but I get the "Create Database user" form, and the database and user name as "DEFAULT".
    What do I have to do?
    I just want designer to reverse engineer my DB1, and I think that it will store that meta info in the DB2. Am I correct?
    I have created a new workarea and container for that purpose, but should I create a "Oracle database" before capturing the server model? and that database, should be the DB1 or the DB2? both are already created, so I think that I need just the connection.
    thanks.

    You've basically got this right - DB1 is the database you are capturing from and DB2 contains the Designer repository into which the metadata is being captured.
    Designer wants to have a database definition and a schema definition in the repository to which it can attach your table definitions. In the Design Editor use the DB Admin tab to get to a place where you can create a database definition. Create an Oracle data definition for your application database (DB1) and create a schema definition (aka User) in that database to own your tables. Then those will appear as options in the Capture design of Server Model wizard.
    Yes, I know - a lot of steps for what seems to be a simple task - reverse engineer an existing database. That's Designer for you. This is one of the reasons that I say that if ALL you want is to see your database in a server model diagram, Designer is overkill. But Designer can do SO MUCH more than that - if you want to fully use it, the annoyances are worth it.

  • Reverse engineering an oracle database

    Hello:
    Can somebody tell me how I can generate the SQL statements to recreate a database (all objects, tables, indices, constraints, sequences, triggers, and procedures)?
    I do not have the option of backing up the database. Besides not having that privilege, the data volume is too high.
    Thanks.
    Venkat

    What version of Oracle? In 9i, you could use dbms_metadata to extract the DDL. Prior to that, you would either have to do a full export and import with the INDEXFILE flag to extract the DDL or to assemble the DDL from the data dictionary. Depending on which features you are taking advantage of, writing the code to figure out the DDL from the data dictionary can get rather painful.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • DATA MODELER: reverse engineering from existing database

    After IMPORT -> Data Dictionary
    Went thru dialog and Relational Model was displayed.
    Sorry,
    There was not relationship shown between each entity.
    Right, no Bachman lines between the boxes.
    Clicked the "<<" button to create Logical Model.
    Again, no lines between the boxes.
    Any suggestions?

    Hi,
    Do you have foreign keys defined in database? Is it supported database or you use generic JDBC import?
    Can you check log file for errors logged there? (it's in log directory of your installation)
    You need foreign keys defined in relational model in order to get relationships in logical model.
    Philip

  • Reverse engineering sql script inserts to java enumerators

    Hello.
    I'm working on an application that uses a number os tables to store qualifier information about certain entities. A person can, for example, be an "operator" or an "end-user".
    These sets of qualifying data are static, an work as enumerators.
    I have a SQL script containig a batch of insert statements which I world like to use to generate the corresponding java enumerator.
    So, i I have the following lines in my script:
    insert into PERSON_CATEGORY values(1, "operator");
    insert into PERSON_CATEGORY values(2, "end-user");
    a java enumerator file would be generated containing "operator" and "end-user" as the possible enumeration values.
    Can anyone point me to a tool providing the mechanisms necessary to do this?
    Thanks in advance,
    Hugo Oliveira
    [email protected]

    Actually you can easily do that with SQL:
    select 'public enum Category {'
    from dual
    union all
    select '  '||category||decode(rownum, 1, '', ',')
    from PERSON_CATEGORY
    union all
    select '}'
    from dualAssuming that there is a column category in the table person_category (btw: you should avoid INSERTS without stating the table columns as seen in the example in your first post).
    The result of this query can directly be saved as a Category.java
    Using a shell/batch script this can be automated as well.

  • Reverse Engineering huge database

    Hi,
    Iam trying to reverse engineer (using oracle designer) a huge database ( more than 1,000 tables and forms & reports ) developed using forms & reports - 9i.
    Being a new to oracle designer, (through internet study) I was able to do reverse engineer for small database and could create only ER-diagrams. but I really don't have any idea, how to handle a huge database.
    So please, if any one have an idea about reverse engineering a existing database kindly answer the below questions....
    1. How to import entire database to repository?.
    2. What is the best way to import the huge database, importing entire database at once or in parts ??
    3. We can do reverse engineer and create ER-Diagram from existing database. but I need to create Process diagram and Dataflow diagram also, Is there any way to create this 2 diagrams automatically just like ER-diagram from existing database ??
    4. How to import all forms & reports to repository at once. How to create Process diagram and Dataflow diagram from forms and reports ?
    Thanking You
    regards,
    Lokesh

    My advise is DON'T. Don't try to reverse engineer the whole application in one fell swoop.
    Instead decide what parts of the application do you need to work with RIGHT NOW, and reverse engineer those parts. There are no applications that use ALL of the tables in a single form or related set of forms. In fact, I'll bet that 90% of your application uses only 10% of the tables. You may even decide that you NEVER need to reverse engineer the other 90%.
    In deciding what to bring into Designer, simply ask yourself, "Why am I doing this?". If you don't plan to re-design, re-write, do major maintenance, or otherwise change the table, form, or report, skip it for now. If you need it to help understand the parts of the database that you DO plan to change, then MAYBE you want to reverse engineer it soon. Otherwise, leave it on the "to-be-done" list, and don't fret too much if you don't get to it. Believe me, if you really need it, you WILL get to it.

  • Unable to apply reverse engineering to dbf file

    Hello everyone,
    We are new to ODI and struggling to understand whether we are making an error or we are actually facing an issue with a .dbf file.
    Some details for everyone:
    - ODI version: 10.1.3.4.0
    - Platform: Win Server 2003 sp2
    - File we wish to load: xyz.dbf, where xyz.dbf is one of the 3 output files (xyz.shp, xyz.shx, xyz.dbf) of an ESRI geographic information systems software
    - We are not interested in the other .shp and .shx files but just in the .dbf one: hence we are treating this one as a stand-alone .dbf file.
    Given the above elements, we have executed the following:
    a. Created an ODBC entry using the "Microsoft dbase Driver for dbf files" vs. the relevant directory storing the .dbf file (as well as the .shp, .shx);
    b. Used Topology Manager --> "Dbase" technology to build the relevant Data Server, Physical Schema and Logical Schema.
    --- Up to this point when we test the connectivity to the .dbf file we have absolutely NO problems. ---
    We have then proceeded in Designer:
    c. Creating an appropriate Model vs. the Logical Schema introduced at point b.
    d. Attempting the reverse-engineering process.
    At this point however the "reverse engineering" has not performed what expected, as
    1. it has correctly introduced in Designer a datastore corresponding to the desired .dbf file, but
    2. it has not created any columns at all for the datastore, without producing any error message.
    Additionally, clicking on the datastore just created and selecting from it the "reverse" option in the "columns" tab, an error window is retrieved: "java.sql.SQLException: [Microsoft][ODBC dBase Driver]Invalid string or buffer length".
    At this point we are struggling to understand how to proceed further: shall we use a different ODBC driver/is this an error un-related to the ODBC driver we used/shall we use a different technology in consideration of the fact this .dbf file is not a stand-alone one but comes with .shp and .shx as well/anything else?
    Any help would be greatly appreciated.
    Thanks in advance!
    scagliaf

    Hi CTS,
    First, thanks for your help - much appreciated.
    However, we just tried to reverse the .dbf as you suggested using the custom reverse engineering via RKM SQL (Jython) module.
    First two steps (1 - Reset Metadata, 2 - Create Jython Classes) worked OK, but third failed with the same error mentioned in the first thread:
    Operator log details:
    org.apache.bsf.BSFException: exception from Jython: Traceback (innermost last):
    File "<string>", line 33, in ?
    File "<string>", line 111, in startReverse
    File "<string>", line 156, in SnpsReverse_gettables
    File "<string>", line 173, in SnpsReverse_getcolumns java.sql.SQLException: [Microsoft][ODBC dBase Driver]Invalid string or buffer length
         at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source)
         at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source)
         at sun.jdbc.odbc.JdbcOdbc.SQLColumns(Unknown Source)
         at sun.jdbc.odbc.JdbcOdbcDatabaseMetaData.getColumns(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java)
         at org.python.core.PyMethod.__call__(PyMethod.java)
         at org.python.core.PyObject.__call__(PyObject.java)
         at org.python.core.PyObject.invoke(PyObject.java)
         at org.python.pycode._pyx54._SnpsReverse__getcolumns$9(<string>:173)
         at org.python.pycode._pyx54.call_function(<string>)
         at org.python.core.PyTableCode.call(PyTableCode.java)
         at org.python.core.PyTableCode.call(PyTableCode.java)
         at org.python.core.PyFunction.__call__(PyFunction.java)
         at org.python.core.PyInstance.invoke(PyInstance.java)
         at org.python.pycode._pyx54._SnpsReverse__gettables$8(<string>:156)
         at org.python.pycode._pyx54.call_function(<string>)
         at org.python.core.PyTableCode.call(PyTableCode.java)
         at org.python.core.PyTableCode.call(PyTableCode.java)
         at org.python.core.PyTableCode.call(PyTableCode.java)
         at org.python.core.PyFunction.__call__(PyFunction.java)
         at org.python.core.PyMethod.__call__(PyMethod.java)
         at org.python.pycode._pyx54.startReverse$6(<string>:111)
         at org.python.pycode._pyx54.call_function(<string>)
         at org.python.core.PyTableCode.call(PyTableCode.java)
         at org.python.core.PyTableCode.call(PyTableCode.java)
         at org.python.core.PyTableCode.call(PyTableCode.java)
         at org.python.core.PyFunction.__call__(PyFunction.java)
         at org.python.core.PyMethod.__call__(PyMethod.java)
         at org.python.pycode._pyx55.f$0(<string>:33)
         at org.python.pycode._pyx55.call_function(<string>)
         at org.python.core.PyTableCode.call(PyTableCode.java)
         at org.python.core.PyCode.call(PyCode.java)
         at org.python.core.Py.runCode(Py.java)
         at org.python.core.Py.exec(Py.java)
         at org.python.util.PythonInterpreter.exec(PythonInterpreter.java)
         at org.apache.bsf.engines.jython.JythonEngine.exec(Unknown Source)
         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.h.y(h.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Unknown Source)
    java.sql.SQLException: java.sql.SQLException: [Microsoft][ODBC dBase Driver]Invalid string or buffer length      
    at org.apache.bsf.engines.jython.JythonEngine.exec(Unknown Source)      
    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.h.y(h.java)      
    at com.sunopsis.dwg.cmd.e.run(e.java)      
    at java.lang.Thread.run(Unknown Source)
    Any further idea?
    Thanks,
    scagliaf

  • How to convert Oracle database to Sql server Database

    Hi All,
    I have one database made in the Oracle 8i, i want to convert that database to Sql Server Database,
    Can anyone please give me the step by step process to do this conversion.
    Regards
    Ramesh Jha

    Try using the DTS (data transformation services) services of SQL Server 2000
    DTS is based on an OLE DB architecture that allows you to copy and transform data from a variety of data sources. For example: Oracle directly, using native OLE DB providers.
    Alternatively, you could follow the following broad steps for data migration (assuming you are retaining the same table structures in SQL Server, and that you are talking about SQL Server 2000).
    1. Get the CREATE scripts corresponding to each Oracle table / view / index. These can be reverse engineered from the database using a tool.
    2. Map Oracle datatypes to SQL server datatypes e.g: date maps to datetime/smalldatetime, numeric maps to one of int, bigint, smallint, etc depending on the range of values in the CREATE scripts.
    3. Indexes in SQL Server are of two types: Clustered / non-clustered. There can only be one clustered index on each table.
    4. Converting procedures and triggers will have to be line by line, since SQL Server uses a proprietary T-SQL instead of ORacle's PL/SQL
    I have yet to see a really good tool to do this migration, but it is possible to write a PL/SQL procedure / Pro*C program to automate the script creation for creating tables in the SQL Server database.
    For the actual data import into SQL Server, export the Oracle data table by table into flat files, and then use the import wizard of SQL Server enterprise manager

  • Reverse engineering to produce .DDL script

    Hi,
    Does anybody know the best way to reverse engineer all the tables in a 9i account in order to replicate the .DDL script which would have been used to create the table definitions in the first place.
    Also, does anybody know of the best way to similarly produce and ER diagram by reverse engineering either the database account, or the .DDL script which I will gain by acheiving the above.
    Thanks in advance
    Mark

    This can help you a lot:
    DBMS_METADATA
    With DBMS_METADATA you can retrieve complete database object definitions (metadata) from the dictionary by specifying:
    The type of object, for example, tables, indexes, or procedures
    Optional selection criteria, such as owner or name
    Parse items (attributes of the returned objects that are to be parsed and returned separately).
    Optional transformations on the output. By default the output is represented in XML, but callers can specify transformations (into SQL DDL, for example), which are implemented by XSLT (Extensible Stylesheet Language Transformation) stylesheets stored in the database or externally.
    DBMS_METADATA provides the following retrieval interfaces:
    For programmatic use: OPEN, SET_FILTER, SET_COUNT, GET_QUERY, SET_PARSE_ITEM, ADD_TRANSFORM, SET_TRANSFORM_PARAM, FETCH_xxx and CLOSE retrieve multiple objects.
    For use in SQL queries and for browsing: GET_XML and GET_DDL return metadata for a single named object. The GET_DEPENDENT_XML, GET_DEPENDENT_DDL, GET_GRANTED_XML, and GET_GRANTED_DDL interfaces return metadata for one or more dependent or granted objects.
    This chapter discusses the following topics:
    Summary of DBMS_METADATA Subprograms
    http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96612/d_metada.htm#ARPLS026
    Joel Pèrez
    http://otn.oracle.com/experts

  • SQL Server 2012 DB Engine does not start (clean install with server 2012 and 2008 R2)

    I'm trying to do clean installation of SQL server 2012 on Server 2012 (which is runnning as a VM on ESX server) and getting this "wait on the DB engine recovery failed" message. Initially, I though this issue was related to some permission issues
    but changing the permission or service accounts didn't help. I'm not seeing any "denied" messages in the log files either. Even with Server 2008 R2 (clean built VM), the installation gives the exactly the same error messages. 
    My setup is purely for test purpose; so, the security is not a concern. Can someone help or give me a clue where to look? 
    (Summary)
    Overall summary:
      Final result:                  Failed: see details below
      Exit code (Decimal):           -2061893606
      Start time:                    2014-05-28 17:12:12
      End time:                      2014-05-28 17:19:47
      Requested action:              Install
    Setup completed with required actions for features.
    Troubleshooting information for those features:
      Next step for SQLEngine:       Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
    Machine Properties:
      Machine name:                  WIN-1V3VKPV5Q19
      Machine processor count:       1
      OS version:                    Future Windows Version
      OS service pack:               
      OS region:                     United States
      OS language:                   English (United States)
      OS architecture:               x64
      Process architecture:          64 Bit
      OS clustered:                  No
    Product features discovered:
      Product              Instance             Instance ID                    Feature                
                     Language             Edition              Version         Clustered 
    Package properties:
      Description:                   Microsoft SQL Server 2012 Service Pack 1
      ProductName:                   SQL Server 2012
      Type:                          RTM
      Version:                       11
      Installation location:         E:\x64\setup\
      Installation edition:          Evaluation
      Slipstream:                    True
      SP Level                       1
      Patch Level:                   11.1.3128.0
    Product Update Status:
      Success: KB 2674319, KB 2793634
    Product Updates Selected for Installation:
      Title:                         Service Pack 1
      Knowledge Based Article:       KB 2674319
      Version:                       11.1.3000.0
      Architecture:                  x64
      Language:                      1033
      Title:                         SQL Server 2012 SP1 GDR Product Update
      Knowledge Based Article:       KB 2793634
      Version:                       11.1.3128.0
      Architecture:                  x64
      Language:                      All
      Update Source:                 MU
    User Input Settings:
      ACTION:                        Install
      ADDCURRENTUSERASSQLADMIN:      false
      AGTSVCACCOUNT:                 NT Service\SQLAgent$TESTDB
      AGTSVCPASSWORD:                *****
      AGTSVCSTARTUPTYPE:             Manual
      ASBACKUPDIR:                   Backup
      ASCOLLATION:                   Latin1_General_CI_AS
      ASCONFIGDIR:                   Config
      ASDATADIR:                     Data
      ASLOGDIR:                      Log
      ASPROVIDERMSOLAP:              1
      ASSERVERMODE:                  MULTIDIMENSIONAL
      ASSVCACCOUNT:                  <empty>
      ASSVCPASSWORD:                 <empty>
      ASSVCSTARTUPTYPE:              Automatic
      ASSYSADMINACCOUNTS:            <empty>
      ASTEMPDIR:                     Temp
      BROWSERSVCSTARTUPTYPE:         Automatic
      CLTCTLRNAME:                   <empty>
      CLTRESULTDIR:                  <empty>
      CLTSTARTUPTYPE:                0
      CLTSVCACCOUNT:                 <empty>
      CLTSVCPASSWORD:                <empty>
      CLTWORKINGDIR:                 <empty>
      COMMFABRICENCRYPTION:          0
      COMMFABRICNETWORKLEVEL:        0
      COMMFABRICPORT:                0
      CONFIGURATIONFILE:             C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\Log\20140528_170909\ConfigurationFile.ini
      CTLRSTARTUPTYPE:               0
      CTLRSVCACCOUNT:                <empty>
      CTLRSVCPASSWORD:               <empty>
      CTLRUSERS:                     <empty>
      ENABLERANU:                    false
      ENU:                           true
      ERRORREPORTING:                false
      FEATURES:                      SQLENGINE
      FILESTREAMLEVEL:               0
      FILESTREAMSHARENAME:           <empty>
      FTSVCACCOUNT:                  <empty>
      FTSVCPASSWORD:                 <empty>
      HELP:                          false
      IACCEPTSQLSERVERLICENSETERMS:  true
      INDICATEPROGRESS:              false
      INSTALLSHAREDDIR:              C:\Program Files\Microsoft SQL Server\
      INSTALLSHAREDWOWDIR:           C:\Program Files (x86)\Microsoft SQL Server\
      INSTALLSQLDATADIR:             <empty>
      INSTANCEDIR:                   C:\Program Files\Microsoft SQL Server\
      INSTANCEID:                    TESTDB
      INSTANCENAME:                  TESTDB
      ISSVCACCOUNT:                  NT AUTHORITY\Network Service
      ISSVCPASSWORD:                 <empty>
      ISSVCSTARTUPTYPE:              Automatic
      MATRIXCMBRICKCOMMPORT:         0
      MATRIXCMSERVERNAME:            <empty>
      MATRIXNAME:                    <empty>
      NPENABLED:                     0
      PID:                           *****
      QUIET:                         false
      QUIETSIMPLE:                   false
      ROLE:                          <empty>
      RSINSTALLMODE:                 DefaultNativeMode
      RSSHPINSTALLMODE:              DefaultSharePointMode
      RSSVCACCOUNT:                  <empty>
      RSSVCPASSWORD:                 <empty>
      RSSVCSTARTUPTYPE:              Automatic
      SAPWD:                         *****
      SECURITYMODE:                  SQL
      SQLBACKUPDIR:                  <empty>
      SQLCOLLATION:                  SQL_Latin1_General_CP1_CI_AS
      SQLSVCACCOUNT:                 NT Service\MSSQL$TESTDB
      SQLSVCPASSWORD:                <empty>
      SQLSVCSTARTUPTYPE:             Automatic
      SQLSYSADMINACCOUNTS:           WIN-1V3VKPV5Q19\Administrator
      SQLTEMPDBDIR:                  <empty>
      SQLTEMPDBLOGDIR:               <empty>
      SQLUSERDBDIR:                  <empty>
      SQLUSERDBLOGDIR:               <empty>
      SQMREPORTING:                  false
      TCPENABLED:                    1
      UIMODE:                        Normal
      UpdateEnabled:                 true
      UpdateSource:                  MU
      X86:                           false
      Configuration file:            C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\Log\20140528_170909\ConfigurationFile.ini
    Detailed results:
      Feature:                       Database Engine Services
      Status:                        Failed: see logs for details
      Reason for failure:            An error occurred during the setup process of the feature.
      Next Step:                     Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
      Component name:                SQL Server Database Engine Services Instance Features
      Component error code:          0x851A001A
      Error description:             Wait on the Database Engine recovery handle failed. Check the SQL Server error log for potential causes.
      Error help link:               http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.3128.0&EvtType=0xD15B4EB2%400x4BDAF9BA%401306%4026&EvtType=0xD15B4EB2%400x4BDAF9BA%401306%4026
      Feature:                       SQL Browser
      Status:                        Passed
      Feature:                       SQL Writer
      Status:                        Passed
      Feature:                       SQL Client Connectivity
      Status:                        Passed
      Feature:                       SQL Client Connectivity SDK
      Status:                        Passed
    Rules with failures:
    Global rules:
    Scenario specific rules:
    Rules report file:               C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\Log\20140528_170909\SystemConfigurationCheck_Report.htm
    (Error Log)
    2014-05-28 17:17:26.64 spid8s      0 transactions rolled back in database 'msdb' (4:0). This is an informational message only. No user action is required.
    2014-05-28 17:17:26.73 spid9s      Starting up database 'model'.
    2014-05-28 17:17:28.24 spid9s      Error: 9004, Severity: 23, State: 6.
    2014-05-28 17:17:28.24 spid9s      An error occurred while processing the log for database 'model'.  If possible, restore from backup. If a backup is not available, it might be necessary to rebuild the log.
    2014-05-28 17:17:28.24 spid9s      SQL Trace was stopped due to server shutdown. Trace ID = '1'. This is an informational message only; no user action is required.
    (Details)
    (01) 2014-05-28 17:17:28 Slp: Exception type: Microsoft.SqlServer.Configuration.SqlEngine.SqlEngineConfigException
    (01) 2014-05-28 17:17:28 Slp:     Message: 
    (01) 2014-05-28 17:17:28 Slp:         Wait on the Database Engine recovery handle failed. Check the SQL Server error log for potential causes.
    (01) 2014-05-28 17:17:28 Slp:     HResult : 0x851a001a
    (01) 2014-05-28 17:17:28 Slp:         FacilityCode : 1306 (51a)
    (01) 2014-05-28 17:17:28 Slp:         ErrorCode : 26 (001a)
    (01) 2014-05-28 17:17:28 Slp:     Data: 
    (01) 2014-05-28 17:17:28 Slp:       SQL.Setup.FailureCategory = ConfigurationFailure
    (01) 2014-05-28 17:17:28 Slp:       WatsonConfigActionData = INSTALL@CONFIGRC@SQL_ENGINE_CORE_INST
    (01) 2014-05-28 17:17:28 Slp:       WatsonExceptionFeatureIdsActionData = System.String[]
    (01) 2014-05-28 17:17:28 Slp:     Stack: 
    (01) 2014-05-28 17:17:28 Slp:         at Microsoft.SqlServer.Configuration.SqlEngine.SqlServerServiceBase.WaitSqlServerStart(Process processSql)
    (01) 2014-05-28 17:17:28 Slp:         at Microsoft.SqlServer.Configuration.SqlEngine.SqlServerServiceSCM.StartSqlServer(String[] parameters)
    (01) 2014-05-28 17:17:28 Slp:         at Microsoft.SqlServer.Configuration.SqlEngine.SqlEngineDBStartConfig.ConfigSQLServerSystemDatabases(EffectiveProperties properties, Boolean isConfiguringTemplateDBs, Boolean useInstallInputs)
    (01) 2014-05-28 17:17:28 Slp:         at Microsoft.SqlServer.Configuration.SqlEngine.SqlEngineDBStartConfig.DoCommonDBStartConfig(ConfigActionTiming timing)
    (01) 2014-05-28 17:17:28 Slp:         at Microsoft.SqlServer.Configuration.SqlConfigBase.SlpConfigAction.ExecuteAction(String actionId)
    (01) 2014-05-28 17:17:28 Slp:         at Microsoft.SqlServer.Configuration.SqlConfigBase.SlpConfigAction.Execute(String actionId, TextWriter errorStream)
    (01) 2014-05-28 17:17:28 Slp: Watson Bucket 1 
     Original Parameter Values 
    (01) 2014-05-28 17:17:28 Slp: Parameter 0 : SQL Server 2012@RTM@ 
    (01) 2014-05-28 17:17:28 Slp: Parameter 1 : Microsoft.SqlServer.Configuration.SqlEngine.SqlServerServiceBase.WaitSqlServerStart 
    (01) 2014-05-28 17:17:28 Slp: Parameter 2 : Microsoft.SqlServer.Configuration.SqlEngine.SqlServerServiceBase.WaitSqlServerStart 
    (01) 2014-05-28 17:17:28 Slp: Parameter 3 : Microsoft.SqlServer.Configuration.SqlEngine.SqlEngineConfigException@1306@26 
    (01) 2014-05-28 17:17:28 Slp: Parameter 4 : Microsoft.SqlServer.Configuration.SqlEngine.SqlEngineConfigException@1306@26 
    (01) 2014-05-28 17:17:28 Slp: Parameter 5 : SqlEngineDBStartConfigAction_install_configrc 
    (01) 2014-05-28 17:17:28 Slp: Parameter 6 : INSTALL@CONFIGRC@SQL_ENGINE_CORE_INST 
    (01) 2014-05-28 17:17:28 Slp: 
     Final Parameter Values 
    (01) 2014-05-28 17:17:28 Slp: Parameter 0 : SQL Server 2012@RTM@ 
    (01) 2014-05-28 17:17:28 Slp: Parameter 1 : 0xD15B4EB2 
    (01) 2014-05-28 17:17:28 Slp: Parameter 2 : 0xD15B4EB2 
    (01) 2014-05-28 17:17:28 Slp: Parameter 3 : 0x4BDAF9BA@1306@26 
    (01) 2014-05-28 17:17:28 Slp: Parameter 4 : 0x4BDAF9BA@1306@26 
    (01) 2014-05-28 17:17:28 Slp: Parameter 5 : SqlEngineDBStartConfigAction_install_configrc 
    (01) 2014-05-28 17:17:28 Slp: Parameter 6 : 0x9C5770A6 

    Hi Nababoya:
    As you are telling this is a test installation process...
    In the logs i m seeing the error message "An error occurred while processing the log for database 'model'.  If possible, restore from backup. If a backup is not available, it might be necessary to rebuild the log.".
    1) If the SQL Services was installed successfully and SQL Service was not able to start because of model database issue...
        1.1) If you have model database SQL back file, start the SQL Server in single user mode with minimum configuration and try to restore MODEL database
    http://blogs.msdn.com/b/sqlserverfaq/archive/2011/05/11/inf-hey-my-sql-server-service-is-not-starting-what-do-i-do.aspx
        1.2) If you don't have backups., try to rebuild the system databases but make sure that you are not losing any data critical data on master and SQL Jobs on MSDB
    http://msdn.microsoft.com/en-us/library/dd207003%28v=sql.110%29.aspx#RebuildProcedure
    2) As if this is a new installation try to repair the instance with the help of setup media file
    3) If the repair option fails., the last option wipe out the complete SQL Server components from Services.msc and Registries and start new installation.
    4) Make sure when you are doing un-installation all the required SQL Server components on services.msc should be in stop state.
    Hope this helps and let me know any questions...
    Thanks,
    Thanks, Satish Kumar. Please mark as this post as answered if my anser helps you to resolves your issue :)

  • Is it possible to have different authentication mode for SQL Server Database Engine and corresponding SQL Server instance?

    Hi,
    I have installed the x64 SQL Server 2008 R2 Express with default settings and run MBSA 2.3 (using default settings too). It shows three SQL Server instances: MSSQL10_50.SQLEXPRESS, SQLEXPRESS and SQLEXPRESS (32-bit). For the first, authentication
    mode is Windows, for the rest two - mixed. Here https://social.msdn.microsoft.com/Forums/sqlserver/en-US/03e470dc-874d-476d-849b-c805acf5b24d/sql-mbsa-question-on-folder-permission?forum=sqlsecurity question
    about such multiple instances was asked and the answer is that "MSSQL10.TEST_DB
    is the instance ID for the SQL Server Database Engine of the instance, TEST_DB", so in my case, it seems that MSSQL10_50.SQLEXPRESS is the instance ID for SQL Server Database Engine  of the SQLEXPRESS instance.
    I have two questions:
    1) How can it be that SQL Server DB Engine instance has different authentication mode than corresponding SQL Server Instance?
    2) Why 32-bit instance reported although I installed only 64-bit version?
    Also, this https://social.technet.microsoft.com/Forums/security/en-US/6b12c019-eaf0-402c-ab40-51d31dce968f/mbsa-23-reporting-sql-32bt-instance-is-running-in-mixed-mode-when-it-is-set-to-integrated?forum=MBSA question seems to be related to this
    issue, but there is no answer :(.
    Upd: Tried on clean Windows 8 installation and Windows 7 with the same result.

      Because I DO NOT want the three people who will be having access to the production SQL Server to also have access to the primary host ProductionA.  Since I have to allow them to RDC into the box to manage the SQL Server, I figure why not create
    a separate VM for each one of them and they can RDC into those instead.
    Does this make any sense?
    Any tips are greatly appreciated.  The main reason for doing this is because the three people who will be accessing the box, I need to isolate each one of them and at the same time keep them off of the primary ProductionA.
    Thanks for your help.
    M
    Hello M,
    Since you dont want the 3 guys to have access to Production machine A.You can install SQL Server client .By client i mean SQL server management studio(SSMS) on there local desktop and then create login for them in SQL Server.Open port on which your SQL server
    is running for three of the machines so that they can connct.Now with SSMS installed on each machine each can connect to SQL server from there own machine.
    I would also like you to be cautious with giving Sysadmin privilege to all three of them ,first please note down what task they would do and then decide what rights to be provided.
    Your option will also work but you need to create 3 VM for that .Which is more tedious task.
    Hope this helps
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • SQL Server Management 6.5.1.0 and 6.5.4.0 does not discovery SQL 2008 databases on Windows 2003

    SQL Server Management 6.5.1.0 and 6.5.4.0 does not discovery SQL 2008 databases on a custom instance name or when multiple SQL instances are installed on Windows 2003.
    OS Version: Windows 2203 x64 with SP2
    Database Version: 10.3.5869.0
    The instance in this case: I01 is running on port 49168.
    SQL Server Network Configuration | Protocols for I01 | IP Addresses | IPAll | TCP Port = 49168
    The DB Engine class is discovered but not the "Tcp Port" property.
    The database discovery script then fails as it is missing the 8th parameter; The Port.
    Looking at the discovery script DiscoverSQL2008DBEngineDiscovery.vbs i see the following WMI query.
    Set oWMI = GetObject("winmgmts:\\" & computerName & "\root\Microsoft\SqlServer\" & SQL_WMI_NAMESPACE)  
    Set oQuery = oWMI.ExecQuery("SELECT * FROM ServerNetworkProtocolProperty
    Using WMI Explorer if I connect to namespace: root\Microsoft\SqlServer\ComputerManagement10
    and query "SELECT * FROM ServerNetworkProtocolProperty". There are no instances.
    What am I missing or doing wrong?
    Closely related to this article. https://gallery.technet.microsoft.com/Hotfix-Management-Pack-SQL-17cf1118#content.
    Thanks
    Gavin

    Hi,
    I would like to know is there any update about the issue. If the issue is solved, will you please share the resolution here to help others in this forum who encounter similar issue.
    Regards,
    Yan Li
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Newly added column not reversed by strand  reverse engineering

    Hi Guys,
    I have reverse engg a datastore from Oracle database and later I added one new columns in the same table at database level. Now when I am doing strand reverse Engineering from the model the newly added columns are not being reflected in ODI.
    please comment/advise.
    I want to do this through strand reverse Engineering.
    Thanks,
    Giri

    Appreciate if any one share suggestion/inputs on this issue

  • Reverse Engineering of SQL server in ODI

    Hi,
    I created physical and logical architecture for MSSQL in topology manager. Connection and tested and done successfully.
    Now when I connected to Designer and trying to do selective reverse for MSSQL, its giving me below error :
    The Technology or the Driver used does not support Reverse Engineering
    java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]Invalid Descriptor Index
         at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source)
         at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source)
         at sun.jdbc.odbc.JdbcOdbc.SQLGetDataString(Unknown Source)
         at sun.jdbc.odbc.JdbcOdbcResultSet.getDataString(Unknown Source)
         at sun.jdbc.odbc.JdbcOdbcResultSet.getString(Unknown Source)
         at sun.jdbc.odbc.JdbcOdbcResultSet.getString(Unknown Source)
         at com.sunopsis.dwg.reverse.Reverse.a(Reverse.java)
         at com.sunopsis.dwg.reverse.Reverse.a(Reverse.java)
         at com.sunopsis.graphical.frame.b.ip.a(ip.java)
         at com.sunopsis.graphical.frame.b.ip.a(ip.java)
         at com.sunopsis.graphical.frame.b.hq.b(hq.java)
         at com.sunopsis.graphical.tools.utils.swingworker.v.call(v.java)
         at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:176)
         at com.sunopsis.graphical.tools.utils.swingworker.l.run(l.java)
         at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
         at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
         at java.lang.Thread.run(Unknown Source)
    Please reply and guide me whats missing???

    I have the same problem (The Technology or the Driver used does not support Reverse Engineering).
    I am using ODBC connection because my SQL SERVER DB use only Window Authentication, and by using JDBC driver you can access Ms SQL SERVER DB only using user-id and password.

Maybe you are looking for

  • 1 Apple ID, 2 People, 6 Apple Products

    I will start off by apologizing if the answer to my question is located elsewhere.  I was unable to find a thread that addressed my entire question.  The general question I have will be what will be associated with the iCloud ID and what will be asso

  • Images from a URL saved to cache?

    Hi all, I have an applet, which is required to download alot of images (maybe 100?) from different URL's. My question is, will these images be saved to the user's cache after viewing the applet for the first time (i.e. will they need to be downloaded

  • Smart object not opening?

    I am using CS3 and I have been having issues with my smart objects from camera raw, I given me an error, "could not edit smart object because disk not available". I have read a similar post, although they where not talking about camera raw smart obje

  • Migrating Fedora to Arch with Raid

    Hi everyone, I am considering moving from Fedora 16 to Arch and I was wondering if anybody could point me in the right direction re: 1. special considerations and support when migrating from Fedora to Arch (preserving file structures) 2. I have a 4 d

  • Flash won't play in IE

    I'd like to install flash content on my site and it plays fine in Safari but won't play in IE. Any thoughts? Here's a link to the page. http://www.raymondchase.com/music