home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a525 / 16.ddi / INSTALL.ORI < prev    next >
Encoding:
Text File  |  1993-02-08  |  26.6 KB  |  949 lines

  1. #-------------------------------------------------------------------------
  2. #
  3. # FILE
  4. #       INSTALL.ORI
  5. #       V2 installation script language interpreter file.
  6. #
  7. # DESCRIPTION
  8. #       Installation file for the SQL*Forms disk.
  9. #
  10. # MODIFIED
  11. #       MRMILLER
  12. #       Greg Costanzo 12/23/91 - Added comments and NLS support
  13. #       Alyn Kelley   01/28/93 - NLS18
  14. #-------------------------------------------------------------------------
  15. # Generate symbols for Disk Volume label and Jacket label for disks.
  16. #-------------------------------------------------------------------------
  17. .LABELGEN
  18. u
  19. V60 FORM %u
  20. SQL*Forms Disk %u
  21.  
  22. .FILES -NOCOPY
  23. INSTALL.ORI       27258
  24. README.TXT        31753
  25.  
  26. # **********************************************************************
  27. # Initialize variables ...
  28. # **********************************************************************
  29. .DISK_USAGE=74
  30. .PRODUCT_NAME=SQL*Forms
  31. .PRODUCT_VERSION=3.0.16.11.3
  32. .PRODUCT_NUMBER=5
  33. .UTIL_REQUIRED=1.0.10.0.1
  34.  
  35. # **********************************************************************
  36. # Check the Oracle register for required product versions ...
  37. # **********************************************************************
  38. .CHECKREG %PRODUCT_NUMBER%
  39.  PRODUCT
  40.  VERSION
  41.  
  42. .CHECKREG 2
  43.  UTILS
  44.  UTIL_VERSION
  45.  
  46. .IF (%UTILS%=="" || %UTIL_VERSION% < %UTIL_REQUIRED%)
  47.  .MESSAGE
  48.   %WARNING%
  49.  
  50.   You have not installed Tools Utilities %UTIL_REQUIRED%.
  51.   Please install Tools Utilities %UTIL_REQUIRED% or later
  52.   and then install %PRODUCT_NAME%.
  53.  
  54.  .PAUSE
  55.  .EXIT
  56. .ENDIF
  57.  
  58. .CHECKREG 1
  59.  RDBMS
  60.  RDBMS_VERSION
  61.  
  62. # **********************************************************************
  63. # Find out how much space there is on %ORACLE_DISK%
  64. # **********************************************************************
  65. .<CHECK_INST>
  66.  
  67. .IF (%INSTALL_CHECKED%!=1)
  68.  .IF (%PRODUCT%=="")
  69.   .IF (%DISK_USAGE% > %FREE_SPACE%)
  70.  
  71.    .SELECTPROMPT
  72.     USER_RESP
  73.     There is insufficient disk space on drive %ORACLE_DISK%: to
  74.     install this product.  Would you like to attempt to install anyway?
  75.     <DISK_SPACE_HELP>
  76.     1     No
  77.     2     Yes
  78.  
  79.    .IF (%USER_RESP%==1 || %USER_RESP%==999)
  80.     .EXIT
  81.    .ENDIF
  82.   .ENDIF
  83.  
  84.  .ELSE
  85.   .SELECTPROMPT
  86.    USER_RESP
  87.    %PRODUCT_NAME% has already been installed.
  88.    Would you like to reinstall it?
  89.    <REINSTALL_HELP>
  90.    1     No
  91.    2     Yes
  92.  
  93.   .IF (%USER_RESP%==1 || %USER_RESP%==999)
  94.    .EXIT
  95.   .ENDIF
  96.  .ENDIF
  97. .ENDIF
  98.  
  99. # **********************************************************************
  100. # Find out if the user wants to install application building software
  101. # **********************************************************************
  102. .<APPBUILDL>
  103. .SELECTPROMPT
  104.  APPLIC
  105.  This procedure installs SQL*Forms, which can be used to both generate
  106.  and utilize sophisticated data entry forms.  Operators only using
  107.  existing forms for data entry/query do not require all SQL*Forms
  108.  software.  If you plan to design forms and develop applications, you
  109.  will need to install SQL*Forms application-building software.
  110.  <HELP1>
  111.  1       Install SQL*Forms application-building software
  112.  2       Do NOT install application-building software
  113.  
  114. .IF (%APPLIC%==999)
  115.  .IF (%INSTALL_CHECKED%!=1 && (%DISK_USAGE%>%FREE_SPACE% || %PRODUCT%!=""))
  116.   .GOTO <CHECK_INST>
  117.  .ELSE
  118.   .EXIT
  119.  .ENDIF
  120. .ENDIF
  121.  
  122. # **********************************************************************
  123. # Find out if the user wants userexit support installed
  124. # **********************************************************************
  125. .<RUNEXITL>
  126. .IF (%APPLIC%==1)
  127.  .SELECTPROMPT
  128.   RUNEXIT
  129.   Included with the application-building software are files necessary
  130.   to build a customized RUNFORM.EXE containing user exits, which may
  131.   be written in C, FORTRAN or COBOL.
  132.   <RUNEXITHELP>
  133.   1 Install support for user exits
  134.   2 Do not install user exit support
  135.  
  136.  .IF (%RUNEXIT%==999)
  137.   .GOTO <APPBUILDL>
  138.  .ENDIF
  139.  
  140. # **********************************************************************
  141. # Find out if this is a LAN Install, if so skip building tables
  142. # **********************************************************************
  143.  
  144. .CLEARSCREEN
  145.  
  146. .IF (%LAN_INST%=="YES")
  147.  .MESSAGE
  148.  %NORMAL% You are installing your Oracle Tools onto a LAN.  This install
  149.  will copy the FORMINS.BAT file to the %ORACLE_HOME%\BIN directory.  This
  150.  file builds the %PRODUCT_NAME% tables in the database.  You will
  151.  need to set the ORACLE_HOME parameter in your environment and the
  152.  local parameter in CONFIG.ORA before running this file.
  153.  
  154.  .PAUSE
  155.  
  156.  .APPLTABS=0
  157.  .GOTO <COPY>
  158. .ENDIF
  159.  
  160. # **********************************************************************
  161. # Find out if the user wants to build SQL*Forms tables in the database
  162. # **********************************************************************
  163.  .<APPLTABSL>
  164.  .APPLTABS=0
  165.  .IF (%RDBMS%!="" && %RDBMS_VERSION%>=6)
  166.   .CLEARSCREEN
  167.   .MESSAGE
  168.    %NORMAL% SQL*Forms requires that special tables be added to your database
  169.    if you will be designing forms and developing applications.  If
  170.    you have previously installed SQL*Forms and these tables already
  171.    exist in your database, they may need to be upgraded to work with
  172.    this version of SQL*Forms.
  173.  
  174.    If you are installing SQL*Forms with a local ORACLE database, and
  175.    the local ORACLE database has already been installed on this
  176.    machine, this installation process can automatically add or
  177.    modify these tables as necessary.
  178.  
  179.    If you would like to add these tables yourself, or if you are
  180.    accessing a remote ORACLE database using SQL*Net, please see the
  181.    section on SQL*Forms in the User's Guide.
  182.  
  183.   .PAUSE
  184.   .SELECTPROMPT
  185.    APPLTABS
  186.    Do you want this installation procedure to automatically update or
  187.    add the tables to your database?
  188.    <APPLTABSHELP>
  189.    1 Update / Add the tables to the database
  190.    2 Do NOT add the tables to the database
  191.  
  192.   .IF (%APPLTABS%==999)
  193.    .GOTO <RUNEXITL>
  194.   .ENDIF
  195.  .ENDIF
  196. .ENDIF
  197.  
  198. # **********************************************************************
  199. # Abbreviate the LANGUAGE parameter and copy appropriate message file(s)
  200. # **********************************************************************
  201. .<COPY>
  202. .LANG_ABBR
  203. %LANGUAGE%
  204. ABBREVIATION
  205.  
  206. .CLEARSCREEN
  207.  
  208. .MESSAGE
  209.  %NORMAL% Copying Message Files into %ORACLE_HOME%\DBS...
  210.  
  211. .FILES -NOCOPY -COMPRESS
  212. IACUS.MSB          6144
  213. IACD.MSB           6656
  214. IACDK.MSB          6144
  215. IACE.MSB           6144
  216. IACF.MSB           6656
  217. IACI.MSB           6656
  218. IACN.MSB           6144
  219. IACNL.MSB          6144
  220. IACS.MSB           6144
  221. IACSF.MSB          6144
  222. IACCS.MSB          6144
  223. IACEL.MSB          6656
  224. IACHU.MSB          6656
  225. IACPL.MSB          6656
  226. IACPT.MSB          6656
  227. IACPTB.MSB         6656
  228. IACRU.MSB          6144
  229. IACSK.MSB          6144
  230. IACTR.MSB          6144
  231. IAGUS.MSB          9216
  232. IAGD.MSB          10240
  233. IAGDK.MSB         10240
  234. IAGE.MSB          10752
  235. IAGF.MSB          10752
  236. IAGI.MSB          10240
  237. IAGN.MSB           9728
  238. IAGNL.MSB         10240
  239. IAGS.MSB           9216
  240. IAGSF.MSB          9728
  241. IAGCS.MSB         10240
  242. IAGEL.MSB         10752
  243. IAGHU.MSB         10240
  244. IAGPL.MSB         10240
  245. IAGPT.MSB         10752
  246. IAGPTB.MSB        10240
  247. IAGRU.MSB         10240
  248. IAGSK.MSB          9728
  249. IAGTR.MSB          9728
  250.  
  251. .FILES -VARIABLE -COMPRESS
  252. IAC%ABBREVIATION%.MSB    0   %ORACLE_HOME%\DBS\IAC%ABBREVIATION%.MSB
  253. IAG%ABBREVIATION%.MSB    0   %ORACLE_HOME%\DBS\IAG%ABBREVIATION%.MSB
  254.  
  255.  
  256. .IF (%APPLIC%==1)
  257. # **********************************************************************
  258. # Copy appropriate message file for Designer
  259. # **********************************************************************
  260.  .FILES -NOCOPY -COMPRESS
  261. IADUS.MSB         28160
  262. IADD.MSB          32768
  263. IADDK.MSB         29184
  264. IADE.MSB          31744
  265. IADF.MSB          32768
  266. IADI.MSB          31744
  267. IADN.MSB          28160
  268. IADNL.MSB         31232
  269. IADS.MSB          28672
  270. IADSF.MSB         27648
  271. IADCS.MSB         29696
  272. IADEL.MSB         32256
  273. IADHU.MSB         29696
  274. IADPL.MSB         30720
  275. IADPT.MSB         31744
  276. IADPTB.MSB        30720
  277. IADRU.MSB         31232
  278. IADSK.MSB         29184
  279. IADTR.MSB         28160
  280.  
  281. .FILES -VARIABLE -COMPRESS
  282. IAD%ABBREVIATION%.MSB    0   %ORACLE_HOME%\DBS\IAD%ABBREVIATION%.MSB
  283.  
  284. .ENDIF
  285.  
  286. # **********************************************************************
  287. # Begin copying and decompressing the distribution files ...
  288. # **********************************************************************
  289.  
  290. .MESSAGE
  291.  %NORMAL% Copying SQL*Forms protected-mode executables into %ORACLE_HOME%\PBIN...
  292.  
  293. .FILES -COMPRESS
  294. CONVERT.PXE      407915   %ORACLE_HOME%\PBIN\CONVERT.PXE
  295. GENERATE.PXE    1374125   %ORACLE_HOME%\PBIN\GENERATE.PXE
  296. RUNFORM.PXE     1372263   %ORACLE_HOME%\PBIN\RUNFORM.PXE
  297.  
  298. # **********************************************************************
  299. # Copy PLOADER.COM for all .PXE files
  300. # **********************************************************************
  301. .SYSCALL -QUIET
  302. COPY %ORACLE_HOME%\PBIN\PLOADR.COM %ORACLE_HOME%\PBIN\CONVERT.COM >NUL
  303.  
  304. .SYSCALL -QUIET
  305. COPY %ORACLE_HOME%\PBIN\PLOADR.COM %ORACLE_HOME%\PBIN\GENERATE.COM >NUL
  306.  
  307. .SYSCALL -QUIET
  308. COPY %ORACLE_HOME%\PBIN\PLOADR.COM %ORACLE_HOME%\PBIN\RUNFORM.COM >NUL
  309.  
  310. .IF (%APPLIC%==1)
  311.  
  312.  .FILES -COMPRESS
  313. SQLFORMS.PXE    2337985   %ORACLE_HOME%\PBIN\SQLFORMS.PXE
  314.  
  315.  .SYSCALL -QUIET
  316. COPY %ORACLE_HOME%\PBIN\PLOADR.COM %ORACLE_HOME%\PBIN\SQLFORMS.COM >NUL
  317.  
  318. .ENDIF
  319.  
  320. .MESSAGE
  321.  %NORMAL% Copying Demo forms into %ORACLE_HOME%\DBS...
  322.  
  323. .FILES -COMPRESS
  324. CHAPTER3.INP      31869   %ORACLE_HOME%\DBS\CHAPTER3.INP
  325. CHAPTER4.INP      36233   %ORACLE_HOME%\DBS\CHAPTER4.INP
  326. CHAPTER5.INP      36548   %ORACLE_HOME%\DBS\CHAPTER5.INP
  327. CHAPTER6.INP      40516   %ORACLE_HOME%\DBS\CHAPTER6.INP
  328. ORDER.INP         48925   %ORACLE_HOME%\DBS\ORDER.INP
  329. ORDER.FRM         24012   %ORACLE_HOME%\DBS\ORDER.FRM
  330. SAMPLE.INP        11087   %ORACLE_HOME%\DBS\SAMPLE.INP
  331. SAMPLE.FRM         4257   %ORACLE_HOME%\DBS\SAMPLE.FRM
  332.  
  333. .MESSAGE
  334.  %NORMAL% Copying SQL scripts into %ORACLE_HOME%\DBS...
  335.  
  336. .FILES -COMPRESS
  337. IADDROP.SQL        1356   %ORACLE_HOME%\DBS\IADDROP.SQL
  338. IADGRANT.SQL       2408   %ORACLE_HOME%\DBS\IADGRANT.SQL
  339. IADINDEX.SQL       1948   %ORACLE_HOME%\DBS\IADINDEX.SQL
  340. IADTABLE.SQL       5496   %ORACLE_HOME%\DBS\IADTABLE.SQL
  341. IADVIEW.SQL        4491   %ORACLE_HOME%\DBS\IADVIEW.SQL
  342. IADUPG.SQL         2661   %ORACLE_HOME%\DBS\IADUPG.SQL
  343.  
  344. # **********************************************************************
  345. # Find out if this is a LAN Install, write LAN .BAT file
  346. # **********************************************************************
  347. .IF (%LAN_INST%=="YES")
  348.  
  349. .WRITEFILE
  350. %ORACLE_HOME%\BIN\FORMINS.BAT
  351. @ECHO OFF
  352. ECHO  
  353. rem
  354. rem  Usage: FORMINS SYSTEM SYSTEM_PASSWORD
  355. rem
  356. IF NOT .%%2 == . GOTO FORMINS
  357. ECHO Usage: FORMINS SYSTEM SYSTEM_Password
  358. GOTO EXIT
  359. :FORMINS
  360. IF NOT EXIST %%ORACLE_HOME%%\DBS\IADTABLE.SQL GOTO ABORT
  361. IF NOT EXIST %%ORACLE_HOME%%\DBS\IADINDEX.SQL GOTO ABORT
  362. IF NOT EXIST %%ORACLE_HOME%%\DBS\IADVIEW.SQL GOTO ABORT
  363. IF NOT EXIST %%ORACLE_HOME%%\DBS\IADGRANT.SQL GOTO ABORT
  364. ECHO 
  365. ECHO Loading the SQL*Forms extended data dictionary.  This will take
  366. ECHO a few minutes.  Please wait...
  367. ECHO 
  368.  
  369. INSTLOAD %%1/%%2 %%ORACLE_HOME%%\DBS\IADTABLE.SQL %%ORACLE_HOME%%\DBS\IADTABLE.LOG
  370. INSTLOAD %%1/%%2 %%ORACLE_HOME%%\DBS\IADINDEX.SQL %%ORACLE_HOME%%\DBS\IADINDEX.LOG
  371. INSTLOAD %%1/%%2 %%ORACLE_HOME%%\DBS\IADVIEW.SQL %%ORACLE_HOME%%\DBS\IADVIEW.LOG
  372. INSTLOAD %%1/%%2 %%ORACLE_HOME%%\DBS\IADGRANT.SQL %%ORACLE_HOME%%\DBS\IADGRANT.LOG
  373. IF NOT ERRORLEVEL 1 GOTO EXIT
  374. ECHO 
  375. ECHO Error - Could not run one of the following files:
  376. ECHO 
  377. ECHO %%ORACLE_HOME%%\DBS\IADTABLE.SQL
  378. ECHO %%ORACLE_HOME%%\DBS\IADINDEX.SQL
  379. ECHO %%ORACLE_HOME%%\DBS\IADVIEW.SQL
  380. ECHO %%ORACLE_HOME%%\DBS\IADGRANT.SQL
  381. ECHO 
  382. ECHO See the related %%ORACLE_HOME%%\DBS\IAD*.LOG files for more info.
  383. GOTO EXIT
  384.  
  385. :ABORT
  386. ECHO Unable to access one or more of the following files:
  387. ECHO 
  388. ECHO %%ORACLE_HOME%%\DBS\IADTABLE.SQL
  389. ECHO %%ORACLE_HOME%%\DBS\IADINDEX.SQL
  390. ECHO %%ORACLE_HOME%%\DBS\IADVIEW.SQL
  391. ECHO %%ORACLE_HOME%%\DBS\IADGRANT.SQL
  392. ECHO 
  393. ECHO Terminating procedure.
  394. ECHO 
  395. :EXIT
  396.  .GOTO <DESIGNER>
  397. .ENDIF
  398.  
  399. # **********************************************************************
  400. # Create BAT files for non-LAN install
  401. # **********************************************************************
  402. .WRITEFILE
  403. %ORACLE_HOME%\BIN\FORMINS.BAT
  404. @ECHO OFF
  405. ECHO  
  406. rem
  407. rem  Usage: FORMINS SYSTEM SYSTEM_PASSWORD
  408. rem
  409. IF NOT .%%2 == . GOTO FORMINS
  410. ECHO Usage: FORMINS SYSTEM SYSTEM_Password
  411. GOTO EXIT
  412. :FORMINS
  413. IF NOT EXIST %ORACLE_HOME%\DBS\IADTABLE.SQL GOTO ABORT
  414. IF NOT EXIST %ORACLE_HOME%\DBS\IADINDEX.SQL GOTO ABORT
  415. IF NOT EXIST %ORACLE_HOME%\DBS\IADVIEW.SQL GOTO ABORT
  416. IF NOT EXIST %ORACLE_HOME%\DBS\IADGRANT.SQL GOTO ABORT
  417. ECHO 
  418. ECHO Loading the SQL*Forms extended data dictionary.  This will take
  419. ECHO a few minutes.  Please wait...
  420. ECHO 
  421.  
  422. INSTLOAD %%1/%%2 %ORACLE_HOME%\DBS\IADTABLE.SQL %ORACLE_HOME%\DBS\IADTABLE.LOG
  423. INSTLOAD %%1/%%2 %ORACLE_HOME%\DBS\IADINDEX.SQL %ORACLE_HOME%\DBS\IADINDEX.LOG
  424. INSTLOAD %%1/%%2 %ORACLE_HOME%\DBS\IADVIEW.SQL %ORACLE_HOME%\DBS\IADVIEW.LOG
  425. INSTLOAD %%1/%%2 %ORACLE_HOME%\DBS\IADGRANT.SQL %ORACLE_HOME%\DBS\IADGRANT.LOG
  426. IF NOT ERRORLEVEL 1 GOTO EXIT
  427. ECHO 
  428. ECHO Error - Could not run one of the following files:
  429. ECHO 
  430. ECHO %ORACLE_HOME%\DBS\IADTABLE.SQL
  431. ECHO %ORACLE_HOME%\DBS\IADINDEX.SQL
  432. ECHO %ORACLE_HOME%\DBS\IADVIEW.SQL
  433. ECHO %ORACLE_HOME%\DBS\IADGRANT.SQL
  434. ECHO 
  435. ECHO See the related %ORACLE_HOME%\DBS\IAD*.LOG files for more info.
  436. GOTO EXIT
  437.  
  438. :ABORT
  439. ECHO Unable to access one or more of the following files:
  440. ECHO 
  441. ECHO %ORACLE_HOME%\DBS\IADTABLE.SQL
  442. ECHO %ORACLE_HOME%\DBS\IADINDEX.SQL
  443. ECHO %ORACLE_HOME%\DBS\IADVIEW.SQL
  444. ECHO %ORACLE_HOME%\DBS\IADGRANT.SQL
  445. ECHO 
  446. ECHO Terminating procedure.
  447. ECHO 
  448.  
  449. :EXIT
  450.  
  451. # **********************************************************************
  452. # Copy designer software
  453. # **********************************************************************
  454.  
  455. .<DESIGNER>
  456.  
  457. .IF (%APPLIC%==1)
  458.  
  459. # **********************************************************************
  460. # Copy .R file
  461. # **********************************************************************
  462.  .FILES -NOCOPY -COMPRESS
  463. IADHLPUS.R       483328
  464.  
  465. .IF (%ABBREVIATION%=="I")
  466.  .GOTO <RCOPY1>
  467. .ELSE
  468.  .IF (%ABBREVIATION%=="E")
  469.   .GOTO <RCOPY1>
  470.  .ELSE
  471.   .IF (%ABBREVIATION%=="CS")
  472.    .GOTO <RCOPY1>
  473.   .ELSE
  474.    .IF (%ABBREVIATION%=="EL")
  475.     .GOTO <RCOPY1>
  476.    .ELSE
  477.     .IF (%ABBREVIATION%=="HU")
  478.      .GOTO <RCOPY1>
  479.     .ELSE
  480.      .IF (%ABBREVIATION%=="PL")
  481.       .GOTO <RCOPY1>
  482.      .ELSE
  483.       .IF (%ABBREVIATION%=="PT")
  484.        .GOTO <RCOPY1>
  485.       .ELSE
  486.        .IF (%ABBREVIATION%=="RU")
  487.         .GOTO <RCOPY1>
  488.        .ELSE
  489.         .IF (%ABBREVIATION%=="SK")
  490.          .GOTO <RCOPY1>
  491.         .ELSE
  492.          .IF (%ABBREVIATION%=="TR")
  493.           .GOTO <RCOPY1>
  494.          .ELSE
  495.           .GOTO <RCOPY2>
  496.          .ENDIF
  497.         .ENDIF
  498.        .ENDIF
  499.       .ENDIF
  500.      .ENDIF
  501.     .ENDIF
  502.    .ENDIF
  503.   .ENDIF
  504.  .ENDIF
  505. .ENDIF
  506.  
  507. .<RCOPY1>
  508.  .FILES -VARIABLE -COMPRESS
  509. IADHLPUS.R            0       %ORACLE_HOME%\DBS\IADHLP%ABBREVIATION%.R
  510. .GOTO <USEREXITL>
  511.  
  512. .<RCOPY2>
  513. .IF (%ABBREVIATION%=="PTB")
  514.  
  515.   .FILES -COMPRESS
  516. IADHLPUS.R       483328   %ORACLE_HOME%\DBS\IADHLPUS.R
  517.  
  518. .ELSE
  519.  
  520. .FILES -NOCOPY -COMPRESS
  521. IADHLPD.R        532480
  522. IADHLPDK.R       499712
  523. IADHLPF.R        557056
  524. IADHLPN.R        491520
  525. IADHLPNL.R       499712
  526. IADHLPS.R        483328
  527. IADHLPSF.R       499712
  528.  
  529. .FILES -VARIABLE -COMPRESS
  530. IADHLP%ABBREVIATION%.R    0    %ORACLE_HOME%\DBS\IADHLP%ABBREVIATION%.R
  531.  
  532. .ENDIF
  533. .<USEREXITL>
  534.  
  535. # **********************************************************************
  536. # Create the directories for userexits if chosen by the user
  537. # **********************************************************************
  538.  
  539.  .IF (%RUNEXIT%==1)
  540.  
  541.   .MKDIR
  542.    %ORACLE_HOME%\PRO
  543.  
  544.   .MKDIR
  545.    %ORACLE_HOME%\PRO\C
  546.  
  547.   .MKDIR
  548.    %ORACLE_HOME%\PRO\LIB
  549.  
  550. # **********************************************************************
  551. # Begin copying and decompressing the userexit files ...
  552. # **********************************************************************
  553.   .MESSAGE
  554.    %NORMAL% Copying User Exit Software into %ORACLE_HOME%\PRO...
  555.  
  556.   .FILES -COMPRESS
  557. IAPCAL.H            787   %ORACLE_HOME%\PRO\C\IAPCAL.H
  558. IAPUXW.H           4938   %ORACLE_HOME%\PRO\C\IAPUXW.H
  559. IFUSER.H           2522   %ORACLE_HOME%\PRO\C\IFUSER.H
  560. IFPDMY.LIB         5147   %ORACLE_HOME%\PRO\LIB\IFPDMY.LIB
  561. IFPLIB.LIB        86983   %ORACLE_HOME%\PRO\LIB\IFPLIB.LIB
  562. IAPDRV.OBJ          294   %ORACLE_HOME%\PRO\LIB\IAPDRV.OBJ
  563. IFMDMF.OBJ          693   %ORACLE_HOME%\PRO\LIB\IFMDMF.OBJ
  564. IFPLUT.OBJ          952   %ORACLE_HOME%\PRO\LIB\IFPLUT.OBJ
  565. IAPSUPM.LIB       47139   %ORACLE_HOME%\PRO\LIB\IAPSUPM.LIB
  566.  
  567.  .ENDIF
  568.  
  569. # **********************************************************************
  570. # **********************************************************************
  571. # Build application tables in the database if chosen by user
  572. # **********************************************************************
  573. # **********************************************************************
  574.  .IF (%APPLTABS%==1)
  575.   .CLEARSCREEN
  576.   .DBA_FOUND=1
  577.  
  578. # **********************************************************************
  579. # Find the DBA authorization password and start up the database
  580. # **********************************************************************
  581.   .TRANSLATE
  582.    %DBA_AUTHORIZATION%
  583.    DBA_AUTHORIZATION
  584.  
  585.   .IF (%DBA_AUTHORIZATION%=="")
  586.  
  587.    .DBA_FOUND=0
  588.    .<DBAL>
  589.    .STRINGPROMPT QUIET 6 32
  590.     DBA_AUTHORIZATION
  591.     Please enter your DBA authorization password.
  592.     <DBA_HELP>
  593.  
  594.    .IF (%DBA_AUTHORIZATION%==999)
  595.     .GOTO <DBAL>
  596.    .ENDIF
  597.    .IF (%DBA_AUTHORIZATION%=="!TOOSHORT")
  598.     .MESSAGE
  599.      %WARNING%
  600.      Error - password must be at least six characters.
  601.  
  602.     .GOTO <DBAL>
  603.    .ENDIF
  604.   .ENDIF
  605.  
  606.   .MESSAGE
  607.    %HILITE%
  608.    Starting up the database...
  609.  
  610.   .SYSCALL -QUIET
  611.    SQLPME >NUL
  612.  
  613.   .SYSCALL -QUIET
  614.    ORACLE6 >NUL
  615.  
  616.   .SPAWN
  617.    SQLDBA STARTUP AUTHORIZATION=%DBA_AUTHORIZATION%
  618.  
  619.   .IF (%SPAWNRET%!=0)
  620.    .MESSAGE
  621.     %HILITE% Error - unable to start the ORACLE database using SQLDBA.
  622.              SQL*Forms application tables will NOT be installed.
  623.  
  624.    .SYSCALL -QUIET
  625.     REMPME >NUL
  626.  
  627.    .PAUSE
  628.    .GOTO <INSTEND>
  629.   .ENDIF
  630.  
  631. # **********************************************************************
  632. # OK so far; make sure we have the right password for the SYSTEM account.
  633. # **********************************************************************
  634.  
  635.  .PASSWD=MANAGER
  636.  
  637.  .<LOOP>
  638.  .SPAWN
  639.  CHKALL -FORMS SYSTEM %PASSWD%
  640.  .IF (%SPAWNRET%<0)
  641.   .MESSAGE
  642.    %HILITE% Error - unable to spawn CHKALL.
  643.             SQL*Forms application tables will NOT be installed.
  644.  
  645.   .SYSCALL -QUIET
  646.    REMPME >NUL
  647.  
  648.   .PAUSE
  649.   .GOTO <INSTEND>
  650.  .ENDIF
  651.  
  652. # **********************************************************************
  653. # Since we don't have a logical AND, we figure out the flags manually...
  654. # **********************************************************************
  655. .IF (%SPAWNRET%>=128)
  656.  .UNKNOWN_ERR=1
  657.  .SPAWNRET=%SPAWNRET%-128
  658. .ELSE
  659.  .UNKNOWN_ERR=0
  660. .ENDIF
  661.  
  662. .IF (%SPAWNRET%>=64)
  663.  .DB_DOWN=1
  664.  .SPAWNRET=%SPAWNRET%-64
  665. .ELSE
  666.  .DB_DOWN=0
  667. .ENDIF
  668.  
  669. .IF (%SPAWNRET%>=32)
  670.  .USAGE_ERR=1
  671.  .SPAWNRET=%SPAWNRET%-32
  672. .ELSE
  673.  .USAGE_ERR=0
  674. .ENDIF
  675.  
  676. .IF (%SPAWNRET%>=16)
  677.  .NEED_CAT=1
  678.  .SPAWNRET=%SPAWNRET%-16
  679. .ELSE
  680.  .NEED_CAT=0
  681. .ENDIF
  682.  
  683. .IF (%SPAWNRET%>=8)
  684.  .FORMS_23=1
  685.  .SPAWNRET=%SPAWNRET%-8
  686. .ELSE
  687.  .FORMS_23=0
  688. .ENDIF
  689.  
  690. .IF (%SPAWNRET%>=4)
  691.  .FULL=1
  692.  .SPAWNRET=%SPAWNRET%-4
  693. .ELSE
  694.  .FULL=0
  695. .ENDIF
  696.  
  697. .IF (%SPAWNRET%>=2)
  698.  .PARTIAL=1
  699.  .SPAWNRET=%SPAWNRET%-2
  700. .ELSE
  701.  .PARTIAL=0
  702. .ENDIF
  703.  
  704. .IF (%SPAWNRET%==1)
  705.  .USER_GOOD=1
  706. .ELSE
  707.  .USER_GOOD=0
  708. .ENDIF
  709.  
  710. # **********************************************************************
  711. # Now, evaluate codes
  712. # **********************************************************************
  713.  
  714. .IF (%UNKNOWN_ERR%==1)
  715. .MESSAGE
  716. %WARNING% An unexpected error occurred.
  717. The SQL*Forms tables will NOT be installed.
  718. .PAUSE
  719. .GOTO <INSTEND>
  720. .ELSE
  721.  
  722.  .IF (%DB_DOWN%==1)
  723.   .MESSAGE
  724. %WARNING% The database is down.
  725. The SQL*Forms tables will NOT be installed.
  726. .PAUSE
  727. .GOTO <INSTEND>
  728.  .ELSE
  729.  
  730.   .IF (%USAGE_ERR%==1)
  731.    .MESSAGE
  732. %WARNING% A usage error occurred.
  733. The SQL*Forms tables will NOT be installed.
  734. .PAUSE
  735. .GOTO <INSTEND>
  736.   .ELSE
  737.  
  738.    .IF (%NEED_CAT%==1)
  739.     .MESSAGE
  740. %WARNING% CATALOG.SQL has not been run.  This file builds the ORACLE data
  741. dictionary views.  The SQL*Forms tables will NOT be installed.
  742. .PAUSE
  743. .GOTO <INSTEND>
  744.    .ELSE
  745.  
  746.     .IF (%FORMS_23%==1)
  747.      .MESSAGE
  748. %WARNING% You have not installed SQL*Forms 3.0.
  749. The SQL*Forms tables will NOT be installed.
  750. .PAUSE
  751. .GOTO <INSTEND>
  752.     .ENDIF
  753.    .ENDIF
  754.   .ENDIF
  755.  .ENDIF
  756. .ENDIF
  757.  
  758. .IF (%USER_GOOD%==0)
  759.  .CLEARSCREEN
  760.  .<PASSWDL>
  761.  .STRINGPROMPT
  762.   PASSWD
  763.   Please enter the current password for the SYSTEM account.
  764.   <PASSWDHELP>
  765.   %PASSWD%
  766.  
  767.  .IF (%PASSWD%=="999")
  768.    .GOTO <DBAL>
  769.  .ENDIF
  770.  .GOTO <LOOP>
  771. .ENDIF
  772.  
  773. .CORRECT_PARTIAL=0
  774. .IF (%PARTIAL%==1)
  775.  .SELECTPROMPT
  776.   CORRECT_PARTIAL
  777.   It appears that the SQL*Forms Designer tables have been partially
  778.   installed in this database sometime in the past.  Do you wish to
  779.   remove these tables and install the complete set?  Any applications
  780.   stored in these tables will be lost.
  781.   <PARTIAL_HELP>
  782.   1 Remove current tables and reinstall complete set
  783.   2 Leave tables as they are
  784.  
  785.  .IF (%CORRECT_PARTIAL%==1)
  786.   .GOTO <FULL_JUMP>
  787.  .ENDIF
  788.  .IF (%CORRECT_PARTIAL%==2)
  789.   .GOTO <INSTEND>
  790.  .ENDIF
  791.  .IF (%CORRECT_PARTIAL%==999)
  792.   .GOTO <PASSWDL>
  793.  .ENDIF
  794. .ELSE
  795.  
  796. # **********************************************************************
  797. # Begin building the SQL*Forms tables in the database
  798. # **********************************************************************
  799.  .IF (%FULL%==0)
  800.   .<FULL_JUMP>
  801.   .CLEARSCREEN
  802.   .MESSAGE
  803.   %NORMAL% Adding SQL*Forms Designer tables to the database...
  804.  
  805.   .SPAWN
  806.   INSTLOAD SYSTEM/%PASSWD% %ORACLE_HOME%\DBS\IADTABLE.SQL %ORACLE_HOME%\DBS\IADTABLE.LOG
  807.   .IF (%SPAWNRET%!=0)
  808.    .GOTO <NOINTERACT>
  809.   .ENDIF
  810.  
  811.   .SPAWN
  812.   INSTLOAD SYSTEM/%PASSWD% %ORACLE_HOME%\DBS\IADINDEX.SQL %ORACLE_HOME%\DBS\IADINDEX.LOG
  813.   .IF (%SPAWNRET%!=0)
  814.    .GOTO <NOINTERACT>
  815.   .ENDIF
  816.  
  817.   .SPAWN
  818.   INSTLOAD SYSTEM/%PASSWD% %ORACLE_HOME%\DBS\IADVIEW.SQL %ORACLE_HOME%\DBS\IADVIEW.LOG
  819.   .IF (%SPAWNRET%!=0)
  820.    .GOTO <NOINTERACT>
  821.   .ENDIF
  822.  
  823.   .SPAWN
  824.   INSTLOAD SYSTEM/%PASSWD% %ORACLE_HOME%\DBS\IADGRANT.SQL %ORACLE_HOME%\DBS\IADGRANT.LOG
  825.   .IF (%SPAWNRET%!=0)
  826.    .GOTO <NOINTERACT>
  827.   .ENDIF
  828.  
  829.   .ELSE
  830.    .MESSAGE
  831.    %NORMAL% SQL*Forms Designer tables present and verified.
  832.  
  833.   .ENDIF
  834.  .ENDIF
  835.  .GOTO <SHUTDOWN>
  836.  
  837.  .<NOINTERACT>
  838.   .MESSAGE
  839.   %WARNING% Cannot build SQL*Forms tables using INSTLOAD.  SQL*Forms tables
  840.   will need to be installed manually after this install.
  841.  
  842. # **********************************************************************
  843. # Shut down the database
  844. # **********************************************************************
  845. .<SHUTDOWN>
  846.  .MESSAGE
  847.   %HILITE% Shutting down the database...
  848.  
  849.  .SYSCALL -QUIET
  850.   SQLDBA SHUTDOWN AUTHORIZATION=%DBA_AUTHORIZATION% >NUL
  851.  
  852.  .ENDIF
  853.  
  854. .SYSCALL
  855. REMPME >NUL
  856.  
  857. .ENDIF
  858.  
  859. # **********************************************************************
  860. # Update the registration information in register.ora
  861. # **********************************************************************
  862. .<INSTEND>
  863. .MESSAGE
  864.  %NORMAL% Updating registration information...
  865.  
  866. .REGISTERFILE
  867.  %PRODUCT_NUMBER% %PRODUCT_NAME%
  868.  %PRODUCT_VERSION%
  869.  <DEINSTALL>
  870.  
  871. .EXIT
  872.  
  873. # **********************************************************************
  874. # Help panels ...
  875. # **********************************************************************
  876. .<DISK_SPACE_HELP>
  877. %PRODUCT_NAME% requires %DISK_USAGE%00K to install.  There is
  878. %FREE_SPACE%00K free on drive %ORACLE_DISK%:.  You may try to
  879. proceed anyway.  Unless you plan to install only a portion of
  880. it or you are reinstalling after an unsuccessful installation,
  881. ORAINST will probably terminate abnormally.
  882.  
  883. .<REINSTALL_HELP>
  884. %PRODUCT_NAME% has an entry in REGISTER.ORA, indicating that it has
  885. been installed previously.  You may either abort this installation and
  886. save the version you have already installed, or you may reinstall and
  887. overwrite the existing version.  Entry in REGISTER.ORA follows.
  888.  
  889. Product:  %PRODUCT%
  890. Version:  %VERSION%
  891.  
  892. .<HELP1>
  893. Certain files are required in order to create your own applications.
  894. If you answer Yes, this install will automatically copy the files
  895. needed to create both SQL*Forms applications and programs that can
  896. be called by those applications (user exits).  It will also create
  897. the files you need to add the application generation tables to your
  898. ORACLE database.
  899.  
  900. .<DBA_HELP>
  901. The install program needs to know the DBA authorization password for
  902. your local database in order to start ORACLE.  This is a password at
  903. least six characters long which was chosen when the RDBMS was installed.
  904. If you do not know this password, please check with your ORACLE DBA.
  905.  
  906. Note:  Pressing <ESC> will NOT take you back to the previous prompt from
  907. this point.
  908.  
  909. .<RUNEXITHELP>
  910. If you have a C compiler you can create programs which can be called by
  911. your SQL*Forms applications.  You must install the corresponding ORACLE
  912. precompiler in order to compile and link these programs successfully.
  913. You can still build and run complex forms without the use of
  914. user exits.
  915.  
  916. .<APPLTABSHELP>
  917. In order to design forms, you must have certain tables installed in your
  918. ORACLE database.  If you have already installed a local database, this
  919. install can automatically create these tables (or update them if they are
  920. from an older version of SQL*Forms).  Choose Yes if you would like these
  921. tables to be automatically created/updated.  If you do not have a local
  922. database installed, or would like to create the tables at a later time,
  923. choose No.
  924.  
  925. .<PASSWDHELP>
  926. This installation procedure needs to know the SYSTEM account's password
  927. in order to install the designer tables.
  928.  
  929. .<PARTIAL_HELP>
  930. Some, but not all, of the tables required by the SQL*Forms designer are
  931. present in your database.  The designer will not work unless all of them
  932. are present.  If you wish to correct this, this install can remove the
  933. tables currently present and replace them with a full set.  Any data in
  934. the tables will be lost.  Alternatively, you can run FORMINS.CMD.
  935.  
  936. # **********************************************************************
  937. # Update filelist.ora with filenames not found in .FILES commands
  938. # **********************************************************************
  939. .<DEINSTALL>
  940. %ORACLE_HOME%\PBIN\CONVERT.COM
  941. %ORACLE_HOME%\PBIN\GENERATE.COM
  942. %ORACLE_HOME%\PBIN\RUNFORM.COM
  943. %ORACLE_HOME%\PBIN\SQLFORMS.COM
  944. %ORACLE_HOME%\DBS\IADTABLE.LOG
  945. %ORACLE_HOME%\DBS\IADINDEX.LOG
  946. %ORACLE_HOME%\DBS\IADVIEW.LOG
  947. %ORACLE_HOME%\DBS\IADGRANT.LOG
  948.  
  949.