Oracle 11 SPR: create 2 logical Tables based on 1 physical Table

Hello

I have a dimension table date in the physical layer. Since I need to create 2 dimension tables date in the MDB layer. One for the date of the order, and the other is for the shipping date. There is a ship_date_key and an order_date_key in my fact table that I try to use my foreign key.  Seems I can create a table of logic date arrived at the ship or a logical table of date joint command, but not both.

Very new to the OBI administration tool.  Any help would be greatly appreciated.

If you don't create an alias of the Date dimension in the physical layer, then you can get the data that one or the other Date of delivery or date order Details.

The Date dimension data are retrieved based on the join is to tell which button it was joined to the fact.

To resolve the ambiguity above, you must create two separate alias tables in the physical layer, so you will have two logical tables in MDB layer

Create Dim_Ship_Date and Dim_Order_Date of the Date dimension.

And now you can join the fact with these two aliases on different tones. This practice is usually followed.

If deemed useful response

-----

Srikanth

Tags: Business Intelligence

Similar Questions

  • How to create the logical tables & how to give joints according to obiee 11g?

    Hello

    I have again to obiee 11g. I want to create the logical tables in MDB layer.

    After that I want to give joins according to MDB.

    I don't know, how to create the logical tables and how to give joints according to obiee 11g?

    Please help me.

    Thanks in advance,

    A.Kavya

    Hello

    The new logical table is right click on the MDB itself, for the join you generally in the business model diagram (again right click on objects).

    Maybe it's better if you start from a kind of tutorial to at least have an overview of what is happening where (layer business and physical layer etc.).

    Take a look at what Oracle has available: Oracle BI EE 11 g

    And no doubt, it can be a good start: https://apexapps.oracle.com/pls/apex/f?p=44785:24:0:NO:P24_CONTENT_ID, P24_PREV_PAGE:9787, 2

  • want to understand the logical tables in SPR

    Hello

    tableA-> PKA
    tableB-> FKA and FKC
    tableC-> PKC

    I have one thing to ask, I am using obiee 11g.
    The SPR that I dragged and droppped a table called tableA
    Now, I have 2 other tables tableB and tableC

    So should I do drag and drop other 2 tables in the same table logic table where I tableA so here the source will display 3 tables
    or do I have to create another logical table that the source will be tableB, tableC abd?
    How the decision should be taken that I want to say on what basis.

    Since I pk to tableA and tableb Drop Drag in the custom of logical table even would it be a problem?

    Thank you

    If PK and FK are foreign key, primary key, respectively in the post, then you have a star schema is already planning to tableB as does. So, in this case you just drag as a new table and do modeling in the business layer as a pattern in the star.

    The need to by dragging in the same table in order to have several sources in this, would come in a snowflake model. The snowflakes are few relatively more standardized, and to make it not standardized, a table with several sources is used in the business model. Thus, a star schema is reached in these scenarios.

  • Problem creating hierarchy based on 2 physical dimension tables

    I'm having a problem create 1 dimension logic with a hierarchy of exploration, based on two separate physical dimension tables. The errors I get when navigating in the exploring hierarchy is:
    "Cannot find coverage source logical table to the columns of the logical" &
    "Missing join between the logical tables.

    I use OBIEE 10.1.3.4
    Here are the details of what I have set up as:

    Physical layer:
    Table DIM_ORG with the dimension columns:
    -dimension_key
    -org_total_code
    -org_total_description
    -org_detail_code
    -org_detail_description

    Dimension table DIM_DEPT with columns:
    -dimension_key
    -dept_total_code
    -dept_total_description
    -dept_detail_code
    -dept_detail_description

    FACT_SALES table with columns of facts:
    -fk_org
    -fk_dept
    -sum_sales

    Physical joins:
    FACT_SALES.fk_org = DIM_ORG_dimension_key
    FACT_SALES.fl_dept = DIM_DEPT.dimension_key

    Business model and the mapping of layer:
    I created a logical dimension ORG_DEPT. It contains two sources of logic table (DIM_ORG & DIM_DEPT) and the following logical columns:
    -All departments (mapped to dept_total_code)
    -Organization (mapped to org_detail_description)
    -Organisation number (mapped to org_detail_code)
    -Department (mapped to dept_detail_description)
    -Department Code (mapped to dept_detail_code)
    The logical key of the company is based on the combination of number of organization & Department Code

    The hierarchy, I need is: all departments-> organization-> Department so I created the following hierarchy for ORG_DEPT:
    -Total level containing: all departments
    -Organization level containing: company (defined as logical level key) number & Organisation (als defined the key level drill)
    / Department detail level containing: Department (defined as logical level key) Code and the Department (defined as key level drill).

    In the LTS of the ORG_DEPT dimension, I've set levels of content for sources:
    DIM_ORG: Level of organization
    DIM_DEPT: Level of detail Department
    The LTS non - joins inner - came against the associated physical tables.

    I created a logical fact table (based on the physical fact table) SALES and joined him on the ORG_DEPT logical dimension table.
    In the LTS, level of content for ORG_DEPT is part of the level of retail service. Non - joins inner were aded against related physical tables.

    When I create a report in response to test the hierarchy and select only "all departments' I get the value of the returned correct size. When I try to break through to the next level, I get the following ODBC error:
    "Could not find coverage source logical table for logical columns: [all of them]." "Please check more detailed level keys are correctly mapped.

    When I create a report in responses and select "Every department" and "Sales", I get the correct result. When I try to break through to the next level, I get a different ODBC error:
    "Lack of join between the logical tables DIM_DEPT and DIM_DEPT: there must be at least a physical link to join between the underlying physical tables.

    All suggestions are welcome!

    Thank you!

    You have no relationship defined between the Department and org.

    You can either:
    a. create a table of physical dimension with a composite key of org_id & dept_id if there is a relationship defined somewhere, then to obiee model as you have already done, but in the physical layer on the composite key join
    b. model your exisitng as two-dimensional and two hierarchies tables and set up a path of forest favorite between them according to your needs.

    Kind regards

    Robert

  • How to create a logical fact table in a layer MDB?

    Hello

    I have 3 Dimension table - 2 are in a schema and the last is another schema. Using this 3 dimension tables, I need to create a logical fact table.
    So, my question is if we can create this table made by joining these 3 dimension table that are 2 different schema s?

    Thank you

    Hi Kuldip,
    Business is never a problem.

    Presentation layer is used to group similar business lines tables.
    It's just for users to understand or requirrment.

    You can use different domain tables to create a report. However the MDB and the physical joins is given in the tables to the RPD. It is compulsory to join tables in MDB layer and the physical layer to be used in the analysis.

    Hope that clarifies.

    A course if you think perticular table is used in the object anaother are, so you must add this table to the domain of the RPD. (Which makes sense)

    Mark if it is correct,

    Bachelot

  • Oracle 11g R2, CREATE THE TABLE and QUOTAS

    Hi all
    I need some insight on a strange behavior, that I discovered in Oracle 11 g 2. Don't know if I'm missing something or if I just discovered a security issue with Oracle.

    Oracle Version: 11.2.0.1.0

    The problem is with the CREATE TABLE and the QUOTA on the specific tablespace privilege.

    Please, try this on your system (if you have some free time and care to confirm the "bug").

    Create a user, grant privileges than two, CREATE THE SESSION and CREATE TABLE.

    Grant NO quota on any tablespace.

    Try to create a table on any tablespace (except SYSTEM) and everybody say if it worked or not.

    The oracle documentation provides the following:

    To create a relational table in your own schema, you must have the CREATE TABLE system privilege. To create a table in the schema of another user, you must have the CREATE ANY TABLE system privilege. In addition, the owner of the schema containing the table must have a quota of space on the tablespace contains the table or the UNLIMITED TABLESPACE system privilege.

    [http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/statements_7002.htm#SQLRF01402]

    The fact is, so far, on two different instances of Oracle 11 g 2, my users are not limited in the creation of the tables only when they have quotas, but where they want to, except the STRING.

    The behavior correct would be to deny the creation of the table the tablespace where there is no quota, but it does not work.

    My instance of Oracle 10 g behave properly and therefore the creation of the table is denied the tablespace with no quota.

    P.s1 sorry if this a well known "bug/problem/question". I've been ridiculous on a well-known forum for the same question. I don't need to be "filled spoon" as shown on this famous site! I have read the documentation! I googled a lot!

    P.s2 even if the creative work of table on tablespace with no quota, you cannot insert data into it. Yes, big picture, the user cannot not filled space with irrelevant data tables, but it can create thousands of tables...!

    Did I miss something?
    Is there a 'default' option I have to mark to prevent the creation of the table where it shouldn't?
    ? (?)

    Please read http://tkyte.blogspot.com/2011/02/deferred-segment-creation.html.

  • Can we create an APEX form based on a Table that has no primary key

    Hello

    I have a requirement.
    I need to create a FORM based on a table with no primary key, but is having a Unique key. I can use as a replacement for primary key Unique key.

    but when I tried to create a form, I received the following message.
    --------------------------------------------------------------------------------------------
    Tables from the source forms and forms in a table must have a primary key
    -------------------------------------------------------------------------------------------


    Thank you
    Deepak

    Hi Deepak,

    Because the form create on a table includes Wizard steps additional, more complex that we did not want to add to the wizard create a new Application.

    Joel

  • Two Hierarchys of Dimension based on a single logical table

    Is it possible to have two dimesion hierarchys based on a single logical table? Suppose we have the following case:

    Accounts table
    Code
    Name
    Category
    Subcategory
    Level 1
    Level 2
    Level 3

    I would like to have a dimension Total > category > subcategory > Code and a Total > level 1 > level 2 > level 3 > Code, so I can navigate on both tracks. Is this possible?

    Thanx

    Yes, the trick is to have the same key on the level low in your hierarchy.

    concerning
    John
    http://obiee101.blogspot.com/

  • create an external table based on local drive

    Hello world

    Is it possible to create an external table and that it points to a file on my local drive?

    It is perhaps a silly question. I'm sorry.

    Thank you

    Lydiea

    In addition to the response of William Robertson (which is correct), if you do not have a way to make the server access to your local disk, you can use sql loader on your local computer to load the data into an actual table.

  • When possible in Oracle Forms to insert a second line based on 1st row, so why not in the ADF?

    Mr President

    When possible in Oracle Forms to insert a second line based on 1st row, so why not in the ADF?

    The user just enter data in the Module of sales in one line of a Bill as below

    and it is displayed in two rows in financial Module.like below how to proceed in the ADF.

    You can see that invoice line contains the sales tax and the gross sales amounts, then it is posted to the financial Module above two lines.

    How to make ADF

    Respect of

    What I realized, this is:

    -You have a table in you screen.

    -You call CreateInsert 2 times to create 2 rows at the same time.

    -You will enter value in a specific column (c1) line1

    Looking for the value that you entered in row1 can be completely copied in the same column (c1), but in line2. is this correct?

    If so try to do the following:

    1. in the table inputText (c1) column set autoSubmit = true and setValueChangeListener to a method in backbean

    
           
    
    

    2. in the inputTextValueChangeListener method to write this code

      public void inputTextValueChangeListener(ValueChangeEvent valueChangeEvent)
      {
        DCIteratorBinding tableIter = (DCIteratorBinding) BindingContext.getCurrent().getCurrentBindingsEntry().get("tableIteratorName");// write table iterator name from pageDef.
        for (int i = 0; i < tableIter.getViewObject().getEstimatedRowCount(); i++)
        {
          ViewRowImpl myRow = (ViewRowImpl) tableIter.getRowAtRangeIndex(i);
          EntityImpl entityImpl = myRow.getEntity(0);
          if (EntityImpl.STATUS_NEW == entityImpl.getEntityState())
          {
            System.out.println("New row found");
            myRow.setAttribute("AttributeName", valueChangeEvent.getNewValue());// write attribute name
          }
        }
      }
    

    3 - Add inputText id in the partialTrigger table

    
    

    4 - pageDef. Set of table iterator rangeSize = "-1".

  • FRAGMENTATION applied on several logical Tables does NOT WORK as expected

    Dear all,

    I have the below scenario implemented that does not work as expected.

    I have a logic Table LT1 (SUN) which is being implemented based on two physical Tables PT1 and PT2 (PT1 and PT2 are DIMS). LT1 has two of LTS, LTS1 and LTS2 implemented PT1 and PT2, respectively. Fragmentation is applied based on the ID of the system Source the PT1 and PT2 are loaded from different source systems. The granularity of the Tables physical is the same.

    Likewise, we have LT2 (DIM), which is implemented in two Tables of physics more and Fragmentation is applied in the Source systems function ID.

    We have an other TIMES DIM on which fragmentation is not applied.

    All of the above tables are linked to the fact (also physical and logical).

    I filter the data for TIME_DIM. Year = 2014 in all scenarios below.

    Scenario1: This solution works as expected when I shoot columns of LT1, SUN as well as the fact of TIME. (YEAR = 2014 is passed in the WHERE clause of queries UNION ALL 2, which is OK)

    Scenario2: This solution is also works very well when I shoot columns of LT2, SUN as well as the fact of TIME. (YEAR = 2014 is passed in the WHERE clause of queries UNION ALL 2, which is OK)

    Scenario 3: When I pull the LT1, LT2, SUN report, done TIME and filter the data for TIME_DIM. Year = 2014, the report does NOT WORK as expected. (Filter on YEAR = 2014 is not passed in UNION All queries in this scenario)

    When I build the model above (for scenario 3) report, it does not go as planned. Do not throw any error, it displays incorrect as results as physical demand generated by the BI server is not correct. Some of the filters is past the TIME SUN are not injected at the request of physics.

    Someone come in this scenario, no solution to the above is greatly appreciated. Thanks in advance

    Kind regards

    Madhav P.

    This is the bug in OBIEE 11 g of product. Oracle has provided the patch for the same and it is absolutely working fine now.

    Kind regards

    Madhav P.

  • Create a temporary table using EXECUTE IMMEDIATE

    Hello

    I need to create a report more complex which must have three different queries. I use a determined IF clause that the query that uses the report, according to the parameters.

    I want to write the output to a csv file, so I created a PROCEDURE.

    The first package of the procedure has the three SQL and the IF clause in order to determine the query that the report uses and stores the query code in a variable (v_sql), which is passed to the PROCEDURE that needs to write to the output of the report.

    I tried to create a table with data from the request in order to make a LOOP and exit, something like this:

    WRITE_FILE (errBUFF of the PROCEDUREOUT VARCHAR2,
    retCODEOUT VARCHAR2,
    v_sqlIN VARCHAR2)

    IS

    ContorNUMBER;

    BEGIN

    EXECUTE IMMEDIATE v_sql;
    SLIDE G
    IS
    Select * from XXROR_REG_MF_TBL;
    --
    -initialization
    --
    retCode: = 0;
    errBUFF: = NULL;
    Contor: = 0;
    --
    -cursor
    --

    FOR X IN G
    LOOP
    APPS. FND_FILE.
    PUT_LINE)
    APPS. FND_FILE. OUTPUT,
    ....)

    I should mention that v_sql is something like:

    CREATE GLOBAL TEMPORARY TABLE ACEs (SELECT * of the double);

    I can't really do that, so I was wondering if you have any suggestions

    Thank you

    Claudiu

    Hello

    I don't think you need a table at all. You can set the cursor based on the SQL passed as parameter

    https://docs.Oracle.com/database/121/LNPLS/dynamic.htm#LNPLS629

    Concerning

    Marcus

  • By dragging the columns in source existing logical table...

    Hello
    I'm learning just OBIEE 11 g and I use a turorial from oracle, it is
    "Creating a repository using the BI of Oracle 11 g Administration tool" for aim practice.
    In this tutorial, it's say that do drag the columns of phscial layer of Logica Table Source
    MDB layer to avoid creating a second source of logical table... But when I try to drag the columns to
    source of existing logic, it is disabling I mean that is not to allow... is there any other technical
    IT... or I'm wrong addresses.... The following are briefly in the
    Tutorial.


    "Drag all six columns of D50 Sales Rep in the physical layer to D5 Sales Rep in the MDB layer." This action
    creates logical columns and adds a logical table source D50 Sales Rep to D5 Sales Rep.
    The logical table D50 source Sales Rep and rename LTS1 Sales Rep.
    In the physical layer, expand D52 Sales Rep Position.
    Drag the POSTN_DESC and POSTN_LEVEL D52 Sales Rep posted to LTS1 Sales Rep that you are
    by dragging columns from the source to the logical table, not the logical table. Dragging to the logical table would create a
    second source of logical table.
    Drag the DISTANCE of D51 Sales Rep Parent child at LTS1 Sales Rep. Yet once, you drag the column to the logic
    the source of the table, not the logical table. »

    help would be appreciated.
    Thank you and best regards,
    Sri_Oracle.

    Hi Sri,

    When you drag a physical column on an existing source of the logic table and if it doesn't let you do, then it means that there is no physical join between the existing physical table (which the logical source already points to) and the new physical table (which you drag the column now). Then, please, make sure the joint in place.

    I hope this helps.

    Thank you
    Diakité

  • MySql to Oracle DB Migration, creating schema problem

    Hello
    Im a beginner, try to migrate a mysql database in oracle. The mysql db contains a few tables, if im trying to migrate everything manually.
    When filling out the tables a problem im. It's as follows:

    Table 1 has a Key (t1_col1, t1_col2, t1_col3) primary Composite.
    Table2 contains a column (t2_col1), which is a reference to Table1 t1_col1 (to make t1_col1 a repository key in the other table must be UNIQUE or PRIMARY, but as we know table can have a unique primary key and the t1_col1 contains redundant data, so cant make UNIQUE either).
    So I tried indexing of the t1_col1 column but it dint seem to work as well, creating table2 it gives "no unique match or primary key for this list of columns.
    ".

    I think that MySql is not so strict a lot compared to Oracle, please guide me through this, any workaround (s)?
    This is the MySql schema:

    CREATE TABLE "temp". "table1")
    't1_col1' varchar (50) NOT NULL,
    't1_col2' varchar (50) NOT NULL,
    't1_col3' varchar (50) NOT NULL,
    "t1_col4" integer NOT NULL,
    PRIMARY KEY ('t1_col1', 't1_col2', 't1_col3')
    )
    ENGINE type = InnoDB
    CHARACTER SET utf8 COLLATE utf8_general_ci;



    CREATE TABLE "temp". "table2")
    't2_col1' varchar (50) NOT NULL,
    't2_col2' varchar (50) NOT NULL,
    FOREIGN KEY CONSTRAINT 'table2_fk1' 'table2_fk1' ('t2_col1')
    REFERENCES, 'table1' ('t1_col1')
    ON DELETE CASCADE
    ON UPDATE CASCADE
    )
    ENGINE type = InnoDB
    CHARACTER SET utf8 COLLATE utf8_general_ci;


    Looking forward to the answer.

    Kind regards
    Peter

    _______________
    The system configuration:
    CentOS 5 (linux kernel 2.6.18 - 8).
    MySQl 5.0.
    Oracle 10g Enterprise edition

    Published by: user10707566 on December 12, 2008 04:28

    If I didn't know that MySQL allows you to declare FK constraints that are non-profit information only and does not apply, I would find this surprisiing really, since the essence of a FK relationship is that the child is identified by the parent.

    In Oracle, you must create a primary key for the substitution on the table1 based on the unique combination of col1, col2 and col3. I would certainly use a sequence for it. Next, you create a unique constraint on col1, col2 and col3 to apply your natural primary key. FK in table2 would be the key to substitution from table1. Something like:

    CREATE TABLE table1 (
       t1_surr_key NUMBER NOT NULL,
       t1_col1 Varchar2(50) NOT NULL,
       t1_col2 Varchar2(50) NOT NULL,
       t1_col3 Varchar2(50) NOT NULL,
       t1_col4 integer NOT NULL)
    
    ALTER TABLE table1 ADD CONSTRAINT table1_pk
       PRIMARY KEY (t1_surr_key);
    
    ALTER TABLE table1 ADD CONSTRAINT table1_uk
       UNIQUE (t1_col1, t1_col2, t1_col3);
    
    CREATE TABLE table2 (
       t2_col1 varchar2(50) NOT NULL,
       t2_col2 varchar2(50) NOT NULL,
       t1_surr_key NUMBER NOT NULL,
    CONSTRAINT table2_fk1 FOREIGN KEY (t1_surr_key)
       REFERENCES table1 (t1_surr_key)
       ON DELETE CASCADE
       ON UPDATE CASCADE)
    

    John

  • Create no partition Table partitioning

    Dear all,

    I have a table that is not partition, and it has about 20 G data... If I want that table with say DATE_M partition column

    Please can anyone suggest the best way to do it.

    Thank you

    To create a partitioned table

    (1) you must make a backup of the existing one you can take expdp or DEC

    (2) remove the table and create the same table now with partitions (a minimum score is required)

    you want a range of ex-based partition if you use a date column

    (3) loading data from the previous table into the new partitioned table, either by DEC or impdp, the inserts will be automatically in their respective partitions and you don't mention explicitly.

    Their is no other possible way to partition a non partitioned table, you can do than workarounds to minimize the downtime of the table trying different ways to load data into the partitioned table.

    You can use the enable row movement clause of create table and also use local indexes for easy maintenance partition.

Maybe you are looking for

  • Facebook connection cut on the header at the top of the page.

    On facebook, I noticed that the header is not look right, here's a picture of him. http://www.mtechama.com/Facebook-sample.jpg and when you use its normal IE9. How can I fix? Moreover, my computer windows screen resolution is up to 1920 X 1080 for be

  • Windows 8.1 for windows 7 or vista

    so I bought the new laptop with windows 8.1 and want to use windows 7 or vista if I can't do windows 7.  I have 2 laptops hp broken old. It is with vista (got the product key) and one with windows 7 but stuck on the bottom with a product key is total

  • My clock is ticking on military time... Help

    the week last Microwsoft helped put the computer on line now the clock is in military time.  Also, get a window telling me that he wants to change my default?  New help

  • Outlook Express not opening

    Outlook Express does not open.  Instead, I get this message: "runtime error. Program c:/Program Files / Outlook Express / msimn.exe this application has requested the execution to terminate in an unusual way. "Any suggestions? The message appears as

  • No backup possible

    Refuses all of a sudden my computer back-up, it is said: the requested resource is in use (0x800700AA) and the data necessary to complete this operation are not yet available. He has done it before, every month.