I love blogging about new technology appropriate for the enterprise. I want to change the face of innovation to embrace change, agility and promote an innovation culture.
Friday, 14 December 2012
Refresh your TEST environment with DATAPUMP JDE
Please do not use R98403, if you are - you might need to give up on CNC, or at least read on. If you are on a 400, data refresh is easy (cept for that damn auditing!!!). If you are oracle use data pump, if you are SQL, back / restore and sp_changeObjectOwner!
Here is the data pump instructions:
create directory myDpump as '/u02/oracle/dpump' ;
grant READ,WRITE ON DIRECTORY myDpump TO JDE_ROLE ;
then execute the datapump for an export and then an import.
I tend to use parfiles, so I can move them from site to site.
expdp PRODDTA/PRODDTA@JDEPOC parfile=./prod.par
# PD expdp parfile
schemas=PRODCTL,PRODDTA
#content=data_only
content=all
#directory=data_pump_dir
directory=data_pump_myriad_dir
dumpfile=prod.dmp
logfile=prod_expdp.log
job_name=prod_expdp
impdp TESTDTA/TESTDTA@JDEPOC parfile=./prod.par
# DV impdp parfile
schemas=PRODCTL,PRODDTA
remap_schema=PRODCTL:TESTCTL,PRODDTA:TESTDTA
remap_tablespace=PRODCTLI:TESTCTLI,PRODCTLT:TESTCTLT,PRODDTAI:TESTDTAI,PRODDTAT:TESTDTAT
#table_exists_action=truncate
table_exists_action=replace
#content=data_only
content=all
#directory=data_pump_dir
directory=data_pump_myriad_dir
dumpfile=prod.dmp
logfile=test_impdp.log
job_name=test_impdp
#parallel=4
Thanks to Craig VDV for giving me a start on this one!
If you are enterprise edition of the DB, bang in a parallel=4 at the bottom - this will kick of 4 threads to do your work.
Subscribe to:
Post Comments (Atom)
-
There are a heap of instructions of what you need to change if you change the IP address of your weblogic server, but I find they are not co...
-
They have been around for quite some time, but it's nice to have a refresher on these types of things. 8.12 and 9.0 have have started...
-
I’m running windows 7 virtual on OVM with office 2010. Have E1 fat boy and oracle 11G client. I’m using this machine for some BIP prototyp...
2 comments:
Hi Shannon,
I understand that using SAVF in iSeries is much easier than wait hours and hours for R98403 finish but I have some issues everytime I do it. For instance, all logical files in iseries are linked with the physical files in Prod lib. How do you manage that?
Hi, I'd always use SAVLIB and RSTLIB to a SAVF. I don't believe I have the issues with logical file linkages back to PD. Sure, the triggers for 21CFR11 are generally wrong, but I do not get the problem with logicals. It might be that I use the LIB and not *OBJ?
Post a Comment