RE: opaque view in RPD

Hi Experts,
why we have to create opaque view in RPD  instead of creating in Physical layer we can create in DB and import it to the physical layer right.
If we consider the performance which one is efficient in both view DB or RPD
Regards,

If you create a Opaque view OBIEE will execute it as a Subquery, otherwise if you create a view on the DB you won't have a Subselect, that's the main difference.
I would only go for Opaque views if there's no other solution as you can have serious performance issues.
Based on exp I would go for DB view, it performs better and the maintenance easier.

Similar Messages

  • Passing Session variable of DATE data type to opaque view filter

    Hi Everyone,
    Can you guys please help me in passing session variable of DATE data type in RPD's physical layer 'opaque view' filter for Oracle database
    I tried following syntax, syntax wise I didn't got getting any error, but at the same time this opaque view is not fetching any records as well. my session variable is "END_DATE" and its value is 1998/12/31:00:00:00(as shown in RPD session windows, datatype is DATETIME)
    SELECT AMOUNT_SOLD, CHANNEL_ID, CUST_ID, PROD_ID, PROMO_ID, QUANTITY_SOLD, TIME_ID FROM SH.SALES
    WHERE TIME_ID =TO_DATE( 'VALUEOF(NQ_SESSION.END_DATE)','MM/DD/YYYY')
    SELECT AMOUNT_SOLD, CHANNEL_ID, CUST_ID, PROD_ID, PROMO_ID, QUANTITY_SOLD, TIME_ID FROM SH.SALES
    WHERE TIME_ID = TO_DATE( 'VALUEOF(NQ_SESSION."END_DATE")','MM/DD/YYYY')
    SELECT AMOUNT_SOLD, CHANNEL_ID, CUST_ID, PROD_ID, PROMO_ID, QUANTITY_SOLD, TIME_ID FROM SH.SALES
    WHERE TRUNC(TIME_ID) = TO_DATE( 'VALUEOF(NQ_SESSION."END_DATE")','MM/DD/YYYY')
    In past, I was able to pass a session variable into a opaque view filter using DATEOF function, but that was in DB2.
    I appreciate your time and help

    Finally, I got right format. here it is
    to_date(substr('valueof(NQ_SESSION.END_DATE)',1,10), 'yyyy-mm-dd')
    and here is the source from where I got this information
    Using OBIEE Session Variables in Select Tables in the Physical Layer

  • Need Help on Opaque Views

    Hi ,
    I am using 10g Version.
    In my RPD there are 5 Opaque Views. The report is very slow. How can i overcome this.
    If i create Views in database for this Opaque Views is the perfomance will increase? My clinet is not Accepting the Materialized View.
    Please help me on this.
    Thanks

    Hi,
    Opaque Views can improve the performance but it depends on which scenario you make use of them.
    An opaque view is in the physical layer a physical table that consists of a Select statement .
    In the repository, opaque views appear as tables in the physical layer but the view does not actually exist.
    Opaque views can be used without deploying them but the Oracle BI Server has to generate a more complex query when an opaque view is encountered.
    Databases such as XLS and nonrelational database do not support opaque views and, therefore, cannot run the view deployment utility.
    To verify opaque views are supported by a database, make sure that the CREATE_VIEW_SUPPORTED SQL feature is selected in the Database dialog box, in the Features tab
    Also refer the below links for better understanding:
    http://docs.oracle.com/cd/E10415_01/doc/bi.1013/b31770.pdf
    http://gerardnico.com/wiki/dat/obiee/opaque_view
    Regards
    MuRam

  • Abnormal behavior of Opaque view

    Hello Experts,
    I have a requirement in OBIEE 10g to create an opaque view.
    I have created an opaque view combining 2 facts and 1 dimension table(Included only 1 column in the view) in the physical layer of the RPD with appropriate foreign key joins.
    Copied the table to BMM layer, created all necessary complex joins and set the logical levels for the dimensions.
    We also have a Inner join with a dimension. Copied the logical table to presentation layer.
    Now, I have created a adhoc report by taking columns from the newly created view to test whether the measure values are coming up or not.
    When validated the results against the original fact table the amounts were not matching.(Limited the data using fiscal year)
    The report which is created from the view is showing less amounts comparitively.
    I have tried checking the session log queries of both the view based report and the original fact table yielded report but I didnt see any difference in the session logs.
    All the joins in both the queries are one and the same.
    While adding another 4 columns from the same view the results are coming good in the pivot table.(Added using trial and error method, these 4 columns were kept in excluded section as these are unused in the report)
    Even if I remove one unused column from the report, the measure values are changing.+Another important thing is I havent used any aggregations in the BMM layer for the measures.+
    When aggregation is set to Sum in the BMM layer the measure values are getting doubled.(So hasnt set any aggregation in the rpd)
    Used the logic IFNULL(Column,0) for all the measures in the rpd. And has set the aggregation to Sum in the pivot table.
    Can anyone suggest possible workaround for this issue. This newly created view should show same results when compared to the original report.
    Any suggestions are highly appreciated.
    Thanks,
    Obul

    Hi Dpka,
    When I set the aggregation rule to sum in BMM layer the measure values are getting doubled.
    So I preferred to bypass the aggregation rule in BMM layer and has set it in the pivot table as of now. Does my approach affects anything or wats the exact difference in these two approaches?
    Also do you have any clue on how to achieve correct results in the report(opaque view report) I was talking about in my first post?
    Thanks,
    Obul
    Edited by: obul on Jan 10, 2012 4:26 AM

  • Error while Deploying Opaque view

    Hi,
    I have created an opaque view by selecting the New Physical table...option by right clicking on the database schema. I have written a statement by selecting the Table type as SELECT in the Physical Table dialog box as follows,
    CREATE VIEW <view name> AS <select statement> where my select statement is like this "select * from emp".
    When i'm trying to deploy the view i'm getting the following error:-
    Details: [nQSError: 17001] Oracle Error code: 928, message: ORA-00928: missing SELECT keyword
    at OCI call OCIStmtExecute.
    [nQSError: 17011] SQL statement execution failed.
    Can i know where i'm doing the mistake. Your help is greatly appreciated.
    Thanks,
    Kumar.

    Hi,
    The problem caused because i used the syntax,
    CREATE VIEW <view name> AS <select statement>
    but we need to use only the select statement in the initialization block.

  • Unable to import the views in RPD.

    Hi,
    Case1:Unable to import the views in OBIEE 11g by using "Oracle inOraDb 11g_Home1" drivers but able to import the Tables in RPD.
    Case 2:Unable to import the Table in OBIEE 11g by using ."Data Direct 6.0 Oracle wire protocol" drivers but able to import the Views in RPD.
    My requirement is need to import some views and tables in RPD.How to achive this.kindly let me know.

    Hi,
    I have tested with SH Schema.
    I have one 'View' called profit in sh schema
    http://i1159.photobucket.com/albums/p629/bose-obiee/shschema.jpg
    The schema in import type without 'Views' Option it is not showing
    http://i1159.photobucket.com/albums/p629/bose-obiee/withoutviews.jpg
    clicked Back and selected 'Views' Option and checked under sh schema. am able to see the 'Profit Table.
    http://i1159.photobucket.com/albums/p629/bose-obiee/withviews.jpg
    selected what are all the table i need to import from sh schema with Profit view and clicked the single arrow symbol to move sh schema from 'data source view' to 'repository view' and clicked 'Finish'
    It has imported all the tables and view into the rpd from SH Schema.
    http://i1159.photobucket.com/albums/p629/bose-obiee/View.jpg
    Regards,
    Bose

  • Creating an Opaque view for generating the Action Link URL in OBIEE EBS int

    Do we have to Creating an Opaque view for generating the Action Link URL in OBIEE Oracle E-Business Suite integration if we are not using BI Applications(DAC). We built our Repository on Materialized views we were using with Discoverer so I'm not sure if we have to do the part that creates an Opaque view in our integration of EBS 11i with OBIEE.
    Thanks in advance.
    Leo

    Hi Leo,
    This is an example from an standard Oracle repository:
    select header_id , line_id, fnd_run_function.get_run_function_url(
    CAST(fnd_function.get_function_id('ISC_ORDINF_DETAILS_PMV') AS NUMBER),
    CAST( 'VALUEOF(NQ_SESSION.RESP_APPL_ID)' AS NUMBER),
    CAST( 'VALUEOF(NQ_SESSION.RESP_ID)' AS NUMBER),
    CAST( 'VALUEOF(NQ_SESSION.SEC_GROUP_ID)' AS NUMBER),
    'HeaderId=' || header_id ||'&pFunctionName=ISC_ORDINF_DETAILS_PMV&pMode=NO&pageFunctionName=ISC_ORDINF_DETAILS_PMV',
    null ) LINK
    FROM isc_book_sum2_f
    They use it in an opaque view, so you can reference session variables for login based on your responsibility.
    Good Luck,
    Daan Bakboord
    http://www.obi-forumlive.nl/

  • Create opaque view in OBIEE with multiple tables

    Hi,
    I need some help with the opaque view since i have never created it in past. I want to create an opaque view which fetches data from multiple tables. Is it possible to do that ? Or is there any other alternate option available in OBIEE ? I read the following blog and other similar blogs on opaque views but could not find option to use it for query with multiple tables:
    Oracle Business Intelligence: Creating Opaque View in Physical Layer in OBIEE 10g
    Also can you please advice how to join two tables from different databases in OBIEE ?
    Kindly advice.
    Regards,
    Andy

    Hi Andy,
    As per my knowledge you can create Opaque View on one table at a time.Joining two tables from different databases yes we can create a report from multiple data sources.Check this
    Rittman Mead Consulting &amp;raquo; Blog Archive &amp;raquo; Reporting Against Multiple Datasources in OBIEE
    Mark if helps.
    Thanks,

  • Creating Opaque views in 10g

    Hi team
    I wanted to know that , Is it possible to create opaque view for a table( In Physical layer ) without necessarily importing the table into the physical layer for which view has to be created .
    Thanks

    Hi Rohit
    Yes, sure it's possible. An opaque view is just a physical source based on a select statement. You can create this in the physical layer and add the columns manually.
    Paul

  • About Opaque view

    When do we go for opaque view. IN what type of case we got for it.What it's adv and dia-adv?

    An opaque view is in the physical layer a physical table that consists of a Select statement .
    In the repository, opaque views appear as tables in the physical layer but the view does not actually exist.
    How to Create Deploy Views?
    You deploy an opaque view in the physical database using the Deploy View(s) utility.
    After deploying an opaque view, it is called a deployed view. Opaque views can be used without deploying them but the Oracle BI Server has to generate a more complex query when an opaque view is encountered.
    Databases such as XLS and nonrelational database do not support opaque views and, therefore, cannot run the view deployment utility.
    To verify opaque views are supported by a database, make sure that the CREATE_VIEW_SUPPORTED SQL feature is selected in the Database dialog box, in the Features tab.
    Source: http://gerardnico.com/wiki/dat/obiee/opaque_view
    Please awards points if this helps.
    Thanks,
    -Amith

  • Table - Incorrect record count

    Hi,
    I have created an opaque view in rpd containing a select statement. I have updated the row count and there are 40823 records. When I create a table in answers, only 695 records are returned.
    Can anyone help?
    Thanks

    Curious to know why you are having duplicates in opaque view.Use distinct there itself.
    for some reason if you want duplicates then use some column or sequence that give each record a unique identity.Use the same sequence or column in report also.
    There is no way that i know to avoid distinct in OBIEE query apart from using direct database request .
    Regards,
    Sandeeep

  • Can we import any Materialized views (MV'S) in OBIEE 10g

    Hi guys,
    Could you please tell me is there any chance to import any Materialized views in OBIEE ?
    I am using obiee 10g RPD.or how to create MV'S In OBIEE.?
    What is use of MV in obiee?
    Pls reply to this .

    Hi,
    Materialized view:Aggregate table are called as Materialized view/opaque View
    Steps to create Materialized view/opaque View
    Physical layer itself by creating view.
    Right click on the your RPD physical table -> Select Properties -> from the properties windows choose 'Select' as Table type -> here you can write the SQL query.
    Note:Make Sure 'Features' tab and from the available option select 'CREATE_VIEW_SUPPORTED' is checked or not. If it is not checked then check the option.
    http://gerardnico.com/wiki/database/oracle/materialized_view
    http://gerardnico.com/wiki/dat/obiee/opaque_view
    Thanks
    Deva

  • Complex Join in RPD with Subquery

    Hi Experts,
    We have a complex requirement in our RPD Development which needs to use a subquery in the complex join in Physical layer. Here are the tables:
    Fact A
    DIM B
    Join is A.case_no = B.case_no
       and ( a.active_date between b.start_date and b.end_date or
                 (a.active_date < b.start_date and
                  b.start_date = (select min(b2.start_date)
                                              from DIM B2
                                             where b.case_no = b2.case_no
                                             group by b2.case_no
    Is there a way other than creating opaque view or making ETL changes to having the min(start_date) as part of the table ?
    Appreciate your inputs and responses.
    Thanks
    VK

    you got 2 tables or 3?
    I see 3 tables A, B and B2
    you need to join B with B2 time being just ignore min value since its equi join you get matching only
    and then B with A
    in bmm map B2 to B

  • 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

  • How to make new RPD online

    Hi All,
    Please tell me how to make an rpd online.
    In my development environment, there is already one RPD online.
    Now I am creating another RPD and want to make it online and create a answers report based on my RPD.
    Please tell me hw to replce existing online rpd with my newly created rpd.
    I would like to know the steps..
    Environment details in my development are as below;
    I have BI server on separate server machine. The current BI server is pointing to an RPD pointing to oracle EBS datasource
    On my own laptop I have BI Admin tool installed. I am creating another rpd based on planning database (Essbase DB). I want to replace current online rpd (pointing to EBS) with my new Rpd (pointing to Essbase DB). and then create a report on Essbase datasource.
    Thanks and Regards
    Santosh

    Hi Santhosh,
    1. Intially, stop your services -> Oracle bi server, Oracle bi presentation server.
    2. Open BI Administration tool -> File -> Create new rpd -> give some name say 'test' with no physical, bmm, pres. layers.
    3. Niow - Open C:\oraclebi\server\repository ----- Here you can view your rpd (to confirm)
    4. Now - Open C:\Oraclebi\server\config ---- Here you can view 3 files
    5. Right click on Nqs Config file and open it.
    6. You will find a section called [Repository] under which by default it has Star     = samplesales.rpd, DEFAULT;
    7. Now, Comment the above one by adding '#' symbol in front of it.
    8. Within the same section write the following Star=test.rpd,DEFAULT; Save the Nqs File.
    9. Now - open C:\oraclebidata\web\catalog and create a new folder 'test' - this is catalog folder where your reports gets stored.
    10. Open C:\oraclebidata\web\config --- Open Instanceconfig file.
    By Default you can view that catalog path --- pointing to Samplesales
    <CatalogPath>C:/OracleBIData/web/catalog/samplesales</CatalogPath>
    Change it to: <CatalogPath>C:/OracleBIData/web/catalog/test</CatalogPath>
    11. Save instance config file.
    12. Restart your services - oracle bi, oracle bi presntation server and now you can also open rpd in online or offline mode (i.e. your rpd 'test')
    Thank you....

Maybe you are looking for

  • A strange Java related error occured when I tried to install a software

    When I tried to install Maple 12 on my PC, I got a Java-related error as follow: java.lang.NoClassDefFoundError: Could not initialize class javax.swing.UIManager      at javax.swing.JPanel.updateUI(Unknown Source)      at javax.swing.JPanel.<init>(Un

  • PC Suite 6.86.9.0 ate 2.2GB of PC memory

    Just installed new version of PC Suite (XP SP2) - everythign worked fine until I used the XP facility to switch to a different users (leaving the first user logged in). When I did this, the PC then started a mega disc thrash and became unusable. I le

  • Flash Player won't install on firefox

    Win 7 Home Premium 64 Firefox When I try to install Flash using a plug in pop up on firefox, I get this  error message: C:\Users\Owner\AppData\Loca\Temp|FP_PL_PFS_INSTALLER-4.exe The  specified procedure could not be found When I click on manual inst

  • Temporarily Disable Signatures in Mail App?

    In the Mail app, I have only one account, bhabecker. I have a bazillion signatures that randomly rotate through. I have a Christmas set, and a rest-of-the-year set. Previously (and I don't know when this stopped being the case), I would delete all th

  • How to get PMT Value in oracle ?

    Hi All, I need to calculate PMT Value, There is Excel function for PMT ==> PMT(rate,nPer,PV, (FV),(TYPE)) i have to calculate it using pl/sql. Any body can help how to get PMT VAlue in PL/SQL? Thanks for your help. Regards, Iwanto