create user ex identified by oracle; grant Resource to ex;grant connect to ex;grant create view to ex;grant create operator to ex;grant create indextype to ex; --1 创建测试用的数据表:create table TTT( PID INTEGER not null, PERSIONID VARCHAR2(18), RPERSIONID V…