In Oracle SQL developer , we have monitor session for real time SQL monitoring. Similarly how to look that in PL/SQL developer?
You can add it to the Session Browser, which is at Tools > Sessions and has an icon like this:
You can launch it from the menu, or add it to the toolbar to make it easier to access in the future. From your screenshot it doesn't seem to be present, so add it:
Right-click on the tool bar
Choose "Customize"
Under the "Toolbars" tab, ensure "Tools" is enabled (yours appears to be)
Under the "Commands" tab, select "Tools", find the "Sessions" icon and drag it to the toolbar.
The Sessions screen consists of a master-detail report where the main panel is (by default) select * from v$session with a couple of variations to filter on "My sessions" or "Active sessions". In my setup I change these to include some more useful information, place the things I want to see quickly near the top, etc. Click the spanner icon to edit the queries.
The default detail tabs include a SQL Monitor report which is based on a query of v$sql_monitor for the current session and displays the HTML format.
I prefer the interactive version so I change HTML to ACTIVE. I also like to be able to see at a glance which row corresponds the currently executing SQL, so I change it to:
select m.status
, m.sql_text
, dbms_sqltune.report_sql_monitor
( sql_id => m.sql_id
, sql_exec_id => m.sql_exec_id
, type => 'ACTIVE'
, report_level => 'ALL' ) as report
from v$sql_monitor m
where m.sid = :sid
and m.session_serial# = :serial#
order by m.sql_exec_start desc
For a RAC environment you might want to change this to gv$sql_monitor.
(Note the 'Active' report includes an 'Overview' section at the top, which you can collapse to give more space to SQL execution details.)
Full walkthrough here, though it was written a couple of years ago so refers to earlier versions of everything, Windows XP etc.
(This was the second in the series, so perhaps you might as well start with plsqldeveloper-setup-1.)
More details about DBMS_SQL_MONITOR.
Related
I want a dynamic number (an output of SQL query) to be shown besides page link text and icon in the navigation menu of my Oracle Apex application (Just the way it has been done in Oracle Apex Opportunity Tracker sample application).
Editing the static text of link is really simple and can be done by going to *Application123\Shared Components\Lists* and editing Application Menu but what I don't know is that how can I display a count there besides the Text and icon.
This is the desired output
This is where I know, I can edit the text (static) and change/select the icon for the link
but where to write SQL query and get its result instead of [&Leads.] , that's is not in my knowledge. Really appreciate help on this !!!!
select count(mycolumnname)
from mytablename
where anotherdatecolumn = trunc(current_date) and (referid='1' or referid='12' or referidD='18');
DEALS should be an application item (declared in Shared Components)
query should be then used in application computations (also in Shared Components)
LibreOffice 5.1.6.2
I have saved some queryes and I'd like to allow users to use them directly (without any reports). Reason: there are filters thare, they are convenient.
My users are sophisticated ones, so queries are ok.
The problem is a possibility to edit data when looking at the results of the selection.
Please, have a look at the picture:
In the tool bar there is a button called "Edit data". By default editing possibility is switched on.
I'd like to switch this editing possibility off constantly. Could you help me here?
Queries can only be edited if Base can directly match up each record with a unique key. There is a brief discussion on this topic here.
One simple way to prevent Base from doing this is to wrap the query in another one. Edit the query in SQL view.
SELECT * FROM ( SELECT "ID", "PlantID", "Notes" FROM "Tasks" )
Even though the Edit Data button is not disabled, clicking on it will have no effect. When the query is closed and opened, the button is disabled.
How can I change Epicor ERP10 standard system code for Purchase Requisition Entry in the Line pane? I would like to change the Due Date from displaying current date to blank everytime making a new line. Please help me.
You can do this using Method Directives.
Here's how to add one.
Find and open Method Directives Maintenance (System Management/Business Process Management/Method Directives Maintenance)
Click on Method Code, select your business object (Req in your case).
Click on Search and select the appropriate method from there (since it is an Add Line event that you want to work with, it should look something like GetNew...Detail). Click OK.
Go to Post Processing tab and hit New on the toolbar.
Give this directive a name you like and click on Design.
Here, in the BPM Workflow Designer, scroll to the bottom of the panel on the left and drag the Set Field icon to the right from the Setters section.
Now when this Set Field... icon is selected, it should show you a table with a column called Action. The next part should be intuitive in itself, but I have gone through the steps and written it here anyways.
Select DueDate field of the ReqDetail table (under specified field section). Set it to null for the new row here.
Save and Exit.
This should do the job, or if it doesn't do exactly what you want. There's always more options in the Method Directives Maintenance section that you can fiddle around with. Good luck.
I want to highlight specific rows on Interactive reports in APEX I go to format > Highlight then set the criteria needed for Highlighting desired rows. My problem is that this is a temporary solution. I need these configurations to be set as default so that any user try to use this report results appear highlighted as in criteria set before.any Help?
This is given in documentation read http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/ir_using.htm#CHDDDBCG
and accordingly save your highlighed report as a default report which is permenent one.
As a developer, you can save standard reports which will be shown to users by default.
To do this, first generate the report you want to show as default, with all your filtering and highlighting etc.
Then from the Actions menu, select Save Report. Then select As Default Report Settings from the Save select box.
This option is only available if you are logged into the builder at the same time.
I'm using Toad for Oracle for accessing Oracle databases. Is there a possibility to invoke custom scripts from Toad so that you don't always have to type these from scratch? E.g. I would like to create custom script
select count(*) as cnt
from
and invoke this using custom text like
scf
This kind of functionality is found e.g in Redgate's SQL Prompt:
It doesn't tell you how you should write code, either. You can tell
SQL Prompt exactly how you like your SQL, and add your own code
snippets to the customizable library
It is called Code Snippets
Insert Code Snippets:
http://dev.toadformysql.com/webhelp/Content/Editor/Code_Snippets/Code_Snippets.htm
If you defined it correctly then:
"If you know the shortcut name for a snippet, enter the shortcut name
and press CTRL+SPACE."
You can also use auto-replace to solve your problem if it's a single line of text.
I use "sfr" for SELECT * FROM.
As soon as I type "sfr" and press space or tab, it replaces it with SELECT * FROM.
Go to View -> Toad Options -> Editor -> Auto Replace
Go to view, toad options, in the sub editor you should find behaviour, click add on top right pane, and insert your preferred shortcut