Creating view containing case statements received error ORA-22992

We have a create view referencing table through dblink. The select statement in the create view has case statements, when running the Select statement alone, results are return. However, when executing the create view, it returns:
SQL Error: ORA-22992: cannot use LOB locators selected from remote tables
22992. 00000 - "cannot use LOB locators selected from remote tables"
*Cause:    A remote LOB column cannot be referenced.
*Action:   Remove references to LOBs in remote tables.
One of the source table has LOB column but not in the select statement. The strange thing is when removing the case statement from the select, create view works fine. Can anybody tell me what caused the error and how to fix it?
Create View Snippet:
CREATE OR REPLACE VIEW "ABC"."XYZ" (....
AS SELECT
CASE
WHEN A.OUTAGE =1
THEN 'Y'
ELSE 'N'
END AS OUTAGE,
FROM
TABLEA@XXXX A
LEFT JOIN TABLEB@XXXX B
ON
A.LOC =B.LO
AND A.SITE =B.SITE
WHERE
A.CLASS ='CUSTOMER'
AND A.PLUSSISGIS =1;

What is your 4 digit Oracle version?
Try rewriting the query to not use ANSI SQL92 joins. I found a link where this solved a problem similar to yours.
DBLink problem ORA-22992
>
But, look at this curious thing: I re-write the query as follows:
SELECT A.ID, A.ID_REF, A.EVENDATE, B.DESCRIPTION
FROM A@ORCL A, B@ORCL B
WHERE A.ID_REF = B.ID_REF;
and it works fine... It seems like Oracle don't like the ANSI SQL92...
>
Several similar links by googling: 'SQL Error: ORA-22992'
http://www.dbuggr.com/smallwei/solution-error-ora-22992-lob-locators-selected-remote-tabl/
>
Fixing ORA-22992 “cannot use LOB locators selected from remote tables” error
You have migrated your Oracle 9i database to 10g and a distributed statement which worked fine in 9i now is getting error ORA-22992 “cannot use LOB locators selected from remote tables”. Even though the related remote table(s) does not contain any LOB column datatype.
FIX:
There is a bug on 9i,10g, and 11g that is related to this error. It is being fixed in 11.2. It can also be backported for previous 9i, 10g and 11g releases under the latest patchsets.
You may also do a workaround as follow:
Modify the affected SQL by adding the TO_CHAR function. For example:
-- Original SQL:
SELECT NVL2('a', 'b','c' ) FROM dual@remote_db;
-- Modified SQL:
SELECT TO_CHAR(NVL2('a','b','c')) FROM dual@remote_db;
>
See if that helps.

Similar Messages

  • Bind Variable In Case Statement Produces Error ORA-01036

    When running the following command using ODP.Net 10.1.0.301 I recieve error 1036. Statement runs fine within SQL+ and Toad.
    Dim SQL As String = "SELECT CASE WHEN EXISTS(SELECT part_nbr FROM item_master WHERE part_nbr=:part_number) THEN 1 ELSE 0 END AS RECORD_EXISTS FROM Dual"
    Dim OraConnection As New OracleConnection(connectstring)
    Dim OraCommand As New OracleCommand(SQL, OraConnection)
    OraCommand.Parameters.Add("part_number", OracleDbType.Varchar2).Value = PartNumber
    Dim Obj as Object=OraCommand.ExecuteScalar

    Hi Michael,
    I was able to get your code to work on my system by changing the SQL statement as follows:
    SELECT (CASE WHEN EXISTS(SELECT part_nbr FROM item_master WHERE part_nbr=:part_number) THEN 1 ELSE 0 END) AS RECORD_EXISTS FROM Dual
    I simply enclosed the case statement in opening and closing parenthesis...
    Hope that helps,
    - Mark

  • Problem with embeding the same view in dynamically created view container

    Hello Experts,
                  I am getiing a dump when i try to embed the same view inside the dynamically created view container of
    dynamically created tabs of a tabstrip
    The requirement go like this, i have 2 views in which i have have to embed the 2nd view to view1 where i have an empty
    tabstrip without tabs. During runtime i create tabs as well as view containers accordingly and then try to embed view2 in tabs.
    I have put the below mentioned code in HANDLEIN,
      DATA: lref_vcntlr  TYPE REF TO if_wd_view_controller,
            lref_comp    TYPE REF TO if_wd_component_usage,
            lv_embed_pos TYPE string.
      lref_vcntlr = wd_this->wd_get_api( ).
      lv_embed_pos = 'FILE_PERS_EDIT/VC_GENERAL'.
      TRY.
          CALL METHOD lref_vcntlr->do_dynamic_navigation
            EXPORTING
              source_window_name        = 'FILE_PERSISTENCE_WND'          " Window
              source_vusage_name        = 'FILE_PERS_EDIT_USAGE_1'       " Source View usage
              source_plug_name          = 'TO_EDIT_LAYOUT'                       " Outbound plug
              target_view_name          = 'PERS_EDIT_LAYOUT'                  " Second view to be embedded
              target_plug_name          = 'IN'                                                  " Second view inboun plug
              target_embedding_position = lv_embed_pos
            RECEIVING
              component_usage           = lref_comp.
        CATCH cx_wd_runtime_repository .
      ENDTRY.
      wd_this->fire_to_edit_layout_plg( ).
    This works fine for the first time.
    However onaction tab select i change the embeding position( 'FILE_PERS_EDIT/view container name of different tab') of the view2 an try to embed view2 in a different tab.
    At this point i get a dump stating View2 already present in the window 'FILE_PERSISTENCE_WND' of component.
    I think, the view2 embediing has to be removed before i add the view2 in a different tab
    Kindly let me know how to remove view2 embedding from tab1 before i add a view2 to a different tab or is there any other
    means to handle this problem?
    Thanks & Best Regards,
    Srini.

    Hello Srini,
    I found a solution to your problem, because I had a similar task.
    In WDDOINIT I changed the method do_dynamic_navigation to if_wd_navigation_services_new~prepare_dynamic_navigation:
    DATA:
        l_view_controller_api TYPE REF TO if_wd_view_controller.
      l_view_controller_api = wd_this->wd_get_api( ).
      TRY.
          CALL METHOD l_view_controller_api->if_wd_navigation_services_new~prepare_dynamic_navigation
            EXPORTING
              source_window_name        = 'WDW_MAIN'
              source_vusage_name        = 'VW_SUB_USAGE_1'
              source_plug_name          = 'TO_VW_CONTENT'
              target_component_name     = 'ZTEST_DYNAMIC'
              target_view_name          = 'VW_CONTENT'
              target_plug_name          = 'DEFAULT'
              target_embedding_position = 'VW_MAIN/VC_TAB.VW_SUB/TAB1_VC'
            RECEIVING
              repository_handle         = wd_this->g_rep_handle.
        CATCH cx_wd_runtime_repository .
      ENDTRY.
      wd_this->fire_to_vw_content_plg( param1 = 'TAB1' ).
    In the action I first deleted the navigation targets, then navigated to the empty-view and last I called my target view:
      DATA:
        lv_position           TYPE string,
        l_view_controller_api TYPE REF TO if_wd_view_controller,
        lr_view_usage         TYPE REF TO if_wd_rr_view_usage,
        lr_view_***_t         TYPE wdrr_vca_objects,
        lr_view_***           LIKE LINE OF lr_view_***_t.
      l_view_controller_api = wd_this->wd_get_api( ).
      lr_view_usage = wd_this->g_view->get_view_usage( ).
      lr_view_usage->delete_all_navigation_targets( plug_name = 'TO_VW_CONTENT' ).
      CLEAR lv_position.
      CONCATENATE 'VW_MAIN/VC_TAB.VW_SUB/' old_tab '_VC' INTO lv_position.
      TRY.
          l_view_controller_api->if_wd_navigation_services_new~do_dynamic_navigation(
          source_window_name = 'WDW_MAIN'
          source_vusage_name = 'VW_SUB_USAGE_1'
          source_plug_name   = 'TO_EMPTYVIEW'
          target_component_name = 'ZTEST_DYNAMIC'
          target_view_name   = 'EMPTYVIEW'
          target_plug_name   = 'DEFAULT'
          target_embedding_position = lv_position ).
        CATCH cx_wd_runtime_repository.
      ENDTRY.
      CLEAR lv_position.
      CONCATENATE 'VW_MAIN/VC_TAB.VW_SUB/' tab '_VC' INTO lv_position.
      TRY.
          wd_this->g_rep_handle = l_view_controller_api->if_wd_navigation_services_new~prepare_dynamic_navigation(
            source_window_name = 'WDW_MAIN'
            source_vusage_name = 'VW_SUB_USAGE_1'
            source_plug_name   = 'TO_VW_CONTENT'
            target_component_name = 'ZTEST_DYNAMIC'
            target_view_name   = 'VW_CONTENT'
            target_plug_name   = 'DEFAULT'
            target_embedding_position = lv_position ).
        CATCH cx_wd_runtime_repository.
      ENDTRY.
      wd_this->fire_to_vw_content_plg( param1 = tab ).
    Ann.: I my example, I had 3 views: VW_MAIN which embedds VW_SUB. VW_SUB has the tabs in it and VW_SUB embedds VW_CONTENT.
    BR,
    Roland

  • How to create Shellscript containing CallSAPurgeAllCache statement.

    How to create Shellscript containing CallSAPurgeAllCache statement.Can it be scheduled through informatica and Linux environment.

    You can have a text file or any ext with content as Call SAPurgeAllCache()
    in other file use this
    nqcmd -d AnalyticsWeb -u Administrator -p Administrator -s <filename.ext>
    Pls mark if helps

  • JDBC receiver error:ORA-06550: line 1, column 7: PL/SQL

    Hi,
    I am geting this error in JDBC Receiver adapter. when  i call the stored procedure.
    Last week it works fine.But i today i faced this error.
    Error Unable to execute statement for table or stored procedure. 'spec_utilities.SP_DELETE(Structure 'unassign') due to java.sql.SQLException: ORA-06550: line 1, column 7: PLS-00201: identifier 'SPEC_UTILITIES.SP_DELETE' must be declared ORA-06550: line 1, column 7: PL/SQL: Statement ignored 
    Error JDBC message processing failed; reason Error processing request in sax parser: Error when executing statement for table/stored proc. 'spec_utilities.SP_DELETE(structure 'unassign'): java.sql.SQLException: ORA-06550: line 1, column 7: PLS-00201: identifier 'SPEC_UTILITIES.SP_DELETE' must be declared ORA-06550: line 1, column 7: PL/SQL: Statement ignored 
    Error MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'spec_utilities.SP_DELETE (structure 'unassign'): java.sql.SQLException: ORA-06550: line 1, column 7: PLS-00201: identifier 'SPEC_UTILITIES.SP_DELETE'must be declared ORA-06550: line 1, column 7: PL/SQL: Statement ignored 
    My stored procedure structure is:
    <unassign>
    <SP_DELETE action="EXECUTE">
      <table>spec_utilities.SP_DELETE</table>
      <PAE isInput="true" type="VARCHAR">447848</pAEIC>
      <SKEY isInput="true" type="NUMERIC">4548545</pSKEY>
      <USER isOutput="true" type="VARCHAR" />
      <UNIT  isOutput="true" type="VARCHAR" />
      <EMAIL isOutput="true" type="VARCHAR" />
      </SP_DELETE>
      </unassign>
    Can you suggest me where is this error.
    Thank you
    Sateesh

    Hi,
       if it was executing fine earlier then check the below
    1. user permissions level at the database..whether it has access to the required SP or not..
    2. Check if there was any change in the SP..which has not been communicated...
    HTH
    Rajesh

  • Materialized view fast refresh ...getting ORA-22992: error

    Hi All,
    Oracle version 11.1.0.7
    While creating a materialized view(Fast refresh) on remote tables ... i am getting the ORA-22992: cannot use LOB locators selected from remote tables ... error.
    but the actual scenario is... i am not selecting any of the BLOB/LOB columns from the remote tables. I did n't include them in my materialized query.
    I am able to refresh it complete but couldn't refresh it fast. Here i want to mention other thing... when ever i have records in Mat view log(Base table has a blob cloumns in it)
    i am getting the above error. when no record in the Mat view log(i.e on BLOB base table) .. i can able to refresh it as FAST.
    MV_CAPABILITIES table tells that ...My Mat view is able to refresh it FAST.I don't know howw to approach to solve this issue.could some one tell me the approach..to solve it?
    Here is the sample code ....this is what i have done so fat
    session 1 (REMOTE_ONE)
    I have created synonyms for the remote tables on current schema. That's why i didn't include @DBLINK.
    create table RT_A ( col1_A varchar2(20), col2_A BLOB,COL3_A NUMBER);
    create a table RT_B (COl1_B varchar2(20), col2_B BLOB, COL3_B NUMBER);
    create a table RT_C (COL1_C varchar2(20), col2_C VARCHAR2,COL3_C NUMBER);
    create  MATERIALIZED VIEW LOG ON RT_A 
    WITH  ROWID EXCLUDING NEW VALUES;
    create  MATERIALIZED VIEW LOG ON RT_B
    WITH  ROWID EXCLUDING NEW VALUES;
    create  MATERIALIZED VIEW LOG ON RT_C 
    WITH  ROWID EXCLUDING NEW VALUES;
    grant select on RT_A to CUURRENT_ONE with grant option;
    grant select on RT_B to CUURRENT_ONE with grant option;
    grant select on RT_C to CUURRENT_ONE with grant option;
    grant select on MLOG$_RT_A to CUURRENT_ONE with grant option;
    grant select on MLOG$_RT_B to CUURRENT_ONE with grant option;
    grant select on MLOG$_RT_C to CUURRENT_ONE with grant option;Session 2 (CUURRENT_ONE)
    create materialized view ABC_MV
    BUILD IMMEDIATE REFRESH FORCE ON DEMAND START WITH SYSDATE NEXT SYSDATE+1
    AS
    select A.ROWID AS A_ROWID,
    B.ROWID as B_ROWID,
    C.ROWID AS C_ROWID,
    A.COL1_A,
    B.col1_B,
    c.col1_c
    from RT_A, RT_B,RT_C
    where COL3_A = COL3_B(+)
    and COL3_B = COL3_C(+)Appreciate your help.
    Thanks,
    Mike

    Thanks for the reply
    In that he/she is selecting the LOB column from the remote database(master site).
    I am just referencing the table which has BLOB column in it.I am not referencing any LOB column in my select(Mat view) query...
    is there anything i need to check..?
    Regards,
    Mike

  • Create a package with one function - Error Ora-00907

    Hello,
    I want to create a package which should store one function.
    The code looks like this:
    Package Header:
    CREATE OR REPLACE
    PACKAGE "PCK_REPORT" AS
      TYPE t_varchar2 IS TABLE OF VARCHAR2(4000);
      FUNCTION f_tabtostring(i_varchar2 IN t_varchar2) RETURN VARCHAR2;
    END;Package Body:
    CREATE OR REPLACE PACKAGE BODY "PCK_REPORT" AS
      FUNCTION f_tabtostring (i_varchar2 IN t_varchar2) RETURN VARCHAR2 IS
                                o_string VARCHAR2(32767);
      BEGIN
        FOR i IN 1 .. i_varchar2.COUNT LOOP
          IF i != i_varchar2.FIRST THEN
            o_string := o_string || ', ';
          END IF;
          o_string := o_string || i_varchar2(i);
        END LOOP;
        RETURN o_string;
      END f_tabtostring;
    END;Comilation works fine, but when I try to use the function with the following example:
    SELECT pck_report.f_tabtostring(CAST(COLLECT(mytable.col1) as t_varchar2)) as column1
    FROM mytable;it only returns an error ORA-00902: Unknown datatype.
    When I add the package name to the datatype at the cast in the sql statement, it returns an error ORA-00903.
    What is my misstake?
    Thanks,
    Thomas

    create a global type, and not in the package :
    1* create or replace type t_varchar2 is table of varchar2(100)
    SQL> /
    Type created.
    1 CREATE OR REPLACE PACKAGE "PCK_REPORT" AS
    2 FUNCTION f_tabtostring(i_varchar2 IN t_varchar2) RETURN VARCHAR2;
    3* END;
    SQL> /
    Package created.
    1 CREATE OR REPLACE PACKAGE BODY "PCK_REPORT" AS
    2 FUNCTION f_tabtostring (i_varchar2 IN t_varchar2) RETURN VARCHAR2 IS
    3 o_string VARCHAR2(32767);
    4 BEGIN
    5 FOR i IN 1 .. i_varchar2.COUNT LOOP
    6 IF i != i_varchar2.FIRST THEN
    7 o_string := o_string || ', ';
    8 END IF;
    9 o_string := o_string || i_varchar2(i);
    10 END LOOP;
    11 RETURN o_string;
    12 END f_tabtostring;
    13* END;
    SQL> /
    Package body created.
    SQL> select col1 from mytable;
    COL1
    test1
    test2
    test3
    test4
    test5
    test6
    test7
    test8
    test9
    test10
    10 rows selected.
    SQL> select pck_report.f_tabtostring(cast(collect(mytable.col1) as t_varchar2)) as col1 from mytable
    COL1
    test1, test2, test3, test4, test5, test6, test7, test8, test9, test10

  • Embeding ALV table in dynamically created view container UI element

    Hi ,
    I created a view container UI element dynamically .that is working fine . I am using standard ALV component . Now i want to embed ALV table in View container UI element dynamically > please help me in this .
    Thanks in advance ,
    Vijay vorsu

    Hi,
    I am not sure how to do add an ALV table dynamically but you can have a look at this blog which talks about creating and adding a TABLE ui element dynamically. And TABLE UI element may solve your problem.
    http://mamma1360.blog.163.com/blog/static/314740992008127115551165/
    Thanks,
    Abhishek

  • JDBC receiver error - ORA-00913: too many values

    Hi all,
    Facing a strange issue with proxy-jdbc issue.
    Message fails with error - ORA-00913: too many values
    Handling the missing fields from the source with - Empty String in the comm. Channel
    Empty string handling works fine - whenever there is no value coming form souce, null is inserted into the field value on the DB.
    Trying to insert the same data manually, it works fine. But gives this error END2END.
    When testing END2END, if the field values are made couple of chars less in length, that works fine....fails with the actual data.....seems to be the issue with the field lenghts on the DB.
    Increased all the lengths by 10 chars..still does not work.
    Except the key fields of the DB table, all others are nullable.
    Is there anything else, I am missing...
    Note: Generally, ORA-00913: too many values comes when the number of fields and the number of values donot match in an INSERT/UPDATE statement.
    reg

    Hi
    When testing END2END, if the field values are made couple of chars less in length, that works fine....fails with the actual data.....seems to be the issue with the field lenghts on the DB.
    Increased all the lengths by 10 chars..still does not work
    Well the error you mention generally occurs when the insert statement has more fields mention than in the table .ie you are mentioning extra field .aur this error is due to the field lenght of any of the filed you had to check in the oracle itself  by using the command DESCRIBE there you ll be able to see the field lenght of each and every field .
    hope your problem got resolved :
    Regard's
    Chetan Ahuja

  • Error ORA-22992, what to do?

    I created database link to another oracle db (same version: 9.2). Now I want to create view for a table with BLOB.
    "create or replace view persons as select * from persons@serv2"
    What can I do?

    http://asktom.oracle.com/pls/ask/f?p=4950:8:9407757796067305436::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:5322964030684
    ORA-22992 cannot use LOB locators selected from remote tables
    Cause: A remote LOB column cannot be referenced.
    Action: Remove references to LOBs in remote tables.

  • Error creating view with CASE -- WHEN statement in SQL*Plus

    I am using Oracle 8i 8.1.7
    I have an Oracle view which uses CASE...WHEN statements.
    The view compiles fine in DBA studio.
    Using TOAD I saved the view as an *.sql file.
    However, when I try to create the view in SQL*Plus I get the following error:
    SP2-0734: unknown command beginning "CASE WHEN ..." - rest of line ignored.
    According to the documentation CASE -- WHEN has been implemented since since Oracle 8i rel. 2 (8.1.6)

    Well I'm using 8.1.6.3 and CASE and DECODE both work for me:
    SQL> create or replace view v_accs as select account_name, txn,
    2 decode(credit, 0, 'DB', 'CR') t_type
    3 from accs;
    View created.
    SQL> select * from v_accs;
    ACCOUNT_NA TXN T_
    APC 1 DB
    ABC 2 DB
    HJJ 3 DB
    HJH 4 CR
    HJK 5 CR
    APC 6 DB
    APC 7 DB
    ABC 8 DB
    ABC 9 DB
    HJJ 10 DB
    HJJ 11 DB
    HJH 12 DB
    HJH 13 DB
    HJK 14 DB
    HJK 15 CR
    15 rows selected.
    SQL> create or replace view v_accs as select account_name, txn,
    2 case when credit = 0 then 'DB' else 'CR'end as t_type
    3* from accs
    View created.
    SQL> select * from v_accs;
    ACCOUNT_NA TXN T_
    APC 1 DB
    ABC 2 DB
    HJJ 3 DB
    HJH 4 CR
    HJK 5 CR
    APC 6 DB
    APC 7 DB
    ABC 8 DB
    ABC 9 DB
    HJJ 10 DB
    HJJ 11 DB
    HJH 12 DB
    HJH 13 DB
    HJK 14 DB
    HJK 15 CR
    15 rows selected.
    SQL>
    rgds, APC

  • Receiving error ORA-01555: snapshot too old:

    Need some info...
    Currently seeing ORA-01555: snapshot too old: rollback segment number 18 with name "_SYSSMU18$" too small.
    Info:
    SQL> show parameter undo
    NAME TYPE VALUE
    undo_management string AUTO
    undo_retention integer 4200
    undo_suppress_errors boolean FALSE
    undo_tablespace string UNDOTBS_1
    SQL> select max(maxquerylen) from v$undostat;
    MAX(MAXQUERYLEN)
    35792
    SQL>
    run this based on threads in here:
    SQL> select (35792/60)/60 query,(4200/60)/60 retention from dual;
    QUERY RETENTION
    9.94222222 1.16666667
    I need some help figuring out what to set my undo_retention to? Should it be 36000?
    Any help is appreciated.
    Thanks

    Jamie CC wrote:
    The query that was in the alert log was running against a table with 779 rows. The query uses the index (not worried if it wouldn't for that small a table) and came back in one second... This makes no sense. Is it possible that there was a sub-query running and the wrong query was put into the alert log?More likely the query in the alert log was one that died, but the cause was a different query. Remember, the meaning of an ORA-1555 is that the query needed to go back to undo in order to gather a view of the data to a certain SCN, and the data had already been aged out. So the alert log gets the one that died, but the cause is another one. Feel lucky at that, in older versions it was considered an app error IIRC.
    Search for the error on asktom.oracle.com for a number of scenarios, and you might want to review the part of the concepts manual about read consistency to make sense of it all. You might also find Tom's book explanation about it with a google search.
    Also, depending on your version, there may be things to set like retention guarantee.
    I've found on the ERP/MRP systems I work on these errors will appear weekly from people leaving sessions connected after they go home, so I kill 'em off at night. And that's with an undo nearly as big as the db data, that's normally almost empty.

  • Error in Create Views

    Hi All,
    Create view is giving the following error : com.waveset.exception.ItemNotFound.
    Below is the code as well the error in the trace....please suggest how to find the exact error and the error in the code:
    <Action id='1' name='Create Views' application='com.waveset.session.WorkflowServices'>
    <Argument name='op' value='createView'/>
    <Argument name='type' value='Process'/>
    <Argument name='task.owner' value='Configurator'/>
    <Argument name='endUser' value='true'/>
    <Argument name='result'>
    <ref>variableMapping</ref>
    </Argument>
    <Argument name='process'>
    <ref>currentWorkflow</ref>
    </Argument>
    <Argument name='viewId' value='Process'/>
    <Return from='view' to='newViews' append='true'/>
    </Action>
    <Action id='2' name='Check in Views' application='com.waveset.session.WorkflowServices'>
    <Iterate for='newView' in='newViews'/>
    <Argument name='op' value='checkinView'/>
    <Argument name='view' value='$(newView)'/>
    <Argument name='endUser' value='true'/>
    Trace error:
    Action Create Views
    Result title set to 'Create Views'
    Argument op = createView
    Argument type = Process
    Argument task.owner = Configurator
    Argument endUser = true
    Resolved reference variableMapping = {UserName-1=User1, TestADT, RequestType=EntireSystem, AutoImplementationReqd=No, SA Note=null, Position=null, stewardId=[[email protected]], formButton=Submit, [email protected], StewardImplementationReqd=Yes, Name=TestADT User1, SecurityImplementationReqd=Yes, ResGroupMap=null, [email protected], Country=null, [email protected], SubArea=null, selectedForm=SRF RemoveUser, SystemName=AppTalk (H02), isAutomation=false, StewardApprovalReqd=No, Explanation-1=User Left Best Buy, TaskRoles=null, Permissions01=aAS, resourceAction=null, BusinessArea=null, Manager=Manager, TestADT, GRCRequestReqd=No, SecurityAdminApprovalReqd=No, frm_ApprovalsList=[[email protected], approver2:SRS], currentWorkflow=Old Framework_SRW Type 1 Approval Workflow, Optional Comments=ASASA, requestorUserId=a9200701, siteID=null, selectedEnablers=null, endDate=null, Request=Me, UID-1=A9200701, StewardApprovalReqd2=No, selectedEnablersLabels=null, selectedTaskRolesLabels=null, ManagerApprovalReqd=No, Rows=1, startDate=null}
    Argument result = {UserName-1=User1, TestADT, RequestType=EntireSystem, AutoImplementationReqd=No, SA Note=null, Position=null, stewardId=[[email protected]], formButton=Submit, [email protected], StewardImplementationReqd=Yes, Name=TestADT User1, SecurityImplementationReqd=Yes, ResGroupMap=null, [email protected], Country=null, [email protected], SubArea=null, selectedForm=SRF RemoveUser, SystemName=AppTalk (H02), isAutomation=false, StewardApprovalReqd=No, Explanation-1=User Left Best Buy, TaskRoles=null, Permissions01=aAS, resourceAction=null, BusinessArea=null, Manager=Manager, TestADT, GRCRequestReqd=No, SecurityAdminApprovalReqd=No, frm_ApprovalsList=[[email protected], approver2:SRS], currentWorkflow=Old Framework_SRW Type 1 Approval Workflow, Optional Comments=ASASA, requestorUserId=a9200701, siteID=null, selectedEnablers=null, endDate=null, Request=Me, UID-1=A9200701, StewardApprovalReqd2=No, selectedEnablersLabels=null, selectedTaskRolesLabels=null, ManagerApprovalReqd=No, Rows=1, startDate=null}
    Resolved reference selectedForm = SRF RemoveUser
    Resolved reference currentWorkflow = Old Framework_SRW Type 1 Approval Workflow
    Argument process = Old Framework_SRW Type 1 Approval Workflow
    Argument viewId = Process
    Argument variableMapping = {UserName-1=User1, TestADT, RequestType=EntireSystem, AutoImplementationReqd=No, SA Note=null, Position=null, stewardId=[[email protected]], formButton=Submit, [email protected], StewardImplementationReqd=Yes, Name=TestADT User1, SecurityImplementationReqd=Yes, ResGroupMap=null, [email protected], Country=null, [email protected], SubArea=null, selectedForm=SRF RemoveUser, SystemName=AppTalk (H02), isAutomation=false, StewardApprovalReqd=No, Explanation-1=User Left Best Buy, TaskRoles=null, Permissions01=aAS, resourceAction=null, BusinessArea=null, Manager=Manager, TestADT, GRCRequestReqd=No, SecurityAdminApprovalReqd=No, frm_ApprovalsList=[[email protected], approver2:SRS], currentWorkflow=Old Framework_SRW Type 1 Approval Workflow, Optional Comments=ASASA, requestorUserId=a9200701, siteID=null, selectedEnablers=null, endDate=null, Request=Me, UID-1=A9200701, StewardApprovalReqd2=No, selectedEnablersLabels=null, selectedTaskRolesLabels=null, ManagerApprovalReqd=No, Rows=1, startDate=null}
    Argument initialApprovals = [[email protected], approver2:SRS]
    Calling application 'com.waveset.session.WorkflowServices'
    Application requested argument op
    Application requested argument viewId
    Application requested all arguments
    Application requested argument subject
    Application requested argument loginApplication
    Application requested argument authorized
    Application returned =
    <WavesetResult>
    <ResultItem type='error' status='error'>
    <ResultError throwable='com.waveset.exception.ItemNotFound'>
    <Message id='TaskDefinition:Old Framework_SRW Type 1 Approval Workflow'>
    </Message>
    <StackTrace>com.waveset.exception.ItemNotFound: TaskDefinition:Old Framework_SRW Type 1 Approval Workflow&#xA;&#x9;at com.waveset.object.ObjectCache.getHandle(ObjectCache.java:851)&#xA;&#x9;at com.waveset.object.ObjectCache.getObject(ObjectCache.java:578)&#xA;&#x9;at com.waveset.object.ObjectCache.getObject(ObjectCache.java:546)&#xA;&#x9;at com.waveset.server.InternalSession.getObject(InternalSession.java:526)&#xA;&#x9;at com.waveset.server.ViewMaster.getTaskDefinition(ViewMaster.java:719)&#xA;&#x9;at com.waveset.view.ProcessViewer.findProcess(ProcessViewer.java:847)&#xA;&#x9;at com.waveset.view.ProcessViewer.createView(ProcessViewer.java:386)&#xA;&#x9;at com.waveset.object.ViewMaster.createView(ViewMaster.java:499)&#xA;&#x9;at com.waveset.session.WorkflowServices.createView(WorkflowServices.java:1369)&#xA;&#x9;at com.waveset.session.WorkflowServices.call(WorkflowServices.java:478)&#xA;&#x9;at com.waveset.workflow.WorkflowEngine.callApplication(WorkflowEngine.java:4381)&#xA;&#x9;at com.waveset.workflow.WorkflowEngine.callAction(WorkflowEngine.java:4208)&#xA;&#x9;at com.waveset.workflow.WorkflowEngine.callAction(WorkflowEngine.java:3521)&#xA;&#x9;at com.waveset.workflow.WorkflowEngine.execute(WorkflowEngine.java:3361)&#xA;&#x9;at com.waveset.workflow.WorkflowEngine.makeTransition(WorkflowEngine.java:2901)&#xA;&#x9;at com.waveset.workflow.WorkflowEngine.checkExplicitTransitions(WorkflowEngine.java:2792)&#xA;&#x9;at com.waveset.workflow.WorkflowEngine.checkTransitions(WorkflowEngine.java:2578)&#xA;&#x9;at com.waveset.workflow.WorkflowEngine.processSteps(WorkflowEngine.java:1983)&#xA;&#x9;at com.waveset.workflow.WorkflowEngine.walkCases(WorkflowEngine.java:1835)&#xA;&#x9;at com.waveset.workflow.WorkflowEngine.walkCases(WorkflowEngine.java:1818)&#xA;&#x9;at com.waveset.workflow.WorkflowEngine.walkCases(WorkflowEngine.java:1743)&#xA;&#x9;at com.waveset.workflow.WorkflowEngine.execute(WorkflowEngine.java:861)&#xA;&#x9;at com.waveset.workflow.WorkflowEngine.execute(WorkflowEngine.java:505)&#xA;&#x9;at com.waveset.workflow.WorkflowExecutor.execute(WorkflowExecutor.java:256)&#xA;&#x9;at com.waveset.task.TaskThread.run(TaskThread.java:132)&#xA;</StackTrace>
    </ResultError>
    </ResultItem>
    </WavesetResult>

    where is your 'TaskDefinition:Old Framework_SRW Type 1 Approval Workflow' objcet, have you imported that workflow into Idm or check the name.
    error:
    com.waveset.exception.ItemNotFound: TaskDefinition:Old Framework_SRW Type 1 Approval Workflow

  • Case statement in 9i/8i

    I want to be able to run a select conditionally. I have gotten this far.
    SQL> select
    2 (case
    3 when (select count(*) from all_objects
    4 where owner = 'SYS' and object_name = 'DBA_REGISTRY') >= 1
    5 then
    6 ( select rpad(substr(comp_name,1,50),50,' ')||' '||rpad(status,15,' ')||' '||substr(version,1,10) from dba_registry)
    7 else
    8 ( select 'dba_registry does not exist.' from dual)
    9 end)
    10 from dual;
    ( select rpad(substr(comp_name,1,50),50,' ')||' '||rpad(status,15,' ')||' '||substr(version,1,10) from dba_registry)
    ERROR at line 6:
    ORA-00942: table or view does not exist
    The 'dba_registry' does not exist in 8i but does in 9i.
    When it is run in 9i the error becomes:
    ORA-1427 Singe-row subquery returns more than one row.
    Basically I want to check for existance of an object and perform some action (not to difficult in PL/SQL using execute immediate - unless the action is to select and return multiple rows) using code that will execute on both 8i & 9i databases.
    Any pointers please?

    Env = 9i
    undefine c
    set serveroutput on size 100000
    connect / as sysdba
    grant select on dba_registry to ops$oracle;
    grant select on dba_objects to ops$oracle;
    connect /
    create or replace package vs_types
    as
    type cursorType is ref cursor;
    end;
    show errors
    create or replace procedure vs_getdata ( p_cursor in out vs_types.cursorType)
    is
    findresult number;
    dba_registry1 varchar2(20);
    begin
    dba_registry1:='dba_registry';
    select count(*) into findresult from dba_objects where owner = 'SYS' and object_name = 'DBA_REGISTRY';
    dbms_output.put_line('findresult='||findresult);
    dbms_output.put_line('dba_registry1='||dba_registry1);
    if findresult > 0
    then
    open p_cursor for
    select rpad(substr(comp_name,1,50),50,' ')||' '||rpad(status,15,' ')||' '||substr(version,1,10) from dba_registry;
    else
    open p_cursor for
    select 'Dba_registry does not exist in 8i.' from dual;
    end if;
    end;
    show errors
    variable c refcursor
    exec vs_getdata(:c)
    print c
    drop package vs_types;
    drop procedure vs_getdata;
    ~
    ~
    ~
    ~
    ~
    "x3a.sql" 37 lines, 989 characters
    SQL> @x3a
    Connected.
    Grant succeeded.
    Grant succeeded.
    Connected.
    Package created.
    No errors.
    Procedure created.
    No errors.
    PL/SQL procedure successfully completed.
    RPAD(SUBSTR(COMP_NAME,1,50),50,'')||''||RPAD(STATUS,15,'')||''||SUBSTR(VERSIO
    Oracle9i Catalog Views VALID 9.2.0.4.0
    Oracle9i Packages and Types VALID 9.2.0.4.0
    Package dropped.
    Procedure dropped.
    SQL> exit
    Disconnected from Oracle9i Enterprise Edition Release 9.2.0.4.0 - 64bit Production
    JServer Release 9.2.0.4.0 - Production
    change env to 8i
    ==============
    ora@misdev01:~/vins 149 % sqlplus /
    SQL*Plus: Release 8.1.7.0.0 - Production on Fri Feb 4 18:37:09 2005
    (c) Copyright 2000 Oracle Corporation. All rights reserved.
    Connected to:
    Oracle8i Enterprise Edition Release 8.1.7.4.0 - 64bit Production
    With the Partitioning option
    JServer Release 8.1.7.4.0 - 64bit Production
    SQL> @x3a
    Connected.
    grant select on dba_registry to ops$oracle     <(i dont care if this errors in 8i)
    ERROR at line 1:
    ORA-00942: table or view does not exist
    Grant succeeded.
    Connected.
    Package created.
    No errors.
    Warning: Procedure created with compilation errors.
    Errors for PROCEDURE VS_GETDATA:
    LINE/COL ERROR
    13/2 PL/SQL: SQL Statement ignored
    13/103 PLS-00201: identifier 'DBA_REGISTRY' must be declared
    BEGIN vs_getdata(:c); END;
    ERROR at line 1:
    ORA-06550: line 1, column 7:
    PLS-00905: object OPS$ORACLE.VS_GETDATA is invalid
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    ERROR:
    ORA-24338: statement handle not executed
    SP2-0625: Error printing variable "c"
    Package dropped.
    Procedure dropped.
    If the select from dba_registry can be put inside a 'execute immediate' , 8i will ignore it during the compile and it runs ok, BUT
    I cannot fathom how to get a 'execute immediate' to return the data into p_cursor in 9i.
    Maybe something like:
    execute immediate('open p_cursor for select rpad(substr(comp_name,1,50),50,'' '')||'' ''||rpad(status,15,'' '')||'' ''||substr(version,1,10) from dba_registry');
    Please help.

  • Create view and alter Session gets 0RA-01031

    I can't create a view after using ALTER SESSION set current_schema without using an explicit schema. I get ORA-01031. Is this a known bug? Here are the details:
    1. Log on as SYSTEM
    2. ALTER SESSION set current_schema=FRED;
    3. CREATE VIEW vFoo as select * from Foo;     -- ORA-01031: insufficient privileges
    4. CREATE VIEW FRED.vFoo as select * from Foo;     -- this works!
    I've read where some privileges need to be granted directly. In fact, if Fred grants select privilege on Foo to SYSTEM, the statement in #3 above works. However, something doesn't seem right because why does #4 succeed without the GRANT?
    In case you're wondering why I don't just use #4 above, which does work, it's because I've got a script that will be run by customers to create tables, views, etc. in an arbitrary schema and the schema is associated with a user with limited permissions. Hence, the use of the ALTER SESSION.

    See, You looged as SYSTEM (Scheme = SYSTEM)
    Now you alter your session to another schema FRED.
    Now if you want to access SCHEMA of FRED, You need to connect first.
    SQL > connect user/password@host
    Then
    SQL > CREATE VIEW vFoo as select * from Foo;
    View created.

Maybe you are looking for

  • ICal update problem after Maverick upgrade

    When trying to sign out of ICloud, I receive the message "If you stop using ICloud for Calendars, Calendars stored in ICloud will be deleted from this Mac". However I have checked the box for Calendars. If I hit "Cancel" (because I want to use ICloud

  • Import and Folder Issues

    I've spent hours trying simply to consolidate some images into various folders. I'm trying to import a file with the extension .CRW into a folder and get the message that (same filename).psd already exists in the folder. Yes, it does, but I want them

  • CCA install error during init database (@UseMe.sql)

    when I init the oracle database use @UseMe.sql It give following errors. how to fix it? 25907 [main] INFO $Revision: 3 $ - Node list size [1] 25922 [main] INFO $Revision: 222 $ - Inserting the following language => italian 25938 [main] INFO $Revision

  • Someone to know ¿why my IPod touch (32gb) did not upgrade to IOS 7 ?

    osomeone to know ¿why my Ipod touch (32GB) did not upgrade from IOS 6.1.5 to IOS 7 ?

  • Logging in OSB server keeps running

    Do you guys happen to know what would cause the following to run constantly? This is running in my OSB server command prompt window. I want to turn that off. to=C:\myMiddleware\user_projects\domains\LastDomain\servers\osb_server1\logs\osb_server1.log