Oracle view in OBIEE

Hi Experts ,
We have Oracle View . There is no primary key is defined in this view. I need to join this view with some table in OBIEE physical layer.
1. I have created one opaque view with query
SELECT 'YES' PRESERVE FROM DUAL (Dummy table)
and make the join ..and report is also working fine...
So is this correct method.
2. Can we define Key at OBIEE level.(Make an alias and do self join)
If we define key at obiee level the key should be uniqe and for that we need to make all the view column as key.
please suggest..which method is good.
Thanks.
S

so can i create my key on any column and do the self join by creating alias...
I just want to give a join to my view so that obiee will not give any warning...
report is coming from view only...no fact and dimension here...view is on OLTP system

Similar Messages

  • Map Viewer in Obiee 11G

    Hi,
    I need to install map viewer in obiee 11g to show maps in dashboards. I have no idea about this, can any one help me.
    Thanks,
    PJ

    OBIEE Samples has very good documentation and the schemas to download and set this up
    http://www.oracle.com/technetwork/middleware/bi-foundation/obiee-samples-167534.html
    Select the OBIEE 11.1.1.3 - Sample Application section

  • Oracle Endeca Vs OBIEE

    Hi all,
    I need to differentiate Oracle endeca and OBIEE in technical point of view and the  new features.
    Kindly share the related links.
    Thanks in advance.

    Major know difference is Un-structured data analysis capability & Endeca has one more component which is for e-commerce business related.

  • Displaying of charts as a separate column in table view view in obiee 11g

    Hi all,
    we have a requiremnet where i need to display charts in a separate column in a table view in OBIEE 11g. can any body help in achieving this requirement?
    Thanks in advance.
    Regards

    HI All,
    Can any body let me know how to achieve this requirement!
    charts also should be dsplayed in a column in table. I had gone through below Sparkline graph link but didn't move forward with Jquery. can any body help me in understanding this?
    http://srisnotes.com/tag/obiee-11g/.

  • ORA-02070: Error when updating a SQL Server table thru an Oracle View

    I have a SQL Server table TIMESHEET which contains a number of VARCHAR and NUMERIC columns plus a DATETIME column.
    Only the DATETIME column is giving me trouble.
    On the ORACLE side I have a view which selects from the SQL Server table but in order to get the SELECT to work, I had to either put a CAST or TO_DATE function call around the DATETIME field
    Below is the relevant part of the 2 view definitions I have tried
    create view TIMESHEET as
    SELECT
    "TsKeySeq" as TS_KEY_SEQ,
    "EmployeeNo" as EMPLOYEE_NO,
    CAST("PeriodEnding" AS DATE) as PERIOD_ENDING,
    . . . (more columns - not relevant)
    FROM [email protected];
    An update to the view generates this message
    ORA-02070: database OLEMSQLPSANTDAS6 does not support CAST in this context
    create view TIMESHEET as
    SELECT
    "TsKeySeq" as TS_KEY_SEQ,
    "EmployeeNo" as EMPLOYEE_NO,
    TO_DATE("PeriodEnding") as PERIOD_ENDING,
    . . . (more columns - not relevant)
    FROM [email protected];
    An update to the view generates this message
    ORA-02070: database OLEMSQLPSANTDAS6 does not support TO_DATE in this context
    If I don't include either the TO_DATE() or CAST() then I get
    Select Error: ORA-28527: Heterogeneous Services datatype mapping error
    ORA-02063:preceding line from OLEMSQLSANTDAS6
    Does anyone have any idea how to update a SQL Server DATETIME column thru an ORACLE view?

    You can't cast accross heterogenious databases and there is no need to. HSODBC treats SQL Server DATETIME column as DATE. For example, I have SQL Server table:
    CREATE TABLE [Ops].[T_JobType](
         [JobType] [varchar](50) NOT NULL,
         [JobDesc] [varchar](200) NULL,
         [InsertDt] [datetime] NOT NULL CONSTRAINT [InsertDt_00000006]  DEFAULT (getdate()),
         [InsertBy] [varchar](128) NOT NULL CONSTRAINT [InsertBy_00000006]  DEFAULT (user_name()),
         [LastUpdated] [datetime] NOT NULL CONSTRAINT [LastUpdated_00000006]  DEFAULT (getdate()),
         [LastUpdatedBy] [varchar](128) NOT NULL CONSTRAINT [LastUpdatedBy_00000006]  DEFAULT (user_name()),
    CONSTRAINT [T_JobType_PK] PRIMARY KEY CLUSTERED
         [JobType] ASC
    )WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON, FILLFACTOR = 100) ON [DATA01FG]
    ) ON [DATA01FG]Now on Oracle side I do:
    SQL> desc "Ops"."T_JobType"@pbods
    Name                                      Null?    Type
    JobType                                   NOT NULL VARCHAR2(50)
    JobDesc                                            VARCHAR2(200)
    InsertDt                                  NOT NULL DATE
    InsertBy                                  NOT NULL VARCHAR2(128)
    LastUpdated                               NOT NULL DATE
    LastUpdatedBy                             NOT NULL VARCHAR2(128)
    SQL> select "InsertDt" from "Ops"."T_JobType"@pbods;
    InsertDt
    18-AUG-08
    09-OCT-08
    22-OCT-09
    18-AUG-08
    19-NOV-08
    SQL> SY.

  • Rebuilding of the InforSource of DBCONNECT to Oracle View

    Hello,
    following problem:
    I use DB connect to an Oracle Database to an View
    It works fine.
    I change the View in the Oracle Database and recompile it.
    I get an Error while loading with an InfoPackage.
    I have to drop the regenerate the Datasource and
    I must Drop ! the InfoSource and
    rebuild it completly again to be able to load again !
    This stemms due to the fact that BW seems to protocol the internal state of the Oracle View, like displayed in the Oracle Dictionnary views user_views, all_views
    or dba_views.
    This is an inacceptable BW system behaviour and impossible for day to day    
    business, development and much work, espescially if You develop a 12 or more
    DBConnect View interfaces !                                                                        
    Does anybody out there know how to make BW a more pleasent thing , customize it better to avoid this burden ?
    Thank You !
    Martin Sautter, Munich / Essen

    > Hi,
    >
    > when changing the view in Oracle it isn't necessary
    > to drop and recreate the ISource and DSource!!
    >
    > Proceed as follows:
    > - change your view (of course you can't rename it!)
    > - regenerate your datasource with tcode RSDBC
    > - open your TRules and maintain your TStructure
    > (change tab)
    > - maintain your TRules
    > - finally activate
    >
    > this is definitively enough.
    >
    > hope this helps...
    >
    > Olivier.
    >
    > Message was edited by:
    >         Olivier Cora
    > Hi,
    >
    > when changing the view in Oracle it isn't necessary
    > to drop and recreate the ISource and DSource!!
    >
    > Proceed as follows:
    > - change your view (of course you can't rename it!)
    > - regenerate your datasource with tcode RSDBC
    > - open your TRules and maintain your TStructure
    > (change tab)
    > - maintain your TRules
    > - finally activate
    >
    > this is definitively enough.
    >
    > hope this helps...
    >
    > Olivier.
    >
    > Message was edited by:
    >         Olivier Cora
    > Hi,
    >
    > when changing the view in Oracle it isn't necessary
    > to drop and recreate the ISource and DSource!!
    >
    > Proceed as follows:
    > - change your view (of course you can't rename it!)
    > - regenerate your datasource with tcode RSDBC
    > - open your TRules and maintain your TStructure
    > (change tab)
    > - maintain your TRules
    > - finally activate
    >
    > this is definitively enough.
    >
    > hope this helps...
    >
    > Olivier.
    >
    > Message was edited by:
    >         Olivier Cora
    > Hi,
    >
    > when changing the view in Oracle it isn't necessary
    > to drop and recreate the Source and DSource!!
    >
    > Proceed as follows:
    > - change your view (of course you can't rename it!)
    > - regenerate your datasource with tcode RSDBC
    > - open your TRules and maintain your TStructure
    > (change tab)
    > - maintain your TRules
    > - finally activate
    >
    > this is definitively enough.
    >
    > hope this helps...
    >
    > Olivier.
    >
    > Message was edited by:
    >         Olivier Cora
    > Hi,
    >
    > when changing the view in Oracle it isn't necessary
    > to drop and recreate the ISource and DSource!!
    >
    > Proceed as follows:
    > - change your view (of course you can't rename it!)
    > - regenerate your datasource with tcode RSDBC
    > - open your TRules and maintain your TStructure
    > (change tab)
    > - maintain your TRules
    > - finally activate
    >
    > this is definitively enough.
    >
    > hope this helps...
    >
    > Olivier.
    >
    > Message was edited by:
    >         Olivier Cora
    Hello,
    in all its ok, except You change the format ( number to char or char to number etc.) or the column name of  DBConnect's View or Table.
    In this case You have do delete the BW Datasource and rebuild it.
    It is advisable to name the DBConnect View or Table exactly as
    in BW. This makes setting up of the InfoSource very easy.
    Thank You
    Martin Sautter

  • USE OF VIEWS IN OBIEE REPOSITORY

    Hi Gurus,
    What is the use of creating views in obiee physical layer.is it mandatory?
    Could any one pls explain me.
    THANKS,
    SIVA

    No its not mandatory, its for quick fixes where you cant ETL your data into the structures you require, failing that you cant create a view in the underlying database because you dont have permissions, or its such a simple query you think it doesnt warrant creating.
    Bear in mind :
    All rows have to be returned from the view, the database has more work to do,
    debugging your Physical SQL gets messy and quickly un-readable.
    It really is for quick fixes but in the long term I'd always try and avoid them.

  • How to create view object for a predefined Oracle view

    Trying to create an entity object with no success,,,
    I have an Oracle view(complex query in PL/SQL) that I need to encapsulate as a View Object then represent a column from this view as a '' | | linkcolumn | | ''
    then get a reference of the requestParameter "p" in this case that I need to use as whereclause parameter on another view object that is part of the ListPage.jsp.
    The application is basically a page of organization links that when click filters their reports as a list,
    In Jdeveloper's context webBean(RowSetBrowser list [org links] to RowSetBrowser [org report list])
    Can I implement this functionallity using the wizards or possibly writing custom code using the standard webBeans.

    Jerry,
    First, you can create an entity object based on an Oracle view. If you check the "Views" checkbox in the EO wizard, you'll see a list of database views. Then you can create a view object based on your entity object, and use it like any other view object.
    As for getting the page into the format you want, I suggest you start by generating your page using the BC4J JSP wizard, then customize the generated JSP.
    Thanks
    Blaise

  • How to re-arrange the columns present in pivot table view in obiee 10?

    Can you please tell me How to re-arrange the columns present in pivot table view in obiee 10?

    I have columns as 1,2,3,4,6,7, in pivot table view.
    I have calculated item (column 5 as summation of 1,2,3,4) and caluclated itme (column 9 as summation of 6,7)...now if i arrange ascending then calculated columns 5,9 don't get affected.
    I need the order as 1,2,3,4,5,6,7,9

  • Customize Filter View in OBIEE 11g

    Hi,
    Is there any way to customize the filter view? My requirement is not to show formulas that are used in Analysis in the “Filter view”. All analysis that we create should go with Filter Views at the bottom and Users should not see the formulas.
    Example:
    Column Formula:
    FILTER (sales.sales USING products.product =’Electronics’)
    If I filter the above column, it shows something like this:
    FILTER (sales.sales USING products.product =’Electronics’) is Prompted.
    What is need to show in the filters is the Title of the column i.e. Electronics Sales.
    Thanks in advance.

    Check this
    How To Implement a Narrative View Similar To A Filter View In OBIEE 11G?
    Mark if helps.
    Thanks,

  • Query to find dependency of an oracle VIEW

    Hi,
    I'm using oracle 10g database.
    DB name is - ORCL
    ORCL DB consists two schemas - Schema1 and Schema2
    I have one Oracle view called VIEW1 in Schema1.
    I need to find whether Schema2 uses VIEW1 in any of the Tables,views or Programs owned by Schema2.
    Is there any query available to find this one?
    Regards,
    Karthik

    How about querying the dba_dependencies view?
    SQL> conn / as sysdba
    Connected.
    SQL> conn aman/aman
    Connected.
    SQL> create table t as select * from scott.dept;
    Table created.
    SQL> create view v1 as select * from t;
    View created.
    SQL> grant select on v1 to scott;
    Grant succeeded.
    SQL> conn scott/tiger
    Connected.
    SQL> create view v_dependant as select * from aman.v1;
    View created.
    SQL> conn / as sysdba
    Connected.
    SQL> desc dba_dependencies
    Name                                      Null?    Type
    OWNER                                     NOT NULL VARCHAR2(30)
    NAME                                      NOT NULL VARCHAR2(30)
    TYPE                                               VARCHAR2(18)
    REFERENCED_OWNER                                   VARCHAR2(30)
    REFERENCED_NAME                                    VARCHAR2(64)
    REFERENCED_TYPE                                    VARCHAR2(18)
    REFERENCED_LINK_NAME                               VARCHAR2(128)
    DEPENDENCY_TYPE                                    VARCHAR2(4)
    SQL> select owner, name , type from dba_dependencies where name='V1' and owner='AMAN';
    OWNER                          NAME                           TYPE
    AMAN                           V1                             VIEW
    SQL> select owner, name , type, REFERENCED_OWNER, REFERENCED_NAME from dba_dependencies where name='V1' and owner='AMAN';
    OWNER                          NAME                           TYPE
    REFERENCED_OWNER
    REFERENCED_NAME
    AMAN                           V1                             VIEW
    AMAN
    THTH
    Aman....

  • Business components based on Oracle views

    I am trying to create business component objects in a master-detail relationship based on Oracle views rather than on the underlying tables. The wizard does not create associations or links since the views have no foreign keys. I created the associations and links myself, but I am unable to add them to the data model. I am using the beta v5.0, but I had the same problem in v3.23. Can anyone help?
    Thanx in advance
    null

    Here are the steps I just tried with JDevi 9i Beta:
    [list]
    [*]SQLPLUS SCOTT/TIGER
    [*]CREATE VIEW DEPT_VIEW AS SELECT * FROM DEPT;
    [*]CREATE VIEW EMP_VIEW AS SELECT * FROM EMP
    [*]On my workspace: Right-mouse / New / Empty Project
    [*]On my new project: Right-mouse / New Business Components...
    [*]Next, to the connection panel
    [*]Set the connection, and next
    [*]Pick a package name and next
    [*]Tick the [x] Views checkbox, and select EMP_VIEW and DEPT_VIEW
    [*]Uncheck the "View Objects and View Links" box, since we don't want these created automatically.
    [*]Click (Finish)
    [*]In navigator, select my "DeptView" entity and edit it (the view is called "DeptViewView").
    [*]Click on the "Attributes" tab
    [*]Select "Rowid" in the attribute list
    [*]Click the (Remove) button
    [*]Select the "Attribute Settings" tab, and select the "Deptno" attribute.
    [*]Check the [x] Primary Key checkbox for "Deptno"
    [*]Click (Ok).
    [*]Repeat steps above on "EmpView" entity to remove Rowid attribute and make "Empno" attribute the primary key. (NOTE: Since views don't have constraints, we couldn't detect the primary key constraint, so we default the ROWID to be the primary key in the wizard).
    [*]In navigator, select my "DeptView" entity, and right-mouse / New Association...
    [*]Using the wizard I create a association based on the "Deptno" attribute, and with a 1 to many cardinality.
    [*]I right-mouse on "DeptView" entity and select New Default View Object... to create the "DeptViewView" view object.
    [*]I right-mouse on "EmpView" entity and select New Default View Object... to create the "EmpViewView" view object.
    [*]I right-mouse on the DeptViewView view object and select New View Link...
    [*]I create a new view link between DeptViewView and EmpViewView
    [*]On the "Source Attributes" panel, I select the "Dept2Emp" association I created above, and click the ">" to shuttle it to the selected list.
    [*]Click next and notice that by selecting the association, it automatically picked the right attributes for both sides for the view link automatically.
    [*]click next, then (Finish)
    [*]I right-mouse on my package and select New Application Module...
    [*]On the datamodel panel, I see a tree view of "Available View Objects like this:
    + Project 3
    |
    +---[-] Package3
    |
    +---[SQL] DeptViewView
    | |
    | +--[SQL] EmpViewView via MyViewLink
    |
    +---[SQL] EmpViewView[*]I select DeptViewView in the available list and click ">" to shuttle it to the selected list in my data model
    [*]In the SELECTED list, I select the DeptViewView that I just added, to make it the current view in the selected list.
    [*]Back in the available list, I select the "EmpViewView via MyViewLink" and shuttled it to the selected list as a detail of the current view in the selected list.
    [*]I click finish
    [*]I right-mouse on my AppModule and select "Test..." to build and test my appmodule.
    [*]I click (Connect) on the tester start page
    [*]In the tester, I right mouse on "MyViewLink" and select "Show".
    [list]
    After these steps, I see data correctly.
    null

  • How to load oracle views data in essbase via sql interface

    <p>Could someone explain to me how to use Essbasesql-interface.</p><p>We have some oracle views for data and a certain number of DLRsfor otl building and data loading.</p><p>I know that there is an INCBUILDDIM syntax for sql source inwich you just specify the dlr and the oracle user-password toconnect.</p><p>How does it find the appropriate view to fill the dlr? How doesit work?</p><p> </p><p>Thanks in advance</p><p>eakp</p>

    Hi,
    How are you loading, if you are loading from a SQL table you would just load a null into the database
    e.g. loading data into sample basic
    Measures,Period,Scenario,Market,Product,Data
    Sales,Jan,Actual,Florida,100-10,10
    Cogs,Jan,Actual,Florida,100-10,+NULL+
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Sending a parameter to a Oracle view

    I want to create a oracle view with a variable and i want to change the value of variable according to my needs.
    Can i Do This.
    Query of view is a complex one assume as like this
    SELECT ........ FROM
         ( SELECT ........ FROM .............
             WHERE  tempDate=TO_DATE('2007/2/23', 'YYYY/MM/DD')
      WHERE ...............................Date should be a variable.
    Variable should in a sub query.
    Pls Help as soon as possible

    Try using a PreparedStatement and insert a parameter placeholder ("?") instead of "TO_DATE('2007/2/23', 'YYYY/MM/DD')".
    Pls Help as soon as possibleUsually I don't, good you told me ...

  • Creating Waterfall Chart view on OBIEE Answers

    Hello guys
    Is it possible to create waterfall Chart view on OBIEE answers?
    The idea is to show the differences in number between bars at the chart.
    Please let me know how it can be done
    Thanks in advance
    Devarasu.R

    Waterfall chart is not yet defined in OBIEE, But internal Corda Pop Chart engine allows you to develop new chart types. Look for Cords Pop Chart documentation in OracleBI\corda50\docs. But you need to do a feasibility study on what you get for how much work?
    - Madan

Maybe you are looking for

  • Report query with bind variable

    Trying to create a report query for xsl-fo print. For output format I pick "derive from item" then pick the item name from the list, on the next screen, I paste the query with the bind variable. on the next step test query, I always get "data not fou

  • PDF File not opening in browser for sharepoint 2010

    Recently we have moved our web application from one server to another in Sharepoint 2010. Back up of entire web application was taken and restored in another server. But in the new server , the PDF files in the document library is not getting opened

  • Please help "pull videos from Video library & play in my app"

    Hi , Q1:I put videos in my ipad video library using itunes.I have it so the videos are pulled from the video library, once I click on the video it opens just not in my app  but in the video library. How do I get the videos to play on my app? not open

  • My mac book pro wont connect via airplay

    My mac book pro will not connect to apple tv, the error is -6722... any ideas

  • Duplex printing for last 2 pages only

    A customer has an invoice report where they want the terms and conditions (which are 2 pages) duplexed while the report itself is not printed that way.  Any ideas if this can be done using native SSRS? Sherry