From abd2b702432647452638d6f2f5ed24a223cbe2bf Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Tue, 20 Nov 2018 17:26:55 -0200 Subject: [PATCH] Fix oracle datapump scripts --- org.adempiere.server-feature/utils.unix/oracle/DBRestoredp.sh | 3 +++ .../utils.unix/oracle/ImportIdempiere.sh | 3 +++ 2 files changed, 6 insertions(+) diff --git a/org.adempiere.server-feature/utils.unix/oracle/DBRestoredp.sh b/org.adempiere.server-feature/utils.unix/oracle/DBRestoredp.sh index 2ebd876df1..d8f02335dd 100644 --- a/org.adempiere.server-feature/utils.unix/oracle/DBRestoredp.sh +++ b/org.adempiere.server-feature/utils.unix/oracle/DBRestoredp.sh @@ -29,8 +29,11 @@ echo ------------------------------------- echo Re-Create DataPump directory echo ------------------------------------- sqlplus $1@$ADEMPIERE_DB_SERVER:$ADEMPIERE_DB_PORT/$ADEMPIERE_DB_NAME @$IDEMPIERE_HOME/utils/$ADEMPIERE_DB_PATH/CreateDataPumpDir.sql $IDEMPIERE_HOME/data +# Note the user running this script must be member of dba group: usermod -G dba idempiere chgrp dba $IDEMPIERE_HOME/data chmod 770 $IDEMPIERE_HOME/data +chgrp dba $IDEMPIERE_HOME/data/ExpDat.dmp +chmod 640 $IDEMPIERE_HOME/data/ExpDat.dmp echo ------------------------------------- echo Import ExpDat diff --git a/org.adempiere.server-feature/utils.unix/oracle/ImportIdempiere.sh b/org.adempiere.server-feature/utils.unix/oracle/ImportIdempiere.sh index dabbc996ce..317d0c9f33 100644 --- a/org.adempiere.server-feature/utils.unix/oracle/ImportIdempiere.sh +++ b/org.adempiere.server-feature/utils.unix/oracle/ImportIdempiere.sh @@ -30,8 +30,11 @@ echo ------------------------------------- echo Re-Create DataPump directory echo ------------------------------------- sqlplus $1@$ADEMPIERE_DB_SERVER:$ADEMPIERE_DB_PORT/$ADEMPIERE_DB_NAME @$IDEMPIERE_HOME/utils/$ADEMPIERE_DB_PATH/CreateDataPumpDir.sql $IDEMPIERE_HOME/data/seed +# Note the user running this script must be member of dba group: usermod -G dba idempiere chgrp dba $IDEMPIERE_HOME/data/seed chmod 770 $IDEMPIERE_HOME/data/seed +chgrp dba $IDEMPIERE_HOME/data/seed/Adempiere.dmp +chmod 640 $IDEMPIERE_HOME/data/seed/Adempiere.dmp echo ------------------------------------- echo Import Adempiere.dmp