set pagesize 0
set long 90000
set feedback off
set echo off
spool get_schema.sql
connect user_/pwd_@dev
SELECT DBMS_METADATA.GET_DDL('TABLE',u.table_name) FROM USER_TABLES u;
SELECT DBMS_METADATA.GET_DDL('INDEX',u.index_name) FROM USER_INDEXES u;
spool off;
posted on 2006-08-19 20:50
坏男孩 阅读(1261)
评论(0) 编辑 收藏 所属分类:
ORACLE篇章