Disclaimer

Thursday, 21 November 2024

Enable and Disable the SQL Profiles in Oracle

 

Enable and Disable the SQL Profiles in Oracle

Check the present SQL Profiles present in Oracle Database.

SELECT NAME,STATUS,SQL_TEXT FROM DBA_SQL_PROFILES;

Name: Got from the first query which profile you want to enable or disable


Enable the SQL Profile in Oracle Database:

EXEC DBMS_SQLTUNE.ALTER_SQL_PROFILE(name =>'name_value', attribute_name=>'STATUS', value=>'ENABLED');


Disable the SQL Profile in Oracle Database:

EXEC DBMS_SQLTUNE.ALTER_SQL_PROFILE(name =>'name_value', attribute_name=>'STATUS', value=>'DISABLED');


Drop the SQL Profile if not needed:

Exec dbms_sqltune.drop_sql_profile(name=>'profile_name_value');




No comments:

Post a Comment

ORA-07445: exception encountered: core dump [qcpibfa()+235] [SIGSEGV] [ADDR:0x7FFF6A9C7C88] [PC:0x4BF0E4B] [Address not mapped to object

  After patching 19.26 , we received complain from Application team that they were facing below error while executing one particular SQL_ID ...