From 4635b0e92ffbfbea293d34e9a7db15b94516bd33 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Tue, 20 Nov 2007 05:29:06 +0000 Subject: [PATCH] Added role access update to post migration. Added export reference script for oracle xe --- utils/RUN_PostMigration.sh | 7 +++++++ utils/oracleXE/ExportReference.sh | 19 +++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100755 utils/oracleXE/ExportReference.sh diff --git a/utils/RUN_PostMigration.sh b/utils/RUN_PostMigration.sh index 1d484677b8..a95d563066 100644 --- a/utils/RUN_PostMigration.sh +++ b/utils/RUN_PostMigration.sh @@ -60,6 +60,13 @@ echo $JAVA_HOME/bin/java $JAVA_OPTS $ADEMPIERE_OPTS -classpath $MYCLASSPATH org.compiere.process.SynchronizeTerminology +#Run Role access update +echo +echo Role Access Update +echo + +$JAVA_HOME/bin/java $JAVA_OPTS $ADEMPIERE_OPTS -classpath $MYCLASSPATH org.compiere.process.RoleAccessUpdate + #Run Sequence Check echo echo Sequence Check diff --git a/utils/oracleXE/ExportReference.sh b/utils/oracleXE/ExportReference.sh new file mode 100755 index 0000000000..c265464e2c --- /dev/null +++ b/utils/oracleXE/ExportReference.sh @@ -0,0 +1,19 @@ +echo Adempiere Database Export $Revision: 1.5 $ + +# $Id: DBExport.sh,v 1.5 2005/12/20 07:12:17 jjanke Exp $ + +echo Saving reference database reference@$ADEMPIERE_DB_NAME to $ADEMPIERE_HOME/data/Adempiere.dmp + +if [ "$ADEMPIERE_HOME" = "" -o "$ADEMPIERE_DB_NAME" = "" ] + then + echo "Please make sure that the environment variables are set correctly:" + echo " ADEMPIERE_HOME e.g. /Adempiere" + echo " ADEMPIERE_DB_NAME e.g. adempiere.adempiere.org" + exit 1 +fi + +# Export +exp reference/reference@$ADEMPIERE_DB_SERVER/$ADEMPIERE_DB_NAME FILE=$ADEMPIERE_HOME/data/Adempiere.dmp Log=$ADEMPIERE_HOME/data/Adempiere.log CONSISTENT=Y OWNER=reference + +cd $ADEMPIERE_HOME/data +jar cvfM Adempiere.jar Adempiere.dmp Adempiere.log