0% found this document useful (0 votes)
51 views3 pages

Task: Parfile Hostname IP Address Database Name Schemas Type

The document provides instructions for exporting schemas SCOTT, ALICE, and DEVRY from the PrimeDG database on server Server-223 using a Data Pump parameter file. It outlines the steps to connect to the server, set the database environment, create a directory for the parameter file, generate the parameter file specifying the schemas, dump file, and log file, and run the Data Pump export using the parameter file. The steps ensure the DDL and DML of all objects in the specified schemas are exported to a dump file.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
51 views3 pages

Task: Parfile Hostname IP Address Database Name Schemas Type

The document provides instructions for exporting schemas SCOTT, ALICE, and DEVRY from the PrimeDG database on server Server-223 using a Data Pump parameter file. It outlines the steps to connect to the server, set the database environment, create a directory for the parameter file, generate the parameter file specifying the schemas, dump file, and log file, and run the Data Pump export using the parameter file. The steps ensure the DDL and DML of all objects in the specified schemas are exported to a dump file.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Task:

Exportthefollowingschemasusing
parfile
.Belowarethemoredetails.
Hostname

Server223

IPaddress

192.168.0.223

DatabaseName

PrimeDG

Schemas

SCOTT,ALICE,DEVRY

Type

BothDDLandDMLofallobjectsofaforementionschemas.

Solution:
No

Steps

Command

PuttytoServer223

Switchusertooracle

suoracle

SetDatabaseEnvironment

.oraenvPrimeDG

FindtheDatabaseDirectorytobeusedforDataPump

Inthiscase,Iwouldliketousedirectorycalled
MOIDDPfortheexportwork.

setlinesize200
setpagesize200
columndirectory_pathformata70
Selectdirectory_name,directory_pathFROMdba_directoriesorderby1

exit

Createadirectoryforalldatapumpparfiles

mkdir~/scripts/parfile

Createaparameterfilethatcanbeusedforexporting
datausingdatapump.

cd~/scripts/parfile
visda.par
andaddthefollowing(youcaneditasperyourneed)

ESC
i
togotoinsertmode
directory=MoidDP
dumpfile=Al_Dv_Sc.dmp
logfile=Al_Dv_Sc.log
schemas=devry,scott,alice
ESC
:wq!
Saveandexitout

Startthedatapump

cd~/scripts/parfile
expdp"'/assysdba'"parfile=sda.par

Verifydmpfileiscreated.

Hopethishelps.

MoidMuhammad

You might also like