Oracle expdp Export Command Guide
In Oracle, you can utilize the expdp command to export data. The following is an example of exporting data using the expdp command:
- Export the entire database.
- Export data from a database with the given username and password to a dump file named dumpfile.dmp using the expdp command.
- This command exports the entire database to a file named dumpfile.dmp.
- Export the specified template:
- Export data from a specific schema in the database to a dump file using the expdp command with the given username and password.
- The command will export the specified schema to a file named dumpfile.dmp.
- Export the specified table:
- Export data from the table specified in “table_name” from the database named “database_name” using the username and password provided, and store it in a file named “dumpfile.dmp”.
- This command will export the specified table to a file named dumpfile.dmp.
- Export specified data.
- Export data from the database with the specified condition using the expdp command. Save the output in a dumpfile. Use username, password, and database_name to access the database.
- This command exports data that meets the specified conditions to a file named dumpfile.dmp.
- Export the specified table space:
- Export data pump (expdp) command with the given username, password, and database name, specifying the tablespace to be exported and the dumpfile for the output.
- This command exports the specified tablespace to a file named dumpfile.dmp.
- Export specified users:
- Export the specified user’s data from the database using the expdp utility.
- The command will export the specified user to a file named dumpfile.dmp.
Please note that in the above command, username refers to the database username, password is the user’s password, database_name is the name of the database, schema_name is the name of the schema, table_name is the name of the table, condition is the query condition, tablespace_name is the name of the tablespace, directory_name is the directory for the export file, and dumpfile.dmp is the name of the export file.