How to Use dbschema to export the database structure

Source: Internet
Author: User
1) Export all the table structures in the database to the file dB. SQL
$> Dbschema-D your_database-t all dB. SQL
2) export all stored procedures in the database to the file dB. SQL
$> Dbschema-D your_database-f all dB. SQL
3) export all objects in the database (including tables, stored procedures, triggers ......) To File dB. SQL
$> Dbschema-D your_database dB. SQL
4) export the structure of a table in the database to the file dB. SQL
$> Dbschema-D your_database_name-T your_table_name dB. SQL
5) export a stored procedure definition to the file dB. SQL
$> Dbschema-D your_database_name-F your_procedure_name dB. SQL
6) If you export more table information (extent ...)
$> Dbschema-D your_database_name-SS dB. SQL
7) export the user or role authorization information in the database
$> Dbschema-D your_database_name-P all
$> Dbschema-D your_database_name-r all
8) Export synonyms in the database
$> Dbschema-D your_database_name-s all

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.