Substring instr issue in obiee

Hi,
I want to use the INSTR function in OBIEE
POSITION function found in the forum
INSTR function takes four values:
INSTR (string1, string2, number, number)
Eg IP address
111.222.333.444
The desired result
SUBSTR (IP_ADD, 1, INSTR (IP_ADD, '.', 1,3) -1)
111.222.333
POSITION function, how should I use?
Thanks,
Mino

1st example '0.0.0.0' will def be a problem here. Unfortunately, I don't think any other OBIEE string function could support this.
I was assuming for min 2 numbers like 00.00.00.00. Do you have any case like the first one in your table ?
=========
As I said, you can't use POSITION function here..Just do help for String Function in RPD)
Position
Returns the numerical position of the character_expression1 in a character expression. If the character_expression1 is not found, the function returns 0.
Syntax:
POSITION(character_expression1 IN character_expression2)
where:
character_expression1
Any expression that evaluates to a character string. Used to search in the second string.
character_expression2
Any expression that evaluates to a character string.
So, these are the 2 expression, In your case its '.' & IP_ADDR.
=========
Hope its helpful

Similar Messages

  • Urgent - INSTR() Functions in OBIEE?

    Hi All,
    I just got some very good help from the DB experts on these forums about solving a problem with a table join that I had.
    But now I have this SQL query and I'm trying to figure out how to implement this in OBIEE:
    select *
    from TABLE1,TABLE2
    where instr(TABLE2.USER_ID,TABLE1.USER_ID) > 0
    My question is how do I implement this instr() function on OBIEE? I checked physical and business model mapping layers in the repository and it does not allow me to configure this type of join. Is it possible to configure this type of join function to be invoked automatically everytime a user runs a certain query in OBIEE (as if it was a natural join)?
    Any help would be greatly appreciated.
    Alan

    Hi,
    You can refer the below links,
    Substring instr issue in obiee
    extract a string from a string
    http://108obiee.blogspot.in/2009_10_01_archive.html
    Award points it is useful.
    Thanks,
    satya

  • Dynamic PL/SQL & substr, instr function

    I am having trouble with incorporating the SUBSTR and INSTR functions into my dynamic PL/SQL procedure using Oracle 8i.
    I have data that is packed into one column seperated by a delimiter (':')
    I need to seperate the data to use indicidual pieces.
    If I run my query in general -
    select substr(secondcol, 1, instr(secondcol, ':',1,1)-1) ONE,
    substr(secondcol,instr(secondcol, ':',1,1)+1,instr(secondcol, ':',1,1)-1) TWO,
    substr(secondcol,instr(secondcol, ':',1,2)+1,instr(secondcol, ':',1,1)-1) THREE,
    substr(secondcol,instr(secondcol, ':',1,3)+1,instr(secondcol, ':',1,1)-1) FOUR
    from temp_table where firstcol=100
    This works and gives me the right result.
    e.g
    DATA :
    Firstcol SECONDCOL
    100 1:2:3:4
    Result:
    ONE TWO THREE FOUR
    1 2 3 4
    However to make this generic if I use it in a function passing it a parameter which has ':' delimited data it does not work and gives me errors. All I want is to get the output as a string that looks like my query above so I can use it in my proc.
    create or replace function MYJUNK(TFieldNew IN CHAR)
    RETURN CHAR IS
    UpdateString Varchar2(100);
    BEGIN
    UpdateString := 'First=substr('||TFieldNew||', 1, instr('||TFieldNew||', '':'',1,1)-1) ONE, ';
    UpdateString := UpdateString || ' Second=substr('||TFieldNew||', instr('||TFieldNew||', '':'',1,2)+1, instr('||TFieldNew||', '':'',1,1)-1) TWO, ';
    UpdateString := UpdateString || ' third=substr('||TFieldNew||', instr('||TFieldNew||', '':'',1,3)+1, instr('||TFieldNew||', '':'',1,1)-1) THREE from temp_table';
    return UpdateString;
    END;
    The function compiles but gives me run time errors
    This is what I get -
    SQL> select myjunk('''1:2:3:4''') from dual;
    select myjunk('''1:2:3:4''') from dual
    ERROR at line 1:
    ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at "SGHDTA.MYJUNK", line 8
    ORA-06512: at line 1

    You are getting an error because updatestring is longer than the 100 characters you defined it as. Try using VARCHAR2(4000). Also, if you are trying to generate the sql statement, you need to get rid of first=, second= and third= when you build the string.
    This is what your function returns. I put in line breaks for clarity:
    First=substr('1:2:3:4', 1, instr('1:2:3:4', ':',1,1)-1) ONE,
    Second=substr('1:2:3:4', instr('1:2:3:4', ':',1,2)+1, instr('1:2:3:4',':',1,1)-1) TWO, 
    third=substr('1:2:3:4', instr('1:2:3:4', ':',1,3)+1,instr('1:2:3:4', ':',1,1)-1) THREE
    from temp_tableIf you are trying to actually parse the column, then you need something more like:
    create or replace procedure MYJUNK(TFieldNew IN VARCHAR2,out1 OUT VARCHAR2,
                                       out2 OUT VARCHAR2, out3 OUT VARCHAR2) is
    BEGIN
       out1 := SUBSTR(TFieldNew,1, INSTR(TFieldNew,':',1,1)-1);
       out2 := SUBSTR(TFieldNew, INSTR(TFieldNew,':',1,2)+1, INSTR(TFieldNew,':',1,1)-1);
       out3 := SUBSTR(, INSTR(TFieldNew,':',1,3)+1, INSTR(TFieldNew,':',1,1)-1);
    END;

  • Report Graph issue  in OBIEE 11.1.1.6

    Hi All,
    Reports with graphs which were working in OBIEE 11.1.1.3 and OBIEE 11.1.1.5 are not working in OBIEE 11.1.1.6.
    It displays only table views and in graph section it only displays prompt values without the graph.
    I have tried these reports from line to bar and bar to line but did not work..Only worked if i go for a pie chart.
    Most of the reports have failed bcoz of this issue in OBIEE 11.1.16?
    Did anyone face this prob?
    Is it a know bug?
    Thanks

    Hi 913804
    I am amazed you found the browser certification of OBIEE 11.1.1.6 I could not find it anywhere in the documentation nor from metalink personell.
    Regarding the graphs not showing, we found this to be an issue with IE and not with Firefox. First make sure you have followed the upgrade step listed in
    3.9.11.2 Updating Oracle Business Intelligence Catalogs from http://docs.oracle.com/cd/E23943_01/doc.1111/e16793/patch_set_installer.htm#PATCH250. Then the last resort was to recreate the graph component in each report from scratch. As you say pie charts are unaffected.
    Regards,
    Nick.

  • Physical query issued by Obiee when cache is on is different and slow

    When the same report runs in OBIEE 10g and cache is OFF it takes less then 1min to get results. If cache is turned ON physical query issued by Obiee is totally different and it takes 2h to get results. Has anyone experienced this with having cache on that some queries are performing poorly.
    Thanks,
    Tatjana

    We are using BI Apps Order Management and Fulfillment Analytics and all tables are cached anyway. Dimensions used are not that huge up to 40K rows. What should I check when it comes to DB query? As I said is different than one generated when cache is disabled although both have the almost the explain plan.

  • Substr / Instr or Subquery

    Hi All,
    I have a requirement for which I am looking for solution, kindly do the needful.
    CREATE TABLE CO_VENDOR_COMMODITY
    (VENDOR_CODE VARCHAR2(240),
    COMMODITY_CODE NUMBER);
    INSERT INTO CO_VENDOR_COMMODITY VALUES ('25',1);
    INSERT INTO CO_VENDOR_COMMODITY VALUES ('25',2);
    INSERT INTO CO_VENDOR_COMMODITY VALUES ('25',3);
    INSERT INTO CO_VENDOR_COMMODITY VALUES ('25',4);
    INSERT INTO CO_VENDOR_COMMODITY VALUES ('20',1);
    INSERT INTO CO_VENDOR_COMMODITY VALUES ('20',2);
    INSERT INTO CO_VENDOR_COMMODITY VALUES ('20',3);
    INSERT INTO CO_VENDOR_COMMODITY VALUES ('20',4);
    INSERT INTO CO_VENDOR_COMMODITY VALUES ('20',5);
    INSERT INTO CO_VENDOR_COMMODITY VALUES ('30',21);
    INSERT INTO CO_VENDOR_COMMODITY VALUES ('30',22);
    INSERT INTO CO_VENDOR_COMMODITY VALUES ('30',23);
    INSERT INTO CO_VENDOR_COMMODITY VALUES ('30',24);
    INSERT INTO CO_VENDOR_COMMODITY VALUES ('30',25);
    INSERT INTO CO_VENDOR_COMMODITY VALUES ('40',15);
    INSERT INTO CO_VENDOR_COMMODITY VALUES ('40',16);
    INSERT INTO CO_VENDOR_COMMODITY VALUES ('40',17);
    INSERT INTO CO_VENDOR_COMMODITY VALUES ('40',18);
    INSERT INTO CO_VENDOR_COMMODITY VALUES ('35',15);
    INSERT INTO CO_VENDOR_COMMODITY VALUES ('35',16);
    INSERT INTO CO_VENDOR_COMMODITY VALUES ('35',17);
    CREATE OR REPLACE VIEW OV_VENDOR AS
    select
    VENDOR_CODE,
    rtrim (xmlagg (xmlelement (e,COMMODITY_CODE || ',')).extract ('//text()'), ',') commcode
    from
    CO_VENDOR_COMMODITY
    group by
    VENDOR_CODE;     
    Output should display as below
    VENDOR_CODE     COL1 COL2 COL3 COL4 COL5
    20 1 2 3 4 5
    25 1 2 3 4
    30 21 22 23 24 25
    35 15 16 17
    40 15 16 17 18
    as of now I have built the below query further I am not able to proceed.
    SELECT VENDOR_CODE,
    COMMCODE,
    SUBSTR(COMMCODE,1,(INSTR(COMMCODE,',',1,1) -1)) COL1,
    SUBSTR(COMMCODE,(INSTR(COMMCODE,',',1,1)+1),(LENGTH(SUBSTR(COMMCODE,(INSTR(COMMCODE,',',1,1)+1)))-LENGTH(SUBSTR(COMMCODE,(INSTR(COMMCODE,',',1,2)))))) COL2,
    SUBSTR(COMMCODE,(INSTR(COMMCODE,',',1,2)+1),(LENGTH(SUBSTR(COMMCODE,(INSTR(COMMCODE,',',1,2)+1)))-LENGTH(SUBSTR(COMMCODE,(INSTR(COMMCODE,',',1,3)))))) COL3,
    SUBSTR(COMMCODE,(INSTR(COMMCODE,',',1,3)+1),(LENGTH(SUBSTR(COMMCODE,(INSTR(COMMCODE,',',1,3)+1)))-LENGTH(SUBSTR(COMMCODE,(INSTR(COMMCODE,',',1,4)))))) COL4_1,
    SUBSTR(COMMCODE,(INSTR(COMMCODE,',',1,4)+1)) COL5,
    'SUBSTR(COMMCODE,('||INSTR(COMMCODE,',',1,3)||'+1),('||LENGTH(SUBSTR(COMMCODE,(INSTR(COMMCODE,',',1,3)+1)))||' - '||LENGTH(SUBSTR(COMMCODE,(INSTR(COMMCODE,',',1,4))))||'))' COL4
    FROM OV_VENDOR
    To acheive the above output whether I need use substr/instr or should I go for subquery? which one is best? It is possible to acheive the above output by using subquery?
    Thanks in advance.
    -Satyam

    Oh wait, I now see you want the commodity codes in separate columns.
    If you have a fixed maximum of possible commodity codes, you can use a subquery:
    SQL> select vendor_code
      2  ,      max(case when rn=1 then commodity_code else null end ) col1
      3  ,      max(case when rn=2 then commodity_code else null end ) col2
      4  ,      max(case when rn=3 then commodity_code else null end ) col3
      5  ,      max(case when rn=4 then commodity_code else null end ) col4
      6  ,      max(case when rn=5 then commodity_code else null end ) col5
      7  from ( select vendor_code
      8         ,      commodity_code
      9         ,      row_number() over (partition by vendor_code order by commodity_code) rn
    10         from   co_vendor_commodity
    11       )
    12  group by vendor_code;
    VENDO       COL1       COL2       COL3       COL4       COL5
    20             1          2          3          4          5
    25             1          2          3          4
    30            21         22         23         24         25
    35            15         16         17
    40            15         16         17         18

  • Login issue in OBIEE 11g

    Hi Experts,
    We are using OBIEE 11g
    We are facing the strange issue while accessing the presentation services login page.
    I had uploaded the RPD file using EM,it is working for 1 hour with out any issue.
    After some time the fallowing error is coming. then we are not able to access presentation services,
    I had observed all the services are down in EM>Capasity manage ment tab.
    Longing screen is coming ,but after entering the credentials ,it is showing login into…but not at all opening the window.
    Error connecting to the Oracle BI Server: Could not connect to the Oracle BI Server because it is not running or is inaccessible. Please contact your system administrator.
    Error Codes: WH4KCFW6:OPR4ONWY:U9IM8TAC
    Odbc driver returned an error (SQLDriverConnectW).
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred.
    [nQSError: 12002] Socket communication error at call=Connect: (Number=0) Call=NQRpc: An unknown socket communications error has occurred.
    [nQSError: 12010] Communication error connecting to remote end point: address = SERVERNAME.com; port = 9706.
    [nQSError: 12008] Unable to connect to port 9706 on machine SERVER_NAME.com.Please have your System Administrator look at the log for more details on this error. (HY000)
    Thanks in advance.

    Hi ,
    I normally do this to fix this problem
    1>Disable the network , keep the loopback adaptor enabled and then restart the services.
    2> You can enable the network after services are restarted.
    If you want a more practical solution and dont want to disable network again and again, then you would find the blog below useful.
    http://www.rittmanmead.com/2012/08/obiee-fmw-and-networking-on-dhcp-hosts/
    Hope this help.
    Thanks,
    Maqsood

  • Google Map Issue in OBIEE - Subject area not getting associated

    Hi Gurus,
    We are trying to integrate Google map and OBIEE via mapviewer. We have done the following already - 
    1. Loaded World Sample data from Navteq.
    2. Configured mapviewer source and added Google map as a tile layer with the API KEY.
    3. Imported one layer (e.g. M_STATES_ABRV) in OBIEE and linked it with BI subject area (tried this step with importing other layers as well)
    4. Added background map.
    Now , in this step when we add the layer in the map, we select M_STATES_ABRV and change zoom levels. But Once we come back to main screen after Clicking OK, we see the background map is not associated with the subject area. Hence any map view report creation with this subject area fails.
    We have the tried the same theme with Oracle Maps (internal type like WORLD  MAP or DEMO MAP), it works fine. only Google Map gives this issue.
    This was not expected. Please suggest what we missed. We tried with cache clear, tile delete and recreation, service restart almost everything .
    We looked into other threads in this community, different oracle support documents - Doc ID 1485088.1,Doc ID 1346805.1 etc  and in different internet blogs -  where it's easy as child's play, but we are still out of luck.
    OBIEE version - 11.1.1.7.140527
    Environment- windows server 2008 R2
    Please suggest.
    Regards,
    Krish

    I have found the solution: You need to *select* zoom levels for the BI Layer.  When a BI Layer is added to a background map, by default no zoom layers are selected.  Once a zoom level is selected, the BI Layer will save.

  • Known issues for OBIEE Office Add in with Excel 2007?

    Hi,
    Does anybody know if there are issues for the office add-in with Office 2007?
    i'm playing around a little bit to see how it works, but it seems that Excel interferes with the layout.
    I do get different grafs and also i tried the tutorial with the excel template and my changes come only partly through.
    Thanks
    Sandra

    Hi Sandra,
    Were you able to use OBIEE Office Add in with Excel 2007? I am planning to look at this compatibility. I am looking here to seeif anyone found issues with this setup..
    Thanks,
    Bharat

  • Scrorecards issues in OBIEE 11.1.17.1

    Hi,
    After upgrading OBIEE 11.1.6 to OBIEE 11.1.7.1 some of the scorecards getting error.
    Below is the error(atteched screenshot)
    Assertion failure(Value>=MIN_SCORE&&Value<=MAX_SCORE) || Value==NO_STATUS at line 2814 of project/webscorecard/scorecardassessmentengine.org
    Any one faced this type of issues please help on this .
    Thanks in advance.
    Regards,
    Malli

    Could you Clear the browser cache and re-load the page or log in to OBIEE.
    if its not working then try to Re-deploy the Analytics Application, using the file $Middleware_Home\Oracle_BI1\bifoundation\jee\analytics.ear
    Do let me know for any updates?

  • Exporting Issue in OBIEE 11g

    Hi,
    I am having an issue in exporting a huge amount of data in OBIEE 11g, what happens is : I am able to export the Whole table data which is around 6000 Records, but when I open Excel Sheet the Alignment of the report is ruined after Record number 1890.
    I tried this from different browsers and the same result appeared.
    can anyone help me with that ?
    Regards,

    Hi refer this link
    http://shivabizint.wordpress.com/2011/08/26/export-more-than-6500-obiee-11g-records-to-excel/
    Please mark if its helps you......

  • Agent Issue In Obiee 11g

    In OBIEE 11G, how to send automatically one email for different level users for having a look different data by agent?
    For example:
    One report architeture:
    Region--------District---------Sales
    Region 1------District1--------100
    ------------------District2---------200
    Region 2------District3---------300
    ------------------District4---------400
    One Level can have a look at data:
    Region-----------------Sales
    Region 1-------------300
    Region 2------------ 700
    Another Level can have a look at data:
    Region--------District---------Sales
    Region 1------District1--------100
    ------------------District2---------200
    Region 2------District3---------300
    ------------------District4---------400
    Is it possible to implement this requirement in OBIEE 11.1.1.6? Thanks.

    Hi Satya,
    Thanks for you help.
    If I add this new users into one group in users table and send one email to group, it will no result. Message display as below:
    Eventually succeeded, but encountered and resolved errors...
    Number of skipped recipients: 0 of 0
    AgentID: /shared/test/sad
    Invalid subscribers skipped: weblogic
    create table USEREMAIL
    Logon VARCHAR2(50),
    Display_Name VARCHAR2(50),
    Group_Name VARCHAR2(50),
    TimeZone VARCHAR2(50),
    Language VARCHAR2(50),
    Locale VARCHAR2(50),
    Email VARCHAR2(50),
    Email_Priority VARCHAR2(50),
    Email_Type VARCHAR2(50),
    Cell_Phone VARCHAR2(50),
    Cell_Phone_Priority VARCHAR2(50),
    Pager VARCHAR2(50),
    Pager_Priority VARCHAR2(50),
    Handheld VARCHAR2(50),
    Handheld_Priority VARCHAR2(50)
    Create table users(
    USERID varchar2(50),
    USERPASSWORD VARCHAR2(50),
    GROUP VARCHAR2(50)
    insert into useremail values
    ('kobe','kobe_xu','BIAdministrators','','','','[email protected]','H','HTML','','','','','','');
    insert into users values
    ('kobe','123456',''BIAdministrator');
    and create AUTHENTICATION block:
    select USERID from USERS where USERID=':USER' NQS_PASSWORD_CLAUSE(and USERPASSWORD= ':PASSWORD')NQS_PASSWORD_CLAUSE
    CREATE AUTHORIZATION BLOCK and set row-wise:
    SELECT 'GROUP', USERROLES FROM USERS WHERE USERID=':USER'
    Please help me to find the issue, thanks very much for your precious time.

  • RPD deployment issue in OBIEE 11G

    Hi All,
    I am getting issue while deploying my own RPD. I followed the below link to deply but when i clicked on Lock & Edit button , It was not giving me the option to choose the new RPD. That browse button was disable.
    http://prolynxuk.com/blog/?tag=obiee-11g
    Please help if anyone knows .
    thanks...

    Hi,
    Did you clikc on Deploy tab->Repository->Lock & Edit button configuration?
    After you click browse option gets enabled and you can see release configuration above.Can you see release configuration?
    Regards,
    Srikanth

  • Data level Security issue in obiee 11g

    Hi,
    We are trying to implement data level security, let me explain the issue
    The requirement is, we have 7 schools and each school has one principle , there will be a Superdintent who has 3 schools under him. so now when each principle logs in to dashboard we have a prompt for school i.e Name of school in that prompt he should see only his school and even the data of that school only which are assigned to him, now when Superdintent logs in he should see all 3 schools in the prompt and data. I have gone through this link (http://www.rittmanmead.com/2012/03/obiee-11g-security-week-row-level-security/) but could not achieve.
    We are able to achieve by writing SQL in BMM layer ( LTS Table) so where ever the table is used in dashboards the security is being applied and we are able to see what we want. We want to achieve this by application role, But when we are creating session variables and applying on Application Role its not working. We want to achieve this by using Application role because suppose in other dashboards when the table is not used or pulled in, it will not work.But if we do it using application role its applies to all dashboards and data is resticted. so that when principle or Superdintent logs in automatically its restricts the data.
    Below is the SQL which we used in BMM LTS, its working fine. But when the same SQL is applied in Application Role it's not working.
    SQL used in session variable -
    select  'SCHOOL_CD1', school_cd1 from w_staff_d where empl_id ='VALUEOF(NQ_SESSION.USER)'
    and job_desc1 = 'Principal High School - KPI'
    Any suggestions please ??
    Thanks,
    VRP

    Hi,
    I pasted the log view below by applying SET VARIABLE LOGLEVEL=2, DISABLE_CACHE_HIT=1;, ran this report by applying SQL in Session variable. Let me know if you want anything -
    Thanks
    [OracleBIServerComponent] [TRACE:2] [USER-0] [] [ecid: c9928ce086f2ff4f:4405c138:13a559973e0:-8000-000000000000f7e9] [tid: 128c] [requestid: 5e40000b] [sessionid: 5e400000] [username: weblogic] ############################################## [[
    -------------------- SQL Request:
    SET VARIABLE QUERY_SRC_CD='Report',SAW_SRC_PATH='/shared/Key Performance Analytics/Analysis/Climate and Culture/Analysis for total school suspensions',LOGLEVEL=2, DISABLE_CACHE_HIT=1; SELECT s_0, s_1, s_2, s_3, s_4, s_5, s_6, s_7, s_8, s_9, s_10, s_11 FROM (
    SELECT
    0 s_0,
    "High School KPI"."- Date"."School Year" s_1,
    "High School KPI"."- Grade"."Grade Level" s_2,
    "High School KPI"."- School"."School Name" s_3,
    "High School KPI"."- School Suspensions"."% of Students Suspended" s_4,
    "High School KPI"."- School Suspensions"."Count of Students Enrolled" s_5,
    "High School KPI"."- School Suspensions"."Count of Students with Incidents" s_6,
    CASE WHEN (CASE WHEN MAX("High School KPI"."- School Suspensions"."% of Students Suspended" BY ) IS NULL THEN 10 ELSE MAX("- School Suspensions"."% of Students Suspended" BY ) END +(CASE WHEN (CASE WHEN MAX("- School Suspensions"."% of Students Suspended" BY ) IS NULL THEN 10 ELSE MAX("- School Suspensions"."% of Students Suspended" BY ) END - CASE WHEN MIN("- School Suspensions"."% of Students Suspended" BY ) IS NULL THEN 0 ELSE MIN("- School Suspensions"."% of Students Suspended" BY )END)=0 THEN CASE WHEN CASE WHEN MAX("- School Suspensions"."% of Students Suspended" BY ) IS NULL THEN 10 ELSE MAX("- School Suspensions"."% of Students Suspended" BY ) END <0 THEN (CASE WHEN MAX("- School Suspensions"."% of Students Suspended" BY ) IS NULL THEN 10 ELSE MAX("- School Suspensions"."% of Students Suspended" BY ) END *-1) ELSE CASE WHEN MAX("- School Suspensions"."% of Students Suspended" BY ) IS NULL THEN 10 ELSE MAX("- School Suspensions"."% of Students Suspended" BY ) END END ELSE (CASE WHEN MAX("- School Suspensions"."% of Students Suspended" BY ) IS NULL THEN 10 ELSE MAX("- School Suspensions"."% of Students Suspended" BY ) END - CASE WHEN MIN("- School Suspensions"."% of Students Suspended" BY ) IS NULL THEN 0 ELSE MIN("- School Suspensions"."% of Students Suspended" BY )END) END /10))<0 THEN 1 ELSE 2 END s_7,
    CASE WHEN (CASE WHEN MAX("High School KPI"."- School Suspensions"."% of Students Suspended" BY ) IS NULL THEN 10 ELSE MAX("- School Suspensions"."% of Students Suspended" BY ) END - CASE WHEN MIN("- School Suspensions"."% of Students Suspended" BY ) IS NULL THEN 0 ELSE MIN("- School Suspensions"."% of Students Suspended" BY )END)=0 THEN CASE WHEN CASE WHEN MAX("- School Suspensions"."% of Students Suspended" BY ) IS NULL THEN 10 ELSE MAX("- School Suspensions"."% of Students Suspended" BY ) END <0 THEN (CASE WHEN MAX("- School Suspensions"."% of Students Suspended" BY ) IS NULL THEN 10 ELSE MAX("- School Suspensions"."% of Students Suspended" BY ) END *-1) ELSE CASE WHEN MAX("- School Suspensions"."% of Students Suspended" BY ) IS NULL THEN 10 ELSE MAX("- School Suspensions"."% of Students Suspended" BY ) END END ELSE (CASE WHEN MAX("- School Suspensions"."% of Students Suspended" BY ) IS NULL THEN 10 ELSE MAX("- School Suspensions"."% of Students Suspended" BY ) END - CASE WHEN MIN("- School Suspensions"."% of Students Suspended" BY ) IS NULL THEN 0 ELSE MIN("- School Suspensions"."% of Students Suspended" BY )END) END s_8,
    CASE WHEN MAX("High School KPI"."- School Suspensions"."% of Students Suspended" BY ) IS NULL THEN 10 ELSE MAX("- School Suspensions"."% of Students Suspended" BY ) END s_9,
    CASE WHEN MIN("High School KPI"."- School Suspensions"."% of Students Suspended" BY ) IS NULL THEN 0 ELSE MIN("- School Suspensions"."% of Students Suspended" BY ) END s_10,
    REPORT_AGGREGATE("High School KPI"."- School Suspensions"."% of Students Suspended" BY "High School KPI"."- Date"."School Year") s_11
    FROM "High School KPI"
    WHERE
    (("- Discipline Action"."Discipline Action Code" = 'Suspension') AND ("- Date"."School Year Desc" = VALUEOF("school_year_desc")))
    ) djm ORDER BY 1, 2 ASC NULLS LAST
    [2012-10-17T18:36:55.000+00:00] [OracleBIServerComponent] [TRACE:2] [USER-23] [] [ecid: c9928ce086f2ff4f:4405c138:13a559973e0:-8000-000000000000f7e9] [tid: 128c] [requestid: 5e40000b] [sessionid: 5e400000] [username: weblogic] -------------------- General Query Info: [[
    Repository: Star, Subject Area: High School KPI, Presentation: High School KPI
    [2012-10-17T18:36:55.000+00:00] [OracleBIServerComponent] [TRACE:2] [USER-18] [] [ecid: c9928ce086f2ff4f:4405c138:13a559973e0:-8000-000000000000f7e9] [tid: 128c] [requestid: 5e40000b] [sessionid: 5e400000] [username: weblogic] -------------------- Sending query to database named SPA (id: <<62064>>), connection pool named Initialization Block Connection Pool: [[
    WITH
    SAWITH0 AS (select T30351.SCHOOL_YEAR_DESC as c2,
    T26564.GRADE_LONG_DESC as c4,
    T26686.SCHOOL_NM as c5,
    T29835.STDNT_WID as c6,
    ROW_NUMBER() OVER (PARTITION BY T30351.SCHOOL_YEAR_DESC, T29835.STDNT_WID ORDER BY T30351.SCHOOL_YEAR_DESC DESC, T29835.STDNT_WID DESC) as c7
    from
    W_GRADE_LEVEL_D T26564 /* KPI_W_GRADE_LEVEL_D */ ,
    W_SCHOOL_YEAR_D T30351 /* KPI_W_SCHOOL_YEAR_D */ ,
    W_ORGANIZATION_D T26686 /* KPI_W_ORGANIZATION_D */ ,
    W_STDNT_ENROLL_SCHOOL_F T29835 /* KPI_W_STDNT_ENROLL_SCHOOL_F */
    where ( T26564.GRADE_LEVEL_WID = T29835.GRADE_LEVEL_WID and T26686.ORGANIZATION_WID = T29835.ORGANIZATION_WID and T29835.SCHOOL_YEAR_WID = T30351.SCHOOL_YEAR_WID and T30351.SCHOOL_YEAR_DESC = '2011-2012' and (T26564.GRADE_LONG_DESC in ('Grade 10', 'Grade 11', 'Grade 12', 'Grade 9')) and (T26686.SCHOOL_NM in ('Central Sr', 'Como Park Sr', 'Harding Sr', 'Highland Park Sr', 'Humboldt Secondary School', 'Johnson Sr', 'Washington Technology Secondary')) ) ),
    SAWITH1 AS (select count(distinct case D1.c7 when 1 then D1.c6 else NULL end ) as c1,
    D1.c2 as c2,
    count(distinct D1.c6) as c3,
    D1.c4 as c4,
    D1.c5 as c5
    from
    SAWITH0 D1
    group by D1.c2, D1.c4, D1.c5),
    SAWITH2 AS (select sum(D1.c1) over (partition by D1.c2) as c1,
    D1.c2 as c2,
    D1.c3 as c3,
    D1.c4 as c4,
    D1.c5 as c5
    from
    SAWITH1 D1),
    SAWITH3 AS (select T30647.SCHOOL_YEAR as c3,
    T26564.GRADE_LONG_DESC as c4,
    T26686.SCHOOL_NM as c5,
    T26023.STDNT_WID as c6,
    ROW_NUMBER() OVER (PARTITION BY T30647.SCHOOL_YEAR, T26023.STDNT_WID ORDER BY T30647.SCHOOL_YEAR DESC, T26023.STDNT_WID DESC) as c7
    from
    W_DISCIPLINE_ACTION_D T29975 /* KPI_W_DISCIPLINE_ACTION_D */ ,
    W_GRADE_LEVEL_D T26564 /* KPI_W_GRADE_LEVEL_D */ ,
    W_KPI_QTR_DAY_D T30647,
    W_ORGANIZATION_D T26686 /* KPI_W_ORGANIZATION_D */ ,
    W_STDNT_DISCIPLINE_F T26023 /* KPI_W_STDNT_DISCIPLINE_F */
    where ( T26023.DISCIPLINE_ACTION_WID = T29975.DISCIPLINE_ACTION_WID and T26023.ORGANIZATION_WID = T26686.ORGANIZATION_WID and T26023.DATE_WID = T30647.DATE_WID and T26023.GRADE_LEVEL_WID = T26564.GRADE_LEVEL_WID and T29975.DISCIPLINE_ACTION_CD = 'Suspension' and (T26564.GRADE_LONG_DESC in ('Grade 10', 'Grade 11', 'Grade 12', 'Grade 9')) and (T26686.SCHOOL_NM in ('Central Sr', 'Como Park Sr', 'Harding Sr', 'Highland Park Sr', 'Humboldt Secondary School', 'Johnson Sr', 'Washington Technology Secondary')) ) ),
    SAWITH4 AS (select count(distinct case D1.c7 when 1 then D1.c6 else NULL end ) as c1,
    count(distinct D1.c6) as c2,
    D1.c3 as c3,
    D1.c4 as c4,
    D1.c5 as c5
    from
    SAWITH3 D1
    group by D1.c3, D1.c4, D1.c5),
    SAWITH5 AS (select sum(D1.c1) over (partition by D1.c3) as c1,
    D1.c2 as c2,
    D1.c3 as c3,
    D1.c4 as c4,
    D1.c5 as c5
    from
    SAWITH4 D1)
    select distinct case when D1.c2 is not null then D1.c2 when D2.c3 is not null then D2.c3 end as c1,
    case when D1.c4 is not null then D1.c4 when D2.c4 is not null then D2.c4 end as c2,
    case when D1.c5 is not null then D1.c5 when D2.c5 is not null then D2.c5 end as c3,
    case when D1.c3 = 0 then NULL else D2.c2 * 100.0 / nullif( D1.c3, 0) end as c4,
    D1.c3 as c5,
    D2.c2 as c6
    from
    SAWITH2 D1,
    SAWITH5 D2
    where ( nvl(D1.c2 , '1') = nvl(D2.c3 , '1') and nvl(D1.c2 , '2') = nvl(D2.c3 , '2') and nvl(D1.c4 , '1') = nvl(D2.c4 , '1') and nvl(D1.c4 , '2') = nvl(D2.c4 , '2') and nvl(D1.c5 , '1') = nvl(D2.c5 , '1') and nvl(D1.c5 , '2') = nvl(D2.c5 , '2') )
    order by c1, c2, c3
    [2012-10-17T18:36:55.000+00:00] [OracleBIServerComponent] [TRACE:2] [USER-18] [] [ecid: c9928ce086f2ff4f:4405c138:13a559973e0:-8000-000000000000f7e9] [tid: 128c] [requestid: 5e40000b] [sessionid: 5e400000] [username: weblogic] -------------------- Sending query to database named SPA (id: <<62434>>), connection pool named Initialization Block Connection Pool: [[
    WITH
    SAWITH0 AS (select T30351.SCHOOL_YEAR_DESC as c2,
    T26564.GRADE_LONG_DESC as c4,
    T26686.SCHOOL_NM as c5,
    T29835.STDNT_WID as c6,
    ROW_NUMBER() OVER (PARTITION BY T30351.SCHOOL_YEAR_DESC, T29835.STDNT_WID ORDER BY T30351.SCHOOL_YEAR_DESC DESC, T29835.STDNT_WID DESC) as c7
    from
    W_GRADE_LEVEL_D T26564 /* KPI_W_GRADE_LEVEL_D */ ,
    W_SCHOOL_YEAR_D T30351 /* KPI_W_SCHOOL_YEAR_D */ ,
    W_ORGANIZATION_D T26686 /* KPI_W_ORGANIZATION_D */ ,
    W_STDNT_ENROLL_SCHOOL_F T29835 /* KPI_W_STDNT_ENROLL_SCHOOL_F */
    where ( T26564.GRADE_LEVEL_WID = T29835.GRADE_LEVEL_WID and T26686.ORGANIZATION_WID = T29835.ORGANIZATION_WID and T29835.SCHOOL_YEAR_WID = T30351.SCHOOL_YEAR_WID and T30351.SCHOOL_YEAR_DESC = '2011-2012' and (T26564.GRADE_LONG_DESC in ('Grade 10', 'Grade 11', 'Grade 12', 'Grade 9')) and (T26686.SCHOOL_NM in ('Central Sr', 'Como Park Sr', 'Harding Sr', 'Highland Park Sr', 'Humboldt Secondary School', 'Johnson Sr', 'Washington Technology Secondary')) ) ),
    SAWITH1 AS (select count(distinct case D1.c7 when 1 then D1.c6 else NULL end ) as c1,
    D1.c2 as c2,
    count(distinct D1.c6) as c3,
    D1.c4 as c4,
    D1.c5 as c5
    from
    SAWITH0 D1
    group by D1.c2, D1.c4, D1.c5),
    SAWITH2 AS (select sum(D1.c1) over (partition by D1.c2) as c1,
    D1.c2 as c2,
    D1.c3 as c3,
    D1.c4 as c4,
    D1.c5 as c5
    from
    SAWITH1 D1),
    SAWITH3 AS (select T30647.SCHOOL_YEAR as c3,
    T26564.GRADE_LONG_DESC as c4,
    T26686.SCHOOL_NM as c5,
    T26023.STDNT_WID as c6,
    ROW_NUMBER() OVER (PARTITION BY T30647.SCHOOL_YEAR, T26023.STDNT_WID ORDER BY T30647.SCHOOL_YEAR DESC, T26023.STDNT_WID DESC) as c7
    from
    W_DISCIPLINE_ACTION_D T29975 /* KPI_W_DISCIPLINE_ACTION_D */ ,
    W_GRADE_LEVEL_D T26564 /* KPI_W_GRADE_LEVEL_D */ ,
    W_KPI_QTR_DAY_D T30647,
    W_ORGANIZATION_D T26686 /* KPI_W_ORGANIZATION_D */ ,
    W_STDNT_DISCIPLINE_F T26023 /* KPI_W_STDNT_DISCIPLINE_F */
    where ( T26023.DISCIPLINE_ACTION_WID = T29975.DISCIPLINE_ACTION_WID and T26023.ORGANIZATION_WID = T26686.ORGANIZATION_WID and T26023.DATE_WID = T30647.DATE_WID and T26023.GRADE_LEVEL_WID = T26564.GRADE_LEVEL_WID and T29975.DISCIPLINE_ACTION_CD = 'Suspension' and (T26564.GRADE_LONG_DESC in ('Grade 10', 'Grade 11', 'Grade 12', 'Grade 9')) and (T26686.SCHOOL_NM in ('Central Sr', 'Como Park Sr', 'Harding Sr', 'Highland Park Sr', 'Humboldt Secondary School', 'Johnson Sr', 'Washington Technology Secondary')) ) ),
    SAWITH4 AS (select count(distinct case D1.c7 when 1 then D1.c6 else NULL end ) as c1,
    count(distinct D1.c6) as c2,
    D1.c3 as c3,
    D1.c4 as c4,
    D1.c5 as c5
    from
    SAWITH3 D1
    group by D1.c3, D1.c4, D1.c5),
    SAWITH5 AS (select sum(D1.c1) over (partition by D1.c3) as c1,
    D1.c2 as c2,
    D1.c3 as c3,
    D1.c4 as c4,
    D1.c5 as c5
    from
    SAWITH4 D1),
    SAWITH6 AS (select case when max(D1.c1) = 0 then NULL else max(D2.c1) * 100.0 / nullif( max(D1.c1), 0) end as c11,
    case when D1.c2 is not null then D1.c2 when D2.c3 is not null then D2.c3 end as c12
    from
    SAWITH2 D1,
    SAWITH5 D2
    where ( nvl(D1.c2 , '1') = nvl(D2.c3 , '1') and nvl(D1.c2 , '2') = nvl(D2.c3 , '2') and nvl(D1.c4 , '1') = nvl(D2.c4 , '1') and nvl(D1.c4 , '2') = nvl(D2.c4 , '2') and nvl(D1.c5 , '1') = nvl(D2.c5 , '1') and nvl(D1.c5 , '2') = nvl(D2.c5 , '2') )
    group by case when D1.c2 is not null then D1.c2 when D2.c3 is not null then D2.c3 end )
    select D2.c11 as c1,
    D2.c12 as c2
    from
    SAWITH6 D2
    order by c2
    Edited by: 965968 on Oct 17, 2012 11:49 AM

  • BI Starting Services Issue in OBIEE 11g

    Hi,
    I have installed OBIEE 11g and it was working fine but today when i have started the BI services its showed this error
    *<Jan 7, 2011 6:42:52 PM UZT> <Error> <oracle.wsm.resources.policymanager> <WSM-02311> <Failed to retrieve requested documents due to underlying error*
    *"java.rmi.RemoteException: EJB Exception: ; nested exception is:*
    *oracle.mds.exception.MDSRuntimeException: MDS-00001: exception in Metadata Services layer MDS-00001: exception in Metadata Services layer*
    *weblogic.common.resourcepool.ResourceDisabledException: Pool mds-owsm is Suspended, cannot allocate resources to applications..".>*
    *<Jan 7, 2011 6:42:55 PM UZT> <Warning> <JDBC> <BEA-001129> <Received exception while creating connection for pool "mds-owsm": The Network Adapter could not establish*
    the connection>
    Because of the above error web login Page (http://masood:9704/analytics/saw.dll?bieehome&startPage=1) is not displayed and its showed an error below
    Error 500--Internal Server Error
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    *10.5.1 500 Internal Server Error*
    The server encountered an unexpected condition which prevented it from fulfilling the request.
    But the Console admin Page (http://masood:7001/console/login/LoginForm.jsp) and Map viewer admin Page (http://masood.:9704/mapviewer) working fine.
    Only the sample reports and Dashboards Area are not displayed. I have tried to find out the solution of this issue but i am not getting the right solution.
    If any one knows that whats the reason behind this issue, so Please help me. I will be very thankful, Thanks.

    Hi,
    I experienced the same problem, the exact errors you got. After much digging, i discovered that my database was not registering with the listener, so i could not connect to it from SQLDeveloper and other tools. After spending much time on the internet trying to solve the error "*ora-12154 tns could not resolve the connect identifier specified*" which was what SQLDeveloper was returning, the problem still persisted.
    A colleague of mine then gave told me to try and force my database to register with the correct listener from command line with these commands:
    net start OracleServiceDB1
    C:\oracle\product\11.2.0\dbhome_1\BIN\oradim.exe -startup -SID DB1 -usrpwd password -pfile C:\oracle\admin\DB1\pfile\init.ora
    It turned out that my windows events were full, so i had to clear all events and increased the log size and made sure they are overwritten as needed. And alas, everything was fine again!!!
    What a nightmare it was - or may be it was Windows to blame!!! I hope this helps somebody out there sometime.
    Obviously, you need to change the paths and other parameters to suite your system. OracleServiceDB1 is the name of my service and DB1 is the name of my database. By the way , i ran it on a Windows XP machine.
    Cheers
    Edited by: 842996 on 09-Mar-2011 04:48

Maybe you are looking for

  • SharePoint 2013 Foundation error when uploading Excel files

    Hello  I have a specific problem. I have an xlsx file that I cannot upload in SharePoint. Normally our SharePoint can upload Excel files and other file formats normally but this one has data with nearly 5000 rows. The size of the file is less then 50

  • Help with the IN operator

    Hello, Lets say I have a clients table with ID and client_category ID CAT 1 1 2 1 3 1 4 2 5 2 6 2 7 3 8 3 9 3 10 3 And I want to select 2 ID's for each client_category. Desired output: ID CAT 1 1 2 1 4 2 5 2 7 3 8 3 I'm doing something like: select c

  • Cannot get mail error: please help! :/

    Everytime I click on my mail app on my iphone 4, I get the "cannot get mail, connection to the server failed". I have deleted the account before and it fixes it temporarily only to happen again in the future. What is going on?

  • How to connect to IPad?

    I have just bought an Apple TV device,how can I connect with latest IPAD and see the contents on IPAD on TV,but the manual along with the device does not clearly say how to do it

  • Storage space full

    What is taking up all of the "other" storage space on my macbook air and how do I get rid of it?