executing sql scripts with command line Sql plus
lcomJun 27 2006 — edited Jun 27 2006Hello
Well I will be gradefull if I have an answer to the follow questions
a) How can I connect to a remote XE using sqlplus (command line)?
for example I'm trying to connect like this : sqlplus sys/syspassw@//remoteserver:1521/xe
and I get responce from server that I have to connect as SYSDBA or SYSOPER, so what is the proper syntax in this case?
b) I want to execute a script file with DDL commands from Windows conscole using sqlplus. Inside this script I have the connect command and others. Is there a way to pass the name of script file as parameter to the sqlplus and execute it ? If yes what is the proper syntac from command line of Windows?
Thank you