home *** CD-ROM | disk | FTP | other *** search
- #-------------------------------------------------------------------------
- #
- # FILE
- # SYSINIT.ORI
- # V6.0 installation environment initialization file.
- #
- # DESCRIPTION
- # This file initializes the environment for the installation process.
- # It is always read first by ORAINST.
- #
- # OWNER
- # Tim Kelley
- #
- # CREATION DATE
- # 19-JUL-89
- #
- # CURRENT VERSION
- # 13-SEP-90
- #
- #-------------------------------------------------------------------------
-
- # if we're coming back from ORAINST1, don't do anything
-
- .IF (%CHAIN%==1)
- .EXIT
- .ENDIF
-
- # first check the environment
-
- .RDBMS_VERSION=6
- .ENVIRON=0
- .RESULT=0
- .FLOPPY=YES
-
- .TRANSLATE
- %CONFIG%
- CONFIG
-
- .TRANSLATE
- %ORACLE_HOME%
- ORACLE_HOME
-
- .ACCESS
- %ORACLE_HOME%\PBIN
-
- .RESULT=%RESULT%+%ACCESSRET%
-
- .ACCESS
- %ORACLE_HOME%\BIN
-
- .RESULT=%RESULT%+%ACCESSRET%
-
- .ACCESS
- %ORACLE_HOME%\DBS
-
- .RESULT=%RESULT%+%ACCESSRET%
-
- .ACCESS
- %CONFIG%
-
- .RESULT=%RESULT%+%ACCESSRET%
-
- # is everything there?
-
- .IF (%CONFIG%!="" && %ORACLE_HOME%!="\ORACLE5" && %RESULT%==4)
- .ENVIRON=1
- .ENDIF
-
- # if we're not executing ORAINST from a floppy drive, set a default
- # %SOURCE_DISK%
-
- .IF (%SOURCE_DISK%=="ZZ")
- .FLOPPY=NO
- .SOURCE_DISK=A
- .ENDIF
-
- # if the environment is bad and we're not executing from a floppy drive,
- # it's time to quit
-
- .IF (%ENVIRON%==0 && %FLOPPY%=="NO")
- .MESSAGE
- %HILITE%
-
- The ORACLE installation files need to be updated. To do this, you
- must run ORAINST from your Installation diskette. Please re-execute
- ORAINST from your floppy drive now by typing "A:ORAINST",
- substituting the appropriate drive letter for A.
-
- .EXIT
- .ENDIF
-
- # if we couldn't find %ORACLE_HOME%, build a default
-
- .IF (%ORACLE_HOME%=="\ORACLE5")
- .ORACLE_HOME=%ORACLE_DISK%:\ORACLE%RDBMS_VERSION%
- .ENDIF
-
- .<LOGO>
-
- .CLEARSCREEN
-
- .MESSAGE
- %NORMAL%
- %WARNING% ▄▀▀▀▀▀▀▀▀▀▄ ▄▀▀▀▀▀▀▄ ▄▀▄ ▄▀▀▀▀▀▀▀ █ ▄▀▀▀▀▀▀▀▀
- %WARNING% █ █ █ █ █ █ █ █ █
- %WARNING% █ █ █ ▀█▀▀▀ █▄▄▄▄ █ █ █ █▄▄▄▄▄▄▄▄▄
- %WARNING% █ █ █ ▀▄ █ █ █ █ █
- %WARNING% ▀▄▄▄▄▄▄▄▄▄▀ █ ▀▄ █ █ ▀▄▄▄▄▄▄▄ █▄▄▄▄▄▄▄ ▀▄▄▄▄▄▄▄▄
-
- %NORMAL% (c) Copyright Oracle Corporation, 1987, 1990.
-
- %NORMAL% Installation Version %INSTALL_VERSION%
- %NORMAL% All Rights Reserved
-
-
- This program installs ORACLE software on your system by creating
- the appropriate directories on your hard disk and then copying the
- product files. In addition, this install may ask for information
- in order to configure your system properly for ORACLE.
-
- Follow the instructions on the screen and also refer to the
- appropriate ORACLE "Getting Started" booklet.
-
-
-
- .PAUSE
-
- #-------------------------------------------------------------------------
- # Prompt user for SOURCE DISK (A: or B:), the disk where ORACLE products
- # will be installed from.
- #-------------------------------------------------------------------------
- .<SRCDISK>
- .CLEARSCREEN
- .MESSAGE
- %HILITE% Please answer the following questions regarding this installation
- session. For each question, you may accept the default or supply a
- new answer.
-
- .<INVAL_DRIVE>
- .STRINGPROMPT 1 1
- USER_RESP
- Enter the drive you will install ORACLE products from.
- <SRCDHELP>
- %SOURCE_DISK%
-
- .IF (%USER_RESP%=="999")
- .GOTO <LOGO>
- .ENDIF
-
- .ACCESS -DRIVE
- %USER_RESP%:
-
- .IF (%ACCESSRET%==0)
- .MESSAGE
- %WARNING%
- Invalid drive - please reenter.
-
- .GOTO <INVAL_DRIVE>
- .ENDIF
-
- .SOURCE_DISK=%USER_RESP%
-
- .<OHOME>
- .STRINGPROMPT
- USER_RESP
- Enter the disk drive and path you will install ORACLE products to.
- <HOMEHELP>
- %ORACLE_HOME%
-
- .IF (%USER_RESP%=="999")
- .CLEARSCREEN
- .GOTO <SRCDISK>
- .ELSE
- .IF (%ORACLE_HOME%!=%USER_RESP%)
- .ORACLE_HOME=%USER_RESP%
- .ENVIRON=0
- .ENDIF
- .ENDIF
-
- .MKDIR
- %ORACLE_HOME%
-
- .IF (%MKDIRRET%!=0)
- .MESSAGE
- %WARNING%
- Invalid pathname - please reenter.
-
- .GOTO <OHOME>
- .ENDIF
-
- .ACCESS
- %ORACLE_HOME%\DBS\REGISTER.ORA
-
- .REGISTER=%ACCESSRET%
-
- # if environment OK, do other checks & exit
- .IF (%ENVIRON%==1)
-
- .IF (%REGISTER%==0)
- .SYSCALL -QUIET
- COPY %SOURCE_DISK%:\REGISTER.ORA %ORACLE_HOME%\DBS >NUL
- .ENDIF
-
- # make sure that we have the right install version
-
- .CHECKREG 0
- PRODUCT
- VERSION
-
- .IF (%VERSION%<%INSTALL_VERSION% || %VERSION%>"5")
- .IF (%FLOPPY%=="YES")
- .RUNSCRIPT %SOURCE_DISK%:\INSTALL.ORI
- .ELSE
- .MESSAGE
- %HILITE%
-
- The ORACLE installation files need to be updated. To do this, you
- must run ORAINST from your Installation diskette. Please re-execute
- ORAINST from your floppy drive now by typing "A:ORAINST",
- substituting the appropriate drive letter for A.
-
- .ENVIRON=0
- .ENDIF
- .ENDIF
-
- .EXIT
- .ENDIF
-
- # Otherwise, bad environment so fix it!
- # Since the environment is bad, then we will need to know
- # the boot drive in order to modify the environment...
-
- .BOOT_DISK=C
-
- .<BTDISK>
- .STRINGPROMPT 1 1
- USER_RESP
- Enter the drive you boot your computer from.
- <BOOTHELP>
- %BOOT_DISK%
-
- .IF (%USER_RESP%=="999")
- .MESSAGE
- %NORMAL%
- .GOTO <OHOME>
- .ENDIF
-
- .ACCESS -DRIVE
- %USER_RESP%:
-
- .IF (%ACCESSRET%==0)
- .MESSAGE
- %WARNING%
- Invalid drive - please reenter.
-
- .GOTO <BTDISK>
- .ENDIF
-
- .BOOT_DISK=%USER_RESP%
-
- .CLEARSCREEN
-
- .MESSAGE
- %NORMAL%
-
- Configuring system (please wait) ...
-
- # Create the ORACLE home directories.
-
- .MKDIR
- %ORACLE_HOME%\PBIN
-
- .MKDIR
- %ORACLE_HOME%\BIN
-
- .MKDIR
- %ORACLE_HOME%\DBS
-
- # if there isn't a REGISTER.ORA, get one
-
- .IF (%REGISTER%==0)
- .SYSCALL -QUIET
- COPY %SOURCE_DISK%:\REGISTER.ORA %ORACLE_HOME%\DBS >NUL
- .ENDIF
-
- #
- # Check CONFIG.ORA to make sure %ORACLE_HOME% is correct
- #
-
- .ACCESS
- %ORACLE_HOME%\CONFIG.ORA
-
- .IF (%ACCESSRET%==1)
- .MESSAGE
- %NORMAL% Modifying %ORACLE_HOME%\CONFIG.ORA ...
- .MODFILE 0
- %ORACLE_HOME%\CONFIG.ORA
- ORACLE_HOME=%ORACLE_HOME%
- .ELSE
- .MESSAGE
- %NORMAL% Creating file %ORACLE_HOME%\CONFIG.ORA ...
- .WRITEFILE
- %ORACLE_HOME%\CONFIG.ORA
- ORACLE_HOME=%ORACLE_HOME%
- .ENDIF
-
- #
- # Update the installation files
- #
-
- .RUNSCRIPT %SOURCE_DISK%:\INSTALL.ORI
-
- #
- # Update DOS's CONFIG.SYS file to have all the current info.
- #
-
- .CONFUPDATE=0
- .AUTOUPDATE=0
- .NEWCONF=0
- .NEWAUTO=0
-
- .IF (%BOOT_DISK%<"C")
- .MESSAGE
- %HILITE%
- Please insert your boot diskette in drive %BOOT_DISK%: now.
-
- .PAUSE
- .ENDIF
-
- .ACCESS
- %BOOT_DISK%:\CONFIG.SYS
-
- .IF (%ACCESSRET%==1)
-
- # CONFIG.SYS exists
-
- .SYSCALL -QUIET
- COPY %BOOT_DISK%:\CONFIG.SYS %BOOT_DISK%:\CONFIG.NEW >NUL
-
- .RESULT=0
-
- .MODFILE 2
- %BOOT_DISK%:\CONFIG.NEW
- FILES=40
- .RESULT=%RESULT%+%MODIFIED%
-
- .MODFILE 2
- %BOOT_DISK%:\CONFIG.NEW
- BUFFERS=16
- .RESULT=%RESULT%+%MODIFIED%
-
- .MODFILE 0
- %BOOT_DISK%:\CONFIG.NEW
- BREAK=ON
- .RESULT=%RESULT%+%MODIFIED%
-
- .IF (%RESULT% > 0)
- .CONFUPDATE=1
- .<MODCONFIG>
- .SELECTPROMPT
- USER_RESPONSE
- Changes to the file %BOOT_DISK%:\CONFIG.SYS are needed.
- Would you like the changes to be made automatically?
- <CONFHELP>
- 1 Yes
- 2 No
-
- .IF (%USER_RESPONSE%==1)
- .SYSCALL
- COPY %BOOT_DISK%:\CONFIG.SYS %BOOT_DISK%:\CONFIG.BAK >NUL
- .SYSCALL
- COPY %BOOT_DISK%:\CONFIG.NEW %BOOT_DISK%:\CONFIG.SYS >NUL
- .SYSCALL
- DEL %BOOT_DISK%:\CONFIG.NEW >NUL
- .ELSE
- .IF (%USER_RESPONSE%==2)
- .NEWCONF=1
- .ELSE
- .SYSCALL
- DEL %BOOT_DISK%:\CONFIG.NEW >NUL
- .GOTO <BTDISK>
- .ENDIF
- .ENDIF
- .ELSE
-
- # No changes to CONFIG were necessary
-
- .SYSCALL
- DEL %BOOT_DISK%:\CONFIG.NEW
- .ENDIF
-
- .ELSE
-
- # CONFIG.SYS doesn't exist
-
- .MESSAGE
- %HILITE%
- Warning - could not find file %BOOT_DISK%:\CONFIG.SYS
- Creating file %BOOT_DISK%:\CONFIG.SYS...
-
- .WRITEFILE
- %BOOT_DISK%:\CONFIG.SYS
- FILES=40
- BUFFERS=16
- BREAK=ON
- .ENDIF
-
- # Now check AUTOEXEC.BAT
-
- .ACCESS
- %BOOT_DISK%:\AUTOEXEC.BAT
-
- .IF (%ACCESSRET%==1)
-
- # AUTOEXEC.BAT exists
-
- .RESULT=0
-
- .SYSCALL -QUIET
- COPY %BOOT_DISK%:\AUTOEXEC.BAT %BOOT_DISK%:\AUTOEXEC.NEW >NUL
-
- .MODFILE 0
- %BOOT_DISK%:\AUTOEXEC.NEW
- SET CONFIG=%ORACLE_HOME%\CONFIG.ORA
- .RESULT=%RESULT%+%MODIFIED%
-
- .MODFILE 1
- %BOOT_DISK%:\AUTOEXEC.NEW
- SET PATH=%ORACLE_HOME%\BIN;
- .RESULT=%RESULT%+%MODIFIED%
-
- .MODFILE 1
- %BOOT_DISK%:\AUTOEXEC.NEW
- SET PATH=%ORACLE_HOME%\PBIN;
- .RESULT=%RESULT%+%MODIFIED%
-
- .IF (%RESULT%>0)
-
- .<MODAUTO>
- .SELECTPROMPT
- USER_RESPONSE
- Changes to the file %BOOT_DISK%:\AUTOEXEC.BAT are needed.
- Would you like the changes to be made automatically?
- <AUTOHELP>
- 1 Yes
- 2 No
-
- .IF (%USER_RESPONSE%==1)
- .SYSCALL
- COPY %BOOT_DISK%:\AUTOEXEC.BAT %BOOT_DISK%:\AUTOEXEC.BAK >NUL
- .SYSCALL
- COPY %BOOT_DISK%:\AUTOEXEC.NEW %BOOT_DISK%:\AUTOEXEC.BAT >NUL
- .SYSCALL
- DEL %BOOT_DISK%:\AUTOEXEC.NEW
- .ELSE
- .IF (%USER_RESPONSE%==2)
- .NEWAUTO=1
- .ELSE
- .IF (%CONFUPDATE%==1)
- .IF (%NEWCONF%==0)
- .SYSCALL
- COPY %BOOT_DISK%:\CONFIG.SYS %BOOT_DISK%:\CONFIG.NEW >NUL
- .SYSCALL
- COPY %BOOT_DISK%:\CONFIG.BAK %BOOT_DISK%:\CONFIG.SYS >NUL
- .SYSCALL
- DEL %BOOT_DISK%:\CONFIG.BAK
- .ENDIF
- .NEWCONF=0
- .GOTO <MODCONFIG>
- .ENDIF
- .GOTO <BTDISK>
- .ENDIF
- .ENDIF
- .ELSE
-
- # No changes to AUTOEXEC were necessary
-
- .SYSCALL
- DEL %BOOT_DISK%:\AUTOEXEC.NEW
- .ENDIF
- .ELSE
-
- # AUTOEXEC.BAT doesn't exist
-
- .MESSAGE
- %HILITE%
- Warning - could not find file %BOOT_DISK%:\AUTOEXEC.BAT
- Creating file %BOOT_DISK%:\AUTOEXEC.BAT...
-
- .WRITEFILE
- %BOOT_DISK%:\AUTOEXEC.BAT
- @ECHO OFF
- VER
- PROMPT $P$G
-
- PATH %ORACLE_HOME%\PBIN;%ORACLE_HOME%\BIN;%BOOT_DISK%:\
- SET CONFIG=%ORACLE_HOME%\CONFIG.ORA
- .ENDIF
-
- .CLEARSCREEN
- .IF (%NEWCONF%==1)
- .MESSAGE
- %NORMAL% A sample CONFIG.SYS can be found in %BOOT_DISK%:\CONFIG.NEW
- %NORMAL% See your "Getting Started" manual for help with editing the
- %NORMAL% changes into your CONFIG.SYS file.
-
- .ENDIF
- .IF (%NEWAUTO%==1)
- .MESSAGE
- %NORMAL% A sample AUTOEXEC.BAT can be found in %BOOT_DISK%:\AUTOEXEC.NEW
- %NORMAL% See your "Getting Started" manual for help with editing the
- %NORMAL% changes into your AUTOEXEC.BAT file.
-
- .ENDIF
-
- .IF (%BOOT_DISK%<"C")
- .MESSAGE
- %HILITE%
- In order to initialize the environment properly, please reboot
- your PC by pressing <CTRL-ALT-DEL>. After rebooting, continue
- the installation by typing ORAINST at the DOS prompt.
-
- .ELSE
- .MESSAGE
- %HILITE%
- In order to initialize the environment properly, please remove
- the diskette from the floppy drive and press <CTRL-ALT-DEL>.
- After rebooting, continue the installation by typing ORAINST at
- the DOS prompt.
-
- .ENDIF
-
- .EXIT
-
- .<BOOTHELP>
- Please enter the letter (A-Z) corresponding to the drive from which
- you boot your computer. This drive will typically have system files
- and information on it. For most machines, this drive is C.
-
- .<SRCDHELP>
- Please enter the letter (A-Z) corresponding to the drive from which
- you will be installing your ORACLE products. This drive is usually
- a floppy drive, either A or B.
-
- .<CONFHELP>
- In order to work properly, ORACLE requires that certain system variables
- be set to specified values. Choosing Yes will cause the necessary
- changes to be made to your CONFIG.SYS file automatically. Choosing
- No will cause a sample CONFIG.NEW file to be created with the needed
- changes made to it.
-
- .<AUTOHELP>
- In order to work properly, ORACLE requires that certain system variables
- be set to specified values. Choosing Yes will cause the necessary
- changes to be made to your AUTOEXEC.BAT file automatically. Choosing
- No will cause a sample AUTOEXEC.NEW file to be created with the needed
- changes made to it.
-
- .<HOMEHELP>
- Please enter the FULL path (drive and directory name) where you wish
- to install ORACLE. Your response should be similar in form to:
- C:\ORACLE5
-