Logical backup and recovery of database (table) - export scheme and database

Exporting a schema
Exporting a schema means using the export tool to export all objects (tables, indexes, constraints...) and data in a schema or multiple schemas and store them in a file.

1) Export your own scheme
exp scott/tiger@orcl owner=scott file=d:\scott.dmp

2) Export other schemes
If users want to export other schemes, they need dba permissions or exp_full_database permissions,

such as system users. Export any scheme
This is to guide the scheme of system and scott
exp system/Mayu2638@orcl owner=(system,scott) file=e:\system.dmp

 

Exporting the database
Exporting the database means using export to export objects and data in all databases, requiring the user to have the dba authority or the exp_full_database authority

exp userid=system/manager@orcl full=y inctype-complete file=x.dmp

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327059642&siteId=291194637