Installing Db2 12

Start of changeInstalling Db2 involves running the installation jobs, connecting the facilities that allow TSO, batch, IMS, and CICS® to access Db2 resources, and preparing Db2 for use. After you complete the installation steps, function level 500 or higher is activated and available for use.End of change

Before you begin

Before you begin installing Db2, complete the following prerequisites:

  • Review the information about Db2 security with your system security administrator, and plan and implement your Db2 security environment. See in particular Defining RACF user IDs for Db2-started tasks and Permitting RACF access, which can help you plan your security environment even if you use an alternative security product. After initial installation of Db2, subsequent installation tasks and jobs require specific authorization in order to connect to Db2.
  • If you plan to have data sharing enabled (Enable option on panel DSNTIPP1), you should save all your jobs from the original installation or migration in a different data set than the enabling jobs. If you save them in prefix.NEW.SDSNSAMP, the jobs might be overwritten.
  • Use Information/Access or the ServiceLink facility of IBMLink to check the most current information about Db2 and other products. If you do not have access to IBMLink, contact IBM® Support. For keyword specifications used for Preventive Service Planning (PSP), see the Db2 Program Directory.

You must not use secondary authorization IDs to perform any of the following installation steps.

Procedure

To install Db2 12 for z/OS®, complete the following steps:

  1. Estimate storage needs for your Db2 12 environment. For more information, see Storage requirements for Db2 for z/OS.
  2. If you are using distributed data, install TCP⁄IP, VTAM, or both. For more information, see Connecting distributed database systems .
  3. If you plan to use data sharing, set up a Parallel Sysplex®. For more information, see Parallel Sysplex requirements for Db2 data sharing.
  4. Use SMP/E to load the Db2 12 libraries. For more information, see Making the Db2 product code available.
    Remember: Start of changeIf you copy Db2 library data sets from one system to another, such as for installing a related test or production subsystem, ensure that you copy all of the Db2 library data sets to the same location. For example, if you copy the SDNSLOAD data set from one system to another but omit the DBRMLIB data set, the resulting mismatch can cause job DSNTIJRT to fail with SQLCODE -812.End of change

    If you plan to use the callable SQL interface of Db2, see Configuring Db2 ODBC and running sample applications for the additional installation jobs that you need to run. If you plan to use Db2 for z/OS Java™ Edition, you must run more installation jobs. For more information, see Installing the IBM Data Server Driver for JDBC and SQLJ.

  5. Provide an SMS environment for managing Db2 catalog and directory data sets.
    The SMS environment must include a data class for allocating the data sets in extended format and using extended addressability. You are not required to convert existing Db2 catalog and directory data sets to the SMS environment before migrating to Db2 12. These data sets will be converted the next time the related table space is reorganized. For information on using sample job DSNTIJSS to define an SMS environment for data sets that are associated with the Db2 catalog and directory, see Installation step 1: Define the SMS environment for Db2 catalog and directory data sets: DSNTIJSS.
  6. Generate tailored JCL jobs for installing Db2 12. For more information, see Generating tailored Db2 12 installation, migration, or function level activation jobs.
    Tip: Consider automating the remainder of the installation process by using z/OSMF work flows. For more information, see Automating Db2 installation or migration with z/OS Management Facility.
  7. Edit and run the jobs that install your Db2 Db2 12 subsystem by completing the following tasks.
    Tip: Tasks that are marked optional in the following table are not strictly required for a successful installation of Db2 12. However, they are generally recommended as best practices, and some of them might be required in your Db2 environment.
    Task number Installation task Optional task? Jobs to run for this task
    1 Define the SMS environment for Db2 catalog and directory data sets  
    • DSNTIJSS
    Start of change2End of change Start of changeDefine Db2 to IRLM and MVSEnd of change Start of change End of change Start of change
    • DSNTIJMV
    End of change
    Start of change3End of change Start of changeDefine Db2 address space startup procedures, language procedures, and the Java WLM environmentEnd of change Start of change End of change Start of change
    • DSNTIJMA
    • DSNTIJMW
    • DSNTIJMP
    • DSNTIJMJ
    End of change
    4 Define the ICF catalog and alias Yes
    • DSNTIJCA
    5 Define system data sets  
    • DSNTIJIN
    Start of change6End of change Start of changeDefine Db2 initialization parametersEnd of change Start of change End of change Start of change
    • DSNTIJUZ
    • DSNTIJUA
    • DSNTIJUM
    • DSNTIJUL
    End of change
    7 Initialize system data sets:  
    • DSNTIJID
    • DSNTIJIE
    • DSNTIJIF
    8 Define user authorization exit routines Yes
    • DSNTIJEX
    9 Record Db2 data to SMF Yes  
    10 Establish subsystem security Yes  
    11 Connect Db2 to TSO    
    12 Connect Db2 to IMS Yes  
    13 Connect CICS to Db2 Yes  
    14 Define Db2 to z/OS    
    15 Start the Db2 subsystem    
    16 Tailor the Db2 catalog  
    • DSNTIJTC
    17 Installation step 17: Activate Db2 12 function levels. DSNTIJAF (optional)  
    • DSNTIJAF
    18 Create default storage group, define temporary work files, and bind Db2 REXX Language Support  
    • DSNTIJTM
    19 Define and bind Db2 objects  
    • DSNTIJSG
    20 Populate the user-maintained databases Yes  
    21 Configure Db2 for running stored procedures and user-defined functions    
    22 Set up Db2-supplied routines  
    • DSNTIJRT
    • DSNTIJRV
    23 Back up the Db2 directory and catalog  
    • DSNTIJIC
    24 Set up the administrative task scheduler    
    25 Verify successful installation of Db2 12   See Installation verification phases and programs.
  8. Enable more capabilities in your Db2 environment. For more information, see Configuring additional capabilities for Db2 for z/OS.
Start of change

What to do next

You might want to activate new capabilities that are introduced by higher Db2 12 function levels. For more information about continuous delivery and function levels in Db2 12, see the following topics:
End of change