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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T18:35:04+00:00 2026-05-14T18:35:04+00:00

I am trying to drop all tables in schema with no rows,but when i

  • 0

I am trying to drop all tables in schema with no rows,but when i am executing this code
i am getting an error

THis is the code:


 create or replace procedure tester
       IS
       v_count NUMBER;
       CURSOR emp_cur
      IS
      select table_name from user_tables;
      BEGIN
          FOR emp_rec_cur IN emp_cur LOOP
            EXECUTE IMMEDIATE 'select count(*) from '|| emp_rec_cur.table_name INTO   v_count ;
            IF v_count =0 THEN
           EXECUTE  IMMEDIATE 'DROP TABLE '|| emp_rec_cur.table_name;
               END IF;
              END LOOP;
      END tester;

ERROR at line 1:
ORA-29913: error in executing ODCIEXTTABLEOPEN callout
ORA-29400: data cartridge error
KUP-00554: error encountered while parsing access parameters
KUP-01005: syntax error: found "identifier": expecting one of: "badfile, byteordermark, characterset, data, delimited, discardfile, exit, fields,
fixed, load, logfile, nodiscardfile, nobadfile, nologfile, date_cache, processing, readsize, string, skip, variable"
KUP-01008: the bad identifier was: DELIMETED
KUP-01007: at line 1 column 9
ORA-06512: at "SYS.ORACLE_LOADER", line 14
ORA-06512: at line 1
ORA-06512: at "SCOTT.TESTER", line 9
ORA-06512: at line 1
  • 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-14T18:35:04+00:00Added an answer on May 14, 2026 at 6:35 pm

    The error is being raised by ORACLE_LOADER. I suspect your loop is finding an external table, which has a problem with its definition – the KUP-01008 is complaining about a keyword “DELIMETED”, but the external table syntax includes the keyword “DELIMITED”.

    If you don’t intend to drop the external tables, perhaps you need to omit them from the query, e.g.:

    CURSOR emp_cur IS
    SELECT table_name FROM user_tables
    MINUS
    SELECT table_name FROM user_external_tables;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to create an application bootstrap that will drop all the tables
hi trying to get a drop shadow on all sides but the top, for
SOLVED: This works: DROP PROCEDURE IF EXISTS drop_all_tables_from_specified_database; DELIMITER $$ CREATE PROCEDURE drop_all_tables_from_specified_database(IN dbname
I have been trying to make a stored procedure which autodeletes temporary tables. CREATE
I'm trying to drop a SQL Server database using the following code: SqlCommand command
I'm trying to drop a SQL Server database from .NET code. I've tried using
I'm trying to make a drop down menu using javascript/jquery but can't get my
StackOverflow - I'm still trying to deploy this site, but with every problem I
Alright, I'm trying to write a query to display all the tables that contain
I'm trying to write an SQL statement that duplicates all rows WHERE employee =

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.