I have a newbie question – I searched the web for a long time but I cannot find any answers.
I understand that all packages,procedures and stored program units are stored in system tablespace or sysaux tablespace. My requirement is to copy a few schemas from a source database into a target database. Is it enough to exp the schemas and bring them into the target database ? Will this bring the stored program units also across.Or will I need to export the sys/system schemas ?. I exported one schema and did the following in unix.
strings expdat.dmp|grep -i “package” but this returns nothing. I also opened the exp file and searched for the packages but to no avail. So I created a parfile (tables=somepackagename) but exp complained that the object was not found.
Any Ideas ?
As long as the procedures/functions are owned by the user you are exported, it should come within the export. If you did not found “package” that’s maybe because the user you exported did not host any packages (but maybe only standalone procedures and/or functions).
Depending of your Oracle version, you may have expdp and option include.
Nicolas.