sql script hangs in SQLplus on Solaris
Have you committed or rolled back the transaction? It seems like transaction isn't committed. 

You just need to either add an exit at the end of the script, or run it as sqlplus username/password@server/dbname &lt; Setup.sql (i.e. redirected input, &lt; instead of @). 

You can check if that's the issue by just typing 'exit' in the hanging session.