Hi.
Is there a procedure for moving company $U from one folder to another ?
Solved : Moving company process
Started by AdmDgfip, Oct 23 2008 01:51 PM
7 replies to this topic
#1
Posted 23 October 2008 - 01:51 PM
#2
Posted 23 October 2008 - 02:10 PM
Hi AdmDgfip and welcome!
Can you specify which is (are) the OS and your release of $U? And any other useful info I might not think of!
Kenny
Can you specify which is (are) the OS and your release of $U? And any other useful info I might not think of!
Kenny
#3
Posted 23 October 2008 - 03:01 PM
On our AIX boxes, we would like to move an installation of $U 5.1.3 from a location (by example /usr/dollaru/v5.1.3) to another directory.
And we would like to know if there is an document or script to process it.
Thanks.
And we would like to know if there is an document or script to process it.
Thanks.
#4
Posted 28 October 2008 - 11:53 AM
The actions should include at least:
1/ Stop the Company engines
2/ Export all objects (Administration tables, Uprocs, Sessions, Resources, Classes, Rules, Tasks etc.)
3/ If your node is a Production Node and you don't want to lose the Events base, list the Events base (uxlst EVT...) to an output file
4/ Stop the Company
5/ Backup the whole Company
6/ Uninstall the Company
7/ Install the Company at its new location
8/ Import exported objects (Administration tables, Resources, Classes, Rules)
9/ Move the files from the backuped directories like exp/data, exp/log, exp/upr to the new directories
10/ Run an offline reorganization
11/ Start the Company
We would recommend that you contact Orsyp Professional Services team to get assistance or additional information related to your configuration (ex: used Areas) through a PS mission at your site or a PS Online intervention.
Michel
1/ Stop the Company engines
2/ Export all objects (Administration tables, Uprocs, Sessions, Resources, Classes, Rules, Tasks etc.)
3/ If your node is a Production Node and you don't want to lose the Events base, list the Events base (uxlst EVT...) to an output file
4/ Stop the Company
5/ Backup the whole Company
6/ Uninstall the Company
7/ Install the Company at its new location
8/ Import exported objects (Administration tables, Resources, Classes, Rules)
9/ Move the files from the backuped directories like exp/data, exp/log, exp/upr to the new directories
10/ Run an offline reorganization
11/ Start the Company
We would recommend that you contact Orsyp Professional Services team to get assistance or additional information related to your configuration (ex: used Areas) through a PS mission at your site or a PS Online intervention.
Michel
#5
Posted 27 January 2010 - 11:43 PM
men, on October 28 2008, 03:53 AM, said:
The actions should include at least:
1/ Stop the Company engines
2/ Export all objects (Administration tables, Uprocs, Sessions, Resources, Classes, Rules, Tasks etc.)
3/ If your node is a Production Node and you don't want to lose the Events base, list the Events base (uxlst EVT...) to an output file
4/ Stop the Company
5/ Backup the whole Company
6/ Uninstall the Company
7/ Install the Company at its new location
8/ Import exported objects (Administration tables, Resources, Classes, Rules)
9/ Move the files from the backuped directories like exp/data, exp/log, exp/upr to the new directories
10/ Run an offline reorganization
11/ Start the Company
Michel
1/ Stop the Company engines
2/ Export all objects (Administration tables, Uprocs, Sessions, Resources, Classes, Rules, Tasks etc.)
3/ If your node is a Production Node and you don't want to lose the Events base, list the Events base (uxlst EVT...) to an output file
4/ Stop the Company
5/ Backup the whole Company
6/ Uninstall the Company
7/ Install the Company at its new location
8/ Import exported objects (Administration tables, Resources, Classes, Rules)
9/ Move the files from the backuped directories like exp/data, exp/log, exp/upr to the new directories
10/ Run an offline reorganization
11/ Start the Company
Michel
#6
Posted 28 January 2010 - 08:10 AM
kyfbof, on January 27 2010, 11:43 PM, said:
What should we do with the output file created in step 3.
I believed that there was an option in order to generate the "uxadd" command line, am I wrong ?
I can't remember the option but I used it to recreate session. May be this option exist for the events
#7
Posted 28 January 2010 - 09:42 AM
Yes,
this would be used to recreate the events. Unfortunately the option couak mentions does not exist for Events. But I now an Enhancement request has been made - and adopted - to be able to export/import Events.
So for now, you would need to read the output file and use uxadd EVT command to recreate them.
Michel
this would be used to recreate the events. Unfortunately the option couak mentions does not exist for Events. But I now an Enhancement request has been made - and adopted - to be able to export/import Events.
So for now, you would need to read the output file and use uxadd EVT command to recreate them.
Michel
#8
Posted 01 March 2010 - 11:06 PM
############################################################################
# Description - Given an export of the $U events via 'uxlst evt full', this
# script will generate commands to add the events to stdout
# 20100204 lb - Initial version
############################################################################
if [ $# -ne 1 ]; then
echo I need the event file via \'uxlst evt full\'
exit 1
fi
EVT_FILE=$1
line_cnt=`cat $EVT_FILE|wc -l`
exp_items=/tmp/expEvt.$$.lst
prev_ses=/tmp/prev.$$.ses
tail -`expr $line_cnt - 4` $EVT_FILE > $exp_items
cat $exp_items | while read LINE; do
col_cnt=`echo $LINE|wc -w`
if [ $col_cnt -eq 11 ]; then
echo $LINE | read SES UPR MU STATE DT t1 t2 t3 USER NSESS t3
echo $SES > $prev_ses
else #this should be 10
echo $LINE | read UPR MU STATE DT t1 t2 t3 USER NSESS t3
SES=`cat $prev_ses`
fi
case $STATE in
COMPLETED)
STATE=T
;;
ABORTED)
STATE=A
;;
esac
month=`echo $DT|cut -f2 -d/`
day=`echo $DT|cut -f3 -d/`
year=`echo $DT|cut -f1 -d/`
echo "\$UXEXE/uxadd evt exp ses=$SES vses=000 nsess=$NSESS upr=$UPR vupr=000 mu=$MU user=$USER nstat=$STATE pdate=$year/$month/$day"
done
rm -rf $exp_items $prev_ses 2>/dev/null
# Description - Given an export of the $U events via 'uxlst evt full', this
# script will generate commands to add the events to stdout
# 20100204 lb - Initial version
############################################################################
if [ $# -ne 1 ]; then
echo I need the event file via \'uxlst evt full\'
exit 1
fi
EVT_FILE=$1
line_cnt=`cat $EVT_FILE|wc -l`
exp_items=/tmp/expEvt.$$.lst
prev_ses=/tmp/prev.$$.ses
tail -`expr $line_cnt - 4` $EVT_FILE > $exp_items
cat $exp_items | while read LINE; do
col_cnt=`echo $LINE|wc -w`
if [ $col_cnt -eq 11 ]; then
echo $LINE | read SES UPR MU STATE DT t1 t2 t3 USER NSESS t3
echo $SES > $prev_ses
else #this should be 10
echo $LINE | read UPR MU STATE DT t1 t2 t3 USER NSESS t3
SES=`cat $prev_ses`
fi
case $STATE in
COMPLETED)
STATE=T
;;
ABORTED)
STATE=A
;;
esac
month=`echo $DT|cut -f2 -d/`
day=`echo $DT|cut -f3 -d/`
year=`echo $DT|cut -f1 -d/`
echo "\$UXEXE/uxadd evt exp ses=$SES vses=000 nsess=$NSESS upr=$UPR vupr=000 mu=$MU user=$USER nstat=$STATE pdate=$year/$month/$day"
done
rm -rf $exp_items $prev_ses 2>/dev/null
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users













