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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T02:32:29+00:00 2026-05-11T02:32:29+00:00

The following PL/SQL will not execute and simply returns ‘Invalid Argument’ as an error.

  • 0

The following PL/SQL will not execute and simply returns ‘Invalid Argument’ as an error. I’ve gone as far as commenting out eavery line one by one and I can vary the error I receive but I cannot get the proc to run as I cannot identify where the error lies and it may well lie in permissions or the executing user but any help will be received gratefully. Here’s the proc

DECLARE     ind NUMBER;             -- Loop index      h1 NUMBER;              -- Data Pump job handle      percent_done NUMBER;    -- Percentage of job complete      job_state VARCHAR2(30); -- To keep track of job state      le ku$_LogEntry;        -- For WIP and error messages      js ku$_JobStatus;       -- The job status from get_status      jd ku$_JobDesc;         -- The job description from get_status      sts ku$_Status;         -- The status object returned by get_status  BEGIN     h1 := DBMS_DATAPUMP.OPEN('EXPORT','SCHEMA',NULL,'SQL_INSTALLER_01152009_1014','LATEST');     DBMS_DATAPUMP.ADD_FILE(h1,'SQL_INSTALLER_01152009_1014.dmp','ORACLE_SCRIPT_RUNNER_BACKUP',NULL,1);     DBMS_DATAPUMP.ADD_FILE(h1,'SQL_INSTALLER_01152009_1014.log','ORACLE_SCRIPT_RUNNER_BACKUP',NULL,3);     DBMS_DATAPUMP.METADATA_FILTER(h1, 'SCHEMA_LIST','''speccs_web_test''', NULL, NULL);     DBMS_DATAPUMP.START_JOB(h1);      percent_done := 0;     job_state := 'UNDEFINED';     while (job_state != 'COMPLETED') and (job_state != 'STOPPED') loop          dbms_datapump.get_status(             h1,             dbms_datapump.ku$_status_job_error +             dbms_datapump.ku$_status_job_status +             dbms_datapump.ku$_status_wip,             -1,             job_state,             sts);          js := sts.job_status;         if js.percent_done != percent_done then              percent_done := js.percent_done;         end if;          if (bitand(sts.mask,dbms_datapump.ku$_status_wip) != 0) then              le := sts.wip;         else              if (bitand(sts.mask,dbms_datapump.ku$_status_job_error) != 0) then                  le := sts.error;             else                  le := null;             end if;         end if;          if le is not null then              ind := le.FIRST;             while ind is not null loop                  ind := le.NEXT(ind);             end loop;         end if;     end loop;     dbms_datapump.detach(h1);  END; 
  • 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. 2026-05-11T02:32:29+00:00Added an answer on May 11, 2026 at 2:32 am

    For this particular problem it is because the schema_name speccs_web_test is not in upper case. SPECCS_WEB_TEST is fine and the proc is now running 😉

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

Sidebar

Ask A Question

Stats

  • Questions 100k
  • Answers 100k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer No, there is no way to have the compiler require… May 11, 2026 at 7:54 pm
  • Editorial Team
    Editorial Team added an answer I have resolved the issue. In a desperate attempt to… May 11, 2026 at 7:54 pm
  • Editorial Team
    Editorial Team added an answer If all dicts have all keys, you could do this… May 11, 2026 at 7:54 pm

Related Questions

The following PL/SQL will not execute and simply returns 'Invalid Argument' as an error.
I've written PL/SQL code to denormalize a table into a much-easer-to-query form. The code
Just wondering if there is a better way to write the following PL/SQL piece
I encountered the following ddl in a pl/sql script this morning: create index genuser.idx$$_0bdd0011
Howdy. Consider the following: SQL> DECLARE 2 b1 BOOLEAN; 3 b2 BOOLEAN; 4 FUNCTION

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.