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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T17:55:23+00:00 2026-06-05T17:55:23+00:00

I found it in a statement like this: delete /*+ restrict_all_ref_cons */ from table_1

  • 0

I found it in a statement like this:

delete /*+ restrict_all_ref_cons  */ from table_1 where ...

Can anyone give some piece of information for what the hint is doing?

The database is an Oracle database 10.2.0.3.0.

  • 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-05T17:55:24+00:00Added an answer on June 5, 2026 at 5:55 pm

    The hint disables cascade deletion, so child rows will not be deleted from a child table when deleting from the parent.

    See example here;

    http://www.oracle-goldengate.info/archives/ogg-replication-for-delete-parent-table-with-fk-delete-cascade-option.html

    create table s11 ( x int primary key );
    create table s12 ( y int primary key, x references s11 on delete cascade );
    insert into s11 values (1);
    insert into s12 values (1, 1);
    commit;
    SQL> delete from s11;
    1 row deleted.
    SQL> select * from s12;
    no rows selected <=========== when deleting parent row in s11, the child row in s12 is also deleted.
    
    SQL> rollback;
    Rollback complete.
    
    SQL> delete /*+ RESTRICT_ALL_REF_CONS */ from s11;
    1 row deleted.
    SQL> select * from s12; <=========== with RESTRICT_ALL_REF_CONS hint, the child row will not be deleted.
    Y X
    ---------- ----------
    1 1
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here's what the statement looks like: DELETE FROM videoswatched vw2 WHERE vw2.userID IN (
Often, in the network can be found code like this: private static final String
I want to print some dates from a site with a structure like this:
I'm reading an source code, I found a statement like this: if (Char.IsWhiteSpace(text[i]) |
I was reading this page and I found the following statement: MVC in Java
found this regex: insert every 10 characters: $text = preg_replace(|(.{10})|u, \${1}. , $text); can
I found on stackOverflow that I get the last segment can be found like
Google-fu is failing me on this one. Can anyone briefly explain what the following
I'm using a prepared statement with this SQL code: SELECT `name` FROM `securities` WHERE
I have noticed a number of kernel sources that look like this (found randomly

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.