久久精品人人爽,华人av在线,亚洲性视频网站,欧美专区一二三

怎么安裝oracle 7.4 12c

185次閱讀
沒有評論

共計 6175 個字符,預計需要花費 16 分鐘才能閱讀完成。

本篇內容介紹了“怎么安裝 oracle 7.4 12c”的有關知識,在實際案例的操作過程中,不少人都會遇到這樣的困境,接下來就讓丸趣 TV 小編帶領大家學習一下如何處理這些情況吧!希望大家仔細閱讀,能夠學有所成!

掛載安裝介質

[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     

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

(2/2): 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 

傳安裝包

[oracle@oracle01 ~]$ unzip linuxx64_12201_database.zip 

啟動圖形化

[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 

“怎么安裝 oracle 7.4 12c”的內容就介紹到這里了,感謝大家的閱讀。如果想了解更多行業相關的知識可以關注丸趣 TV 網站,丸趣 TV 小編將為大家輸出更多高質量的實用文章!

正文完
 
丸趣
版權聲明:本站原創文章,由 丸趣 2023-07-24發表,共計6175字。
轉載說明:除特殊說明外本站除技術相關以外文章皆由網絡搜集發布,轉載請注明出處。
評論(沒有評論)
主站蜘蛛池模板: 巴林左旗| 永春县| 禄丰县| 托里县| 安丘市| 若尔盖县| 奉新县| 隆子县| 临汾市| 绥中县| 南开区| 大同县| 靖州| 自治县| 浦北县| 保定市| 曲水县| 平山县| 广安市| 贵南县| 连州市| 枞阳县| 商南县| 丰宁| 澄城县| 隆尧县| 上林县| 松江区| 司法| 浦城县| 常山县| 桑日县| 黄梅县| 太谷县| 屯昌县| 福鼎市| 铜川市| 开江县| 正定县| 陆丰市| 闽清县|