-----以下语句在拥有DBA权限下的用户执行:
CREATE USER TESTUSER1 IDENTIFIED BY 123456 --创建中间用户TESTUSER1
/
GRANT CONNECT TO TESTUSER1 WITH ADMIN OPTION --赋TESTUSER1连接权限
/
GRANT SELECT ON TABLE1 TO TESTUSER1 --将TABLE1查询权限赋予TESTUSER1
/
GRANT CREATE SYNONYM TO TESTUSER1 --将创建同义词的权限给TESTUSER1
/
CREATE synonym TABLE1 FOR TESTUSER1.TABLE1 --创建同义词