O'Reilly logo

Oracle Database 12c Backup and Recovery Survival Guide by Aman Sharma, Francisco Munoz Alvarez

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating smaller copies of production

Creating a smaller copy of a production environment is a very common task for a DBA (for development or test purpose), but many times your destination server doesn't have enough space to create a full copy of it! This can be easily solved using Data Pump, for example, let's say that you only have space for 70 percent of your production database. Now to know how to proceed, we need to decide if the copy will contain metadata only (no data/rows) or if it will include the data also. Let's see how to do this each way:

  • Metadata-only:
    1. First, do a full export of your source database:
      $ expdp fcomunoz/alvarez@pdborcl content=metadata_only full=y 
      directory=datapump dumpfile=metadata_06192013.dmp
      
    2. Then, let's import the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required