简体   繁体   English

脚本化Oracle数据库:选定模式中的所有对象

[英]Scripting Oracle database : all objects from selected schemas

Currently we are using Oracle SQL Developer for scripting all objects from selected schemas. 当前,我们正在使用Oracle SQL Developer来编写所选模式中的所有对象的脚本。 But this is very uncomfortable solution, since we should select schema, search for all objects, select all objects and move all selected objects to the list. 但这是非常不舒服的解决方案,因为我们应该选择架构,搜索所有对象,选择所有对象并将所有选定的对象移动到列表中。 And each step is time expensive. 而且每个步骤都耗费时间。 And repeat it 12 times (12 shcemas should be exported). 并重复12次(应导出12个shcemas)。

Is it possible to improove export dialog through Oracle SQL Developer plugins? 是否可以通过Oracle SQL Developer插件改善导出对话框? Or may by the better way is to use shell/command prompt utilty for scripting Oracle DB... Which utility to use? 或者,也许更好的方法是使用外壳程序/命令提示符实用工具来编写Oracle DB脚本...要使用哪个实用工具?

Use SQLcl! 使用SQLcl!

Write some javascript, take advantage of built in SPOOL and DDL commands. 编写一些JavaScript,利用内置的SPOOL和DDL命令。 Much faster than using our GUIs. 比使用我们的GUI快得多。

Example here (from Kris ) - and it actually goes through ALL_OBJECTS https://gist.github.com/krisrice/de6f694b5241682059968bd5beadbcf7 这里的例子(来自Kris )-实际上它通过ALL_OBJECTS https://gist.github.com/krisrice/de6f694b5241682059968bd5beadbcf7

SQLcl uses the same code base as SQL Developer, but it's a command line interface and it offers client side scripting so you can do things like loop through a set of objects and interact with the OS. SQLcl使用与SQL Developer相同的代码库,但是它是一个命令行界面,并且提供了客户端脚本,因此您可以执行诸如遍历一组对象并与OS交互的操作。

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

相关问题 转储所有模式和触发器,并将它们导入另一个Oracle数据库 - Dump all schemas and triggers and import them into another Oracle database 是否可以使用oracle数据泵导出数据库中的所有模式? - Is it possible to export all schemas in a database with oracle data pump? 脚本出Oracle对象 - Scripting out Oracle objects Altova MapForce从多个Oracle数据库模式添加表 - Altova MapForce adding tables from multiple Oracle database schemas 我们如何在oracle中找到相同数据库实例的两个模式之间的对象差异 - How we can find difference in objects between two schemas of same database instance in oracle 如何检查和计算 oracle 数据库、表空间、模式、对象、回收站等的完整大小? - How to check and calculate the complete size of oracle database, tablespaces, schemas, objects, recycle bin and more? 如何在 oracle 中的默认用户帐户之外的所有模式及其分配的角色上备份对象权限? - How to take the backup of objects privileges on all schemas and its assigned roles except default user accounts in oracle? Oracle数据库:访问多个数据库模式 - Oracle Database: access multiple database schemas 默认模式的SQL文件在哪里(Oracle数据库) - Where are the sql files of the default schemas (Oracle database) 归档oracle数据库模式的最佳方法是什么? - What is the best approach to archive oracle database schemas?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM