Material necesario:
Partimos de una situación en la cual la máquina esta iniciada:
(Pulsar ENTER) Welcome to OpenVMS (TM) VAX Operating System, Version V7.3 Username: system Password: (Teclear la clave correspondiente) Welcome to OpenVMS (TM) VAX Operating System, Version V7.3 Last interactive login on ???????, dd-mmm-aaaa hh:mm $ set term/vt100 $ _
Previamente, hay que ajustar algunos parametros (si no estan ya ajustados)
En primer lugar, el tamaño de la cola para el usuario SYSTEM
$ set def sys$system $ run authorize UAF> MODIFY SYSTEM/ENQLM=2000 %%%%%%%%%%% OPCOM dd-mmm-aaaa hh:mm:ss.cc %%%%%%%%%%% Message from user AUDIT$SERVER on VAX Security alarm (SECURITY) and security audit (SECURITY) on VAX, system id: 1034 Auditable event: System UAF record modification Event time: dd-mmm-aaaa hh:mm:ss.cc PID: 00000216 Process name: SYSTEM Username: SYSTEM Process owner: [SYSTEM] Terminal name: OPA0: Image name: VAX$DUA0:[SYS0.SYSCOMMON.][SYSEXE]AUTHORIZE.EXE Object class name: FILE Object name: SYS$COMMON:[SYSEXE]SYSUAF.DAT;1 User record: SYSTEM ENQLM: New: 2000 Original: 200 %UAF-I-MDFYMSG, user record(s) updated UAF> EXIT %UAF-I-DONEMSG, system authorization file modified %UAF-I-RDBNOMODS, no modifications made to rights database $ _
También hay que ajustar los parámetros del sistema editando MODPARAMS.DAT
y realizando un autogen:
$ set def sys$system $ edit modparams.dat
Se borra la pantalla y aparece el editor, comprueban las líneas en rojo:
SCSNODE="VAX" SCSSYSTEMID=1025 VAXCLUSTER=0 ADD_GBLPAGES=30000 ADD_GBLSECTIONS=120 ADD_NPAGEDYN=800000 ADD_NPAGEVIR=800000 MIN_SPTREQ=6000 INTSTKPAGES=20 [End of file] Buffer: MODPARAMS.DAT | Write | Insert | Forward 3 lines read from file SYS$SYSROOT:[SYSEXE]MODPARAMS.DAT;1
Se pulsa [Ctrl+Z] para salir y guardar y se continúa
$ set def sys$update $ @autogen getdata shutdown nofeedback
Pasado un rato se “apaga” la máquina. Para continuar, se vuelve a arrancar y se inicia sesión con SYSTEM
.
Si no está ya, se “introduce” la imagen de disco en el “lector virtual”.
$ (Pulsar Ctrl+E) Simulation stopped, PC: 834B4F43 (CMPL R4,R5) sim> attach -r rq3 extra2.iso RQ: unit is read only sim> cont _
luego se monta el CD y se instala la licencia
mount/over=id dua3: %MOUNT-I-WRITELOCK, volume is write locked %MOUNT-I-MOUNTED, EXTRA2 mounted on _VAX$DUA3: $ LICENSE REGISTER RDB /ISSUER=DEC /AUTHORIZATION=HOBBYIST-XX-KEY99999-999999 /PR ODUCER=DEC /UNITS=0 /ACTIVITY=CONSTANT=100 /TERMINATION_DATE=dd-mmm-aaaa /CHECKSU M=9-XXXX-XXXX-XXXX-XXXX $ LICENSE LOAD RDB %LICENSE-I-LOADED, DEC RDB was successfully loaded with 0 units $ _
Si está instalado e iniciado TCP/IP se detiene con
$ @sys$startup:tcpip$shutdown
Se realiza la instalación:
$ @sys$update:vmsinstal DECRDBMV051 dua3:[decrdbmv051.kit] OpenVMS VAX Software Product Installation Procedure V7.3 It is dd-mmm-aaaa at hh:mm. Enter a question mark (?) at any time for help. * Are you satisfied with the backup of your system disk [YES]? (Pulsar ENTER) The following products will be processed: DECRDBMV V5.1 Beginning installation of DECRDBMV V5.1 at hh:mm %VMSINSTAL-I-RESTORE, Restoring product save set A ... %VMSINSTAL-I-RELMOVED, Product's release notes have been moved to SYS$HELP. Copyright © Digital Equipment Corporation. 1993. All Rights Reserved. The Rdb installation guide has been provided in SYS$HELP. * Would you like to print the installation guide ? [NO]: (Pulsar ENTER) ................................................................. IMPORTANT **** PLEASE NOTE ****** If you have CDD/Plus V4.3, CDD/Repository V5.0, CDD/Repository V5.1 or DECdesign on your system you will have to upgrade your CDDSHR and CDDX images using the separately installable CDDRDB042 kit. The RDBVMS_CONVERT_CDD$DATABASE.COM procedure has been provided in SYS$LIBRARY. This command procedure should be used to UPGRADE each CDD dictionary database and DECdesign library on your system. Please see the DEC Rdb V5.1 release notes for more details. ................................................................. Installation procedures for: "DEC Rdb V5.1-0" You are about to install a multi-version Rdb kit. * Do you want to proceed [NO]: y There are 3 types of DEC Rdb kits: DEVELOPMENT (DEV), INTERACTIVE(INT), and RUNTIME-ONLY (RTO) You must select which type of kit you wish to install: Enter RTO for RUNTIME-ONLY Enter INT for INTERACTIVE Enter DEV for DEVELOPMENT (the default) * Enter the kit type to install [DEV]: (Pulsar ENTER) Be sure you have read the section entitled "Preparing Your System and the Installing Account" in the installation guide before continuing with the installation. Checking system requirements ... Product: RDB Producer: DEC Version: 5.1 Release Date: 01-JUL-1990 * Does this product have an authorization key registered and loaded? y ************************************************************* This installation requires the creation of the RDB$REMOTE51 account. You MUST choose a UIC for this account. ************************************************************** ************************************************************* The installation procedure will not proceed until you enter a valid user identification code (UIC) for the RDB$REMOTE51 account. The UIC must be unique. ************************************************************** * Enter UIC to be used for RDB$REMOTE51 account: [300,2] * Do you want to run the IVP after the installation [YES]? (Pulsar ENTER) * Do you want to purge files replaced by this installation [YES]? (Pulsar ENTER) There are no more questions. The installation takes approximately 60 minutes Beginning installation ... Installing under VMS V7.3 - dd-mmm-aaaa hh:mm %VMSINSTAL-I-RESTORE, Restoring product save set B ... %VMSINSTAL-I-RESTORE, Restoring product save set C ... %VMSINSTAL-I-RESTORE, Restoring product save set D ... %VMSINSTAL-I-RESTORE, Restoring product save set E ... %VMSINSTAL-I-RESTORE, Restoring product save set F ... %VMSINSTAL-I-RESTORE, Restoring product save set G ... ************************************************************* SYSTEM MANAGER: The following command line MUST be added to the system startup command file SYS$STARTUP:SYSTARTUP_VMS.COM for all nodes that will be running DEC Rdb. $ @SYS$STARTUP:RMONSTART51 The following command line should be added to the system shutdown command file SYS$MANAGER:SYSHUTDWN.COM for all nodes that will be running DEC Rdb. $ @SYS$MANAGER:RMONSTOP51 ************************************************************* %VMSINSTAL-I-ACCOUNT, This installation creates an ACCOUNT named RDB$REMOTE51. %UAF-I-ADDMSG, user record successfully added %%%%%%%%%%% OPCOM dd-mmm-aaaa hh:mm:ss.cc %%%%%%%%%%% Message from user AUDIT$SERVER on KAPPA Security alarm (SECURITY) and security audit (SECURITY) on KAPPA, system id: 103 4 Auditable event: System UAF record addition Event time: dd-mmm-aaaa hh:mm:ss.cc PID: 00000216 Process name: SYSTEM Username: SYSTEM Process owner: [SYSTEM] Terminal name: OPA0: Image name: KAPPA$DUA0:[SYS0.SYSCOMMON.][SYSEXE]AUTHORIZE.EXE Object class name: FILE Object name: SYS$COMMON:[SYSEXE]SYSUAF.DAT;1 User record: RDB$REMOTE51 BYTLM: New: 20480 Original: 32768 Default Device: New: SYS$COMMON: Original: SYS$SYSDEVICE: Default Directory: New: [RDB$REMOTE51] Original: [USER] ENQLM: New: 2000 Original: 200 FILLM: New: 50 Original: 300 LGICMD: New: SYS$SYSTEM:RDB$REMOTE_LOGIN51.COM Original: LOGIN UIC: New: [300,2] Original: [200,200] Password Date: New: (pre-expired) Original: (pre-expired) %%%%%%%%%%% OPCOM dd-mmm-aaaa hh:mm:ss.cc %%%%%%%%%%% Message from user AUDIT$SERVER on KAPPA Security alarm (SECURITY) and security audit (SECURITY) on KAPPA, system id: 103 4 Auditable event: Identifier added Event time: dd-mmm-aaaa hh:mm:ss.cc PID: 00000216 Process name: SYSTEM Username: SYSTEM Process owner: [SYSTEM] Terminal name: OPA0: Image name: KAPPA$DUA0:[SYS0.SYSCOMMON.][SYSEXE]AUTHORIZE.EXE Identifier name: RDB$REMOTE51 Identifier value: %X00C00002 Attributes: none %UAF-I-RDBADDMSGU, identifier RDB$REMOTE51 value [000300,000002] added to rights database %VMSINSTAL-I-ACCOUNT, This installation updates an ACCOUNT named RDB$REMOTE51. %%%%%%%%%%% OPCOM dd-mmm-aaaa hh:mm:ss.cc %%%%%%%%%%% Message from user AUDIT$SERVER on KAPPA Security alarm (SECURITY) and security audit (SECURITY) on KAPPA, system id: 103 4 Auditable event: System UAF record modification Event time: dd-mmm-aaaa hh:mm:ss.cc PID: 00000216 Process name: SYSTEM Username: SYSTEM Process owner: [SYSTEM] Terminal name: OPA0: Image name: KAPPA$DUA0:[SYS0.SYSCOMMON.][SYSEXE]AUTHORIZE.EXE Object class name: FILE Object name: SYS$COMMON:[SYSEXE]SYSUAF.DAT;1 User record: RDB$REMOTE51 Batch access: New: Primary: (no access), Secondary: (no access) Original: Primary: (full access), Secondary: (full acc ess) Dialup access: New: Primary: (no access), Secondary: (no access) Original: Primary: (full access), Secondary: (full acc ess) Flags: New: DISCTLY,DEFCLI,LOCKPWD,RESTRICTED,NOMAIL,DIS RECONNECT Original: DISUSER Local access: New: Primary: (no access), Secondary: (no access) Original: Primary: (full access), Secondary: (full acc ess) Network access: New: Primary: (full access), Secondary: (full acc ess) Original: Primary: (full access), Secondary: (full acc ess) Process Count: New: 0 Original: 2 Privileges: New: TMPMBX,NETMBX Original: TM *TRUNCATED* -- If audits are enabled for this class, the full message can be examined with ANALYZE/AUD %UAF-I-MDFYMSG, user record(s) updated ************************************************************* SYSTEM MANAGER: In order to have remote access on another node which shares this cluster common root directory, you must configure the node's DECnet to recognize RDBSERVER. Do the following: a) Logging into that node, and b) Invoking SYS$COMMON:[SYS$STARTUP]RDBSERVER_NCP.COM. This command procedure configures RDBSERVER with DECnet on that node. This procedure only needs to be executed ONCE per node. ************************************************************* %VMSINSTAL-I-SYSDIR, This product creates system disk directory VMI$ROOT:[RDB$R EMOTE51]. %REGISTER-I-ADDED added RDMSHRP51 to registry %REGISTER-I-SUMMARY images examined: 1, dependent images: 1 %REGISTER-I-ADDED added RDMPRV51 to registry %REGISTER-I-SUMMARY images examined: 1, dependent images: 1 ************************************************************* DECtrace has not been installed. Now storing the RDBVMS facility definition into sys$share:epc$facility.tlb. After installing DECtrace, the facility definition may be placed in the DECtrace administration database Please refer to the DECtrace User's guide for instructions on how to insert binary facility definitions into the DECtrace administration database. ************************************************************* %VMSINSTAL-I-SYSDIR, This product creates system disk directory VMI$ROOT:[SYSHL P.EXAMPLES.DECRDB51]. %VMSINSTAL-I-SYSDIR, This product creates system disk directory VMI$ROOT:[SYSTE ST.DECRDB51]. SQL is not being installed with VAX Language-Sensitive Editor support because the Editor is not installed on your system. If you want the VAX Language-Sensitive Editor support you must do the following: 1. Install VAX Language-Sensitive Editor 2. Re-install Rdb/VMS ************************************************************* The DEC Rdb Installation Verification Procedure (IVP) has been provided in SYS$COMMON:[SYSTEST]. It is invoked using the commands: $ SET DEFAULT SYS$COMMON:[SYSTEST] $ @RDBIVP51 DEV ************************************************************* ************************************************************* The release notes for DEC Rdb are available in the file SYS$HELP:DECRDB051.RELEASE_NOTES ************************************************************* %VMSINSTAL-I-SYSDIR, This product creates system disk directory VMI$ROOT:[SYSMG R.VAXINFO$PRODUCTS]. %VMSINSTAL-I-MOVEFILES, Files will now be moved to their target directories... DEC Rdb monitor (RDMS_MONITOR51) started Executing IVP for: DEC Rdb V5.1-0 Copyright © Digital Equipment Corporation. 1993. All Rights Reserved. Building the test database. Exported by Rdb/VMS V4.1-0 Import/Export utility A component of VAX SQL V4.1-0 Previous name was rdbvms$ivp_dir:personnel It was logically exported on 31-JUL-1992 14:34:56.20 Multischema mode is DISABLED Database NUMBER OF USERS is 50 Database NUMBER OF CLUSTER NODES is 16 Database NUMBER OF DBR BUFFERS is 20 Database SNAPSHOT is ENABLED Database SNAPSHOT is IMMEDIATE Database BUFFER SIZE is 6 blocks Database NUMBER OF BUFFERS is 20 Adjustable lock granularity is ENABLED Database global buffering is DISABLED Journal fast commit is DISABLED Journal fast commit checkpoint interval is 0 blocks Journal fast commit checkpoint time is 0 seconds Commit to journal optimization is Disabled Journal fast commit TRANSACTION INTERVAL is 256 LOCK TIMEOUT is 0 seconds IMPORTing STORAGE AREA: RDB$SYSTEM IMPORTing relation EMPLOYEES IMPORTing relation JOBS IMPORTing relation DEPARTMENTS IMPORTing relation WORK_STATUS Beginning Installation Verification Tests. Running the after-image journaling test. %RMU-I-AIJONEDONE, AIJ file sequence 0 roll-forward operations completed %RMU-I-AIJALLDONE, AIJ roll-forward operations completed %RMU-I-AIJSUCCES, database recovery completed successfully %RMU-I-AIJFNLSEQ, to start another AIJ file recovery, the sequence number needed will be 1 %RMU-I-AIJNOENABLED, AIJ journaling has not yet been enabled Test completed successfully Running the interpreter test. Test completed successfully Running the BASIC precompiler test. Test completed successfully Running the COBOL precompiler test. Test completed successfully Running the RDML/C preprocessor test. %LINK-W-NUDFSYMS, 1 undefined symbol: %LINK-I-UDFSYM, STRLEN %LINK-W-USEUNDEF, undefined symbol STRLEN referenced in psect $CODE offset %X000000D4 in module RDML_VC_SUPPORT file SYS$COMMON:[SYSLIB]RDMLRTL51.OLB;1 %LINK-W-USEUNDEF, undefined symbol STRLEN referenced in psect $CODE offset %X000002BF in module RDML_VC_SUPPORT file SYS$COMMON:[SYSLIB]RDMLRTL51.OLB;1 %LINK-W-USEUNDEF, undefined symbol STRLEN referenced in psect $CODE offset %X0000048F in module RDML_VC_SUPPORT file SYS$COMMON:[SYSLIB]RDMLRTL51.OLB;1 %SYSTEM-F-ACCVIO, access violation, reason mask=00, virtual address=00000000, PC =00000B3C, PSL=03C00000 Improperly handled condition, image exit forced. Signal arguments Stack contents Number = 00000005 0000025E Name = 0000000C 20202020 00000000 00000001 00000000 00000004 00000B3C 20202020 03C00000 00000001 00000000 7FE58188 00000000 00001418 Register dump R0 = 7FE5819C R1 = 00000000 R2 = 00000290 R3 = 00000000 R4 = 7FE581A0 R5 = 00000004 R6 = 00000000 R7 = 00000000 R8 = 0000025E R9 = 000002D4 R10= 00000000 R11= 00000001 AP = 7FE580C4 FP = 7FE58084 SP = 7FE58100 PC = 00000B3C PSL= 03C00000 Restoring the SQL database. Restore completed successfully Running the Interactive SQL test. Test completed successfully Running the Dynamic SQL test. Test completed successfully Running the COBOL precompiler test. Test completed successfully Running the PL/I precompiler test. Test completed successfully Running the C precompiler test. ***** C precompiler test failed ***** See SYS$UPDATE:SQL$C.LOG for errors. Running the Ada precompiler test. Test completed successfully Running the PASCAL precompiler test. Test completed successfully Running the SQL MODULE LANGUAGE test. Test completed successfully Running the SQL MODULE LANGUAGE test for C. ***** SQL MODULE LANGUAGE test for C failed ***** See SYS$UPDATE:SQL$MODC.LOG for errors. 3 tests failed. ////////////////////////////////////// DEC Rdb V5.1-0 Development IVP FAILED ////////////////////////////////////// IVP completed for: DEC Rdb V5.1-0 Installation of DECRDBMV V5.1 completed at hh:mm Adding history entry in VMI$ROOT:[SYSUPD]VMSINSTAL.HISTORY VMSINSTAL procedure done at hh:mm $ _
Si se ha detenido TCP/IP se puede volver a inciar con
$ @sys$startup:tcpip$startup
La instalación ha concluido, se procede a configurar el equipo para que la base de datos arranque de forma atomática. Se editan tres archivos
$ set term/vt100 $ edit sys$manager:systartup_vms.com
Se pulsa [AvPág] hasta el final, y se añada la línea en rojo
$!$ @SYS$STARTUP:VPM$STARTUP.COM $! $! $! Remove the comment delimiter ($!) from the following line to start $! RPC services. $! $!$ @SYS$STARTUP:DCE$RPC_STARTUP.COM $! $ MOUNT/SYSTEM DUA1 DATA1 $ @SYS$MANAGER:STARTNET $ @SYS$STARTUP:TCPIP$STARTUP $ @SYS$STARTUP:LAT$STARTUP $ @SYS$STARTUP:RMONSTART51 $ @SYS$LIBRARY:RDBVMS_SETVER 5.1 /SYSTEM $ DEFINE/SYSTEM/NOLOG "LNK$LIBRARY" "SQL$USER" $ @SYS$STARTUP:CCXX$STARTUP $ @SYS$STARTUP:PASCAL$STARTUP $ @SYS$STARTUP:ADA$STARTUP $ @SYS$STARTUP:LISP$STARTUP $ DEFINE/SYSTEM/NOLOG "MOD$LIBRARY" "SYS$SYSROOT:[SYSLIB.MODULA]" $ DEFINE/SYSTEM/NOLOG "LNK$LIBRARY_1" "SYS$LIBRARY:MODULA" Buffer: SYSTARTUP_VMS.COM | Write | Insert | Forward 418 lines read from file SYS$COMMON:[SYSMGR]SYSTARTUP_VMS.COM;9
Se pulsa [Ctrl+Z] para salir y guardar y se continúa con el siguiente archivo.
Nota: En caso de instalar más productos que requieran la inclusión de su biblioteca para el linker por medio de la variable LNK$LIBRARY
(que solo permite definir una única biblioteca), se pueden añadir las variables adicionales LNK$LIBRARY_1
, LNK$LIBRARY_2
, …, LNK$LIBRARY_999
, teneiendo en cuenta que deben ir en orden (comenzando con la variable sin ordinal) sin saltar ninguna.
$ edit sys$manager:syshutdwn.com
Se añaden las líneas en rojo
$! This is an empty site-specific system shutdown procedure. $! If you have specific system shutdown requirements at your $! site, you should place the required commands in this procedure. $ $ @SYS$STARTUP:RMONSTOP51 $ EXIT [End of file] Buffer: SYSHUTDWN.COM | Write | Insert | Forward 3 lines read from file SYS$COMMON:[SYSMGR]SYSHUTDWN.COM;1
Se guarda con [Ctrl+Z] y se pasa al siguiente archivo.
$ edit sys$manager:sylogin.com
Se añaden la línea en rojo
$ $! $ TT_NOINQUIR = "|TW|RT|WT|TK|WS|PY|FT|TN|" $! $ TT_DEVNAME = F$GETDVI("TT","TT_PHYDEVNAM") $! $ TT_DEVPREFIX = F$EXTRACT(1,2,TT_DEVNAME) $! $ IF F$LOCATE("|''TT_DEVPREFIX'|",TT_NOINQUIR) .eq. F$Length(TT_NOINQUIR) $! $ THEN $! $ ! Determine what sort of terminal this is, and avoid resetting $! $ ! the user's default display size settings in the process... $! $ tt_page = f$getdvi("TT","TT_PAGE") $! $ devbufsiz = f$getdvi("TT","DEVBUFSIZ") $! $ SET TERMINAL/INQUIRE/PAGE='tt_page'/WIDTH='devbufsiz' $! $ EndIf $ SET TERMINAL /VT100 /SPEED:9600 $ SET PROMPT=- "''F$GETSYI("NODENAME")'::''F$EDIT(F$GETJPI("","USERNAME"),"TRIM")'$ " $ $ @SYS$LIBRARY:RDBVMS_SETVER RESET $ $! Remove the comments from the following command to support the Wollongong $! PathWay specific login procedure. $! @TWG$TCP:[NETDIST.MISC]SYSLOGIN.COM Buffer: SYLOGIN.COM | Write | Insert | Forward 162 lines read from file SYS$COMMON:[SYSMGR]SYLOGIN.COM;9
Se reinicia el sistema y ya está listo. Ahora se puede probar el ejemplo como se cita en "Base de Datos VAX Rdb/VMS".