Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要在 pl/sql 中从用户连接到另一个用户,注意我没有 DBA 权限。
你能给我两个用户之间连接的命令吗?
PL/SQL 没有改变连接的命令。如果您需要某些特定权限,则必须授予它们。
您不需要新的连接,只需将其他用户名添加到他/她的表和过程中:
SELECT * FROM user_name.his_table WHERE ...;
如果您收到错误消息ORA-00942: table or view does not exists,则以新用户身份登录并设置访问权限:
ORA-00942: table or view does not exists
GRANT SELECT ON his_table TO <old_user>;