Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Howto start a sql script from windows

Status
Not open for further replies.
Sep 1, 2003
10
NL
How do I start a commandfile in windows to get data/commands in/out oracle?

I know that it has to be something like a command file containing a string like "sqlplus@example.sql". In the file example.sql there is a string like "select * from dual;". I'm at the moment only familiar with the Unix style "<EOF"

It should run in windows 2000 prof against a 9i db.
 
Passing @scripname parameter to sql*plus causes it to execute commands containd in that file. Though the first parameter sql*plus expects is login/password@database, i.e. connect string. Of course you may log in from the script itself, but in this case you should launch sql*plus with /nolog switch.

Regards, Dima
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top