Hi Abdul,
> Would you guide me which scripts I have to execute to compile above objects?
The invalid PL/SQL packages DBMS_METADATA_INT and DBMS_METADATA_UTIL are well known issues in that upgrade procedure. Pleas try the following (as SYS):
SQL> alter package sys.dbms_metadata_util compile;
SQL> alter package sys.dbms_metadata_int compile;
If the compilation fails with an error like "keyword VALUE used as a defined name" or "keyword TYPE used as a defined name", then you have to run the following SQL script to fix this issue:
SQL> @?/rdbms/admin/catpprvt.sql
If you get another error - please post it here.
PL/SQL package XDB_MIGRATESCHEMA is also a known issue as no XDB is installed by default in a SAP environment. You can drop the package or keep it as it is. It is not a problem.
Regards
Stefan