LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 4902|回复: 15

progress安装...

[复制链接]
发表于 2004-11-19 22:31:54 | 显示全部楼层 |阅读模式
1.
因为progress需要java环境的支持。。所以先找jre(java run environment)安装
[root@shlinux root]# java
-bash: java: command not found
2.
到如下地址去找。。
https://sdlcweb1c.sun.com/ECom/E ... 729D1200D6EEC48A58E
RPM in self-extracting file
(j2re-1_4_2_04-linux-i586-rpm.bin, 12.95 MB)
self-extracting file (j2re-1_4_2_04-linux-i586.bin, 13.52 MB)
我选择了
j2re-1_4_2_04-linux-i586.bin
运行
./j2re-1_4_2_04-linux-i586.bin
产生
j2re-1_4_2_04-linux-i586.rpm 文件
3.安装jre
rpm -ivh [root@shlinux sp02001]# rpm -ivh j2re-1_4_2_04-linux-i586.rpm

Preparing...                ########################################### [100%]
   1:j2re                   ########################################### [100%]

4.
在/etc/profile加上如下两句。。
export PATH=$PATH:/usr/java/j2re1.4.2_04/bin
export CLASSPATH=/usr/java/j2re1.4.2_04/
重启一下。
5。
运行java
出现如下窗口代表正常。
[root@localhost root]# java
Usage: java [-options] class [args...]
           (to execute a class)
   or  java [-options] -jar jarfile [args...]
           (to execute a jar file)

where options include:
    -client       to select the "client" VM
    -server       to select the "server" VM
    -hotspot      is a synonym for the "client" VM  [deprecated]
                  The default VM is client.

    -cp <class search path of directories and zip/jar files>
    -classpath <class search path of directories and zip/jar files>
                  A : separated list of directories, JAR archives,
                  and ZIP archives to search for class files.
    -D<name>=<value>
                  set a system property
    -verbose[:class|gc|jni]
                  enable verbose output
    -version      print product version and exit
    -showversion  print product version and continue
    -? -help      print this help message
    -X            print help on non-standard options
    -ea[:<packagename>...|:<classname>]
    -enableassertions[:<packagename>...|:<classname>]
                  enable assertions
    -da[:<packagename>...|:<classname>]
    -disableassertions[:<packagename>...|:<classname>]
                  disable assertions
    -esa | -enablesystemassertions
                  enable system assertions
    -dsa | -disablesystemassertions
                  disable system assertions
6.
[root@shlinux progress]# ls -l
total 8
drwxrwxrwx  4 root root 4096 Nov 19 22:17 progresp8/
drwxrwxrwx  2 root root 4096 Nov 19 22:17 progress/

1.安装progress
[root@shlinux /]# ./mnt/progress/progress/proinst
+---------------------------------------------------------------------------+
|                                  WARNING                                  |
+---------------------------------------------------------------------------+
|                                                                           |
|The detected JVM version does not match the version supported by PROGRESS. |
|                                                                           |
|        The detected  version is: 1.4.2_04                                 |
|        The supported version is: 1.3.0                                    |
|                                                                           |
|Using Progress with the detected JVM may yield unpredictable results.      |
|                                                                           |
|Would you like to continue?                                                |
|                                                                           |
|                                                                           |
|                              [Y=YES] [N=NO]                               |
+---------------------------------------------------------------------------+

YES


因为前面在另外一台电脑上已安装过一遍。。所以在此电脑上不方便继续了。。
over,不好意思。。。

今天又安装了一遍,以下为要操作的部份
1./softwares/progress/proinst  (为从根目录开始绝对路径,好像只支持这样安装)
2.company name,serial number ,control number
3.手工输入java的路径
4.Enter Destination path : /usr/dlc91d
5.Enter work Directory Path : /usr/dlc91d/wrk

选择支持语系如简繁英
选择CP950
时间格式ymd
数字格式1,234.56

还有service packet 8的安装命令如下
./softwares/progressp8/proinst
根据提示即可....
 楼主| 发表于 2005-3-28 09:52:31 | 显示全部楼层

