Creating filtered view on the physical layer ussing session variable USER

Hi:
I´m creating a view on the physical layer, the view needs to be created dynamically. So depending on the user (using the session variable USER) the view is created with the data a particular user is able to see.
Fisrt I imported the table and changed it´s properties to be created through a "Select Statement" so i don´t needed to change the mapping on the bussiness model layer.
The consistency check was OK but i´m not able to see data in answers, even using the Administrator user. Have anyone tried to do this? Here is my query.
Thanks
A Garcia
Select * from D_ESTRUCTURA_RH2 where Region_ID
IN
select distinct a.REGION_ID from APP_INDPERSONAL_DM.D_ESTRUCTURA_RH2 a
inner join (
select distinct b.REGION_ID from APP_INDPERSONAL_DM.D_ESTRUCTURA_RH2 b
where exists (select 1 from APP_INDPERSONAL_DM.Autorizacion a, usuarios c
where a.app_id = 1
and a.usuario_id = c.Usuario_Id
and UPPER(c.Nombre_Usuario)=UPPER(':USER')
and a.miembro_id = 'REGION_ID'
and a.operador = '='
and (b.REGION_ID = (case when valor = 'Todo' then 0 else valor end) or valor='Todo'))
) seguridad
on
a. REGION_ID = seguridad.REGION_ID
)

whay not use the same filter in the content tab of the logical table source?
check the physical sql sent to databse using web-admin-manage sessions-view log and see if there is any unexpected behavior. also run the same query in db and see iff you get the results in databse itself.

