IDEMPIERE-5228 Too verbose oracle / add -S to sqlplus to make it less verbose (#1275)
This commit is contained in:
parent
d6bd0b2247
commit
3950477c6c
|
@ -21,7 +21,7 @@ if [ "$IDEMPIERE_HOME" = "" ] || [ "$ADEMPIERE_DB_NAME" = "" ]
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Cleanup
|
# Cleanup
|
||||||
sqlplus "$1"/"$2"@"$ADEMPIERE_DB_SERVER":"$ADEMPIERE_DB_PORT"/"$ADEMPIERE_DB_NAME" @"$IDEMPIERE_HOME"/utils/"$ADEMPIERE_DB_PATH"/Daily.sql
|
sqlplus -S "$1"/"$2"@"$ADEMPIERE_DB_SERVER":"$ADEMPIERE_DB_PORT"/"$ADEMPIERE_DB_NAME" @"$IDEMPIERE_HOME"/utils/"$ADEMPIERE_DB_PATH"/Daily.sql
|
||||||
|
|
||||||
# Export
|
# Export
|
||||||
exp "$1"/"$2"@"$ADEMPIERE_DB_SERVER":"$ADEMPIERE_DB_PORT"/"$ADEMPIERE_DB_NAME" FILE="$IDEMPIERE_HOME"/data/ExpDat.dmp Log="$IDEMPIERE_HOME"/data/ExpDat.log CONSISTENT=Y STATISTICS=NONE OWNER="$1"
|
exp "$1"/"$2"@"$ADEMPIERE_DB_SERVER":"$ADEMPIERE_DB_PORT"/"$ADEMPIERE_DB_NAME" FILE="$IDEMPIERE_HOME"/data/ExpDat.dmp Log="$IDEMPIERE_HOME"/data/ExpDat.log CONSISTENT=Y STATISTICS=NONE OWNER="$1"
|
||||||
|
|
|
@ -24,7 +24,7 @@ fi
|
||||||
echo -------------------------------------
|
echo -------------------------------------
|
||||||
echo Re-Create DataPump directory
|
echo Re-Create DataPump directory
|
||||||
echo -------------------------------------
|
echo -------------------------------------
|
||||||
sqlplus "$1"@"$ADEMPIERE_DB_SERVER":"$ADEMPIERE_DB_PORT"/"$ADEMPIERE_DB_NAME" @"$IDEMPIERE_HOME"/utils/"$ADEMPIERE_DB_PATH"/CreateDataPumpDir.sql "$IDEMPIERE_HOME"/data
|
sqlplus -S "$1"@"$ADEMPIERE_DB_SERVER":"$ADEMPIERE_DB_PORT"/"$ADEMPIERE_DB_NAME" @"$IDEMPIERE_HOME"/utils/"$ADEMPIERE_DB_PATH"/CreateDataPumpDir.sql "$IDEMPIERE_HOME"/data
|
||||||
chgrp dba "$IDEMPIERE_HOME"/data
|
chgrp dba "$IDEMPIERE_HOME"/data
|
||||||
chmod 770 "$IDEMPIERE_HOME"/data
|
chmod 770 "$IDEMPIERE_HOME"/data
|
||||||
|
|
||||||
|
|
|
@ -22,12 +22,12 @@ if [ "$IDEMPIERE_HOME" = "" ] || [ "$ADEMPIERE_DB_NAME" = "" ]
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Cleanup
|
# Cleanup
|
||||||
sqlplus "$1"/"$2"@"$ADEMPIERE_DB_SERVER":"$ADEMPIERE_DB_PORT"/"$ADEMPIERE_DB_NAME" @"$IDEMPIERE_HOME"/utils/"$ADEMPIERE_DB_PATH"/Daily.sql
|
sqlplus -S "$1"/"$2"@"$ADEMPIERE_DB_SERVER":"$ADEMPIERE_DB_PORT"/"$ADEMPIERE_DB_NAME" @"$IDEMPIERE_HOME"/utils/"$ADEMPIERE_DB_PATH"/Daily.sql
|
||||||
|
|
||||||
echo -------------------------------------
|
echo -------------------------------------
|
||||||
echo Re-Create DataPump directory
|
echo Re-Create DataPump directory
|
||||||
echo -------------------------------------
|
echo -------------------------------------
|
||||||
sqlplus "$3"@"$ADEMPIERE_DB_SERVER":"$ADEMPIERE_DB_PORT"/"$ADEMPIERE_DB_NAME" @"$IDEMPIERE_HOME"/utils/"$ADEMPIERE_DB_PATH"/CreateDataPumpDir.sql "$IDEMPIERE_HOME"/data
|
sqlplus -S "$3"@"$ADEMPIERE_DB_SERVER":"$ADEMPIERE_DB_PORT"/"$ADEMPIERE_DB_NAME" @"$IDEMPIERE_HOME"/utils/"$ADEMPIERE_DB_PATH"/CreateDataPumpDir.sql "$IDEMPIERE_HOME"/data
|
||||||
chgrp dba "$IDEMPIERE_HOME"/data
|
chgrp dba "$IDEMPIERE_HOME"/data
|
||||||
chmod 770 "$IDEMPIERE_HOME"/data
|
chmod 770 "$IDEMPIERE_HOME"/data
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@ fi
|
||||||
echo -------------------------------------
|
echo -------------------------------------
|
||||||
echo Re-Create DB user
|
echo Re-Create DB user
|
||||||
echo -------------------------------------
|
echo -------------------------------------
|
||||||
sqlplus "$1"@"$ADEMPIERE_DB_SERVER":"$ADEMPIERE_DB_PORT"/"$ADEMPIERE_DB_NAME" @"$IDEMPIERE_HOME"/utils/"$ADEMPIERE_DB_PATH"/CreateUser.sql "$2" "$3"
|
sqlplus -S "$1"@"$ADEMPIERE_DB_SERVER":"$ADEMPIERE_DB_PORT"/"$ADEMPIERE_DB_NAME" @"$IDEMPIERE_HOME"/utils/"$ADEMPIERE_DB_PATH"/CreateUser.sql "$2" "$3"
|
||||||
|
|
||||||
echo -------------------------------------
|
echo -------------------------------------
|
||||||
echo Import ExpDat
|
echo Import ExpDat
|
||||||
|
@ -34,4 +34,4 @@ echo -------------------------------------
|
||||||
echo Check System
|
echo Check System
|
||||||
echo Import may show some warnings. This is OK as long as the following does not show errors
|
echo Import may show some warnings. This is OK as long as the following does not show errors
|
||||||
echo -------------------------------------
|
echo -------------------------------------
|
||||||
sqlplus "$2"/"$3"@"$ADEMPIERE_DB_SERVER":"$ADEMPIERE_DB_PORT"/"$ADEMPIERE_DB_NAME" @"$IDEMPIERE_HOME"/utils/"$ADEMPIERE_DB_PATH"/AfterImport.sql
|
sqlplus -S "$2"/"$3"@"$ADEMPIERE_DB_SERVER":"$ADEMPIERE_DB_PORT"/"$ADEMPIERE_DB_NAME" @"$IDEMPIERE_HOME"/utils/"$ADEMPIERE_DB_PATH"/AfterImport.sql
|
||||||
|
|
|
@ -23,12 +23,12 @@ fi
|
||||||
echo -------------------------------------
|
echo -------------------------------------
|
||||||
echo Re-Create DB user
|
echo Re-Create DB user
|
||||||
echo -------------------------------------
|
echo -------------------------------------
|
||||||
sqlplus "$1"@"$ADEMPIERE_DB_SERVER":"$ADEMPIERE_DB_PORT"/"$ADEMPIERE_DB_NAME" @"$IDEMPIERE_HOME"/utils/"$ADEMPIERE_DB_PATH"/CreateUser.sql "$2" "$3"
|
sqlplus -S "$1"@"$ADEMPIERE_DB_SERVER":"$ADEMPIERE_DB_PORT"/"$ADEMPIERE_DB_NAME" @"$IDEMPIERE_HOME"/utils/"$ADEMPIERE_DB_PATH"/CreateUser.sql "$2" "$3"
|
||||||
|
|
||||||
echo -------------------------------------
|
echo -------------------------------------
|
||||||
echo Re-Create DataPump directory
|
echo Re-Create DataPump directory
|
||||||
echo -------------------------------------
|
echo -------------------------------------
|
||||||
sqlplus "$1"@"$ADEMPIERE_DB_SERVER":"$ADEMPIERE_DB_PORT"/"$ADEMPIERE_DB_NAME" @"$IDEMPIERE_HOME"/utils/"$ADEMPIERE_DB_PATH"/CreateDataPumpDir.sql "$IDEMPIERE_HOME"/data
|
sqlplus -S "$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
|
# Note the user running this script must be member of dba group: usermod -G dba idempiere
|
||||||
chgrp dba "$IDEMPIERE_HOME"/data
|
chgrp dba "$IDEMPIERE_HOME"/data
|
||||||
chmod 770 "$IDEMPIERE_HOME"/data
|
chmod 770 "$IDEMPIERE_HOME"/data
|
||||||
|
@ -44,4 +44,4 @@ echo -------------------------------------
|
||||||
echo Check System
|
echo Check System
|
||||||
echo Import may show some warnings. This is OK as long as the following does not show errors
|
echo Import may show some warnings. This is OK as long as the following does not show errors
|
||||||
echo -------------------------------------
|
echo -------------------------------------
|
||||||
sqlplus "$2"/"$3"@"$ADEMPIERE_DB_SERVER":"$ADEMPIERE_DB_PORT"/"$ADEMPIERE_DB_NAME" @"$IDEMPIERE_HOME"/utils/"$ADEMPIERE_DB_PATH"/AfterImport.sql
|
sqlplus -S "$2"/"$3"@"$ADEMPIERE_DB_SERVER":"$ADEMPIERE_DB_PORT"/"$ADEMPIERE_DB_NAME" @"$IDEMPIERE_HOME"/utils/"$ADEMPIERE_DB_PATH"/AfterImport.sql
|
||||||
|
|
|
@ -17,13 +17,13 @@ fi
|
||||||
echo -------------------------------------
|
echo -------------------------------------
|
||||||
echo Re-Create DataPump directory
|
echo Re-Create DataPump directory
|
||||||
echo -------------------------------------
|
echo -------------------------------------
|
||||||
sqlplus "$3"@"$ADEMPIERE_DB_SERVER":"$ADEMPIERE_DB_PORT"/"$ADEMPIERE_DB_NAME" @"$IDEMPIERE_HOME"/utils/"$ADEMPIERE_DB_PATH"/CreateDataPumpDir.sql "$IDEMPIERE_HOME"/data
|
sqlplus -S "$3"@"$ADEMPIERE_DB_SERVER":"$ADEMPIERE_DB_PORT"/"$ADEMPIERE_DB_NAME" @"$IDEMPIERE_HOME"/utils/"$ADEMPIERE_DB_PATH"/CreateDataPumpDir.sql "$IDEMPIERE_HOME"/data
|
||||||
chgrp dba "$IDEMPIERE_HOME"/data
|
chgrp dba "$IDEMPIERE_HOME"/data
|
||||||
chmod 770 "$IDEMPIERE_HOME"/data
|
chmod 770 "$IDEMPIERE_HOME"/data
|
||||||
|
|
||||||
if [ "x${1,,}" != "xreference" ]
|
if [ "x${1,,}" != "xreference" ]
|
||||||
then
|
then
|
||||||
sqlplus "$3"@"$ADEMPIERE_DB_SERVER":"$ADEMPIERE_DB_PORT"/"$ADEMPIERE_DB_NAME" <<!
|
sqlplus -S "$3"@"$ADEMPIERE_DB_SERVER":"$ADEMPIERE_DB_PORT"/"$ADEMPIERE_DB_NAME" <<!
|
||||||
DROP USER REFERENCE CASCADE;
|
DROP USER REFERENCE CASCADE;
|
||||||
alter session set "_enable_rename_user"=true;
|
alter session set "_enable_rename_user"=true;
|
||||||
alter system enable restricted session;
|
alter system enable restricted session;
|
||||||
|
@ -38,7 +38,7 @@ expdp REFERENCE/"$2"@"$ADEMPIERE_DB_SERVER":"$ADEMPIERE_DB_PORT"/"$ADEMPIERE_DB_
|
||||||
|
|
||||||
if [ "x${1,,}" != "xreference" ]
|
if [ "x${1,,}" != "xreference" ]
|
||||||
then
|
then
|
||||||
sqlplus "$3"@"$ADEMPIERE_DB_SERVER":"$ADEMPIERE_DB_PORT"/"$ADEMPIERE_DB_NAME" <<!
|
sqlplus -S "$3"@"$ADEMPIERE_DB_SERVER":"$ADEMPIERE_DB_PORT"/"$ADEMPIERE_DB_NAME" <<!
|
||||||
alter session set "_enable_rename_user"=true;
|
alter session set "_enable_rename_user"=true;
|
||||||
alter system enable restricted session;
|
alter system enable restricted session;
|
||||||
ALTER USER REFERENCE RENAME TO $1 IDENTIFIED BY "$2";
|
ALTER USER REFERENCE RENAME TO $1 IDENTIFIED BY "$2";
|
||||||
|
|
|
@ -23,13 +23,13 @@ fi
|
||||||
echo -------------------------------------
|
echo -------------------------------------
|
||||||
echo Re-Create DB user
|
echo Re-Create DB user
|
||||||
echo -------------------------------------
|
echo -------------------------------------
|
||||||
echo sqlplus "$1"@"$ADEMPIERE_DB_SERVER":"$ADEMPIERE_DB_PORT"/"$ADEMPIERE_DB_NAME" @"$IDEMPIERE_HOME"/utils/"$ADEMPIERE_DB_PATH"/CreateUser.sql "$2" "$3"
|
echo sqlplus -S "$1"@"$ADEMPIERE_DB_SERVER":"$ADEMPIERE_DB_PORT"/"$ADEMPIERE_DB_NAME" @"$IDEMPIERE_HOME"/utils/"$ADEMPIERE_DB_PATH"/CreateUser.sql "$2" "$3"
|
||||||
sqlplus "$1"@"$ADEMPIERE_DB_SERVER":"$ADEMPIERE_DB_PORT"/"$ADEMPIERE_DB_NAME" @"$IDEMPIERE_HOME"/utils/"$ADEMPIERE_DB_PATH"/CreateUser.sql "$2" "$3"
|
sqlplus -S "$1"@"$ADEMPIERE_DB_SERVER":"$ADEMPIERE_DB_PORT"/"$ADEMPIERE_DB_NAME" @"$IDEMPIERE_HOME"/utils/"$ADEMPIERE_DB_PATH"/CreateUser.sql "$2" "$3"
|
||||||
|
|
||||||
echo -------------------------------------
|
echo -------------------------------------
|
||||||
echo Re-Create DataPump directory
|
echo Re-Create DataPump directory
|
||||||
echo -------------------------------------
|
echo -------------------------------------
|
||||||
sqlplus "$1"@"$ADEMPIERE_DB_SERVER":"$ADEMPIERE_DB_PORT"/"$ADEMPIERE_DB_NAME" @"$IDEMPIERE_HOME"/utils/"$ADEMPIERE_DB_PATH"/CreateDataPumpDir.sql "$IDEMPIERE_HOME"/data/seed
|
sqlplus -S "$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
|
# Note the user running this script must be member of dba group: usermod -G dba idempiere
|
||||||
chgrp dba "$IDEMPIERE_HOME"/data
|
chgrp dba "$IDEMPIERE_HOME"/data
|
||||||
chmod 770 "$IDEMPIERE_HOME"/data
|
chmod 770 "$IDEMPIERE_HOME"/data
|
||||||
|
@ -48,5 +48,5 @@ echo -------------------------------------
|
||||||
echo Check System
|
echo Check System
|
||||||
echo Import may show some warnings. This is OK as long as the following does not show errors
|
echo Import may show some warnings. This is OK as long as the following does not show errors
|
||||||
echo -------------------------------------
|
echo -------------------------------------
|
||||||
echo sqlplus "$2"/"$3"@"$ADEMPIERE_DB_SERVER":"$ADEMPIERE_DB_PORT"/"$ADEMPIERE_DB_NAME" @"$IDEMPIERE_HOME"/utils/"$ADEMPIERE_DB_PATH"/AfterImport.sql
|
echo sqlplus -S "$2"/"$3"@"$ADEMPIERE_DB_SERVER":"$ADEMPIERE_DB_PORT"/"$ADEMPIERE_DB_NAME" @"$IDEMPIERE_HOME"/utils/"$ADEMPIERE_DB_PATH"/AfterImport.sql
|
||||||
sqlplus "$2"/"$3"@"$ADEMPIERE_DB_SERVER":"$ADEMPIERE_DB_PORT"/"$ADEMPIERE_DB_NAME" @"$IDEMPIERE_HOME"/utils/"$ADEMPIERE_DB_PATH"/AfterImport.sql
|
sqlplus -S "$2"/"$3"@"$ADEMPIERE_DB_SERVER":"$ADEMPIERE_DB_PORT"/"$ADEMPIERE_DB_NAME" @"$IDEMPIERE_HOME"/utils/"$ADEMPIERE_DB_PATH"/AfterImport.sql
|
||||||
|
|
|
@ -23,7 +23,7 @@ fi
|
||||||
echo -------------------------------------
|
echo -------------------------------------
|
||||||
echo Re-Create new user
|
echo Re-Create new user
|
||||||
echo -------------------------------------
|
echo -------------------------------------
|
||||||
sqlplus "$1"@"$ADEMPIERE_DB_SERVER":"$ADEMPIERE_DB_PORT"/"$ADEMPIERE_DB_NAME" @"$IDEMPIERE_HOME"/utils/"$ADEMPIERE_DB_PATH"/CreateUser.sql Reference Adempiere
|
sqlplus -S "$1"@"$ADEMPIERE_DB_SERVER":"$ADEMPIERE_DB_PORT"/"$ADEMPIERE_DB_NAME" @"$IDEMPIERE_HOME"/utils/"$ADEMPIERE_DB_PATH"/CreateUser.sql Reference Adempiere
|
||||||
|
|
||||||
echo -------------------------------------
|
echo -------------------------------------
|
||||||
echo Import Reference
|
echo Import Reference
|
||||||
|
@ -35,5 +35,5 @@ echo -------------------------------------
|
||||||
echo Check System
|
echo Check System
|
||||||
echo Import may show some warnings. This is OK as long as the following does not show errors
|
echo Import may show some warnings. This is OK as long as the following does not show errors
|
||||||
echo -------------------------------------
|
echo -------------------------------------
|
||||||
sqlplus reference/adempiere@"$ADEMPIERE_DB_SERVER":"$ADEMPIERE_DB_PORT"/"$ADEMPIERE_DB_NAME" @"$IDEMPIERE_HOME"/utils/"$ADEMPIERE_DB_PATH"/AfterImport.sql
|
sqlplus -S reference/adempiere@"$ADEMPIERE_DB_SERVER":"$ADEMPIERE_DB_PORT"/"$ADEMPIERE_DB_NAME" @"$IDEMPIERE_HOME"/utils/"$ADEMPIERE_DB_PATH"/AfterImport.sql
|
||||||
|
|
||||||
|
|
|
@ -53,7 +53,8 @@ TMPFOLDER=/tmp
|
||||||
ADEMPIERE_DB_USER=$1
|
ADEMPIERE_DB_USER=$1
|
||||||
ADEMPIERE_DB_PASSWORD=$2
|
ADEMPIERE_DB_PASSWORD=$2
|
||||||
ADEMPIERE_DB_PATH=$3
|
ADEMPIERE_DB_PATH=$3
|
||||||
CMD="sqlplus $ADEMPIERE_DB_USER/$ADEMPIERE_DB_PASSWORD@$ADEMPIERE_DB_SERVER:$ADEMPIERE_DB_PORT/$ADEMPIERE_DB_NAME"
|
# NOTE: remove the -S on CMD if you want more verbose output on sqlplus
|
||||||
|
CMD="sqlplus -S $ADEMPIERE_DB_USER/$ADEMPIERE_DB_PASSWORD@$ADEMPIERE_DB_SERVER:$ADEMPIERE_DB_PORT/$ADEMPIERE_DB_NAME"
|
||||||
SILENTCMD="sqlplus -S $ADEMPIERE_DB_USER/$ADEMPIERE_DB_PASSWORD@$ADEMPIERE_DB_SERVER:$ADEMPIERE_DB_PORT/$ADEMPIERE_DB_NAME"
|
SILENTCMD="sqlplus -S $ADEMPIERE_DB_USER/$ADEMPIERE_DB_PASSWORD@$ADEMPIERE_DB_SERVER:$ADEMPIERE_DB_PORT/$ADEMPIERE_DB_NAME"
|
||||||
ERROR_STRINGS="\b(ORA-[0-9]+:|TNS-|PLS-|SP2-)"
|
ERROR_STRINGS="\b(ORA-[0-9]+:|TNS-|PLS-|SP2-)"
|
||||||
DIR_POST=$IDEMPIERE_HOME/migration
|
DIR_POST=$IDEMPIERE_HOME/migration
|
||||||
|
|
|
@ -27,7 +27,8 @@ TMPFOLDER=/tmp
|
||||||
ADEMPIERE_DB_USER=$1
|
ADEMPIERE_DB_USER=$1
|
||||||
ADEMPIERE_DB_PASSWORD=$2
|
ADEMPIERE_DB_PASSWORD=$2
|
||||||
ADEMPIERE_DB_PATH=$3
|
ADEMPIERE_DB_PATH=$3
|
||||||
CMD="sqlplus $ADEMPIERE_DB_USER/$ADEMPIERE_DB_PASSWORD@$ADEMPIERE_DB_SERVER:$ADEMPIERE_DB_PORT/$ADEMPIERE_DB_NAME"
|
# NOTE: remove the -S on CMD if you want more verbose output on sqlplus
|
||||||
|
CMD="sqlplus -S $ADEMPIERE_DB_USER/$ADEMPIERE_DB_PASSWORD@$ADEMPIERE_DB_SERVER:$ADEMPIERE_DB_PORT/$ADEMPIERE_DB_NAME"
|
||||||
SILENTCMD="sqlplus -S $ADEMPIERE_DB_USER/$ADEMPIERE_DB_PASSWORD@$ADEMPIERE_DB_SERVER:$ADEMPIERE_DB_PORT/$ADEMPIERE_DB_NAME"
|
SILENTCMD="sqlplus -S $ADEMPIERE_DB_USER/$ADEMPIERE_DB_PASSWORD@$ADEMPIERE_DB_SERVER:$ADEMPIERE_DB_PORT/$ADEMPIERE_DB_NAME"
|
||||||
ERROR_STRINGS="\b(ORA-[0-9]+:|TNS-|PLS-|SP2-)"
|
ERROR_STRINGS="\b(ORA-[0-9]+:|TNS-|PLS-|SP2-)"
|
||||||
DIR_POST=$IDEMPIERE_HOME/migration
|
DIR_POST=$IDEMPIERE_HOME/migration
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
@if (%1) == () goto usage
|
@if (%1) == () goto usage
|
||||||
|
|
||||||
@Rem Cleanup
|
@Rem Cleanup
|
||||||
@sqlplus %1/%2@%ADEMPIERE_DB_SERVER%:%ADEMPIERE_DB_PORT%/%ADEMPIERE_DB_NAME% @%IDEMPIERE_HOME%\utils\%ADEMPIERE_DB_PATH%\Daily.sql
|
@sqlplus -S %1/%2@%ADEMPIERE_DB_SERVER%:%ADEMPIERE_DB_PORT%/%ADEMPIERE_DB_NAME% @%IDEMPIERE_HOME%\utils\%ADEMPIERE_DB_PATH%\Daily.sql
|
||||||
|
|
||||||
@Rem The Export
|
@Rem The Export
|
||||||
@exp %1/%2@%ADEMPIERE_DB_SERVER%:%ADEMPIERE_DB_PORT%/%ADEMPIERE_DB_NAME% FILE=%IDEMPIERE_HOME%\data\ExpDat.dmp Log=%IDEMPIERE_HOME%\data\ExpDat.log CONSISTENT=Y STATISTICS=NONE OWNER=%1
|
@exp %1/%2@%ADEMPIERE_DB_SERVER%:%ADEMPIERE_DB_PORT%/%ADEMPIERE_DB_NAME% FILE=%IDEMPIERE_HOME%\data\ExpDat.dmp Log=%IDEMPIERE_HOME%\data\ExpDat.log CONSISTENT=Y STATISTICS=NONE OWNER=%1
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
@echo -------------------------------------
|
@echo -------------------------------------
|
||||||
@echo Re-Create DataPump Directory
|
@echo Re-Create DataPump Directory
|
||||||
@echo -------------------------------------
|
@echo -------------------------------------
|
||||||
@sqlplus %1@%ADEMPIERE_DB_SERVER%:%ADEMPIERE_DB_PORT%/%ADEMPIERE_DB_NAME% @%IDEMPIERE_HOME%\utils\%ADEMPIERE_DB_PATH%\CreateDataPumpDir.sql %IDEMPIERE_HOME%\data
|
@sqlplus -S %1@%ADEMPIERE_DB_SERVER%:%ADEMPIERE_DB_PORT%/%ADEMPIERE_DB_NAME% @%IDEMPIERE_HOME%\utils\%ADEMPIERE_DB_PATH%\CreateDataPumpDir.sql %IDEMPIERE_HOME%\data
|
||||||
|
|
||||||
@expdp %1@%ADEMPIERE_DB_SERVER%:%ADEMPIERE_DB_PORT%/%ADEMPIERE_DB_NAME% DIRECTORY=ADEMPIERE_DATA_PUMP_DIR DUMPFILE=ExpDatFull_%Date%.dmp LOGFILE=ExpDatFull_%Date%.log EXCLUDE=STATISTICS FULL=Y
|
@expdp %1@%ADEMPIERE_DB_SERVER%:%ADEMPIERE_DB_PORT%/%ADEMPIERE_DB_NAME% DIRECTORY=ADEMPIERE_DATA_PUMP_DIR DUMPFILE=ExpDatFull_%Date%.dmp LOGFILE=ExpDatFull_%Date%.log EXCLUDE=STATISTICS FULL=Y
|
||||||
|
|
||||||
|
|
|
@ -13,12 +13,12 @@
|
||||||
@if (%1) == () goto usage
|
@if (%1) == () goto usage
|
||||||
|
|
||||||
@Rem Cleanup
|
@Rem Cleanup
|
||||||
@sqlplus %1/%2@%ADEMPIERE_DB_SERVER%:%ADEMPIERE_DB_PORT%/%ADEMPIERE_DB_NAME% @%IDEMPIERE_HOME%\utils\%ADEMPIERE_DB_PATH%\Daily.sql
|
@sqlplus -S %1/%2@%ADEMPIERE_DB_SERVER%:%ADEMPIERE_DB_PORT%/%ADEMPIERE_DB_NAME% @%IDEMPIERE_HOME%\utils\%ADEMPIERE_DB_PATH%\Daily.sql
|
||||||
|
|
||||||
@echo -------------------------------------
|
@echo -------------------------------------
|
||||||
@echo Re-Create DataPump Directory
|
@echo Re-Create DataPump Directory
|
||||||
@echo -------------------------------------
|
@echo -------------------------------------
|
||||||
@sqlplus %3@%ADEMPIERE_DB_SERVER%:%ADEMPIERE_DB_PORT%/%ADEMPIERE_DB_NAME% @%IDEMPIERE_HOME%\utils\%ADEMPIERE_DB_PATH%\CreateDataPumpDir.sql %IDEMPIERE_HOME%\data
|
@sqlplus -S %3@%ADEMPIERE_DB_SERVER%:%ADEMPIERE_DB_PORT%/%ADEMPIERE_DB_NAME% @%IDEMPIERE_HOME%\utils\%ADEMPIERE_DB_PATH%\CreateDataPumpDir.sql %IDEMPIERE_HOME%\data
|
||||||
|
|
||||||
@Rem The Export
|
@Rem The Export
|
||||||
@expdp %1/%2@%ADEMPIERE_DB_SERVER%:%ADEMPIERE_DB_PORT%/%ADEMPIERE_DB_NAME% DIRECTORY=ADEMPIERE_DATA_PUMP_DIR DUMPFILE=ExpDat_%Date%.dmp LOGFILE=ExpDat_%Date%.log EXCLUDE=STATISTICS SCHEMAS=%1
|
@expdp %1/%2@%ADEMPIERE_DB_SERVER%:%ADEMPIERE_DB_PORT%/%ADEMPIERE_DB_NAME% DIRECTORY=ADEMPIERE_DATA_PUMP_DIR DUMPFILE=ExpDat_%Date%.dmp LOGFILE=ExpDat_%Date%.log EXCLUDE=STATISTICS SCHEMAS=%1
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
@echo -------------------------------------
|
@echo -------------------------------------
|
||||||
@echo Re-Create DB user
|
@echo Re-Create DB user
|
||||||
@echo -------------------------------------
|
@echo -------------------------------------
|
||||||
@sqlplus %1@%ADEMPIERE_DB_SERVER%:%ADEMPIERE_DB_PORT%/%ADEMPIERE_DB_NAME% @%IDEMPIERE_HOME%\utils\%ADEMPIERE_DB_PATH%\CreateUser.sql %2 %3
|
@sqlplus -S %1@%ADEMPIERE_DB_SERVER%:%ADEMPIERE_DB_PORT%/%ADEMPIERE_DB_NAME% @%IDEMPIERE_HOME%\utils\%ADEMPIERE_DB_PATH%\CreateUser.sql %2 %3
|
||||||
|
|
||||||
@echo -------------------------------------
|
@echo -------------------------------------
|
||||||
@echo Import ExpDat
|
@echo Import ExpDat
|
||||||
|
@ -27,7 +27,7 @@
|
||||||
@echo Check System
|
@echo Check System
|
||||||
@echo Import may show some warnings. This is OK as long as the following does not show errors
|
@echo Import may show some warnings. This is OK as long as the following does not show errors
|
||||||
@echo -------------------------------------
|
@echo -------------------------------------
|
||||||
@sqlplus %2/%3@%ADEMPIERE_DB_SERVER%:%ADEMPIERE_DB_PORT%/%ADEMPIERE_DB_NAME% @%IDEMPIERE_HOME%\utils\%ADEMPIERE_DB_PATH%\AfterImport.sql
|
@sqlplus -S %2/%3@%ADEMPIERE_DB_SERVER%:%ADEMPIERE_DB_PORT%/%ADEMPIERE_DB_NAME% @%IDEMPIERE_HOME%\utils\%ADEMPIERE_DB_PATH%\AfterImport.sql
|
||||||
|
|
||||||
@goto end
|
@goto end
|
||||||
|
|
||||||
|
|
|
@ -16,12 +16,12 @@
|
||||||
@echo -------------------------------------
|
@echo -------------------------------------
|
||||||
@echo Re-Create DB user
|
@echo Re-Create DB user
|
||||||
@echo -------------------------------------
|
@echo -------------------------------------
|
||||||
@sqlplus %1@%ADEMPIERE_DB_SERVER%:%ADEMPIERE_DB_PORT%/%ADEMPIERE_DB_NAME% @%IDEMPIERE_HOME%\utils\%ADEMPIERE_DB_PATH%\CreateUser.sql %2 %3
|
@sqlplus -S %1@%ADEMPIERE_DB_SERVER%:%ADEMPIERE_DB_PORT%/%ADEMPIERE_DB_NAME% @%IDEMPIERE_HOME%\utils\%ADEMPIERE_DB_PATH%\CreateUser.sql %2 %3
|
||||||
|
|
||||||
@echo -------------------------------------
|
@echo -------------------------------------
|
||||||
@echo Re-Create DataPump Directory
|
@echo Re-Create DataPump Directory
|
||||||
@echo -------------------------------------
|
@echo -------------------------------------
|
||||||
@sqlplus %1@%ADEMPIERE_DB_SERVER%:%ADEMPIERE_DB_PORT%/%ADEMPIERE_DB_NAME% @%IDEMPIERE_HOME%\utils\%ADEMPIERE_DB_PATH%\CreateDataPumpDir.sql %IDEMPIERE_HOME%\data
|
@sqlplus -S %1@%ADEMPIERE_DB_SERVER%:%ADEMPIERE_DB_PORT%/%ADEMPIERE_DB_NAME% @%IDEMPIERE_HOME%\utils\%ADEMPIERE_DB_PATH%\CreateDataPumpDir.sql %IDEMPIERE_HOME%\data
|
||||||
|
|
||||||
@echo -------------------------------------
|
@echo -------------------------------------
|
||||||
@echo Import ExpDat
|
@echo Import ExpDat
|
||||||
|
@ -32,7 +32,7 @@
|
||||||
@echo Check System
|
@echo Check System
|
||||||
@echo Import may show some warnings. This is OK as long as the following does not show errors
|
@echo Import may show some warnings. This is OK as long as the following does not show errors
|
||||||
@echo -------------------------------------
|
@echo -------------------------------------
|
||||||
@sqlplus %2/%3@%ADEMPIERE_DB_SERVER%:%ADEMPIERE_DB_PORT%/%ADEMPIERE_DB_NAME% @%IDEMPIERE_HOME%\utils\%ADEMPIERE_DB_PATH%\AfterImport.sql
|
@sqlplus -S %2/%3@%ADEMPIERE_DB_SERVER%:%ADEMPIERE_DB_PORT%/%ADEMPIERE_DB_NAME% @%IDEMPIERE_HOME%\utils\%ADEMPIERE_DB_PATH%\AfterImport.sql
|
||||||
|
|
||||||
@goto end
|
@goto end
|
||||||
|
|
||||||
|
|
|
@ -16,12 +16,12 @@
|
||||||
@echo -------------------------------------
|
@echo -------------------------------------
|
||||||
@echo Re-Create DB user
|
@echo Re-Create DB user
|
||||||
@echo -------------------------------------
|
@echo -------------------------------------
|
||||||
@sqlplus %1@%ADEMPIERE_DB_SERVER%:%ADEMPIERE_DB_PORT%/%ADEMPIERE_DB_NAME% @%IDEMPIERE_HOME%\Utils\%ADEMPIERE_DB_PATH%\CreateUser.sql %2 %3
|
@sqlplus -S %1@%ADEMPIERE_DB_SERVER%:%ADEMPIERE_DB_PORT%/%ADEMPIERE_DB_NAME% @%IDEMPIERE_HOME%\Utils\%ADEMPIERE_DB_PATH%\CreateUser.sql %2 %3
|
||||||
|
|
||||||
@echo -------------------------------------
|
@echo -------------------------------------
|
||||||
@echo Re-Create DataPump directory
|
@echo Re-Create DataPump directory
|
||||||
@echo -------------------------------------
|
@echo -------------------------------------
|
||||||
@sqlplus %1@%ADEMPIERE_DB_SERVER%:%ADEMPIERE_DB_PORT%/%ADEMPIERE_DB_NAME% @%IDEMPIERE_HOME%\Utils\%ADEMPIERE_DB_PATH%\CreateDataPumpDir.sql %IDEMPIERE_HOME%\data\seed
|
@sqlplus -S %1@%ADEMPIERE_DB_SERVER%:%ADEMPIERE_DB_PORT%/%ADEMPIERE_DB_NAME% @%IDEMPIERE_HOME%\Utils\%ADEMPIERE_DB_PATH%\CreateDataPumpDir.sql %IDEMPIERE_HOME%\data\seed
|
||||||
|
|
||||||
@echo -------------------------------------
|
@echo -------------------------------------
|
||||||
@echo Import Adempiere.dmp
|
@echo Import Adempiere.dmp
|
||||||
|
@ -32,7 +32,7 @@
|
||||||
@echo Check System
|
@echo Check System
|
||||||
@echo Import may show some warnings. This is OK as long as the following does not show errors
|
@echo Import may show some warnings. This is OK as long as the following does not show errors
|
||||||
@echo --------========--------========--------========--------
|
@echo --------========--------========--------========--------
|
||||||
@sqlplus %2/%3@%ADEMPIERE_DB_SERVER%:%ADEMPIERE_DB_PORT%/%ADEMPIERE_DB_NAME% @%IDEMPIERE_HOME%\Utils\%ADEMPIERE_DB_PATH%\AfterImport.sql
|
@sqlplus -S %2/%3@%ADEMPIERE_DB_SERVER%:%ADEMPIERE_DB_PORT%/%ADEMPIERE_DB_NAME% @%IDEMPIERE_HOME%\Utils\%ADEMPIERE_DB_PATH%\AfterImport.sql
|
||||||
|
|
||||||
@goto end
|
@goto end
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
@echo -------------------------------------
|
@echo -------------------------------------
|
||||||
@echo Re-Create new user
|
@echo Re-Create new user
|
||||||
@echo -------------------------------------
|
@echo -------------------------------------
|
||||||
@sqlplus %1@%ADEMPIERE_DB_SERVER%:%ADEMPIERE_DB_PORT%/%ADEMPIERE_DB_NAME% @%IDEMPIERE_HOME%\Utils\%ADEMPIERE_DB_PATH%\CreateUser.sql Reference Adempiere
|
@sqlplus -S %1@%ADEMPIERE_DB_SERVER%:%ADEMPIERE_DB_PORT%/%ADEMPIERE_DB_NAME% @%IDEMPIERE_HOME%\Utils\%ADEMPIERE_DB_PATH%\CreateUser.sql Reference Adempiere
|
||||||
|
|
||||||
@echo -------------------------------------
|
@echo -------------------------------------
|
||||||
@echo Import Reference
|
@echo Import Reference
|
||||||
|
@ -25,7 +25,7 @@ imp %1@%ADEMPIERE_DB_NAME% FILE=%IDEMPIERE_HOME%\data\Reference.dmp FROMUSER=(re
|
||||||
@echo Check System
|
@echo Check System
|
||||||
@echo Import may show some warnings. This is OK as long as the following does not show errors
|
@echo Import may show some warnings. This is OK as long as the following does not show errors
|
||||||
@echo -------------------------------------
|
@echo -------------------------------------
|
||||||
@sqlplus reference/adempiere@%ADEMPIERE_DB_SERVER%:%ADEMPIERE_DB_PORT%/%ADEMPIERE_DB_NAME% @%IDEMPIERE_HOME%\Utils\%ADEMPIERE_DB_PATH%\AfterImport.sql
|
@sqlplus -S reference/adempiere@%ADEMPIERE_DB_SERVER%:%ADEMPIERE_DB_PORT%/%ADEMPIERE_DB_NAME% @%IDEMPIERE_HOME%\Utils\%ADEMPIERE_DB_PATH%\AfterImport.sql
|
||||||
|
|
||||||
@goto end
|
@goto end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue