Oracle impdp中content的用法
时间: 2023-11-25 08:05:55 浏览: 40
在 Oracle impdp 工具中,content 参数用于指定要导入的对象类型。以下是 content 参数的一些用法:
- all:导入整个数据库(默认值)。
- data_only:仅导入表中的数据,不包括表结构。
- metadata_only:仅导入表结构,不包括数据。
- schema_only:仅导入指定架构中的对象,不包括数据。
- tablespace_only:仅导入指定表空间中的对象,不包括数据。
- [schema_name.]table_name:仅导入指定表中的数据和结构。
- partition_options:指定要导入的分区选项。
例如,以下命令将仅导入指定架构中的对象,不包括数据:
```
impdp hr/hr DIRECTORY=dpump_dir1 DUMPFILE=hr_schema.dmp SCHEMAS=hr CONTENT=SCHEMA_ONLY
```
注意,content 参数仅在导入时使用,导出时不可用。
相关问题
oracle impdp
Oracle impdp is a command-line utility used for importing data and metadata objects into an Oracle database. It is used to import data from an export file created by the Oracle expdp utility. Impdp can import data into the same database or a different database, and it can also import data from a remote database. Impdp can be used to import entire schemas or individual objects, and it provides various options for controlling the import process, such as specifying the parallelism level, data compression, and data filtering.
oracle impdp 导入
以下是使用impdp命令进行Oracle导入的示例:
```shell
impdp user/passwd directory=data_dir dumpfile=expdp.dmp full=y
```
这个命令将从名为`data_dir`的目录中导入名为`expdp.dmp`的数据文件,并执行全量导入操作。请确保替换`user`和`passwd`为正确的用户名和密码,`data_dir`为正确的目录名称,`expdp.dmp`为正确的数据文件名称。