开启progress数据库/dbs/v9db/v9dbup.APSH



  1. #!/bin/sh
  2. DLC=${DLC-"/usr/dlc91d"};export DLC
  3. PROMSGS=${PROMSGS-"$DLC/prolang/ame/promsgs.ame"};export PROMSGS
  4. PROTERMCAP=${PROTERMCAP-"$DLC/protermcap"};export PROTERMCAP
  5. DBDIR=/dbs/v9db;export DBDIR

  6. case "$1"
  7. in
  8. "adm")
  9. nice --19 $DLC/bin/proserve  $DBDIR/admapsh -n 16 -Ma 4 -Mn 4 -Mi 3 -B 8000 -bibufs 10 -Mm 1024 -H `hostname` -S db51sv -N tcp -charset cp950 -stream cp950 -spin 2000
  10. ;;
  11. "fin")
  12. nice --19 $DLC/bin/proserve $DBDIR/finapsh -n 16 -Ma 4 -Mn 4 -Mi 3 -B 16000 -bibufs 10 -Mm 1024 -H `hostname` -S db53sv -N tcp -charset cp950 -stream cp950 -spin 2000
  13. ;;
  14. "dis")
  15. nice --19 $DLC/bin/proserve $DBDIR/disapsh -n 16 -Ma 4 -Mn 4 -Mi 3 -B 16000 -bibufs 10 -Mm 1024 -H `hostname` -S db52sv -N tcp -charset cp950 -stream cp950 -spin 2000
  16. ;;
  17. "mfg")
  18. nice --19 $DLC/bin/proserve $DBDIR/mfgapsh -n 16 -Ma 4 -Mn 4 -Mi 3 -B 32000 -bibufs 10 -Mm 1024 -H `hostname` -S db54sv -N tcp -charset cp950 -stream cp950 -spin 2000
  19. ;;
  20. "hum")
  21. nice --19 $DLC/bin/proserve $DBDIR/humapsh -n 16 -Ma 4 -Mn 4 -Mi 3 -B 4000 -bibufs 10 -Mm 1024 -H `hostname` -S db55sv -N tcp -charset cp950 -stream cp950 -spin 2000
  22. ;;
  23. *)
  24. nice --19 $DLC/bin/proserve $DBDIR/admapsh -n 64 -Ma 2 -Mn 32 -Mi 2 -B 48000 -L 50000 -bibufs 25 -Mm 1024 -H `hostname` -S db51sv -N tcp -spin 1 -charset cp950 -stream cp950
  25. nice --19 $DLC/bin/proserve $DBDIR/finapsh -n 64 -Ma 2 -Mn 32 -Mi 2 -B 96000 -L 100000 -bibufs 25 -Mm 1024 -H `hostname` -S db53sv -N tcp -spin 1 -charset cp950 -stream cp950
  26. nice --19 $DLC/bin/proserve $DBDIR/disapsh -n 64 -Ma 2 -Mn 32 -Mi 2 -B 96000 -L 100000 -bibufs 25 -Mm 1024 -H `hostname` -S db52sv -N tcp -spin 1 -charset cp950 -stream cp950
  27. nice --19 $DLC/bin/proserve $DBDIR/mfgapsh -n 64 -Ma 2 -Mn 32 -Mi 2 -B 192000 -L 200000 -bibufs 25 -Mm 1024 -H `hostname` -S db54sv -N tcp -spin 1 -charset cp950 -stream cp950
  28. nice --19 $DLC/bin/proserve $DBDIR/humapsh -n 64 -Ma 2 -Mn 32 -Mi 2 -B 32000 -L 50000 -bibufs 25 -Mm 1024 -H `hostname` -S db55sv -N tcp -spin 1 -charset cp950 -stream cp950
  29. ;;
  30. esac
  31. #$DLC/bin/prowdog $DBDIR/admapsh -charset cp950 -stream cp950
  32. #$DLC/bin/prowdog $DBDIR/finapsh -charset cp950 -stream cp950
  33. #$DLC/bin/prowdog $DBDIR/disapsh -charset cp950 -stream cp950
  34. #$DLC/bin/prowdog $DBDIR/mfgapsh -charset cp950 -stream cp950
  35. #$DLC/bin/prowdog $DBDIR/humapsh -charset cp950 -stream cp950


复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-3-28 09:59:23 | 显示全部楼层

