How to run DBMS_SQLTUNE.report_sql_monitor of SQL Developer 4.0

Hello-

We have new SQL Developer 4.0 as a single stop for all reports of performance tuning.

(So far, we know how to generate the AWR and ASH ADDM directly from SQL DEV 4.0 and we can do as a NON-privileged user)

Now, the question is how to run DBMS_SQLTUNE.report_sql_monitor API SQL DEV 4.0?

I tried this way:

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

SELECT DBMS_SQLTUNE.report_sql_monitor)

sql_id = >: SQL_ID

Type = > 'TEXT ',.

report_level = > 'ALL') AS myreport

DOUBLE;

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

and then right button click of the mouse on the line "myreport" and the EXPORT of 'text' in the menu drop down and save in the. FichierTSV on the local file system.

It works this way, as expected, but seems to be a lot of hassle: too many steps.

Then I tried the HTML format:

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

SELECT DBMS_SQLTUNE.report_sql_monitor)

sql_id = >: SQL_ID

Type = > 'HTML. "

report_level = > 'ALL') AS myreport

DOUBLE;

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

and it didn't work well at all SQL dev 4.0

Any help will be greatly appreciated.

(once again, the idea here is to set up our development and QA groups with full access to performance all reports without having them call DBA for help in the production of any SQL tuning report).

Thank you

VR

There is certainly a 'room' to improve the interface, just tell me what you would like to be like him. For example, you want an overview of the SGS of all SQLIDs running on the nodes you could then select this option to run a report for? Don't say it is what we would do, but I was wondering what it is that you ask for.

Tags: Database

