How Does Oracle delete all tables under a user?

Source: Internet
Author: User
Www.itpub.netthread-762849-1-1.html 1. Log On As sysassysdba. Run the following statement. Username is the username of the table to be deleted. SELECTDROPTABLE | username |. | TABLE_NAME | CASCADECONSTRAINTS; FROMDBA_ALL_TABLESWHEREOWNERusername

Http://www.itpub.net/thread-762849-1-1.html 1. Log On as sys as sysdba. Run the following statement. 'Username' is the username of the table to be deleted. SELECT 'drop table' | 'username' | '.' | TABLE_NAME | 'cascade CONSTRAINTS; 'FROM DBA_ALL_TABLES where owner = 'username'


Http://www.itpub.net/thread-762849-1-1.html


1. Log On as sys as sysdba. Run the following statement. 'Username' is the username of the table to be deleted.

SELECT 'drop table' | 'username' | '.' | TABLE_NAME | 'cascade CONSTRAINTS; 'FROM DBA_ALL_TABLES where owner = 'username'


After execution, an SQL statement set is generated. Copy the SQL statement. Paste it to the new SQL window. After execution, the table under the user is deleted.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.