Home » RDBMS Server » Server Administration » Oracle on Windows 2000
Oracle on Windows 2000 [message #50190] Tue, 05 March 2002 08:39 Go to next message
kiran kumar
Messages: 17
Registered: June 2001
Junior Member
In unix at command prompt we can write a sql stmt as shown below

'sqlplus user/pwd@string << EOF
select * from dept
EOF'

Is there anything similar to that in DOS ? , unix style
does not work here....

Thanks in advance
kiran
Re: Oracle on Windows 2000 [message #50192 is a reply to message #50190] Tue, 05 March 2002 10:13 Go to previous messageGo to next message
Grant
Messages: 578
Registered: January 2002
Senior Member
One way:

sqlplus scott/tiger@SID @sqlscript.sql

Where sqlscript.sql would contain "select * from dept;" and SID would be an entry in your tnsnames.ora file.
Re: Oracle on Windows 2000 [message #50222 is a reply to message #50190] Wed, 06 March 2002 07:43 Go to previous message
kiran
Messages: 503
Registered: July 2000
Senior Member
Thanks for the help Grant
Previous Topic: dbms_lock
Next Topic: Export/Import
Goto Forum:
  


Current Time: Tue Dec 24 20:26:00 CST 2024