Skip to Main Content

Oracle Database Express Edition (XE)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

executing sql scripts with command line Sql plus

lcomJun 27 2006 — edited Jun 27 2006
Hello
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 25 2006
Added on Jun 27 2006
5 comments
5,240 views