Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content
Snippets Groups Projects
Select Git revision
  • 7898a6cfd19167783c84c49aace63a510395ac46
  • development default
  • feature/EDELIVERY-13760-translate-server-side-error-messages
  • bugfix/EDELIVERY-14172-domismp-accepts-requests-with-wrong-domain-header-value
  • EDELIVERY-15372-upgrade-libraries-and-plugins-and-update-httpclient-to-httpclient5
  • EDELIVERY-15377-migrate-to-angular-20
  • feature/EDELIVERY-15382-rest-api-jwt-authentication-for-dynamic-discovery-client
  • bugfix/EDELIVERY-14196-select-domain-select-resource-dropdown-should-be-order-alphabetically
  • feature/EDELIVERY-12753-sml-integration-migration-to-different-smp
  • feature/EDELIVERY-13757-extend-session-dialog-should-have-an-active-counter
  • EDELIVERY-15144-sql-update
  • bugfix/EDELIVERY-14326-ui-edit-resource-filters
  • feature/EDELIVERY-15144-domismp-system-notification-generalize-time-expiration-alerts
  • bugfix/EDELIVERY-15102-alert-is-not-appearing-when-adding-duplicated-certificate
  • bugfix/EDELIVERY-15203-small-left-grid-shows-no-data-found-for-1-2-seconds-before-loading-the-data
  • EDELIVERY-15219-search-filter-with-understore-char-does-not-work
  • bugfix/EDELIVERY-15226-certificates-error-when-trying-to-delete-certificates
  • bugfix/EDELIVERY-15224-error-when-trying-to-update-info-from-profile-page
  • bugfix/EDELIVERY-15225-emails-are-not-sent-in-domismp
  • release/5.1.x
  • feature/EDELIVERY-12746-external-secret-sharing-services-as-vaults
  • 5.1.1
  • 5.1
  • 5.1-TEST
  • 5.1-RC1
  • 5.0.1
  • 5.0
  • 5.0-RC1
  • 4.2
  • 4.2-RC1
  • 4.1.2
  • 4.1.1
  • 4.1.0
  • 4.1.0-RC1
  • 4.0.0
  • 4.0.0-RC1
  • 3.0.2
  • 3.0.1
  • 3.0.0
39 results

installDBBinaries.sh

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    installDBBinaries.sh 2.59 KiB
    #!/bin/bash
    # LICENSE UPL 1.0
    #
    # Copyright (c) 1982-2018 Oracle and/or its affiliates. All rights reserved.
    #
    # Since: December, 2016
    # Author: gerald.venzl@oracle.com
    # Description: Sets up the unix environment for DB installation.
    # 
    # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
    # 
    
    # Convert $1 into upper case via "^^" (bash version 4 onwards)
    EDITION=${1^^}
    
    # Check whether edition has been passed on
    if [ "$EDITION" == "" ]; then
       echo "ERROR: No edition has been passed on!"
       echo "Please specify the correct edition!"
       exit 1;
    fi;
    
    # Check whether correct edition has been passed on
    if [ "$EDITION" != "EE" -a "$EDITION" != "SE2" ]; then
       echo "ERROR: Wrong edition has been passed on!"
       echo "Edition $EDITION is no a valid edition!"
       exit 1;
    fi;
    
    # Check whether ORACLE_BASE is set
    if [ "$ORACLE_BASE" == "" ]; then
       echo "ERROR: ORACLE_BASE has not been set!"
       echo "You have to have the ORACLE_BASE environment variable set to a valid value!"
       exit 1;
    fi;
    
    # Check whether ORACLE_HOME is set
    if [ "$ORACLE_HOME" == "" ]; then
       echo "ERROR: ORACLE_HOME has not been set!"
       echo "You have to have the ORACLE_HOME environment variable set to a valid value!"
       exit 1;
    fi;
    
    
    # Replace place holders
    # ---------------------
    sed -i -e "s|###ORACLE_EDITION###|$EDITION|g" $INSTALL_DIR/$INSTALL_RSP && \
    sed -i -e "s|###ORACLE_BASE###|$ORACLE_BASE|g" $INSTALL_DIR/$INSTALL_RSP && \
    sed -i -e "s|###ORACLE_HOME###|$ORACLE_HOME|g" $INSTALL_DIR/$INSTALL_RSP
    
    # Install Oracle binaries
    cd $ORACLE_HOME       && \
    mv $INSTALL_DIR/$INSTALL_FILE_1 $ORACLE_HOME/ && \
    unzip $INSTALL_FILE_1 && \
    rm $INSTALL_FILE_1    && \
    $ORACLE_HOME/runInstaller -silent -force -waitforcompletion -responsefile $INSTALL_DIR/$INSTALL_RSP -ignorePrereqFailure && \
    cd $HOME
    
    if $SLIMMING; then
        # Remove not needed components
        # APEX
        rm -rf $ORACLE_HOME/apex && \
        # ORDS
        rm -rf $ORACLE_HOME/ords && \
        # SQL Developer
        rm -rf $ORACLE_HOME/sqldeveloper && \
        # UCP connection pool
        rm -rf $ORACLE_HOME/ucp && \
        # All installer files
        rm -rf $ORACLE_HOME/lib/*.zip && \
        # OUI backup
        rm -rf $ORACLE_HOME/inventory/backup/* && \
        # Network tools help
        rm -rf $ORACLE_HOME/network/tools/help && \
        # Database upgrade assistant
        rm -rf $ORACLE_HOME/assistants/dbua && \
        # Database migration assistant
        rm -rf $ORACLE_HOME/dmu && \
        # Remove pilot workflow installer
        rm -rf $ORACLE_HOME/install/pilot && \
        # Support tools
        rm -rf $ORACLE_HOME/suptools && \
        # Temp location
        rm -rf /tmp/* && \
        # Database files directory
        rm -rf $INSTALL_DIR/database
    fi