关闭数据库/dbs/v9db/v9dbdn.APSH



  1. #!/bin/sh
  2. DLC=${DLC-"/usr/dlc91d"};export DLC
  3. PROMSGS=${PROMSGS-"$DLC/prolang/ame/promsgs.ame"};export PROMSGS
  4. PROTERMCAP=${PROTERMCAP-"$DLC/protermcap"};export PROTERMCAP
  5. DBDIR=/dbs/v9db;export DBDIR

  6. case "$1"
  7. in
  8. "fin")
  9. $DLC/bin/proshut $DBDIR/finapsh -charset cp950 -stream cp950 -by
  10. ;;
  11. "adm")
  12. $DLC/bin/proshut $DBDIR/admapsh -charset cp950 -stream cp950 -by
  13. ;;
  14. "dis")
  15. $DLC/bin/proshut $DBDIR/disapsh -charset cp950 -stream cp950 -by
  16. ;;
  17. "mfg")
  18. $DLC/bin/proshut $DBDIR/mfgapsh -charset cp950 -stream cp950 -by
  19. ;;
  20. "hum")
  21. $DLC/bin/proshut $DBDIR/humapsh -charset cp950 -stream cp950 -by
  22. ;;
  23. *)
  24. $DLC/bin/proshut $DBDIR/finapsh -charset cp950 -stream cp950 -by
  25. $DLC/bin/proshut $DBDIR/admapsh -charset cp950 -stream cp950 -by
  26. $DLC/bin/proshut $DBDIR/disapsh -charset cp950 -stream cp950 -by
  27. $DLC/bin/proshut $DBDIR/mfgapsh -charset cp950 -stream cp950 -by
  28. $DLC/bin/proshut $DBDIR/humapsh -charset cp950 -stream cp950 -by
  29. ;;
  30. esac



复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-3-28 16:32:44 | 显示全部楼层

此為離線備份法./dbs/v9db/v9dbbkAPSH.offline



  1. #!/bin/sh
  2. DLC=${DLC-"/usr/dlc91d"};export DLC
  3. PROMSGS=${PROMSGS-"$DLC/prolang/ame/promsgs.ame"};export PROMSGS
  4. PROTERMCAP=${PROTERMCAP-"$DLC/protermcap"};export PROTERMCAP
  5. DBDIR=/dbs/v9db;export DBDIR
  6. BKDIR=/backup/offline;export BKDIR

  7. echo "Offline Backup Start" >> $BKDIR/backup.log
  8. echo `date` >> $BKDIR/backup.log

  9. $DBDIR/v9dbdn.APSH
  10. $DBDIR/v9dbtrlog.APSH

  11. $DLC/bin/probkup $DBDIR/admapsh $BKDIR/admapshbk
  12. $DLC/bin/probkup $DBDIR/disapsh $BKDIR/disapshbk
  13. $DLC/bin/probkup $DBDIR/finapsh $BKDIR/finapshbk
  14. $DLC/bin/probkup $DBDIR/mfgapsh $BKDIR/mfgapshbk
  15. $DLC/bin/probkup $DBDIR/humapsh $BKDIR/humapshbk

  16. $DBDIR/v9dbreidx.APSH
  17. $DBDIR/v9dbtrbi.APSH
  18. $DBDIR/v9dbup.APSH

  19. echo "Offline Backup End" >> $BKDIR/backup.log
  20. echo `date` >> $BKDIR/backup.log


复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-3-28 16:35:22 | 显示全部楼层

在线备份/dbs/v9db/v9dbbkAPSH.online



  1. #!/bin/sh
  2. DLC=${DLC-"/usr/dlc91d"};export DLC
  3. PROMSGS=${PROMSGS-"$DLC/prolang/ame/promsgs.ame"};export PROMSGS
  4. PROTERMCAP=${PROTERMCAP-"$DLC/protermcap"};export PROTERMCAP
  5. DBDIR=/dbs/v9db;export DBDIR
  6. BKDIR=/backup/online;export BKDIR

  7. echo "Online Backup Start" >> $BKDIR/backup.log
  8. echo `date` >> $BKDIR/backup.log

  9. $DLC/bin/probkup online $DBDIR/admapsh $BKDIR/admapshbk
  10. $DLC/bin/probkup online $DBDIR/disapsh $BKDIR/disapshbk
  11. $DLC/bin/probkup online $DBDIR/finapsh $BKDIR/finapshbk
  12. $DLC/bin/probkup online $DBDIR/mfgapsh $BKDIR/mfgapshbk
  13. $DLC/bin/probkup online $DBDIR/humapsh $BKDIR/humapshbk

  14. echo "Online Backup End" >> $BKDIR/backup.log
  15. echo `date` >> $BKDIR/backup.log


