Specific solutions for exporting all the tables of a user in the Oracle database

Source: Internet
Author: User

The following articles mainly describe how to export all tables of certain users in Oracle databases. In actual applications, many users may use Oracle, related customers generally want to export all tables of related users. This article provides such a method to help you solve this problem easily.

First, log on to the Oracle database with this user under sqlplus, And Then paste the following content into sqlplus:

 
 
  1. set feedback off;   
  2. set pagesize 0;   
  3. set heading off;   
  4. set verify off;   
  5. set linesize 200;   
  6. set trimspool on;  

Spool c: \ Oracle database backup. bat;

 
 
  1. select ''exp username/ffffff@yourdb   
  2. TABLES=''||table_name||'' FILE=''||table_name||''.dmp   
  3. TRIGGERS=N'' from user_tables;   
  4. spool off;   
  5. set feedback on;   
  6. set pagesize 9999;   
  7. set heading on;   
  8. set verify on;   
  9. exit  

After the backup, find the c: \ Oracle database. bat file, edit the batch processing file, delete the first and last lines, save and run the batch processing file to export all tables under the user

Article by: http://database.csdn.net/page/18e91194-59f0-45a3-96a7-d79e955834f5

Related Article

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.