Plsql Developer Backup restores Oracle data

Source: Internet
Author: User

Use the features provided by PL SQL to restore Oracle data quickly and back up.

1 Export all user objects such as stored procedures, triggers, sequences, and so on. Backup

In the PL/SQL Developer menu tools (tools) and export user Objects (export Users Object) a dialog box interface

It is recommended that the red box is not selected, so that when you execute this SQL, it is created according to your current login account. CTRL + A selects all in the object list (if you only export parts, you can select them individually)

Sets the output file address, file name. Click Export to finish.

2 Export data. Backup

A dialog interface in the PL/SQL Developer menu tools + Export Table

If the amount of data is large, select Oracle Export, tick the Compress option, and set the output file address. If you export only part of the data, you can add a condition in the where. For example, rownum<=1000 (export 1000 records), export the DMP format file in this way.

If the amount of data is small, you can choose SQL Insert, which exports the SQL file.

option, tick the constraint, index, number of rows, trigger.

Note: If the table contains Clob or NCLOB fields, it can only be imported in the DMP format, and if it is a small number of tables, it is possible to insert it in SQL.

When restoring, be aware that you need to restore the DMP file first.

3 table data Restore.

A. If the DMP file, then in the PL/SQL Developer menu tools (Tools) + Import table out a dialog box interface

You can select the account you are logged in to at the "to User" section.

b if it's a SQL format file, create a new command window in Plsql, and paste (Ctrl + V) The SQL content that was just responsible. Then it starts to perform the restore automatically.

4 Restoring other objects (stored procedures, triggers, sequences, functions, etc.)

A. Log in to the Oracle you want to restore with Plsql. At this point you are logged in the account is what, restore is under the account.

B. Open the previously backed-up table structure SQL file, and select the full selection. Then create a new command window in Plsql, and paste (Ctrl + V) The SQL content that was just responsible. Then it starts to perform the restore automatically.

Plsql Developer Backup restores Oracle data

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.