Go to Windows Oracle Export table structure

Source: Internet
Author: User
Tags sqlplus

Analyze how to export all tables for a user under Oracle It's possible that many customers who use Oracle will encounter a situation where they want to export all the tables of a user, and this article provides a way to help you solve this problem easily.
First, under Sqlplus, log in to the Oracle database, and then paste the following into the Sqlplus:
Set feedback off;     Set pagesize 0;     Set heading off;     Set verify off;     Set Linesize 200; Set Trimspool on;


Spool c:/database backup. bat;


Select ' Exp username/[email protected]//username/password/database name tables= ' | | table_name| | ' File= ' | | table_name| | '. DMP Triggers=n ' from User_tables;


Spool off;
Set feedback on;     Set pagesize 9999;     Set heading on; Set verify on;
Exit


When you are finished, locate the c:/database backup. bat file, edit the batch file, delete the first and last lines, and then run the batch file after saving to export all the tables under that user.

Go to Windows Oracle Export table structure

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.