Code:
function user {
sqlplus primeit@$ORACLE_SID/primeit <<EOF
select user_name from test;
EOF
}
function gen {
genpwdfile dec -in $1 -out $2
echo $1
echo $2
}
function reset {
sqlplus primeit@$ORACLE_SID/primeit <<EOF
select user_name from user;
EOF
}
This is error i am getting when m trying to use functions such "USER" but when i am trying to access same directly on the command line it goes to sql without an issue.