-- 测试数据库: ORACLE 11G2R
-- Create sequence
create sequence CUX.CUX_HR_MONTH_PROCESS_S
minvalue 1
maxvalue 9999999999999
start with 1
increment by 1
cache 10;
CREATE SYNONYM APPS.cux_HR_MONTH_PROCESS_S FOR CUX.CUX_HR_MONTH_PROCESS_S;
分配给用户1 执行序号的程序。
-- ORA-02205: only SELECT and ALTER privileges are valid for sequence
GRANT SELECT,ALTER ON CUX.CUX_HR_MONTH_PROCESS_S TO USER1;