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