Backup _ use Word to write and export multiple table statements

Source: Internet
Author: User
Tags ultraedit

Original works, from the "Blue Blog" blog, Welcome to reprint, please be sure to indicate the following sources, otherwise, the legal responsibility to pursue copyright.

Deep Blue Blog: http://blog.csdn.net/huangyanlong/article/details/42104599

Experiment Objective: Write format when using the exp tool to export user multiple tables with word

Lab Environment:

Operating system:WINDOWS2008 64bit

Database:ORACLE 11G R2 64bit

Using software:word,Excel,UltraEdit, PL/SQL Develoer

Experimental preamble:

HYL users, have 268 table, and the table involves different business aspects, and there is a separate photo, video class large table, so when doing a logical backup, you want to use a large table to separate backup way.

Start the experiment:

Using PL/SQL develoer software, copy out all the table names under the HYL user and use Excel software to classify them. Then copy the table name with a comma from Excel into the UltraEdit Editor (which removes paragraph breaks), and then paste it into word . This article takes the Scott Business table under the HYL user as an example. Use Word to format the table name, which is the format of the table name after the last paste to word :

Then, use Word to remove all "line breaks" so that all tables conform to the writing format of the table name in the exp script, as follows:

1, click ctrl+h, bring up the "Find and replace" menu;

2, click the "Special format" button, as follows:

3, select the paragraph mark, such as:

4, the replacement target is selected as empty, such as:

5. Get the desired table name delimited format as follows:

Add: If there is a space entry, you can use the same method to replace "comma" with the "comma" style.

At this point, we can use the UltraEdit text editor to write backup scripts for different business tables, such as scripts:

------------------------------------

--scott Business Table Backup test

------------------------------------

Exp Hyl/[email protected] buffer=128000 feedback=10000 tables= (Bonus, dept, EMP, Salgrade) file=d:\back\scott\ Data20141212.dmp Log=d:\back\scott\data20141212exp.log

Original works, from the "Blue Blog" blog, Welcome to reprint, please be sure to indicate the following sources, otherwise, the legal responsibility to pursue copyright.

Deep Blue Blog:http://blog.csdn.net/huangyanlong/article/details/42104599

Backup _ use Word to write and export multiple table statements

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.