sqlplus -s /nolog <<! set serveroutput on size 100000 @/path_of_my_script exit !
hi, i encountered the above statment in a unix script file and i have some questions, would appreciate if someone can enlighten me.
What is the purpose of <<! ?
What is the purpose of exit ? does it exit the sqlplus program?
Why does the statment ends with a ! ? The '!' probably is to match the one at the beginning of the statement, i guess. Would appreciate if someone explaines the meaning of the !!. Thank you.
This statement means give input to the sqlplus command until you encounter a !. The '<<' operator is called the here document. You can get more information on this from other threads too. exit is the exit command of sqlplus to exit from the sql prompt.
so it means 'set serveroutput on size 100000 @/path_of_my_script exit' is fed into the sqlplus command? the (!) just acts as a delimiter.
Would you mind explaining:
What does the -s stands for ?
i read from another post about /nolog. One of the replies was that, it means no initial connection is made to the db. I do not understand it. If not conenction is made, how does it query the db later on?