Skip to Main Content
  • Questions
  • [SYS.SENSOR_DDL_TRIGGER_A] Caught a standard exception - Set serveroutput on Error

Breadcrumb

Question and Answer

Connor McDonald

Thanks for the question, Amit.

Asked: January 09, 2023 - 7:16 am UTC

Last updated: January 13, 2023 - 4:49 am UTC

Version: Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production

Viewed 1000+ times

You Asked

Hi Sir,

I am trying to run Gather Stats on a particular table. The gather stats works perfect when the script is run locally from the client or using some tools such as Sql Developer or Toad.
However, when trying to run the same script using Sqlplus from the Solaris server (login using putty), then getting below error.

Error : [SYS.SENSOR_DDL_TRIGGER_A] Caught a standard exception: aliasId=100413, error=-29260, message="ORA-29260: network error: TNS:no listener"


-----------SCRIPT START---------------------------------------------------------------------------------
Alter session set CURRENT_SCHEMA=MYSCHEMA;

Set heading on;
Set feedback on;
Set echo on;
Set linesize 9999;
Set trimspool on;
Set define off;
Set serveroutput on;
---------------------------------------------------------------------------

spool DML_gather_stats.log
timing start GatherStats
----------------------------------------------
EXEC dbms_stats.gather_table_stats(OWNNAME =>'MYSCHEMA',TABNAME=>'MY_TABLE',ESTIMATE_PERCENT => 10,DEGREE => 5,CASCADE => TRUE);
----------------------------------------------
timing stop

spool off;
exit;
/

-----------SCRIPT END---------------------------------------------------------------------------------

Additional Info:
- OS : Solaris 11.4
- Database : Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
- Tool to connect: Sqlplus (Using Putty, login to server.)

and Connor said...

I think "SENSOR_DDL_TRIGGER_A" is from a 3rd party product called dbprotect so you'd need to speak to them.

Alternatively, disable the trigger when you're running your stats gathering.

Rating

  (1 rating)

Is this answer out of date? If it is, please let us know via a Comment

Comments

Amit Chaudhary, January 09, 2023 - 8:31 am UTC

Thanks for the quick response and i will further check on dbprotect.

Another thing that's noticed is when I run the script without "Set serveroutput on;" the error message is not displayed. Can this be relevant? or it's just suppressing the error ?
Connor McDonald
January 13, 2023 - 4:49 am UTC

Unsure, but that would suggest the error is being captured and just being reported back without stopping the process.

More to Explore

Performance

Get all the information about database performance in the Database Performance guide.