首页 > 解决方案 > 如何使用 expdp Release 12.2.0.1.0 导出 oracle 数据库版本 12.1.0.2.0

问题描述

我正在运行以下命令来转储我的数据库

./expdp username/password@//host:port/database directory=/home/ubuntu/oracle/instantclient_12_2 dumpfile=dumpfilename.dmp content=METADATA_ONLY

并出现以下错误

Export: Release 12.2.0.1.0 - Production on Fri Sep 14 06:14:28 2018

Copyright (c) 1982, 2017, Oracle and/or its affiliates.  All rights reserved.
UDE-00018: Data Pump client is incompatible with database version 12.1.0.2.0

我尝试搜索并且有人建议使用VERSION参数,但我仍然没有成功。

有谁知道我应该怎么做才能克服这个问题?

我不能使用instantclient-tools-macos.x32-12.1.0.2.0.zip,因为它没有expdp命令。

标签: oracleoracle12cexpdp

解决方案


您可以使用数据泵 PL/SQL API使用数据泵 API 的示例 Oracle Doc 12.2


推荐阅读