My Oracle Support Banner

Java Stored Procedure and PLS-311 (Doc ID 1017537.102)

Last updated on SEPTEMBER 24, 2024

Applies to:

Oracle Database - Enterprise Edition - Version 8.1.5.0 and later
Information in this document applies to any platform.

Symptoms

You are trying to publish a Java Stored Procedure and are getting the following
error when you try to compile the Call Spec

Error: PLS 311


Text: the declaration of the type of 'name' is incomplete or malformed
-------------------------------------------------------------------------------
Cause: This occurrence of the identifier cannot be compiled because its
datatype has not been properly defined.


Action: Correct the faulty datatype declaration.

You were able to compile and load the java class just fine (without any errors)
but when compiling the Call Spec you got the above error

Cause

To view full details, 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 a vibrant support community of peers and Oracle experts.