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 6215153
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T07:00:13+00:00 2026-05-24T07:00:13+00:00

Actually I am calling oracle procedure from java file present at application server. I

  • 0

Actually I am calling oracle procedure from java file present at application server. I want to debug my oracle procedure, so I write statement in oracle procedure as “dbms_output”, but dont know where the log is store on oracle server, actuaaly I want to print some variable value in oracle procedure to trace my problem.

If you know any other debug mechanism for debugging oracle procedure calling from java file,please share in explain.

I have spent hours looking for something on Google. However I cannot seem to find anything that holds the hand,Your help is much appreciated. Try to be more clear, I’m in lack of ideas in this problem, even it sounds like a classic.

  • 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-05-24T07:00:14+00:00Added an answer on May 24, 2026 at 7:00 am

    When you make a call to dbms_output ( put_line method, I assume), the output is pumped to stderr, not to any log file.

    I’d urge you to use a tool like Log4PLSQL or create a logging table and have an autonomous transaction which logs all errors to this table.


    Your basic error logging procedure will look something like this:

    PROCEDURE log_errors(p_error_details varchar2) is
    
    PRAGMA AUTONOMOUS_TRANSACTION;
    
    BEGIN
      INSERT INTO ERROR_LOG(SR_NO, ERR_MSG, ERR_DATE) 
                      VALUES(ERR_LOG_SEQ.NEXTVAL, p_error_details, sysdate);
    
      COMMIT;
    END log_errors;
    

    Supporting scripts for the error logging procedure:

    CREATE TABLE ERROR_LOG(SR_NO NUMBER, ERR_MSG VARCHAR2(2000), ERR_DATE DATE);
    
    CREATE SEQUENCE ERR_LOG_SEQ MINVALUE 1 START WITH 1 INCREMENT BY 1 CACHE 20;
    

    Now, just add an exception handler & call this procedure in the PL/SQL procedure giving you the problems.

    BEGIN
       ....
    EXCEPTION
      ... 
      WHEN OTHERS THEN
         log_errors(DBMS_UTILITY.FORMAT_ERROR_BACKTRACE);
    

    All exceptions will be handled and stored in ERROR_LOG table.

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

Sidebar

Related Questions

In Java, one can create instances of a class without actually calling a declared
I am told by someone that when calling Oracle from ADO.net, when calling multiple
OK, I'm actually calling some java middleware that returns a captcha image. The captcha
I need to call a stored procedure using JPA and found this article: http://www.oracle.com/technology/pub/articles/vasiliev-jpql.html
I want to send a binary file to .net c# component in the following
I have a class with internal constructor and want to Resolve it from Unity
I read somewhere that calling ensureIndex() actually creates a collection if it does not
Possible Duplicate: Difference between calling self.var vs var Edit : actually, i did not
Actually i have a shopping cart and i want to add a delete an
My guess is that the current semantics of unit testing involve actually calling the

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.