I have an Oracle Apex 19.2 workspace and I would like to clear the debug history from SQL Developer.
I have tried :
apex_debug.REMOVE_DEBUG_BY_APP(p_application_id =>1401);
-- Or
delete from apex_debug_messages
but none of them works.
What I'm doing actually is creating a page that is not used in my apps and add the code
apex_debug.REMOVE_DEBUG_BY_APP(p_application_id =>1401);
This code works only from a page context.
Is possible to remove the history from SQL Developer please ?
Thanks.
Cheers,
As long as you are connected as a user that has the role APEX_ADMINISTRATOR_ROLE granted to the user, you can run the code below to remove the debug messages.
BEGIN
APEX_UTIL.set_workspace ('WORKSPACE_NAME');
APEX_DEBUG.REMOVE_DEBUG_BY_APP (p_application_id => 1401);
END;
Related
We have a react app where i want to embed a powerbi service report.
That report (kept in powerbi service) data will update the user interact with our react app's database.
I know there is a way-
if we connect that report with an SQL database source, and everytime that database source is refreshed, we will hit a powerbi provided 'refresh report api' and the updated data will be reflected in the embedded report..
But I want to know if there is any other more elegant way to achieve the same?
Alternative way-
also if there is a way to create a new report inside powerbi service just by hitting a powerbi endpoint with given json, and then embed that newly created report inside our application. that will be better.
as far as i have seen there docs they have apis to clone, delete, update a report but not to create one?
in case you know please let me know.
Thanks in advance.
my another related question is here for more reference - Create a report in powerbi service through APIs in React
also this community discuss - https://community.powerbi.com/t5/Service/Create-a-report-in-powerbi-service-through-APIs-in-React/m-p/3055794
If you use a DirectQuery model the report will generate queries to your database when the user interacts with a report. There will be no "refresh".
I've managed to set up microsoft authentication on my Oracle APEX application via Social Sign in. I want to be able to pull profile information such as name,preferred_name,etc which are OpenID claims and display them on my application. I am assuming you would set it in the "Additional User Attributes" in the authentication scheme on the application however I am not sure how it works as everytime I try to set it I'm unable to connect to the application
Thanks in advance!
Please read this blog to set up Microsoft authentication:
https://fuzziebrain.com/content/id/1908/
Go under 'Shared Components' for your app, then 'Authentication Scheme', choose your scheme.
In the PL/SQL code textarea, write a procedure, which assigns values to Apex variables, such as:
:app_user := apex_json.get_varchar2('upn');
That is in case your claim has a upn for the user name...
Remember to call the procedure by adding the name in the 'Post-Authentication Procedure Name' box.
DB = Oracle 12
APEX = 4.2
We are moving clouds and the PROD version of the DB with the APEX tables was copied and implemented into another cloud.
I have been told the clouds are exactly the same.
When I try and log into APEX via the web page e.g:
Workspace = Internal
User = ADMIN
I cannot get in. I have tried my normal user and password and no success on any of the workspaces
At home I have installed APEX and have half an idea on what to do but I don’t have admin privileges on the DB. So I have to pass on the messages to the DBA.
So far I have asked the DBA to unlock:
APEX_040200
APEX_PUBLIC_USER
On the connections, Im using SQL Developer to migrate around the DB, the Hostname and Servicename have changed.
Would the change in Service and Host cause logging in issues.
Or, am I missing something obvious, is it a complete re-install, is there a procedure that can be run to update things??
Any tips appreciated
Cheers
C
In my defence I am not a DBA.
When I was told the DB was getting copied I assumed I did not need to do anything since all the data should be held in the tables and it would be a simple case of logging in as usual.
Life is never that simple.
So, when I tried to log in I kept getting errors i.e. invalid log in credentials.
Resolution:
1 DBA resets the ADMIN password and supplies me with the details
2 Go to Production and export all the workspaces etc
3 As ADMIN recreate myself in the INTERNAL workspace
4 Log into INTERNAL, as myself not ADMIN, and import the workspaces
Making Faster Navigation Between APEX Site-Designer Pages
I am having a few difficulties here as this may be a setting that I took for granted in other previous versions of Oracle APEX as before it may have been a default setting, but now the default has changed. Can anyone help me figure it out? I also explain why it was useful for me before...
How do you enable the Oracle APEX instance to permit logging in to the site-designer pages for a single workspace (Application Builder, SQL Workshop, Team Development modules, etc.) using the same user id through more than one browser window?
Note, I do this to save time from navigating between each section of the site-designer (even quick load times can slow down developing an application page or region because of constant shuttling back and forth to make small changes originally missing).
Example Use Case:
Oracle APEX Release: Application Express 4.2.6.00.03
Database Platform: Oracle 11g R2
Client-Agent(Browser): Firefox Release 33
Note, this was a fresh install from a lower version that was upgraded
several times up to the current APEX release.
LOG IN to Site-Designer with an account that has DEVELOPER or ADMIN level user privileges.
USE your own values for WORKSPACE, USER, PASSWORD.
CREATE a new PAGE level OBJECT (REGION, FORM, REPORT, etc.) and stop in the middle of the set-up wizard.
RIGHT-CLICK on a TOP LEVEL Menu item such as SQL WORKSHOP. Open it in a NEW WINDOW;
CREATE an object like a TABLE which can be used by the DESIGN WIZARD open in step 3.
The reason for trying to keep different browser sessions open for the same USER account allows users to go back to another section of the design tool to build other objects or app/page elements that were overlooked before initiating a design wizard process.
Observed Behavior:
The new session will allow the user to make a new database object, but when clicking back on the previous window with the session that is running the original wizard, the server prompts for a new log in because that session has been closed.
Thanks!
The solution I found when facing a similar situation was opening Apex in a couple of different web browsers in parallel, so i have Safari for the SQL workshop, and Chrome for the page designer..
so instead of ctrl-tab i use cmd-tab (or alt-tab for PC)
Our IT said it has something to do with session state..
I use Liferay 6.1.1-ce-ga2 bundled with Tomcat server and Oracle 10g database.
My goal is to insert some content, as Journal Article, and display them in an Asset Publisher (with a structure and template, already working).
I used JournalArticleServiceSoap.addArticle(...) with the right fields (groupid, structureid, templateid, ...). The contents are "correctly" inserted in the database and I can see them inside web contents from administrator content panel. The contents have also "Approved" as status. This is done by setting:
serviceContext.setWorkflowAction(WorkflowConstants.ACTION_PUBLISH)
However, I can't see the inserted contents displayed with the other contents in the Asset Publisher, until I open it again for edition and click on publish button (even without changing nothing). Then the content is published as expected. The problem is the number of contents. It is about 600 so I can't to this action for each one.
I do not understand what is the matter and how to figure it out? In other words, what do I have to do to make the web-content inserted by web service display automatically in Asset Publisher?
Or, what does the "Publish" do exactly so I can try to reproduce programmatically with SOAP service (or SQL after insertion)?
Thank you in advance for your help.
I've also posted the same question in Liferay' forum: Problem to display JournalArticle inserted by SOAP web service
you can try to log the database accessing from Liferay and see what will be changed after you save article manualy. Herefor set the logging level of hibernate to info or debug.
are you setting serviceContext like this?
ServiceContext serviceContext = new ServiceContext();
serviceContext.setAddGuestPermissions(true);
serviceContext.setAddGroupPermissions(true);
serviceContext.setScopeGroupId(groupId);
serviceContext.setWorkflowAction(WorkflowConstants.ACTION_PUBLISH);
You must setting serviceContext Like This:
ServiceContext serviceContext = new ServiceContext();
//serviceContext.setAddGuestPermissions(true);
//serviceContext.setAddGroupPermissions(true);
serviceContext.setScopeGroupId(groupId);
serviceContext.setWorkflowAction(1);
serviceContext.setIndexingEnabled(true);
serviceContext.setIndexingEnabled(true); is Very Important.
The following code is not must requeired.
serviceContext.setAddGuestPermissions(true);
serviceContext.setAddGroupPermissions(true);