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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T03:10:33+00:00 2026-05-17T03:10:33+00:00

I need to sync an oracle text index. But job fails to create: declare

  • 0

I need to sync an oracle text index. But job fails to create:

declare
    v_job_id number(19,0);
begin
dbms_job.submit(
    JOB        => v_job_id,
    WHAT        => 'alter index NAME_IDX rebuild parameters (''sync'');',
    NEXT_DATE => SYSDATE + (1/24),
    INTERVAL    => 'SYSDATE + (1/24) + 7'
    );
end;
/

Or to run:

declare
    v_job_id number(19,0);
begin
dbms_job.submit(
    JOB        => v_job_id,
    WHAT        => 'CTX_DDL(''NAME_IDX'');',
    NEXT_DATE => SYSDATE + (1/24),
    INTERVAL    => 'SYSDATE + (1/24) + 7'
    );
end;
/

But if I run any of those works:

alter index NAME_IDX rebuild parameters ('sync');
call CTX_DDL('NAME_IDX');

Any idea of the correct syntax?

Thank you.

PD: Ive been searching, but the only answer I found doesnt fit my requirements. I also apologize for my english.

  • 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-17T03:10:34+00:00Added an answer on May 17, 2026 at 3:10 am

    You can run an anonymous block, CALL is not in PL/SQL, ALTER INDEX is DDL, and you need to specify which procedure in CTX_DDL you want to run:

    WHAT => 'BEGIN EXECUTE IMMEDIATE ''alter index NAME_IDX rebuild parameters (''''sync'''')''; CTX_DDL.sync_index(''NAME_IDX''); END',
    

    However, personally I prefer to encapsulate it in a procedure (or, even better, a package) and call the procedure from the job:

    CREATE PROCEDURE rebuild_name_idx IS
    BEGIN
        EXECUTE IMMEDIATE 'alter index NAME_IDX rebuild parameters (''sync'')';
        CTX_DDL.sync_index('NAME_IDX');
    END;
    /
    
    declare
        v_job_id number(19,0);
    begin
      dbms_job.submit(
        JOB       => v_job_id,
        WHAT      => 'rebuild_name_idx;',
        NEXT_DATE => SYSDATE + (1/24),
        INTERVAL  => 'SYSDATE + (1/24) + 7'
        );
    end;
    /
    

    Also, I’m pretty sure you don’t actually need to rebuild the index – you only need to call CTX_DDL.sync_index to refresh it from any DML on the table.

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

Sidebar

Related Questions

I need to sync text and audio on many web pages. While the audio
I've installed RubyInstaller on Windows and I'm running IMAP Sync but I need to
I need to sync my sqlite database on android with the database on web
I have a need to sync auto_increment fields between two tables in different databases
I need to override Backbone.sync to allow PUT the problem is i don't know
Other than Active Sync not working, are there any other limitations that I need
I have a button called as Sync . On clicking on it, I need
Is there an equivalent command on windows for the UNIX/Linux sync command? I need
I am trying to set up a synchronization model to sync my consolidated Oracle
I am writing a mobile application and I need to sync the time with

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.