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 installation based on Linux 7

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

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

1. Environment:

1 、 WMware Workstation

2. Linux 7.064-bit iso

3. Install the package:

P13390677_112040_Linux-x86-64_1of7.zip

P13390677_112040_Linux-x86-64_2of7.zip

Create a new virtual machine:

File-- New virtual machine-- typical (recommended)-- next-- install the operating system later-- linux-- version: Red Hat Enterprise Linux 7 64-bit-- next-- Virtual machine name: custom-location (L): choose your own virtual machine location-- next-- disk size: customize (I gave 200g myself)-- split the virtual disk into multiple files ( M)-- next step-- Custom hardware-- memory: 4G Murray-- processor: depending on machine performance, high but low-- the new CD/DVD-- uses the ISO image file: find the iso path to the linu7-- turn it off-- done.

After starting the virtual machine, you will start to enter the installation interface.

3. Install linux7 system:

To turn on the virtual machine, the CD image was selected before, so when enabled, it will be launched from the CD image: select the item with red box content and press enter to start the installation.

After the installation progress is complete, choose to set the root password:

Enter the desktop and the installation is complete.

4. Configure yum repository:

1. Copy the contents of the image to the new directory

$mkdir / home/oracle/Desktop/rhel7

Copy the iso image file to the new directory

2. Configure yum repository

$su-root

# vim / etc/yum.repo.d/rhel7.repo

[rhel7]

Name=rhel7

Baseurl= file:///home/oracle/Desktop/rhel7

Enable=1

Gpgcheck=0

: wq / / Save exit

# yum clean all

# yum makecache

5. Install oracle 11g:

1. Copy the installation package into the system

P13390677_112040_Linux-x86-64_1of7.zip

P13390677_112040_Linux-x86-64_2of7.zip

2. The system enters oracle users.

Open the command prompt:

$su-root

3. Create an oracle installation user group:

# groupadd dba

4. Create an oracle user. Since it was already created when the system was installed, change the user group again.

# useradd-g dba oracle / / when no user is created, the group in which the oracle user is created is dba

# usermod-g dba oracle / / already has oracle users, now add existing users to the dba group.

5. Create a password for the user:

This example has already created the oracle user password when installing the linux system, so it will not be changed.

If you have not created an oracle password, execute the following command:

# passwd oracle can enter the password twice.

6. Use oracle users to configure their environment variables:

$vim .bash _ profile

The base directory of export ORACLE_BASE=/u01/app/oracle / / oracle

Home directory of export ORACLE_HOME=$ORACLE_BASE/product/11204/db_1 / / oracle

Instance name of export ORACLE_SID=test / / oracle

The path to export PATH=$ORACLE_HOME/bin:$PATH / / oracle is added to the environment variable to use the oracle command

Dynamic Link Library of export LD_LIBRARY_PATH=$ORACLE_HOME/lib / / oracle

7. Go back to the root user, create the relevant directory in the environment variable and assign permissions:

# mkdir / U01 / / create a U01 directory

# chown-R oracle:dba / U01 / / assign U01 directory to which the user is oracle and the group is dba

# su-oracle

$mkdir-p $ORACLE_HOME / / create other directories under the U01 directory, and $ORACLE_HOME calls the environment variable to quickly create a directory

8. Extract the oracle installation package:

$unzip p13390677_112040_Linux-x86-64_1of7.zip

Unpack the other one:

$unzip p13390677_112040_Linux-x86-64_2of7.zip

After decompression, there is still only one databae directory.

9. Assign the dba group to the database directory:

$su-root

# chown-R oracle:dba / home/oracle/Desktop/database

10. Enable other users to call the graphical interface installation software:

# xhost +

11. Start installing oracle software under the oracle user:

$cd database/

$. / runInstaller

Configure security updates, fill in the e-mail address to receive security updates, and hope to receive security updates through My Oracle Support.

B, for the security update mailbox is not configured, the next step prompt information, for security problems, it is best to provide a mailbox.

Continue to select yes.

C. Download the update software: here we choose to skip the software update project

D, installation options:

As the name implies, a new installation database needs to choose the first one, but if someone wants to build their own library, they can choose the second one.

This time the instance chooses to install only oracle software.

E. Choose which oracle system to install:

F, product language: choose simplified Chinese and English.

G, database version: select Enterprise version (4.7GB)

H, database installation location:

Oracle_base (oracle basic directory): / u01/app/oracle

Software location (software installation directory): / u01/app/oracle/product/11204/db_1

The above directory is the system default, and the previous setting of the environment variable is the same. If you need to modify the default installation path, then the environment variable should also be changed.

I 、

Create a product list:

The manifest directory can be changed by itself or not by default, but the permissions of this directory should be accessible to the dba group.

J. The group to which operating system personnel belong:

K, system parameter configuration, generating script running, automatic configuration.

L. Install the required packages:

# yum list | grep gcc / / query the required package

# yum install-y gcc.x86_64 / / install the gcc.x86_64 package

The subsequent software package can be found and installed in accordance with the above method.

If there are no 2 packages under linux7, just ignore (ignore all) and proceed to the next step of installation.

There will be a warning when you continue, just press yes.

After m, install, you begin to install the database.

N. An error occurred during installation:

Solution:

Save the installation process, open another terminal window, change the $(MK_EMAGENT_NMECTL) in the ins_emagent.mk file to $(MK_EMAGENT_NMECTL)-lnnz11, and click Retry during the installation process.

During the installation process, you need to run 2 scripts, both of which will be run using the root identity.

After running the script, press "ok" on the pop-up box.

6. after the installation of the database software is completed, build the database:

A. Use the command to call the database to build a database graphically:

$adbc

The installation is all over!

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

Wechat

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

12
Report