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

How to install oracle 7.4 12c

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

Share

Shulou(Shulou.com)05/31 Report--

This article introduces the knowledge of "how to install oracle 7.412c". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Mount the installation media

[root@oracle01 ~] # mkdir / kingsql

[root@oracle01 ~] # mount / dev/cdrom / kingsql

Mount: / dev/sr0 is write-protected, mounting read-only

[root@oracle01 ~] # mount / dev/cdrom / kingsql

Mount: / dev/sr0 is write-protected, mounting read-only

Mount: / dev/sr0 is already mounted or / kingsql busy

/ dev/sr0 is already mounted on / run/media/vdedu/RHEL-7.4 Server.x86_64

/ dev/sr0 is already mounted on / kingsql

[root@oracle01 ~] # vi / etc/yum.repos.d/kingsql.repo

[kingsql]

Name=kingsql

Baseurl= file:///kingsql

Enabled=1

Gpgcheck=0

Gpgkey= file:///kingsql/RPM-GPG-KEY-redhat-release

[root@oracle01 ~] # yum-y install binutils elfutils-libelf elfutils-libelf-devel elfutils-libelf-devel-static gcc gcc-c++ glibc glibc-common glibc-devel kernel-headers ksh libaio libaio-devel libgcc libgomp libstdc++ libstdc++-devel make numactl-devel sysstat unixODBC unixODBC-devel pdksh compat-libcap1 libXext* libXtst* libX11* libXau* libxcb* libXi* nscd* libXp* xorg* xterm* unzip* readline* compat*

Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager

This system is not registered with an entitlement server. You can use subscription-manager to register.

Kingsql | 4.1 kB 00:00:00

(1x2): kingsql/group_gz | 137 kB 00:00:00

(2ap2): kingsql/primary_db | 4.0 MB 00:00:00

Complete!

[root@oracle01 ~] # systemctl disable avahi-daemon.service

Removed symlink / etc/systemd/system/multi-user.target.wants/avahi-daemon.service.

Removed symlink / etc/systemd/system/sockets.target.wants/avahi-daemon.socket.

Removed symlink / etc/systemd/system/dbus-org.freedesktop.Avahi.service.

[root@oracle01 ~] # chkconfig avahi-daemon off

Note: Forwarding request to 'systemctl disable avahi-daemon.service'.

[root@oracle01 ~] # ps-ef | grep avahi

Avahi 790 1 0 15:03? 00:00:00 avahi-daemon: running [oracle01.local]

Avahi 796 790 0 15:03? 00:00:00 avahi-daemon: chroot helper

Root 15520 15138 0 15:13 pts/3 00:00:00 grep-color=auto avahi

[root@oracle01] # kill-9 790

[root@oracle01 ~] # ps-ef | grep avahi

[root@oracle01 ~] # vi / etc/sysconfig/network

# Created by anaconda

NOZEROCONF=yes

[root@oracle01 ~] # vi / etc/selinux/config

# This file controls the state of SELinux on the system.

# SELINUX= can take one of these three values:

# enforcing-SELinux security policy is enforced.

# permissive-SELinux prints warnings instead of enforcing.

# disabled-No SELinux policy is loaded.

SELINUX=disabled

# SELINUXTYPE= can take one of three two values:

# targeted-Targeted processes are protected

# minimum-Modification of targeted policy. Only selected processes are protected.

# mls-Multi Level Security protection.

SELINUXTYPE=targeted

[root@oracle01] # firewall-cmd-- state

Running

[root@oracle01 ~] # vi 1.sh

Groupadd-g 2100 oinstall

Groupadd-g 2300 dba

Groupadd-g 2301 oper

Useradd-m-u 1101-g oinstall-G dba,oper-d / home/oracle-s / bin/bash-c "Oracle Software Owner" oracle

Passwd oracle

Mkdir-p / u01/app/oracle

Chown-R oracle:oinstall / U01

Chmod-R 775 / U01

Ls-lR / U01

[root@oracle01 ~] # sh 1.sh

Changing password for user oracle.

New password:

BAD PASSWORD: The password is shorter than 8 characters

Retype new password:

Passwd: all authentication tokens updated successfully.

/ u01:

Total 0

Drwxrwxr-x. 3 oracle oinstall 20 Jan 2 15:18 app

/ u01/app:

Total 0

Drwxrwxr-x. 2 oracle oinstall 6 Jan 2 15:18 oracle

