Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Importing Packages Only

Re: Importing Packages Only

From: Connor McDonald <mcdonald.connor.cs_at_bhp.com.au>
Date: Thu, 18 Mar 1999 15:52:28 +0800
Message-ID: <36F0B0BC.6D3B@bhp.com.au>


Bill Buchan wrote:
>
> I have accidentally dropped some packages that I wanted to keep.
> Fortunately these were in the full export file which I had just generated.
> But I can't find any way of importing just these packages without importing
> the whole export file back into another schema and then copying them.
>
> I can see how to import individual tables from a dump file,
> TABLES=tablename, but I can't see any way of being selective about any other
> objects.
>
> Is this correct? Do I have to wait for a huge import job to run to get at a
> couple of small packages? There must be a better way!
>
> Any advice gratefully received as ever!
> Many thanks,
>
> - Bill
>
> PS: Oracle 8.04 on NT4

Haven't tried this - but you could try:

create user xxx;
grant create session, create procedure to xxx; import the file - all the table create stuff etc will fail with insufficient prvs
at the end you'll have a lot of pl/sql export out the xxx user
import into target environment

Cheers
--



Connor McDonald
BHP Information Technology
Perth, Western Australia
"Never wrestle a pig - you both get dirty and the pig likes it..." Received on Thu Mar 18 1999 - 01:52:28 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US