Job against listener fails if name have > 64 char (Doc ID 1923070.1)

Last updated on AUGUST 28, 2015

Applies to:

Enterprise Manager Base Platform - Version 12.1.0.3.0 to 12.1.0.4.0 [Release 12.1]
Enterprise Manager for Fusion Middleware - Version 12.1.0.4.0 to 12.1.0.4.0
Enterprise Manager for Oracle Database - Version 12.1.0.3.0 to 12.1.0.7.0 [Release 12.1]
Information in this document applies to any platform.

Symptoms

From 12c Cloud Control add a Listener target which has name greater than 64 characters.


Navigate to Enterprise > Job > Activity.
Select 'OS Command' from 'Create Job' drop down menu.
select target type as listener and add the above listener.
In 'Parameters' tab, provide:

Command type : script
OS Script : #!/bin/ksh
echo "listener ora dir is %ListenerOraDir%"
interpreter : /bin/ksh

Now try to submit the job which fails with following errors:

ORA-06502: PL/SQL: numeric or value error: character string buffer too small

Submitting a single command like 'pwd' works



Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms