Oracle Data Modeler query
Hi All,
I am using Oracle SQL Developer Data modeler tool. Find it a very good tool for database designing and its free. Here I can connect to Oracle database and get complete ER diagram, but I didn't see any place through which I can Reverse Engineer changes made to ER Diagram back to Schema.
Do anybody have any idea about this.
Thanks,
Danish
. Find it a very good tool for database designing and its free.Actually it's not free. The "free" version was an Early Adopter release and not intended for commercial use. The first production release is a very-far-from-free USD 3000 per seat. Worth it? Dunno, I haven't installed the production release yet.
The EA2 version of the tool does support forward engineering but it doesn't generate diffs between the existing schema and the new one, like Designer could.
Cheers, APC
blog: http://radiofreetooting.blogspot.com
Similar Messages
-
Data Model--Query Background colour
Hi All
In Oracle Applications(11i)----Standard Reports ,Query Background colour is changed to different colours(other than standard blue colour)
How Can we Achive This.?
Any Suugestions are welcome
Tahnks In Advance
SasiHello Sasi,
I have never touched an Oracle Application before, but in Report builder, i don't think there is a way to change the background color of the Data Model query to anything other than the standard blue.
-Marilyn -
Can you change the data model query dynamically based on its parent query
Hi
Question:
I have a data model query q1 and q2 is the child of q1
Say q1 returns 2 rows and and
for the first row
i want q2 to be select 1 from table1
for the second row
i want q2 to be select 1 from table2
Basically i want to build the q2 dynamically
for each row fetched in q1.
Can this be done?
If so where do i write the code to achieve this
Thanx in advance.
SureshOne simple (but not very realistic) example:
1. DATABASE TABLES AND DATA
CREATE TABLE dept_all (
deptno NUMBER (2),
dname VARCHAR2 (20),
in_usa CHAR (1) DEFAULT 'Y')
INSERT INTO dept_all VALUES (10, 'DEPT 10', 'Y');
INSERT INTO dept_all VALUES (20, 'DEPT 20', 'N');
INSERT INTO dept_all VALUES (30, 'DEPT 30', 'Y');
CREATE TABLE emp_usa (
empno NUMBER (4),
ename VARCHAR2 (20),
deptno NUMBER (2))
INSERT INTO emp_usa VALUES (1001, 'EMP 1001', 10);
INSERT INTO emp_usa VALUES (1002, 'EMP 1002', 10);
INSERT INTO emp_usa VALUES (3001, 'EMP 3001', 30);
INSERT INTO emp_usa VALUES (3002, 'EMP 3002', 30);
CREATE TABLE emp_non_usa (
empno NUMBER (4),
ename VARCHAR2 (20),
deptno NUMBER (2))
INSERT INTO emp_non_usa VALUES (2001, 'EMP 2001', 20);
INSERT INTO emp_non_usa VALUES (2002, 'EMP 2002', 20);
2. DATABASE PACKAGE
Note that Oracle Reports 3.0 / 6i needs 'static' ref cursor type for building Report Layout.
So, in package specification we must have both ref cursor types, static for Report Layout
and dynamic for ref cursor query.
CREATE OR REPLACE PACKAGE example IS
TYPE t_dept_static_rc IS REF CURSOR RETURN dept_all%ROWTYPE;
TYPE t_dept_rc IS REF CURSOR;
FUNCTION dept_query (p_where VARCHAR2) RETURN t_dept_rc;
TYPE t_emp_rec IS RECORD (
empno emp_usa.empno%TYPE,
ename emp_usa.ename%TYPE);
TYPE t_emp_static_rc IS REF CURSOR RETURN t_emp_rec;
TYPE t_emp_rc IS REF CURSOR;
FUNCTION emp_query (
p_in_usa dept_all.in_usa%TYPE,
p_deptno dept_all.deptno%TYPE)
RETURN t_emp_rc;
END;
CREATE OR REPLACE PACKAGE BODY example IS
FUNCTION dept_query (p_where VARCHAR2) RETURN t_dept_rc IS
l_dept_rc t_dept_rc;
BEGIN
OPEN l_dept_rc FOR
'SELECT * FROM dept_all WHERE ' || NVL (p_where, '1 = 1') || ' ORDER BY deptno';
RETURN l_dept_rc;
END;
FUNCTION emp_query (
p_in_usa dept_all.in_usa%TYPE,
p_deptno dept_all.deptno%TYPE)
RETURN t_emp_rc
IS
l_emp_rc t_emp_rc;
l_table VARCHAR2 (30);
BEGIN
IF p_in_usa = 'Y' THEN
l_table := 'emp_usa';
ELSE
l_table := 'emp_non_usa';
END IF;
OPEN l_emp_rc FOR
'SELECT * FROM ' || l_table || ' WHERE deptno = :p_deptno ORDER BY empno'
USING p_deptno;
RETURN l_emp_rc;
END;
END;
3. REPORT - QUERY FUNCTIONS AND DATA LINK
FUNCTION q_dept RETURN example.t_dept_static_rc IS
BEGIN
-- "p_where" is a User Parameter
RETURN example.dept_query (:p_where);
END;
FUNCTION q_emp RETURN example.t_emp_static_rc IS
BEGIN
-- "in_usa" and "deptno" are columns from Parent Group (G_DEPT)
RETURN example.emp_query (:in_usa, :deptno);
END;
Of course, we must create Data Link between Parent Group (G_DEPT) and Child Query (Q_EMP).
Regards
Zlatko Sirotic -
Oracle date parameter query not working?
http://stackoverflow.com/questions/14539489/oracle-date-parameter-query-not-working
Trying to run the below query, but always fails even though the parameter values matches. I'm thinking there is a precision issue for :xRowVersion_prev parameter. I want too keep as much precision as possible.
Delete
from CONCURRENCYTESTITEMS
where ITEMID = :xItemId
and ROWVERSION = :xRowVersion_prev
The Oracle Rowversion is a TimestampLTZ and so is the oracle parameter type.
The same code & query works in Sql Server, but not Oracle.
Public Function CreateConnection() As IDbConnection
Dim sl As New SettingsLoader
Dim cs As String = sl.ObtainConnectionString
Dim cn As OracleConnection = New OracleConnection(cs)
cn.Open()
Return cn
End Function
Public Function CreateCommand(connection As IDbConnection) As IDbCommand
Dim cmd As OracleCommand = DirectCast(connection.CreateCommand, OracleCommand)
cmd.BindByName = True
Return cmd
End Function
<TestMethod()>
<TestCategory("Oracle")> _
Public Sub Test_POC_Delete()
Dim connection As IDbConnection = CreateConnection()
Dim rowver As DateTime = DateTime.Now
Dim id As Decimal
Using cmd As IDbCommand = CreateCommand(connection)
cmd.CommandText = "insert into CONCURRENCYTESTITEMS values(SEQ_CONCURRENCYTESTITEMS.nextval,'bla bla bla',:xRowVersion) returning ITEMID into :myOutputParameter"
Dim p As OracleParameter = New OracleParameter
p.Direction = ParameterDirection.ReturnValue
p.DbType = DbType.Decimal
p.ParameterName = "myOutputParameter"
cmd.Parameters.Add(p)
Dim v As OracleParameter = New OracleParameter
v.Direction = ParameterDirection.Input
v.OracleDbType = OracleDbType.TimeStampLTZ
v.ParameterName = "xRowVersion"
v.Value = rowver
cmd.Parameters.Add(v)
cmd.ExecuteNonQuery()
id = CType(p.Value, Decimal)
End Using
Using cmd As IDbCommand = m_DBTypesFactory.CreateCommand(connection)
cmd.CommandText = " Delete from CONCURRENCYTESTITEMS where ITEMID = :xItemId and ROWVERSION = :xRowVersion_prev"
Dim p As OracleParameter = New OracleParameter
p.Direction = ParameterDirection.Input
p.DbType = DbType.Decimal
p.ParameterName = "xItemId"
p.Value = id
cmd.Parameters.Add(p)
Dim v As OracleParameter = New OracleParameter
v.Direction = ParameterDirection.Input
v.OracleDbType = OracleDbType.TimeStampLTZ
v.ParameterName = "xRowVersion_prev"
v.Value = rowver
v.Precision = 6 '????
cmd.Parameters.Add(v)
Dim cnt As Integer = cmd.ExecuteNonQuery()
If cnt = 0 Then Assert.Fail() 'should delete
End Using
connection.Close()
End Sub
Schema:
-- ****** Object: Table SYSTEM.CONCURRENCYTESTITEMS Script Date: 1/26/2013 11:56:50 AM ******
CREATE TABLE "CONCURRENCYTESTITEMS" (
"ITEMID" NUMBER(19,0) NOT NULL,
"NOTES" NCHAR(200) NOT NULL,
"ROWVERSION" TIMESTAMP(6) WITH LOCAL TIME ZONE NOT NULL)
STORAGE (
NEXT 1048576 )
Sequence:
-- ****** Object: Sequence SYSTEM.SEQ_CONCURRENCYTESTITEMS Script Date: 1/26/2013 12:12:48 PM ******
CREATE SEQUENCE "SEQ_CONCURRENCYTESTITEMS"
START WITH 1
CACHE 20
MAXVALUE 9999999999999999999999999999still not comming...
i have one table each entry is having only one fromdata and one todate only
i am running below in sql it is showing two rows. ok.
select t1.U_frmdate,t1.U_todate ,ISNULL(t2.firstName,'')+ ',' +ISNULL(t2.middleName ,'')+','+ISNULL(t2.lastName,'') AS NAME, T2.empID AS EMPID, T2.U_emp AS Empticket,t2.U_PFAcc,t0.U_pf
from [@PR_PRCSAL1] t0 inner join [@PR_OPRCSAL] t1
on t0.DocEntry = t1.DocEntry
inner join ohem t2
on t2.empID = t0.U_empid where t0.U_empid between '830' and '850' and t1.U_frmdate ='20160801' and t1.u_todate='20160830'
in commond promt
select t1.U_frmdate,t1.U_todate ,ISNULL(t2.firstName,'')+ ',' +ISNULL(t2.middleName ,'')+','+ISNULL(t2.lastName,'') AS NAME, T2.empID AS EMPID, T2.U_emp AS Empticket,t2.U_PFAcc,t0.U_pf
from [@PR_PRCSAL1] t0 inner join [@PR_OPRCSAL] t1
on t0.DocEntry = t1.DocEntry
inner join ohem t2
on t2.empID = t0.U_empid where t0.U_empid between {?FromEmid} and {?ToEmid} and t1.U_frmdate ={?FDate} and t1.u_todate={?TDate}
still not showing any results.. -
Oracle Data Modeler - Impact Analysis option
Hi
I am using Oracle Data Modeler 3.1.0683 and reversed engineering my existing relational models to logical models. I have 3 relational models and reverse engineering it to 1 logical model.
In logical model under enity's propoerties -> impact analysis how do I add which relational table the logical entity depends on? For example in relational models i have table Class, Student, teacher in 3 separate relation model. Logical i created entity Person which depends on table Student from relational model 1, and teacher from relational model 2, I want to view(add) these tables under "Impact Analysis".
The help window says
<quote>
+"Impact Analysis+
+Enables you to view and specify information to be used by Oracle Warehouse Builder for impact analysis."+
</quote>
Though i couldnt figure out where to specify?
Thanks in advance.
Regards
LahoriaSo any suggestions how can I bring those table ( as i mentioned in original post) to show up in Impact AnalysisIf your entity is result of reverse engineering from relational model then you can find related table under mappings. The same if you engineer logical model to relational model.
If you start from column then you can see related attribute in logical model and usage in data flow diagrams and dimensional models
Philip -
Oracle Data Modeler commit change seg physical table
Hello,
Sometimes when I record a data model, Oracle Data Modeler (SVN) given as outgoing a chage of segment of physical table , if you committees are to change, duplication of files in the physical model is produced. Later when you open the physical model gives errors that have duplicate files
How you can correct this error? Why the segment change occurs?
ThanksHello,
Versión 4.0.0.833.
No pattern is occasionally when shooting in the data model. How you can correct this error? Why the segment change occurs?
Thanks -
Oracle Data Modeler price list
Hi everyone,
We would like to install Oracle Data Modeler in the Office. We have seen on the web site that we can download it for free. But if you open the price list it is announced for 3000 $ by machine.
We don't understand how is it working.
Maybe there is a larger version, or it is only free for personnal use...
Thanx for clear that up.
CheersHi,
yes I think we are thinkink to the same product.
Here
[http://www.oracle.com/technology/products/database/datamodeler/index.html]
My Question is :
Everywhere on the web, it is said that it's free to use, but here you see on the price list that , it is a priced product.
[http://www.oracle.com/technology/products/database/datamodeler/html/pricing_faq.html]
What we like to know is why is it free to download, and not free to use.
Thanks for your reply -
ORACLE reports Build 10g - Data Model - query - If statement in Alias ?
I have the following select statement. It has the alias Survivors, Deaths and "All
With the ORACLE reports Build 10g - Data Model - I have the following query statement. I require the alias to change. Can the following be done.
Cases". Is it posible to use :P_LANGUAGE variable to say that -- IF :P_LANGUAGE = FRENCH THEN alias are Survivants for survivors, Décès for Deaths, Tous_les_cas for All Cases. Please advise
SELECT ALL T_NTR_MULTIBAR.CAT, T_NTR_MULTIBAR.NUM_CASES_LEFTBAR AS Survivors,
T_NTR_MULTIBAR.NUM_CASES_MIDDLEBAR AS Deaths, T_NTR_MULTIBAR.NUM_CASES_RIGHTBAR AS "All Cases"
FROM T_NTR_MULTIBAR
WHERE INSTANCE_NUM = :P_INSTANCENUM
order by ORDERSIt is no problem, you can automatically change the complete query before the report is running, which delivers you different kind of values. But the alias names does not change in the group of the data-model, although two query are running with different alias names at different times. In the data model you see the alias names of the first implemented select statement, which are the column fields in the layout.
-
OBIEE EXECUTE PHYSICAL sql as Data Model Query
The following SQL was generated using OBIEE. I'd like to use it as the SQL query for my data model. It works fine it I hard code all of the values into the where clase. However when I attempt to pass parameter values (:ACCOUNTING_PERIOD & :FISCAL_YEAR) into the below SQL statement, I get an error and the report will not generate. The error is the typical "The report can't be rendered. Check with your administrator". Any ideas on how I can pass parameter values into this SQL?
EXECUTE PHYSICAL CONNECTION POOL SDEVDW SELECT A.BUSINESS_UNIT,A.PROJECT_ID,A.PROJECT_STATUS,A.EFFDT FROM SPSDW.PS_PROJECT_STATUS A WHERE A.EFFDT = (SELECT MAX(B.EFFDT) FROM SPSDW.PS_PROJECT_STATUS B WHERE B.BUSINESS_UNIT = A.BUSINESS_UNIT AND B.PROJECT_ID = A.PROJECT_ID AND B.PROJECT_STATUS<>'C' AND B.EFFDT <= (SELECT PPERIOD_END_DT FROM SPSDW.PS_D_DET_PERIOD WHERE PPERIOD_CD = 6 AND PYEAR_NUM = 2008 AND DT_PATTERN_CD = '01' AND SRC_SYS_ID = 'FSCM')
) ORDER BY 1,2,3I turned on debug and bounded OC4J. After I ran the report, I did not see any link.
The error that returns is:
"The report cannot be rendered because of an error, please contact the administrator."
Where will the link be located. Is there are log file that I can review. We are using BI Publisher enterprise (10.1.3.3.0). -
To suggest a feature for Product Oracle Data Modeler
Dear
I wish I could submit a suggestion for a new feature for Oralce Data Modeler, but not found to which communication channel can do it.
Can someone tell me an email or place to submit a suggestion, please.
Thank you,Hi,
you can use:
- Oracle support if you have license for Oracle Database
- SQL Developer exchange -https://apex.oracle.com/pls/apex/f?p=43135:1
- or just write it here
Philip -
Hello,
I have a Data Modeler Relational and physical, the data model has three. The three tables are in a BBDD. The primary key generate is usssing index , and when I generated the DDL only show alter table add constraint .... . until here everything OK.
if I compare the bbdd with Data Modeler , I get differences in indices that generated oracle when I create the primary key.
¿Is a bug or is there some way to fix it by configuration options?
ThanksHello,
So you have a Relational Model containing 3 Tables. I assume the Physical Model is for an Oracle database.
The primary key generate is usssing index , and when I generated the DDL only show alter table add constraint .... . until here everything OK.
I assume you are doing a DDL generation of your model (using the Generate DDL button above the diagram or using Export > DDL File from the File menu).
In the DDL Generation Options phase of the DDL generation, can you go to the Tables tab and check that the "Selected" check box for the relevant Tables is selected.
(This should normally be selected, but if you deselected it in a previous DDL generation, it will remember that setting.)
The "PK and UK Constraints" and "Indexes" tabs also allow you to control whether the constraints and Indexes are included in the generated DDL.
if I compare the bbdd with Data Modeler , I get differences in indices that generated oracle when I create the primary key.
¿Is a bug or is there some way to fix it by configuration options?
I assume here that you have input your generated DDL to your database and you are then doing a File > Import > Data Dictionary to compare your database definitions with your initial model.
It is likely that there will be some differences shown, due to defaults used by the database when the DDL is input (e.g storage properties for your indexes and tables).
I suggest you examine the differences (which will be highlighted in red on the Details, Storage Details or Physical Details tabs) for each object in the Compare Models dialog, and provided they are acceptable, select the Merge button to merge them into your model.
If you do not want some of the property differences to be merged, you should unset the "Selected" check box for that property before merging.
Note that it is possible to exclude specific properties from the comparison by selecting the Options tab in the Compare Models dialog, and then selecting the Properties Filter, Physical Properties Filter or Storage Properties Filter tab as appropriate.
I hope this helps.
David -
Migrating SAP BW into Oracle data model
We have a requirement where the exisiting data from SAP BW needs to be migrated into Oracle. Since I do not have any prior SAP BW experience, I wanted to ask the forum on what their thoughts are in converting the data model from SAP BW into Oracle. Would that be straight forward conversion for the fact and dimension tables into Oracle or are there certain things we need keep in mind while designing the data model in Oracle. For ex: indexes, keys, attributes etc if they are handled any differently between the two systems.
Hi
ERwin will not give you the functionality to derive the logical data model from SAP BW automatically, however Saphir from Silwood Technology (www.silwoodtechnology.com) does allow you to extract the detailed metadata from the SAP BW system ( as well as from other major standard or customised ERP applications - SAP itself, Oracle, Siebel, Peoplesoft and JD Edwards). Once this information is brought into its own repository, Saphir provides a range of powerful search and view capabilities to allow you to isolate the data you are interested in and then export that information to ERwin (or any other leading Modeling tool).
Saphir will provide you with details of the relationships and detailed definitions within SAP BW.
Hope this helps
Roland -
Hello, I download Oracle datamodeling-1.5.1-525 and I create a logical model of my future database. My database have about 127 entities, 974 attributes and 233 relations.
I want generate ddl sentences in oracle and generate my oracle scheme in my database (Oracle SE 10G R2). I tried to create a relational model throught to Designer -> Engineer to Relational Model (Ctrl-Mayus-F) but nothing happend. The program does not anything, no errors no models, nothing.
Can anyone help me, please?
Thanks you very much!!!
PD: Excuseme, but I'm Spanish and my English is horrible.Hi Roberto,
do you still use build 525? You can try the latest version here [http://www.oracle.com/technology/products/database/datamodeler/index.html] . Please pay attention to "release notes" and remark there - "Note for designs created with earlier versions of Data Modeler – persistence has changed and it’s strongly recommended that you use the “Save As” functionality to create new version of designs".
New version will resolve possible inconsistencies and you can engineer to relational model.
Philip -
Tabular data model: Query keeps timing out when attempting to Edit Table Properties
Tabular data model (SSDT)
Problem: I have a table in tabular data model using a SQL Query for a data source. The query in question requires about 3 minutes to regenerate. When I open Edit Table Properties for this data source the query times out and I get an error (see below): "
Failed to retrieve data from udvTrainJobReportsData. Reason: Query timeout expired"
This seems to happen anytime I use a query that takes longer than a couple of minutes to regenerate. Anyone have an idea on how to get around this. Is there a timeout setting somewhere in tabular data model that can be increased?
Thanks...Hi ManikantM,
According to your description, you query keeps time out when edit table properties. Right?
In this scenario, this error is thrown when connection or query execution exceeds the time out value. Please try to import this table and then increase the connection time out seconds.
We can increase to ExternalCommandTimeout in Analysis Server Properties. Please refer to link below:
http://aniruddhathengadi.blogspot.in/2012/07/ole-db-error-ole-db-or-odbc-error-query.html
Please also refer to a similar thread below:
https://social.technet.microsoft.com/Forums/office/en-US/3f83a26b-71c6-462e-8b90-2ce2ce0b9465/powerpivots-2010-query-keeps-timing-out-when-attempting-to-edit-table-properties?forum=excel
Best Regards,
Simon Hou
TechNet Community Support -
Oracle Data Modeling tool interoperability with QDesigner models.
Hello,
Would it be possible to get some information on how Oracle SQL Developer Data Modeler works with models from other data modeling tools such as QDesigner.
How can Quest QDesigner read the .cdm (conceptual data models) and the .pdm (physical data models) from QDesigner.
Regards,
MarySQL Developer Data Modeler does not work with QDesigner models.
Sue
Maybe you are looking for
-
Vendor Master can not replicate from SAP R3 to SAP SRM system.
Hi All, We face one issue when we use bbpgetvd program to transfer Vendor master from SAP R3 to SAP SRM, after I check Analysis Application log, found the following issue: Error: No Bank Master Data Maintained No Bank Data Transferred Error: Name/Add
-
Prevent Users From Saving PDF?
I have created a PDF that has confidential information in it. I do not want to give users the option of being able to save the PDF to their computer. Is there a security setting to prevent viewers from saving a PDF?
-
Hello all, Can we change the property of the elements of an array. For example: I have an array of combo-boxes. Can i have such a scenario that different combo-boxes of the array will have different items to select an item. I am able to set the diffe
-
ESB SOAP service endpoint properties cacheConnections
Hi all, Has any body used cacheConnections, end point property.? how does it effect ESB SOAP service response.
-
Cannot delete saved passwords in Safari on Yosemite
I am unable to remove any passwords from Safari (from the Passwords tab in Preferences). This is on Yosemite. I have tried the solution outlined here: Yosemite Safari won't let me delete/change passwords, but it appears to make no difference. Does an