Running sqlplus in background in Unix
&
will put it in the background
but if you actually want to close your terminal and leave for the day
you need to use nohup
nohup sqlplus USERNAME/password@DBNAME @test.sql &
Pass the script name in the SQLPlus command line:
sqlplus USERNAME/password@SCHEMA @test.sql &