set verify off
ACCEPT systemPassword CHAR PROMPT 'Specificati parola pentru SYSTEM>'
PROMPT

ACCEPT oraSID CHAR PROMPT 'Specificati SID-ul bazei de date>'
PROMPT

ACCEPT fnName CHAR PROMPT 'Specificati numele pentru firma noua>'
PROMPT

ACCEPT fnPassword CHAR PROMPT 'Specificati parola pentru &&fnName>'
PROMPT

connect SYSTEM/&&systemPassword@&&oraSID

@CreateFN.sql

disconnect

spool import_firma.bat

PROMPT impdp SYSTEM/&&systemPassword@&&oraSID directory=DMPDIR dumpfile=firmanoua.dmp logfile=&&fnName.log remap_schema=firmanoua:&&fnName

spool off

quit