Problem : SP2-0332: Cannot create spool file

Problem : SP2-0332: Cannot create spool file

SP2-0332: Cannot create spool file
I get this error when I run my unix script. I spool to /opt/logs/exception_file  and it gives me error SP2-0332:. when I spool just to the file name exception_file  it works. The problem with just the file name is it put the output in the directory of the script. I need for it to put it in the log directory.

${ORACLE_HOME}/bin/sqlplus -s -s -s -s -s -s -s -s -s -s -s -s -s -s -s -s -s -s -s -s ${DBLOGIN} <
SET HEADING OFF FEEDBACK OFF VERIFY OFF PAGESIZE 0 LINESIZE 120 SERVEROUTPUT ON SIZE 1000000
spool /opt/logs/exception_file
select process_date, status, change_log from billing_table
where trunc(process_date) = trunc(sysdate) and
status like ‘EXCEP%’;
spool off
EOF


Solution: SP2-0332: Cannot create spool file

Do you have permissions to create files in the logs directory?