/ u01/app/oracle:

Total 0

[root@oracle01 ~] #

[root@oracle01 ~] # su-oracle

[oracle@oracle01 ~] $vi .bash _ profile

# .bash _ profile

# Get the aliases and functions

If [- f ~ / .bashrc]; then

. ~ / .bashrc

Fi

# User specific environment and startup programs

PATH=$PATH:$HOME/.local/bin:$HOME/bin

Export PATH

Export PATH

Export ORACLE_BASE=/u01/app/oracle

Export ORACLE_HOME=/u01/app/oracle/product/12.2.0/dbhome_1

Export ORACLE_SID=VDEDU

Export ORACLE_TERM=xterm

Export PATH=/usr/sbin:$PATHexport PATH=/u01/app/ogg:$ORACLE_HOME/bin:$PATH

Export LD_LIBRARY_PATH=/u01/app/ogg:$ORACLE_HOME/lib:/lib:/usr/lib:$LD_LIBRARY_PATH

Export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib

Export NLS_DATE_FORMAT= "yyyy-mm-dd HH24:MI:SS"

Export NLS_LANG=AMERICAN_AMERICA.AL32UTF8

Export

Export ORACLE_UNQNAME=kingsql

[oracle@oracle01 ~] $su-root

Password:

Last login: Wed Jan 2 15:08:11 CST 2019 from 192.168.192.1 on pts/3

[root@oracle01 ~] #

[root@oracle01 ~] # vi / etc/sysctl.conf

Fs.file-max = 6815744

Kernel.sem = 250 32000 100 128

Kernel.shmmni = 4096

Kernel.shmall = 1073741824

Kernel.shmmax = 4398046511104

Kernel.panic_on_oops = 1

Net.core.rmem_default = 262144

Net.core.rmem_max = 4194304

Net.core.wmem_default = 262144

Net.core.wmem_max = 1048576

Net.ipv4.conf.all.rp_filter = 2

Net.ipv4.conf.default.rp_filter = 2

Fs.aio-max-nr = 1048576

Net.ipv4.ip_local_port_range = 9000 65500

[root@oracle01] # / sbin/sysctl-p

[root@oracle01 ~] # vi / etc/security/limits.conf

Oracle soft nofile 1024

Oracle hard nofile 65536

Oracle soft nproc 16384

Oracle hard nproc 16384

Oracle soft stack 10240

Oracle hard stack 32768

Oracle hard memlock 134217728

Oracle soft memlock 13421772

[root@oracle01 ~] # vi / etc/pam.d/login

Session required pam_limits.so

[root@oracle01 ~] # vi / etc/hosts

Transfer installation package

[oracle@oracle01 ~] $unzip linuxx64_12201_database.zip

Start graphics

[root@oracle01 ~] # / u01/app/oraInventory/orainstRoot.sh

Changing permissions of / u01/app/oraInventory.

Adding read,write permissions for group.

Removing read,write,execute permissions for world.

Changing groupname of / u01/app/oraInventory to oinstall.

The execution of the script is complete.

[root@oracle01 ~] # / u01/app/oracle/product/12.2.0/dbhome_1/root.sh

Performing root user operation.

The following environment variables are set as:

ORACLE_OWNER= oracle

ORACLE_HOME= / u01/app/oracle/product/12.2.0/dbhome_1

Enter the full pathname of the local bin directory: [/ usr/local/bin]:

Copying dbhome to / usr/local/bin...

Copying oraenv to / usr/local/bin...

Copying coraenv to / usr/local/bin...

Creating / etc/oratab file...

Entries will be added to the / etc/oratab file as needed by

Database Configuration Assistant when a database is created

Finished running generic part of root script.

Now product-specific root actions will be performed.

Do you want to setup Oracle Trace File Analyzer (TFA) now? Yes | [no]:

Oracle Trace File Analyzer (TFA-User Mode) is available at:

/ u01/app/oracle/product/12.2.0/dbhome_1/suptools/tfa/release/tfa_home/bin/tfactl

OR

Oracle Trace File Analyzer (TFA-Daemon Mode) can be installed by running this script:

/ u01/app/oracle/product/12.2.0/dbhome_1/suptools/tfa/release/tfa_home/install/roottfa.sh

[oracle@oracle01 ~] # netca

[oracle@oracle01 ~] # dbca

This is the end of "how to install oracle 7.4 12c". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

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