Creating a DDL for a baseline for flyway

让人想犯罪 __ 提交于 2019-12-25 00:36:48

问题


I've got an oracle 11 XE database, with 3 schemas in it, that I want to create a DDL file for to make a baseline script to use with flyway.

I've tried to export just the DDL of all 3 schemas, but the resulting sql doesn't include the creation of the users, or the creation of the tablespaces. It just starts off with sql to create tables, which will not work as the users or the tablespaces don't exist.

Is there any way to do this with sql-developer or am I using the wrong tool for the job here?

I'm thinking I may need to include all the SYSTEM objects in the DDL, but no idea how importing that into a running oracle instance will work.

Any tips or hints I'd be grateful for, I'm starting to think this plan just isn't possible. :-(

Thanks

Matt


回答1:


when we generate the ddl for a schema, we grab the schema objects, not the definition of the user that owns the schema, nor the tablespaces used IN the schema

you can still get those though, just open the DBA Panel -



来源:https://stackoverflow.com/questions/54931464/creating-a-ddl-for-a-baseline-for-flyway

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!