My Oracle Support Banner

How to Compile a Java Stored Procedure That References a Class in Another Schema? (Doc ID 1421076.1)

Last updated on OCTOBER 05, 2022

Applies to:

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


This Note will illustrate what is required to compile a Java Stored Procedure in one schema that references a Class in a different schema.

The following provides the steps to execute a simple sample.
This sample has two Classes (Class1 & Class2).
Class1 is a standalone class and Class2 makes reference to Class1.
Each class will exist in its own schema.

This first part creates the two schemas.

The above error is expected because Class2 is in a different schema than Class1 so Class2 is unable to see classes from any other schema.


To view full details, sign in with your My Oracle Support account.

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

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.