Error Processing Request. - Oracle APEX Post upgrade (Invalid WWV_FLOW_SESSION_RAS)

There would be occasions where you would upgrade your oracle database which is hosting your APEX and post upgrade you get error while opening APEX URL "Error Processing Request Contact your application administrator"

This looks very strange as you have just upgraded only database. Database version and APEX version are compatible. For Argument lets say both are on 19c. 

Now since UI doesn't give detailed information about the error you would need to get to backend oracle database and query view apex_debug_messages.

    select * from apex_debug_messages;

Looking at the results of this view you would get the clue of the error in this case it was:

    ORA-04063 package body APEX_190100.WWV_FLOW_SESSION_RAS has error

This means this package body has problem and looking at the status of this body it's found to be invalid and when you try to compile it get following error

    alter package APEX_050100.WWV_FLOW_SESSION_RAS compile body;

    Warning: Package Body altered with compilation errors.

    show errors

    Errors for PACKAGE BODY APEX_050100.WWV_FLOW_SESSION_RAS:

    LINE/COL ERROR

    -------- -----------------------------------------------------------------

    242/9 PL/SQL: SQL Statement ignored

    244/18 PL/SQL: ORA-00942: table or view does not exist


The problem is with Unpublished Bug 29617728 - DBUA: MISSING GRANTS TO APEX SYS.DBA_XS_DYNAMIC_ROLES/SYS.DBA_TAB_IDENTITY_COLS FOR APEX AFTER 18C UPGD: has been filed.

Workaround for this problem is to grant below missing privileges for the following objects:


    grant select on SYS.DBA_XS_DYNAMIC_ROLES to APEX_050100;

    grant select on SYS.DBA_TAB_IDENTITY_COLS to APEX_050100;


 After granting select on SYS.DBA_XS_DYNAMIC_ROLES and SYS.DBA_TAB_IDENTITY_COLS it was possible to compile the APEX_050100.WWV_FLOW_SESSION_RAS / APEX_050100.WWV_FLOW_WIZARD_API successfully.



Comments

  1. Hello Good morning, I had the same problem and my situation was that I have a link that connects with an oracle database different from the one that oracle apex is hosted on, this link with a public ip so the problem was communication with the checkpoint and the database, change the link to the local ip and the problem disappeared

    ReplyDelete

Post a Comment

Popular posts from this blog

How to Solve - "WAIT FOR EMON PROCESS NTFNS"

Query Regression - "OR" Transformation Oracle 19c

ORA - 12537: TNS: connection closed