문서의 이전 판입니다!
-- beflyt 계정에서 sql> select 'grant select on '||TABLE_NAME||' to BEFLYS;' from user_all_tables; -- system 계정에서 sql> select 'grant select on '||TABLE_NAME||' to BEFLYS;' from user_all_tables where owner = 'BEFLYT';
$ sqlplus scott/******
SQL> grant select on stable to eagle;
#!/bin/sh
if [ $USER != "oracle" ] ; then
echo "'$USER' is not oracle "
fi
sqlplus /nolog <<EOF
connect scott/******
grant select on stable to eagle;
EOF