腳本可分兩部分:
同義詞
sqlplus dxsq/teledoone@jnnew @synonym
create table tmp_user_synonym as select
set heading off feedback off termout off
set pagesize
set linesize
set long
col tt format a
spool d:\bat\synonym
select text tt from tmp_user_synonym;
spool off;
drop table tmp_user_synonym;
exit;
大家可以以一反三
drop table tmp_user_sequence;
create table tmp_user_sequence (text varchar
declare
begin
for tt in (select * from user_sequences) loop
insert into tmp_user_sequence values(
insert into tmp_user_sequence values(
insert into tmp_user_sequence values(
insert into tmp_user_sequence values(
insert into tmp_user_sequence values(
insert into tmp_user_sequence values(
insert into tmp_user_sequence values(
insert into tmp_user_sequence values(
insert into tmp_user_sequence values(
if tt
insert into tmp_user_sequence values(
end if;
if tt
insert into tmp_user_sequence values(
end if;
insert into tmp_user_sequence values(
insert into tmp_user_sequence values(
end loop;
commit;
end;
/
set heading off feedback off termout off;
column text format A
spool d:\bat\user_sequences
select text from tmp_user_sequence;
spool off;
exit;
From:http://tw.wingwit.com/Article/program/Oracle/201311/16952.html