Modeling Star Schema From Transactional Schema

My requirement is to model the BMM from a Transactional Schema. When creating the joins in the physical layer for example between the Customer and Orders table would I join the 2 tables on Customer ID and pay attention to the one to many relationship between a customer and orders or would I need to defined which table is the fact table and which table is the dimesion table before creating the joins in the physical layer.

I would suggest to write a physical query to generate report like year, customer,product wise #of order and order items. Based on that try to creat joins and the bmm schema. I would say this the best approach.
Or else look for the table which having more foreign keys to other tables that would be the center located table.
Pla mark if helps.

Similar Messages

  • How can i access all the objects of one schema from another schema

    Dear All,
    How can i access all the objects(Tables,Views,Triggers,Procedures,Functions,Packages etc..) and do the modifications of one schema from another schema (Without using synonyms concept).
    Thanks in advance,
    Mahi

    First of all, synonyms only help you easy reference the object. It doesn't have any implication of object privilege.
    As long as you have proper privilege on target object. You can access it with or without synonyms.
    Assuming you have proper privilege of objects, you can use following command to assume schema owner.
    ALTER SESSION SET CURRENT_SCHEMA = Schema_owner

  • How to defer constraint of one schema from another schema

    Hi All,
    I am having a requirement of migrating data from one schema(SCHEMA_A) to another schema(SCHEMA_B). So I tried to implement the same using PL/SQL.
    Because of foreign key contraint while migrating child table, Oracle throws an error message like parent key not available.
    So I tried to set the all contraints to deferred and after completion of migration i planned to set all the contraints to immediate.
    But Here I am executing the procedure from schema(SCHEMA_C) which has rights to access SCHEMA_A and SCHEMA_B.
    How could I able to defer all the constraint in SCHEMA_B from SCHEMA_C?
    Thanks in Advance,
    Antany.

    Yes,
    You could run something like this, for foreign keys:
    BEGIN
      FOR cur_rec IN (SELECT table_name, constraint_name FROM DBA_CONSTRAINTS WHERE OWNER = <owner> AND CONSTRAINT_TYPE = 'R' )
        LOOP
          EXECUTE IMMEDIATE 'ALTER TABLE <owner>.' || cur_rec.table_name || ' DISABLE CONSTRAINT ' || cur_rec.constraint_name;
        END LOOP;
    END;
    /

  • Create a new schema from existing schema

    Hi, I'm wondering whether there is a way of create a schema from
    existing one? Could it done through SQL statement or have to go
    through some sort of tools? Please drop me a few words if you
    know the answer. Thanks.

    Hi,
    U can do that in a few steps.
    First create the User.
    Then Go to the Source User and grant him create any table privs.
    Then write a Sql Stmt to generate the necessary scripts and run it.
    The other way would be to grantr the newuser select on all the tables and then run that script from his account.
    Regards,
    Ganesh R

  • Trying to create 3 schemas from one schema

    DB version : 11.2.0.2 Enterprise Edition
    Platform : RHEL 5.6
    I have an expdp dump of a schema (HRTB_AP_PROD). I wanted to create 3 schemas from this dump in one go. So i tried this
    ## The parfile I used
    DIRECTORY=DPUMP_DIR
    DUMPFILE=HRTB_AP_PROD%u.dmp
    LOGFILE=TheThreeSchemas-imp.log
    remap_schema=HRTB_AP_PROD:HRTB_AP_DEV1
    remap_schema=HRTB_AP_PROD:HRTB_AP_DEV2
    remap_schema=HRTB_AP_PROD:HRTB_AP_DEV3
    exclude=statistics
    parallel=2
    nohup impdp \'/ as sysdba\' parfile=impdp-aug23.par &But i encountered
    ORA-39046: Metadata remap REMAP_SCHEMA has already been specified.When I googled it found the following link in which Dean Says , it is not possible.
    Re: one dump file inport into multiple schema
    So, I had to run 3 separate imports (impdp) to do this.
    This is a bit wierd. I am surprized that Oracle guys haven't done anything about this . This is like DB2 !

    Is there a question in your post or are you just letting us know the obvious?
    :p

  • Creation of star schema from snowflake schem in BMM layer

    hi,
    This is my situation.I have "Fact-table" which has Dim 1 .now Dim 1 is joined to Dim2,Dim3
    Fact
    |
    Dim 1
    |
    | |
    Dim 2 Dim 3
    Now in Bmm Layer how can i make this snowfalke schema to star schema.I heard about making changes in the Logical Table source.And what will be the look of the presentation layer.
    Any help is appricaited Guys.

    In physical layer, you have a join between Dim 1 and Dim 2, Dim1 and DIm3, Fact and Dim1. In BMM for Dim1, in the sources, add Dim2 and Dim3. You may add both these dimensions in one single LTS if the data is not duplicate in the tables. In case the data is duplicated add them as seperate LTS in the sources for Dim1. Refer this post for reference -- Logical Table source source query
    In BMM you need a join between Dim1 and Fact. Basically your Dim1 is sourced from three different tables which are your dimensions. This would transform your snowflake into star. In your presentation layer you will have all the columns from your dimensions (except for the duplicates, lets say you have column A in both dim1 and dim2, you should map this column in column mapping tab so as to enable BI server to pick the most economical source) and facts.
    Hope this clears your question.

  • To kill session in one schema from another schema

    Hi Team,
    I got a problem like a table from one of my schema has been locked. I am getting 'ORA-00054: resource busy and acquire with NOWAIT specified' error when trying to delete rows from that table or even when trying to truncate that table.
    Let the table be 'T1' present in schema 'VIEW'
    I tried to kill the session which is active for that schema by below query
    select sid,serial#,status from v$session where username='VIEW' and STATUS = 'ACTIVE';
    alter system kill session '681,2586';
    But i couldn't do the above as i don't have DBA privilege for that. But i have DBA privilege for another schema let it be 'ADMIN'
    Now how can i kill the session in schema 'VIEW' from schema 'ADMIN'
    can any one get me solution.
    Thanks in Advance
    11081985

    I got a problem like a table from one of my schema has been locked. I am getting 'ORA-00054: resource busy and acquire with NOWAIT specified' error when trying to delete rows from that table or even when trying to truncate that table.
    Before you do anything why don't you actually find out WHY that table has been locked.
    You generally should NOT be killing sessions without knowing what is causing the problem to begin with.
    Then you also need to determine if you should use KILL SESSION or instead use DISCONNECT SESSION and well as whether the use of IMMEDIATE is appropriate.
    Each of those choices acts differently. Many people use KILL when they should really use DISCONNECT.
    See DISCONNECT SESSION Clause and KILL SESSION Clause in the ALTER SESSION chapter of the SQL Language doc
    http://docs.oracle.com/cd/E11882_01/server.112/e17118/statements_2014.htm#i2282145

  • How to rename AW of one schema from another schema?

    Hi Folks,
    I am trying to rename an Analytical workspace which is in Schema1 from the SYSTEM schema as given below but getting the error "ORA-03001: unimplemented feature"
    Enter user-name: system
    Enter password:
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> alter session set current_schema = Schema1 ;
    Session altered.
    SQL> execute dbms_aw.aw_rename('AWNAME','AWNAME_BKP');
    BEGIN dbms_aw.aw_rename('AWNAME','AWNAME_BKP'); END;
    ERROR at line 1:
    ORA-03001: unimplemented feature
    ORA-06512: at "SYS.DBMS_AW", line 1050
    ORA-06512: at "SYS.DBMS_AW", line 1073
    ORA-06512: at line 1Any solutions for this?
    Thanks,
    Prabhu

    Westh,
    Yes this code appears to be correct. Was that your question?
    --Ric                                                                                                                                                                                   

  • Approach schema from another schema's datasource

    I have a datasource DS1 to a schema1 in Database1.
    There also is a schema2 in another database Database2.
    Is there a way to read/update/write data in schema2 through DS1.
    I need this because of global transactions.
    Database is oracle 10g.

    I have no idea what you mean with datasource DS1, but you can access objects in another database through database links. This way you will use the dirstibuted transaction features build-in oracle.
    Peter

  • Bpel: problems importing schema from http-url

    i have problems importing the schema "http://schemas.xmlsoap.org/ws/2003/03/addressing/". I'm using JDeveloper 10.1.3.3.0.4157 and SoaSuite 10.1.3.1.0 with the patch 10.1.3.3.0.
    The problem can be reproduced very easily:
    * create a new "BPEL Process Project" from template "Synchronous BPEL Process" and use all default settings
         -> deploying to my local app-server works
    * add a new variable to the process
         * select "Element" as type
         * click "Browse Elements..."
         * click "Import Schema File..."
         * enter "http://schemas.xmlsoap.org/ws/2003/03/addressing/"
         * select "Imported Schemas/addressing/EndpointReference"
         * finish creating variable
    * save all and deploy
         -> the ant console shows the following error:
    BUILD FAILED
    C:\oracle\JDeveloper\jdev\mywork\TejTest\BPELProcess1\build.xml:79: A problem occured while connecting to server "127.0.0.1" using port "8888": bpel_BPELProcess1_1.0.jar failed to deploy. Exception message is: ORABPEL-05215
    Fehler beim Laden von Prozess.
    Bei der Prozessdomäne sind folgende Fehler beim Laden des Prozesses "BPELProcess1" (Revision "1.0") aufgetreten: BPEL-Validierung nicht erfolgreich.
    Validierung der BPEL-Quelle nicht erfolgreich. Fehler:
    [Fehler ORABPEL-10902]: Kompilierung nicht erfolgreich
    [Beschreibung]: in "bpel.xml", XML-Parsing nicht erfolgreich. Grund "nicht definiertes Teilelement.
    In WSDL-Datei bei "file:/C:/oracle/product/10.1.3.1/OracleAS_1/bpel/domains/default/tmp/.bpel_BPELProcess1_1.0_c64929dfd2dacf95db3c9da081c1797d.tmp/BPELProcess1.wsdl" ist das Teilelement der Nachricht "{http://xmlns.oracle.com/BPELProcess1}BPELProcess1ProcessRequest" in keinem der Schemas definiert.
    Vergewissern Sie sich, dass die Schreibweise des QName-Elements korrekt ist und dass der WSDL-Import vollständig ausgeführt wurde.
    [Mögliche Behebung]: n/v.
    Wenn Sie ein Patch auf dem Server installiert haben, stellen Sie sicher, dass die bpelcClasspath-Domäneneigenschaft die Patch-Klassen enthält.
    at com.collaxa.cube.engine.deployment.CubeProcessHolder.bind(CubeProcessHolder.java:285)
    at com.collaxa.cube.engine.deployment.DeploymentManager.deployProcess(DeploymentManager.java:862)
    at com.collaxa.cube.engine.deployment.DeploymentManager.deploySuitcase(DeploymentManager.java:728)
    at com.collaxa.cube.ejb.impl.BPELDomainManagerBean.deploySuitcase(BPELDomainManagerBean.java:445)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    sorry for the german message, i couldn't get the english version. basically it says that "{http://xmlns.oracle.com/BPELProcess1}BPELProcess1ProcessRequest" is not defined in any schema, what is very strange because before importing the schema from http..., the element ...BPELProcess1ProcessRequest has been found.
    another strange thing is that if i download the schema from http://schemas.xmlsoap.org/ws/2003/03/addressing/ and import it from a local file, everything works as expected.

    When importing a schema there are two attributes to the import element to be aware of: namespace and schemaLocation. I think this is the basis of confusion, particularly where the same value is used for both in this case.
    I suspect that the schema import works for ax90033 because the schemaLocation is being specified as "http://schemas.xmlsoap.org/ws/2003/03/addressing/".
    The W3C has some further information on this at http://www.w3.org/TR/2004/REC-xmlschema-1-20041028/structures.html#element-import which gives an indication of the complexity that lies behind schema imports.
    Peter
    http://soastation.blogspot.com

  • Administrate Objects in Schema by Another Schema

    Hi,
    I am in a scenario to give administer privilege on one schema to another schema only.
    Let me exxplain my scenario with an example.
    I have a schema named HR in my database. Now I have create another schema named SH.
    Now I need to do all operations like create table, create procedure etc on HR schema from SH schema.
    And please note that I can't give create any table, create any procedure etc as it will be a big security breach.
    Please help me to sort out this issue.
    Regards,
    Savad

    user9292816 wrote:
    Hi,
    I am in a scenario to give administer privilege on one schema to another schema only.
    Let me exxplain my scenario with an example.
    I have a schema named HR in my database. Now I have create another schema named SH.
    Now I need to do all operations like create table, create procedure etc on HR schema from SH schema.
    And please note that I can't give create any table, create any procedure etc as it will be a big security breach.
    AFAIK , without create any table/ or any any super privilege like DBA etc , you cannot achieve this.
    Regards
    Rajesh

  • Ned to back up files.  Trying to reformat a WD 1TB external hard drive but my utilities keeps saying "choose scheme from volume pop up menu.." also says cannot be modified.  What can I do?!

    Help would be appreciated! Before I upgrade my 10.6.8 OS X I need to back up files.  Trying to reformat a WD 1TB external hard drive but my utilities keeps saying "choose scheme from volume pop up menu.." also says "this partition cannot be modified."  What can I do?! Take it back to Currys!  Many thanks

    Select the Top Most Entry for that drive, it will be the drive model # and have the size listed, then go to the Partition tab and select One Partition from the Partition Layout area drop down. Then select Mac OS Extended (Journaled) as the format, if that is the format you want to format it AS. Then click the Options button near the bottom of that windows and select GUID as the Partition Table. Close the options screen and clcik the Apply button.

  • Report creation from two schemas

    Hi All,
    1. suppose I have 2 databases.
    2. one is sample1 and another is sample2
    3. now u need to build one report from these two schemas.
    4. means u need to take the samp_key from samp_tab from sample1 schema
    and also u need to take some measure which is there in sample2 also.
    how u will create the report from the two schemas? Is there possibility in the report level or do we have any chances in rpd level?
    Can anybody help on this?
    Thanks in Adv.

    You have 2 options:
    1) RPD level: bring those 2 tables to BMM layer into one Business model and then put them in the same catalog in presentation layer.
    2) Answers level: Use combine with similar request and create the report.

  • Best LKM to move data from with in Oracle from one schema to another Schema

    Hi Gurus,
    What is the best KM to move data from one schema to another schema within same oracle database.
    Thanks in advance

    Dear,
    If your source and target are on the same database server then you dont need LKM.
    You have to 1. create one data server for the database server
    2. Create one physical schema for your source and another physical schema for your target under the above created data server.
    3. Then create models for each above created physical schema
    In this case you just need IKM knowledge module
    Please refer http://oditrainings.blogspot.in/2012/08/odi-interface-source-target-on-same.html
    If your source and target are on different server then you must create two different data servers in topology. You have to use LKM.
    The best LKM to use is LKM oracle to Oracle dblink. But you should have proper grants to use it
    If your source has very few records you can go with LKM SQL to Oracle other wise use LKM oracle to Oracle dblink

  • Star schema or Snowflake schema

    Hi Gurus,
    I have following dimensions and fact table. let me know can I go ahead with star schema and snowflake schema while building the cube.
    1. Country's table
    2. workgroup table --> each country have N number of work groups
    3. user table---> each workgroup have  N number of users.
    4. time table.
    5. fact table.

    This is a similar thread that discusses on the design approach of star vs normalized tables
    https://social.technet.microsoft.com/Forums/sqlserver/en-US/7bf4ca30-a1bc-415d-97e6-ce0ac3137b53/normalized-3nf-vs-denormalizedstar-schema-data-warehouse-?forum=sqldatawarehousing
    In my experience majority of cases I've some across is also star schema for data marts where tables will be more denormalized rather than applying priciples of normalization. And I believe so far as its through SSAS cubes that you exposes the OLAP model
    it would be much easier to implement relationships using a denormalised approach.
    What you may do is to have a normalised datawarehouse if you want and then built the datamarts over it using denormalised tables (star schema) for the cube.
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

