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