Export schema from database oracle 10g

<logical dump name>
<dump directory>
<schema>
<db>
<user>
<password>

. oraenv
<db>

sqlplus / as sysdba
CREATE OR REPLACE DIRECTORY <logical dump name> AS '<dump directory>';
grant read, write on directory <logical dump name> to <user>;
exit;

expdp <user>/<password> schemas=<schema> directory=<logical dump name> dumpfile=<schema>_prod.dmp logfile=<schema>_prod.log


Example:

<logical dump name> = stjdump
<dump directory> =/home/oracle/stjdump
<schema> = sysdocs
<db> = db11g
<user> = jenkinss
<password> =

. oraenv
<db>

sqlplus / as sysdba
CREATE OR REPLACE DIRECTORY stjdump AS '/home/oracle/stjdump';
grant read, write on directory stjdump to jenkinss;
exit;

expdp jenkinss/<password> schemas=sysdocs directory=stjdump dumpfile=sysdocs_prod.dmp logfile=sysdocs_prod.log