Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

ORACLE initial installation automatic installation package

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

First, automatically install the required software packages

Configure yum warehouse ahead of time

Define the package.txt package list file: take the official website RHEL6 as an example, there are two packages for compat-libstdc++. If you don't add * and +, the compat-libstdc++-33-3.2.3-69.el6.x86 packages 64 after the + sign cannot be identified directly and need to be represented by *. If you encounter a missing package during installation, you can use the command: yum whatprovides libstdc++.so.5 Check the package that depends on this library and install it. Here is the package.txt file

Binutilscompat-libcap1compat-libstdc++*gccgcc-c++glibcglibc-develkshlibgcclibstdc++libstdc++-devellibaiolibaio-develmakesysstat

Write the installation script package.sh: define the installation log to / root/package.log, and it is easy to check the installation status after the installation is completed.

#! / bin/bashfor I in`cat / root/ package.txt`do rpm-Q $I if [$?-eq 0]; then echo "Package $i is already intsalled" > / root/package.log 2 > & 1 else yum install-y $I echo "Package $i is now installed" > / root/package.log 2 > & 1 fidone

Automatically add users and user groups

Automatically add user groups, create directories, define oracle passwords, and then add environment variables, kernel parameters, etc. The oracle password is set to oracle

#! / bin/bash for i in dbaoinstalldo cat / etc/group | grep $I > / dev/null2 > & 1 if [$?-eq 0] Then echo "Group $i is already exist" else groupadd-r $i fidone id oracle > / dev/null 2 > & 1 & & echo "User Oracle is already exist" | | useradd-g oinstall-G dba oracle#set password for oracleecho "oracle" | passwd-- stdin oracle#create dictionary for installmkdir-p / u01/appchown-R oracle:oinstall / u01/appchmod 775-R / u01/app

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report