1、背景:用户jtuser中有jtproduct中表A,B的同义词,在用户jtuser中向表A,B插入数据,提示“权限不够”
2、将A,B表授权给jtuser用户
$ sqlplus / as sysdba
SQL> conn / as sysdba
SQL> grant insert any table,update any table to jtuser;
3、将序列授权给jtuser
SQL> conn jtproduct/jtproduct
SQL> grant select on SEQNAME to jtuser;