Invalid File Name on login to SQLPLUS

errorsoracle-11gsqlplus

The moment I log into SQLPLUS I get an SP2-0556 error. I recently moved OS but am connecting to the same database so I am not sure if it's because I'm using my old TNSNames or what. I can connect and work normally but a few issues have arisen with running SQL scripts due to this where they then say Invalid File Name.

Any help would be greatly appreciated, thanks.

  • the database is 11g,
  • the command I use for running scripts is a custom ant script that basically loops through and runs normal .sql scripts,
  • and I changed from a Ubuntu system to Mac OS X.

The issues are that any new scripts I create (that I know work) give a Invalid File Name error then stop.

Best Answer

This might be Bug 7150873 SQL SCRIPTS FILE NAME CONTAINING SPACES RESULTS IN SP2-0556.

I assume that your script is trying to call a script containing spaces.