Use Alter Package statement to compile invalid package body in Oracle 11g. Sometimes package got invalid in Oracle if their dependency objects have been modified or due to errors in the package body.
Alter Package Syntax
Alter Package package_name Compile Body;
Alter Package Example
ALTER PACKAGE emp_pkg COMPILE BODY;