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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T21:47:31+00:00 2026-05-17T21:47:31+00:00

Is it possible to run a java jar file from within an Oracle (10g)

  • 0

Is it possible to run a java jar file from within an Oracle (10g) database? More specifically, I am looking to schedule an oracle job using

dbms_scheduler.create_job(...)

When run, the job would call a Java Application that performs a process involving talking to another application via HTTP, some business logic, then executing a Stored Procedure against the database using JDBC.

Normally, a chron job to do this would work fine, but the java application needs to talk to the database as a given Schema Owner. I can’t store the user-credentials as plain text in the application configuration for various privacy reasons.

In short, I’m wondering if there is a way to schedule a job to execute a jar, passing in the credentials of the user who scheduled the job.

I am unfamiliar with both scheduling Oracle Jobs and running Java Code from an Oracle Database so any pointers in the right direction would be great. I haven’t really been able to find any decent documentation for what I am trying to do either, although I’m sure it has to exist.

EDIT: found some documentation and it looks like I could do something like

DBMS_SCHEDULER.create_program (
    program_name        => 'recurring_java_task',
    program_type        => 'EXECUTABLE',
    program_action      => 'java -jar /path/to/recurring-task.jar',
    number_of_arguments => 2,
    enabled             => TRUE,
    comments            => 'Program to perform cleanup');

and then use
dbms_scheduler.create_job(…)

to create a job for the ‘recurring_java_task’. It seems like Arguments are set using

DBMS_SCHEDULER.SET_JOB_ARGUMENT_VALUE (
   job_name                IN VARCHAR2,
   argument_position       IN PLS_INTEGER,
   argument_value          IN VARCHAR2);

That still doesn’t solve the issue of supplying connection credentials (username/password) to the java application, though.

  • 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-17T21:47:31+00:00Added an answer on May 17, 2026 at 9:47 pm

    You can put the Java IN the database. Oracle 10.2 Java Dev Guide. This uses a special JDBC connection string that actually references the internal session. There are special considerations, i.e no GUI rendering, etc. You can also call and wrap this in pl/sql.

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

Sidebar

Related Questions

Is it possible to run java -javaagent:myagent.jar some.package.Main without having agent packaged to a
Is it possible to run an external process from Perl, capture its stderr, stdout
Is it possible to run both debuggers within the same PHP installation simultaneously. They
I noticed its possible to run SQL scripts with Oracle's SQLPlus by providing only
Is it possible to run a batch file as a menu item in studio
I'm having problems with running multiple different classes from one JAR file. I know
I created a JAR file with my Java program. This piece of code will
Possible Duplicate: Can we run Java applictions on iPhone? Does IPhone4 supports Java? Can
Is it possible to run AKKA on Java 1.5? I'm getting java.lang.UnsupportedClassVersionError: Bad version
Using only MySQL , I'm seeing if it's possible run an insert statement ONLY

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.