/* Copyright (c) Oracle Corporation 1992.  All Rights Reserved */
/*****************************************************************************
  NAME
    rdbms70.ins - NetWare V3 installation script for the ORACLE version 7 rdbms

  DESCRIPTION
    This script installs the ORACLE version 7 rdbms by copying the appropriate
    files and optionally installing a "seed" database.

  OWNER
    Tony Rodgers

  MODIFIED    DD-MMM-YY Reason
    vokamura  20-NOV-92 update
    vokamura  23-JUL-92 Modify for NetWare installation
    trodgers  01-APR-92 Created.
*****************************************************************************/
{
/*****************************************************************************
  Start processing ...
*****************************************************************************/
  if (doit)
  {
    install( nwutil70 );
    install( nwspx11 );

    ui_product(product_label);

    ui_action( instantiate(installing_scripts) );
    copy(deinstl);

    ui_action( instantiate(installing_nlms) );
    copy(nlm,dist_response);

    ui_action( installing_patches );
    copy(novpat);

    ui_action( instantiate(installing_msbs) );
    copy(msg,nls_abbreviation);

    ui_action( instantiate(installing_ncf) );
    copy(ncf);

    ui_action( instantiate(installing_sql) );
    copy(sql);

    ui_action( installing_plsql );
    copy(plsql);

    ui_action( instantiate(installing_demo) );
    copy(demo);

    ui_action( instantiate(installing_doc) );
    copy(doc);

    if (install_seed_database)
    {
      ui_action( installing_seed );
      copy(init);
      copy(seed);
    }
    else
      if (not(exists("%rdbms70%\init.ora")))
        copy(init);

    ui_action( instantiate(modifying_server_config) );
    modify("RDBMS70",RDBMS70,"%server%/%ora_config%","=");
    modify("PLSQL20",PLSQL20,"%server%/%ora_config%","=");
    modify("DBA_AUTHORIZATION","BYPASS","%server%/%ora_config%","=");
    modify("ORA_SQLDBA_MODE","LINE","%server%/%ora_config%","=");
    modify("NLS_LANG",nls_language,"%server%/%ora_config%","=");

    {
      ui_action("%grp_msg%");
      nw_create_group("%server%", "%grp_name%");
    }
    [ 'ALREADY_EXISTS: continue(); ]


    ui_action( instantiate(registering) );
    register(product,comment);


   information_dialog(exit7_prompt);

  }

  if (not(internally_called))
    reference(product);
}
