文字列連結とオラクルのディクショナリを上手く活用して、
export文を作成できる。
spool exp.sh
select
'exp user/passwd file='|| tname ||
' tables='|| tname ||
' log='|| tname || '.log' ||
' direct=y'
from tab
where tabtype in('TABLE')
order by tname;
spool off
exit;
文字列連結とオラクルのディクショナリを上手く活用して、
export文を作成できる。
spool exp.sh
select
'exp user/passwd file='|| tname ||
' tables='|| tname ||
' log='|| tname || '.log' ||
' direct=y'
from tab
where tabtype in('TABLE')
order by tname;
spool off
exit;