When I use this script :
sqlplus -s "/ as sysdba" << EOF
startup;
EOF
It starts db and returns to host. I want my script doesn’t return to host. Where is my mistake?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Does it help if you add
exitto your script? In other words, if you try something like:EDIT: if you don’t want SQL*Plus to exit after running
startup, put the linein a file named
startup.sql, say. You can then runThat should then start the database and leave you in SQL*Plus.