Oracle Solution for Error ora-00166

ORA-00166: remote/local nesting level is too deep

What triggered the Error:

Too many remote table operations required a reverse trip back to the local site, for example to execute a local function on a remote table.

What should we do to fix it:

Rearrange the query or co-locate the functions with the tables.