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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:05:20+00:00 2026-05-26T07:05:20+00:00

If I have a .sql file with this : begin exec dbms_stats.gather_table_stats(‘schema’,table’); end; /

  • 0

If I have a .sql file with this :

begin
exec dbms_stats.gather_table_stats('schema',table');
end;
/

Should I need to use :

call 'exec dbms_stats.gather_table_stats('schema',table')';

I cannot test it out because of system problems so i am posting my query here.

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

    As far as I can tell, both are flawed – exec is used in SQL/Plus without a begin/end block, and call is definitely not PL/SQL; you’d also probably have to escape the single quotes inside your call statement.
    You can just use

    begin
     dbms_stats.gather_table_stats('ALERTS_OWNER','ASYNC_PROCESSING_REQUEST_T');
    end;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

BEGIN dbms_output.put_line('Welcome to PL/SQL'); END; / I have this code in sample.sql file. How
I'm the same guy that asked: BEGIN/END and CREATE Table in single .sql file
I have this sql file: USE mydb; DROP PROCEDURE IF EXISTS execSql; DELIMITER //
So I have this MS SQL Stored Procedure: ALTER PROCEDURE [dbo].[Import_Agent_Client_Bucket_2010] AS BEGIN --
I have sql output delimited file like this: FD LD -------- -------- 02-01-11 02-28-11
I have a sql file generated by mysqldump --all-databases . There are many databases
I have a .sql file from a MySQL dump containing tables, definitions and data
I have a SQL dump file consisting of incorrectly stored Cyrillic Russian ( WINDOWS-1251
I have a SqlDump.sql file that works just fine when I apply it using
So I have an SQL dump file that needs to be loaded using mysql_query().

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.