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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Executing Orac;e script

Status
Not open for further replies.

balachandar

Programmer
Apr 16, 2001
88
CA
Hi,
I want to delete a record from a table called File_Upload.
I need to execute this sql statement from DOS prompt using a batch file. Any idea on how this can be done. The necessary user id and password will have to be passed to this bat file.

Thanks and Regards
Balachandar Ganesan.
 

You could craete an sql script with your sql statements or
try something like this:
Code:
REM MyQuery.bat
echo conn uid/pw@db1 >MyQuery.sql
echo select sysdate from dual; >>MyQuery.sql
echo exit MyQuery.sql
sqlplus /nolog @MyQuery.sql
[3eyes]

----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top