Maybe you are looking for

  • MacBook Pro Retina 15 Inch acting up.

    Ok, I have several things going on: My spotify app started crashing on startup, and the my Adobe Premiere CC programs stopped functioning correctly. CS6 Master Collection worked before, and then started doing the same thing. Now my touch pad sometime

  • How do I create an AppleDouble "dot-underscore" file from the command line?

    We're going through a process of migrating NetWare shares to Windows shares (without File Services for Macintosh) where I work. One concern is that the NetWare shares are shared as AFP volumes to the Macs. All the finder info and metadata for the fil

  • Page turn effect doesn't work for PDFs in iBooks

    Hi All, Page turn in iBooks doesn't seem to be working for PDF files. Whenever I open the PDF file on Macbook, iBooks opens the file in Acrobat reader. I was just wondering if this is the default behaviour or something can be changed to get the page

  • Issues syncing/sharing calendars on iPhone 6

    Some questions about sharing calendars... First some background. My husband and I just upgrade from an iPhone 3 (yes, so retro) to an iPhone 6. Clearly this is a big change for us. We lived through an era where we shared my apple ID for a while. But

  • Air Drop missing on iMac 20"

    Hi guys, after I installed Lion on my MacPro, my wife did the same on her iMac 20". The problem is that she cannot see Air Drop like is showing on my MacPro. What could be the cause? Thanks.