11.07.2015 Views

dbMAGIC Ver8.2 開発者ガイド 分散開発編 - Magic Software Enterprises

dbMAGIC Ver8.2 開発者ガイド 分散開発編 - Magic Software Enterprises

dbMAGIC Ver8.2 開発者ガイド 分散開発編 - Magic Software Enterprises

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>dbMAGIC</strong> <strong>dbMAGIC</strong> <strong>dbMAGIC</strong> Ver.8.2 - <strong>dbMAGIC</strong> <strong>dbMAGIC</strong> 1999 2 5 (1) (2) (3) (4) (3) Windows WindowsNT Microsoft Corporation <strong>dbMAGIC</strong> Copyright 1999ii - <strong>dbMAGIC</strong> Ver.8.2


PC-9801 DOS/V ;F1 – ;F10f1 –f10 F1 – F10 ;Caps LockCAPSCaps Lock ;ShiftSHIFT ;CtrlCTRL ShiftCtrl ;PgUpROOL UPPageUp ;PgDnROOL DOWNPageDown ;InsINS ;DelDEL InsertDelete ;Back SpaceBSBack Space ;TabTAB Tab ;;, Enter ;AltGRP ;HomeHOME ;EndHELP ; EnterAltCLR HomeEnd - <strong>dbMAGIC</strong> Ver.8.2v


vi - <strong>dbMAGIC</strong> Ver.8.2


11.1 : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : 1–2


11.1 <strong>dbMAGIC</strong> 8 2 1 1 6 <strong>dbMAGIC</strong> 2 7 8 <strong>dbMAGIC</strong> I <strong>dbMAGIC</strong> 2 3 <strong>dbMAGIC</strong> 4 5 2 6 MAGIC <strong>dbMAGIC</strong> II <strong>dbMAGIC</strong> 7 <strong>dbMAGIC</strong> <strong>dbMAGIC</strong> 8 <strong>dbMAGIC</strong> Windows NT UNIX <strong>dbMAGIC</strong>1–2 - <strong>dbMAGIC</strong> Ver.8.2


22.1 : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : 2–2


2 1 PC 1 6 2.1 GUI 2–2 - <strong>dbMAGIC</strong> Ver.8.2


33.1 : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : 3–23.2 : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : 3–33.3 : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : 3–4


3 1 MAGIC MRB <strong>dbMAGIC</strong> <strong>dbMAGIC</strong> 3-1 MRB 3.1: MAGIC 6 3.1 <strong>dbMAGIC</strong> 8 3 <strong>dbMAGIC</strong> 8 3–2 - <strong>dbMAGIC</strong> Ver.8.2


<strong>dbMAGIC</strong> 8 <strong>dbMAGIC</strong> 8 [] 3 <strong>dbMAGIC</strong> MRB <strong>dbMAGIC</strong> <strong>dbMAGIC</strong> Web <strong>dbMAGIC</strong> 8 HTML Java HTML Java Web <strong>dbMAGIC</strong> 3.2 MAGIC MRB <strong>dbMAGIC</strong>MRB <strong>dbMAGIC</strong> <strong>dbMAGIC</strong> MRB MRB MRB <strong>dbMAGIC</strong> MGRB.INI MRB Windows-NT OS Windows95/98 MGRB.INI 6 <strong>dbMAGIC</strong> <strong>dbMAGIC</strong> MRE MRE <strong>dbMAGIC</strong> MRB PC <strong>dbMAGIC</strong> MAGIC.INI MRB MRB MRB MRB 6 - <strong>dbMAGIC</strong> Ver.8.23.2 3–3


3.3 MRB<strong>dbMAGIC</strong> MRB ID <strong>dbMAGIC</strong> ID <strong>dbMAGIC</strong><strong>dbMAGIC</strong> <strong>dbMAGIC</strong> MRB <strong>dbMAGIC</strong> MRB ID MRB ID MRB 3–4 - <strong>dbMAGIC</strong> Ver.8.2


4- 4.1 : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : 4–24.2 : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : 4–24.3 : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : 4–34.4 : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : 4–34.5 : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : 4–64.6 2 : : : : : : : : : : : : : : : : : : : : : : : : : : : : 4–84.7 : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : 4–9


4 -<strong>dbMAGIC</strong> 8 4.1 Windows 95 PC 1 2 6 3 4.2 <strong>dbMAGIC</strong> 8 MAGIC TCP/IP PC myhost 4–2 - - <strong>dbMAGIC</strong> Ver.8.2


4.3 <strong>dbMAGIC</strong> 11 2 3 Flight Data Server4 <strong>Magic</strong> Requester Broker45 myhost/20016 21 2 3 4 5 tr6 31 2 3 4 Flight Data Server5 6 4.4 2 2 CTL CTL 2 - <strong>dbMAGIC</strong> Ver.8.24.3 4–3


