SET LONG 900000 SET PAGESIZE 40000 EXECUTE DBMS_METADATA.SET_TRANSFORM_PARAM (DBMS_METADATA.

SESSION_TRANSFORM, 'STO RAGE',false); SELECT dbms_metadata.get_ddl('TABLE', 'CIF_VIEW_CLIENTES') FROM dual; SELECT dbms_metadata.get_ddl('MATERIALIZED_VIEW', 'CIF_VIEW_CLIENTES') FROM dual; SELECT dbms_metadata.get_ddl('MATERIALIZED_VIEW', 'POR_VIEW_CIF_FONOCLIENTE') FROM dual; SELECT dbms_metadata.get_ddl('TABLE', 'CAR940','POR_ADMIN') FROM dual; SELECT dbms_metadata.get_ddl('VIEW', 'MY_TABLES') FROM dual; SELECT dbms_metadata.get_ddl('FUNCTION', 'WHOAMI') FROM dual; select dbms_metadata.get_ddl('TABLE','DEPT','SCOTT') from dual; select dbms_metadata.get_ddl('INDEX','DEPT_IDX','SCOTT') from dual; SELECT dbms_metadata.get_ddl('PROCEDURE', 'CIF_SP_LIS_CMTEXC','CIF_ADMIN') FROM dual; ----------select * from nls_session_parameters; ALTER SESSION SET NLS_LANGUAGE = AMERICAN; ALTER SESSION SET NLS_LANGUAGE =SPANISH; conectar como CIF_ADMIN ------------------------set linesize 130 SET LONG 900000 SET PAGESIZE 40000 set heading off spool respaldo_sp.lst SELECT dbms_metadata.get_ddl('PROCEDURE', 'CIF_SP_LIS_CMTEXC','CIF_ADMIN') FROM dual; spool off ------

SELECT dbms_metadata.get_ddl('TABLE','CLINAT','CIF_ADMIN') FROM dual;

Sign up to vote on this title
UsefulNot useful