Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8754703
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T13:41:17+00:00 2026-06-13T13:41:17+00:00

I have an Java application running on a Weblogic Server and Connecting to Oracle

  • 0

I have an Java application running on a Weblogic Server and Connecting to Oracle 11g DB server.

In the application i make a call to a DB Procedure and pass a parameter to it which communicates and calls multiple other procedures.

When i test the Procedure independently, it works perfectly and as expected.

The issue comes when i call the Procedure from Java Application.

The Procedure gives an error:

ORA-06508: PL/SQL: could not find program unit being called

The Backtrace leads to a call to a procedure that exists in another Schema and has a synonym in my current schema.

Please help if anybody else has faced the same issue or a similar one.

Edit#1:
Sample Code for Calling DB Proc

CallableStatement cstmt = null;
private Connection dbConn = null;
HashMap hashMap = new HashMap();
hashMap.put(DBDRIVER, driverType);
hashMap.put(USERID, userName);
hashMap.put(PASSWORD, password);
hashMap.put(SID, dbName);
hashMap.put(IPADDRESS, intDBServer);
hashMap.put(PORT, dbPort);
dbConn = (Connection)cmmObj.connect(hashMap);
cstmt = dbConn.prepareCall(queryToRun);
cstmt.setString(1, ReqId);
cstmt.executeUpdate();

Proc Call is { call Proc_CALL(?) }

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T13:41:18+00:00Added an answer on June 13, 2026 at 1:41 pm

    I have probably found the issue. Although it seams weird to hear it but it seems to work:

    The system i was working on has 3 Schema in connection.

    One is the Staging Schema from which all the calls are made.
    Second is the Main Schema to which calls were made. The Called Procedure existed in this Schema.

    The third is another schema where a procedure existed that was being called from Main Schema Procedure.

    Simplified:

    StageSchema.Caller(Synonym)–>>

    MainSchema.Proc_Call(Procedure)–>>

    CoSchema.insideCall(Procedure).

    The Grants to the CoSchema were available to the Main Schema, but not to the Stage Schema.

    Although as per theory if Any Procedure is being granted to a schema then all inside calls to any other procedures should not matter.

    but in this case when i gave the grant to Stage Schema, then everything seemed to work perfectly.

    If any one has a solution to this then please share the reason for the same.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Java application running in WebLogic 11g on Windows, which after several
We have a java application which run as server running on a remote windows
We have an application on Java 6 running on Weblogic application server 11. I
I have a Java web application connecting to an Oracle database running on another
We have a Java application running on Solaris which makes a connection to Oracle
I have my Java EE web application deployed and running in Weblogic server. If
I have a Java EE application running on Glassfish and connecting to MSSQL Server
We have inherited an application (Java-based, running on WebLogic 10.3.5) that makes extensive use
I have an Java application running in JBoss in which I have enabled JMX
I have a Java application which is running as non root mode. My App

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.