是否只是去掉了table_name最后两位.
create or replace procedure test(table_name in varchar2)
as
type t_sor is ref cursor;
v_sor t_sor;
str varchar2(100);
begin
str:='select * from '||substr(table_name,1,length(table_name)-2);
open v_sor for str;
...
end;
/