Problem running oracle script from command line using sqlplus

前端 未结 6 595
暖寄归人
暖寄归人 2021-01-11 20:14

I\'m having a problem trying to run my sql script into oracle using sqlplus. The script just populates some dummy data:

DECLARE 
  role1Id NUMBER;
  user1Id          


        
6条回答
  •  感情败类
    2021-01-11 20:54

    You need to either put an exit at the end of the script, or run it as sqlplus username/password@server/dbname < Setup.sql (i.e. redirected input, < instead of @). You can check if that's the issue by just typing 'exit' in the hanging session.

    If it is really hanging, have you committed or rolled back the execution from Developer?

提交回复
热议问题