PLSQL Developer can synchronize table structures and table data of different databases.

Source: Internet
Author: User
Tags comparison table

PLSQL Developer can synchronize table structures and table data of different databases.

The Tools Options in the PLSQL Developer menu contain the Compare User Objects and Compare Table Data functions.


1. Tools --> compare user objects

This function is used to compare objects owned by different users (including tables, sequence, function, procedure, and view) and generate SQL scripts for synchronization differences. You can execute this script, the object structure of two users can be synchronized. Of course, you can select one or more objects for comparison.

Procedure:
1. Select a comparison object for the sample database
2. Select the Target database (Target Session...), that is, the database to be modified and synchronized
3. Click the Compare button.
4. On the Differences tab, click each object to view the SQL statement for eliminating the difference, and click Apply SQL in Target Session to execute
5. Click Show Differences to display the Differences.
 

2. Tools --> compare table data

This function is used to compare the data consistency in some tables and automatically generate an SQL script for synchronization difference. You can execute this script, you can synchronize the data between the Compare object and the compared object.

Procedure:
1. Select a comparison table for the sample database
2. Select the Target database (Target Session...), that is, the database to be modified and synchronized
3. Click the Compare button.
4. On the Differences tab, click each table to view the SQL statements for eliminating the difference.
5. Click Apply SQL in Target Session to execute

Note: Updates other fields for records with the same primary key value.


How to Use plsql developer to export the Oracle table structure

Tools-> export user objects
Export table structure
 
How can I view all tables of a database after pl/SQL Developer connects to the database?

There is an Object browser under the menu Tools to check it (if it has been checked, you don't have to worry about it), and then there is an Objects window on the left of the IDE, with a tree structure diagram, you can find the Tables in it to show all the Tables. By default, the displayed Tables include the system Tables and Tables in other schemas permitted by permissions. If you do not want to see the Tables, you only need to change All objects (drop-down box) on the top of the tree chart to My objects to view your own table.

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.