This will generate spool file "privs.sql" in current working directory

Remove references to users from privs.sql that does not exist in target database

connect as user with dba role on target database and run script privs.sql Object privileges can be granted by "object owner" only. Script will ask for password of each user who granted object privilege.