2011-04-23 08:31:43 +07:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# $Id: RUN_DBRestore.sh,v 1.9 2005/01/22 21:59:15 jjanke Exp $
|
2012-06-06 21:13:34 +07:00
|
|
|
if [ $IDEMPIERE_HOME ]; then
|
|
|
|
cd $IDEMPIERE_HOME/utils
|
2011-04-23 08:31:43 +07:00
|
|
|
fi
|
|
|
|
. ./myEnvironment.sh Server
|
2012-06-06 21:13:34 +07:00
|
|
|
echo Restore idempiere Database from Export- $IDEMPIERE_HOME \($ADEMPIERE_DB_NAME\)
|
2011-04-23 08:31:43 +07:00
|
|
|
|
|
|
|
|
2012-06-06 21:13:34 +07:00
|
|
|
echo Re-Create idempiere User and import $IDEMPIERE_HOME/data/ExpDat.dmp
|
2011-04-23 08:31:43 +07:00
|
|
|
echo == The import will show warnings. This is OK ==
|
2012-06-06 21:13:34 +07:00
|
|
|
ls -lsa $IDEMPIERE_HOME/data/ExpDat.dmp
|
2011-04-23 08:31:43 +07:00
|
|
|
echo Press enter to continue ...
|
|
|
|
read in
|
|
|
|
|
|
|
|
# Parameter: <systemAccount> <adempiereID> <adempierePwd>
|
|
|
|
# globalqss - cruiz - 2007-10-09 - added fourth parameter for postgres(ignored in oracle)
|
2013-04-17 21:23:37 +07:00
|
|
|
$ADEMPIERE_DB_PATH/DBRestoredp.sh system/$ADEMPIERE_DB_SYSTEM $ADEMPIERE_DB_USER $ADEMPIERE_DB_PASSWORD $ADEMPIERE_DB_SYSTEM
|