Similar Questions

  • How can I run beginddl in PL/SQL Developer

    Here is my script:

    Start
    execute dbms_wm.beginddl ('MyTable');
    ALTER TABLE MyTable ADD NewColumn1 VARCHAR2 (200)
    execute dbms_wm.commitddl ('MyTable');
    end;

    I got the following error:


    ORA-06550: line 2, column 11:
    PLS-00103: encountered the symbol "DBMS_WM" during the expected in the following way:

    := . (@ %; immediate)
    The symbol ': = ' was replaced by "DBMS_WM" continue.
    ORA-06550: line 3, column 3:
    PLS-00103: encountered the symbol "ALTER" when expecting one of the following conditions:

    (begin case declare exit end exception for goto if loop mod)
    pragma raise return null select update while with
    < an ID > < a limit between double quotes


    What should I do next?

    Thank you.

    in the PL/SQL scripts, you simply omit the 'run '. and for the SQL code, you must put a run before.
    so your script:

    begin
      dbms_wm.beginddl('MyTable');
      execute immediate 'ALTER TABLE MyTable ADD NewColumn1 VARCHAR2(200)';
      dbms_wm.commitddl('MyTable');
    end;
    

    Apart from that, you should edit MyTable_LTS in your session DDL.

    Kind regards

    Andreas

  • Running a package in SQL Developer

    Hello

    When I introduce a new package in a database and the package is given bz *.pkg file, what is the difference between the opening of the packing of files in SQL Developer (via 'Open '->' file') and then run the package and just copy paste the code Pl/SQL package in an editor.

    I plead the cause I did the following experiment, which I've posted it here:

    Faraz' Oracle DBA Blog: error opening a PL/SQL package as a file in Oracle SQL Developer

    Run the file that has your ddl inside package and execution of the package itself - two different things.

    When you open a file in SQL Developer, according to the file extension, you will get either a SQL worksheet or a PL/SQL Editor.

    I'm assuming that your package file has made two database objects, the package specification and package body. If this is the scenario, you need to open it in a SQL worksheet, set your connection details, and then run with F5.

    If your file contains only a spec or body in pkg, you can and should open in the procedure Editor. There, you will see your highlight syntax errors in the code itself.

    I speak a little of that here, with some screenshots so I hope it's easier to understand.

  • How to create a planner oracle sql developer

    Hello

    How to create developer oracle sql Scheduler created?

    Hello

    Finally, I refer link below its helpful

    ORACLE-BASE - Support SQL Developer 3.1 Scheduler (DBMS_SCHEDULER)

  • How to connect my APEX with SQL Developer workspace?

    Hi all

    I am a new user of Oracle Apex. Is there a way to connect to my workspace created to http://apex.oracle.com/pls/apex with SQL Developer. If so, then let me know how. If someone has done successfully then please help me.

    Thank you

    Gerard

    Hi Gerard,

    It is not possible to do this on apex.oracle.com.

    Joel

  • How to get these settings in sql developer

    According to this link, when I chose my lines in sql developer I don't get all the options illustrated in the screenshot of the binding,

    My sql developer is Version 3.2.20.09 64-bit windows, to use this options I need to make all the settings?

    http://www.thatjeffsmith.com/archive/2013/02/how-to-copy-only-column-headers-from-query-results-in-Oracle-SQL-Developer?

    When I select and click right make me only

    (a) in respect of grid
    (b) single record view
    (c) number of lines
    (d) fInd / highlight
    (e) export

    Once you have identified the column headers desired by highlighting one or more related data cells in the results grid, place your cursor on any column heading, and right-click for the shortcut menu shown in the blog of Jeff Smith.

  • How to debug the package in sql developer?

    Hello

    I need to debug procedures in my package in the sql developer 1.5.5 version. In the debug log, I received the following:

    Connection to the database < databasename >.
    PL/SQL execution: ALTER SESSION SET PLSQL_DEBUG = TRUE
    Running PL/SQL: CALL the DBMS_DEBUG_JDWP. CONNECT_TCP ('127.0.0.1', '2754')
    ORA-01031: insufficient privileges
    ORA-06512: at "SYS." DBMS_DEBUG_JDWP', line 68
    ORA-06512: at line 1
    This session requires user DEBUG SESSION privileges to CONNECT and DEBUG ANY INTERIOR.
    Process is complete.
    The database < databasename > disconnected.

    I have granted the privileges of the user DEBUG CONNECT SESSION both to DEBUG ANY INSIDE system in the following way:

    GRANT DEBUG ANY PROCEDURE ESM_OWNER;
    grant the DEBUGGING SESSION to CONNECT to ESM_OWNER;

    However, I still get the same error. What I've done wrong? I really appreciate all the help to solve my problem.

    Thanks in advance!
    Cindy

    You have a firewall blocking this port? In addition, your database is running on the same machine that you use SQL Developer, or on a remote host? It's remote, you should provide the IP address of your local computer, not 127.0.0.1

  • How to disable automatic capitalization in SQL Developer

    Hello

    I use SQL Developer more than two years. I recently downloaded Developer SQL 2.1.1.64.

    My problem is that if you modify the package body when the transition to the new line to the previous line get automatically converted to uppercase. But I don't want all of the code I wrote to convert uppercase.

    I tried all the possible changes preferably but no change. Can you please help me how to disable the case change in SQL developer.

    Forward to your response.

    Thank you
    Khaled Konkodi

    All the changes of possible preferences? Try disabling the cases of change of the Code Editor - completion Insight - as you type and/or database - SQL Formatter - AutoFormat...

    Hope that helps,
    K.

  • How to create Spatial indexes in SQL Developer Data Modeler 4

    Hello

    What is the procedure to create a Spatial index in SDDM v4? I found myself at an impasse because of the following problems:

    (1) retro-engineering rate the spatial index, then I need to add them manually.

    (2) adding an index does not allow me to check the 'spatial', and does not allow me to add the sdo_geometry column in the index definition.

    (3) for the registration of the spatial properties for a table, I can not choose the name of the Spatial Index.

    I came across an old post (Data Modeler - cannot create a spatial index), but this post is no longer valid because SDDM V4 does not allow me to create an index without columns (definition of the incomplete index).

    Help is appreciated,

    Kind regards

    Richard.

    Hi Richard,

    Thanks for your update.  I'm scared, I was assuming you were using the stand alone rather than SQL Developer Data Modeler.

    I tried using SQL Developer 4.1.0.18.37 (ai2) using a thin connection and got the ClassCastException you have found.

    But when I used ai2 autonomous, maker of data using the same login details 'Advanced', it worked OK and imported from the spatial index.

    (I'm puzzled as to why these two seem to behave differently, as this is the version ai2 data integrated with SQL Developer ai2 maker).

    I then plugged and reverse engineering the same tables (yet) in a new model.

    Funny is that there is no error in the external journal this time, but the spatial properties are still not retroconcues correctly.

    Is it possible that you have not set the option to import the spatial properties?  I expect that the spatial properties would be imported or that the error should be registered.

    SQL Developer ai2 imported properly the spatial properties and the spatial index, when I used a basic connection and specified host, port, and SID or Service name.

    Another issue: SQL Developer relies on a certain JDK / JDBC library?

    Any Java JDK 1.8 should be good.

    David

  • How to connect earphone (ADR) Apex SQL Developer 4

    Hello

    As new ORDS.war was released, I am trying to connect with Apex listener via SQL Developer 4. But he could not find the three icons in the window of the earpiece of the Apex

    1. Retrieve parameters
    2. Download settings
    3. Launch URL

    All these three icons are disabled completely, I have no idea why these icons have become invalid.

    If someone could help me get ords.war?

    Well, I understood by referring to the Concepts of Developer SQL and use

    Right-click on "Listener" under the earpiece of the APEX and select 'Connect' from the context menu. After a successful login, all three icons in question becomes active and active.

  • How to set up the PL/SQL Developer with customer instant

    Hi buddies!

    I want to install PL/SQL Developer. I would like to install Instant customer? I need to install the PL/SQL Developer in my pc that will access the database of the server.

    Please enlighten me.

    Thank you.

    See you soon!

    Nith

    Published by: user645399 on May 12, 2010 16:26

    user645399 wrote:

    Here are the steps I followed.

    I don't see a problem with these steps. It is correct. Step 7 is redundant (because of the where you have placed the tnsnames.ora file)-it is only really necessary when you place the file in another directory where +%ORACLE_HOME%\network\admin+ is no longer applicable.

    Note that the customer himself, needs to load the DLL of OIC InstantClient - and this DLL uses the settings of environment and the rest of "do its thing".

    If customer load another customer Oracle DLLS, then bets are open InstantClient is used, never mind will work.

    Only one copy of a DLL can exist in memory. So if some other s/w is using other DLL OIC, then this DLL is already loaded and will be used by all other client s/w. Nothing will be able to use the DLL itself InstantClient.

    Therefore, make sure that no Oracle client driver is loaded at all. Then make sure that when the client s/w requests to load the DLL of the OIC, it is loaded from the InstantClient directory.

    As far as I remember, the core Win32 LoadLibrary() call is made by the application - if the DLL is not in memory, the current (in the virtual machine for this process of Windows) directory is used. If the DLL does not exist there, the %PATH% variable is used to find and load the DLL. DLL usage meter is then set to 1. When multiple processes require the DLL, it is incremented. When a process ends, the usage count is decremented. When it reaches 0, its unloaded from memory.

    Result of all this is that only one module DLL (whatever the number and versions of the physical DLL files on disk) can reside in the kernel space, and you must ensure that the correct physical DLL is loaded by the kernel.

  • How to run FNDMLSUB - multilingual - PL/SQL

    Hello

    I want to introduce a program FNDMLSUB (ask for the submission of Multi-Language) to PL/SQL (need to print several programs of Bill at once, there is no support from the MLS for the games of the application).
    What is the procedure of pl/sql for submission? I submit, but I don't know how to link with the actual demand (settings ect).


    l_request_id: = fnd_request.submit_request ("FND", "FNDMLSUB," ", null, FALSE, 20003, 191349, 'Y');


    Thank you

    Kind regards
    Kris

    An API to run simultaneous queries using MLS does not exist for the moment!

    Must find Metalink carefully at the beginning:
    How to apply MLS using API FND_REQUEST [ID 372572.1]

  • How to run a procedure of SQL commands

    I tried in many ways, for example:

    RUN POPULATE_HIERARCHY (121121);

    but I get the error: ORA-00900: invalid SQL statement.
    BEGIN
      POPULATE_HIERARCHY(121121);
    END;
    
  • How can I change where SQL Developer search files?

    I bring scripts to create a database schema. The installation script looks like this
    @run_install_1.sql
    @run_install_2.sql
    @run_install_3.sql
    Some of these scripts themselves called files.

    I was running quite happily in SQL Developer for a few weeks now (well except for [url http://forums.oracle.com/forums/message.jspa?messageID=3616772#3616772] another this bug). However, now I am trying to get my colleagues to run scripts but they fail. The output of the script says
    Unable to open file "@My documents/run_install_1.sql" (or whatever).
    Basically SqlD is pick up their default directory instead on research in the same directory as the file calling.

    Of course, I managed to change this behavior, but for the life of me I don't know how. It doesn't seem to be an obvious preference to put this.

    Cheers, APC

    blog: http://radiofreetooting.blogspot.com

    OK, well I guess it's a bad news good news story. It is important that you set the directory explicitly in SQL Developer. The good news is that the scripts are now both worked. The bad news is that they don't seem to work when you tried before (can concede typo perhaps?) Also that the @ is not such as you wish. So we have an ER to open a session on this.

    I am sure that we all have in the product of the areas that are important and it's one I use a lot, because I'm always rebuilding my test environment, so when my scripts fail, I'm not happy. ;-)

    In the settings of this directory setting, if indeed you run into inconsistencies. Let us know.

    Sue

  • How to get the full DDL using SQL developer

    Hi all

    I need get the full DDL a table with the details of the index partitions, synonyms, comments (if any) and give information if given any role, use SQL developer. We can achieve the same thing using shortcut F4 on name of the table into a frog, then selecting tab DDL. Is it possible to get the same in SQL Developer also?


    Also how I see existing procedures using SQL developer?  A toad, we were able to achieve using the schema browser.

    Hi all

    I reached by - right click on connection - diagram open... and any browser will even...

Maybe you are looking for