프로그램/Oracle

spool 관련..

잡식성초보 2015. 1. 14. 12:32

spool  경로 파일명

select th_code
from th_table
where sale_tcode = '02'
and th_date <= to_char(sysdate+7,'yyyymmdd')
and th_code <> '777'
order by 1;
spool off

이런식으로 일단 양에 맞게 set line 숫자 로 잘 지정해 준후

set line 500   -> spool /root/EAMEVENT_CASE_ITEM.txt(or C:\test.txt)  -> SELECT * FROM EAMEVENT_CASE_ITEM; -> spool off


그런데 오늘 sp2-0606 cannot create spool file 이 에러가 발생했다....

이 에러는 그냥 경로가 맞지 않아서 생긴것이다...경로를 다시 확인해 주면 된다....



반응형