DBA Hub

πŸ“‹Steps in this guide1/2

What is EOF in a shell script

Basically <<EOF tells the shell that you are going to enter a multiline string until the "tag" EOF.

oracle configurationintermediate
by OracleDba
14 views
1

Overview

Basically <<EOF tells the shell that you are going to enter a multiline string until the β€œtag” EOF . Example : sqlplus / as sysdba <<EOF select name, open_mode from v$database; archive log list; EOF You can save the EOF output to another file
2

Section 2

sqlplus / as sysdba << EOF > out.log select name, open_mode from v$database; archive log list; EOF This will create a new file out.log in current location which will contain output sql queries.

Comments (0)

Please to add comments

No comments yet. Be the first to comment!