You can try the following approach. Note: I have never tried this approach to hide code, but could be applied in your case.
- create another schema with synonyms this indicates all the required code from the source schema.
- restrict access to the original schema only from the new schema, thus hiding the code.
- Use the new scheme for sharing.
I have code that can create such a scheme as a sample. Take a look and see if the approach suits you.
http://1smallthought.blogspot.com/2008/06/creating-shortcut-to-schema-using.html
source share