4 6 (E:,B:,F:)3 )3 )1 E, B, F )2 )4) <strong>dbMAGIC</strong> (P 1 2 3 V =4 5 6 N=7 N58 ;Enter 4–4 - - <strong>dbMAGIC</strong> Ver.8.2


OK 1 2 V =3 4 OK 5 A=6 57 ;Ctrl + ;P 8 P= ;9 Enter ;10 Enter11 412 13 ’OK’ 1 ;Enter2 3 4 R =5 6 7 8 (P) CTL 9 ;10 Enter11 12 13 ;F4 10 4 6 ;14 Enter15 Yes16 A = - <strong>dbMAGIC</strong> Ver.8.24.4 4–5


4.5 <strong>dbMAGIC</strong> INI MRB INI MRB <strong>dbMAGIC</strong> <strong>dbMAGIC</strong> Windows 95 1<strong>dbMAGIC</strong> INI <strong>dbMAGIC</strong> MRB <strong>dbMAGIC</strong><strong>dbMAGIC</strong> MAGIC.INI <strong>dbMAGIC</strong> <strong>dbMAGIC</strong> PC MAGIC.INI MAGIC.INI MAGIC.INI MGAS.INI 2 MAGIC ENV MGAS.INI MessagingServer = 2001 ActiveRequestsServer = YesMessagingServer 2001 <strong>dbMAGIC</strong> 2001 MRB ActiveRequestsServer Yes <strong>dbMAGIC</strong> 3 MAGIC SYSTEMS MGAS.INI System1 = ,TutorialY=tr,,,1,Default Database,,N,N 4MGRB.INI [MRB ENV] MGRB.INI MRB MGRB.INI BrokerPort = 2001 Log=c:Y=TempY=mrb.log F4–6 - - <strong>dbMAGIC</strong> Ver.8.2


BrokerPort 2001MRB 2001 2 <strong>dbMAGIC</strong> MRB BrokerPort MRB 5MGRB.INI MRB EXECUTABLES LIST1 4Background=mgrntw.exe/Ini=MGAS.INI/ActiveRequestsServer=Y/ApplicationStartup=B,,,,02 TravelRT=mgrntw.exe/Ini=MGAS.INI/ActiveRequestsServer=Y/ApplicationStartup=B,,,,1MRB 1 <strong>dbMAGIC</strong> <strong>dbMAGIC</strong> TravelRT <strong>dbMAGIC</strong> /ActiveRequestsServer=Y 2 2 <strong>dbMAGIC</strong> 4.1: 6MRB MRB MRB MGRB.INI [MRB EXECUTABLES LIST] MRB 1 <strong>dbMAGIC</strong> - <strong>dbMAGIC</strong> Ver.8.24.5 4–7


4.6 2 PC MRB <strong>dbMAGIC</strong> PC PC PC <strong>dbMAGIC</strong> 8 TCP/IP PC myserver 1 myserver/20012 1 MAGIC.INI MAGIC.INI MGAS.INI 4.5.1 2 MGAS.INI MessagingServer = 2001 ActiveRequestsServer = YesMessagingServer 2001 <strong>dbMAGIC</strong> 2001 MRB 3 MAGIC SYSTEMSSystem1 = ,TutorialY=tr,,,1,Default Database,,N,N4 PC 4 6 4–8 - - <strong>dbMAGIC</strong> Ver.8.2


4.7 2 1. 2. 43. 1 4. 3GL <strong>dbMAGIC</strong> - <strong>dbMAGIC</strong> Ver.8.24.7 4–9


4–10 - - <strong>dbMAGIC</strong> Ver.8.2


5 - 5.1 : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : 5–25.2 : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : 5–25.3 : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : 5–35.4 : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : 5–55.5 2 : : : : : : : : : : : : : : : : : : : : : : : : : : : : 5–75.6 : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : 5–7


5 - 4 Windows 95 PC1 2 2 PC 6 4 5.1 <strong>dbMAGIC</strong> 8 MRB TCP/IP PC myhost 5.2 <strong>dbMAGIC</strong> 11 2 3 Print Server4 <strong>Magic</strong> Requester Broker5 myhost/20016 21 5–2 - - <strong>dbMAGIC</strong> Ver.8.2


2 3 4 5 tr6 31 2 53 4 Print Server5 6 5.3 2 2 CTL CTL 2 1 <strong>dbMAGIC</strong> PC 6 20 - <strong>dbMAGIC</strong> Ver.8.25.3 5–3


<strong>dbMAGIC</strong> (P) 1 2 3 V =4 5 6 N =7 N5OK 1 Enter 2 3 V =4 5 OK 6 A =7 58 ;Ctrl + ;P 9 P= ;10 Enter ;11 Enter12 13 14 5–4 - - <strong>dbMAGIC</strong> Ver.8.2


1 ;Enter2 3 4 R =5 6 7 8 (P) CTL 9 ;10 Enter11 12 13 ;F4514 No15 A =5.4 <strong>dbMAGIC</strong> INI MAGIC ENV MRB INI MRB 1<strong>dbMAGIC</strong> INI <strong>dbMAGIC</strong> MRB <strong>dbMAGIC</strong> <strong>dbMAGIC</strong> MAGIC.INI <strong>dbMAGIC</strong> <strong>dbMAGIC</strong> PC MAGIC.INI MAGIC.INI MAGIC.INI MGAS.INI 2[MAGIC ENV] MGAS.INI MessagingServer = 2001 ActiveRequestsServer = Yes - <strong>dbMAGIC</strong> Ver.8.25.4 5–5


MessagingServer 2001 <strong>dbMAGIC</strong> 2001 MRB ActiveRequestsServer Yes <strong>dbMAGIC</strong> 3[MAGIC SYSTEMS] MGAS.INI System1 = ,TutorialY=tr,,,1,Default Database,,N,N 4MGRB.INI [MRB ENV] MGRB.INI MRB MGRB.INI BrokerPort = 2001 Log=c:Y=TempY=mrb.log FBrokerPort 2001MRB 2001 2 <strong>dbMAGIC</strong> MRB BrokerPort MRB 5MGRB.INI MRB EXECUTABLES LIST1 Background=mgrntw.exe/Ini=MGAS.INI/ActivateRequestsServer=Y/ApplicationStartup=B,,,,02 TravelRT=mgrntw.exe/Ini=MGAS.INI/ActivateRequestsServer=Y/ApplicationStartup=B,,,,1MRB 1 <strong>dbMAGIC</strong> <strong>dbMAGIC</strong> TravelRT <strong>dbMAGIC</strong> /ActiveRequestsServer=Y 2 2 4 - <strong>dbMAGIC</strong> 6MRB MRB MRB MGRB.INI [MRB EXECUTABLES LIST] MRB 1 <strong>dbMAGIC</strong> 5–6 - - <strong>dbMAGIC</strong> Ver.8.2


5.5 2 PC MRB <strong>dbMAGIC</strong> PC PC <strong>dbMAGIC</strong> 8 TCP/IP PC myserver 51 myserver/20012 1 MAGIC.INI MAGIC.INI MGAS.INI 1 <strong>dbMAGIC</strong> INI 2 MGAS.INI MessagingServer = 2001 ActivateRequestsServer = YesMessagingServer 2001 <strong>dbMAGIC</strong> 2001 MRB 3 MAGIC SYSTEMSSystem1 = ,TutorialY=tr,,,1,Default Database,,N,N4 PC 4 6 5.6 2 - <strong>dbMAGIC</strong> Ver.8.25.5 2 5–7


1. 2. 5–8 - - <strong>dbMAGIC</strong> Ver.8.2


66.1 : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : 6–26.2 MRB(MAGIC ) : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : 6–36.3 <strong>dbMAGIC</strong> : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : 6–46.4 : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : 6–46.5 : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : 6–56.6 : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : 6–56.7 MRB : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : 6–66.8 : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : 6–86.9 : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : 6–96.10 <strong>dbMAGIC</strong> : : : : : : : : : : : : : : : : : : : : : : 6–96.11 MRB : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : :6–10


66.1 3 <strong>dbMAGIC</strong> 8 <strong>dbMAGIC</strong> MRB ID <strong>dbMAGIC</strong> CTL <strong>dbMAGIC</strong> MRB <strong>dbMAGIC</strong> MRB <strong>dbMAGIC</strong> <strong>dbMAGIC</strong> MRB <strong>dbMAGIC</strong> MRB mgrqcmdl.exe <strong>dbMAGIC</strong> Web <strong>dbMAGIC</strong> 8 HTML Java HTML Java Web <strong>dbMAGIC</strong> <strong>dbMAGIC</strong> - 6–2 - <strong>dbMAGIC</strong> Ver.8.2


MRB MRB ID <strong>dbMAGIC</strong> ID <strong>dbMAGIC</strong> MRB MRB ID MRB MRB <strong>dbMAGIC</strong> 1 6.5 66.2 MRB(MAGIC )MRB <strong>dbMAGIC</strong> 1 1 MRB ( PC MRB )MRB <strong>dbMAGIC</strong> MRB ID <strong>dbMAGIC</strong> ID MRB ID MRB MRB MRB ID <strong>dbMAGIC</strong> MRB MRB - <strong>dbMAGIC</strong> Ver.8.26.2 MRB(MAGIC ) 6–3


6.3 <strong>dbMAGIC</strong> <strong>dbMAGIC</strong> <strong>dbMAGIC</strong> MRB PC<strong>dbMAGIC</strong> 1 MRB MRB MRB MRB MAGIC.INI <strong>dbMAGIC</strong> MRB MAGIC.INI MRB MRB ID MRB MRB ServerTimeoutI’m Alive( ServerTimeout6.4 TCP/IP MRB MRB <strong>dbMAGIC</strong> MRB <strong>dbMAGIC</strong> <strong>dbMAGIC</strong> <strong>dbMAGIC</strong> <strong>dbMAGIC</strong> MRB<strong>dbMAGIC</strong> <strong>dbMAGIC</strong> MRB MRB 6–4 - <strong>dbMAGIC</strong> Ver.8.2


6.5 5 1 12 5 - 1 2 2 2 3 4 4 1 500501 10001001 15001501 200065 1 4 6 ID ID <strong>dbMAGIC</strong> 8 STRTOKEN 7 8 6.6 1 4 4 4 3 PC 3 4 PC PC PC PC CTL PC 1 PC PC PC - <strong>dbMAGIC</strong> Ver.8.26.5 6–5


6.7 MRB MRB MRB API MRB MRB MRB MRB API 2 <strong>dbMAGIC</strong> 8 <strong>dbMAGIC</strong> <strong>dbMAGIC</strong> 8 MRB MRB <strong>dbMAGIC</strong> 8 6.1: MRB 6–6 - <strong>dbMAGIC</strong> Ver.8.2


MRB DOS MGRQCMDL.EXE<strong>dbMAGIC</strong>MGREQ.ini MRB MGRQCMDL MRB <strong>dbMAGIC</strong> mgrqcmdl -query=rtMRB <strong>dbMAGIC</strong> mgrqcmdl -query=app 4 MRB MRB 6MRB Command Line Requester: Connection to broker refused (error - 102)MRB <strong>dbMAGIC</strong> mgrqcmdl -exe=RuntimeName RuntimeName MGRB.INI [MRB EXECUTABLES LIST] <strong>dbMAGIC</strong> mgrqcmdl -terminate=EngineID EngineID MRB API - <strong>dbMAGIC</strong> Ver.8.26.7 MRB 6–7


6.8 MRB MGRB.INI MGRQCMDL.EXE MRB1 PC0 2 PC CPU 3 1 4 5 MRB 6 PC MRB <strong>dbMAGIC</strong> 7 3 PC 8 4 PC MRB <strong>dbMAGIC</strong> 2 MGRQCMDL dbMAGIG Rqxxxx 6–8 - <strong>dbMAGIC</strong> Ver.8.2


6.9 <strong>dbMAGIC</strong> 8 6 6.2: 6.10 <strong>dbMAGIC</strong> 4 - 5 - 1 1 PC - <strong>dbMAGIC</strong> Ver.8.26.9 6–9


<strong>dbMAGIC</strong> INI (MGREQ.INI)<strong>dbMAGIC</strong> MAGIC.INI MGRQCMDL MGREQ.INI MGREQ.INI MAGIC.INI <strong>dbMAGIC</strong> MGREQ.INIMessagingServerAltMessagingServerBroker TimeoutServer TimeoutRequesterTimeoutPriorityUsername, PasswordGateway<strong>dbMAGIC</strong> (MAGIC.INI) MRB 6.11 MRB MRB <strong>dbMAGIC</strong> PC PC MRB TCP/IP MGRB.INI MGRB.INI MRB MRB MGRB.INI <strong>dbMAGIC</strong> MRB 6–10 - <strong>dbMAGIC</strong> Ver.8.2


MGRB.INI <strong>dbMAGIC</strong> <strong>dbMAGIC</strong> MRB MRB MRB <strong>dbMAGIC</strong> MRGB.INI MRB [MRBEXECUTABLES LIST] MRB [MRB REMOTEEXECUTABLES LIST] <strong>dbMAGIC</strong> MAGIC.INI 3 ActivateRequestsServer Yes MAGIC.INI RequesterCanReplaceCtl No<strong>dbMAGIC</strong> <strong>dbMAGIC</strong> 6 - <strong>dbMAGIC</strong> Ver.8.26.11 MRB 6–11


6–12 - <strong>dbMAGIC</strong> Ver.8.2


7<strong>dbMAGIC</strong> 7.1 <strong>dbMAGIC</strong> : : : : : : : : : : : : : : : : : : : : : : : : : 7–37.2 <strong>dbMAGIC</strong> : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : 7–4


7<strong>dbMAGIC</strong><strong>dbMAGIC</strong> <strong>dbMAGIC</strong><strong>dbMAGIC</strong> LANWAN 7.1 <strong>dbMAGIC</strong> ÈÈÈÇÈÈÇÁÂÃÄÅÆÇÈÉÉÈ !"# !"#ÈÈÈ 7.1: <strong>dbMAGIC</strong> 7–2 <strong>dbMAGIC</strong> - <strong>dbMAGIC</strong> Ver.8.2


1 <strong>dbMAGIC</strong> <strong>dbMAGIC</strong> CPU <strong>dbMAGIC</strong><strong>dbMAGIC</strong> <strong>dbMAGIC</strong> 7.1 <strong>dbMAGIC</strong> <strong>dbMAGIC</strong> PC <strong>dbMAGIC</strong> 7 CPU 3GL PC - <strong>dbMAGIC</strong> Ver.8.27.1 <strong>dbMAGIC</strong> 7–3


7.2 <strong>dbMAGIC</strong> <strong>dbMAGIC</strong> ÉÁÂÃÂÆÇÈÉÆÂÇÈÁÂÃÄÂÅÄÅÉÂÆÇÈÉÁÂÃÄÂÅÄÅÈÂÉÂÆÇÈÉÁÂÃÄÂÅÄÅÈÂ 7.2: <strong>dbMAGIC</strong> <strong>dbMAGIC</strong> Windows 95 Windows NT UNIX AS/400Windows <strong>dbMAGIC</strong> 3 7–4 <strong>dbMAGIC</strong> - <strong>dbMAGIC</strong> Ver.8.2


<strong>dbMAGIC</strong> <strong>dbMAGIC</strong> <strong>dbMAGIC</strong> <strong>dbMAGIC</strong> 2 3 7 DBMS <strong>dbMAGIC</strong> TCP/IP <strong>dbMAGIC</strong> <strong>dbMAGIC</strong> DBMS - <strong>dbMAGIC</strong> Ver.8.27.2 <strong>dbMAGIC</strong> 7–5


7–6 <strong>dbMAGIC</strong> - <strong>dbMAGIC</strong> Ver.8.2


8<strong>dbMAGIC</strong> 8.1 : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : 8–28.2 UNIX : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : 8–28.3 INI : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : 8–6


8<strong>dbMAGIC</strong> (Ver7 <strong>dbMAGIC</strong> UNIX UNIX <strong>dbMAGIC</strong> TCP/IP 8.1 TCP/IP <strong>dbMAGIC</strong> MAGIC.INI = , ,, , ,, server type number server type number <strong>dbMAGIC</strong> server type number MRB 1 2 8.2 UNIX TCP/IP TCP/IP TCP/IP mgdispatch port number TCP/IP 1001 8–2 <strong>dbMAGIC</strong> - <strong>dbMAGIC</strong> Ver.8.2


TCP/IP 3 ’mgenv’ MGDISPATCH LOG mgenv MGSRVRLOG mgsrvrlog srvr.(number number ID mgdispatch8mgdatasrvr<strong>dbMAGIC</strong> mgdatasrvr.sc tcpstgen1 1 1 ACS mgdispatch) $MAGIC HOME/servers MGSERVER.INImgdatasrvr.sc1. MGSERVER.INI mgdispatch mgdispatch MGSERVER.INI mgdataserver 2. MGSERVER.INI - <strong>dbMAGIC</strong> Ver.8.28.2 UNIX 8–3


MGSERVER.INI mgdatasrvr.sc mgdispatch MGDATASRVR mgdatasrv.sc mgdatasrvr.sc MGENVSRV MGSERVER.INI <strong>dbMAGIC</strong> UNIX <strong>dbMAGIC</strong> DBMS UNIX <strong>dbMAGIC</strong> <strong>dbMAGIC</strong> UNIX 2 1 UNIX rshremshrcmd rlogin/etc/hosts/etc/hosts.equiv $HOME/.rhosts 2 <strong>dbMAGIC</strong> <strong>dbMAGIC</strong> <strong>dbMAGIC</strong> UNIX mgpasswd <strong>dbMAGIC</strong> etc 600rw—- —etc 755rwxr-x r-x <strong>dbMAGIC</strong> mgpasswd etc 755 TCP etc mgpasswd 1. mgpasswd 2. mgpasswd 3. mgpasswd 600 4. etc <strong>dbMAGIC</strong> 5. etc 6. etc 755 mgpasswd mgpasswdmgpasswd etc rlogin TCP/IP 8–4 <strong>dbMAGIC</strong> - <strong>dbMAGIC</strong> Ver.8.2


mgpasswd : 3 user name:password:host addresses UNIX 2 3 <strong>dbMAGIC</strong> #mgpasswd magicadm:dmagciam:134.24.34.99, 90.0.2.28mgpasswd 1. 1 80 2. UNIX 3. 4. 5. 86. <strong>dbMAGIC</strong> 7. <strong>dbMAGIC</strong> 8. 1 : 2 <strong>dbMAGIC</strong> 9. 10. # This is an example mgpasswd file# The three fields that are delimited by the : character are# User Name, Password, and Host Listmagicadm:dmagciam:134.23.45.99:# The above line only allows host 134.23.45.99 to login to magicadm with# the password dmagciammagicadm::55.56.67.89:# User <strong>Magic</strong>adm can login from host 55.56.67.89 without any passwordmagic1:werty:# All hosts can login to user magic1 with the password wertymagic1::44.55.55.66,34.56.78.90:# Hosts 44.55.55.66 and 34.56.78.90 can login to magic1 without a passwordmagic2:: - <strong>dbMAGIC</strong> Ver.8.28.2 UNIX 8–5


# Any host can login to magic2 without a password.:8.3 INI INI <strong>dbMAGIC</strong> INI <strong>dbMAGIC</strong> INI INI $MAGIC HOME/servers/MGSERVER.INI $MAGIC HOME/servers/mgdatasrvr.sc ”MGSRVENV” <strong>dbMAGIC</strong> MGSERVER.INI MAGIC SERVERS NONE NONEMGSERVER.INI [MAGIC SERVERS] MGSERVER.INI 1 server name = communication type,server address,username,passwordserver name <strong>dbMAGIC</strong> <strong>dbMAGIC</strong> MGSERVER.INI communication type 1 2 TCP/IP server address 1 NONE 2 TCP/IP hostname/port number host name TCP/IP 8–6 <strong>dbMAGIC</strong> - <strong>dbMAGIC</strong> Ver.8.2


port number <strong>dbMAGIC</strong> username password username password 1 NONE DEFAULT 1 [MAGIC SERVERS] [MAGIC SERVERS]DEFAULT = 1,NONE,,,,THIS SERVER = 1,NONE,,,,TCP SERVER = 2,goodhost/2060, magicuser, % password% ,, THIS SERVER MGSERVER.INI goodhost THIS SERVERTHIS SERVER = 2,goodhost/20608[MAGIC COMMS] Communication protocol = number, timeout, misc.params Communication protocol number <strong>dbMAGIC</strong>TCP/IP timeout TCP/IP misc. params [MAGIC COMMS] [MAGIC COMMS]NONE = 1, 0, NO Parameters neededTCP/IP = 2,0, 1500-2000IPX = 4, 20, IPX ParametersNetBios = 5, 20, NetBios Parameters 1 NONE - <strong>dbMAGIC</strong> Ver.8.28.3 INI 8–7


[MAGIC ENV] MAGIC.INI [MAGIC ENV] MGSERVER.INI MAGIC.INI MultiUser = YISAMTransaction = YDeadlockPrevent = NServerTimeout = 0ResidentINI = NPritAttr =NativeTranslationFile =CollatingFile =CommandProcessor =Century = 1920ThousandSeparator = ,DecimalSeparator = .DateSeparator = /TimeSeparator = :<strong>dbMAGIC</strong> MGSERVER.INI 3 [MAGIC PRINTERS] [MAGIC PRINTERS] name = queue name, commands-file, translation-file, #of lines name PRINTER1 queue name LPT1 commands-file translation-file printer.ATR xxxxxx.ENG #of lines 1 [MAGIC DBMS] <strong>dbMAGIC</strong> DBMS [MAGIC GATEWAYS] Windows NT <strong>dbMAGIC</strong> <strong>dbMAGIC</strong> MAGIC.INI 8–8 <strong>dbMAGIC</strong> - <strong>dbMAGIC</strong> Ver.8.2


MAGIC.INI MAGIC.INI MAGIC.INI MGSERVER.INI Terminal ServerTimeoutMAGIC DATABASES<strong>dbMAGIC</strong> <strong>dbMAGIC</strong> TCP/IP TCP/IP = 2,0,1500-2000 TCP-LOGTCP.LOG <strong>dbMAGIC</strong> 1 2 83 <strong>dbMAGIC</strong> 8 2 <strong>dbMAGIC</strong> 8 2 DISCSRVR DISCSRVR (server-name) - <strong>dbMAGIC</strong> Ver.8.28.3 INI 8–9


<strong>dbMAGIC</strong> TCP/IP <strong>dbMAGIC</strong> WindowsNT UNIX8–10 <strong>dbMAGIC</strong> - <strong>dbMAGIC</strong> Ver.8.2


8.1: 8 Remote-RMS <strong>dbMAGIC</strong> DataServer 8.2: - <strong>dbMAGIC</strong> Ver.8.28.3 INI 8–11


8.3: 8.4: <strong>dbMAGIC</strong> IOEXIST 8–12 <strong>dbMAGIC</strong> - <strong>dbMAGIC</strong> Ver.8.2


8.5: 8 8.6: - <strong>dbMAGIC</strong> Ver.8.28.3 INI 8–13


Printer4 Printer1 8.7: OS 8.8: OS 8–14 <strong>dbMAGIC</strong> - <strong>dbMAGIC</strong> Ver.8.2


PRC MS Windows TCP/IPMicrosoft winsock TCP/IP 3 1. 2. 3. <strong>dbMAGIC</strong> <strong>dbMAGIC</strong> PING TCP/IP 8 CTL MGSERVER.INI [MAGIC SERVERS] NONE 2 NONE <strong>dbMAGIC</strong> OS - <strong>dbMAGIC</strong> Ver.8.28.3 INI 8–15


MGSERVER.INI MAGIC.INI MAGIC COMMS Timeout TCP/IP ServerTimeout TCP/IP MGSERVER.INI ServerTimeout MAGIC.INI ServerTimeout I AM ALIIVE() I AM ALIIVE() ServerTimeout MAGIC.INI IdleTime ServerTimeout IdleTime MAGIC.INI [MAGIC ENV]IdleTime = 20ServerTimeout = 10 5 I’m alive 20 5 20 10 <strong>dbMAGIC</strong> V8 ServerTimeout 0 <strong>dbMAGIC</strong> 2 1 2 8–16 <strong>dbMAGIC</strong> - <strong>dbMAGIC</strong> Ver.8.2


<strong>dbMAGIC</strong> 1 2 2 1 2 2 1 <strong>dbMAGIC</strong> 2 <strong>dbMAGIC</strong> <strong>dbMAGIC</strong> 8 / SQL SQL SQL SQL - <strong>dbMAGIC</strong> Ver.8.28.3 INI 8–17


8–18 <strong>dbMAGIC</strong> - <strong>dbMAGIC</strong> Ver.8.2


A<strong>dbMAGIC</strong>A.1 UNIX <strong>dbMAGIC</strong> : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : A–2A.2 : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : A–3


A<strong>dbMAGIC</strong>A.1 UNIX <strong>dbMAGIC</strong> <strong>dbMAGIC</strong> $MAGIC HOME/etc/$MAGIC HOME/etc/.cshrc$MAGIC HOME/etc/.login$MAGIC HOME/etc/mgconst.eng$MAGIC HOME/etc/.profile$MAGIC HOME/etc/mguserenv$MAGIC HOME/etc/mgenv$MAGIC HOME/etc/MAGIC.INI$MAGIC HOMESERVERS/etc/MGSERVER.INI$MAGIC HOME/etc/act std.eng$MAGIC HOME/etc/clr std.eng$MAGIC HOME/etc/doc std.$MAGIC HOME/etc/prn unx.eng$MAGIC HOME/etc/prn std.eng$MAGIC HOME/etc/lj3.atr$MAGIC HOME/etc/str pc.eng$MAGIC HOME/etc/acs pc.eng$MAGIC HOME/etc/epson.atr$MAGIC HOME/etc/mgfiles/$MAGIC HOME/etc/mgfiles/mginf7$MAGIC HOME/etc/mgfiles/magicrnt$MAGIC HOME/etc/mgfiles/datasrvr$MAGIC HOME/etc/mgfiles/mgoracle7.3$MAGIC HOME/etc/langs$MAGIC HOME/etc/act std.eng$MAGIC HOME/bin/$MAGIC HOME/lib/mgtcp$MAGIC HOME/bin/mgcircvr$MAGIC HOME/lib/mddb2$MAGIC HOME/lib/mdinformix$MAGIC HOME/lib/mdoracle$MAGIC HOME/lib/mdsybase$MAGIC HOME/lib/mgcisam$MAGIC HOME/bin/magicrnt$MAGIC HOME/doc/$MAGIC HOME/doc/Release Notes$MAGIC HOME/doc/DocRelease$MAGIC HOME/doc/readme.sybA–2 <strong>dbMAGIC</strong> - <strong>dbMAGIC</strong> Ver.8.2


$MAGIC HOME/doc/readme.cis$MAGIC HOME/doc/readme.ora$MAGIC HOME/doc/readme.inf$MAGIC HOME/doc/readme.heb$MAGIC HOME/sbin/cgi.sh$MAGIC HOME/sbin/mglink$MAGIC HOME/sbin/mgrnt$MAGIC HOME/sbin/mgroot.sh$MAGIC HOME/sbin/mgupgrade$MAGIC HOME/sbin/parsestate$MAGIC HOME/sbin/setbackup$MAGIC HOME/sbin/mgrnt$MAGIC HOME/sbin/mgrntx$MAGIC HOME/sysbin/ld$MAGIC HOME/sysbin/strip$MAGIC HOME/api/$MAGIC HOME/api/myproc.c$MAGIC HOME/api/myproc.o$MAGIC HOME/api/myudf.c$MAGIC HOME/api/myudf.o$MAGIC HOME/api/procfill.c$MAGIC HOME/api/procfill.o$MAGIC HOME/api/userproc.h$MAGIC HOME/api/upp$MAGIC HOME/api/upudf$MAGIC HOME/api/mkuserproc$MAGIC HOME/api/myproc$MAGIC HOME/api/myudf$MAGIC HOME/servers/$MAGIC HOME/servers/mgdatasrvr.sc$MAGIC HOME/servers/mgdispatch$MAGIC HOME/servers/mgdispatchtrm$MAGIC HOME/servers/MGSERVER.INI$MAGIC HOME/servers/mgdatasrvr$MAGIC HOME/logs/AA.2 MGDISPATCH LOG $MAGIC HOME/logs/tcpdispatch.log MGSRVRLOG $MAGIC HOME/logs/srvr ”procid”-/etc/mgpasswd - <strong>dbMAGIC</strong> Ver.8.2A.2 A–3


<strong>dbMAGIC</strong> user: passwrod: ip = 600A–4 <strong>dbMAGIC</strong> - <strong>dbMAGIC</strong> Ver.8.2


BUNIXB.1 UNIX : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : B–2


BUNIX B.1 UNIX (MGSRVRGEN


Bad memory attachmentBad memory initializationBad Pointer Free ErrorBad Process IDBAD RECEIVEBad request receivedBad test access to daemonBad user count on release (%d)Can’t allocate messageCan’t Change Process GroupCan’t Create ChildCan’t get host 5.60 mgdaemon/etc/MG LCK1 5.60 mgdaemon/etc/MG LCK2 MAGIC <strong>dbMAGIC</strong> mgdaemon - ID mgdaemon <strong>dbMAGIC</strong> mgdaemon mgdaemon mgdaemon <strong>dbMAGIC</strong> daemon <strong>dbMAGIC</strong> mgdaemon mgdaemon mgdaemon /etc/MGXXX LCK1/etc/MGXXX LCK2XXX <strong>dbMAGIC</strong> mgdaemon ID mgdaemon /etc/hosts B - <strong>dbMAGIC</strong> Ver.8.2B.1 UNIX B–3


Can’t get MAGIC HOME environment variableCan’t get open fileCan’t get screen ioctlCan’t get tty nameCan’t log this userCan’t open a ttyCan’t open debug ttyMAGIC HOME <strong>dbMAGIC</strong> tcpstxxx.rc rcmgexit mgdaemon /etc/MGXXX LCK1/etc/MGXXX LCK2 <strong>dbMAGIC</strong> UNIX tty mgdaemon <strong>dbMAGIC</strong> (/etc/MGXXX LCK1 ) tty Can’tGet ScreenIOCTL<strong>dbMAGIC</strong> DEBUG TTY Can’t open file for check <strong>dbMAGIC</strong> mgdaemon /etc/MGXXX LCK1/etc/MGXXX LCK2 Can’t open keyboardCan’t open sem lock fileCan’t set blockedCan’t set delayedCan’t set no delay tty <strong>dbMAGIC</strong> mgdaemon /etc/MGXXX LCK1/etc/MGXXX LCK2 <strong>dbMAGIC</strong> <strong>dbMAGIC</strong> <strong>dbMAGIC</strong> B–4 UNIX - <strong>dbMAGIC</strong> Ver.8.2


Can’t set signalsCan’t set user ID, user is id%d, address:%sCan’t stat directoryCannot Initialize MemoryDispatcher CanceledDispatcher has bad permissionsError during file statError during login sendError during user loginError during user release<strong>dbMAGIC</strong> ID set uid $MAGIC HOME/etc MAGIC HOME <strong>dbMAGIC</strong><strong>dbMAGIC</strong> MemorySize $MAGIC HOME/servers 4511 mgdaemon - (/etc/MGXXX LCK1 ) <strong>dbMAGIC</strong> mgdaemon<strong>dbMAGIC</strong> mgdaemon mgdaemon<strong>dbMAGIC</strong> mgdaemon mgdaemonBError in loadError in Open System Error MessageError in Resetting Line <strong>dbMAGIC</strong> script <strong>dbMAGIC</strong> <strong>dbMAGIC</strong> script <strong>dbMAGIC</strong> <strong>dbMAGIC</strong> - <strong>dbMAGIC</strong> Ver.8.2B.1 UNIX B–5


Erro in Restoring LineError in starting tcp log continue (y/n)Error: line%d, host address does not exist,host ignoredError: Running without <strong>Magic</strong> environmentIllegal UserListen failedMemory verify error$MGTCP XXX LOG mgpasswd -/etc/hosts <strong>dbMAGIC</strong> MAGIC HOME 5.61 mgdaemon/etc/hosts UNIX hostname <strong>dbMAGIC</strong> Mgdaemon already executing 2 mgdaemon /etc/MGXXX LCK1 UNIX Mgdaemon canceledMgdaemon has bad premissions (4511)Mgdaemon is not runningMgdaemon-signaledMgdaemon: abnormal termination - signal %dNo TCP driver foundNot enough processesmgdaemon MAGIC HOME/bin mgdaemon 5.61 4511 mgdaemon <strong>dbMAGIC</strong> <strong>dbMAGIC</strong>5.61 mgdaemon mgexit mgdaemon mgdaemon MAGIC COMM 2 DRIVER mgtcp () B–6 UNIX - <strong>dbMAGIC</strong> Ver.8.2


Opening lock fileOut of memoryProcess %d: Listen failedProcess %d: No TCP driver foundSyntax: %s port-numberUnknown errorUnknown terminalUnknown termial type (Check TERM environmentvariableUnknown Termial TypeWarning: cannot access <strong>Magic</strong> password fileWarning: line %d, illegal syntax, line ignoredWarning: line %d, illegal username, line ignored<strong>dbMAGIC</strong> (/etc/MGXXX LCK1 ) <strong>dbMAGIC</strong> MemorySize /etc/hosts UNIX hostnameMAGIC COMM 2 DRIVER mgtcp mgdaemon TERM TERM cursers TERM curses termcap,terminfo<strong>dbMAGIC</strong> termcap $MAGIC HOME/etc/mgpasswd mgpasswd /etc/passwd NIS usernameB - <strong>dbMAGIC</strong> Ver.8.2B.1 UNIX B–7


B–8 UNIX - <strong>dbMAGIC</strong> Ver.8.2


CTCP/IPC.1 TCP/IP : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : C–2


CTCP/IPC.1 TCP/IP bad first close; close socket failedbad second close; close socket failedcannot bind my socket; bind call failedcannot connect to dispatcher; connect failedcannot create listen queue; listen call failedcannot find my address in hostscannot get my namecannot get the server address; gethostbynamefailedcannot open first socketcannot open second socketcannot set socket packet size; setsocketopt failed tcpstgen tcpstrnt/DNS /DNS C–2 TCP/IP - <strong>dbMAGIC</strong> Ver.8.2


Dispatcher did not send ok; dispatcher failedproblems in accept; accept failedproblems in receive answer; receive call failedproblems in sending hello; send call failed(a) (b)/etc/hosts /etc/hosts.equiv .rhosts mgpasswd ISAM ISAMC - <strong>dbMAGIC</strong> Ver.8.2C.1 TCP/IP C–3


C–4 TCP/IP - <strong>dbMAGIC</strong> Ver.8.2


D D.1 : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : D–2


D (mgrqcmdl.exe) MRB D.1 -APPNAME-APPNAME=Pet Shop Demo-PRGNAME-PRGNAME=Orders List[-ARGUMENTS ] (’,’ ) -ARGUMENTS=string value,-N1000,-LTRUE,-U[-VARIABLES ] (’,’ ) -VARIABLES=var 1=string value,var 2=-N1000,var 3=-LTRUE[-PRIORITY ] (0 - 9) -PRIORITY=4[-USERNAME ][-PASSWORD ][-FILENAME ][-NOWAIT ][-HOST, -PORT]-QUERY -USERNAME=supervisor MRB -PASSWORD=mypass -FILENAME=MGRQCMDL.OUT MRB () -HOST=my server -PORT=2001RT[(appname)]APP[(host/port)]QUEUE[(appname)]LOG[(appname)][=reqid[-reqid]] -QUERY=RT -QUERY=RT(Pet Shop Demo) -QUERY=APP(my server/1500) -QUERY=QUEUE -QUERY=LOG=100-90D–2 - <strong>dbMAGIC</strong> Ver.8.2


LOAD [(appname)] MRB -QUERY=LOAD(Pet Shop Demo)PENDING = reqid -QUERY=PENDING=1-REQID = reqid (, ) ID -REQID=1D-CLEAR-PRIORITY -CLEAR -REQID=1 -PRIORITY=3 -REQID=1-EXE = ExeEntry [/ args ] MRB -EXE=Background//StartApplication=1/StartProgram=1-TERMINATEALLRTShost/portMRB -TERMINATE=ALLMRB -TERMINATE=my server/1500 [] (-ARGUMENTS -VARIABLES ): -A : alphanumeric -U : NULL -L : logical (True/False) -N : integer -F : float -D : double - <strong>dbMAGIC</strong> Ver.8.2D.1 D–3


D–4 - <strong>dbMAGIC</strong> Ver.8.2


<strong>dbMAGIC</strong> Ver.8.2 - c1999,<strong>Magic</strong> <strong>Software</strong> Japan K.K. 1999 2 5 2000 6 30 151-0053 14

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!