Oracle 使用 execute immediate 不能赋值问题

create or replace procedure sp_page(AllCount OUT NUMBER,
                                    ResultSet OUT PagePack.PageCursor,
                                    PageCurrent IN NUMBER,
                                    PageSize IN NUMBER,
                                    Fields IN VARCHAR,
                                    Condition IN VARCHAR,
                                    OrderGroup IN VARCHAR,
                                    IsCount IN NUMBER)
                                    Authid Current_User
as
pageindex number;
psize number;
sqlstr varchar2(1000);
sqlcomm varchar2(1000);
BEGIN

 

只需要创建存储过程中使用Authid Current_User赋值就即。

手动赋值可能赋不全,可参照以下:

以sys as sysdba身份登陆(命令窗口运行),显式赋予
grant select on dba_data_files to userName
grant select on dba_free_space to userName
grant select on dba_free_space_coalesced to userName

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。