home *** CD-ROM | disk | FTP | other *** search
- #-------------------------------------------------------------------------
- #
- # FILE
- # INSTALL.ORI
- # V2 installation script language interpreter file.
- #
- # DESCRIPTION
- # Installation file for the SQL*Forms disk.
- #
- # MODIFIED
- # MRMILLER
- # Greg Costanzo 12/23/91 - Added comments and NLS support
- # Alyn Kelley 01/28/93 - NLS18
- #-------------------------------------------------------------------------
- # Generate symbols for Disk Volume label and Jacket label for disks.
- #-------------------------------------------------------------------------
- .LABELGEN
- u
- V60 FORM %u
- SQL*Forms Disk %u
-
- .FILES -NOCOPY
- INSTALL.ORI 27258
- README.TXT 31753
-
- # **********************************************************************
- # Initialize variables ...
- # **********************************************************************
- .DISK_USAGE=74
- .PRODUCT_NAME=SQL*Forms
- .PRODUCT_VERSION=3.0.16.11.3
- .PRODUCT_NUMBER=5
- .UTIL_REQUIRED=1.0.10.0.1
-
- # **********************************************************************
- # Check the Oracle register for required product versions ...
- # **********************************************************************
- .CHECKREG %PRODUCT_NUMBER%
- PRODUCT
- VERSION
-
- .CHECKREG 2
- UTILS
- UTIL_VERSION
-
- .IF (%UTILS%=="" || %UTIL_VERSION% < %UTIL_REQUIRED%)
- .MESSAGE
- %WARNING%
-
- You have not installed Tools Utilities %UTIL_REQUIRED%.
- Please install Tools Utilities %UTIL_REQUIRED% or later
- and then install %PRODUCT_NAME%.
-
- .PAUSE
- .EXIT
- .ENDIF
-
- .CHECKREG 1
- RDBMS
- RDBMS_VERSION
-
- # **********************************************************************
- # Find out how much space there is on %ORACLE_DISK%
- # **********************************************************************
- .<CHECK_INST>
-
- .IF (%INSTALL_CHECKED%!=1)
- .IF (%PRODUCT%=="")
- .IF (%DISK_USAGE% > %FREE_SPACE%)
-
- .SELECTPROMPT
- USER_RESP
- There is insufficient disk space on drive %ORACLE_DISK%: to
- install this product. Would you like to attempt to install anyway?
- <DISK_SPACE_HELP>
- 1 No
- 2 Yes
-
- .IF (%USER_RESP%==1 || %USER_RESP%==999)
- .EXIT
- .ENDIF
- .ENDIF
-
- .ELSE
- .SELECTPROMPT
- USER_RESP
- %PRODUCT_NAME% has already been installed.
- Would you like to reinstall it?
- <REINSTALL_HELP>
- 1 No
- 2 Yes
-
- .IF (%USER_RESP%==1 || %USER_RESP%==999)
- .EXIT
- .ENDIF
- .ENDIF
- .ENDIF
-
- # **********************************************************************
- # Find out if the user wants to install application building software
- # **********************************************************************
- .<APPBUILDL>
- .SELECTPROMPT
- APPLIC
- This procedure installs SQL*Forms, which can be used to both generate
- and utilize sophisticated data entry forms. Operators only using
- existing forms for data entry/query do not require all SQL*Forms
- software. If you plan to design forms and develop applications, you
- will need to install SQL*Forms application-building software.
- <HELP1>
- 1 Install SQL*Forms application-building software
- 2 Do NOT install application-building software
-
- .IF (%APPLIC%==999)
- .IF (%INSTALL_CHECKED%!=1 && (%DISK_USAGE%>%FREE_SPACE% || %PRODUCT%!=""))
- .GOTO <CHECK_INST>
- .ELSE
- .EXIT
- .ENDIF
- .ENDIF
-
- # **********************************************************************
- # Find out if the user wants userexit support installed
- # **********************************************************************
- .<RUNEXITL>
- .IF (%APPLIC%==1)
- .SELECTPROMPT
- RUNEXIT
- Included with the application-building software are files necessary
- to build a customized RUNFORM.EXE containing user exits, which may
- be written in C, FORTRAN or COBOL.
- <RUNEXITHELP>
- 1 Install support for user exits
- 2 Do not install user exit support
-
- .IF (%RUNEXIT%==999)
- .GOTO <APPBUILDL>
- .ENDIF
-
- # **********************************************************************
- # Find out if this is a LAN Install, if so skip building tables
- # **********************************************************************
-
- .CLEARSCREEN
-
- .IF (%LAN_INST%=="YES")
- .MESSAGE
- %NORMAL% You are installing your Oracle Tools onto a LAN. This install
- will copy the FORMINS.BAT file to the %ORACLE_HOME%\BIN directory. This
- file builds the %PRODUCT_NAME% tables in the database. You will
- need to set the ORACLE_HOME parameter in your environment and the
- local parameter in CONFIG.ORA before running this file.
-
- .PAUSE
-
- .APPLTABS=0
- .GOTO <COPY>
- .ENDIF
-
- # **********************************************************************
- # Find out if the user wants to build SQL*Forms tables in the database
- # **********************************************************************
- .<APPLTABSL>
- .APPLTABS=0
- .IF (%RDBMS%!="" && %RDBMS_VERSION%>=6)
- .CLEARSCREEN
- .MESSAGE
- %NORMAL% SQL*Forms requires that special tables be added to your database
- if you will be designing forms and developing applications. If
- you have previously installed SQL*Forms and these tables already
- exist in your database, they may need to be upgraded to work with
- this version of SQL*Forms.
-
- If you are installing SQL*Forms with a local ORACLE database, and
- the local ORACLE database has already been installed on this
- machine, this installation process can automatically add or
- modify these tables as necessary.
-
- If you would like to add these tables yourself, or if you are
- accessing a remote ORACLE database using SQL*Net, please see the
- section on SQL*Forms in the User's Guide.
-
- .PAUSE
- .SELECTPROMPT
- APPLTABS
- Do you want this installation procedure to automatically update or
- add the tables to your database?
- <APPLTABSHELP>
- 1 Update / Add the tables to the database
- 2 Do NOT add the tables to the database
-
- .IF (%APPLTABS%==999)
- .GOTO <RUNEXITL>
- .ENDIF
- .ENDIF
- .ENDIF
-
- # **********************************************************************
- # Abbreviate the LANGUAGE parameter and copy appropriate message file(s)
- # **********************************************************************
- .<COPY>
- .LANG_ABBR
- %LANGUAGE%
- ABBREVIATION
-
- .CLEARSCREEN
-
- .MESSAGE
- %NORMAL% Copying Message Files into %ORACLE_HOME%\DBS...
-
- .FILES -NOCOPY -COMPRESS
- IACUS.MSB 6144
- IACD.MSB 6656
- IACDK.MSB 6144
- IACE.MSB 6144
- IACF.MSB 6656
- IACI.MSB 6656
- IACN.MSB 6144
- IACNL.MSB 6144
- IACS.MSB 6144
- IACSF.MSB 6144
- IACCS.MSB 6144
- IACEL.MSB 6656
- IACHU.MSB 6656
- IACPL.MSB 6656
- IACPT.MSB 6656
- IACPTB.MSB 6656
- IACRU.MSB 6144
- IACSK.MSB 6144
- IACTR.MSB 6144
- IAGUS.MSB 9216
- IAGD.MSB 10240
- IAGDK.MSB 10240
- IAGE.MSB 10752
- IAGF.MSB 10752
- IAGI.MSB 10240
- IAGN.MSB 9728
- IAGNL.MSB 10240
- IAGS.MSB 9216
- IAGSF.MSB 9728
- IAGCS.MSB 10240
- IAGEL.MSB 10752
- IAGHU.MSB 10240
- IAGPL.MSB 10240
- IAGPT.MSB 10752
- IAGPTB.MSB 10240
- IAGRU.MSB 10240
- IAGSK.MSB 9728
- IAGTR.MSB 9728
-
- .FILES -VARIABLE -COMPRESS
- IAC%ABBREVIATION%.MSB 0 %ORACLE_HOME%\DBS\IAC%ABBREVIATION%.MSB
- IAG%ABBREVIATION%.MSB 0 %ORACLE_HOME%\DBS\IAG%ABBREVIATION%.MSB
-
-
- .IF (%APPLIC%==1)
- # **********************************************************************
- # Copy appropriate message file for Designer
- # **********************************************************************
- .FILES -NOCOPY -COMPRESS
- IADUS.MSB 28160
- IADD.MSB 32768
- IADDK.MSB 29184
- IADE.MSB 31744
- IADF.MSB 32768
- IADI.MSB 31744
- IADN.MSB 28160
- IADNL.MSB 31232
- IADS.MSB 28672
- IADSF.MSB 27648
- IADCS.MSB 29696
- IADEL.MSB 32256
- IADHU.MSB 29696
- IADPL.MSB 30720
- IADPT.MSB 31744
- IADPTB.MSB 30720
- IADRU.MSB 31232
- IADSK.MSB 29184
- IADTR.MSB 28160
-
- .FILES -VARIABLE -COMPRESS
- IAD%ABBREVIATION%.MSB 0 %ORACLE_HOME%\DBS\IAD%ABBREVIATION%.MSB
-
- .ENDIF
-
- # **********************************************************************
- # Begin copying and decompressing the distribution files ...
- # **********************************************************************
-
- .MESSAGE
- %NORMAL% Copying SQL*Forms protected-mode executables into %ORACLE_HOME%\PBIN...
-
- .FILES -COMPRESS
- CONVERT.PXE 407915 %ORACLE_HOME%\PBIN\CONVERT.PXE
- GENERATE.PXE 1374125 %ORACLE_HOME%\PBIN\GENERATE.PXE
- RUNFORM.PXE 1372263 %ORACLE_HOME%\PBIN\RUNFORM.PXE
-
- # **********************************************************************
- # Copy PLOADER.COM for all .PXE files
- # **********************************************************************
- .SYSCALL -QUIET
- COPY %ORACLE_HOME%\PBIN\PLOADR.COM %ORACLE_HOME%\PBIN\CONVERT.COM >NUL
-
- .SYSCALL -QUIET
- COPY %ORACLE_HOME%\PBIN\PLOADR.COM %ORACLE_HOME%\PBIN\GENERATE.COM >NUL
-
- .SYSCALL -QUIET
- COPY %ORACLE_HOME%\PBIN\PLOADR.COM %ORACLE_HOME%\PBIN\RUNFORM.COM >NUL
-
- .IF (%APPLIC%==1)
-
- .FILES -COMPRESS
- SQLFORMS.PXE 2337985 %ORACLE_HOME%\PBIN\SQLFORMS.PXE
-
- .SYSCALL -QUIET
- COPY %ORACLE_HOME%\PBIN\PLOADR.COM %ORACLE_HOME%\PBIN\SQLFORMS.COM >NUL
-
- .ENDIF
-
- .MESSAGE
- %NORMAL% Copying Demo forms into %ORACLE_HOME%\DBS...
-
- .FILES -COMPRESS
- CHAPTER3.INP 31869 %ORACLE_HOME%\DBS\CHAPTER3.INP
- CHAPTER4.INP 36233 %ORACLE_HOME%\DBS\CHAPTER4.INP
- CHAPTER5.INP 36548 %ORACLE_HOME%\DBS\CHAPTER5.INP
- CHAPTER6.INP 40516 %ORACLE_HOME%\DBS\CHAPTER6.INP
- ORDER.INP 48925 %ORACLE_HOME%\DBS\ORDER.INP
- ORDER.FRM 24012 %ORACLE_HOME%\DBS\ORDER.FRM
- SAMPLE.INP 11087 %ORACLE_HOME%\DBS\SAMPLE.INP
- SAMPLE.FRM 4257 %ORACLE_HOME%\DBS\SAMPLE.FRM
-
- .MESSAGE
- %NORMAL% Copying SQL scripts into %ORACLE_HOME%\DBS...
-
- .FILES -COMPRESS
- IADDROP.SQL 1356 %ORACLE_HOME%\DBS\IADDROP.SQL
- IADGRANT.SQL 2408 %ORACLE_HOME%\DBS\IADGRANT.SQL
- IADINDEX.SQL 1948 %ORACLE_HOME%\DBS\IADINDEX.SQL
- IADTABLE.SQL 5496 %ORACLE_HOME%\DBS\IADTABLE.SQL
- IADVIEW.SQL 4491 %ORACLE_HOME%\DBS\IADVIEW.SQL
- IADUPG.SQL 2661 %ORACLE_HOME%\DBS\IADUPG.SQL
-
- # **********************************************************************
- # Find out if this is a LAN Install, write LAN .BAT file
- # **********************************************************************
- .IF (%LAN_INST%=="YES")
-
- .WRITEFILE
- %ORACLE_HOME%\BIN\FORMINS.BAT
- @ECHO OFF
- ECHO
- rem
- rem Usage: FORMINS SYSTEM SYSTEM_PASSWORD
- rem
- IF NOT .%%2 == . GOTO FORMINS
- ECHO Usage: FORMINS SYSTEM SYSTEM_Password
- GOTO EXIT
- :FORMINS
- IF NOT EXIST %%ORACLE_HOME%%\DBS\IADTABLE.SQL GOTO ABORT
- IF NOT EXIST %%ORACLE_HOME%%\DBS\IADINDEX.SQL GOTO ABORT
- IF NOT EXIST %%ORACLE_HOME%%\DBS\IADVIEW.SQL GOTO ABORT
- IF NOT EXIST %%ORACLE_HOME%%\DBS\IADGRANT.SQL GOTO ABORT
- ECHO
- ECHO Loading the SQL*Forms extended data dictionary. This will take
- ECHO a few minutes. Please wait...
- ECHO
-
- INSTLOAD %%1/%%2 %%ORACLE_HOME%%\DBS\IADTABLE.SQL %%ORACLE_HOME%%\DBS\IADTABLE.LOG
- INSTLOAD %%1/%%2 %%ORACLE_HOME%%\DBS\IADINDEX.SQL %%ORACLE_HOME%%\DBS\IADINDEX.LOG
- INSTLOAD %%1/%%2 %%ORACLE_HOME%%\DBS\IADVIEW.SQL %%ORACLE_HOME%%\DBS\IADVIEW.LOG
- INSTLOAD %%1/%%2 %%ORACLE_HOME%%\DBS\IADGRANT.SQL %%ORACLE_HOME%%\DBS\IADGRANT.LOG
- IF NOT ERRORLEVEL 1 GOTO EXIT
- ECHO
- ECHO Error - Could not run one of the following files:
- ECHO
- ECHO %%ORACLE_HOME%%\DBS\IADTABLE.SQL
- ECHO %%ORACLE_HOME%%\DBS\IADINDEX.SQL
- ECHO %%ORACLE_HOME%%\DBS\IADVIEW.SQL
- ECHO %%ORACLE_HOME%%\DBS\IADGRANT.SQL
- ECHO
- ECHO See the related %%ORACLE_HOME%%\DBS\IAD*.LOG files for more info.
- GOTO EXIT
-
- :ABORT
- ECHO Unable to access one or more of the following files:
- ECHO
- ECHO %%ORACLE_HOME%%\DBS\IADTABLE.SQL
- ECHO %%ORACLE_HOME%%\DBS\IADINDEX.SQL
- ECHO %%ORACLE_HOME%%\DBS\IADVIEW.SQL
- ECHO %%ORACLE_HOME%%\DBS\IADGRANT.SQL
- ECHO
- ECHO Terminating procedure.
- ECHO
- :EXIT
- .GOTO <DESIGNER>
- .ENDIF
-
- # **********************************************************************
- # Create BAT files for non-LAN install
- # **********************************************************************
- .WRITEFILE
- %ORACLE_HOME%\BIN\FORMINS.BAT
- @ECHO OFF
- ECHO
- rem
- rem Usage: FORMINS SYSTEM SYSTEM_PASSWORD
- rem
- IF NOT .%%2 == . GOTO FORMINS
- ECHO Usage: FORMINS SYSTEM SYSTEM_Password
- GOTO EXIT
- :FORMINS
- IF NOT EXIST %ORACLE_HOME%\DBS\IADTABLE.SQL GOTO ABORT
- IF NOT EXIST %ORACLE_HOME%\DBS\IADINDEX.SQL GOTO ABORT
- IF NOT EXIST %ORACLE_HOME%\DBS\IADVIEW.SQL GOTO ABORT
- IF NOT EXIST %ORACLE_HOME%\DBS\IADGRANT.SQL GOTO ABORT
- ECHO
- ECHO Loading the SQL*Forms extended data dictionary. This will take
- ECHO a few minutes. Please wait...
- ECHO
-
- INSTLOAD %%1/%%2 %ORACLE_HOME%\DBS\IADTABLE.SQL %ORACLE_HOME%\DBS\IADTABLE.LOG
- INSTLOAD %%1/%%2 %ORACLE_HOME%\DBS\IADINDEX.SQL %ORACLE_HOME%\DBS\IADINDEX.LOG
- INSTLOAD %%1/%%2 %ORACLE_HOME%\DBS\IADVIEW.SQL %ORACLE_HOME%\DBS\IADVIEW.LOG
- INSTLOAD %%1/%%2 %ORACLE_HOME%\DBS\IADGRANT.SQL %ORACLE_HOME%\DBS\IADGRANT.LOG
- IF NOT ERRORLEVEL 1 GOTO EXIT
- ECHO
- ECHO Error - Could not run one of the following files:
- ECHO
- ECHO %ORACLE_HOME%\DBS\IADTABLE.SQL
- ECHO %ORACLE_HOME%\DBS\IADINDEX.SQL
- ECHO %ORACLE_HOME%\DBS\IADVIEW.SQL
- ECHO %ORACLE_HOME%\DBS\IADGRANT.SQL
- ECHO
- ECHO See the related %ORACLE_HOME%\DBS\IAD*.LOG files for more info.
- GOTO EXIT
-
- :ABORT
- ECHO Unable to access one or more of the following files:
- ECHO
- ECHO %ORACLE_HOME%\DBS\IADTABLE.SQL
- ECHO %ORACLE_HOME%\DBS\IADINDEX.SQL
- ECHO %ORACLE_HOME%\DBS\IADVIEW.SQL
- ECHO %ORACLE_HOME%\DBS\IADGRANT.SQL
- ECHO
- ECHO Terminating procedure.
- ECHO
-
- :EXIT
-
- # **********************************************************************
- # Copy designer software
- # **********************************************************************
-
- .<DESIGNER>
-
- .IF (%APPLIC%==1)
-
- # **********************************************************************
- # Copy .R file
- # **********************************************************************
- .FILES -NOCOPY -COMPRESS
- IADHLPUS.R 483328
-
- .IF (%ABBREVIATION%=="I")
- .GOTO <RCOPY1>
- .ELSE
- .IF (%ABBREVIATION%=="E")
- .GOTO <RCOPY1>
- .ELSE
- .IF (%ABBREVIATION%=="CS")
- .GOTO <RCOPY1>
- .ELSE
- .IF (%ABBREVIATION%=="EL")
- .GOTO <RCOPY1>
- .ELSE
- .IF (%ABBREVIATION%=="HU")
- .GOTO <RCOPY1>
- .ELSE
- .IF (%ABBREVIATION%=="PL")
- .GOTO <RCOPY1>
- .ELSE
- .IF (%ABBREVIATION%=="PT")
- .GOTO <RCOPY1>
- .ELSE
- .IF (%ABBREVIATION%=="RU")
- .GOTO <RCOPY1>
- .ELSE
- .IF (%ABBREVIATION%=="SK")
- .GOTO <RCOPY1>
- .ELSE
- .IF (%ABBREVIATION%=="TR")
- .GOTO <RCOPY1>
- .ELSE
- .GOTO <RCOPY2>
- .ENDIF
- .ENDIF
- .ENDIF
- .ENDIF
- .ENDIF
- .ENDIF
- .ENDIF
- .ENDIF
- .ENDIF
- .ENDIF
-
- .<RCOPY1>
- .FILES -VARIABLE -COMPRESS
- IADHLPUS.R 0 %ORACLE_HOME%\DBS\IADHLP%ABBREVIATION%.R
- .GOTO <USEREXITL>
-
- .<RCOPY2>
- .IF (%ABBREVIATION%=="PTB")
-
- .FILES -COMPRESS
- IADHLPUS.R 483328 %ORACLE_HOME%\DBS\IADHLPUS.R
-
- .ELSE
-
- .FILES -NOCOPY -COMPRESS
- IADHLPD.R 532480
- IADHLPDK.R 499712
- IADHLPF.R 557056
- IADHLPN.R 491520
- IADHLPNL.R 499712
- IADHLPS.R 483328
- IADHLPSF.R 499712
-
- .FILES -VARIABLE -COMPRESS
- IADHLP%ABBREVIATION%.R 0 %ORACLE_HOME%\DBS\IADHLP%ABBREVIATION%.R
-
- .ENDIF
- .<USEREXITL>
-
- # **********************************************************************
- # Create the directories for userexits if chosen by the user
- # **********************************************************************
-
- .IF (%RUNEXIT%==1)
-
- .MKDIR
- %ORACLE_HOME%\PRO
-
- .MKDIR
- %ORACLE_HOME%\PRO\C
-
- .MKDIR
- %ORACLE_HOME%\PRO\LIB
-
- # **********************************************************************
- # Begin copying and decompressing the userexit files ...
- # **********************************************************************
- .MESSAGE
- %NORMAL% Copying User Exit Software into %ORACLE_HOME%\PRO...
-
- .FILES -COMPRESS
- IAPCAL.H 787 %ORACLE_HOME%\PRO\C\IAPCAL.H
- IAPUXW.H 4938 %ORACLE_HOME%\PRO\C\IAPUXW.H
- IFUSER.H 2522 %ORACLE_HOME%\PRO\C\IFUSER.H
- IFPDMY.LIB 5147 %ORACLE_HOME%\PRO\LIB\IFPDMY.LIB
- IFPLIB.LIB 86983 %ORACLE_HOME%\PRO\LIB\IFPLIB.LIB
- IAPDRV.OBJ 294 %ORACLE_HOME%\PRO\LIB\IAPDRV.OBJ
- IFMDMF.OBJ 693 %ORACLE_HOME%\PRO\LIB\IFMDMF.OBJ
- IFPLUT.OBJ 952 %ORACLE_HOME%\PRO\LIB\IFPLUT.OBJ
- IAPSUPM.LIB 47139 %ORACLE_HOME%\PRO\LIB\IAPSUPM.LIB
-
- .ENDIF
-
- # **********************************************************************
- # **********************************************************************
- # Build application tables in the database if chosen by user
- # **********************************************************************
- # **********************************************************************
- .IF (%APPLTABS%==1)
- .CLEARSCREEN
- .DBA_FOUND=1
-
- # **********************************************************************
- # Find the DBA authorization password and start up the database
- # **********************************************************************
- .TRANSLATE
- %DBA_AUTHORIZATION%
- DBA_AUTHORIZATION
-
- .IF (%DBA_AUTHORIZATION%=="")
-
- .DBA_FOUND=0
- .<DBAL>
- .STRINGPROMPT QUIET 6 32
- DBA_AUTHORIZATION
- Please enter your DBA authorization password.
- <DBA_HELP>
-
- .IF (%DBA_AUTHORIZATION%==999)
- .GOTO <DBAL>
- .ENDIF
- .IF (%DBA_AUTHORIZATION%=="!TOOSHORT")
- .MESSAGE
- %WARNING%
- Error - password must be at least six characters.
-
- .GOTO <DBAL>
- .ENDIF
- .ENDIF
-
- .MESSAGE
- %HILITE%
- Starting up the database...
-
- .SYSCALL -QUIET
- SQLPME >NUL
-
- .SYSCALL -QUIET
- ORACLE6 >NUL
-
- .SPAWN
- SQLDBA STARTUP AUTHORIZATION=%DBA_AUTHORIZATION%
-
- .IF (%SPAWNRET%!=0)
- .MESSAGE
- %HILITE% Error - unable to start the ORACLE database using SQLDBA.
- SQL*Forms application tables will NOT be installed.
-
- .SYSCALL -QUIET
- REMPME >NUL
-
- .PAUSE
- .GOTO <INSTEND>
- .ENDIF
-
- # **********************************************************************
- # OK so far; make sure we have the right password for the SYSTEM account.
- # **********************************************************************
-
- .PASSWD=MANAGER
-
- .<LOOP>
- .SPAWN
- CHKALL -FORMS SYSTEM %PASSWD%
- .IF (%SPAWNRET%<0)
- .MESSAGE
- %HILITE% Error - unable to spawn CHKALL.
- SQL*Forms application tables will NOT be installed.
-
- .SYSCALL -QUIET
- REMPME >NUL
-
- .PAUSE
- .GOTO <INSTEND>
- .ENDIF
-
- # **********************************************************************
- # Since we don't have a logical AND, we figure out the flags manually...
- # **********************************************************************
- .IF (%SPAWNRET%>=128)
- .UNKNOWN_ERR=1
- .SPAWNRET=%SPAWNRET%-128
- .ELSE
- .UNKNOWN_ERR=0
- .ENDIF
-
- .IF (%SPAWNRET%>=64)
- .DB_DOWN=1
- .SPAWNRET=%SPAWNRET%-64
- .ELSE
- .DB_DOWN=0
- .ENDIF
-
- .IF (%SPAWNRET%>=32)
- .USAGE_ERR=1
- .SPAWNRET=%SPAWNRET%-32
- .ELSE
- .USAGE_ERR=0
- .ENDIF
-
- .IF (%SPAWNRET%>=16)
- .NEED_CAT=1
- .SPAWNRET=%SPAWNRET%-16
- .ELSE
- .NEED_CAT=0
- .ENDIF
-
- .IF (%SPAWNRET%>=8)
- .FORMS_23=1
- .SPAWNRET=%SPAWNRET%-8
- .ELSE
- .FORMS_23=0
- .ENDIF
-
- .IF (%SPAWNRET%>=4)
- .FULL=1
- .SPAWNRET=%SPAWNRET%-4
- .ELSE
- .FULL=0
- .ENDIF
-
- .IF (%SPAWNRET%>=2)
- .PARTIAL=1
- .SPAWNRET=%SPAWNRET%-2
- .ELSE
- .PARTIAL=0
- .ENDIF
-
- .IF (%SPAWNRET%==1)
- .USER_GOOD=1
- .ELSE
- .USER_GOOD=0
- .ENDIF
-
- # **********************************************************************
- # Now, evaluate codes
- # **********************************************************************
-
- .IF (%UNKNOWN_ERR%==1)
- .MESSAGE
- %WARNING% An unexpected error occurred.
- The SQL*Forms tables will NOT be installed.
- .PAUSE
- .GOTO <INSTEND>
- .ELSE
-
- .IF (%DB_DOWN%==1)
- .MESSAGE
- %WARNING% The database is down.
- The SQL*Forms tables will NOT be installed.
- .PAUSE
- .GOTO <INSTEND>
- .ELSE
-
- .IF (%USAGE_ERR%==1)
- .MESSAGE
- %WARNING% A usage error occurred.
- The SQL*Forms tables will NOT be installed.
- .PAUSE
- .GOTO <INSTEND>
- .ELSE
-
- .IF (%NEED_CAT%==1)
- .MESSAGE
- %WARNING% CATALOG.SQL has not been run. This file builds the ORACLE data
- dictionary views. The SQL*Forms tables will NOT be installed.
- .PAUSE
- .GOTO <INSTEND>
- .ELSE
-
- .IF (%FORMS_23%==1)
- .MESSAGE
- %WARNING% You have not installed SQL*Forms 3.0.
- The SQL*Forms tables will NOT be installed.
- .PAUSE
- .GOTO <INSTEND>
- .ENDIF
- .ENDIF
- .ENDIF
- .ENDIF
- .ENDIF
-
- .IF (%USER_GOOD%==0)
- .CLEARSCREEN
- .<PASSWDL>
- .STRINGPROMPT
- PASSWD
- Please enter the current password for the SYSTEM account.
- <PASSWDHELP>
- %PASSWD%
-
- .IF (%PASSWD%=="999")
- .GOTO <DBAL>
- .ENDIF
- .GOTO <LOOP>
- .ENDIF
-
- .CORRECT_PARTIAL=0
- .IF (%PARTIAL%==1)
- .SELECTPROMPT
- CORRECT_PARTIAL
- It appears that the SQL*Forms Designer tables have been partially
- installed in this database sometime in the past. Do you wish to
- remove these tables and install the complete set? Any applications
- stored in these tables will be lost.
- <PARTIAL_HELP>
- 1 Remove current tables and reinstall complete set
- 2 Leave tables as they are
-
- .IF (%CORRECT_PARTIAL%==1)
- .GOTO <FULL_JUMP>
- .ENDIF
- .IF (%CORRECT_PARTIAL%==2)
- .GOTO <INSTEND>
- .ENDIF
- .IF (%CORRECT_PARTIAL%==999)
- .GOTO <PASSWDL>
- .ENDIF
- .ELSE
-
- # **********************************************************************
- # Begin building the SQL*Forms tables in the database
- # **********************************************************************
- .IF (%FULL%==0)
- .<FULL_JUMP>
- .CLEARSCREEN
- .MESSAGE
- %NORMAL% Adding SQL*Forms Designer tables to the database...
-
- .SPAWN
- INSTLOAD SYSTEM/%PASSWD% %ORACLE_HOME%\DBS\IADTABLE.SQL %ORACLE_HOME%\DBS\IADTABLE.LOG
- .IF (%SPAWNRET%!=0)
- .GOTO <NOINTERACT>
- .ENDIF
-
- .SPAWN
- INSTLOAD SYSTEM/%PASSWD% %ORACLE_HOME%\DBS\IADINDEX.SQL %ORACLE_HOME%\DBS\IADINDEX.LOG
- .IF (%SPAWNRET%!=0)
- .GOTO <NOINTERACT>
- .ENDIF
-
- .SPAWN
- INSTLOAD SYSTEM/%PASSWD% %ORACLE_HOME%\DBS\IADVIEW.SQL %ORACLE_HOME%\DBS\IADVIEW.LOG
- .IF (%SPAWNRET%!=0)
- .GOTO <NOINTERACT>
- .ENDIF
-
- .SPAWN
- INSTLOAD SYSTEM/%PASSWD% %ORACLE_HOME%\DBS\IADGRANT.SQL %ORACLE_HOME%\DBS\IADGRANT.LOG
- .IF (%SPAWNRET%!=0)
- .GOTO <NOINTERACT>
- .ENDIF
-
- .ELSE
- .MESSAGE
- %NORMAL% SQL*Forms Designer tables present and verified.
-
- .ENDIF
- .ENDIF
- .GOTO <SHUTDOWN>
-
- .<NOINTERACT>
- .MESSAGE
- %WARNING% Cannot build SQL*Forms tables using INSTLOAD. SQL*Forms tables
- will need to be installed manually after this install.
-
- # **********************************************************************
- # Shut down the database
- # **********************************************************************
- .<SHUTDOWN>
- .MESSAGE
- %HILITE% Shutting down the database...
-
- .SYSCALL -QUIET
- SQLDBA SHUTDOWN AUTHORIZATION=%DBA_AUTHORIZATION% >NUL
-
- .ENDIF
-
- .SYSCALL
- REMPME >NUL
-
- .ENDIF
-
- # **********************************************************************
- # Update the registration information in register.ora
- # **********************************************************************
- .<INSTEND>
- .MESSAGE
- %NORMAL% Updating registration information...
-
- .REGISTERFILE
- %PRODUCT_NUMBER% %PRODUCT_NAME%
- %PRODUCT_VERSION%
- <DEINSTALL>
-
- .EXIT
-
- # **********************************************************************
- # Help panels ...
- # **********************************************************************
- .<DISK_SPACE_HELP>
- %PRODUCT_NAME% requires %DISK_USAGE%00K to install. There is
- %FREE_SPACE%00K free on drive %ORACLE_DISK%:. You may try to
- proceed anyway. Unless you plan to install only a portion of
- it or you are reinstalling after an unsuccessful installation,
- ORAINST will probably terminate abnormally.
-
- .<REINSTALL_HELP>
- %PRODUCT_NAME% has an entry in REGISTER.ORA, indicating that it has
- been installed previously. You may either abort this installation and
- save the version you have already installed, or you may reinstall and
- overwrite the existing version. Entry in REGISTER.ORA follows.
-
- Product: %PRODUCT%
- Version: %VERSION%
-
- .<HELP1>
- Certain files are required in order to create your own applications.
- If you answer Yes, this install will automatically copy the files
- needed to create both SQL*Forms applications and programs that can
- be called by those applications (user exits). It will also create
- the files you need to add the application generation tables to your
- ORACLE database.
-
- .<DBA_HELP>
- The install program needs to know the DBA authorization password for
- your local database in order to start ORACLE. This is a password at
- least six characters long which was chosen when the RDBMS was installed.
- If you do not know this password, please check with your ORACLE DBA.
-
- Note: Pressing <ESC> will NOT take you back to the previous prompt from
- this point.
-
- .<RUNEXITHELP>
- If you have a C compiler you can create programs which can be called by
- your SQL*Forms applications. You must install the corresponding ORACLE
- precompiler in order to compile and link these programs successfully.
- You can still build and run complex forms without the use of
- user exits.
-
- .<APPLTABSHELP>
- In order to design forms, you must have certain tables installed in your
- ORACLE database. If you have already installed a local database, this
- install can automatically create these tables (or update them if they are
- from an older version of SQL*Forms). Choose Yes if you would like these
- tables to be automatically created/updated. If you do not have a local
- database installed, or would like to create the tables at a later time,
- choose No.
-
- .<PASSWDHELP>
- This installation procedure needs to know the SYSTEM account's password
- in order to install the designer tables.
-
- .<PARTIAL_HELP>
- Some, but not all, of the tables required by the SQL*Forms designer are
- present in your database. The designer will not work unless all of them
- are present. If you wish to correct this, this install can remove the
- tables currently present and replace them with a full set. Any data in
- the tables will be lost. Alternatively, you can run FORMINS.CMD.
-
- # **********************************************************************
- # Update filelist.ora with filenames not found in .FILES commands
- # **********************************************************************
- .<DEINSTALL>
- %ORACLE_HOME%\PBIN\CONVERT.COM
- %ORACLE_HOME%\PBIN\GENERATE.COM
- %ORACLE_HOME%\PBIN\RUNFORM.COM
- %ORACLE_HOME%\PBIN\SQLFORMS.COM
- %ORACLE_HOME%\DBS\IADTABLE.LOG
- %ORACLE_HOME%\DBS\IADINDEX.LOG
- %ORACLE_HOME%\DBS\IADVIEW.LOG
- %ORACLE_HOME%\DBS\IADGRANT.LOG
-