Reverse engineering from an existing database

just wondering if the SQL Data Modeler can reverse engineer an oracle 10g database, already in existence? If so, what are the steps/menu choices?
Thanks
Paul

Hi Paul,
menu path is File>Import>"Data Dictionary".
You need to define connection to Oracle database. If you use SQLDeveloper you can export your connections and import them at connections page of import wizard.Look at release notes [http://www.oracle.com/technology/products/database/datamodeler/html/ReleaseNotes.htm] for none Oracle databases.
Philip

Similar Messages

  • How to create table(s)/indexes on a new database from an existing database

    Hello all - I need some help in finishing a task, quick response is really appreciated
    So, I have a new database that needs creation of tables including indexes and objects for two different tablespaces called CDS1 and CSD2. I have created these tablespaces and datafiles associated with them. I need some help just to create these tables and indexes from an existing database without copying any of its contents. How can I achieve this, these are 2 different servers at different locations. Can somebody give me step by step instruction - would greatly appreciate it !
    Thanks,
    Vikas

    9876543210 wrote:
    Hello all - I need some help in finishing a task, quick response is really appreciated
    So, I have a new database that needs creation of tables including indexes and objects for two different tablespaces called CDS1 and CSD2. I have created these tablespaces and datafiles associated with them. I need some help just to create these tables and indexes from an existing database without copying any of its contents. How can I achieve this, these are 2 different servers at different locations. Can somebody give me step by step instruction - would greatly appreciate it !
    Thanks,
    Vikas
    exp help=yes
    exp username/password rows=no
    How do I ask a question on the forums?
    https://forums.oracle.com/message/9362002#9362002

  • Recreate database from an existing database script

    Hi Experts,
    I need script to recreate database from an existing database.I tried this to find in websites,im not able to get it.
    please help me to do this,
    Thanks in advance.
    regards
    sundar

    Hi there
    Here is basic script if you have all the necessary files assume you've a backup of the existing db.
    STARTUP NOMOUNT
    CREATE CONTROLFILE NEW DATABASE "TEST" RESETLOGS ARCHIVELOG
    MAXLOGFILES 16
    MAXLOGMEMBERS 3
    MAXDATAFILES 100
    MAXINSTANCES 8
    MAXLOGHISTORY 584
    LOGFILE
    GROUP 7 '/home/oracle/oradata/TEST/redo07.log' SIZE 800M,
    GROUP 8 '/home/oracle/oradata/TEST/redo08.log' SIZE 800M,
    GROUP 9 '/home/oracle/oradata/TEST/redo09.log' SIZE 800M,
    GROUP 10 '/home/oracle/oradata/TEST/redo10.log' SIZE 800M
    -- STANDBY LOGFILE
    DATAFILE
    '/home/oracle/oradata/TEST/system01.dbf',
    '/home/oracle/oradata/TEST/sysaux01.dbf',
    '/home/oracle/oradata/TEST/undotbs01.dbf',
    '/home/oracle/oradata/TEST/users01.dbf'
    CHARACTER SET WE8MSWIN1252
    ;

  • Reg: Reverse engineering from Code to Flowchart -

    Hi Experts,
    I'm facing problems while generating Flowchart from an existing old legacy PL/SQL code.
    Is there any tool available which can generate that? Oracle SQL Developer, Toad, etc...?
    I'm quite sure it'll no way be comparable to a flowchart created by a human brain, but will help in some way as the code is huge.
    If it gives a basic outline (big picture), I can analyze the code and add the rest.
    Any pointers is much appreciated.
    Thanks,
    Ranit

    Parsing even formatted code is tricky and usually just not worth the effort.
    This might most probably include your case too as reverse means the normal thing is the other way around so you're supposed to do something someone other had not done.
    To confirm the validity of never say never I admit having done something resembling parsing (from far and by night), it's not perfect, but it can do the job (at least here)
    A Loop Hunter:
    select owner,name,type,the_object,max(loop_count) loop_count,max(loop_depth) max_loop_depth,max(commit_in_loop) commit_in_loop
      from (select owner,name,type,keyword,the_object,loop_count,loop_depth,commit_in_loop
              from (select owner,name,type,keyword,the_object,
                           row_number() over (partition by owner,name,the_object order by line) prn,
                           row_number() over (order by owner,name,the_object,line) rn
                      from (select owner,name,type,line,keyword,
                                   last_value(case when instr(keyword,'loop') = 0
                                                    and instr(keyword,'commit') = 0
                                                   then keyword
                                              end
                                             ) ignore nulls over (partition by owner,name order by line) the_object
                              from (select owner,name,type,line,
                                           lower(case when instr(lower(text),'procedure') > 0
                                                      then regexp_replace(regexp_replace(ltrim(replace(case when instr(text,'.') > 0
                                                                                                            then 'procedure '||
                                                                                                                 substr(text,instr(text,'.',-1,1) + 1)
                                                                                                            else text
                                                                                                       end,'"'
                                                                                              ),'^(procedure\s*\w+)[( ].*','\1',1,1,'i'
                                                                                        ),'( ){2,}',' ')
                                                      when instr(lower(text),'function') > 0
                                                      then regexp_replace(regexp_replace(ltrim(replace(case when instr(text,'.') > 0
                                                                                                            then 'function '||
                                                                                                                 substr(text,instr(text,'.',-1,1) + 1)
                                                                                                            else text
                                                                                                       end,'"'
                                                                                              ),'^(function\s*\w+)[( ].*','\1',1,1,'i'
                                                                                        ),'( ){2,}',' ')
                                                      when instr(lower(text),'commit') > 0
                                                      then 'commit'
                                                      when instr(lower(text),'end loop') > 0
                                                      then 'end loop'
                                                      else 'loop'
                                                 end
                                                ) keyword
                                      from all_source
                                     where instr(','||upper(nvl(:owner_list,owner))||',',','||owner||',') > 0
                                       and instr(','||upper(nvl(:object_name_list,name))||',',','||name||',') > 0
                                       and instr(','||upper(nvl(:object_type_list,type))||',',','||type||',') > 0
                                       and regexp_like(ltrim(replace(text,chr(9),' ')),'^[^-/*].+')                        -- not a comment
                                       and (regexp_like(lower(ltrim(replace(text,chr(9),' '))),'^(procedure|function).*')
                                        or  instr(lower(replace(text,chr(9),' ')),' loop') > 0
                                        or  instr(lower(replace(text,chr(9),' ')),'commit') > 0
             model
               partition by (owner,name,type,the_object)
               dimension by (rn)
               measures (keyword,0 loop_count,0 loop_depth,0 commit_in_loop,prn)
               rules
               (loop_count[any] = case when prn[cv()] = 1
                                       then 0
                                       when keyword[cv()] = 'end loop'
                                       then loop_count[cv() - 1] + 1
                                       else loop_count[cv() - 1]
                                  end,
                loop_depth[any] = case when prn[cv()] = 1
                                       then 0
                                       when keyword[cv()] = 'loop'
                                       then loop_depth[cv() - 1] + 1
                                       when keyword[cv()] = 'end loop'
                                       then loop_depth[cv() - 1] - 1
                                       else loop_depth[cv() - 1]
                                  end,
                commit_in_loop[any] = case when prn[cv()] = 1
                                           then 0
                                           when keyword[cv()] = 'commit'
                                            and loop_depth[cv()] != 0
                                           then commit_in_loop[cv() - 1] + 1
                                           else commit_in_loop[cv() - 1]
                                      end
    group by owner,name,type,the_object
    having max(loop_count) >= max(loop_depth) and max(loop_depth) > 0
    order by max_loop_depth desc
    Regards
    Etbin

  • 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

  • Script to create tables from  an existing database

    I need a script to create tables without storage parameters from existing database

    Please repost your question in the database forum, General Database Discussions

  • Can we create external table from an existing database table ?

    Hi everyone,
    As i understand, its possible to create a new table based on an existing table without copying any values from it, using the following command;
    CREATE TABLE newtable AS
    (SELECT * FROM oldtable WHERE 1=2);
    I would like to know whether we can do a similar thing with external tables. That is to create an external table with the same columns as of an existing table.
    Thanks in advance for your answers.

    You need to clear conception about external table.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/utility.htm#sthref1800
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/tables.htm#sthref2448

  • Reverse Engineering from .fmx file?

    Is it possible to recover a corrupt .fmb file from the .fmx file? Somehow, my .fmb file got corrupted and I can no longer access it; however, the .fmx file seems to be OK. Is there any way I can get that .fmb file back?
    Thanks for your help.

    Try running CHKCONS & PURGEPUS utilities on the fmb. I had a similar problem with a file in Forms 4.5 and was able to successfully recover it.
    First, add the CHKCONS option to the Forms generator icon property as follows: module=<filename> userid=<username/passwd> chkcons=yes. Then, double click on the icon to generate. A dialog box appears indicating no file has been generated.
    Now, add the PURGEPUS=yes option to the designer icon and try opening the fmb.

  • JDeveloper capabilities for Reverse Engineering existing instances and data

    We are experiencing difficulty obtaining the indexes, synonyms, and triggers via reverse-engineering capture of existing 10g DB's. Does JDeveloper have the capabilities for Reverse Engineering all objects from existing DB's ?
    Will 10g JDeveloper handle reverse-engineering large 300 table schemas rich with large quantity of indexes, synonyms, & triggers?
    And last, how can a listing of the Data Dictionary be extracted /exported in CSV or excel format for review distribution? Via JDeveloper? We have a large distributed development, test, quality, and integration team which prefers to review various elements of schema updates and changes in excel.
    Thanx.

    Vicki-
    Thanks for the additional info. I was thinking you were most concerned with reverse-engineering existing schemas. I did not realize you were designing new schemas.
    When you mention ERDs, are you interested in logical ERDs (as compared to physical tables and foreign keys)? If you are interested in doing pure logical ERD modelling, then Designer is the way to go. It has been years since I worked with Designer, but it has ooodles of capabilities to forward and reverse engineer between databases, physical models, and logical models of schemas. It sounds like you might be using Designer today and are hitting some snags. Is this the case? If so, I suggest you see if Oracle Support or the Designer forum can help you get past the specific Designer issues. The forum for Oracle Designer is here: Designer
    Sue mention that JDeveloper does support database modelling. Here is a how-to for JDeveloper 11g that shows how it works:
    http://www.oracle.com/technology/obe/obe11jdev/11/db_dev/obe_%20databasedevmt.htm
    The how-to is pretty complete showing you forward and reverse engineering capabilities.
    A few more minor notes:
    1.The JDeveloper schema modelling features work on a physical (not logical) level. In other words, they work on tables not entities.
    2.The SQL Developer report features certainly work on "DATA". But, the "DATA" they work on can certainly be the data dictionary data. In other words, I can write a report in SQL Developer that queries all of the column names, column data types for a subset of tables. Then I can export that "DATA" into excel and use it for whatever your downstream needs are. The potential capabilities are practically unlimited.
    Cheers,
    -dave

  • Reverse engineer  from oracle database

    Hi friends,
    I am looking to create a diagram on my Visio 2010 using the reverse engineering feature to connect to my oracle database..Can some please post
    the required steps to achieve it...Thank you

    http://office.microsoft.com/en-us/visio-help/create-a-database-model-also-known-as-entity-relationship-diagram-HA010357092.aspx?CTT=1
    Paying close attention to this part which is hidden by default.
    >
    Can't find the database model features?
    Not every edition of Microsoft Visio has the database model feature. If you cannot find the features described in the procedures in this article, most likely you have an edition of Visio that does not include them.
    Microsoft Visio Standard does not include the Database Model Diagram template.
    Microsoft Visio Professional and Premium editions support the reverse engineering features for the Database Model Diagram template (that is, using an existing database to create a model in Visio), but it does not support forward engineering (that is, using a Visio database model to generate SQL code).

  • Script to Create Database from an Existing One

    I believe there is way to generate a script for re-creating a database from an existing database. But I forgot how. Anyone can Help. Thanks.

    Hi,
    Run the dbca.bat which in the oracle installer,
    In the last option you will get two options
    1)to create database
    2)create the script
    Here generate the script and run it in sql,
    Before that create the oracleservice and connect to the instance
    and run the script.
    Regards,
    Nirmal

  • 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

  • Odi REVERSE ENGINEERING AFTER RENAMING  A COLUMN.

    hi,
    i have altered the table definition .
    i have just renamed the columns name .
    now when i reverse engineer , the model contains new as well old columns.
    is there any way by which i can rename existing columns to the new one.

    No. You cannot.
    ODI doesnt know what your intentions were with the column renames.
    It doesnt remove the columns during reverse engineering that dont exist in the database because the columns in ODI maybe used in the mappings.
    The only way you can do is by doing it manually in ODI by renaming them

  • Creating mining structure as dimension using existing Database

    i have a requirement to create data mining structure as dimension using Analysis services database as the source.
    Kindly share me the steps?

    user12953093 wrote:
    I'm trying to create a template using DBCA. When I start it and choosing Welcome > Manage Templates > Create a database template [select From an existing database (structure as well as data)] this option is grey and not possible to choose. the others are available
    Anyone that ca tell me why and what to do to make it available ?
    Thanks
    Magnus JohanssonDo you have an existing database from which to create a template?
    Do you have an entry for said existing database in your oratab file?

  • Creating Template in DBCA shuts down existing database

    Found a feature in the Database Configuration Assistant under Manage Templates. It allows you to create a template of an existing database including the structure, meaning datafiles. I thought this would be great to create a test database on a different server.
    When I went to create the template, it did not warn me that it would shut down the database I was creating the template of. Not thinking it would need to, still don't understand why it would need to, I proceeded on my merry way until I was informed my production database was down. A quick review of the alert log showed the alter database shutdown command.
    So a warning to others not to do this, and a reminder to self to never trust an application to perform the way you think it should, but test, test, test before trying on production.
    I would love to hear if this is a bug or a undocumented feature of this utility. I also would like to know why it had to shut the database down.
    Thanks.

    There is a documented BUG 4393252 on 9i 9.2.0.6.0 which may relate to your problem.
    It indicates that DBCA issues a Shutdown Immediate without warning when you choose to create a Template "From an existing database (structure as well as data)".
    Have a look at it.

Maybe you are looking for

  • New error with php code

    why below example doesn't work? <?php $table =" select h.order_number,b.inventory_item_id,b.description item_desc from oe_order_headers_all h, oe_order_lines_all l, mtl_system_items_b b where h.header_id = l.header_id and l.inventory_item_id = b.inve

  • CUP - custom field and match code

    Hi, is it possible to have a custom field in CUP with a match code to help searching ? the only two way that i found are dropdown lists for a table from a backend system and free field ( varchar, date, numeric) thanks Regards Aurelien

  • Hp pavilion dv-7 2140ev malfunction, GPU broken?

    Hello, as mentioned i own one hp pavilion dv7 2140ev OS: windows 7  64bit i somehow managed to damage my laptop by accidentaly dropping it from my desk , about 1,5 meter. after this it gives me some horizontal lines at startup , then it shows my desk

  • Unable to install iLife '08.mpkg via ARD3.2

    I am unable to install iLife '08 on a remote computer using the "Manage > Install Packages..." option. I've had the same problem with Logic Express 7.2 and Final Cut Express 7. I've tried it from ARD3.2 on 10.4.11 as well as 10.5.3, installing to bot

  • Will my damaged macbook pro have documented the exact time that the damage occurd? e.g. water damage

    I am wondering if my macbook is capable of keeping record of when damage has occured, and if these records can be retrieved when the machine is broken. Many thanks.