New Database Design
Hi,
I'm an DBA and i was assigned to design a new database(fresh) in oracle 11gR2 in windows platform for a project. Since, i'm new to database design, getting confusion on what perspective to approach and where to begin.
Can anyone please help on this.
Note: URL's are welcome.
1011442 wrote:
Hi,
Thanks for providing the link.
The link that you sounds good and providing much info on considerations in creating a database and schema security.
But, i want the logical design part.
Assume that the database design for College Management System. It might have enrollment module, result module, staff module, etc., including more schema objects. I'm expecting the procedures or steps involving in such designs & how to design.
It starts with interviewing the end-user and determining their requirements .. especially flushing out all the entities (student, staff member, department, course, class, etc, etc, etc) and their attributes, then determining the relationship between said entities and attributes. Those entities, attributes, and relationships will be your logical database design.
Similar Messages
-
SQL Server 2014 New Database Design Features
SQL Server 2014 has three major database design related features:
1. In-memory OLTP tables (Hekaton)
2. Inline INDEX declaration in CREATE TABLE
3. Updateable clustered columnstore index
Any other new feature? Thanks.
Kalman Toth Database & OLAP Architect
SQL Server 2014 Design & Programming
New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012http://windowsitpro.com/sql-server-2014/top-ten-new-features-sql-server-2014
http://www.sqlpass.org/sqlserver2014/Webinars.aspx
Enhanced query processing for better performance without app changes.
Buffer Pool extension to SSDs for faster paging.
Resource Governor controls IO along with CPU and memory.
Enhanced Always On now supports 8 secondary for better HA (High Availability -
New database design product - ModelRight for Oracle
Whether you are a beginner or an expert data modeler, ModelRight for Oracle is the database design tool of choice for Oracle. Here are some of the things that make ModelRight for Oracle unique:
• Extensive support for Oracle – support and advanced features - OR types, object tables, object views, materialized views, index-organized tables, clusters, partitions, function-based indexes, etc...
• full Forward, Reverse and Compare capabilities
• Unique User Interface and Diagrammatic elements: with our mode-less and hyperlinked user-interface, navigating and editing your model is intuitive and easy.
• Extensive use of Domains: you can create Domains for just about every type of object to propagate patterns, reusability & classification.
• Unprecedented level of programmatic control: you can control the smallest details of the FE and Alter Script generation process.
Please check out our website at http://www.modelright.com and download the free trial version.
Please let me know if you have any suggestions or comments.
Thank you,
Tim Guinther
Founder, ModelRight, Inc.
[email protected]
(215) 534 5282Excellent product. Pretty impressive. Gorgeous diagrams and sophisticated reports. Loved the myriad of navigation ways and non-obtrusive modeless dialogs. Very easy to use!
Keep the good work up. -
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 -
New Oracle database design tool...
Whether you are a beginner or an expert data modeler, ModelRight for Oracle is the database design tool of choice for Oracle. Here are some of the things that make ModelRight for Oracle unique:
• Extensive support for Oracle – support and advanced features - OR types, object tables, object views, materialized views, index-organized tables, clusters, partitions, function-based indexes, etc...
• full Forward, Reverse and Compare capabilities
• Unique User Interface and Diagrammatic elements: with our mode-less and hyperlinked user-interface, navigating and editing your model is intuitive and easy.
• Extensive use of Domains: you can create Domains for just about every type of object to propagate patterns, reusability & classification.
• Unprecedented level of programmatic control: you can control the smallest details of the FE and Alter Script generation process.
Please check out our website at http://www.modelright.com and download the free trial version.
Please let me know if you have any suggestions or comments.
Thank you,
Tim Guinther
Founder, ModelRight, Inc.
[email protected]
(215) 534 5282Jens I found a few good links in there...I was trying to
find if there was a certification track offered in
DB Design? I see a lot of instructor led classes most
of them only 2-3 days long. -
Suggestion: Create a Database Design Forum
I recommend the creation of a new forum dealing exclusively with database design questions, such as setting Primary Keys, Unique constraints, Check constraints, Indexes, schema-creation scripts, etc. There is no forum devoted exclusively to this topic now and I feel it would be very helpful to the user community. It would certainly make searching for answers to design questions much easier.
Billy Verreynne wrote:
Prohan wrote:
I don't agree there.
1. How to create a relational model certainly IS relevant to Oracle, which is a RELATIONAL DBMS.Oracle also supports data warehousing (star schema designs), network/hierarchical designs, object-relational designs - or pretty much any data model that you may come up with. Calling it just a relational DBMS is incorrect.
2. Your point that logical models are independent of specific technology is correct. What you're missing is that if a specific technology makes use of a certain foundational body of knowledge, that knowledge is a legitimate topic for a forum whose users use that specific technology.That is putting the cart in front of the horse IMO.
I would rather see data modeling and logical database design being done in a way that is untainted with specific vendor implementations and technology used. There needs to be a clear line dividing the design from the implementation. If not, then design decisions can (and will) be made based not on the correct logical data modeling principles, but whether it can be "handled" by the technology. A design that is tainted like that, will always be less than optimal (especially as technology is continually evolving and changing).
An OTN forum for database design will invariable be tainted with Oracle technology - and instead of learning sound data modeling fundamentals, a warped view of data modeling will be conveyed. Where doing abc will be acceptable (when it is not), because Oracle has feature xyz that can make the flawed design work (in a fashion).Excellent points. I think (or at least hope) such a forum would attract some number of pure theorists to straighten out the view. This might make for a lively forum, and might actually influence the real products, and might even get the cart on the right side of the horse.
Hmmm, I guess I do sound hopelessly optimistic. -
Changing a source module to a new database?
Hi there, looking for help from the users here! I'm on OWB 10.2 This should be a simple one, but I'm having a hard time!
The short summary of my question, is how do I change my mappings in my target db to pull from a new source module / database?
Here's the longer description:
In design center I have 2 different locations ("loc x prod_old" and "loc y prod_new"). I currently have a source module callled "m_src" that currently uses "loc x prod_old". So all views, etc, in "m_src" are currently being pulled from "loc x prod_old".
Now I want to change the "m_src" modeule from "loc x prod_old" to "loc x prod_new", and then I want to make sure all of my mappings in my "m_tgt" module which have objects in "m_src" get pulled from the "loc x prod_new".
On "m_src" module I change data location to "loc x prod_new" and also change metadata location to "loc x prod_new". Then I configure "m_src" and make sure the dropdowns point to "loc x prod_new" as well. Save. So far so good. In "m_src" I can now verify by selecting a view and looking at the "data" for the view.
I can also now select a mapping in my "m_tgt" module and when I generate the code I can see that it will use "loc y prod_new" instead of "loc x prod_old", which is correct.
When I go to control center, and run the mapping, the mapping is still using the "loc x prod_old", which is not what I want. It seems that I have to re-deploy each mapping. When I go to the db and look at the mapping using toad I can see the mapping still points to the "loc x prod_old". Only when I re-deploy the mapping does it use "loc x prod_new."
Surely there must be a way that I can change my location or my source module and get my mappings to use the new location, without having to re-deploy each and every mapping. How can I best do this?
Thanks!I guess I should have waited another day before posting (unfortunately time is critical now). I figured this out and am closing the thread.
design center > location > edit it, pointing to new db
design center > go verify the data on a view
control center > target module > connector > drop / replace
in a sql tool you can now verify your dblink points to the new db -
How to create a new DataBase using Oracle 10g Express Edition???
Hello, I am new to Oracle, I am used to Microsoft SQL Server (Enterprise Manager).
Here in Oracle I do not get how do I create a DataBase, and then create tables on it.
could anyone please explain to me how to do it?A SQL Server database is roughly equivalent to an Oracle schema.
You should rarely need to create a new database. If you do need to create a database, get a 'for fee' edition of Oracle and use the dbca tool (Database Configuration Assistant) to do that. In fact, you are only allowed to have one XE database on the machine.
However, you can create as many schemas in an existing Oracle database as you need. (One schema, owned by userid SYS, is roughly equal to your 'master catalog'.)
You can create other schemas simply by
1) creating a userid that will own the schema (one designated for maintenance of the schema);
2) grant that userid appropriate privileges, such as 'CREATE TABLE', 'CREATE VIEW' as shown in the SQL Reference manual under the GRANT section;
3) provide that userid with a quota in one or more tablespaces (see the CREATE USER command in the SQL Reference manual);
4) create the objects, such as tabels, views, sequences, stored procs and functions, etc. (as in the SQL Reference manual);
5) create the users who will access the objects, and grant them the CREATE SESSION capability (as in the SQL Reference manual);
6) grant access (select, update, execute, etc.) on the schema objects to these users (as in the SQL Reference manual);
7) if desired, create synonyms on the schema objects so the users do not need to use fully qualified syntax such as "SELECT col FROM schema.table;" (as in the SQL Reference manual).
In case you are interested in looking at the SQL Reference manual, it can be found at http://www.oracle.com/pls/db102/portal.portal_db?selected=1 ;-) -
Re: Database design software ?
The 'original' database development program is still being
developed with a
pedigree of over 40years
www.dbase.com
Regards
Cliff
Cliff Rielly"Chris Seymour" <[email protected]> wrote in message
news:f1f96g$mq3$[email protected]..
> Was curious to see what database design software people
were using?
> I have been looking around and have some ideas but I
like to check what
> others are using.
If you are looking for a generic db design tool, and not for
a database GUI,
Case Studio is worth a try:
www.casestudio.com/
Massimo Foti, web-programmer for hire
Tools for ColdFusion and Dreamweaver developers:
http://www.massimocorner.com -
Re: (forte-users) Round-trip database design
We have used Erwin quite sucessfully, but it's not cheap.
"Rottier, Pascal" <Rottier.Pascalpmintl.ch> on 02/15/2001 04:51:01 AM
To: 'Forte Users' <forte-userslists.xpedior.com>
cc:
Subject: (forte-users) Round-trip database design
Hi,
Maybe not 100% the right mailing list but it's worth a try.
Does anyone use tools to automatically update the structure of an existing
database?
For example, you have a full database model (Power Designer) and you've
created a script to create all these tables in a new and empty database.
You've been using this database and filling tables with data for a while.
Now you want to do some marginal modifications on these tables. Add a
column, remove a column, rename a column, etc.
Is there a way to automatically change the database without losing data and
without having to do it manually (except the manual changes in the (Power
Designer) model).
Thanks
Pascal Rottier
Atos Origin Nederland (BAS/West End User Computing)
Tel. +31 (0)10-2661223
Fax. +31 (0)10-2661199
E-mail: Pascal.Rottiernl.origin-it.com
++++++++++++++++++++++++++++
Philip Morris (Afd. MIS)
Tel. +31 (0)164-295149
Fax. +31 (0)164-294444
E-mail: Rottier.Pascalpmintl.ch
For the archives, go to: http://lists.xpedior.com/forte-users and use
the login: forte and the password: archive. To unsubscribe, send in a new
email the word: 'Unsubscribe' to: forte-users-requestlists.xpedior.comHello Pascal,
Forte has classes which might be able to scan the database structure
(DBColumnDesc,etc.). Express use this classes to determine how the
BusinessClass looks like. We use Forte to create the tables,indexes and
constraints. We have the Problem that the above described classes are only
readable but not fillable. The solution for us will be to create our own
classes in
the same manner than existing classes are. So we are able to make updates in
the database structure and maybe able to change the database tables with tool
code. Another reason for us to have the database structure in the
application is the
ability to see the table structure on which the Forte code works always up
to date
with the code. You are always able to compare the structure of the database
with
your businessclasses and able to convert a wrong structure to the correct
structure
with maybe just a little piece of code.
Hope this helps
Joseph Mirwald -
Good database design and modelling books
Hi ,
I need to work on designing a database from the scratch by creating logical database design and then physical database design.I'm new to database design.
Can someone please point me to some good database design and modelling related books /tutorials.
Regards,
Bharath.bharathDBA wrote:
Hi Girish Thanks for the information.
I would definitely look into this book later.
I don't mind paying any amount of money,if that book gives me the knowledge I want.
As this book is international edition,for shipping it is taking 8-10 business days and by that time I need to complete designing my database and probably I might need to some other book.
Is this a school assignment? I hope so. Referring back to your opening statement "I need to work on designing a database from the scratch by creating logical database design and then physical database design.I'm new to database design." I can only say that database design is a very big subject. If you are starting from a position of no knowledge at all, I'm afraid there is nothing that is going to give you the knowledge you need in the time frame you have. I will say you need to start by learning the rules of Data Normalization. Make your logical design Third Normal Form. Good can be your friend. There is actually a pretty good write-up on Data Normalization on Wikipedia. -
Database design for swapping/trading items between companies
What is the best SQL table schema for items being swapped/traded between companies? For instance:
e.g.1 If company A wants to swap item 0001 (owned by customer X but being managed by company A) with company B who is offering item 0002 (owned by customer Y but being managed by company B) and item 0003 (owned by customer Z but being managed by company B)
e.g.2 If company A wants to swap item 0004 (owned by customer X but being managed by company A) with company B who is offering item 0005 (owned by customer Y but being managed by company B)
These are the tables I have so have so far, it should be good enough to support 1 to 1 trades but not too sure about 1..* to 1..* (many to many) trades, is it correct or can it be improved further?
Note: Trades can only happen between two companies, but they could trade as many items as they wish.
Trade
id: int (primary key)
company1_id: int (foreign key)
company2_id: int (foreign key)
datetime: string
status: string
TradeDetail
id: int (primary key)
trade_id: int (foreign key)
item_id: int (foreign key)
Company
id: int (primary key)
name: string
address: string
phone: string
email: string
rating: int
Customer
id: int (primary key)
f_name: string
s_name: string
dob: string
address: string
phone: string
email: string
Item
id: int (primary key)
customer_id: int (foreign key)
company_id: int (foreign key)
price: doubleI made a few changes.
You need to think about NATURAL KEY for each table. For example, what is the NATURAL KEY for the Customer table. It can be:
CompanyTaxID char(9) NOT NULL UNIQUE
or
SSNO char(9) NOT NULL UNIQUE
Trade
id: int (primary key)
company1_id: int (foreign key)
company2_id: int (foreign key)
datetime: datetime
unique(company1_id, company2_id, datetime)
status: string
TradeDetail
id: int (primary key)
trade_id: int (foreign key)
item_id: int (foreign key)
Company
id: int (primary key)
name: string
address: string
phone: string
email: string
rating: int
Customer
id: int (primary key)
f_name: string
s_name: string
dob: string
address: string
phone: string
email: string
Item
id: int (primary key)
customer_id: int (foreign key)
company_id: int (foreign key)
price: decimal(20,2)
Kalman Toth Database & OLAP Architect
SQL Server 2014 Database Design
New Book / Kindle: Beginner Database Design & SQL Programming Using Microsoft SQL Server 2014 -
Database design for share market
Hi One and All,
I have a query regarding, design of New database....
Right now I joined as a Database administrator as a fresher, my superior has given me one assignment i.e. I have to create a sample database on Share market. As per his requirement the tables should be Issuer table, Security table, Broker table, INvestor table, Account table, Order table, Tradeing table. He said that I have to prepare the fiellds for this tables and relation ships and whole database structure.... I can prepare relations ships and database structure but the problem is, I don't know how the stock market is really works. If any body help me in this issue I am very thank full to him.
I need just the table feilds, if I get this rest of job i wil do by studying the subject of share market.
Thank YouHi,
As per Hemant this forum is not appropriate for this question. However you have to analyze the system by meetings with stock broker at stock Exchange or to the client for which you are designing the system. Ask your superior to arrange meeting with client and then ask question to him so that you can made database design for them.
Regards,
Abbasi -
Hi,
In JDeveloper 10.1.3.1 (existing) database can be imported (I red about it in Oracle Magazine by Steve Muench). I selected some existing tables and printed these. This works fine and looks good on paper.
I was wondering how trigger-code, functions, procedures can be imported (or created) in JDeveloper. Also, can I add storage information like tablespaces to objects?
I would like to use JDeveloper as database-design tool (therefore I need some basic 'designer' functionality)
Thanks,
StephanThanks. I read the documents, interesting!
From my 'Connections' page I can create a trigger. Thats fine.
But imagine I do not have a database yet. I want to start from scratch and first create a new table having a simple trigger on it. I go to the 'Applications' page and in the 'Database Design' I drag a table from pallete. This works fine. But, how to add a trigger to this table??
Thanks,
Stephan -
Hello Friends!
I am new in database design. I design a database for a company which sale their products. The company has their outlets in four regions i.e. (North, South, East and WEST) and they want to check their sale of the Product.. The sample reportâs format and data are shown below:
1. Product-Wise Monthly Sale
Sale for the Month of July-2004
Books NoteBooks Pen Pencils
Schools 25 10 50 25
Colleges 15 5 10 3
Universities 6 30 14 3
Government 2 27 6 1
Others 21 32 54 8
TOTAL: 69 104 134 40
2. Sector-Wise Annual Sale
Sale for the Year 2004-05
Books NoteBooks Pen Pencils
Schools 25 10 50 25
Colleges 15 5 10 3
Universities 6 30 14 3
Government 2 27 6 1
Others 21 32 54 8
TOTAL: 69 104 134 40
3. Sale of Product for the current and previous years
Sale by Product
2001-02 2002-03 2003-04 2004-05
Books 10 5 15 25
NoteBooks 10 5 15 25
Pens 10 5 15 25
Pencils 10 5 15 25
TOTAL: 40 20 60 100
3. Sale by Sector for the current and previous years
Sale by Sector
2001-02 2002-03 2003-04 2004-05
Schools 10 5 15 25
Colleges 10 5 15 25
Universities 10 5 15 25
Government 10 5 15 25
Others 40 20 60 100
TOTAL: 80 40 120 200
4. Region-Wise Sale for the current and previous years.
Sale by Region
2001-02 2002-03 2003-04 2004-05
East 10 5 15 25
West 10 5 15 25
North 10 5 15 25
South 10 5 15 25
TOTAL: 40 20 60 100
With the help of above reports I design the following database. Please let me tell whether the following database design is ok or not otherwise please suggest me how to improve it so that i can get the result as per given the above-format.
Year (Table)
YearID int
Description Varchar2
Period_From Date
Period_To Date
Current logical
Month (Table)
MonthID int (1,2,3,4,5,6,7,8,9,10,11,12)
MonthDescription varchar2 (Jan,Feb, Mar, Apr, May, Aug, Sept, Aug, Oct, Nov, Dec)
StartDate Date
EndDate Date
Region(Table)
RegionID int (1,2,3,4)
RegionName varchar2 (East, West, North, South)
Sector (Table)
SectorID int (1,2,3,4,5)
Sector Varchar2 (School, Colleges, University, Government, Others)
Product (Table)
ProductID int (1,2,3,4)
ProdName varchar2 (Books, NoteBooks, Pen, Pencil)
Sale (Table)
SaleID int
ProductID int
Product varchar2
Sale int
RegionId int
SectorID int
MonthID int
YearID int
Thanks.
(BASIT)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
Maybe you are looking for
-
I had purchased Adobe Photoshop CS2, came to realize that Adobe no longer supported activation (online or by phone). I uninstalled and downloaded again from the Adobe site: https://www.adobe.com/cfusion/entitlement/index.cfm?e=cs2_downloads The Pho
-
hi, i recenty just moved from the u.k to the u.s and all my itunes settings were set to the u.k regulations, so i tried to change the billing information and it still came up with postcode and in the u.s it is zipcode so it wouldnt let me proceed so
-
I have successfully downloaded Captivate 8 several times. Each time I try to install on my Mac, I get the message that the Installer Fails to Initate. I tried the trial as well. Please help me. I am using the subscription service if that makes a diff
-
New Macbook Pro with a SSD. Can it be upgraded in the future?
The new Macbook Pro with retina display has a 250 GB hard drive. My question is: Can this drive be upgraded in the future (using a standard off the shelf SSD) or are you stuck with the 250 GB drive that it comes with?
-
When i print text, it becomes blurry
When i print ariel size 12 on my printer using microsoft word or off the internet it's fine...however, i've just printed a sheet with a size 12 text around my picture on photoshop and the text is blurry. The text looks fine when i view the whole thin