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

  • Home
  • SEARCH
  • 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 9246381
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T09:28:25+00:00 2026-06-18T09:28:25+00:00

DB beginner here. I have a procedure called mkdir that’s supposed to mimic the

  • 0

DB beginner here.
I have a procedure called “mkdir” that’s supposed to mimic the bash command:

create or replace 
PROCEDURE "MKDIR" 
(
  id_p in number
, name in varchar2  
) as 
begin
  insert into folders(name,id_p) values(name,id_p);
  dbms_output.put_line('Created folder: '||name);

exception
when DUP_VAL_ON_INDEX then
  dbms_output.put_line('Folder with the same name already exists!');
when NO_DATA_FOUND then
  dbms_output.put_line('Parent id not found!');

end mkdir;

Heres part of my Java program:

String sql = "begin mkdir(var1=>?, " +"var2=>?); end;";

st = conn.prepareCall(sql);
st.setInt(1,1);             
st.setString(2, "hello");

st.execute(); 

I’ve tried switching the order of variables, but it doesn’t work. I realise this is an extremely stupid error, but i can’t for the life of me resolve it.

ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'MKDIR'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
  • 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-18T09:28:27+00:00Added an answer on June 18, 2026 at 9:28 am

    it should be
    String sql = “exec mkdir …….

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

Sidebar

Related Questions

Python beginner here. I have a text file that is sorted into columns: fields
Rails beginner here.. I have a users resource where I implemented a callback that's
hey guys, beginner here. I have written a program that outputs files to .txt's
Python beginner here. Let's say that I have something at the end of my
Another absolute beginner here...I have built a page that geolocates the user and places
Complete beginner here. I want to create a new tab on each page that
Beginner programmer here....hope it makes sense :) I have created a console app that
Python beginner here, I have a list of lists and want to refer to
Bit of a beginner question here: Say I have a block of xml: <root>
Please help this beginner here... I have a SQL Server 2008 R2 running on

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.