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;