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.
在 sqldeveloper 中有一个有用的工具,用于在 sql 文件中导出模式中存在的所有对象。
无论如何,我找不到类似的东西来导出架构和用户信息。
我使用的 sqldeveloper 版本是 3.2
谢谢,皮瓦基奥。
DECLARE OBJECTDDL CLOB; BEGIN FOR I IN (select * from user_objects WHERE OBJECT_TYPE IN(/*WHATEVER YOU WANT*/) ) LOOP select dbms_metadata.get_ddl(I.OBJECT_TYPE,I.OBJECT_NAME) INTO OBJECTDDL from dual; DBMS_OUTPUT.PUT_LINE(OBJECTDDL); END LOOP; END;
祝你好运 :)