any one help


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users any one help
# 1  
Old 09-18-2007
any one help

how can i run sql patch from unix shell like this:

sql "to log in sql"
update table1 set flag=1 where stat=1;
commit;
exit "to exit from sql"

I want to run it on the crontab but on this way it didnt work
# 2  
Old 09-18-2007
how about (say sqlplus was the sql program)

sqlplus ..... <<EOF
update .......;
commit;
quit;
EOF
# 3  
Old 09-18-2007
thanks porter
but how can i switch the user on the unix scrip with intering the user name and the password

thanks in advance

Smilie
# 4  
Old 09-18-2007
I thought you would have the user and password on the command line for sql[plus] (is it oracle?).
# 5  
Old 09-18-2007
look porter
our system (unix) is directly enter to sql by typing just the word "sql"
but I think if the system need from me the pass and the user mane I have to do that: sqlplus username/pass@login

is that right?
so no problem now for me because the script ran successfuly thanks porter

but I face this problem when I want to switch the user on unix how can do that
how can I give the system the user name and the pass through the script file

again thanks porter

Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question