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
Similar Messages
-
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. -
UML Modeling / Reverse Engineering Tool: Rational Rose orSELECT?
Can anyone comment on the relative strengths and weaknesses of the Forte
modeling / reverse engineering tools from Rational and SELECT? A brief
discussion of tools for reverse engineering Forte applications appeared in
June '98, but it was not clear how these products compared.
Regards,
Rob
Robert Black
Descartes Systems Group Inc.
Waterloo, Ontario
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>What version (or build) of UML are you using? You can find out by going Tools->Module Manager, find a uml module under UML category, right click on the module and bring up Properties, build number is listed under "Expert" section. What's your system platform? JDK?
In step 9, is the target uml project selected? Do you have other uml projects open at the same time? -
Copy data models and reports from BW 3.1 to NW 2004s
Hi experts,
Our client has two BW servers: BW 3.1 and BI 7. BW 3.1 contains lots of data models and reports. And the BI 7 server is newly installed.
Now we want to copy these data models and reports from BW 3.1 to the new BI 7 server. Are there any solutions for this?
Thank you very much in advance.Hi Frank,
Sounds like a cross version transport is needed.
This is a solution we have used to do what you want to do:-
Create and release a transport as per normal.
Copy and transport the files from the source system (BW 3.1) e.g /usr/sap/trans/data & /usr/sap/trans/cofiles to the same folders on the target system.
Basis help is needed here.
From here onwards using stms_import should help you in the normal manner.
Works a treat.
Have transported the following all correctly appearing as 3.x data models in NW2004s.
DSO objects.
Cubes
Transfer/Update rules
Reports.
Cheers,
Pom -
How to access data in AS 400 from Oracle database
Hi
Could you please help me on accessing data in AS 400 from Oracle database? what are the main things to do? Any private documentation or any oracle metalink note please...Hi
Please find the details given below....Any body can help me on this please....
Issue Description: The stock status report to be developed at SATN has some information that is currently calculated and stored in the Fox/pro system. A real time ODBC needs to be done to the AS/400 system to retrieve values for the respective fields. This has never been tested before as it impacts many areas.
The DBA team need to work to establish such a relationship and a report needs to be written in Oracle to have this tested on a real time basis. Mapping needs to be developed on the Oracle side to grab the correct fields -
Insert data into fact table from source database tables
here i try to insert data into fact table from source database tables here is the query
ALTER procedure [dbo].[facttable]
as
insert into [pp dw].dbo.Dimfact(Prod_ID,Production_ID,Material_ID,Equip_ID,WC_ID,Recipe_ID,Quantity,costprice)
select Products.[Product ID],[Production ID],Materials.[Material ID],[Equipment ID],[Work Centre ID],[Recipy ID],Quantity,[cost price]
from
[PRODUCTION PLANNING 2].dbo.[Products],
[PRODUCTION PLANNING 2].dbo.[Production Detail],
[PRODUCTION PLANNING 2].dbo.[Material category],
[PRODUCTION PLANNING 2].dbo.[Materials],
[PRODUCTION PLANNING 2].dbo.[Equipment],
[PRODUCTION PLANNING 2].dbo.[Working Centre] ,
[PRODUCTION PLANNING 2].dbo.[Recipies]
where
Products.[Product ID] in (13, 14, 15, 16, 17) and
[Production Detail].[Production ID] in (1, 2, 3) and
[Materials].[Material ID] in (1, 2, 3, 4, 5) and
[Equipment].[Equipment ID] in (1, 2, 3, 4) and
[Working Centre].[Work Centre ID] in (1, 2, 3) and
[Recipies].[Recipy ID] in (1, 2, 3) and
[Material category].[Category ID] in (8, 9, 10, 11, 12, 13)
and when i execute query it shows me error
The INSERT statement conflicted with the FOREIGN KEY constraint "FK_Dimfact_Dimproduct". The conflict occurred in database "pp dw", table "dbo.Dimproduct", column 'Prod_ID'.
ERD IS
HOW TO SOLVE THIS PROBLEM?I cant see any join conditions in your query posted. Whats the purpose of the query above. It will just bring you a cartesian product (cross join) of tables involved subjected to filters. Are you sure this is the correct query?
The error you're getting may be because you've not yet populated DimProduct or may be because of logic you used in popultaing DimProduct causing it to miss some records which is what query is referring to in above case.
Please Mark This As Answer if it solved your issue
Please Mark This As Helpful if it helps to solve your issue
Visakh
My MSDN Page
My Personal Blog
My Facebook Page -
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
PaulHi 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 -
I can't create Entity Data Model Class directly from database
I have just installed odac beta (ODAC1120250Beta_EntityFramework) and Orace XE 11g for test.
I have Visual Studio 2010 on Windows 7 32bit.
The problem is that after updating odac I can't create ADO.NET Entity Data Model class. If I try, VS2010 wizard makes me choose if I want to generate from db or create an empty model. If I choose to generate from database, the next window disappers making me return to VS2010.
The workaround is to create an empty model and then update model from database. In this way it works.
Anybody has experimented the same?...
Best regards
FrancescoA couple of things you could try:
1. Install SP1 for Visual Studio 2010.
2. Do you already have an Oracle connection created in server explorer? If not, try creating one and then create the model. -
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 youhttp://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). -
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
PAscalYou 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 -
EXPDP and IMPDP from existing database to new 'scratch' database
Hi All,
THis is the first time i'm trying to export and import (using datapump) from one database into a brand spanking new database.
Source/Target OS - WIndows 2008 R2 Standard
Source/Target - Oracle 11G Release 2 (same patch updates - 11.2.0.3.3)
I took a full expd of the source database.
I created the same directory structure on the target as the source. I created an empty database on the target server with the same name as the source.
I am trying to use impdp to import this full export into the target database, with the end goal being everything is the same on the target as it is on the source (users, tablespaces, data, schemas, etc...).
I am running into some errors (object already exists, a few others to mention). But my question is, is this a proper way of copying a database from one server to a new server?
Thanks in advanceThanks, here are some of the errors i've received:
ORA-31684: Object type ROLE:"HS_ADMIN_EXECUTE_ROLE" already exists
ORA-39111: Dependent object type OBJECT_GRANT:"ORDDATA" skipped, base object type SEQUENCE:"ORDDATA"."ORDDCM_DICT_A_DA_ID_SEQ" already exists
ORA-39082: Object type TRIGGER:"M_SYS"."MVP_OPD_D_TRG" created with compilation warnings
Cannot set an SCN larger than the current SCN. If a Streams Capture configuration was imported then the Apply that processes the captured messages needs to be dropped and recreated. See My Oracle Support article number 1380295.1.Table "SYSTEM"."DEF$_DEFAULTDEST" exists. Data will be appended to existing table but all dependent metadata will be skipped due to table_exists_action of append
ORA-31693: Table data object "SYSMAN"."MGMT_SYSTEM_PERFORMANCE_LOG" failed to load/unload and is being skipped due to error:
ORA-29913: error in executing ODCIEXTTABLEFETCH callout
ORA-02291: integrity constraint (SYSMAN.MGMT_SYSTEM_PERFORMANCE_LOG_FK) violated - parent key not found
ORA-31693: Table data object "ORDDATA"."ORDDCM_DOCS" failed to load/unload and is being skipped due to error:
ORA-29913: error in executing ODCIEXTTABLEFETCH callout
ORA-00001: unique constraint (ORDDATA.ORDDCM_DOCS_PK) violated
ORA-39082: Object type TRIGGER:"M_SYS"."M_US_PRIVS_TRG" created with compilation warnings
...and then the logfile finishes with this:
Job "SYS"."SYS_IMPORT_FULL_01" completed with 6542 error(s) at 12:56:31 -
Please follow the scenario:
using C#
1) current database file name is DB20122013.
when user click on new year button
2)Create backup copy of current database
3)New database should create with all table(excluding table "Dailytemp" and "DailyMain") with data and database name as DB20132014.
Musakkhir Sayyed.Hi,
I hope, below stored procedure is useful for your scenario.
CREATE PROC Create_New_Database
( @DBNAME VARCHAR(550)
)AS
Test : Exec [Create_New_Database] @DBNAME='DB20122013'
BEGIN TRY
SET NOCOUNT ON
DECLARE @sql VARCHAR(MAX), @DBNAME_NEW VARCHAR(550),@num int
IF EXISTS(SELECT 1 FROM sys.databases WHERE name=@DBNAME) AND ISNUMERIC(RIGHT(@DBNAME,4))=1
BEGIN
SELECT @num= RIGHT(@DBNAME,4)
SELECT @DBNAME_NEW='DB'+CAST(@num AS VARCHAR(10))+''+CAST(@num+1 AS VARCHAR(10))
IF EXISTS(SELECT 1 FROM sys.databases WHERE name=@DBNAME_NEW)
BEGIN
SELECT @DBNAME_NEW+' database already exists'
END
ELSE
BEGIN
SET @sql='USE '+@DBNAME+' '+' backup database '+@DBNAME+' to disk = ''C:\'+@DBNAME+'.bak'' '
+' restore database '+@DBNAME_NEW+' from disk = ''C:\'+@DBNAME+'.bak'''
+' with move '''+@DBNAME+''' to ''C:\'+@DBNAME+'_data.mdf'' ,
move '''+@DBNAME+'_log'' to ''C:\'+@DBNAME+'_log.log'''
EXEC (@sql)
SET @sql=''
SET @sql=' USE '+@DBNAME_NEW+' IF EXISTS(SELECT 1 FROM SYS.TABLES WHERE NAME=''Dailytemp'')
BEGIN DROP TABLE Dailytemp END IF EXISTS(SELECT 1 FROM SYS.TABLES WHERE NAME=''DailyMain'')
BEGIN DROP TABLE DailyMain END '
EXEC (@sql)
END
END
ELSE
BEGIN
SELECT 'Database is now found or Database name does not mach the scenario'
END
SET NOCOUNT OFF
END TRY
BEGIN CATCH
DECLARE @ErrorMessage NVARCHAR(4000)
DECLARE @ErrorSeverity INT
DECLARE @ErrorState INT
SELECT @ErrorMessage = ERROR_MESSAGE(), @ErrorSeverity = ERROR_SEVERITY(),@ErrorState = ERROR_STATE()
RAISERROR (@ErrorMessage,@ErrorSeverity,@ErrorState )
END CATCH;
GO
Regards,
RAMBHARATH -
Generate ERD from Existing Database
Hi,
i need some help getting an ERD from an already existing database.... i'm pretty sure there are tools available... so if any one could suggest some, i'd really appreciate it.
thanksuser9285365 wrote:
Sorry about the vague reply.... i created two different data sources... the first using the "Oracle in XE" driver and the second using the "Microsoft ODBC for Oracle driver" when i try connecting using the first i get the following error: _ODBC Error: 08004 [Oracle][ODBC][Ora]ORA-12154: TNS:could not resolve the connect identifier specified_So what you specified as the "server" was not found in the tnsnames.ora
the second gives me the following: _ODBC Error: NA000 [Microsoft][ODBC driver for Oracle][Oracle]ORA-06413: Connection not open_
Not familiar with that one
i am using: Oracle 10g express and MS Visio 2007 my operating system is Windows 7
Is your oracle product certified for windows 7?
thanksFWIW, I once had an issue where two supposedly identical desktops, running the same access (odbc) file (same, as in same, from a shared server) and one had to use the oracle driver, the other the MS driver .... I avoid odbc every chance I get. -
How to update date in a table from another database
Hello,
I am trying to code a way to Update my Testing database from another database. In the coding below the database that has the updated data ends in Restore.
Use ClientDB_MASTER_Restore
Truncate Table ClientDB_MASTER_Testing.dbo.Activity_Tracking_AZ
GO
SELECT * INTO ClientDB_Master_Testing.dbo.Activity_Tracking_AZ
FROM Activity_Tracking_AZ
Go
I know with this Technique the table must be truncated if not deleted first. There is probably a better way to do this which I'm very open to. I'm also looking for coding that will roll back any changes made should an error occur.
As always, any help is greatly appreciated.
David92595USE ClientDB_MASTER_Testing
go
SET XACT_ABORT ON
BEGIN TRANSACTION
Truncate Table dbo.Activity_Tracking_AZ
-- SET IDENTITY_INSERT dbo.Activity_Tracking_AZ ON
INSERT dbo.Activity_Tracking_AZ (col1, col2, ...)
SELECT col1, col2,
FROM ClientDB_MASTER_Restore.dbo.Activity_Tracking_AZ
-- SET IDENTITY_INSERT dbo.Activity_Tracking_AZ OFF
COMMIT TRANSACTION
If you find it boring to type the column lists, just find the table in Object Explorer, and drag the columns node to where you want the column list.
You need the SET IDENTITY_INSERT command if the table has an IDENTITY column.
By wrapping the code in a transaction, you are not left with an empty table if the INSERT fails. The command SET XACT_ABORT ON makes sure that the batch is aborted and rolled back in case of an error.
Erland Sommarskog, SQL Server MVP, [email protected] -
Is it possible to view the data that is extracted from logical database.
Hi ,
i have a standard program(T-code F.38) that uses logical database.This program also uses fields groups to define the structure.
Now my question how can i see the data that is been fetched from logical database?Is that possible?
I need to do further modifications on this data.Please advice whether its possible?hi,
one possibility is dat. goto SLDB give ur ldb name and goto source code.
u will get code.
now see dat and by giving same conditions u can check data using se16.
Maybe you are looking for
-
Questions on printing in htmldb
I try to create an invoice page to print. Some questions I ask to myself: - Is it possible to print to an A4 (papersize)? (I mean, does the application have notions of pagesize or is everything controlled by the browser? this is important when you ne
-
Problem :ALV:Deletion Flags not showing in output
hi all ! I have a alv program which displays customer data.there are three deletion flags columns in the output. First deletion flag will be: KNA1-LOEVM Second deletion flag will be: KNB1-LOEVM Third deletion flag will be: KNVV-LOEVM earlier all thre
-
To create a Universe Level filter for calculating one month's data
Post Author: roy999 CA Forum: Deployment Hi Everbody, I am creating a Monthly report using Deski XI R2. My requirement is :At the report prompt the user will enter only the Start Date (which will be the first day of previous month) and the End Date w
-
Error while updating JAVA stack patchs
hi i was updating JAVA stack patches from JSPM. and i got this error 10/12/09 15:53:33 - Start updating EAR file... 10/12/09 15:53:33 - start-up mode is lazy 10/12/09 15:53:33 - EAR file updated successfully for 118ms. 10/12/09 15:53:33 - Start d
-
Why is my Mac running so slow?
I have a Mac book late 2010 and it has 4 gb of ram. I got mountain lion and now every thing is slow like Turning on takes 1:30 to get to the log on screen. Loging in takes 30 sec opening any programs takes 30+ secs. Do you know why this is the case?