1

I am using SQLPLUS version DEFINE _SQLPLUS_RELEASE = "1102000200" (CHAR). In which i am trying to spool a file which is already exist with append command. But it's giving me an error as

SQL> spool test_dir/test.txt append; SP2-0556: Invalid file name.

can any one please help me why am i getting this error

teepu
  • 266
  • 1
  • 6
  • 18

1 Answers1

0

Spool is a client side utility and generates the file at same location or from where you are executing the script or location from where your sqlplus is started or at path specified by you. not in oracle server directory.

Now, in your you case specify the whole path then it will work.

Something like:

Spool c:\windows\temp\test.txt

Cheers!!

Popeye
  • 35,427
  • 4
  • 10
  • 31