Similar Messages

  • Unable to view data in Physical layer of RPD

    I have OBIEE installed on my local machine using Oracle 10g as the database installed on a remote machine. I am able to create the DSN and test the connection pool on my local machine.
    The Call interface is OCI 10g in the connection pool. I am able to import tables into the database in the Physical layer of the repository but when I try to VIEW Data in the physical layer, it throws me an error stating,
    ORA-12514: TNS:listener does not currently know of service requested in connect descriptor at OCI call OCILogon.
    nQsError: 17014 Could not connect to Oracle Database.
    I have oracle 10g client installed on my local machine. I am able to view the tables and the data from SQL PLus. In OBIEE i am able to import tables but cannot view data.
    Any suggestions on what could be causing this?

    Sounds like one of my common issues. After you do the import, go back and check the connection pool. What I typically run into is that it has switched to the OCI connection rather than the ODBC connection used for the import, but it is still using the name of the ODBC DSN that was used for the import. Change it to the TNS name or the host:port/service and try again.
    Rgds/Mark M

  • Issue while writing a query in table type select.in the physical layer

    Hi gurus,
    I am actually trying to create a table using select in the physical layer..... i acutally am not aware what it is called but its when i click a table in the physical layer i have an option table type and i chose select which allows me type my query..the query is
    Select
    coln name(which is a lengthly list of conversion) AS column_name
    From Table name.
    when i view the data rom the physical layer everthing seems to be fine. but when i try to view the data in the frnt end it gives me an error maximum length is too long than 128....
    i am aware of this issue the sql server allows only column of length 128..but none of my column length is greater than 128..
    Could you please help me in this
    Many thanks in advance

    hi veeravalli ,
    Thanks for the reply....actually the corresponding reports for this have already been prepared...i created a view in the backend with the same select which i wrote before and and tried calling the view from her.. i have viewed the data and all is perfect...but when i try viewing it from the front end it error saying invaild object name select * from databasename.dbo.View_name...but i have checked the view exists in the backend...
    Thanks in advance....

  • How to see the tables which are in the physical layer of SampleAppLite rpd

    Hi Everyone,
    I am new to OBIEE and I installed OBI Apps with Oracle 11g in my laptop. I tried to create reports using the OracleBIAnalyticsApps rpd. How can I know from which schema the tables are coming in the physical layer of the repository so that I can create a connection pool to the database. I got the default SampleAppLite rpd when I install the OBIEE but I am unable to see those tables in the database schema which are used in the SampleAppLite physical layer. Can anyone tell me how can I see the tables in the database which I see in the rpd. Actually my question may be wrong as I am new to this field, so please let me know if this is a wrong question. As I unable to express my question correctly. Thanks.

    For the OracleBIAnalyticsApps rpd - the tables are under "Catalog" then "dbo" in database "Oracle Data Warehouse" in the physical layer. The RPD comes out of the box with the required connection pools - you dont need to create any. The connection pools "Oracle Data Warehouse Repository Initblocks Connection Pool" and "Oracle Data Warehouse Connection Pool" in "Oracle Data Warehouse" read the data from the business analytics warehouse that you created in a schema name of your choosing with the DAC. All you need to do is edit the user name and password and the data source name with a connect string - which is the local net service name to your database for default call interface OCI 10g/11g assuming you used an Oracle database for your warehouse. One way to test the connection pool is to right click any table/alias then "Update Row Count".
    BTW Using the Admin Tool open the OracleBIAnalyticsApps rpd then do "Tools" then "Utilities" then "Repository Documentation" then "Execute". This will create a spreadsheet showing you all the mappings from the presentation to business to physical layers.

  • Can we create a multiple joins in physical layer

    Hi,
    I have a requirement that i want to create a multiple joins in physical layer.
    Ex:
    Table a (custid,name,sal) and tableb (custid,ced_id, loc)
    i had requirement that cust id is joining with custid and cedid from table b
    i.e a.custid=b.custid AND
    a.custid=b.ced_id (Note data types are same across all the joins here).
    When am trying to handle it form physical joins, getting an issue that The column'cusid' is used twice.
    Regards,
    Malli

    As Daan said use complex join in physical layer that should work. Just in case its not working then go with 1 join condition physical layer and create foreign key join in BMM layer, this would override join in physical layer.

  • No row count in the Physical layer of the Administration Tool

    Hi,
    While creating physical layer, I imported tables and set connection pool.
    After this, to verify connectivity, clicked Tools > Update All Row Counts.
    Now according to Oracle online guide,
    "when update all row counts completes, verify that the row counts are displayed in the Physical layer of the Administration Tool"
    I do not see the row counts in the Physical layer of the Administration Tool. No error message gets displayed either.
    Am I doing something wrong?
    I am new to OBIEE.
    Thanks in Advance & Regards,
    Deeba

    Hi Hammett81 ,
    I think, I have given configured connection pool correct. (following Oracle guidelines: 'In the Connection Pool dialog box, on the General tab, verify that the call interface is set to Default (OCI 10g) and change the data source name to the appropriate tnsnames.ora entry ( ORCL in this example). Please note that this is the TNS service name, not the ODBC DSN. ' )
    I tried to give ODBC DSN (SH) as call interface, which resulted in an Error dialogue, implying, previous configuration was correct.
    So, I reverted back.
    Regards,
    Deeba

  • Not able to Import SH Table in the Physical Layer

    Hi,
    I am not been able to import Tables from sh schema in the physical layer of OBIEE 11g and got error message.
    "Failed to Perform Requested action". Please tell me how to create sh RPD now.
    Appreciate all the help in advance.
    Thanks
    Ashish

    I am sharing the screen shot of the error message
    https://app.box.com/s/afwnwjyb8c4h65uhao0w
    another thing that i found that their are duplicate column shown. Screen shot of that below.
    https://app.box.com/s/aoux5lurxso55qcofz7k
    and i am importing Table,key & Foreign Key. Please tell me how is this possible and how to remove this.

  • Duplicate table  and  Alias table in the physical layer

    Hi,
    I want a clear information regarding the duplicate tables in the physical layer of the rpd.
    I mean what is the purpose of the duplicate tables in the physical layer.........
    thanks,
    chinna.

    what do you mean by duplicate of physical table? is it Alias table?
    if then,
    -> aliases are created to break the circular joins (which are not supported by obiee)
    -> and, as per apps standards no operation can be done on base tables which are imported directly to physical layer. Only aliases are joined and will be used in BMM layer
    -> useful to re-use the table more than one time , best example: W_DAY_D in apps rpd
    Edited by: Kishore Guggilla on Sep 23, 2010 10:41 PM

  • Admin Tool Error When Viewing Data in Physical Layer nQSError: 43093

    I am trying to view the data in my Admin Tool in the Physical Layer, I am getting:
    [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred.
    [nQSError: 43093] An error occurred while processing the EXECUTE PHYSICAL statement.
    [nQSError: 17001] Oracle Error code: 904, message: ORA-00904: "STUDENT_NUMBER": invalid identifier at OCI call OCIStmtExecute.
    [nQSError: 17010] SQL statement preparation failed.
    I know why I am getting the ORA-00904 error (the data structure in the external database has changed the the column STUDENT_NUMBER does not exist). However, I am getting TNS Listener errors when trying to re-import the changed data structure (import -> through server). I have checked my ODBC connection and it seems that is not the issue. This functionality existed before (I did pull in the data structure, that is where my error is originating from). Is there something I am missing?
    Any insight is appreciated.
    Thank you,
    Kyle

    Hi,
    After an upgrade, these kind of issues can happen for several reasons as below
    1. Wrong OCI Call Interface. If ODBC 3.5 has been used an Interface in 10g, then the upgraded .rpd might still be using the same even when you have got a number of different options to choose from in 11g. To resolve issues of this type change the underlying database version in the physical layer of the .rpd. Once, you make this change you can see a variety of changes in the queries, performance etc for good.
    2. After you did a 'View Data' on the table, go through the NQQuery.log to see the query it is firing (Yes, you need to have log level set for this user though) and analyze it from the DB end. See, if you run the query in the DB it is fast, but if it is the Admin tool that hangs up with this query. In this case check the network speed, database settings, system DSN driver etc.
    Hope this helps.
    Thank you,
    Dhar

  • How to import tables to the physical layer of the Administration Tool.

    Friends could help me with this issue. I'm just starting in OBIEE
    How to connect a ORACLE database 11g R2 installed on Linux with OBIEE administration tool that I have installed Windows Server 2003 to create a subject area.
    Basically I want to import the tables from the database on Linux to the physical layer of the administration tool that is installed on Windows Server 2003.
    I can tell how to make this connection step by step.
    Beforehand thanks for the support.

    hi,
    How to connect a ORACLE database 11g R2 installed on Linux with OBIEE administration tool that I have installed Windows Server 2003 to create a subject area.create DSN by taking correct ODBC driver for 11g R2 in windows 2003 with linux DB credentials
    thanks,
    Saichand.V

  • Defining Keys/Joins in the physical layer

    When the keys and the join conditions are defined manually using a table's Properties dialog box in the Physical layer, do these keys or joins also get defined in the database automatically? My understanding is that it does not get created in the database. So what I am trying to understand is - once the joins are defined in the RPD physical layer, do I have to then define the indexes/constraints in the database as well?
    Thanks,

    803309 wrote:
    When the keys and the join conditions are defined manually using a table's Properties dialog box in the Physical layer, do these keys or joins also get defined in the database automatically? No
    My understanding is that it does not get created in the database. So what I am trying to understand is - once the joins are defined in the RPD physical layer, do I have to then define the indexes/constraints in the database as well?
    Not required. Indexes can be created in DB on joining col for performance purpose only.
    Hope this helps
    Edited by: Deepak Gupta on Aug 15, 2011 10:07 AM

  • Can we create materialized view on the top of another materialized view.

    Hi ,
    can we create materialized view on the top of another materialized view.
    Thanks
    Naveen

    Welcome , Just remember is not good apporch to do that since performance when MV refresh
    Please mark this thread as answered .

  • Include or create a view in the database and use this view?

    Well, I need to get related data of the main table from another related tables, so one way to do that is to use the Include method in Entity Framework to get this related data.
    However, I am thinking in another option, create a view in the database and use this view in entity framework. In this way, I avoid the needed of the include, because I think that is expensive in resources. But I am no very sure about that.
    I would like to know if the use of views on entity framework is a good idea to improve the performace or is better to use the include.
    For example, if I use the include I have the advantage that I get only one the main record and all the related data I have in the navigation properties, so the info is more shorted.
    Which is the advanteges and disadvantages of both methods to get related data in entity framework?
    Thank so much.

    Hello ComptonAlvaro,
    >>I would like to know if the use of views on entity framework is a good idea to improve the performace or is better to use the include.
    If your view would use a Join syntax to query master-child relationship tables, it actually is similar with the Include() method which actually results a duplicate records from master table, you could check this
    link for detail description.
    >>Which is the advanteges and disadvantages of both methods to get related data in entity framework?
    One visible difference is that records from Views are not editable by default(if you want edit them, you could refer to this
    blog).
    In your case, my suggestion that you could use the lazying load which will load the matter table once and disable the trace if you only need to display data.
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Creating Materialized View with the Distinct key word

    Hi
    I need help to create Materialized View with the Distinct key word.
    my query is
    select distinct col1, col2 from t1;
    is there any alternate of DISTINCT because I can not refresh the MV as fast on demand if I am using it and Fast on Demand is a must for me.

    hi
    check out this link
    http://download-west.oracle.com/docs/cd/B12037_01/server.101/b10736/basicmv.htm#i1007299
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/intro.htm#sthref183
    hope this helps
    CHeers

  • Combining multiple databases into one in the physical layer

    I have several databases in the physical layer that I would like to combine into one database. How can I do this safely without interfering with the existing physical joins in the physical layer and the column mappings in the BMM layer ?
    Can you recommend the best procedures to follow in order to get this accomplished?
    Boniface Ntawutarama

    hi Boniface,
    I think so No,you cant combine all databases into single one.Actually why you want to do this?
    According to the requirement you select a database and concerned tables to build the repository,same way with other databases also you build RPD and establish joins in physical layer
    Lets wait for any more specific answers on this from experts.
    By,
    Kranthi.

Maybe you are looking for

  • First pkgbuild, verification please

    Hello! This is my first pkgbuild from scratch. I had read the standards but I want to be sure it's alright. Thank. # Author: Shaika-Dzari <shaikadzari at gmail _dot_ com> pkgname=animeshell pkgver=1.0 pkgrel=1 pkgdesc="Collection manager for your ani

  • Closing an applet window

    I created a login button that when clicked a jframe pops up prompting for username and password. I created a "cancel" button in that window so if it is clicked the window is suppossed to close. I can't get it to work. I tried System.exit(0);

  • Help? -- Adobe InDesign 2.0

    Installed Adobe InDesign 2.0 then attempted to install updates. Was able to download three updates, but I can't get them to install. I'm using a MAC OS X operating system. Anybody have any ideas?

  • A Restore problem with my Q10

    Hi I got a problem with my Q10, I made full back up for the phone by black berry link and I make Security wipe  then I tried to restore the back up files but when it starts to restore it stops and I tried how many times, and nothing happens, and I mo

  • How Abstract class differ, When we call class to be Abstract data type?

    We say as Classes as a realization of Abstract data types, then why should we declare that to be abstract ? Hope, the key word Abstract in both ADT and abstract classname mean the same.!!!!