i have a shell with an array in wich there is a list of tables of a oracle db. This is the array:
ListTabs=""
ListTabs=$ListTabs"T_Tab1\n"
ListTabs=$ListTabs"T_Tab2\n"
ListTabs=$ListTabs"T_Tab3"
echo $ListTabs
arrArr=0
IFS=\n
for listArr in ${ListTabs[@]};
do
#echo $listArr
MYDIR[${ARR}]=$listArr
(( arrIdx = $ARR+ 1 ))
done
then i have a select with a sqlplus connection
sqlplus -S -L ${MYCONNCTIONDB} @${FILE_SQL}
When i try to run the shell i get the error:ORA-01017: invalid username/password; logon denied. I'm sure that the connection is correct because if i delete the array the shell goes well. Any ideas?