Copy this code and paste it in your HTML
SELECT 'grant select on ' ||
:src_schema ||
'.' || object_name ||
' to ' ||
:target_schema ||
';' AS grant_cmd
FROM ( SELECT * FROM all_tab_privs privs
WHERE privs
.table_schema
= :src_schema
AND privs
.table_name
= tabs
.table_name
AND privs
.grantee
= :target_schema
)
SELECT * FROM all_tab_privs privs
WHERE privs
.table_schema
= :src_schema
AND privs
.table_name
= seqs
.sequence_name
AND privs
.grantee
= :target_schema
)
)
;