How to convert database in 3NF to Star schema
Hi
Can anyone help me out to convert the database in 3NF to Star schema so that it can be used for Business Intelligence.
Our Application will be populating the database in normal 3NF form which may be difficult for the intelligence to generate queries from it. From the documents given, i saw that only star schema containing dimensions table and fact table is simpler to generate reports. Is there any tool that would convert the schema from 3NF to star schema?
Regards
S. Kokila
Hi,
I do not know any tools that would do this for you. You can apply a certain logic to create your dimensions and facts, but decisions will have to be taken along the way.
You need to know the basis of database design for datawarehousing. A few good books and articles are available on the subject.
Bonne lecture!
Similar Messages
-
How to convert database table into xml file
Hi.
How to convert database table into XML file in Oracle HTML DB.
Please let me know.
Thanks.This not really a specific APEX question... but I search the database forum and found this thread which I think will help
Exporting Oracle table to XML
If it does not I suggest looking at the database forum or have a look at this document on using the XML toolkit
http://download-east.oracle.com/docs/html/B12146_01/c_xml.htm
Hope this helps
Chris -
Converting 3 tables to a star schema ??
Hi i was trying to prepare a very small demo for an OLAP system. Anyways I have a simple transaction database for a supposed Book Store anyways the database has the following 3 tables :
Table No:1
Table Name:Main Table
This Table contains the following columns:
Customer Name (PK) | Book Purchase ID (PK) | PRICE
Table No:2
Table Name:Customer Table
This Table contains the following columns:
Customer Name | CELL | ADDRESS
Table No:3
Table Name:BOOKS Table
This Table contains the following columns:
BOOK Name | Book Purchase ID | GENRE
so the above is my transactional database.. LEt me know if i am missing any other detail. Anyways now i want to convert the above to start schema ?? How would i acccomplish that .. I tried to read a couple of tutorials but i was a bit confused... so if you guys could assist me on this i would be really thnakfull.David_Aldridge wrote:
thinking in general about this, it sounds like what you need is a set of four tables:
Dim_Cust -- stores customer details as a dimension
Dim_Book -- stores book details as a dimension
Dim_Date -- stores dates for transactions
Fct_Book_Sales -- stores the transactions themselves as the purchase of a book for a certain price by a customer on a date.
Use synthetic keys for all but the Dim_Date.Okay i kind of got lost on the way here is wht i know so far regarding the star schema
"A star schema consists of fact tables and dimension tables. Fact tables contain the quantitative or factual data about a business--the information being queried. This information is often numerical, additive measurements and can consist of many columns and millions or billions of rows. Dimension tables are usually smaller and hold descriptive data that reflects the dimensions, or attributes, of a business. SQL queries then use joins between fact and dimension tables and constraints on the data to return selected information."
so from your explaination there are going to be 3 dimension tables
Dim_Cust (Details about the customers) (Customer_ID,Cell No,Address)
Dim_Book(Details about the Books) (Book Name ,ID,Genre)
Dates (I am confused about the dates part)
Fct_Book_Sales (Confused about this part also)
and one last thing What would the fact table look like ?? -
How you we design and create a star schema in Oracle BI?
We can use Informatica to generate ETL. But how do we design the star-schema?? Is there a design tool like Oracle Designer??
What is the purpose of the DAC??Hi,
You can handle the star schema design in the BMM layer. No separate tool for that.
Refer-
http://gerardnico.com/wiki/data_modeling/star_schema
DAC-
Data Warehouse Application Console (DAC) works together with Informatica to acomplish the ETL for pre-packaged BI application.
- DAC publish the changes from OLTP
- Informatica extracts the changes from the change log published by DAC as well as from the base table
- Informatica load the data to the stage tables and the target tables in the data warehouse
- DAC manage the performance by dropping indexes, truncating stage tables, rebuilding the indexes, and analyzing the tables during the process
If you do not use DAC, you have to write your own custom change capture process and need to redesign from scratch an ETL method that allow the restart of the ETL process from point of failure at record level. The biggest saving is that DAC can survive during the upgrade , while your custom processes cannot.
Refer-
http://obieetraining11.blogspot.in/2012/06/how-to-use-dac-source-system-parameter.html
Hope this helped/ answered.
Regards
MuRam
Edited by: MuRam on Jun 25, 2012 2:37 AM -
How to convert databases into schemas
Hi
i have got 3 small size databases P1, P2 and P3 on 3 different servers.
I have got another database SUPER in a different server.
Now I want the 3 databases to incorporated into SUPER as schemas.
Thus after transfer, SUPER will have 3 additional schemas P1, P2, P3 with the
corresponding users and data.
Please reply.
Thanks.Hi,
Assuming there is only one owner of all objects in each of the small databases, this is my suggestion.
1. export all tables of the in each of the small databases...
you will generate 3 *.dmp files for example:
p1.dmp,p2.dmp,p3.dmp
2. create 3 users in the SUPER database as P1,P2,P3
3. Import the three dump files into the SUPER database similar to the ff:
a. imp username/password@SUPER file=p1.dmp fromuser=p1_owner touser=P1
b. imp username/password@SUPER file=p2.dmp fromuser=p2_owner touser= P2
c. imp username/password@SUPER file=p3.dmp fromuser=p3_owner touser= P3
Hope this solves your problem..
Regards,
Mike
Message was edited by:
Mike -
How to Convert Date to Month in Database which is pointing to EBS, Not DWH.
Hi Friends,
We are planning to create reports in OBIEE and the Source is EBS. That means, we don’t want to depends on Datawarehouse and Informatica and OBIApps. We just create some reports and they are pointing to EBS database.
For testing purpose, we have taken one HR Report and it containsthe below columns:
Month (Dim)
Revenue Per Employee Headcount (Fact)
Average Cost per Active Workforce Headcount (Fact)
In my little investigation, we found that Revenue column is coming from EBS: GL_BALANCES. And we configured W_Day_D base table in DAC as there is no Month column in EBS (Not sure).
*** Coming to my problem, how can I call Month column in my database pointed to EBS. How to convert Date to Month in my database.
I could be wrong but anyone please look into this issue.. How can I create columns for that exact OBI report in EBS database instead of DwH.
Thanks in Advance..
Raghu NagadasariHi Veeresh,
You are right. Here, no need of using W_DAY_D table, but, we need all the stuff from the table and to explain my problem i have taken that table as an example. Now, we ran scripts for W_MONTH_D and W_DAY_D tables with EBS columns. So, we are getting data for the tables. In the same manner we have to create scripts for the below tables.
W_GL_ACCOUNT_D
W_GL_OTHER_F
W_STATUS_D
W_MCAL_DAY_D
W_EMPLOYMENT_STAT_CAT_D
W_WRKFC_BAL_A
W_DAY_D (Completed)
W_MONTH_D (Completed)
But, we are not aware of EBS Tables and their columns much. So, we are back tracing from RpD --> DAC --> Info --> EBS for each and every column and its taking much time.
So, if anyone of you facing the same issue, please share the EBS tables for the corresponding OBI tables, which are mentioned above. -
How to convert logical standby database to Physical Standby Database
Hi,
Does anyone know how to convert logical standby database(10.2.0.3) to Physical Standby Database(10.2.0.3)? Is this possible? If so,please give me steps for it.
Thanks.
Regards,
RJ.I don't believe this to be possible. One of the steps invloved in the creation of a logical standby is the following:
ALTER DATABASE OPEN RESETLOGS;
This makes the logical standby a different incarnation of the db from the primary.
A physical standby is a binary copy of a primary db, a logical standby is a completely seperate db that just happens to get sql statements applied to it that are generated from a primary db, but is open read/write.
One avenue, though would be if you had flashback database enabled and you flashed back all the way to when the db was a physical standby and then rolled forward with the archived redo logs.
It's somewhat unlikely you are in that situation, but that is a possibility.
Indeed the 11g snapshot standby does this sort of thing:
http://download.oracle.com/docs/cd/B28359_01/server.111/b28294/manage_ps.htm#sthref740
jason.
http://jarneil.wordpress.com -
How to convert Foxpro database to oracle8i
hi everyone,
how to convert Foxpro database to oracle8i??? is there any utility\software for this purpose.
Thanks.
KashifTry these links
http://asktom.oracle.com/pls/ask/f?p=4950:8:214281309818024448::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:598423513078,
http://asktom.oracle.com/pls/ask/f?p=4950:8:214281309818024448::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:218213305850,
http://asktom.oracle.com/pls/ask/f?p=4950:8:214281309818024448::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:634823663936, -
How convert database RAC to Non-RAC 10g
Hi, How convert database RAC to Non-RAC 10g, i'm use Oracle Cluster Filesystem.
Thanks for your help.Hi, i made a little lab and i found the solution, i share with you a quick procedure.
1.- Create a copy of parameter file and delete clusters parameters.
cluster_database=false,etc, etc.
Note. Add the parameter
norecovery_through_resetlogs=TRUE
2.- Create the backup of controfile.
connect / as sysdba
alter database backup controfile to trace;
3.- Stop the cluster database and make the copy to new server.
srvctl stop database -d myrac
scp * new_server:/new_path
4.- Create the password file and init file into the new server
5.- Start the database with nomount option
connect / as sysdba
startup nomount
6.- Create the controlfile and set the new database name and new paths for oracle files.
7.- Open the database with resetlogs option
alter database open resetlogs;
Thanks for your help.
Luck
Regards. -
Video Format Total Solution: How to Convert and Edit Video on Windows/Mac
More and More video formats are coming out with different video encoders and it makes our spare time more and more colorful. However, it is not to say that there is no problems. Actually, different video formats make it difficult to share video with others, even your own camcorder and iPod. Is there an easy way to convert videos effectively. Yes, there is.
In this article, I will show you guys how to convert videos on windows and mac.
Part 1. How to Convert and Edit Videos on Windows
For Windows users, you need a Video Converter(http://www.aiseesoft.com/total-video-converter.html) to do that for you.
Here I use Aiseesoft Total Video Converter(http://www.aiseesoft.com/total-video-converter.html)
Step 1: Download and install Aiseesoft Total Video Converter
After you download it to your computer, double click it and it is really easy to install.
You just need to click “next” and it will complete it in seconds. It will automatically run after installation.
http://www.aiseesoft.com/images/guide/total-video-converter/screen.jpg
Step 2: Load Video
Click “Add File” to find the video that you want to convert and click “open”. It will be loaded automatically.
Step 3: Select the target to decode
In the “Profile” drop download list you can find your target according the usage of your output video, such as if you want to put the video on your iPod touch, you can select the “iPod” in the first list and “iPod touch 2 MPEG-4 640*480(*.mp4)” in the second list.
Step 4: Set Advanced Parameters
After you select the right output profile, you can click “setting” button to set your advanced parameters. You can adjust video and audio settings separately. In video section, you can change “video encoder”, “resolution”, “frame rate”, “video bitrate”In audio section, you can change “audio encoder”, “sample rate”, “channel”, “audio bitrate”If you want to save this profile and settings and use it next time you can click “save as” button to give a name to it. And the next time you want to use it you can find it in the profile list named “user defined”.
Step 5: Choose a Destination
To browse and find a output folder for your output files or just the default one.
Finally, Click “Convert” button to begin your conversion, here in the converting
interface you can choose “shut down the computer when conversion complete” or “open output folder when conversion complete” or you just do not choose neither one.
Tips: How to Edit the Output Video
This video converter is also a video editor, you can use it to edit your output video as follows:
http://www.aiseesoft.com/images/guide/total-video-converter/effect.jpg
1. Effect:
You are allowed to adjust the “Brightness”, “Contrast”, “Saturation” and you can choose the “deinterlacing” to make the video more enjoyable.
2. Trim:
In “Trim” section you can pick up any part of the video to convert.
There are two ways to select the part of the video you want. One is set the start and end time in the box. The other one is to drag the start and end button in the processing bar.
3. Crop:
This function allows you to choose a certain play area to convert. That means you can choose a part of the screen you like to convert. For example, you just like the tv in the middle of the screen, then you can drag the frame around the preview window to select the tv and the output preview will show you the output video.In this section you can also choose the “zoom mode”, such as “keep original”, “full screen”, “16:9”, “4:3”.
4. Watermark
In the section, you can add a watermark on the output video to show people something, such as your name, website, studio name or other things. The watermark could be words and picture. You can adjust the transparent of the watermark easily to make it more beautiful.
Part 2. How to Convert Video on Mac
This time you need a Video Converter for Mac(http://www.aiseesoft.com/video-converter-for-mac.html)
Step 1: Add File
Click “Add File” button to load the video you want to converter
http://www.aiseesoft.com/images/guide/mac-video-converter/steps.jpg
Step 2: Choose profile and adjust settings
You can find your output video format from a drop-list called “Profile”You can also adjust the specific settings of the output video, such as “Resolution”, “Bitrate”, “Encoder” and so on.@ Tamwini
Your only goal is to sell software.
‡Thank you for hitting the Blue/Green Star button‡
N8-00 RM 596 V:111.030.0609; E71-1(05) RM 346 V: 500.21.009 -
How to convert java class file version without decompiling
Hi,
Oracle R12.1.3 i am having illegal access error while try to access the class file version Java 1.3 uses major version 47,So how to convert the class file version without using decompiling.
Current java version is 1.6.0_07
Is there any tool or API for converting class file version?
Thanks,
Selvapandian TBeside this I wonder where you get your error from since AFAIK 12c comes with java 1.6.
Well wonder no more!
OP isn't using Oracle 12c database.
They are using Oracle R12.1.3 - which is the E- Business Suite. -
How to convert BLOB into a String
Hi,
I got a blob column from the database.
It contains one XML File.
How to convert it into String.
I need the code for how to convert the blob into String
Thanks in Advance.A blob would be a byte-array, which you can use in the String(byte[]) constructor
-
I know that how to convert any documents to pdf file, but don't know how to get barcode on it. I am using windows 8.1. and want to see barcode on my documents before the print. Please help.
Hi Frank ,
Please refer to the following link and see if this helps.
https://helpx.adobe.com/acrobat/kb/error-organizer-database-damaged-reset-1.html
Regards
Sukrit Dhingra -
How to convert string to an integer in SQL Server 2008
Hi All,
How to convert string to an integer in sql server,
Input : string str="1,2,3,5"
Output would be : 1,2,3,5
Thanks in advance.
Regards,
SunilNo, you cannot convert to INT and get 1,2,3 BUT you can get
1
2
3
Is it ok?
CREATE FUNCTION [dbo].[SplitString]
@str VARCHAR(MAX)
RETURNS @ret TABLE (token VARCHAR(MAX))
AS
BEGIN
DECLARE @x XML
SET @x = '<t>' + REPLACE(@str, ',', '</t><t>') + '</t>'
INSERT INTO @ret
SELECT x.i.value('.', 'VARCHAR(MAX)') AS token
FROM @x.nodes('//t') x(i)
RETURN
END
----Usage
SELECT * FROM SplitString ('1,2,3')
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence -
How to convert a String("yyyy-mm-dd") to the same but in Date format ?
Hi,
can anyone plz tell me how to convert a String to a date format.I'm using MSACCESS database.I want to store this string in the database.So i need to convert it to a date format since the table is designed such a way with date/time type for date field.I used SimpleDateFormat ,but i can't able to convert.The code is given below:
coding:
public String dateconvertion(String strDate)
try
SimpleDateFormat sdfSource = new SimpleDateFormat("yyyy-MM-dd");
Date date = sdfSource.parse(strDate);
SimpleDateFormat sdfDestination = new SimpleDateFormat("yyyy-MM-dd ");
strDate = sdfDestination.format(date);
catch(ParseException pe)
System.out.println("Parse Exception : " + pe);
return(strDate);
}i used prepared statement even now i am getting error like this.....
i have included the prepared statement package also...
my coding:
ResultSet rsdatetemp = null;
PreparedStatement ps = null;
String query ="select distinct itemcode from sales where bill date between ? and ?";
ps = precon.prepareStatement(query);
ps.setDate(1,d1);//d1 and d2 are in date format
ps.setDate(2,d2);
rsdatetemp = ps.executeQuery();
error :
symbol : method setDate(int,java.util.Date)
location: interface java.sql.PreparedStatement
ps.setDate(1,d1);
symbol : method setDate(int,java.util.Date)
location: interface java.sql.PreparedStatement
ps.setDate(2,d2);
Maybe you are looking for
-
My MacBook Pro sometimes doesn't wake up from sleep mode
Dear users, my MacBook Pro (model 5,1 - 15" Late 2008) is behaving oddly since I upgraded to OSX Lion. Sometimes, after going into sleep mode, it doesn't wake up. When I hit a key (space or enter), I see the login screen, but it's not possible to typ
-
Need help on: Automation of Daily Data Load
Hi all, We need to start our Daily Data load from DAC by Manually. So right now my client has asked us to do Automation of Daily Data Load. Starting the Daily Data Load Manually(DAC) Process: First we have to check whether the ASCP Plans updated or n
-
Tecra S2 can not switch to external display
With my Tecra S2 and when docked in APR-III replicator, I used to be able to connect my external screen (through DVI) so that it was automatically switching screen output to it by default, not only at startup screen of windows (yes I noted the forum
-
Dear all, what are the benefits of vault? and what case it can be used? kindly help Edited by: SDBSAP on Jun 15, 2009 2:07 PM
-
Can I share "Ratings" and "Labels" with another person? When I send the photos to another person they cannot "see" any stars or colored label that I set?