复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-3-28 16:38:13 | 显示全部楼层

清除日志/dbs/v9db/v9dbtrlog.APSH,要关闭progress才可运行



  1. #!/bin/sh
  2. DLC=/usr/dlc91d;export DLC
  3. PROMSGS=$DLC/promsgs;export PROMSGS
  4. PROTERMCAP=$DLC/protermcap;export PROTERMCAP
  5. DBDIR=/dbs/v9db;export DBDIR

  6. $DLC/bin/prolog $DBDIR/admapsh -charset cp950 -stream cp950
  7. $DLC/bin/prolog $DBDIR/disapsh -charset cp950 -stream cp950
  8. $DLC/bin/prolog $DBDIR/finapsh -charset cp950 -stream cp950
  9. $DLC/bin/prolog $DBDIR/mfgapsh -charset cp950 -stream cp950
  10. $DLC/bin/prolog $DBDIR/humapsh -charset cp950 -stream cp950


复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-3-28 16:52:29 | 显示全部楼层

用于很多(包括一般踢掉用户端用户等等) /dbs/v9db/v9dbmon.APSH

#!/bin/sh
DLC=${DLC-"/usr/dlc91d"};export DLC
PROMSGS=${PROMSGS-"$DLC/promsgs"};export PROMSGS
PROTERMCAP=${PROTERMCAP-"$DLC/protermcap"};export PROTERMCAP
DBDIR=/dbs/v9db;export DBDIR

if [ "$1" = "" ]
then
  $DLC/bin/promon $DBDIR/admapsh -charset cp950 -stream cp950
  $DLC/bin/promon $DBDIR/disapsh -charset cp950 -stream cp950
  $DLC/bin/promon $DBDIR/finapsh -charset cp950 -stream cp950
  $DLC/bin/promon $DBDIR/mfgapsh -charset cp950 -stream cp950
  $DLC/bin/promon $DBDIR/humapsh -charset cp950 -stream cp950
else
  $DLC/bin/promon $DBDIR/$1 -charset cp950 -stream cp950
fi
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-3-28 18:37:37 | 显示全部楼层

