I am using 8 db links in a package and the package has 34,000
lines of code.

When I compile it on a particular server it works.
But when i try do it in another environment,
i get the following error

ORA-04052: error occurred when looking up remote object SAT1.SAT1@DDB_SAT1.SIB.COM
ORA-00604: error occurred at recursive SQL level 1
ORA-02020: too many database links in use

Also the same scripts are used to build both the environments.

Any help would be of great use.
Thanks in Advance