APEX 19.2 error when removing the workspace - oracle

I have a problem deleting a workspace in APEX 19.2. From the graphical interface or from SQL, it returns this error:
Error removing workspace.
ORA-04091: table APEX_190200.WWV_FLOW_FEEDBACK is mutating, trigger/function may not see it ORA-06512: at "APEX_190200.WWV_FLOW_ISSUES_AD", line 2 ORA-04088: error during execution of trigger 'APEX_190200.WWV_FLOW_ISSUES_AD'
The PL / SQL code:
BEGIN
APEX_INSTANCE_ADMIN.REMOVE_WORKSPACE('DOGO_PRO','N','N');
END;
The workspace I am trying to delete is called "DOG_PRO", in the APEX interface, it stays in this state:
enter image description here
enter image description here
How can I delete the workspace?
I have created new workspaces and they are removed without problems but this workspace gives me that error.

I had the exact same error today with APEX 19.2.
I got it working by disabling the trigger WWV_FLOW_ISSUES_AD on the table APEX_190200.WWV_FLOW_ISSUES_AD as user SYS. Then I was able to delete the workspace and re-enabled the trigger.
As I don't use the Feedback Option in APEX the table APEX_190200.WWV_FLOW_FEEDBACK is empty and the trigger doesn't need to update any rows.
To disable the trigger use the following command:
alter trigger APEX_190200.WWV_FLOW_ISSUES_AD disable;
Now you should be able to delete the workspace in Instance Admin or SQL/Plus.
To re-enable the trigger use the following command:
alter trigger APEX_190200.WWV_FLOW_ISSUES_AD enable;

Related

Oracle apex issue - ORA 20987: APEX - User nobody requires ADMIN privilege to perform this operation. - Contact your application administrator

I recently migrate my application from APEX 4.2 to 5.0. And now when i try to log in, error message shows up like this.
ORA-20987: APEX - User nobody requires ADMIN privilege to perform this
operation. - Contact your application administrator.
it happens when preforming the login. even login with the blank credentials. after login pressed it checks for the following,
DECLARE l_err_mesg VARCHAR2(500);
BEGIN
IF APEX_UTIL.GET_ACCOUNT_LOCKED_STATUS(p_user_name => :P101_USERNAME ) then
l_err_mesg := '<span style="color: red"> Account currently locked. </span>';
END IF;
RETURN l_err_mesg;
EXCEPTION WHEN OTHERS THEN
raise_application_error(-20001,'An error was encountered - '||SQLCODE||' -ERROR- '||SQLERRM);
END;
Please tell me what am I missing with this.
With Oracle Application Express 5.0, employing APEX_UTIL to manage workspace users and groups requires specific configuration. The default settings in APEX5 will provide give you an error when you employ APEX_UTIL for workspace users and groups
If you write and test code in SQL-Developer or SQLPlus, you will not likely encounter this error until you paste your code into APEX. The change is simple:
Go to: Edit Application Properties > Security > Runtime API Usage
You’ll find this as the very last item below database session. Add a check mark to permit “Modify Workspace Repository” as shown in the image below.
Saving this change to your Application Properties will clear the error.
Documentation
Source 1
Source 2

Entity Framework ORA-04098: Trigger Error

I have a trigger which updates the entries of another table while inserting one table. It is basically copy some of data to another table. I compiled is on toad and it worked successfully but when i try to insert a new values to table by using my web application entity framework throws an exception :
SQL Error: ORA-04098: trigger 'ExampleTrigger' is invalid and failed re-validation;
What should i do? I disabled the trigger and also droped it, tried again nothing is changed. Same error in related trigger.

Is it possible to edit a table via dblink in APEX?

I've created a form in the APEX and I need to edit a table via dblink, which is already created . So, when I ask to show me a data in this remoute table- it's work fine, but when I'm trying to edit data, I get the error:
"Table or view OPERATION#DBQA not found Contact your application
administrator."
In the SQL workshop>SQL Commands- it also works fine(
update usr.operation#dbqa
set description='admin3' where operation_id=10
)
Well, I've created view usr.operation_qa as select * from usr.operation#dbqa, but, anyway, I receive the same error
"Table or view OPERATION_QA not found Contact your application
administrator."
I'll repeat, a permission and dblink -are ok, couse it's worl in SQL Commands
Will be appreciate for any help or comments. Thanks!

Synonym returning ORA-00904 error

I'm at my wits' end with this error.
I have a view which uses a function contained in a package in another schema. I've created a synonym to said package, and on my local dev DB, the view compiles correctly. On the build server, the view gives compilation errors.
When I run the select of the view manually, Oracle throws an ORA-00904 error on the synonym in the query. I just can't understand why it works in one place and not the other. The code on both servers is identical, as it's coming from our source control repository.
As phlogratos suggested, it was a privileges issue. As the user didn't have execute permissions on the package in the separate schema, it was causing this error.
The underlying problem was an issue with our script that applies grants, but it's good to know that references like this without permissions fail in this manner.

InstallAllOracleASPNETProviders doesn't work correctly

I am using asp.net mvc 3 and oracle database with ODAC1120240Beta_EntityFramework.
I want to do authorization in my site. Database works correctly, I can do everything with Database data, but if I go to ASP.NET Configuration -> Provider I see only AspNetSqlMembershipProvider.
InstallAllOracleASPNETProviders doesn't work correctly.
All functions, views and packages were created succesully. I do all using this Oracle Guide
Here is part of Oracle Database Output after executing this script from Visual Studio Tools.
GRANT SELECT ON ora_vw_aspnet_Applications TO ora_aspnet_Mem_ReportAccess
*
error in string 1:
ORA-01917: user or role 'ORA_ASPNET_MEM_REPORTACCESS' does not exist
GRANT SELECT ON ora_vw_aspnet_Users TO ora_aspnet_Mem_ReportAccess
*
error in string 1:
ORA-01917: user or role 'ORA_ASPNET_MEM_REPORTACCESS' does not exist
GRANT SELECT ON ora_vw_aspnet_MemUsers TO ora_aspnet_Mem_ReportAccess
*
error in string 1:
ORA-00942: table or view does not exist
You can implement using flow link.

Resources