简体   繁体   English

是否可以使用oracle数据泵导出数据库中的所有模式?

[英]Is it possible to export all schemas in a database with oracle data pump?

I am using Oracle 11g 11.2.0.1.0 and I'm trying to find a way of using data pump to export ALL schemas in a database. 我正在使用Oracle 11g 11.2.0.1.0,我正在尝试使用数据泵来导出数据库中的所有模式。 I know you can specify multiple schemas using the SCHEMAS argument, but I need to be able to export all schemas without having to explicitly name them, because at any given time I don't know exactly what schemas are there (it's a development database and developers can add schemas whenever they want). 我知道您可以使用SCHEMAS参数指定多个架构,但是我需要能够导出所有架构而不必显式命名它们,因为在任何给定的时间我都不知道确切存在哪些架构(这是一个开发数据库,开发人员可以随时添加模式。 Is there a way to do this with data pump? 有没有办法用数据泵做到这一点? Or is there some other tool which could do this? 还是有其他工具可以做到这一点?

Thanks! 谢谢!

You can export all schemas with full=y : 您可以使用full=y导出所有模式:

expdp system/password@db10g full=Y directory=TEST_DIR dumpfile=DB10G.dmp logfile=expdpDB10G.log
impdp system/password@db10g full=Y directory=TEST_DIR dumpfile=DB10G.dmp logfile=impdpDB10G.log

source 资源

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM