This discussion is archived
1 Reply Latest reply: May 7, 2013 9:00 AM by Brian Bontrager RSS

connecting and running a sql script from DOS prompt

933417 Newbie
Currently Being Moderated
Hi ,
I have a requirement where I need to connect to a databse and run a sql script file from DOS prompt.
Is it possible?Can u share me the code to do it .

I tried with below code,but not able to run the script

echo quit | sqlplus -s username/pwd@dbname@'C:\Documents and Settings\amugas\Desktop\DB_LINK.sql'

Thanks.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points