./dbs/v9db/v9dbmon.APSH


  1. PROGRESS MONITOR Version 9

  2.     Database: /dbs/v9db/admapsh

  3.     1.  User Control
  4.     2.  Locking and Waiting Statistics
  5.     3.  Block Access
  6.     4.  Record Locking Table
  7.     5.  Activity
  8.     6.  Shared Resources
  9.     7.  Database Status
  10.     8.  Shut Down Database

  11.     T.  Transactions Control
  12.     L.  Resolve Limbo Transactions
  13.     C.  Coordinator Information

  14.     M.  Modify Defaults
  15.     Q.  Quit



  16. Enter your selection: 1

  17.     1.  Display all entries
  18.     2.  Match a user number
  19.     3.  Match a range of user numbers

  20.     Q.  Return to main menu


  21. Enter your selection: 2

  22.     1.  Display all entries
  23.     2.  Match a user number
  24.     3.  Match a range of user numbers

  25.     Q.  Return to main menu

  26. Enter your selection: 3

  27.     1.  Display all entries
  28.     2.  Match a user number
  29.     3.  Match a range of user numbers

  30.     Q.  Return to main menu
  31. Enter your selection: 4

  32.     1.  Display all entries
  33.     2.  Match a user number
  34.     3.  Match a range of user numbers
  35.     4.  Match a record id

  36.     Q.  Return to main menu


  37. Enter your selection: 5
  38. Activity  - Sampled at 03/28/05 14:02 for 0:16:08.

  39. Event                Total  Per Sec    Event                Total  Per Sec
  40.          Commits         0      0.0               Undos         0      0.0
  41.   Record Updates         0      0.0        Record Reads        21      0.0
  42.   Record Creates         0      0.0      Record Deletes         0      0.0
  43.        DB Writes         2      0.0            DB Reads      1956      2.0
  44.        BI Writes         1      0.0            BI Reads       501      0.5
  45.        AI Writes         0      0.0
  46.     Record Locks         0      0.0        Record Waits         0      0.0
  47.      Checkpoints         0      0.0     Buffers Flushed         0      0.0

  48. Rec Lock Waits    0 %    BI Buf Waits      0 %    AI Buf Waits      0 %
  49. Writes by APW     0 %    Writes by BIW     0 %    Writes by AIW     0 %
  50. Buffer Hits      97 %
  51. DB Size        1000 MB       BI Size     299 MB       AI Size       0 K
  52. FR chain       4475 blocks   RM chain   3529 blocks
  53. Shared Memory 58352 K        Segments      2

  54. 0 Servers, 0 Users (0 Local, 0 Remote, 0 Batch),0 Apws

  55. RETURN - repeat, U - continue uninterrupted, Q - quit:

  56. Enter your selection: 6

  57. Shared Resources:
  58.                 After-image file name (-a): -
  59.            Number of database buffers (-B): 48000
  60.   Number of before image buffers (-bibufs): 25
  61.    Number of after image buffers (-aibufs): 5
  62.                Before-image file name (-g): -
  63.        Before-image truncate interval (-G): 60
  64.                   No crash protection (-i): Not enabled
  65. Maximum private buffers per user (-Bpmax): 64
  66.         Current size of locking table (-L): 50016
  67.               Locking table entries in use: 0
  68.              Locking table high water mark: 1
  69. Maximum number of clients per server (-Ma): 2
  70.          Delay of before-image flush (-Mf): 3
  71.            Maximum number of servers (-Mn): 32
  72.               Maximum number of users (-n): 65
  73.              Before-image file I/O (-r -R): Raw
  74.               Shared memory version number: 9129
  75.                  Number of semaphores used: 101

  76. RETURN - show remaining, U - continue uninterrupted, Q - quit:

  77. Enter your selection: 7
  78. Database Status:
  79.          Database version number: 1115
  80.                   Database state: Not modified since last open (2)
  81.           Database damaged flags: None (0)
  82.                  Integrity flags: None (0)
  83.      Database block size (bytes): 1024
  84. Total number of database blocks: 1024057
  85. Database blocks high water mark: 60154
  86. Free blocks below highwater mark: 4475
  87.    Record blocks with free space: 3529
  88. Before image block size (bytes): 16384
  89.   Before image cluster size (kb): 4096
  90.   After image block size (bytes): 8192
  91.          Last transaction number: 168264713
  92.      Highest file number defined: 0
  93. Database created (multi-volume): 09/08/01 02:21
  94.        Most recent database open: 03/28/05 13:45
  95.           Previous database open: 03/28/05 13:45
  96.    Local schema cache time stamp: 02/23/05 02:01
  97.        Most recent .bi file open: 03/28/05 13:45

  98. RETURN - show remaining, U - continue uninterrupted, Q - quit:



  99. Enter your selection: 8

  100.                 1  Disconnect a User  
  101.                 2  Unconditional Shutdown
  102.                 3  Emergency Shutdown (Kill All)
  103.                 x  Exit

复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-3-28 18:54:26 | 显示全部楼层

/etc/services

将附件.txt去掉,后附盖原来/etc/services

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-3-29 08:49:22 | 显示全部楼层

如果要把移植到另外一台电脑怎么办???


  1. 原来哪台电脑(uid=0不要忘记了,不然由于权限问题..很多文件就过不去了..)

  2. uid=0                          
  3. use chroot = no
  4. max connections  = 2
  5. log file  =  /var/log/rsyncd.log

  6. [dbs]
  7. path = /dbs
  8. comment = peter's directory
  9. read only = true
  10. hosts allow = 192.168.7.105
  11. list = no



  12. 新电脑装好progress & sp8后 所要执行的程式..
  13. ssh 192.168.7.110 /dbs/v9db/v9dbdn.APSH
  14. rsync -ave ssh  --progress -u --delete root@192.168.7.110::dbs /dbs/
  15. /dbs/v9db/v9dbup.APSH

  16. 然后把原来的电脑拿下,新的电脑要更成原来电脑的姓名...IP也要更改.


复制代码
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表