We have a database that is 3TB+ in size, and don't have enough space to restore it.
However, we want to retrieve code (stored procs) from a 15 day old backup.
Is is possible to restore the structure only from an Oracle backup?
backuporaclerestore
We have a database that is 3TB+ in size, and don't have enough space to restore it.
However, we want to retrieve code (stored procs) from a 15 day old backup.
Is is possible to restore the structure only from an Oracle backup?
Best Answer
The source of stored procedures is stored in the
SYSTEM
tablespace in theSOURCE$
table.You need not to restore any user data at all, simply restore the
SYSTEM
,SYSAUX
andUNDO
tablespaces and skip the rest. You can then open the database with the other tablespaces offlined, and you can access the stored procedures as usual, or queryDBA_SOURCE
orSOURCE$
directly.