home *** CD-ROM | disk | FTP | other *** search
- #-------------------------------------------------------------------------
- #
- # FILE
- # INSTALL.ORI
- # V2 installation script language interpreter file.
- #
- # DESCRIPTION
- # Installation file for the DOS SQL*ReportWriter disk.
- #
- # MODIFIED
- # Alyn Kelley 2-12-93 NLS18
- #-------------------------------------------------------------------------
- # Generate symbols for Disk Volume label and Jacket label for disks.
- #-------------------------------------------------------------------------
- .LABELGEN
- u
- V60 SRW%u
- SQL*ReportWriter Disk %u
-
- .FILES -NOCOPY
- INSTALL.ORI 29663
-
- # **********************************************************************
- # Initialize variables ...
- # **********************************************************************
- .DISK_USAGE=83
- .PRODUCT_NAME=SQL*ReportWriter
- .PRODUCT_VERSION=1.1.14.6.1
- .PRODUCT_NUMBER=13
- .UTIL_REQUIRED=1.0.10.0.1
- .PLUS_REQUIRED=3.0.12.1.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
-
- .CHECKREG 4
- PLUS
- PLUS_VERSION
-
- .IF (%PLUS%=="" || %PLUS_VERSION% < %PLUS_REQUIRED%)
- .MESSAGE
- %WARNING%
-
- You have not installed SQL*Plus %PLUS_REQUIRED%. Please install
- SQL*Plus %PLUS_REQUIRED% or later and then install %PRODUCT_NAME%.
-
- .PAUSE
- .EXIT
-
- .ENDIF
-
- # **********************************************************************
- # 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 example files
- # **********************************************************************
- .<BEGIN>
- .SELECTPROMPT
- USER_RESP
- This procedure installs SQL*ReportWriter, ORACLE's menu-driven report
- generation program, which allows you to create single- and multiple-
- query reports in many complex and versatile formats.
- The interactive help system of SQL*ReportWriter shows you how to
- create a number of example report types. The corresponding example
- report files are provided with the SQL*ReportWriter installation disks.
- Do you wish to copy the SQL*ReportWriter example files?
- <HELP1>
- 1 Yes
- 2 No
-
- .IF (%USER_RESP%==999)
- .IF (%INSTALL_CHECKED%!=1 && (%DISK_USAGE%>%FREE_SPACE% || %PRODUCT%!=""))
- .GOTO <CHECK_INST>
- .ELSE
- .EXIT
- .ENDIF
- .ELSE
- .SAMPLE=%USER_RESP%
- .ENDIF
-
- # **********************************************************************
- # Find out if the user wants userexit support installed
- # **********************************************************************
- .<RUNEXITL>
- .SELECTPROMPT
- RUNEXIT
- Included with the report-building software are files necessary
- to build a customized report containing user exits, which may
- be written in protected mode with C. It is not necessary to
- install this capability unless it is specifically desired. It
- is possible to create complex reports without the use of user
- exits. You will also need to install the User Exit Support disk
- in order to take advantage of this capability.
- <RUNEXITHELP>
- 1 Install user exit support
- 2 Do not install user exit support
-
- .IF (%RUNEXIT%==999)
- .GOTO <BEGIN>
- .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 SRWINS.CMD 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 <MONITOR>
- .ENDIF
-
- # **********************************************************************
- # Find out if the user wants to build SQL*Reportwriter tables in the database
- # **********************************************************************
- .<APPLTABSL>
- .APPLTABS=0
-
- .IF (%RDBMS%!="" && %RDBMS_VERSION%>=6 && %PLUS%!="")
- .CLEARSCREEN
- .MESSAGE
- %NORMAL% SQL*ReportWriter requires that special tables be added to your
- database if you will be designing reports and developing applications.
- If you have previously installed SQL*ReportWriter and these tables
- already exist in your database, they may need to be upgraded to work
- with this version of SQL*ReportWriter.
-
- If you are installing SQL*ReportWriter 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*ReportWriter 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
-
- # **********************************************************************
- # Find out which monitor type will be used
- # **********************************************************************
- .<MONITOR>
-
- .SELECTPROMPT
- USER_RESP
- Will you be using a Color or Monochrome monitor?
- <HELP2>
- 1 Color
- 2 Monochrome
-
- .IF (%USER_RESP%==999)
- .IF (%RDBMS%!="" && %RDBMS_VERSION%>=6 && %PLUS%!="")
- .GOTO <APPLTABSL>
- .ENDIF
- .GOTO <RUNEXITL>
- .ENDIF
-
- .MONITOR=%USER_RESP%
-
- .CLEARSCREEN
-
- # **********************************************************************
- # Create the required directories ...
- # **********************************************************************
- .MESSAGE
- %NORMAL% Creating directory %ORACLE_HOME%\SRW...
-
- .MKDIR
- %ORACLE_HOME%\SRW
-
- .MKDIR
- %ORACLE_HOME%\SRW\ADMIN
-
- .MKDIR
- %ORACLE_HOME%\SRW\TERMINAL
-
- .MKDIR
- %ORACLE_HOME%\SRW\PRINTERS
-
- # **********************************************************************
- # Begin copying and decompressing the distribution files ...
- # **********************************************************************
- .MESSAGE
- %NORMAL% Copying SQL*ReportWriter Executables into %ORACLE_HOME%\PBIN...
-
- .FILES -COMPRESS
- PRINTYPE.EXE 31615 %ORACLE_HOME%\BIN\PRINTYPE.EXE
- LOADREP.PXE 514197 %ORACLE_HOME%\PBIN\LOADREP.PXE
- PRINTDEF.PXE 471449 %ORACLE_HOME%\PBIN\PRINTDEF.PXE
- MOVEREP.PXE 387093 %ORACLE_HOME%\PBIN\MOVEREP.PXE
- TERMDEF.PXE 395983 %ORACLE_HOME%\PBIN\TERMDEF.PXE
- GENREP.PXE 650144 %ORACLE_HOME%\PBIN\GENREP.PXE
- RUNREP.PXE 794111 %ORACLE_HOME%\PBIN\RUNREP.PXE
- DUMPREP.PXE 524531 %ORACLE_HOME%\PBIN\DUMPREP.PXE
- SQLREP.PXE 1044289 %ORACLE_HOME%\PBIN\SQLREP.PXE
-
- # **********************************************************************
- # Copy PLOADER.COM for all .PXE files
- # **********************************************************************
- .SYSCALL -QUIET
- COPY %ORACLE_HOME%\PBIN\PLOADR.COM %ORACLE_HOME%\PBIN\DUMPREP.COM >NUL
-
- .SYSCALL -QUIET
- COPY %ORACLE_HOME%\PBIN\PLOADR.COM %ORACLE_HOME%\PBIN\GENREP.COM >NUL
-
- .SYSCALL -QUIET
- COPY %ORACLE_HOME%\PBIN\PLOADR.COM %ORACLE_HOME%\PBIN\LOADREP.COM >NUL
-
- .SYSCALL -QUIET
- COPY %ORACLE_HOME%\PBIN\PLOADR.COM %ORACLE_HOME%\PBIN\PRINTDEF.COM >NUL
-
- .SYSCALL -QUIET
- COPY %ORACLE_HOME%\PBIN\PLOADR.COM %ORACLE_HOME%\PBIN\RUNREP.COM >NUL
-
- .SYSCALL -QUIET
- COPY %ORACLE_HOME%\PBIN\PLOADR.COM %ORACLE_HOME%\PBIN\SQLREP.COM >NUL
-
- .SYSCALL -QUIET
- COPY %ORACLE_HOME%\PBIN\PLOADR.COM %ORACLE_HOME%\PBIN\MOVEREP.COM >NUL
-
- .SYSCALL -QUIET
- COPY %ORACLE_HOME%\PBIN\PLOADR.COM %ORACLE_HOME%\PBIN\TERMDEF.COM >NUL
-
- .MESSAGE
- %NORMAL% Copying message files into %ORACLE_HOME%\DBS...
-
- .FILES -COMPRESS
- SRWUS.MSB 28160 %ORACLE_HOME%\DBS\SRWUS.MSB
- SR.A 99328 %ORACLE_HOME%\SRW\ADMIN\SR.A
- SR.E 131072 %ORACLE_HOME%\SRW\ADMIN\SR.E
- SR.H 1704448 %ORACLE_HOME%\SRW\ADMIN\SR.H
-
- .MESSAGE
- %NORMAL% Copying SQL Scripts into %ORACLE_HOME%\SRW\ADMIN...
-
- .FILES -COMPRESS
- SRW_ICEN.SQL 15627 %ORACLE_HOME%\SRW\ADMIN\SRW_ICEN.SQL
- SRW_ILOC.SQL 12754 %ORACLE_HOME%\SRW\ADMIN\SRW_ILOC.SQL
- SRW_PUP.SQL 4354 %ORACLE_HOME%\SRW\ADMIN\SRW_PUP.SQL
- SRW_GRNT.SQL 1669 %ORACLE_HOME%\SRW\ADMIN\SRW_GRNT.SQL
- SRW_RVKE.SQL 1394 %ORACLE_HOME%\SRW\ADMIN\SRW_RVKE.SQL
- SRW_CMDN.SQL 5394 %ORACLE_HOME%\SRW\ADMIN\SRW_CMDN.SQL
- SRW_LMT.SQL 1306 %ORACLE_HOME%\SRW\ADMIN\SRW_LMT.SQL
- SRW_PRAC.SQL 929 %ORACLE_HOME%\SRW\ADMIN\SRW_PRAC.SQL
- SRW_DLOC.SQL 1072 %ORACLE_HOME%\SRW\ADMIN\SRW_DLOC.SQL
- SRW_DR10.SQL 800 %ORACLE_HOME%\SRW\ADMIN\SRW_DR10.SQL
- SRW_DROP.SQL 2300 %ORACLE_HOME%\SRW\ADMIN\SRW_DROP.SQL
- SRW_DCEN.SQL 1634 %ORACLE_HOME%\SRW\ADMIN\SRW_DCEN.SQL
- PUBLIC.TXT 15 %ORACLE_HOME%\SRW\ADMIN\PUBLIC.TXT
- SRW_UCEN.SQL 2019 %ORACLE_HOME%\SRW\ADMIN\SRW_UCEN.SQL
- SRW_ULOC.SQL 2040 %ORACLE_HOME%\SRW\ADMIN\SRW_ULOC.SQL
-
- .MESSAGE
- %NORMAL% Copying Terminal Definitions into %ORACLE_HOME%\SRW\TERMINAL...
-
- .FILES -COMPRESS
- PCTERM.KDF 4664 %ORACLE_HOME%\SRW\TERMINAL\PCTERM.KDF
- TERMDEF.DAT 19577 %ORACLE_HOME%\SRW\TERMINAL\TERMDEF.DAT
-
- .FILES
- PCCOLOR 1536 %ORACLE_HOME%\SRW\TERMINAL\PCCOLOR
- PCMONO 1536 %ORACLE_HOME%\SRW\TERMINAL\PCMONO
-
- .IF (%MONITOR%==1)
- .FILES
- PCCOLOR 1536 %ORACLE_HOME%\SRW\TERMINAL\PCTERM
- .ELSE
- .FILES
- PCMONO 1536 %ORACLE_HOME%\SRW\TERMINAL\PCTERM
- .ENDIF
-
- .MESSAGE
- %NORMAL% Copying Printer Definitions into %ORACLE_HOME%\SRW\PRINTERS...
-
- .FILES -COMPRESS
- DEFAULT 512 %ORACLE_HOME%\SRW\PRINTERS\DEFAULT
- WIDE 512 %ORACLE_HOME%\SRW\PRINTERS\WIDE
- WIDE180 512 %ORACLE_HOME%\SRW\PRINTERS\WIDE180
- PRINTDEF.DAT 7785 %ORACLE_HOME%\SRW\PRINTERS\PRINTDEF.DAT
- PSTSCRPT.DAT 4736 %ORACLE_HOME%\SRW\PRINTERS\PSTSCRPT.DAT
- FX286E 512 %ORACLE_HOME%\SRW\PRINTERS\FX286E
- FX86E 512 %ORACLE_HOME%\SRW\PRINTERS\FX86E
- HPINK 512 %ORACLE_HOME%\SRW\PRINTERS\HPINK
- HPLWIDE 512 %ORACLE_HOME%\SRW\PRINTERS\HPLWIDE
- HPLASER 512 %ORACLE_HOME%\SRW\PRINTERS\HPLASER
- IBMPRO 512 %ORACLE_HOME%\SRW\PRINTERS\IBMPRO
- LBP8II 512 %ORACLE_HOME%\SRW\PRINTERS\LBP8II
- OKI292 512 %ORACLE_HOME%\SRW\PRINTERS\OKI292
- OKIWIDE 512 %ORACLE_HOME%\SRW\PRINTERS\OKIWIDE
- PSPOR80 512 %ORACLE_HOME%\SRW\PRINTERS\PSPOR80
- PSPOR132 512 %ORACLE_HOME%\SRW\PRINTERS\PSPOR132
- PSLAN80 512 %ORACLE_HOME%\SRW\PRINTERS\PSLAN80
- PSLAN132 512 %ORACLE_HOME%\SRW\PRINTERS\PSLAN132
- PSLAN180 512 %ORACLE_HOME%\SRW\PRINTERS\PSLAN180
-
- # **********************************************************************
- # Find out if this is a LAN Install, write LAN .BAT file
- # **********************************************************************
- .IF (%LAN_INST%=="YES")
-
- .WRITEFILE
- %ORACLE_HOME%\BIN\SRWINS.BAT
- @ECHO OFF
- ECHO
- rem
- rem Usage: SRWINS SYSTEM SYSTEM_PASSWORD
- rem
- IF NOT .%%2 == . GOTO SRWINS
- ECHO Usage: SRWINS SYSTEM SYSTEM_Password
- GOTO EXIT
- :SRWINS
- IF NOT EXIST %%ORACLE_HOME%%\SRW\ADMIN\SRW_PUP.SQL GOTO ABORT
- IF NOT EXIST %%ORACLE_HOME%%\SRW\ADMIN\SRW_PRAC.SQL GOTO ABORT
- IF NOT EXIST %%ORACLE_HOME%%\SRW\ADMIN\SRW_ICEN.SQL GOTO ABORT
- IF NOT EXIST %%ORACLE_HOME%%\SRW\ADMIN\SRW_GRNT.SQL GOTO ABORT
- ECHO
- ECHO Loading the SQL*ReportWriter definition tables. This will take
- ECHO a few minutes. Please wait...
- ECHO
-
- INSTLOAD %%1/%%2 %%ORACLE_HOME%%\SRW\ADMIN\SRW_PUP.SQL %%ORACLE_HOME%%\SRW\ADMIN\SRW_PUP.LOG
- INSTLOAD %%1/%%2 %%ORACLE_HOME%%\SRW\ADMIN\SRW_PRAC.SQL %%ORACLE_HOME%%\SRW\ADMIN\SRW_PRAC.LOG
- INSTLOAD %%1/%%2 %%ORACLE_HOME%%\SRW\ADMIN\SRW_ICEN.SQL %%ORACLE_HOME%%\SRW\ADMIN\SRW_ICEN.LOG
- SQLPLUS %%1/%%2 @%%ORACLE_HOME%%\SRW\ADMIN\SRW_GRNT.SQL <%%ORACLE_HOME%%\SRW\ADMIN\PUBLIC.TXT >%ORACLE_HOME%\SRW\ADMIN\SRW_GRNT.LOG
- IF NOT ERRORLEVEL 1 GOTO ENDING
- ECHO
- ECHO Error - Could not run one of the following files:
- ECHO
- ECHO %%ORACLE_HOME%%\SRW\ADMIN\SRW_PUP.SQL
- ECHO %%ORACLE_HOME%%\SRW\ADMIN\SRW_PRAC.SQL
- ECHO %%ORACLE_HOME%%\SRW\ADMIN\SRW_ICEN.SQL
- ECHO %%ORACLE_HOME%%\SRW\ADMIN\SRW_GRNT.SQL
- ECHO
- ECHO See the related %%ORACLE_HOME%%\SRW\SRW_*.LOG files for more info.
- GOTO EXIT
-
- :ABORT
- ECHO Unable to access one or more of the following files:
- ECHO
- ECHO %%ORACLE_HOME%%\SRW\ADMIN\SRW_PUP.SQL
- ECHO %%ORACLE_HOME%%\SRW\ADMIN\SRW_PRAC.SQL
- ECHO %%ORACLE_HOME%%\SRW\ADMIN\SRW_ICEN.SQL
- ECHO %%ORACLE_HOME%%\SRW\ADMIN\SRW_GRNT.SQL
- ECHO
- ECHO Terminating procedure.
- ECHO
- GOTO EXIT
-
- :ENDING
- ECHO SQL*ReportWriter definition tables are successfully installed.
- ECHO Access to them has been granted to ALL users; use SRW_RVKE.SQL
- ECHO and SRW_GRNT.SQL to grant access only to specific users.
- :EXIT
-
- .GOTO <SAMPLEL>
- .ENDIF
-
- # **********************************************************************
- # Create BAT files for non-LAN install
- # **********************************************************************
- .WRITEFILE
- %ORACLE_HOME%\BIN\SRWINS.BAT
- @ECHO OFF
- ECHO
- rem
- rem Usage: SRWINS SYSTEM SYSTEM_PASSWORD
- rem
- IF NOT .%%2 == . GOTO SRWINS
- ECHO Usage: SRWINS SYSTEM SYSTEM_Password
- GOTO EXIT
- :SRWINS
- IF NOT EXIST %ORACLE_HOME%\SRW\ADMIN\SRW_PUP.SQL GOTO ABORT
- IF NOT EXIST %ORACLE_HOME%\SRW\ADMIN\SRW_PRAC.SQL GOTO ABORT
- IF NOT EXIST %ORACLE_HOME%\SRW\ADMIN\SRW_ICEN.SQL GOTO ABORT
- IF NOT EXIST %ORACLE_HOME%\SRW\ADMIN\SRW_GRNT.SQL GOTO ABORT
- ECHO
- ECHO Loading the SQL*ReportWriter definition tables. This will take
- ECHO a few minutes. Please wait...
- ECHO
-
- INSTLOAD %%1/%%2 %ORACLE_HOME%\SRW\ADMIN\SRW_PUP.SQL %ORACLE_HOME%\SRW\ADMIN\SRW_PUP.LOG
- INSTLOAD %%1/%%2 %ORACLE_HOME%\SRW\ADMIN\SRW_PRAC.SQL %ORACLE_HOME%\SRW\ADMIN\SRW_PRAC.LOG
- INSTLOAD %%1/%%2 %ORACLE_HOME%\SRW\ADMIN\SRW_ICEN.SQL %ORACLE_HOME%\SRW\ADMIN\SRW_ICEN.LOG
- SQLPLUS %%1/%%2 @%ORACLE_HOME%\SRW\ADMIN\SRW_GRNT.SQL <%ORACLE_HOME%\SRW\ADMIN\PUBLIC.TXT >%ORACLE_HOME%\SRW\ADMIN\SRW_GRNT.LOG
- IF NOT ERRORLEVEL 1 GOTO ENDING
- ECHO
- ECHO Error - Could not run one of the following files:
- ECHO
- ECHO %ORACLE_HOME%\SRW\ADMIN\SRW_PUP.SQL
- ECHO %ORACLE_HOME%\SRW\ADMIN\SRW_PRAC.SQL
- ECHO %ORACLE_HOME%\SRW\ADMIN\SRW_ICEN.SQL
- ECHO %ORACLE_HOME%\SRW\ADMIN\SRW_GRNT.SQL
- ECHO
- ECHO See the related %ORACLE_HOME%\SRW\SRW_*.LOG files for more info.
- GOTO EXIT
-
- :ABORT
- ECHO Unable to access one or more of the following files:
- ECHO
- ECHO %ORACLE_HOME%\SRW\ADMIN\SRW_PUP.SQL
- ECHO %ORACLE_HOME%\SRW\ADMIN\SRW_PRAC.SQL
- ECHO %ORACLE_HOME%\SRW\ADMIN\SRW_ICEN.SQL
- ECHO %ORACLE_HOME%\SRW\ADMIN\SRW_GRNT.SQL
- ECHO
- ECHO Terminating procedure.
- ECHO
- GOTO EXIT
-
- :ENDING
- ECHO SQL*ReportWriter definition tables are successfully installed.
- ECHO Access to them has been granted to ALL users; use SRW_RVKE.SQL
- ECHO and SRW_GRNT.SQL to grant access only to specific users.
- :EXIT
-
- # **********************************************************************
- # Copy and decompress Example Report files if chosen by the user
- # **********************************************************************
- .<SAMPLEL>
- .IF (%SAMPLE%==1)
- .MKDIR
- %ORACLE_HOME%\SRW\EXAMPLES
-
- .MESSAGE
- %NORMAL% Copying Example Reports into %ORACLE_HOME%\SRW\EXAMPLES...
-
- .FILES -COMPRESS
- ADVANCED.REX 239936 %ORACLE_HOME%\SRW\EXAMPLES\ADVANCED.REX
- ADVANCED.SQL 63436 %ORACLE_HOME%\SRW\EXAMPLES\ADVANCED.SQL
- EXAMPLE.REX 136283 %ORACLE_HOME%\SRW\EXAMPLES\EXAMPLE.REX
- SRW132.REX 66544 %ORACLE_HOME%\SRW\EXAMPLES\SRW132.REX
- SRW175.REX 67228 %ORACLE_HOME%\SRW\EXAMPLES\SRW175.REX
- SRW80.REX 65279 %ORACLE_HOME%\SRW\EXAMPLES\SRW80.REX
-
- .ENDIF
-
- # **********************************************************************
- # Create the directories for userexits if chosen by the user
- # **********************************************************************
- .IF (%RUNEXIT%==1)
- .MESSAGE
- %NORMAL% Copying User Exit software into %ORACLE_HOME%\PRO...
-
- .MKDIR
- %ORACLE_HOME%\PRO
-
- .MKDIR
- %ORACLE_HOME%\PRO\LIB
-
- .MKDIR
- %ORACLE_HOME%\PRO\EXIT
-
- # **********************************************************************
- # Begin copying and decompressing the userexit files ...
- # **********************************************************************
- .FILES -COMPRESS
- RUNMAI.OBJ 500 %ORACLE_HOME%\PRO\LIB\RUNMAI.OBJ
- ALLYRR.LIB 549537 %ORACLE_HOME%\PRO\LIB\ALLYRR.LIB
- ALLYDOS.LIB 22695 %ORACLE_HOME%\PRO\LIB\ALLYDOS.LIB
- RW6.LIB 26699 %ORACLE_HOME%\PRO\LIB\RW6.LIB
- RWRR.LIB 152225 %ORACLE_HOME%\PRO\LIB\RWRR.LIB
- RWCST1.OBJ 523 %ORACLE_HOME%\PRO\LIB\RWCST1.OBJ
- RWCSTF.OBJ 241 %ORACLE_HOME%\PRO\LIB\RWCSTF.OBJ
- RWXTBNUL.OBJ 260 %ORACLE_HOME%\PRO\LIB\RWXTBNUL.OBJ
- RWXTBDEF.OBJ 432 %ORACLE_HOME%\PRO\LIB\RWXTBDEF.OBJ
- RWXIT.LIB 18509 %ORACLE_HOME%\PRO\LIB\RWXIT.LIB
- RWXITF.LIB 17459 %ORACLE_HOME%\PRO\LIB\RWXITF.LIB
- CALLRUN.OBJ 566 %ORACLE_HOME%\PRO\LIB\CALLRUN.OBJ
-
- .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*ReportWriter 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 -SRW SYSTEM %PASSWD%
- .IF (%SPAWNRET%<0)
- .MESSAGE
- %HILITE% Error - unable to spawn CHKALL.
- SQL*ReportWriter 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*Reportwriter tables will NOT be installed.
- .PAUSE
- .GOTO <INSTEND>
- .ELSE
-
- .IF (%DB_DOWN%==1)
- .MESSAGE
- %WARNING% The database is down.
- The SQL*Reportwriter tables will NOT be installed.
- .PAUSE
- .GOTO <INSTEND>
- .ELSE
-
- .IF (%USAGE_ERR%==1)
- .MESSAGE
- %WARNING% A usage error occurred.
- The SQL*Reportwriter 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*Reportwriter 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*Reportwriter 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 <PASSWDL>
- .ENDIF
- .GOTO <LOOP>
- .ENDIF
-
- .CORRECT_PARTIAL=0
- .IF (%PARTIAL%==1)
- .SELECTPROMPT
- CORRECT_PARTIAL
- It appears that the SQL*ReportWriter 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*Reportwriter tables in the database
- # **********************************************************************
- .IF (%FULL%==0)
- .<FULL_JUMP>
- .CLEARSCREEN
- .MESSAGE
- %NORMAL% Adding SQL*ReportWriter Designer tables to the database...
-
- .SYSCALL
- %ORACLE_DISK%:
-
- .SYSCALL
- CD %ORACLE_HOME%\SRW\ADMIN
-
- .SPAWN
- INSTLOAD SYSTEM/%PASSWD% SRW_PUP.SQL SRW_PUP.LOG
- .IF (%SPAWNRET%!=0)
- .GOTO <NOINTERACT>
- .ENDIF
-
- .SPAWN
- INSTLOAD SYSTEM/%PASSWD% SRW_PRAC.SQL SRW_PRAC.LOG
- .IF (%SPAWNRET%!=0)
- .GOTO <NOINTERACT>
- .ENDIF
-
- .SPAWN
- INSTLOAD SYSTEM/%PASSWD% SRW_ICEN.SQL SRW_ICEN.LOG
- .IF (%SPAWNRET%!=0)
- .GOTO <NOINTERACT>
- .ENDIF
-
- .SYSCALL
- SQLPLUS SYSTEM/%PASSWD% @SRW_GRNT.SQL <PUBLIC.TXT >SRW_GRNT.LOG
-
- .ELSE
- .MESSAGE
- %NORMAL% SQL*ReportWriter Designer tables present and verified.
-
- .ENDIF
- .ENDIF
- .GOTO <SHUTDOWN>
-
- .<NOINTERACT>
- .MESSAGE
- %WARNING% Cannot build SQL*Reportwriter tables using INSTLOAD.
- SQL*Reportwriter 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
-
- .SYSCALL
- REMPME >NUL
-
- .ENDIF
-
- .<INSTEND>
- .<PRINT>
- .MESSAGE
- %NORMAL%
- SQL*ReportWriter must know which Oracle-certified printer it will
- be using. This selection process is administered by a utility
- called PRINTYPE. This utility will be run now to allow you to
- select your printer type during installation. You can also run
- this utility at any time from the command line by typing PRINTYPE.
-
- .PAUSE
-
- .SPAWN
- PRINTYPE %ORACLE_HOME%
-
- .IF (%SPAWNRET%!=0)
- .SYSCALL -QUIET
- COPY %ORACLE_HOME%\SRW\PRINTERS\DEFAULT %ORACLE_HOME%\SRW\PRINTERS\DFLT >NUL
- .ENDIF
-
- # **********************************************************************
- # Update the registration information in register.ora
- # **********************************************************************
- .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>
- Choosing Yes will cause this install to copy sample reports into
- %ORACLE_HOME%\SRW\EXAMPLES.
-
- .<HELP2>
- The monitor driver you choose will be copied to
- %ORACLE_HOME%\SRW\TERMINAL\PCTERM.
-
- .<RUNEXITHELP>
- If you have a C compiler you can create programs which can be called by
- your SQL*ReportWriter applications. You must install Pro*C in order to
- compile and link these programs successfully. You can still build and
- run complex reports without the use of user exits.
-
- .<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.
-
- .<APPLTABSHELP>
- In order to design reports, 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*ReportWriter). 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*ReportWriter 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 SRWINS.BAT.
-
- # **********************************************************************
- # Update filelist.ora with filenames not found in .FILES commands
- # **********************************************************************
- .<DEINSTALL>
- %ORACLE_HOME%\PBIN\DUMPREP.COM
- %ORACLE_HOME%\PBIN\GENREP.COM
- %ORACLE_HOME%\PBIN\LOADREP.COM
- %ORACLE_HOME%\PBIN\PRINTDEF.COM
- %ORACLE_HOME%\PBIN\RUNREP.COM
- %ORACLE_HOME%\PBIN\SQLREP.COM
- %ORACLE_HOME%\PBIN\MOVEREP.COM
- %ORACLE_HOME%\PBIN\TERMDEF.COM
- %ORACLE_HOME%\SRW\PRINTERS\DFLT
- %ORACLE_HOME%\SRW\ADMIN\SRW_PUP.LOG
- %ORACLE_HOME%\SRW\ADMIN\SRW_PRAC.LOG
- %ORACLE_HOME%\SRW\ADMIN\SRW_ICEN.LOG
- %ORACLE_HOME%\SRW\ADMIN\SRW_GRNT.LOG
-
-