Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Necessary privileges to use dbms_sqltune

LauryJul 15 2021

Hi,

I am working with Oracle 19c.

Does someone what privileges I need for a common user (not SYS or SYSTEM) to run this procedure:

set serveroutput on
declare
l_sql_tune_task_id varchar2(100);
begin
l_sql_tune_task_id := dbms_sqltune.create_tuning_task (
sql_id => 'g0ujpp7y5s1wp',
scope => dbms_sqltune.scope_comprehensive,
time_limit => 60,
task_name => 'g0ujpp7y5s1wp_tuning_task',
description => 'tuning task for statement g0ujpp7y5s1wp.'
);
dbms_output.put_line('l_sql_tune_task_id (task name): ' || l_sql_tune_task_id);
end;
/

I end up with this error:

ORA-13773: insufficient privileges to select data from the cursor cache

It is solved if I grant select any dictionary to the user. But I would like to avoid it.

Kind Regards

Comments

SriniVEERAVALLI
Answer

Try this

<style type="text/css">

td.ResultLinksCell {

display:none;

}

</style>

or

Marked as Answer by Srix · Sep 27 2020
Srix

work like a charm.. Thank You

Srix

I was trying to use the same approach to hide Cancel button(I need to specifically hide it on particular dashboard not across the application) on dashboard. doesnt seem to work ?

<style type="text/css">

td.promptButtonsCell.cancel {

display:none;

}

</style>

Srix

Srini,

above code disables print and export links on dashboard since they also use ResultLinksCell function, is there anyway to specifically hide certain links ?

SriniVEERAVALLI

hmm

are you talking about the initial give code or your code related to cancel?

Srix

initial given code

1 - 6

Post Details

Added on Jul 15 2021
9 comments
802 views