Giter Site home page Giter Site logo

dmjesus / oracle-install-scripts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from simonkrenger/oracle-install-scripts

0.0 0.0 0.0 92 KB

Simons Oracle Installation Scripts for Oracle 12c to automate database installation and configuration

Home Page: http://www.krenger.ch

Shell 100.00%

oracle-install-scripts's Introduction

Simons Oracle Installation Scripts

This repository contains scripts to automate an Oracle database installation. The scripts are self-contained and allow you to perform installation and configuration of a new Oracle database on a vanilla Oracle Linux distribution. The scripts install the software according to the Optimal Flexible Architecture (OFA).

I mainly use these scripts for my own personal database setups. Currently, the following scripts are available (for detailed description, see below):

  • pandora-ks.cfg (Kickstart file)
  • install_db_software.sh
  • mkoradb.sh

Guide

Prerequisites

Before starting, make sure you have the following software available:

How-to

  1. Create a new virtual machine with 1 disk and at least 2GB of RAM

  2. Start the VM and at the initial prompt, press TAB. Then, append the kick start parameter:

    ks=https://raw.github.com/simonkrenger/oracle-install-scripts/master/oracle-linux-kickstart/pandora-ks.cfg

  3. Your VM will now be automatically set up. The following scripts will be automatically downloaded to the machine.

  4. After the installation finished, copy the 4 install ZIP files (linuxamd64_12c_database_1of2.zip, linuxamd64_12c_database_2of2.zip, linuxamd64_12c_grid_1of2.zip, linuxamd64_12c_grid_2of2.zip) to "/home/oracle/".

  5. As "root", execute "/root/install_db_software.sh"

  6. Then, as "oracle", execute "/home/oracle/mkoradb.sh"

  7. Enjoy your newly installed Oracle database

Script Description

pandora-ks.cfg

This is a kickstart file to automatically set up an Oracle Linux virtual machine with all prerequisites to install Oracle Database.

install_db_software.sh

In its current form, this script allows you to automatically install the Oracle 12c Grid Infrastructure (GI) and Oracle 12c Database Software on an Oracle Linux server. For prerequisites, see the header of the script itself. Execute this script as the root user. There are a few variables that you can tweak:

Variable Description
ORACLE_USER  User that will perform the Oracle installation and be the owner of the Oracle software directory
ORACLE_HOME Installation directory (defaults to OFA)
ORACLE_BASE Oracle software base directory (defaults to OFA)
ORACLE_BASE_MOUNTS Mountpoints that are used for the installation (defaults to OFA)
ORACLE_INVENTORY_LOCATION  Location of the Oracle software inventory
ORACLE_INSTALLFILES_LOCATION Location of the Oracle software ZIP files
GRID_USER User that will own the GI software directory
GRID_BASE  GI base directory
GRID_HOME GI Installation directory
ORACLE_MEMORY_SIZE Size of the shared memory pool (shmfs)

mkoradb.sh

This script allows you to create a new Oracle 12c database or Oracle 11g database on a server where the Oracle software was already installed. The script will create the necessary folders (according to OFA), prepare all necessary files for database configuration and will then create a new database. Execute this script as the oracle user. There are a few variables that you can tweak:

Variable Description
ORACLE_SID Name of the database you want to create (will be the name of the instance as well as the DB_NAME)
ORACLE_HOME Installation directory (defaults to OFA)
ORACLE_BASE Oracle software base directory (defaults to OFA)
MY_ORACLE_PASSWD Password for the SYS and SYSTEM user
MY_MEMORY_TARGET Value for MEMORY_TARGET
MY_REDO_SIZE Size of a single redo file
MY_CHARSET Character set to use for the database (default AL32UTF8)
MY_NCHARSET National character set to use for the database (default AL16UTF16)

Work in progress

These scripts are far from perfect, I just like to keep them handy for my own reference. Use with caution and at your own risk.

oracle-install-scripts's People

Contributors

simonkrenger avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.