11g ActAs functionality

Ok, I had this working fine but somewhere along the way have broken it. I think it is because we are bringing OBIEE up for the fiirst time and and a couple of times the catalog has been moved between different environments.
When a target user is selected from the ActAs drop down and OK is clicked the user is immediately kicked back to the login screen with the message "Unable to Sign In An invalid User Name or Password was entered." The saw log shows the original user logged out and then an error at File:masterclientsession.cpp Line:462 followed by a RUNAS line with the target and nothing after that. When the original user logs in after one of these failures the message to "Please update the GUIDs and try again" is found in the logs. I have successfully followed the instructions to rebuild the GUIDs with no change.
Are there other issues that can affect this? Any help and/or insight would be appreciated.
OBIEE 11g 11.0.1.5
Windows Server 2008

I am still trying to figure out why this is not working. I have deleted all of the users from the catalog, logged in as the test users to create the information under the users directory with no change. I have refreshed the GUIDs with no change. The log looks like this:
[2011-12-13T13:28:06.000-05:00] [OBIPS] [NOTIFICATION:1] [] [saw.subsystem.catalog.initialize.upgrade] [ecid: ] [tid: ] Starting to update Account GUIDs[[
File:initializecatalog.cpp
Line:1046
Location:
saw.subsystem.catalog.initialize.upgrade
saw.subsystem.catalog.initialize
saw.subsystems.catalogbootstrapper.loadcatalog
saw.webextensionbase.init
saw.sawserver
saw.sawserver.initializesawserver
saw.sawserver
ecid:
<snip>
[2011-12-13T13:28:10.000-05:00] [OBIPS] [NOTIFICATION:1] [] [saw.subsystem.catalog.initialize.upgrade] [ecid: ] [tid: ] Succeeded in updating account GUIDs from back end user population store[[
File:initializecatalog.cpp
Line:1131
Location:
saw.subsystem.catalog.initialize.upgrade
saw.subsystem.catalog.initialize
saw.subsystems.catalogbootstrapper.loadcatalog
saw.webextensionbase.init
saw.sawserver
saw.sawserver.initializesawserver
saw.sawserver
ecid:
<snip>
[2011-12-13T13:50:47.000-05:00] [OBIPS] [NOTIFICATION:1] [] [saw.securitysubsystem.session.logon] [ecid: f914bd05fa88c68a:7311c824:134388a444f:-8000-00000000000194b6,0:1:1] [tid: 5284] User OBI_TEST04 logged in (session ID: kfjb8lov4jltvjd3oucvcl7anvp0mf8kj2vfcsa ). [[
File:masterclientsession.cpp
Line:366
Location:
saw.securitysubsystem.session.logon
saw.securitysubsystem.checkauthentication.runimpl
saw.threadpool
saw.threads
ecid: f914bd05fa88c68a:7311c824:134388a444f:-8000-00000000000194b6,0:1:1
ThreadID: 5284
[2011-12-13T13:52:37.000-05:00] [OBIPS] [NOTIFICATION:1] [] [saw.securitysubsystem.session.logoff] [ecid: f914bd05fa88c68a:7311c824:134388a444f:-8000-000000000001ad37,0:1] [tid: 5416] User OBI_TEST04 logged out (session ID: kfjb8lov4jltvjd3oucvcl7anvp0mf8kj2vfcsa ).[[
File:masterclientsession.cpp
Line:462
Location:
saw.securitysubsystem.session.logoff
saw.securitysubsystem.checkauthentication
saw.httpserver.processrequest
saw.rpc.server.responder
saw.rpc.server
saw.rpc.server.handleConnection
saw.rpc.server.dispatch
saw.threadpool
saw.threads
SessionID: kfjb8lov4jltvjd3oucvcl7anvp0mf8kj2vfcsa
AuthProps: AuthSchema=UidPwd|PWD=******|UID=obi_test04|User=OBI_TEST04
ecid: f914bd05fa88c68a:7311c824:134388a444f:-8000-000000000001ad37,0:1
ThreadID: 5416
HttpCommand: BIEEHome
RemoteIP: 129.58.168.189
HttpArgs: RUNAS='OBI_TEST05',_scid='aCSM0DCIzlzA1Sx-PHAh'
[2011-12-13T13:52:37.000-05:00] [OBIPS] [WARNING:16] [] [saw.security.securityimpl.internaladdauthenticateduser] [ecid: f914bd05fa88c68a:7311c824:134388a444f:-8000-000000000001ad37,0:1] [tid: 5416] The GUID for user obi_test04 has changed. This could result in catalog access issues - Please update GUIDs and try again[[
File:securityimpl.cpp
Line:561
Location:
saw.security.securityimpl.internaladdauthenticateduser
saw.security.securityimpl.addauthenticatedusernonproxy
saw.securitysubsystem.checkauthentication
saw.httpserver.processrequest
saw.rpc.server.responder
saw.rpc.server
saw.rpc.server.handleConnection
saw.rpc.server.dispatch
saw.threadpool
saw.threads
SessionID: kfjb8lov4jltvjd3oucvcl7anvp0mf8kj2vfcsa
AuthProps: AuthSchema=UidPwd|PWD=******|UID=obi_test04|User=OBI_TEST04
ecid: f914bd05fa88c68a:7311c824:134388a444f:-8000-000000000001ad37,0:1
ThreadID: 5416
HttpCommand: BIEEHome
RemoteIP: 129.58.168.189
]]

Similar Messages

  • 11g Cached function feature alternative in 10g ?

    All:
    I want to know if there is a feature or alternative that i could implement the 11g cached function sort of thing where i could share the data via passed parameters by reference of a cached object across sessions.
    Thanks
    Srinivas

    It appears the Package variables and data are session specific and cannot be shared across sessions.
    Yes... i'm sure !!!!!Sim,
    package global variables are NOT shared accross sessions. The link you pointed to showed only that within the same session the variables may be shared.
    Changing he session leads to reinitialized variables as a simple test reveals:
    SQL> connect scott/tiger
    Connected as SCOTT
    SQL> begin
       owa.user_id := 'My User';
       dbms_output.put_line ('User: ' || owa.user_id);
    end;
    User: My User
    PL/SQL procedure successfully completed.
    SQL> connect scott/tiger
    Connected as SCOTT
    SQL> begin
       dbms_output.put_line ('User: ' || owa.user_id);
    end;
    User:
    PL/SQL procedure successfully completed.

  • Oracle 11g Table function returns no records on first call

    Hello,
    On a Oracle 11g R2 I've a table function ( PIPELINED ) returning rows selected from a table.
    The first time the function is selected, in a session ( I've tried to disconnect and log in again ), it returns no rows.
    I've tried to log the call using DBMS_OUTPUT and from what I see the select on the table function returns no rows and no output is printed. So I presume Oracle is not calling the function.
    The same function on a similar environment ( same db versions, patches and database structure ) works fine. The second environment is a production environment so it has more memory and some other settings enabled.
    Does anyone know of settings that can relate to this behaviour ?
    Thanks in advance for the help.
    Regards,
    Stefano Muret

    Thank you for answering so fast.
    Here's the function code:
    FUNCTION template_parameters (iTemplate IN TEMPLATE_RAW_DATA.TMPL_ID%TYPE := NULL)
    RETURN table_type_tmpl_parameters PIPELINED
    IS
    li_exception INTEGER DEFAULT -20025;
    POUT_PARM TABLE_TYPE_TMPL_PARAMETERS;
    lt_parms table_type_tmpl_parms_raw;
    sParmCheck VARCHAR2(4000);
    iOccurrence INTEGER;
    BEGIN
    pOut_Parm := table_type_tmpl_parameters();
    pOut_Parm.EXTEND;
    select
    tmpl_id
    *,tmpl_name*
    *,replace(upper(trim(sql_out)),'[SCHEMA].')*
    *,UPPER(TRIM(out_tmpl_parms))*
    bulk collect into lt_parms
    from ref_templates
    where tmpl_id = NVL(iTemplate,tmpl_id)
    order by tmpl_id;
    FOR k IN 1..lt_parms.COUNT
    LOOP
    pOut_Parm(1).tmpl_id := lt_parms(k).tmpl_id;
    pOut_Parm(1).tmpl_name := lt_parms(k).tmpl_name;
    FOR i IN 1..2
    LOOP
    IF i = 1 THEN
    sParmCheck := lt_parms(k).sql_out;
    ELSE
    sParmCheck := lt_parms(k).sql_parms;
    END IF;
    iOccurrence := 1;
    *pOut_Parm(1).parameter_name := regexp_substr(sParmCheck,'\[[^\[]+\]',1,iOccurrence);*
    WHILE pOut_Parm(1).parameter_name IS NOT NULL
    LOOP
    PIPE ROW (pOut_Parm(1));
    iOccurrence := iOccurrence + 1;
    *pOut_Parm(1).parameter_name := regexp_substr(sParmCheck,'\[[^\[]+\]',1,iOccurrence);*
    END LOOP;
    END LOOP;
    END LOOP;
    RETURN;
    EXCEPTION
    WHEN OTHERS THEN
    RAISE_APPLICATION_ERROR(li_exception,SUBSTR(SQLERRM,1,1000));
    RETURN;
    END template_parameters;
    This function is part of a package.
    The data on both environments is the same.

  • Bug in 11g CUBE_TABLE function?

    An unusual feature of the 11g OLAP CUBE_TABLE function has surfaced when querying a dimension.
    If a dimension has more than one hierarchy then if CUBE_TABLE is used to query a second or subsequent hierarchy on a dimension, and a WHERE clause on the DEPTH column is specified, no records will appear regardless of the value queried.
    eg. Imagine a dimenson TIME with two hierarchies FINANCIAL and CALENDAR (FINANCIAL having been defined first).
    The query "SELECT DEPTH, COUNT(*) DCOUNT from TABLE(CUBE_TABLE('TIME;FINANCIAL')) GROUP BY DEPTH ORDER BY DEPTH" will list how many dimension values have each value of DEPTH
    The query "SELECT * from TABLE(CUBE_TABLE('TIME;FINANCIAL')) WHERE DEPTH=0" will show the entire record corresponding to the top of the FINANCIAL hierarchy
    Repeat this for hierarchy CALENDAR.
    The first query will work correctly but the second will return an empty record set.
    I would say this is a bug.
    To demonstrate this effect in your own database you can run the following procedure (it will loop though all your dimensions and run these two queries.):-
    create or replace
    PROCEDURE SHOW_CUBE_TABLE_ERROR AS
    BEGIN
    DECLARE
    OLINE VARCHAR2(100);
    SLINE VARCHAR2(300);
    CURSOR ahv IS SELECT owner, dimension_name, hierarchy_name FROM sys.all_cube_hierarchies ;
    TYPE dynCurTyp IS REF CURSOR;
    dyn dynCurTyp;
    RDEPTH INTEGER;
    RCOUNT INTEGER;
    BEGIN
    FOR item IN ahv LOOP
    OLINE := item.owner || '.' || item.dimension_name || ';' || item.hierarchy_name;
    DBMS_OUTPUT.PUT_LINE(OLINE);
    DBMS_OUTPUT.PUT_LINE(LPAD('=',LENGTH(OLINE),'='));
    SLINE := 'SELECT DEPTH, COUNT(*) DCOUNT FROM TABLE(CUBE_TABLE(''' || OLINE || ''')) GROUP BY DEPTH ORDER BY DEPTH';
    DBMS_OUTPUT.PUT_LINE(SLINE);
    OPEN dyn FOR SLINE;
    DBMS_OUTPUT.PUT_LINE('DEPTH DCOUNT');
    DBMS_OUTPUT.PUT_LINE('----- ------');
    LOOP
    FETCH dyn INTO RDEPTH, RCOUNT;
    EXIT WHEN dyn%NOTFOUND;
    DBMS_OUTPUT.PUT_LINE(LPAD(RDEPTH, 5, ' ') || LPAD(RCOUNT, 9, ' '));
    END LOOP;
    DBMS_OUTPUT.PUT_LINE(' ');
    CLOSE dyn;
    SLINE := 'SELECT count(*) DCOUNT FROM TABLE(CUBE_TABLE(''' || OLINE || ''')) where DEPTH=0';
    DBMS_OUTPUT.PUT_LINE(SLINE);
    OPEN dyn FOR SLINE;
    DBMS_OUTPUT.PUT_LINE('DCOUNT');
    DBMS_OUTPUT.PUT_LINE('------');
    LOOP
    FETCH dyn INTO RCOUNT;
    EXIT WHEN dyn%NOTFOUND;
    DBMS_OUTPUT.PUT_LINE(LPAD(RCOUNT, 6, ' '));
    END LOOP;
    DBMS_OUTPUT.PUT_LINE(' ');
    CLOSE dyn;
    DBMS_OUTPUT.PUT_LINE(' ');
    END LOOP;
    END;
    END SHOW_CUBE_TABLE_ERROR;

    David
    Thanks for replying.
    1) I am using version Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - Production (A patch)
    2) There currently only is one schema but the problem is reproduceable in all AW's
    3) Attaching all AW's explicitly and performing ALLSTAT does not affect the result
    4) Reversing the order of the hierarchies does not affect the result either
    I have modified my procedure to perform actions (3) and (4)
    create or replace
    PROCEDURE SHOW_CUBE_TABLE_ERROR(REVHIER BOOLEAN) AS
    BEGIN
    DECLARE
    THISAW VARCHAR2(20);
    OLINE VARCHAR2(100);
    SLINE VARCHAR2(300);
    CURSOR awl IS SELECT aw_name FROM sys.user_aws;
    TYPE ahvCurTyp IS REF CURSOR;
    ahvr ahvCurTyp;
    TYPE dynCurTyp IS REF CURSOR;
    dyn dynCurTyp;
    ROWNER VARCHAR2(20);
    RDIMENSION VARCHAR2(20);
    RHIERARCHY VARCHAR2(20);
    RDEPTH INTEGER;
    RCOUNT INTEGER;
    BEGIN
    FOR item IN awl LOOP
    THISAW := item.aw_name;
    dbms_aw.execute('aw attach ' || THISAW || ' ro');
    END LOOP;
    IF REVHIER THEN
    OPEN ahvr for 'SELECT owner, dimension_name, hierarchy_name FROM sys.all_cube_hierarchies ORDER BY owner, dimension_name, hierarchy_name desc';
    ELSE
    OPEN ahvr for 'SELECT owner, dimension_name, hierarchy_name FROM sys.all_cube_hierarchies ORDER BY owner, dimension_name, hierarchy_name asc';
    END IF;
    LOOP
    FETCH ahvr INTO ROWNER, RDIMENSION, RHIERARCHY;
    EXIT WHEN ahvr%NOTFOUND;
    --FOR item IN ahv LOOP+
    --THISAW := dbms_aw.eval_text('obj( aw ''' || item.dimension_name || ''')');+
    --OLINE := item.owner || '.' || item.dimension_name || ';' || item.hierarchy_name;+
    THISAW := dbms_aw.eval_text('obj( aw ''' || RDIMENSION || ''')');
    OLINE := ROWNER || '.' || RDIMENSION || ';' || RHIERARCHY;
    DBMS_OUTPUT.PUT_LINE(OLINE || ' (AW: ' || THISAW ||')');
    DBMS_OUTPUT.PUT_LINE(LPAD('=', LENGTH(OLINE) LENGTH(THISAW) + 7,'='));+
    dbms_aw.execute('aw attach ' || THISAW || ' first');
    dbms_aw.execute('allstat');
    SLINE := 'SELECT DEPTH, COUNT(*) DCOUNT FROM TABLE(CUBE_TABLE(''' || OLINE || ''')) GROUP BY DEPTH ORDER BY DEPTH';
    DBMS_OUTPUT.PUT_LINE(SLINE);
    OPEN dyn FOR SLINE;
    DBMS_OUTPUT.PUT_LINE('DEPTH   DCOUNT');
    DBMS_OUTPUT.PUT_LINE('-----   ------');
    LOOP
    FETCH dyn INTO RDEPTH, RCOUNT;
    EXIT WHEN dyn%NOTFOUND;
    DBMS_OUTPUT.PUT_LINE(LPAD(RDEPTH, 5, ' ')  || LPAD(RCOUNT, 9, ' '));
    END LOOP;
    DBMS_OUTPUT.PUT_LINE(' ');
    CLOSE dyn;
    SLINE := 'SELECT count(*) DCOUNT FROM TABLE(CUBE_TABLE(''' || OLINE || ''')) where DEPTH=0';
    DBMS_OUTPUT.PUT_LINE(SLINE);
    OPEN dyn FOR SLINE;
    DBMS_OUTPUT.PUT_LINE('DCOUNT');
    DBMS_OUTPUT.PUT_LINE('------');
    LOOP
    FETCH dyn INTO RCOUNT;
    EXIT WHEN dyn%NOTFOUND;
    DBMS_OUTPUT.PUT_LINE(LPAD(RCOUNT, 6, ' '));
    END LOOP;
    DBMS_OUTPUT.PUT_LINE(' ');
    CLOSE dyn;
    DBMS_OUTPUT.PUT_LINE(' ');
    END LOOP;
    END;
    END SHOW_CUBE_TABLE_ERROR; ------------------------------------------------------------------------------------------------------------------------------------------------------
    I am not alone in noticing this issue. The developers at Simba said they'd seen it too but that it was fixed in the B patch. Any idea when this is available for Windows?
    Paul

  • Oracle 11g SUM function on the result of inner Select

    The inner Select returns rows with the values. The outer select running on tthe result of inner select SUM the result of the inner select.
    Although there are valid rows of the inner select the SUM in the outer SELECT return NVL. As a comment any aggregate function on the outer select returns NVL.
    The query is below.
    select a.yil,
    a.ay,
    sum(brut_prim),
    sum(kom),
    from (SELECT oid_pol_kesilen_acente,
    to_char(pp.zeyil_tanzim_tar, 'yyyy') yil,
    to_char(pp.zeyil_tanzim_tar, 'mm') ay,
    sum(decode(substr(pp.no, 1, 1),
    'T',
    pp.zeyil_brut_prim_fark / 2,
    pp.zeyil_brut_prim_fark)) -
    sum(pp.zeyil_gv_fark) brut_prim,
    sum(pp.zeyil_acente_kom_fark) kom
    from pol_police pp, org_acente oa
    WHERE SUBSTR(PP.NO, 1, 1) != 'D')
    group by oid_pol_kesilen_acente,
    to_char(pp.zeyil_tanzim_tar, 'yyyy'),
    to_char(pp.zeyil_tanzim_tar, 'mm')) a
    group by a.yil, a.ay, oid_pol_kesilen_acente
    Edited by: [email protected] on May 7, 2010 2:09 AM
    Edited by: [email protected] on May 7, 2010 2:31 AM

    Hi,
    please try the below sql:
    select a.yil, a.ay, sum(brut_prim), sum(kom),
    from (SELECT oid_pol_kesilen_acente,to_char(pp.zeyil_tanzim_tar, 'yyyy') yil, to_char(pp.zeyil_tanzim_tar, 'mm') ay,
    sum(decode(substr(pp.no, 1, 1), 'T',nvl(pp.zeyil_brut_prim_fark,0) / 2,nvl(pp.zeyil_brut_prim_fark,0))) - sum(nvl(pp.zeyil_gv_fark,0)) brut_prim,
    sum(nvl(pp.zeyil_acente_kom_fark,0)) kom
    from pol_police pp, org_acente oa
    WHERE SUBSTR(PP.NO, 1, 1) != 'D'
    group by oid_pol_kesilen_acente,
    to_char(pp.zeyil_tanzim_tar, 'yyyy'),
    to_char(pp.zeyil_tanzim_tar, 'mm')
    ) a
    group by a.yil, a.ay, oid_pol_kesilen_acente ;
    Thanks,
    Siva

  • OBIEE 11g Ago Function

    Hi All,
    I am using ago function in Answers it works fine
    But
    when observing the data, data is mismatched at particular Product category, why because two category s (A,B)   has same subcategory name (Basic)
    CAT       Sub Cat
    A  ------        Basic
    A  ------       Value Add
    A  ------       High
    B -------     Basic
    B ------       low
    B ------     medium
    My report has five columns like CM -1 , CM-2,CM-3,CM-4,CM-5 ,
    when i was selecting cat A and subcat is Basic, Data as below ....
    CM-1         CM-2     CM-3     CM -4    CM -5
    A basic   A basic  B basic B basic   A basic
    if sub cat name is different no issue
    Please help me.
    Regards
    Rm

    You can create a compound key of Cat + SubCat (concatenation in a logical column is a quick win) which will render the SubCats unique and assign that as the logical level key:
    SubCat:
    A-Basic
    A-Value Add
    A-High
    B-Basic

  • OBIEE 11g EVALUATE function working fine with Administrator but

    Hi,
    We have a report with EVALUATE function , which is working fine with Administrator User but when we run for other users its giving following error.
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 42015] Cannot function ship the following expression: Evaluate( COUNT(%1) OVER (PARTITION BY (%2)),D901.c1, D901.c2) .Please have your System Administrator look at the log for more details on this error. (HY000)
    Is there any parameters that we have to set for the user level to use Evaluate ?
    Thanks,
    Raj

    You can create a compound key of Cat + SubCat (concatenation in a logical column is a quick win) which will render the SubCats unique and assign that as the logical level key:
    SubCat:
    A-Basic
    A-Value Add
    A-High
    B-Basic

  • ADF 11g | Drilldown functionality

    Hi,
    Can somebody tell me how to drill down to an edit page from a table using a link? I need the drill down to be done using a link and I require the link if the table has got particular data. if not, i want it to be displayed as a plain text. Also, please let me know the intricacies which are to be considered while creating a drill down functionality.
    Thanks in advance
    Praveen

    Hi Frank,
    Thanks for the quick support.
    My requirement for the drill down functionality is as follows:
    1. I have two view pages: one for displaying the table and other for editing a different table based on the selected column value from the first view page.
    2. The key attribute for these two table views are same.
    I have used setCurrentRowWithKey in the link(first view page) as the operation to link it with the view object of the page to be edited. Infact, i have also used the NDValue = "#{row.rowKeyStr}" as well. But an error is thrown as follows:
    <Sep 6, 2010 10:48:52 AM IST> <Error> <HTTP> <BEA-101020> <[ServletContext@16122923[app:Dashboard_panels module:Dashboard_workflow path:/Dashboard_workflow spec-version:2.5 version:V2.0]] Servlet failed with Exception
    javax.el.ELException: java.lang.NullPointerException
         at javax.el.BeanELResolver.getValue(BeanELResolver.java:266)
         at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143)
         at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)
         at com.sun.el.parser.AstValue.getValue(AstValue.java:118)
         at com.sun.el.parser.AstChoice.getValue(AstChoice.java:47)
         Truncated. see log file for complete stacktrace
    Caused By: java.lang.NullPointerException
         at com.symmetry.dashboard.panels.view.backing.purchase.EditInvoice.isInvoice(EditInvoice.java:182)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         Truncated. see log file for complete stacktrace
    >
    I could not figure out what went wrong. If possible, could you please take me through the complete drill down functionality? It would be much appreciated if drilldown functionality is explained with reference to the context of "Nested Application Module".
    Thanks
    Praveen
    Edited by: 790146 on Sep 6, 2010 6:53 AM

  • Using Analytic Functions

    Hi all,
    I am using ODI 11g(11.1.1.3.0) and I am trying to make an interface using analytic functions in the column mapping, something like below.
    sum(salary) over (partition by .....)
    The problem is that when ODI saw sum it assumes this as an aggregate function and puts group by. Is there any way to make ODI understand it is not an aggregate function?
    I tried creating an option to specify whether it is analytic or not and updated IKM with no luck.
    <%if ( odiRef.getUserExit("ANALYTIC").equals("1") ) { %>
    <% } else { %>
    <%=odiRef.getGrpBy(i)%>
    <%=odiRef.getHaving(i)%>
    <% } %>
    Thanks in advance

    Thanks for the reply.
    But I think in ODI 11g getFrom() function is behaving differently, that is why it is not working.
    When I check out the A.2.18 getFrom() Method from Substitution API Reference document, it says
    Allows the retrieval of the SQL string of the FROM in the source SELECT clause for a given dataset. The FROM statement is built from tables and joins (and according to the SQL capabilities of the technologies) that are used in this dataset.
    I think getfrom also retrieves group by clause, I create a step in IKM just with *<%=odiRef.getFrom(0)%>* and I can see that even that query generated has a group by clause

  • Nth_value() function with IGNORE NULLS in oracle 10g

    Is there any easy way to mimic ORACLE 11g nth_value() function with IGNORE NULLS clause in 10g or earlier Oracle release?

    SQL> select  ename,
      2          sal,
      3          nth_value(sal,5) over() fifth_min_sal
      4    from  emp
      5    order by sal
      6  /
    ENAME             SAL FIFTH_MIN_SAL
    SMITH             800           1250
    JAMES             950           1250
    ADAMS            1100           1250
    WARD             1250           1250
    MARTIN           1250           1250
    MILLER           1300           1250
    TURNER           1500           1250
    ALLEN            1600           1250
    CLARK            2450           1250
    BLAKE            2850           1250
    JONES            2975           1250
    ENAME             SAL FIFTH_MIN_SAL
    SCOTT            3000           1250
    FORD             3000           1250
    KING             5000           1250
    14 rows selected.
    SQL> select  ename,
      2          sal,
      3          min(case rn when 5 then sal end) over() fifth_min_sal
      4    from  (
      5           select  ename,
      6                   sal,
      7                   row_number() over(order by sal nulls last) rn
      8             from  emp
      9          )
    10    order by sal
    11  /
    ENAME             SAL FIFTH_MIN_SAL
    SMITH             800           1250
    JAMES             950           1250
    ADAMS            1100           1250
    WARD             1250           1250
    MARTIN           1250           1250
    MILLER           1300           1250
    TURNER           1500           1250
    ALLEN            1600           1250
    CLARK            2450           1250
    BLAKE            2850           1250
    JONES            2975           1250
    ENAME             SAL FIFTH_MIN_SAL
    SCOTT            3000           1250
    FORD             3000           1250
    KING             5000           1250
    14 rows selected.
    SQL> SY.

  • Oracle 11g r1 install check fails on - Red Hat 5

    I'm getting the below check failures -
    Checking for glibc-devel-2.3.4-i386; Not found.     Failed <<<<
    Checking for glibc-devel-2.3.4-x86_64; Not found.     Failed <<<<
    Checking for gcc-c++-3.4.5; Not found.     Failed <<<<
    Everything else is ok, can any help  or suggest and resolution on this, I have tried to look for all the packages on all the Linux CD's and nothing there, I think these may have been updated not sure (new to Linux/Oracle).
    Full check output:
    Checking operating system requirements ...
    Expected result: One of enterprise-4,enterprise-5,redhat-4,redhat-5,SuSE-10,asianux-2,asianux-3
    Actual Result: redhat-4
    Check complete. The overall result of this check is: Passed
    ========================================================
    Checking operating system package requirements ...
    Checking for make-3.80; found make-1:3.81-3.el5-x86_64.     Passed
    Checking for binutils-2.15.92.0.2; found binutils-2.17.50.0.6-12.el5-x86_64.     Passed
    Checking for gcc-3.4.5; Not found.     Failed <<<<
    Checking for libaio-0.3.105-i386; found libaio-0.3.106-3.2-i386.     Passed
    Checking for libaio-0.3.105-x86_64; found libaio-0.3.106-3.2-x86_64.     Passed
    Checking for libaio-devel-0.3.105; found libaio-devel-0.3.106-3.2-x86_64.     Passed
    Checking for libstdc++-3.4.5-i386; found libstdc++-4.1.2-46.el5-i386.     Passed
    Checking for libstdc++-3.4.5-x86_64; found libstdc++-4.1.2-46.el5-x86_64.     Passed
    Checking for libstdc++-devel-3.4.5; found libstdc++-devel-4.1.2-46.el5-x86_64.     Passed
    Checking for sysstat-5.0.5; found sysstat-7.0.2-3.el5-x86_64.     Passed
    Checking for libgcc-3.4.5-i386; found libgcc-4.1.2-46.el5-i386.     Passed
    Checking for libgcc-3.4.5-x86_64; found libgcc-4.1.2-46.el5-x86_64.     Passed
    Checking for elfutils-libelf-0.97; found elfutils-libelf-0.137-3.el5-i386.     Passed
    Checking for elfutils-libelf-devel-0.97; found elfutils-libelf-devel-0.137-3.el5-i386.     Passed
    Checking for glibc-common-2.3.4; found glibc-common-2.5-42-x86_64.     Passed
    Checking for glibc-devel-2.3.4-i386; Not found.     Failed <<<<
    Checking for glibc-devel-2.3.4-x86_64; Not found.     Failed <<<<
    Checking for gcc-c++-3.4.5; Not found.     Failed <<<<
    Checking for compat-libstdc++-33-3.2.3-i386; found compat-libstdc++-33-3.2.3-61-i386.     Passed
    Checking for compat-libstdc++-33-3.2.3-x86_64; found compat-libstdc++-33-3.2.3-61-x86_64.     Passed
    Check complete. The overall result of this check is: Failed <<<<
    Problem: Some packages required for the Oracle Database 11g to function properly are missing (see above).
    Recommendation: Install the required packages before continuing with the installation.
    ========================================================
    Checking kernel parameters
    Checking for semmsl=250; found semmsl=250.     Passed
    Checking for semmns=32000; found semmns=32000.     Passed
    Checking for semopm=100; found semopm=100.     Passed
    Checking for semmni=128; found semmni=128.     Passed
    Checking for shmmax=536870912; found shmmax=68719476736.     Passed
    Checking for shmmni=4096; found shmmni=4096.     Passed
    Checking for shmall=2097152; found shmall=4294967296.     Passed
    Checking for file-max=65536; found file-max=65536.     Passed
    Checking for VERSION=2.6.9; found VERSION=2.6.18-164.el5.     Passed
    Checking for ip_local_port_range=1024 - 65000; found ip_local_port_range=1024 - 65000.     Passed
    Checking for rmem_default=4194304; found rmem_default=4194304.     Passed
    Checking for rmem_max=4194304; found rmem_max=4194304.     Passed
    Checking for wmem_default=262144; found wmem_default=4194304.     Passed
    Checking for wmem_max=262144; found wmem_max=4194304.     Passed
    Check complete. The overall result of this check is: Passed
    ========================================================
    Checking Recommended glibc version
    Expected result: ATLEAST=2.3.4-2.19
    Actual Result: 2.5-42
    Check complete. The overall result of this check is: Passed
    ========================================================
    Checking physical memory requirements ...
    Expected result: 922MB
    Actual Result: 1960MB
    Check complete. The overall result of this check is: Passed
    ========================================================
    Checking available swap space requirements ...
    Expected result: 2940MB
    Actual Result: 3935MB
    Check complete. The overall result of this check is: Passed
    ========================================================
    Checking Network Configuration requirements ...
    Check complete. The overall result of this check is: Not executed <<<<
    Recommendation: Oracle supports installations on systems with DHCP-assigned public IP addresses. However, the primary network interface on the system should be configured with a static IP address in order for the Oracle Software to function properly. See the Installation Guide for more details on installing the software on systems configured with DHCP.
    ========================================================
    Checking PATH environment variable...
    Check complete. The overall result of this check is: Passed
    ========================================================
    Checking for sufficient diskspace in TEMP location...
    Check complete. The overall result of this check is: Passed
    ========================================================
    Checking LD_LIBRARY_PATH environment variable...
    Check complete. The overall result of this check is: Passed
    ========================================================
    Validating ORACLE_BASE location (if set) ...
    Check complete. The overall result of this check is: Passed
    ========================================================
    Checking Oracle Home path for spaces...
    Check complete. The overall result of this check is: Passed
    ========================================================
    Checking for proper system clean-up....
    Check complete. The overall result of this check is: Passed
    ========================================================
    Checking for Oracle Home incompatibilities ....
    Actual Result: NEW_HOME
    Check complete. The overall result of this check is: Passed
    ========================================================
    thanks
    Dee

    If you are sure you have newer versions you may try
    runInstaller -ignoreSysPrereqs .
    That bypasses the pre-checks. But there's a risk even more severe errors will occur later.
    Werner

  • OC4J installed with 11g Database

    We are migrating our database and applications to 11g database and imbeded Application Express. Our current configuration is 10g database and JSPs running under the OC4J installed with the database. Our develoment server is running Windows XP and currently has 11g database 11.1.0.6.0 installed, and the Application Express configured and running properly.
    In order to provide a smooth transiition from OC4J to Application Express, we would like to continue to run some applications under the OC4J installed with the 11g database, and the converted applications in Application Express, all on the same server and same 11g database installation.
    I have started the OC4J processes on the development server with the script:
    cd \Oracle\Ora11g\Ora11gDB\oc4j\j2ee\home
    java -jar oc4j.jar
    and the system responds with:
    09/01/08 10:53:29 Oracle Containers for J2EE 10g (10.1.3.0.0) initialized
    However, when I try to bring up the console from a browser using:
    http://192.168.0.200:8888
    I get a the message that the page cannot be displayed.
    I understand the 11g OC4J standalone has been discontinued, however it looks like the 11g version I have installed is using the OC4J 10.1.3.0.0.
    So is the OC4J installed with 11g not functional, or am I missing a step in the startup/configuration, or URL call.
    Thanks,
    Rod

    Thanks for the replay Michael,
    Actually, on the development server I only have the 11g database installed with Application Express configured. The Apex runs on port 8080 and I see that in the netstat -ab listing, but I do not see port 8888 referenced anywhere. All the config files for the OC4J are standard from the db install. The port listed in the http-web-site.xml still shows 8888.
    Is it possible that the OC4J is not completing it's startup?
    The server.log, and the system-applicaiton.log both show entries indicating it has started, and the global-application.log shows it is started, however the defaultWebApp is not currently started. Here is the complete contents of that file:
    09/01/08 10:21:34.640 10.1.3.0.0 Started
    09/01/08 10:21:35.937 defaultWebApp: 10.1.3.0.0 Started
    09/01/08 10:22:13.968 defaultWebApp: 10.1.3.0.0 Stopped
    09/01/08 10:22:20.109 10.1.3.0.0 Started
    09/01/08 10:22:20.890 defaultWebApp: 10.1.3.0.0 Started
    09/01/08 10:49:06.203 defaultWebApp: 10.1.3.0.0 Stopped
    09/01/08 10:53:28.687 10.1.3.0.0 Started
    09/01/08 14:45:45.781 10.1.3.0.0 Started
    09/01/08 15:06:21.421 10.1.3.0.0 Started
    09/01/08 15:07:06.218 10.1.3.0.0 Started
    Thanks,
    Rod

  • Printing from MacBook Pro to Appletalk printer

    Computer: MacBook Pro OS X 10.4.8
    network: wireless via Apple Airport
    printer: NEC SilentWriter 1097 connected to Ethernet via a Appletalk-to-Ethernet adaptor
    Here is the situation:
    When I run the Printer Setup Utility, select "Add Printer," then press the "More Printers..." button, then select "AppleTalk" and "Local AppleTalk Zone," no printers show up in the list. Appletalk is enabled in the network settings and I can see the other Macs on the network. The other Macs (both PPC, one wired one wireless; both also running 10.4.8) on the network can see the Appletalk printer. The MacBook Pro (Intel) cannot.
    MacBook Pro Mac OS X (10.4.8)
    iMac G5   Mac OS X (10.4.8)  

    How is your Airport connected to the Ethernet-to-Localtalk adapter? Is it a direct connection from the LAN Ethernet port on the Airport or through a hub/switch/router? On my network both the Airport and the iPrint Ethernet-to-Localtalk adapter are connected to an Ethernet switch (as are 2-3 computers). I have had no problems printing to my HP 5MP via AppleTalk wirelessly from 2 other Macs. (Except that this is slow with complex documents due to the slow Localtalk connection.)
    Are you sure the Ethernet port on the Airport is enabled? How did you set up the Airport? Can you use other services such as iTunes sharing over the wireless connection?
    I am using the same laser printer driver whether I connect wirelessly or wired. Since the 802.11g should function as if it is a wired connection, I don't see why there should be a difference in drivers, as long as you use an ethernet workable driver as you are apparently doing. (I am not a printer guru, just a learner, so I could be wrong here, but the Appletalk over wireless 802.11g does work for me. I don't have an Intel Mac but I do want to get one soon so I hope there is not a problem in this regard.)

  • Current Object Name

    I found some leads but not a straight answer at forum history.
    There is a way to get the current procedure / function name in PL/SQL.
    I writing a generic error handler. Today I use a varaible for each procedure to store their names, but
    I would like to do it without this variable.
    Thanks.
    Oracle 10g

    From the TK link:
    How can I find the name of the procedure or function within a package that called me?
    Simple answer: you cannotOf course from 10g onwards you can use <tt>$$PLSQL_UNIT</tt> and <tt>$$PLSQL_LINE</tt> instead of parsing dbms_utility.format_call_stack, but it still doesn't get you the subprogram. People have suggested parsing user_source using <tt>$$PLSQL_UNIT</tt> and <tt>$$PLSQL_LINE</tt> although I'm not sure how practical or efficient that will be. Possibly you could have a function that cached results in an array for efficiency, although you have to be careful when compiling new versions of packages (11g's function result cache may solve that problem though, or PL/SQL Scope might help by letting you query user_identifiers instead of user_source). However at this point I think most people decide to stick with hardcoding.

  • 10g streams and resolving conflicts

    Hello
    i configured oracle streams on 2 databases using the wizards in enterprise manage (10gR2) r, the aim is to set up multi master replication quickly and easily.
    If i do this how do i resolve conflicts or are they resolved automatically? I read that you can call
    DBMS_APPLY_ADM.SET_UPDATE_CONFLICT_HANDLER(
    object_name => 'hr.locations',
    method_name => 'MAXIMUM',
    resolution_column => 'time',
    column_list => cols);
    but this is not inserted into teh scripts generated by enterprise manager. Is it there a default conflict policy? or can i
    configure this globally?
    Also i noticed that my servers from time to time stop reqwplication and flow gets paused with an enqueue error. Is this just a resource issue?
    I am limited currently as I am trying this out with vm images.
    Am willing to upgrade to 11g if functionality of streams is better.
    Thanks
    Edited by: user573756 on 06-Jun-2010 07:45

    You are seriously confusing totally different technologies.
    The name of this forum is Advanced Queueing.
    Your question appears to be about Streams
    Then you ask about multimaster replication which sounds like Advanced Replication.
    What are you actually doing and with what technology are you doing it?
    I have no experience doing this with EM, only hand coded scripts via SQL*Plus so I can not comment on what EM is doing or not doing.
    But without a clear understanding of what conflicts are possible in the case of your design it is impossible to advise you further. A well
    designed system should make conflicts if not impossible ... extremely rare and narrowly focused.

Maybe you are looking for

  • Laserjet M1522nf MFP- scanner not working

    I bought this new Multifunction unit 2 weeks ago.  Since then I can't get it to scan.  I've updated the firmware and uninstalled and installed the full software from the website(as recommended by the call centre support).  I still get a note that sta

  • Best Practices for Defining NDS Java Projects...

    We are doing a Proof of Concept on using NDS to develop non-SAP Java applications.  We are attempting to determine if we can replace our current Java development tools with NDS/WAS. We are struggling with SAP's terminology and "plumbing" for setting

  • Storing and retrieving arabic in SQL Server 2000

    hello, i realize this problem has been posted lots before but i read in the forum and i couldn't find a solution to fix my problem i am developing a desktop application in java and sql server 2000, and i'm using JBuilder for writing my java codes her

  • How do I send a fax using Word for Mac Lion?

    I have an iMac with Lion 10.7.4 and use Microsoft Word for Mac 2011.  My internet connection is Broadband ADSL. I wish to periodically send a fax - in days gone by I have used PageSender. Any suggestions?

  • No Boot Up

    after I turned on my iMac running 10.4.1, all I get is the "gong" audio and a totally blank screen. I tried booting up again holding my finger down on the on button until I heard a beep. This didn't work either. Just a blank screen. Does this indicat