Tool for designing the database
Hi, I'm assigned a task to design a small database (25 tables intially). I have given all details about the data. Can someone suggest me any free tool available which can help in ER Diagrams ( Relationships etc.)?
I tried DB Desigener4 but its mainly for MySQL DB.
Regards:
Mukesh
Hi ,
You can use the JDev 10.1.3. which is free-licenced tool.....
I think APC has proposed another free modeling tool...but i cannot remember it...!!!!
If he reads your requirement , he will direct you appropriately.....!!!!!!
Greetings,
Simon
Message was edited by:
sgalaxy
Similar Messages
-
Off topic- any tools for designing the architecture
Hi
I know this is not the right place for this question, but does anyone know if there are any tools available that I can use to draw the architecture of my application ( I don't mean UML tools).
I want to show, for instance, how my application communicates with a database and internet.
thanksIf you just wanna draw the charts, "Visio" is a good tool.
Don't know how much, but it costs quite a bit of money.
Cheers
Jonas -
What the steps are useful for us while designing the database by Performanc
Dear Experts
Plz tell me.
What the steps are useful for us while designing the database by Performance point of view.
Like Proper indexing and table assing to specific tbalespace etcOracle manuals would do the best for you. There is no step by step rules for tuning the database , had this be true , then Oracle must've write a programme , application or sql script to achive it . I would advise you to go through oracle performance and tuning guide .
Hare Krishna
Alok -
Someone please help me Design the database of bill of materials
I want to design the database of bill of materials which contain item and amount.
So the amount of child will depend on amount of parent in term of ratio. For example
A(1) A(2)
| ----> |
B(2) B(4)
My problem is when i try to add the parent and child . Let A is the parent of B , If i try to add A to be the child of C
I want B to come along with A as well. For example
A C
| C ---> | For this I have to store the relation of all item in my list to check that this item have a child or not if yes
B A The child must come along with its parent , What the Er-diagram
should be for all of my requirement?
|
B>I want B to come along with A as well. For example
You can do that, but that is not automatic. You need to do some programming.
It is better to use hierarchyid representation of the tree over traditional FK referencing.
Tree using hierarchyid example:
http://www.sqlusa.com/bestpractices2008/orgchart/
BOL: "Model Your Data Hierarchies With SQL Server 2008
.....The manufacturing system behind automobiles; the organization of a country into states, counties, cities, and postal codes; the description of a home entertainment system—what do these things have in common? The simple answer is that each
describes a hierarchy.
SQL Server 2008 supports a new data type, HierarchyID, that helps solve some of the problems in modeling and querying hierarchical information. I will introduce you to this data type by discussing a pattern commonly used in manufacturing
known as bill of materials (BOM), or bills. Starting with a brief discussion of BOMs, I will illustrate how this kind of data can be modeled. I will also present an implementation of this model in SQL Server 2005. Then I will show you how the HierarchyID data
type can be used to implement the model in SQL Server 2008.
Hierarchical Data
Automobiles are amalgamations of many components, such as engines, drivetrains, electronics, and steering. In the United States, our geographic territories are divided into states and are then sub-divided into jurisdictions called counties.
Counties are then further subdivided in different ways by different agencies. The United States Census Bureau, for example, composes them from Census Tract Areas. The U.S. Postal Service routes mail delivery by Zone Improvement Plan (ZIP) codes. Geographic
information systems (GIS) may aggregate census tracts and ZIP codes together to provide users with a familiar spatial reference for an area.
A recent trip to a local electronics store to evaluate a replacement home entertainment system pointed to a similar sort of hierarchical system—all the combinations of possible components and options left my head spinning! I wondered
how such systems could be modeled and implemented in a database system.
The relationship between an automobile and its engine represents a hierarchy: the automobile contains the engine. The relationship is the same for the drivetrain, the electronics, and the steering. The relationship is containment. A
similar hierarchy can be observed in the relationship between the different groupings of geographic or census data.
Hierarchies exist everywhere, yet implementing them in the context of a relational database frequently proves to be a challenge. A typical approach is to represent the hierarchy using a parent/child relationship with one or more tables.
While this approach certainly works in many cases, it has a few shortcomings. Such solutions must carefully consider how the referential integrity will be maintained. And while querying the depth and breadth of such tables was considerably simplified in SQL
Server 2005 with the introduction of recursive common table expressions, writing queries against these types of tables can still be problematic when joins against many tables are required.
A Bill of Materials Problem
A few years ago I was working on a system being developed by a manufacturing company to help their dealers specify the components needed to build center-pivot irrigation systems. The software produced a list of components needed to custom-build
the desired pivot (the totality of a center-pivot irrigation system is simply referred to as a pivot within the industry). The required components were determined based on geography, soil type, and the intended crops planted in the areas to be covered as well
as the hydrologic and structural considerations of the device itself.
Underpinning the solution would be a SQL Server database. The purpose of the database was to store information about the components available to build the pivot. However, when we generated the specification for manufacturing, we needed
to identify those components as BOMs.
Some bills represented a collection of physical parts that would be assembled into a system component. For example, every pivot needed a pump to draw water from a well into the system. That pump might be electrically powered, meaning
it needed a transformer and fuse box, too. Or the pump might be fuel powered, meaning it needed a tank, a fuel pump, and hoses to connect the pump to the tank. In either case, the required parts for the pump would be listed in a pump bill.
The bill for a complete pivot would include a collection of other bills. For example, a standardized pivot might consist of a tree of bills for the pump, another tree of bills for the spans of pipe used to deliver water, and bills for any other equipment
needed to build that pivot system."
LINK: http://msdn.microsoft.com/en-us/magazine/cc794278.aspx
Kalman Toth Database & OLAP Architect
SELECT Query Video Tutorial 4 Hours
New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012 -
Someone please help me Design the database of bill of materials with 1 item can have mutiple parent
I got this sample from Uri
Dimant (MCC, MVP) ,
The problem is i want 1 item to have multiple parent but this example don t let 1 item to have multiple parents. this is not suit for my objective.
CREATE TABLE Employees
empid int NOT NULL,
mgrid int NULL,
empname varchar(25) NOT NULL,
salary money NOT NULL,
CONSTRAINT PK_Employees PRIMARY KEY(empid),
CONSTRAINT FK_Employees_mgrid_empid
FOREIGN KEY(mgrid)
REFERENCES Employees(empid)
CREATE INDEX idx_nci_mgrid ON Employees(mgrid)
SET NOCOUNT ON
INSERT INTO Employees VALUES(1 , NULL, 'Nancy' , $10000.00)
INSERT INTO Employees VALUES(2 , 1 , 'Andrew' , $5000.00)
INSERT INTO Employees VALUES(3 , 1 , 'Janet' , $5000.00)
INSERT INTO Employees VALUES(4 , 1 , 'Margaret', $5000.00)
INSERT INTO Employees VALUES(5 , 2 , 'Steven' , $2500.00)
INSERT INTO Employees VALUES(6 , 2 , 'Michael' , $2500.00)
INSERT INTO Employees VALUES(7 , 3 , 'Robert' , $2500.00)
INSERT INTO Employees VALUES(8 , 3 , 'Laura' , $2500.00)
INSERT INTO Employees VALUES(9 , 3 , 'Ann' , $2500.00)
INSERT INTO Employees VALUES(10, 4 , 'Ina' , $2500.00)
INSERT INTO Employees VALUES(11, 7 , 'David' , $2000.00)
INSERT INTO Employees VALUES(12, 7 , 'Ron' , $2000.00)
INSERT INTO Employees VALUES(13, 7 , 'Dan' , $2000.00)
INSERT INTO Employees VALUES(14, 11 , 'James' , $1500.00)
WITH EmpCTE(empid, empname, mgrid, lvl)
AS
-- Anchor Member (AM)
SELECT empid, empname, mgrid, 0
FROM Employees
WHERE empid = 1
UNION ALL
-- Recursive Member (RM)
SELECT E.empid, E.empname, E.mgrid, M.lvl+1
FROM Employees AS E
JOIN EmpCTE AS M
ON E.mgrid = M.empid
SELECT * FROM EmpCTE
My object is
I want to design the database of bill of materials which contain item and amount.
So the amount of child will depend on amount of parent in term of ratio. For example
A(1) A(2)
| ----> |
B(2) B(4)
My problem is when i try to add the parent and child . Let A is the parent of B , If i try to add A to be the child of C
I want B to come along with A as well. For example
A C
| C ---> | For this I have to store the relation of all item in my list to check that this item have a child or not if yes
B
A The child must come along with its parent , What the Er-diagram should be for all of my requirement?
|
B
Base on the example that Uri
Dimant gave me , i have to stroe 1 item wtih multi parents for example if b is a child of a And b have c as child , When i insert D as a parent of B , c will automatic come along with B , But this not seem gonna work.
item Parent
A NULL
B A
C B
B D
Am i wrong to go this way , any ideathanks Uri
Dimant
I am
little confuse about how can i write
hierarchy sql from this relation , Thanks
so far i got
WITH EmpCTE(cid, cname, pid, lvl)
AS
SELECT cid , cname , children.pid , 0
FROM children INNER JOIN
parents ON children.pid = parents.pid
where cid = 1
UNION ALL
SELECT E.cid , E.cname , E.pid , M.lvl+1
FROM ( select cid , cname , children.pid FROM children INNER JOIN
parents ON children.pid = parents.pid) AS E JOIN EmpCTE AS M
ON E.pid = M.cid
SELECT * FROM EmpCTE -
New book! Physical Database Design: The Database Professional's Guide
Morgan Kaufmann publishers have just released a new book on physical database design covering how to design indexes, range and hash partitioning, materialized views, storage layout, RAID, warehouse design and other physical design areas. The book covers Oracle and several other major databases. Lots of diagrams and examples. It's actually a really good book. An excellent book for people who design and administer databases.
Available on Amazon and most other book sellers.
Physical Database Design: The Database Professional's Guide to Exploiting Indexes, Views, Storage, and More
by Sam S. Lightstone, Toby J. Teorey, Tom Nadeau
Paperback, 448 pages, publication date: MAR-2007
ISBN-13: 978-0-12-369389-1
ISBN-10: 0-12-369389-6
Series: The Morgan Kaufmann Series in Data Management Systems
Link on Amazon:
http://www.amazon.com/Physical-Database-Design-professionals-exploiting/dp/0123693896
Link on the publisher's web site:
http://www.elsevier.com/wps/find/bookdescription.cws_home/710637/description#description
Comments on the book can be sent to: [email protected]how could we get the report of previous five years sale of the products.
SELECT trunc(sale_date, 'YYYY'), sum(sale_qty)
FROM sales
WHERE sale_date >= add_months(sysdate-60)
GROUP BY trunc(sale_date, 'YYYY')
suggest whether dropped Product name from the sale table as I already have a column prodid in it?Yes. Duplicated data is a Bad Thing. This is Rule #1 of the late Dr. Codd's 12 rules. These are the foundationstones of good relation design. Wikipedia has a good introduction to them.
Cheers, APC -
READ privileges for *all the databases*
Is it possible to grant READ privileges for all the databases objects (tables, schema, triggers, procedures, view and etc)
SHANOJ wrote:
Is it possible to grant privileges to all objects in one time?It depends on what you mean by 'in one time'. In one single SQL statement? No. But there's nothing stopping you issuing a billion grants one after the other in your session.
Roles are probably better suited for this task. But are you sure you really want to grant SELECT privileges on all the tables in the database? It's more common to grant SELECT on all the 'MARKAPP' tables to the 'MARKAPP_READ_ONLY' role... -
Tool for design PI Implementations
Hi everybody,
I need to know if there is any tool to design the PI objects collaboration. I mean a tool to make a graphic which show the way in that the Pi objects are distributed.
Any help I really appreciate it.
Thanks
Ivan ReyesPI 7.0 does not have ability to transparently gel with any modelling tool. But with PI 7.1 you can use various modelling techniques provided like ProComp models inside ESR. Other compatible tool is ARIS by IDS Scheer.
Regards,
Prateek -
Sample report for filling the database table with test data .
Hi ,
Can anyone provide me sample report for filling the database table with test data ?
Thanks ,
Abhi.hi
the code
data : itab type table of Z6731_DEPTDETAIL,
wa type Z6731_DEPTDETAIL.
wa-DEPT_ID = 'z897hkjh'.
wa-DESCRIPTION = 'computer'.
append wa to itab.
wa-DEPT_ID = 'z897hkjhd'.
wa-DESCRIPTION = 'computer'.
append wa to itab.
loop at itab into wa.
insert z6731_DEPTDETAIL from wa.
endloop.
rewards if helpful -
Is OWB the Best Tool for Designing Warehouse Tables?
My current site uses OWB for ETL but mandates the use of TOAD Data Modeller for design and build of the warehouse tables.
I always thought that OWB could do this task just as well as TOAD, but I'm not very experienced with OWB.
Can anyone advise?You can design table with OWB and deploy to database, but is better create database objects [tables, views ets.] with SQL by DDL script and import this objects to OWB.
You can define physical properties, keys, constraints, partitions, indexes, grants ets. for one table in one SQL-script. -
Using AE(htmldb 2.0) as for reporting tool for other oracle databases.
Maybe I was mistaken, but when I first saw the HTMLDB demo's I saw this as a slick way to build a browser based reporting tool for the masses for quasi-ad-hoc reporting on some of our larger databases that currently have limited reporting capability, and also as a possible replacement for the many MSAccess applets we have.
I just got 2.0 installed and working on a 9i database and went through the basic tutorials, but I can't find much info on how to connect to other oracle databases.
Are my options as follows?:
create dblinks from the local database that houses htmldb to all the other databases?
or
install htmldb schemas on each database I want to access from htmldb?
or
I'll keep looking, but if any of you have any pointers or know of a tutorial that explains the best way to do this it would be greatly appreciated!
tiaAs for question 1, yep, that's what I mean. Example:
In a schema in the App Express instance, create a user called "APP1_USER", and then
create view app1_user.people as select * from people@link_user@remotedb
As for the next question, using the built-in insert/update/delete processes will give you
ORA-01461: can bind a LONG value only for insert into a LONG column
among other errors. Apparently version 2.1 will fix this. See Cannot Update VARCHAR column in Remote DB
We address this problem by creating pl/sql APIs for DML, and then writing our own insert/update processes. Slows us down a little, but even with that, App Express remains a productive choice for us.
Another weird problem: auto-row fetch (built-in to HTML DB) doesn't work over db links when you have two columns for a primary key. Many ways around this, e.g. create sequence-populated primary key, create a view with single column that concatenates primary key column values (key1|key2)
Hope this helps!
-John -
Tool for viewing the relation between tables.
Hi,
I imported the schema dump in Oracle 10g R2 DB, there are about 800 plus tables in that schema. I would like to know the relataion between tables.So,What tools are available for viewing the relation between tables?. I have TOAD, and Oracles SQL Developer tolls, if there are any free tools for the same, please let me know the URLs.
Regards,
Sabdar Syed.Hmmm, for free, except what gave Eric earlier, not easy...
Here already discuss about that :
Re: Table Dependencies
Nicolas. -
What is the Table/View name for getting the Database Object Dependencies
I am running the Database Object Dependencies report to get the reference of Database Object and their respective Application Component.
Applications xxxx -> Application Reports -> Shared Components -> Database Object Dependencies -> Compute Dependencies
I want to develop a report for the same purpose, Just want to know what is the APEX Tables / Views they are using to run this report, so that I can use the same Tables to create my own report.
Thanks,
DeepakHi Andy,
when I am using the following query...I am not getting any result...
select name, type, owner
from all_dependencies
where referenced_owner = 'APEX_030200'
and referenced_name = 'WWV_FLOW_PATCHES'
AND OWNER= 'XXXXXXX' --- (addeed this to the where clause)
I modified the query.....I am getting the result.....
select name, type, owner
from all_dependencies
AND OWNER= 'XXXXXXX'
- But I am not getting which database object(table/view) is using which Application Page/Component like we have in Database Object Dependencies.
- Also what is this REFERENCE OWNER & REFERENCE_NAME ----
referenced_owner = 'APEX_030200'
and referenced_name = 'WWV_FLOW_PATCHES'
I am little bit confused, Can you pl expalin me in details......
Thanks,
Deepak -
Do we have any tools for automating the JavaFX 2.X application testing???
Do we have any tools available for automating the JavaFX 2.X application testing? If so, can somebody provide more information like which shall be the best to get started, whether it is open source or licensed e.t.c?
Thanks in advance.Using this we found that we can test only stand alone JavaFX application i.e. *.jar file only.
But we want to test .html file as our application shall pass certain parameters. As per my understanding, I think this is not possible using jemmyfx.
Is there a way to do this? -
Creating .bat for analyzing the Database.
Hi Experts,
I am having a doubt in scheduling database analysis process windows 2003 server.
Every Sunday, we have to schedule the database analysis. just view the below example
sysuser login id : testlogin
sysuser password: demotest
connection string: demotest
file - demo.sql is available in d:\
Now i need to create a .bat file for scheduling purpose.
in the bat file, i want to connect as sysuser and then execute the above mentioned sql file. please suggest me how to give the syntax for connecting to oracle database as sysuser through a .bat file.
One more doubt: we have to analyze the database in sysuser mode only or also in local user mode???
suggest me about this...
Thanks in Advance.oracle recommends generation of statistics using dbms_stats package with
dbms_jobs package.
You can use following procedure as sys user
variable jobno number;
variable instno number;
begin
select instance_number into :instno from v$instance;
dbms_job.submit(:jobno, 'dbms_stats.GATHER_SCHEMA_STATS(ownname=>'<schema Name>,OPTIONS=>''GATHER'',cascade=>TRUE);', TO_DATE('18-JUN-05--21','DD-MON-YY--HH24'), '(SYSDATE+1)', TRUE, :instno);
commit;
end;
/
Maybe you are looking for
-
Regarding "iTunes": sound noise, per say;
Regarding "iTunes": I adjust the audio properties via the speaker icon in the bottom right hand corner of my monitor, tried to update audio driver's (Realtek, Microsoft, HP), adjust the equalizer in "iTunes", and the volume on my PC's speaker's - ("C
-
I tend to ramble when it comes to asking questions so I'll just sum it up briefly before I add any further details: I am looking to have my macbook pro (I believe late 2011 version-out of warranty) cleaned inside out: dust removed, keyboard cleaned a
-
IN FF67 BRS how to edit the closing balance
Hi Gurus, How to delete or edit the closing balance already entered in FF67 and also after savings but before posting.... Also kindly tell me what to do with the line items already entered in the ff67 but for some reasons it has not got posted.... wh
-
Crystal reports server 2008 VI questions
I aplogixze if I am asking many questions in the same thread. If so please let me know. and I'll create seperate threads. Questions with Crystal reports server 2008 VI 1. In my current VS2005 web application with CR 2008 developer I have done the fol
-
Hello, I have access database as FE and teradata and peoplesoft as BE. In access database, i have a table with 5 columns and around 50,000 rows of data. I need to create the pass through queries such that it selects the first row from the access tabl