Oracle Analytics Cloud and Server

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

row wise initialization for session variables not working in obiee 11.1.1.7.0

Received Response
207
Views
15
Comments
2»

Answers

  • B Prakash
    B Prakash Rank 2 - Community Beginner

    SET VARIABLE QUERY_SRC_CD='Report',SAW_DASHBOARD='/shared/Real Time Analysis/_portal/Real Time Analysis',SAW_DASHBOARD_PG='Planning',SAW_SRC_PATH='/shared/Real Time Analysis/vibatest/test_session';SELECT

      0 s_0,

      "cbssybpocpr"."Dim Branch"."Region Code" s_1,

      "cbssybpocpr"."Dim Branch"."Region Name" s_2

    FROM "cbssybpocpr"

    WHERE

    ("Dim Branch"."Region Code" = VALUEOF(NQ_SESSION."V_ZONE_CODE"))

    ORDER BY 1, 3 ASC NULLS LAST, 2 ASC NULLS LAST

    FETCH FIRST 100000001 ROWS ONLY

  • mac2
    mac2 Rank 4 - Community Specialist

    Can you give us the physical SQL? What you just posted is actually the logical SQL.

  • B Prakash
    B Prakash Rank 2 - Community Beginner

    Sir,

    I 'm not able to generate physical sql even after enabling LOG_LEVEL to 5.

  • B Prakash
    B Prakash Rank 2 - Community Beginner

    Hi,

    Kindly find below the physical sql:

    -------------------- Sending query to database

    named MIGRATION (id: <<2061598>>), connection pool named MIGRATION, logical request hash 6d4c347a, physical request hash d2e3e7ae: [[

    WITH

    SAWITH0 AS (select distinct T275032.PERIOD as c1,

         cast(T275084.BRANCH_CODE as  INTEGER  ) as c2,

         cast(T275084.REGION_CODE as  INTEGER  ) as c3,

         T275084.REGION_NAME as c4,

         cast(T275084.TERRITORY_CODE as  INTEGER  ) as c5

    from

         DIM_BRANCH T275084,

         BI_DEPADV T275032

    where  ( T275032.BRANCH_CODE = T275084.BRANCH_CODE and T275032.PERIOD = 20161222 and cast(T275084.REGION_CODE as  INTEGER

    ) = 805 ) )

    select distinct 0 as c1,

         D1.c1 as c2,

         D1.c2 as c3,

         D1.c3 as c4,

         D1.c4 as c5,

         D1.c5 as c6

    from

         SAWITH0 D1

    order by c5, c4, c6

    Regards,

    Bhuvan R

  • asim cholas
    asim cholas Rank 6 - Analytics Lead

    But where you are using the logged in user details in query to find the appropriate group?