Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有时我们无法通过 dbms_metadata.get_ddl 包获取源代码,然后我们可以使用 OEM 作为另一种生成 DDL 的方式
登录到 OEM 控制台后 -> 选择目标 -> 数据库 -> 选择数据库 -> 按照屏幕截图进行操作。
截图一:
截图二:
截图 3:
截图 4:
截图 5:(以 sys 作为 sysdba 角色登录)
屏幕截图 6:(搜索对象并从下拉列表中选择生成 DDL ,然后单击Go)
截图 7:(这是你的源代码)
现在这里是来自 OEM 的 select 函数的最终源代码,您也可以生成其他对象的源代码。