CentOS7安装oracle19c

2023-11-11

教程 https://zhuanlan.zhihu.com/p/571737575

CentOS7安装oracle19c教程

https://zhuanlan.zhihu.com/p/571737575

一:准备工作
1创建 oracle 用户 ,以后操作数据库都使用这个用户 ,而不是root。

[root@rhel ~]# vi /etc/hosts
[root@rhel ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 7.7 (Maipo)
[root@rhel ~]# /usr/sbin/groupadd -g 54321 oinstall
[root@rhel ~]# /usr/sbin/groupadd -g 54322 dba
[root@rhel ~]# /usr/sbin/groupadd -g 54323 oper
[root@rhel ~]# /usr/sbin/useradd -u 54321 -g oinstall -G dba,oper oracle

2修改用户密码:

[root@rhel ~]# passwd oracle 
Changing password for user oracle.
New password: 
BAD PASSWORD: The password is shorter than 8 characters
Retype new password: 
passwd: all authentication tokens updated successfull

3关闭防火墙还有selinux

[root@rhel ~]# systemctl stop firewalld.service 
[root@rhel ~]# systemctl disable firewalld.service 
Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
[root@rhel ~]# 

4修改SELINUX=disabled

[root@rhel ~]# vi /etc/selinux/config 
[root@rhel ~]# more /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 values:
#     targeted - Targeted processes are protected,
#     minimum - Modification of targeted policy. Only selected processes are pro
tected. 
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted 

4创建工作的目录,然后赋予相应的权限。

[root@rhel ~]# mkdir -p /u01/app/oracle/product/19.2.0/db_1
[root@rhel ~]# 
[root@rhel ~]# chown -R oracle:oinstall /u01/
[root@rhel ~]# 
[root@rhel ~]# chmod -R 775 /u01/

5配置Oracle的环境变量
首先

su - oracle

[oracle@rhel ~]$ vi .bash_profile 
[oracle@rhel ~]$ more .bash_profile 
[oracle@rhel ~]$ more  .bash_profile   

修改 oracle 环境变量

   
# .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
ORACLE_SID=sanshi;export ORACLE_SID
ORACLE_UNQNAME=sanshi;export ORACLE_UNQNAME
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/19.2.0/db_1; export ORACLE_HOME
NLS_DATE_FORMAT="YYYY:MM:DDHH24:MI:SS"; export NLS_DATE_FORMAT
NLS_LANG=american_america.ZHS16GBK; export NLS_LANG
TNS_ADMIN=$ORACLE_HOME/network/admin; export TNS_ADMIN
ORA_NLS11=$ORACLE_HOME/nls/data; export ORA_NLS11
PATH=.:${JAVA_HOME}/bin:${PATH}:$HOME/bin:$ORACLE_HOME/bin:$ORA_CRS_HOME/bin
PATH=${PATH}:/usr/bin:/bin:/usr/bin/X11:/usr/local/bin
export PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$ORACLE_HOME/oracm/lib
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/lib:/usr/lib:/usr/local/lib
export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/JRE
CLASSPATH=${CLASSPATH}:$ORACLE_HOME/jlib
CLASSPATH=${CLASSPATH}:$ORACLE_HOME/rdbms/jlib
CLASSPATH=${CLASSPATH}:$ORACLE_HOME/network/jlib
export CLASSPATH
THREADS_FLAG=native; export THREADS_FLAG
export TEMP=/tmp
export TMPDIR=/tmp
umask 022

6修改内核参数

[root@rhel /]# vi /etc/sysctl.conf 
[root@rhel /]# more /etc/sysctl.conf 
# sysctl settings are defined through files in
# /usr/lib/sysctl.d/, /run/sysctl.d/, and /etc/sysctl.d/.
#
# Vendors settings live in /usr/lib/sysctl.d/.
# To override a whole file, create a new file with the same in
# /etc/sysctl.d/ and put new settings there. To override
# only specific settings, add a file with a lexically later
# name in /etc/sysctl.d/ and put new settings there.
#
# For more information, see sysctl.conf(5) and sysctl.d(5).

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
fs.aio-max-nr = 1048576
net.ipv4.ip_local_port_range = 9000 65500
[root@rhel /]# 

生效

[root@rhel /]# sysctl -p
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
fs.aio-max-nr = 1048576
net.ipv4.ip_local_port_range = 9000 65500

或者

[root@rhel /]# sysctl --system
* Applying /usr/lib/sysctl.d/00-system.conf ...
* Applying /usr/lib/sysctl.d/10-default-yama-scope.conf ...
kernel.yama.ptrace_scope = 0
* Applying /usr/lib/sysctl.d/50-default.conf ...
kernel.sysrq = 16
kernel.core_uses_pid = 1
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.all.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
net.ipv4.conf.all.accept_source_route = 0
net.ipv4.conf.default.promote_secondaries = 1
net.ipv4.conf.all.promote_secondaries = 1
fs.protected_hardlinks = 1
fs.protected_symlinks = 1
* Applying /usr/lib/sysctl.d/60-libvirtd.conf ...
fs.aio-max-nr = 1048576
* Applying /etc/sysctl.d/99-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
fs.aio-max-nr = 1048576
net.ipv4.ip_local_port_range = 9000 65500
  1. 修改环境变量
[root@rhel db]# vi /etc/profile
[root@rhel db]# more /etc/profile
# /etc/profile

# System wide environment and startup programs, for login setup
# Functions and aliases go in /etc/bashrc

# It's NOT a good idea to change this file unless you know what you
# are doing. It's much better to create a custom.sh shell script in
# /etc/profile.d/ to make custom changes to your environment, as this
# will prevent the need for merging in future updates.

pathmunge () {
    case ":${PATH}:" in
        *:"$1":*)
            ;;
        *)
            if [ "$2" = "after" ] ; then
                PATH=$PATH:$1
            else
                PATH=$1:$PATH
            fi
    esac
}


if [ -x /usr/bin/id ]; then
    if [ -z "$EUID" ]; then
        # ksh workaround
        EUID=`/usr/bin/id -u`
        UID=`/usr/bin/id -ru`
    fi
    USER="`/usr/bin/id -un`"
    LOGNAME=$USER
    MAIL="/var/spool/mail/$USER"
fi

# Path manipulation
if [ "$EUID" = "0" ]; then
    pathmunge /usr/sbin
    pathmunge /usr/local/sbin
else
    pathmunge /usr/local/sbin after
    pathmunge /usr/sbin after
fi

HOSTNAME=`/usr/bin/hostname 2>/dev/null`
HISTSIZE=1000
if [ "$HISTCONTROL" = "ignorespace" ] ; then
    export HISTCONTROL=ignoreboth
else
    export HISTCONTROL=ignoredups
fi

export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE HISTCONTROL

# By default, we want umask to get set. This sets it for login shell
# Current threshold for system reserved uid/gids is 200
# You could check uidgid reservation validity in
# /usr/share/doc/setup-*/uidgid file
if [ $UID -gt 199 ] && [ "`/usr/bin/id -gn`" = "`/usr/bin/id -un`" ]; then
    umask 002
else
    umask 022
fi

#oracle
export ORACLE_HOME=/u01/app/oracle/product/19.3.0/db_1
export ORACLE_SID=orcl
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi

for i in /etc/profile.d/*.sh /etc/profile.d/sh.local ; do
    if [ -r "$i" ]; then
        if [ "${-#*i}" != "$-" ]; then 
            . "$i"
        else
            . "$i" >/dev/null
        fi
    fi
done

unset i

  1. 修改用户登录认证

vim /etc/pam.d/login
###############添加如下内容
session required /lib64/security/pam_limits.so
session required pam_limits.so

[root@rhel db]# vim /etc/pam.d/login
[root@rhel db]# more /etc/pa
pam.d/     papersize  passwd     passwd-    
[root@rhel db]# more /etc/pam.d/login 
#%PAM-1.0
auth [user_unknown=ignore success=ok ignore=ignore default=bad] pam_securetty.so
auth       substack     system-auth
auth       include      postlogin
account    required     pam_nologin.so
account    include      system-auth
password   include      system-auth
# pam_selinux.so close should be the first session rule
session    required     pam_selinux.so close
session    required     pam_loginuid.so
session    optional     pam_console.so
# pam_selinux.so open should only be followed by sessions to be executed in the 
user context
session    required     pam_selinux.so open
session    required     pam_namespace.so
session    optional     pam_keyinit.so force revoke
session    include      system-auth
session    include      postlogin
-session   optional     pam_ck_connector.so
session    required     pam_limits.so
session    required     /lib/security/pam_limits.so

[root@rhel db]# 

9yum配置
建目录,将光盘挂载到目录

[root@rhel ~]# mkdir -p /mnt/cdrom
[root@rhel ~]# df -Th
Filesystem            Type      Size  Used Avail Use% Mounted on
devtmpfs              devtmpfs  3.9G     0  3.9G   0% /dev
tmpfs                 tmpfs     3.9G     0  3.9G   0% /dev/shm
tmpfs                 tmpfs     3.9G   13M  3.9G   1% /run
tmpfs                 tmpfs     3.9G     0  3.9G   0% /sys/fs/cgroup
/dev/mapper/rhel-root xfs        29G  4.7G   24G  17% /
/dev/sda1             xfs       1.9G  169M  1.8G   9% /boot
/dev/mapper/rhel-u01  xfs        20G   33M   20G   1% /u01
tmpfs                 tmpfs     797M   12K  797M   1% /run/user/42
tmpfs                 tmpfs     797M     0  797M   0% /run/user/0
[root@rhel ~]# df -Th
Filesystem            Type      Size  Used Avail Use% Mounted on
devtmpfs              devtmpfs  3.9G     0  3.9G   0% /dev
tmpfs                 tmpfs     3.9G     0  3.9G   0% /dev/shm
tmpfs                 tmpfs     3.9G   13M  3.9G   1% /run
tmpfs                 tmpfs     3.9G     0  3.9G   0% /sys/fs/cgroup
/dev/mapper/rhel-root xfs        29G  4.7G   24G  17% /
/dev/sda1             xfs       1.9G  169M  1.8G   9% /boot
/dev/mapper/rhel-u01  xfs        20G   33M   20G   1% /u01
tmpfs                 tmpfs     797M   12K  797M   1% /run/user/42
tmpfs                 tmpfs     797M   44K  797M   1% /run/user/0
/dev/sr0              iso9660   4.2G  4.2G     0 100% /run/media/root/RHEL-7.7 Server.x86_64

[root@rhel ~]# mount /dev/sr0 /mnt/cdrom/
mount: /dev/sr0 is write-protected, mounting read-only

[root@rhel yum.repos.d]# cat localyum.repo 
[media]
name=media
baseurl=file:///mnt/cdrom
enabled=1
gpgcheck=0
[root@rhel yum.repos.d]# yum clean all
[root@rhel yum.repos.d]# yum repolist all
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.
repo id                           repo name                       status
media                             media                           enabled: 5,229
repolist: 5,229
  1. 修改认证模块
[root@rhel app]# vim /etc/security/limits.conf
[root@rhel app]# more /etc/security/limits.conf 
# /etc/security/limits.conf
#

#ftp             hard    nproc           0
#@student        -       maxlogins       4

###################添加如下内容
oracle soft nproc 131072
oracle hard nproc 131072
oracle soft nofile 131072
oracle hard nofile 131072
oracle soft core unlimited
oracle hard core unlimited
oracle soft memlock 50000000
oracle hard memlock 50000000

# End of file

[root@rhel app]# 

11下面开始安装依赖包

[root@rhel yum.repos.d]# yum install bc \
> gcc \
> gcc-c++ \
> binutils \
> compat-libcap1 \
> compat-libstdc++ \
> dtrace-modules \
> dtrace-modules-headers \
> dtrace-modules-provider-headers \
> dtrace-utils \
> elfutils-libelf \
> elfutils-libelf-devel \
> fontconfig-devel \
> glibc \
> glibc-devel \
> ksh \
> libaio \
> libaio-devel \
> libdtrace-ctf-devel \
> libX11 \
> libXau \
> libXi \
> libXtst \
> libXrender \
> libXrender-devel \
> libgcc \
> librdmacm-devel \
> libstdc++ \
> libstdc++-devel \
> libxcb \
> make \
> smartmontools \
> sysstat
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.
Package bc-1.06.95-13.el7.x86_64 already installed and latest version
Package gcc-4.8.5-39.el7.x86_64 already installed and latest version
Package gcc-c++-4.8.5-39.el7.x86_64 already installed and latest version
Package binutils-2.27-41.base.el7.x86_64 already installed and latest version
Package compat-libcap1-1.10-7.el7.x86_64 already installed and latest version
No package compat-libstdc++ available.
No package dtrace-modules available.
No package dtrace-modules-headers available.
No package dtrace-modules-provider-headers available.
No package dtrace-utils available.
Package elfutils-libelf-0.176-2.el7.x86_64 already installed and latest version
Package glibc-2.17-292.el7.x86_64 already installed and latest version
Package glibc-devel-2.17-292.el7.x86_64 already installed and latest version
Package libaio-0.3.109-13.el7.x86_64 already installed and latest version
No package libdtrace-ctf-devel available.
Package libX11-1.6.7-2.el7.x86_64 already installed and latest version
Package libXau-1.0.8-2.1.el7.x86_64 already installed and latest version
Package libXi-1.7.9-1.el7.x86_64 already installed and latest version
Package libXtst-1.2.3-1.el7.x86_64 already installed and latest version
Package libXrender-0.9.10-1.el7.x86_64 already installed and latest version
Package libgcc-4.8.5-39.el7.x86_64 already installed and latest version
Package libstdc++-4.8.5-39.el7.x86_64 already installed and latest version
Package libstdc++-devel-4.8.5-39.el7.x86_64 already installed and latest version
Package libxcb-1.13-1.el7.x86_64 already installed and latest version
Package 1:make-3.82-24.el7.x86_64 already installed and latest version
Package 1:smartmontools-7.0-1.el7.x86_64 already installed and latest version
Package sysstat-10.1.5-18.el7.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package elfutils-libelf-devel.x86_64 0:0.176-2.el7 will be installed
--> Processing Dependency: pkgconfig(zlib) for package: elfutils-libelf-devel-0.176-2.el7.x86_64
---> Package fontconfig-devel.x86_64 0:2.13.0-4.3.el7 will be installed
--> Processing Dependency: pkgconfig(freetype2) >= 20.0.14 for package: fontconfig-devel-2.13.0-4.3.el7.x86_64
--> Processing Dependency: freetype-devel >= 2.8-7 for package: fontconfig-devel-2.13.0-4.3.el7.x86_64
--> Processing Dependency: pkgconfig(uuid) for package: fontconfig-devel-2.13.0-4.3.el7.x86_64
--> Processing Dependency: pkgconfig(expat) for package: fontconfig-devel-2.13.0-4.3.el7.x86_64
---> Package ksh.x86_64 0:20120801-139.el7 will be installed
---> Package libXrender-devel.x86_64 0:0.9.10-1.el7 will be installed
---> Package libaio-devel.x86_64 0:0.3.109-13.el7 will be installed
---> Package rdma-core-devel.x86_64 0:22.1-3.el7 will be installed
--> Processing Dependency: libibumad = 22.1-3.el7 for package: rdma-core-devel-22.1-3.el7.x86_64
--> Processing Dependency: ibacm = 22.1-3.el7 for package: rdma-core-devel-22.1-3.el7.x86_64
--> Processing Dependency: libibumad.so.3()(64bit) for package: rdma-core-devel-22.1-3.el7.x86_64
--> Running transaction check
---> Package expat-devel.x86_64 0:2.1.0-10.el7_3 will be installed
---> Package freetype-devel.x86_64 0:2.8-14.el7 will be installed
--> Processing Dependency: pkgconfig(libpng) for package: freetype-devel-2.8-14.el7.x86_64
---> Package ibacm.x86_64 0:22.1-3.el7 will be installed
---> Package libibumad.x86_64 0:22.1-3.el7 will be installed
---> Package libuuid-devel.x86_64 0:2.23.2-61.el7 will be installed
---> Package zlib-devel.x86_64 0:1.2.7-18.el7 will be installed
--> Running transaction check
---> Package libpng-devel.x86_64 2:1.5.13-7.el7_2 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                    Arch        Version                Repository  Size
================================================================================
Installing:
 elfutils-libelf-devel      x86_64      0.176-2.el7            media       39 k
 fontconfig-devel           x86_64      2.13.0-4.3.el7         media      138 k
 ksh                        x86_64      20120801-139.el7       media      885 k
 libXrender-devel           x86_64      0.9.10-1.el7           media       17 k
 libaio-devel               x86_64      0.3.109-13.el7         media       13 k
 rdma-core-devel            x86_64      22.1-3.el7             media      253 k
Installing for dependencies:
 expat-devel                x86_64      2.1.0-10.el7_3         media       57 k
 freetype-devel             x86_64      2.8-14.el7             media      447 k
 ibacm                      x86_64      22.1-3.el7             media       82 k
 libibumad                  x86_64      22.1-3.el7             media       24 k
 libpng-devel               x86_64      2:1.5.13-7.el7_2       media      122 k
 libuuid-devel              x86_64      2.23.2-61.el7          media       92 k
 zlib-devel                 x86_64      1.2.7-18.el7           media       50 k

Transaction Summary
================================================================================
Install  6 Packages (+7 Dependent packages)

Total download size: 2.2 M
Installed size: 7.3 M
Is this ok [y/d/N]: y
Downloading packages:
--------------------------------------------------------------------------------
Total                                               13 MB/s | 2.2 MB  00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : zlib-devel-1.2.7-18.el7.x86_64                              1/13 
  Installing : libibumad-22.1-3.el7.x86_64                                 2/13 
  Installing : ibacm-22.1-3.el7.x86_64                                     3/13 
  Installing : 2:libpng-devel-1.5.13-7.el7_2.x86_64                        4/13 
  Installing : freetype-devel-2.8-14.el7.x86_64                            5/13 
  Installing : expat-devel-2.1.0-10.el7_3.x86_64                           6/13 
  Installing : libuuid-devel-2.23.2-61.el7.x86_64                          7/13 
  Installing : fontconfig-devel-2.13.0-4.3.el7.x86_64                      8/13 
  Installing : rdma-core-devel-22.1-3.el7.x86_64                           9/13 
  Installing : elfutils-libelf-devel-0.176-2.el7.x86_64                   10/13 
  Installing : libaio-devel-0.3.109-13.el7.x86_64                         11/13 
  Installing : ksh-20120801-139.el7.x86_64                                12/13 
  Installing : libXrender-devel-0.9.10-1.el7.x86_64                       13/13 
  Verifying  : libXrender-devel-0.9.10-1.el7.x86_64                        1/13 
  Verifying  : rdma-core-devel-22.1-3.el7.x86_64                           2/13 
  Verifying  : fontconfig-devel-2.13.0-4.3.el7.x86_64                      3/13 
  Verifying  : 2:libpng-devel-1.5.13-7.el7_2.x86_64                        4/13 
  Verifying  : ksh-20120801-139.el7.x86_64                                 5/13 
  Verifying  : zlib-devel-1.2.7-18.el7.x86_64                              6/13 
  Verifying  : libuuid-devel-2.23.2-61.el7.x86_64                          7/13 
  Verifying  : elfutils-libelf-devel-0.176-2.el7.x86_64                    8/13 
  Verifying  : libaio-devel-0.3.109-13.el7.x86_64                          9/13 
  Verifying  : libibumad-22.1-3.el7.x86_64                                10/13 
  Verifying  : ibacm-22.1-3.el7.x86_64                                    11/13 
  Verifying  : freetype-devel-2.8-14.el7.x86_64                           12/13 
  Verifying  : expat-devel-2.1.0-10.el7_3.x86_64                          13/13 
media/productid                                          | 1.6 kB     00:00     

Installed:
  elfutils-libelf-devel.x86_64 0:0.176-2.el7                                    
  fontconfig-devel.x86_64 0:2.13.0-4.3.el7                                      
  ksh.x86_64 0:20120801-139.el7                                                 
  libXrender-devel.x86_64 0:0.9.10-1.el7                                        
  libaio-devel.x86_64 0:0.3.109-13.el7                                          
  rdma-core-devel.x86_64 0:22.1-3.el7                                           

Dependency Installed:
  expat-devel.x86_64 0:2.1.0-10.el7_3    freetype-devel.x86_64 0:2.8-14.el7    
  ibacm.x86_64 0:22.1-3.el7              libibumad.x86_64 0:22.1-3.el7         
  libpng-devel.x86_64 2:1.5.13-7.el7_2   libuuid-devel.x86_64 0:2.23.2-61.el7  
  zlib-devel.x86_64 0:1.2.7-18.el7      

Complete!

安装kmod

[root@rhel yum.repos.d]# yum install -y kmod*
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.
Package kmod-20-25.el7.x86_64 already installed and latest version
Package kmod-kvdo-6.1.2.41-5.el7.x86_64 already installed and latest version
Package kmod-libs-20-25.el7.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package kmod-oracleasm.x86_64 0:2.0.8-26.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                Arch           Version              Repository     Size
================================================================================
Installing:
 kmod-oracleasm         x86_64         2.0.8-26.el7         media          38 k

Transaction Summary
================================================================================
Install  1 Package

Total download size: 38 k
Installed size: 119 k
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : kmod-oracleasm-2.0.8-26.el7.x86_64                           1/1 
  Verifying  : kmod-oracleasm-2.0.8-26.el7.x86_64                           1/1 

Installed:
  kmod-oracleasm.x86_64 0:2.0.8-26.el7                                          

Complete!

安装ksh

[root@rhel yum.repos.d]# yum install -y ksh*
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.
Package ksh-20120801-139.el7.x86_64 already installed and latest version
Nothing to do
[root@rhel yum.repos.d
[root@rhel yum.repos.d]# yum install -y ksh*
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.
Package ksh-20120801-139.el7.x86_64 already installed and latest version
Nothing to do

安装libaio

[root@rhel yum.repos.d]# yum install -y libaio*
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.
Package libaio-0.3.109-13.el7.x86_64 already installed and latest version
Package libaio-devel-0.3.109-13.el7.x86_64 already installed and latest version
Nothing to do
[root@rhel yum.repos.d]# yum install -y 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.
Package compat-db-headers-4.7.25-28.el7.noarch already installed and latest version
Package compat-cheese314-3.14.2-1.el7.x86_64 already installed and latest version
Package compat-libtiff3-3.9.4-12.el7.x86_64 already installed and latest version
Package 1:compat-glibc-headers-2.12-4.el7.x86_64 already installed and latest version
Package compat-db47-4.7.25-28.el7.x86_64 already installed and latest version
Package compat-libical1-1.0.1-2.el7.x86_64 already installed and latest version
Package compat-exiv2-026-0.26-1.el7.x86_64 already installed and latest version
Package 1:compat-glibc-2.12-4.el7.x86_64 already installed and latest version
Package compat-libgfortran-41-4.1.2-45.el7.x86_64 already installed and latest version
Package 1:compat-openldap-2.3.43-5.el7.x86_64 already installed and latest version
Package compat-libf2c-34-3.4.6-32.el7.x86_64 already installed and latest version
Package compat-exiv2-023-0.23-2.el7.x86_64 already installed and latest version
Package compat-libcap1-1.10-7.el7.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package compat-dapl.x86_64 1:1.2.19-4.el7 will be installed
---> Package compat-gcc-44.x86_64 0:4.4.7-8.el7 will be installed
---> Package compat-gcc-44-c++.x86_64 0:4.4.7-8.el7 will be installed
---> Package compat-glade315.x86_64 0:3.15.0-1.el7 will be installed
---> Package compat-gnome-desktop314.x86_64 0:3.14.2-1.el7 will be installed
---> Package compat-grilo02.x86_64 0:0.2.12-1.el7 will be installed
---> Package compat-libcogl-pango12.x86_64 0:1.14.0-3.el7 will be installed
---> Package compat-libcogl12.x86_64 0:1.14.0-3.el7 will be installed
---> Package compat-libcolord1.x86_64 0:1.0.4-1.el7 will be installed
---> Package compat-libgdata13.x86_64 0:0.13.3-1.el7 will be installed
---> Package compat-libgnome-bluetooth11.x86_64 1:3.8.2.1-2.el7 will be installed
---> Package compat-libgnome-desktop3-7.x86_64 0:3.8.4-2.el7 will be installed
---> Package compat-libgweather3.x86_64 0:3.8.2-1.el7 will be installed
---> Package compat-libmediaart0.x86_64 0:0.7.0-1.el7 will be installed
---> Package compat-libpackagekit-glib2-16.x86_64 0:0.8.9-1.el7 will be installed
---> Package compat-libupower-glib1.x86_64 0:0.9.20-1.el7 will be installed
---> Package compat-libxcb.x86_64 0:1.9-1.el7 will be installed
---> Package compat-openmpi16.x86_64 0:1.6.4-10.7.2.el7 will be installed
--> Processing Dependency: environment-modules for package: compat-openmpi16-1.6.4-10.7.2.el7.x86_64
--> Processing Dependency: libpsm_infinipath.so.1()(64bit) for package: compat-openmpi16-1.6.4-10.7.2.el7.x86_64
--> Processing Dependency: libosmcomp.so.4()(64bit) for package: compat-openmpi16-1.6.4-10.7.2.el7.x86_64
--> Processing Dependency: libhwloc.so.5()(64bit) for package: compat-openmpi16-1.6.4-10.7.2.el7.x86_64
--> Processing Dependency: libesmtp.so.6()(64bit) for package: compat-openmpi16-1.6.4-10.7.2.el7.x86_64
---> Package compat-opensm-libs.x86_64 0:3.3.15-3.el7 will be installed
---> Package compat-poppler022.x86_64 0:0.22.5-4.el7 will be installed
---> Package compat-poppler022-glib.x86_64 0:0.22.5-4.el7 will be installed
---> Package compat-poppler022-qt.x86_64 0:0.22.5-4.el7 will be installed
--> Running transaction check
---> Package environment-modules.x86_64 0:3.2.10-10.el7 will be installed
--> Processing Dependency: libtcl8.5.so()(64bit) for package: environment-modules-3.2.10-10.el7.x86_64
---> Package hwloc-libs.x86_64 0:1.11.8-4.el7 will be installed
---> Package infinipath-psm.x86_64 0:3.3-26_g604758e_open.2.el7 will be installed
---> Package libesmtp.x86_64 0:1.0.6-7.el7 will be installed
---> Package opensm-libs.x86_64 0:3.3.21-2.el7 will be installed
--> Running transaction check
---> Package tcl.x86_64 1:8.5.13-8.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                       Arch   Version                       Repository
                                                                           Size
================================================================================
Installing:
 compat-dapl                   x86_64 1:1.2.19-4.el7                media 110 k
 compat-gcc-44                 x86_64 4.4.7-8.el7                   media  10 M
 compat-gcc-44-c++             x86_64 4.4.7-8.el7                   media 6.3 M
 compat-glade315               x86_64 3.15.0-1.el7                  media 243 k
 compat-gnome-desktop314       x86_64 3.14.2-1.el7                  media 108 k
 compat-grilo02                x86_64 0.2.12-1.el7                  media 102 k
 compat-libcogl-pango12        x86_64 1.14.0-3.el7                  media  27 k
 compat-libcogl12              x86_64 1.14.0-3.el7                  media 282 k
 compat-libcolord1             x86_64 1.0.4-1.el7                   media  96 k
 compat-libgdata13             x86_64 0.13.3-1.el7                  media 217 k
 compat-libgnome-bluetooth11   x86_64 1:3.8.2.1-2.el7               media  63 k
 compat-libgnome-desktop3-7    x86_64 3.8.4-2.el7                   media  88 k
 compat-libgweather3           x86_64 3.8.2-1.el7                   media  57 k
 compat-libmediaart0           x86_64 0.7.0-1.el7                   media  33 k
 compat-libpackagekit-glib2-16 x86_64 0.8.9-1.el7                   media 112 k
 compat-libupower-glib1        x86_64 0.9.20-1.el7                  media  33 k
 compat-libxcb                 x86_64 1.9-1.el7                     media  44 k
 compat-openmpi16              x86_64 1.6.4-10.7.2.el7              media 2.5 M
 compat-opensm-libs            x86_64 3.3.15-3.el7                  media  39 k
 compat-poppler022             x86_64 0.22.5-4.el7                  media 722 k
 compat-poppler022-glib        x86_64 0.22.5-4.el7                  media  87 k
 compat-poppler022-qt          x86_64 0.22.5-4.el7                  media 150 k
Installing for dependencies:
 environment-modules           x86_64 3.2.10-10.el7                 media 107 k
 hwloc-libs                    x86_64 1.11.8-4.el7                  media 1.6 M
 infinipath-psm                x86_64 3.3-26_g604758e_open.2.el7    media 186 k
 libesmtp                      x86_64 1.0.6-7.el7                   media  63 k
 opensm-libs                   x86_64 3.3.21-2.el7                  media  68 k
 tcl                           x86_64 1:8.5.13-8.el7                media 1.9 M

Transaction Summary
================================================================================
Install  22 Packages (+6 Dependent packages)

Total download size: 25 M
Installed size: 69 M
Downloading packages:
--------------------------------------------------------------------------------
Total                                              104 MB/s |  25 MB  00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : compat-poppler022-0.22.5-4.el7.x86_64                       1/28 
  Installing : hwloc-libs-1.11.8-4.el7.x86_64                              2/28 
  Installing : infinipath-psm-3.3-26_g604758e_open.2.el7.x86_64            3/28 
  Installing : compat-libcogl12-1.14.0-3.el7.x86_64                        4/28 
  Installing : libesmtp-1.0.6-7.el7.x86_64                                 5/28 
  Installing : opensm-libs-3.3.21-2.el7.x86_64                             6/28 
  Installing : 1:tcl-8.5.13-8.el7.x86_64                                   7/28 
  Installing : environment-modules-3.2.10-10.el7.x86_64                    8/28 
  Installing : compat-openmpi16-1.6.4-10.7.2.el7.x86_64                    9/28 
  Installing : compat-libcogl-pango12-1.14.0-3.el7.x86_64                 10/28 
  Installing : compat-poppler022-glib-0.22.5-4.el7.x86_64                 11/28 
  Installing : compat-poppler022-qt-0.22.5-4.el7.x86_64                   12/28 
  Installing : 1:compat-libgnome-bluetooth11-3.8.2.1-2.el7.x86_64         13/28 
  Installing : 1:compat-dapl-1.2.19-4.el7.x86_64                          14/28 
  Installing : compat-libmediaart0-0.7.0-1.el7.x86_64                     15/28 
  Installing : compat-libgweather3-3.8.2-1.el7.x86_64                     16/28 
  Installing : compat-libupower-glib1-0.9.20-1.el7.x86_64                 17/28 
  Installing : compat-libxcb-1.9-1.el7.x86_64                             18/28 
  Installing : compat-grilo02-0.2.12-1.el7.x86_64                         19/28 
  Installing : compat-gnome-desktop314-3.14.2-1.el7.x86_64                20/28 
  Installing : compat-glade315-3.15.0-1.el7.x86_64                        21/28 
  Installing : compat-libpackagekit-glib2-16-0.8.9-1.el7.x86_64           22/28 
  Installing : compat-libgnome-desktop3-7-3.8.4-2.el7.x86_64              23/28 
  Installing : compat-libcolord1-1.0.4-1.el7.x86_64                       24/28 
  Installing : compat-libgdata13-0.13.3-1.el7.x86_64                      25/28 
  Installing : compat-opensm-libs-3.3.15-3.el7.x86_64                     26/28 
  Installing : compat-gcc-44-4.4.7-8.el7.x86_64                           27/28 
  Installing : compat-gcc-44-c++-4.4.7-8.el7.x86_64                       28/28 
  Verifying  : 1:tcl-8.5.13-8.el7.x86_64                                   1/28 
  Verifying  : compat-gcc-44-c++-4.4.7-8.el7.x86_64                        2/28 
  Verifying  : compat-opensm-libs-3.3.15-3.el7.x86_64                      3/28 
  Verifying  : compat-libgdata13-0.13.3-1.el7.x86_64                       4/28 
  Verifying  : opensm-libs-3.3.21-2.el7.x86_64                             5/28 
  Verifying  : compat-gcc-44-4.4.7-8.el7.x86_64                            6/28 
  Verifying  : compat-libcolord1-1.0.4-1.el7.x86_64                        7/28 
  Verifying  : libesmtp-1.0.6-7.el7.x86_64                                 8/28 
  Verifying  : compat-libgnome-desktop3-7-3.8.4-2.el7.x86_64               9/28 
  Verifying  : compat-libpackagekit-glib2-16-0.8.9-1.el7.x86_64           10/28 
  Verifying  : compat-glade315-3.15.0-1.el7.x86_64                        11/28 
  Verifying  : compat-libcogl-pango12-1.14.0-3.el7.x86_64                 12/28 
  Verifying  : compat-libcogl12-1.14.0-3.el7.x86_64                       13/28 
  Verifying  : compat-gnome-desktop314-3.14.2-1.el7.x86_64                14/28 
  Verifying  : compat-grilo02-0.2.12-1.el7.x86_64                         15/28 
  Verifying  : compat-openmpi16-1.6.4-10.7.2.el7.x86_64                   16/28 
  Verifying  : compat-libxcb-1.9-1.el7.x86_64                             17/28 
  Verifying  : compat-libupower-glib1-0.9.20-1.el7.x86_64                 18/28 
  Verifying  : compat-libgweather3-3.8.2-1.el7.x86_64                     19/28 
  Verifying  : infinipath-psm-3.3-26_g604758e_open.2.el7.x86_64           20/28 
  Verifying  : compat-poppler022-0.22.5-4.el7.x86_64                      21/28 
  Verifying  : environment-modules-3.2.10-10.el7.x86_64                   22/28 
  Verifying  : compat-poppler022-glib-0.22.5-4.el7.x86_64                 23/28 
  Verifying  : compat-libmediaart0-0.7.0-1.el7.x86_64                     24/28 
  Verifying  : hwloc-libs-1.11.8-4.el7.x86_64                             25/28 
  Verifying  : 1:compat-dapl-1.2.19-4.el7.x86_64                          26/28 
  Verifying  : 1:compat-libgnome-bluetooth11-3.8.2.1-2.el7.x86_64         27/28 
  Verifying  : compat-poppler022-qt-0.22.5-4.el7.x86_64                   28/28 

Installed:
  compat-dapl.x86_64 1:1.2.19-4.el7                                             
  compat-gcc-44.x86_64 0:4.4.7-8.el7                                            
  compat-gcc-44-c++.x86_64 0:4.4.7-8.el7                                        
  compat-glade315.x86_64 0:3.15.0-1.el7                                         
  compat-gnome-desktop314.x86_64 0:3.14.2-1.el7                                 
  compat-grilo02.x86_64 0:0.2.12-1.el7                                          
  compat-libcogl-pango12.x86_64 0:1.14.0-3.el7                                  
  compat-libcogl12.x86_64 0:1.14.0-3.el7                                        
  compat-libcolord1.x86_64 0:1.0.4-1.el7                                        
  compat-libgdata13.x86_64 0:0.13.3-1.el7                                       
  compat-libgnome-bluetooth11.x86_64 1:3.8.2.1-2.el7                            
  compat-libgnome-desktop3-7.x86_64 0:3.8.4-2.el7                               
  compat-libgweather3.x86_64 0:3.8.2-1.el7                                      
  compat-libmediaart0.x86_64 0:0.7.0-1.el7                                      
  compat-libpackagekit-glib2-16.x86_64 0:0.8.9-1.el7                            
  compat-libupower-glib1.x86_64 0:0.9.20-1.el7                                  
  compat-libxcb.x86_64 0:1.9-1.el7                                              
  compat-openmpi16.x86_64 0:1.6.4-10.7.2.el7                                    
  compat-opensm-libs.x86_64 0:3.3.15-3.el7                                      
  compat-poppler022.x86_64 0:0.22.5-4.el7                                       
  compat-poppler022-glib.x86_64 0:0.22.5-4.el7                                  
  compat-poppler022-qt.x86_64 0:0.22.5-4.el7                                    

Dependency Installed:
  environment-modules.x86_64 0:3.2.10-10.el7                                    
  hwloc-libs.x86_64 0:1.11.8-4.el7                                              
  infinipath-psm.x86_64 0:3.3-26_g604758e_open.2.el7                            
  libesmtp.x86_64 0:1.0.6-7.el7                                                 
  opensm-libs.x86_64 0:3.3.21-2.el7                                             
  tcl.x86_64 1:8.5.13-8.el7                                                     

Complete

安装compat-libstdc++报错

[root@rhel yum.repos.d]# yum compat-libstdc++ install -y
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.
No such command: compat-libstdc++. Please use /usr/bin/yum --help
[root@rhel yum.repos.d]# yum install -y compat-libstdc++
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.
No package compat-libstdc++ available.
Error: Nothing to do

[root@rhel yum.repos.d]#
注:由于从7开始,系统镜像中不再包含compat-libstdc++包,需要自行下载安装。
当然如果你不使用Oracle Text功能,则不需要安装该包。但是推荐安装,因为你无法保证以后不使用。

手动上传compat-libstdc+±33-3.2.3安装
### 这个安装包,貌似直接装不了,可以根据下方链接进行下载,通过 rpm -ivh 安装。链接:https://pan.baidu.com/s/17hu6ahLyJijaH_ookUQgWA?pwd=pmb9 
提取码:pmb9

rpm安装

[root@rhel db]# rpm -ivh compat-libstdc++-33-3.2.3-72.el7.x86_64.rpm 
warning: compat-libstdc++-33-3.2.3-72.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
Preparing...                          ################################# [100%]
Updating / installing...
   1:compat-libstdc++-33-3.2.3-72.el7 ################################# [100%]
[root@rhel db]# 

二:安装 oracle 19c 软件
1上传oracle19c安装包 到服务器

Last login: Mon Jul  3 15:05:31 2023
[root@rhel ~]# cd /home/db/
[root@rhel db]# unzip LINUX.X64_193000_db_home.zip

核心问题
从12C开始,oracle安装包必须放在oracle_home目录下
将安装包移到/u01/app/oracle/product/19.2.0/db_1

2切换 oracle 用户

[root@rhel app]# su - oracle 
Last login: Mon Jul  3 16:46:37 CST 2023 on pts/0
[oracle@rhel ~]$ 

切换到 ORACLE_HOME 路径,查看安装包。


[oracle@rhel ~]$ cd $ORACLE_HOME
[oracle@rhel ~]$ chown -R oracle:oinstall $ORACLE_HOME
[oracle@rhel ~]$ chown -R +x $ORACLE_HOME             
chown: invalid user:+x’
[oracle@rhel ~]$ chmod -R +x $ORACLE_HOME   
[oracle@rhel ~]$ 
[oracle@rhel db_1]$ ls
addnode     deinstall      javavm   OPatch   R              sqlj
apex        demo           jdbc     opmn     racg           sqlpatch
assistants  diagnostics    jdk      oracore  rdbms          sqlplus
bin         dmu            jlib     ord      relnotes       srvm
clone       drdaas         ldap     ords     root.sh        suptools
crs         dv             lib      oss      root.sh.old    ucp
css         env.ora        md       oui      root.sh.old.1  usm
ctx         has            mgw      owm      runInstaller   utl
cv          hs             network  perl     schagent.conf  wwg
data        install        nls      plsql    sdk            xdk
dbjava      instantclient  odbc     precomp  slax
dbs         inventory      olap     QOpatch  sqldeveloper

3配置图形化界面
因为是图形化安装 ,所以我们要预先配置图形化界面,不然是不会出现安装窗口的。我安装oracle是用的vmware虚拟机。如果想要调出图形化界面,必须在物理机上装上Xmanager,并且打开Xmanager passive。
切换至root,安装 xorg-x11-apps* 包

[root@rhel db]# 

[root@rhel db]# yum install xorg-x11-apps*
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.
file:///mnt/cdrom/repodata/repomd.xml: [Errno 14] curl#37 - "Couldn't open file /mnt/cdrom/repodata/repomd.xml"
Trying other mirror.
Resolving Dependencies
--> Running transaction check
---> Package xorg-x11-apps.x86_64 0:7.7-7.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                Arch            Version            Repository      Size
================================================================================
Installing:
 xorg-x11-apps          x86_64          7.7-7.el7          media          307 k

Transaction Summary
================================================================================
Install  1 Package

Total download size: 307 k
Installed size: 772 k
Is this ok [y/d/N]: y
Downloading packages:


Error downloading packages:
  xorg-x11-apps-7.7-7.el7.x86_64: [Errno 256] No more mirrors to try.

[root@rhel db]# 

切换至oracle ,配置DISPLAY变量

[oracle@rhel db_1]$ export DISPLAY=192.168.182.1:0.0
[oracle@rhel db_1]$ echo $DISPLAY
192.168.182.1:0.0
[oracle@rhel db_1]$ 
  1. 执行 runInstaller
[oracle@rhel db_1]$ 
[oracle@rhel db_1]$ ./runInstaller 
Launching Oracle Database Setup Wizard...

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

CentOS7安装oracle19c 的相关文章

随机推荐

  • linux使用读写锁pthread_rwlock_t

    使用读写锁 配置读写锁的属性之后 即可初始化读写锁 以下函数用于初始化或销毁读写锁 锁定或解除锁定读写锁或尝试锁定读写锁 下表列出了本节中讨论的用来处理读写锁的函数 表 4 9 处理读写锁的例程 操作 相关函数说明 初始化读写锁 pthre
  • Liunx下使用docker搭建ftp服务

    1 检索最新镜像 docker search vsftpd 2 拉取FTP镜像 docker pull fauria vsftpd 3 查看本机ip ifconfig 4 运行并创建container 方法1 运行时创建用户名和密码 doc
  • 计算机是仿生学,一种基于人体仿生学的计算机键盘的制作方法

    本实用新型属于计算机键盘技术领域 具体涉及一种基于人体仿生学的计算机键盘 背景技术 键盘是最常用也是最主要的输入设备 通过键盘 可以将英文字母 数字和标点符号等输入到计算机中 从而向计算机发出命令和输入数据等 键盘 由一组按阵列方式装配在一
  • 什么是软件测试、生命周期、软件开发模型、测试模型

    目录 1 什么是软件测试 2 软件测试和软件软件开发的区别 3 软件测试 Testing 和软件调试 Debug 的区别 4 什么是需求 5 需求是测试人员开展软件测试工作的依据 6 测试人员如何深入了解需求 7 测试用例 Test Cas
  • mysql 导入超大sql文件

    mysql u root p 登录mysql命令 可以登陆mysql服务器使用source命令导入 会快很多 我这里导入500M 大概用了5分钟 1 liunx登陆mysql mysql u 用户名 p 数据库名 然后输入密码 登陆mysq
  • Blender 雕刻

    文章目录 简介 基本操作 进入雕刻 雕刻工作区 强度 笔刷 纹理 笔画 衰减 动态拓扑 动态拓扑属性 重构网格 物体数据属性重构网格 雕刻自带的重构网格 镜像 同一个模型的不同网格 对其中一个雕刻 不影响其他的网格 快捷键 笔刷 自由线 显
  • 知识图谱——机器大脑中的知识库

    Published by liuzy on July 6 2015 作者 刘知远 清华大学 整理 林颖 RPI 版权所有 转载请注明出处 知识就是力量 英 弗兰西斯 培根 1 什么是知识图谱 在互联网时代 搜索引擎是人们在线获取信息和知识的
  • 计算机2.0培训心得,信息2.0培训心得体会

    今年7月份学校召开了关于学校信息化教育的会议 由于刚接触 我们听得一头雾水 于是就在摸索中开始了我们的信息化2 0工程培训学习 由于我组的化学科目特殊性 除了选择基础的A1技术支持的学前分析和A3演示文稿设计与制作外 我们还选择了B6技术支
  • IDEA报错解决:Cannot resolve com.oracle:ojdbc7:12.1.0.2或‘com.oracle:ojdbc7:12.1.0.2‘ not found

    1 到oracle官网下载ojdbc7 jar 附博主的ojdbc7 jar包下载地址 也可进入我的资源中下载 存入本地 不要存入maven仓库 2 打开cmd 切换到ojdbc7 jar所在文件夹 3 执行命令mvn install in
  • Vue(五)——调试

    一 console输出到控制台 如果Vue项目中 使用了eslint loader 代码规范 空格 缩进 console等测试语句 的话 就没法使用console 一定需要使用console可以尝试关闭eslint loader 在vue
  • Spring 如何从 IoC 容器中获取对象?

    前情回顾 前面几篇文章主要分析了 Spring IoC 容器如何初始化 以及解析和注册我们定义的 bean 信息 其中 Spring 中的 IoC 容器 对 Spring 中的容器做了一个概述 Spring IoC 容器初始化 和 Spri
  • 碰到了version `GLIBC_2.27' not found错误

    碰到了version GLIBC 2 27 not found错误 我查了下 因为glibc是系统级底层软件 自己编译的可能会跟原来的不一致 会导致系统不兼容 结果我在 etc ld so conf里面添加了 opt glibc 2 27的
  • C++/C笔试面试题目大大的集合

    C C笔试面试题目大大的集合 2010 10 22 00 08 3742人阅读 评论 0 收藏 举报 面试 c string 编译器 null 设计模式 1 const 有什么用途 请至少说明两种 答 1 可以定义 const 常量 2 c
  • 基于PHP的简单微博系统

    一 项目介绍 基于PHP的简单微博系统 php mysql apache开发 适合新手练习 可搭建在phpstudy下 有完整的sql文件和配置文件 三分钟快速部署 二 主要功能 1 注册 登录微博 2 个人中心 个人信息修改 查看我的关注
  • 【官方文档】《暗黑世界GM管理后台系统》部署+功能说明

    欢迎来到9秒 www 9miao com 暗黑三国管理后台说明文档 一 功能描述 该后台共分为三大部分 服务器管理 单服数据统计和扶持账号管理 1 服务器管理 根据管理后台数据库中填写的服务器信息 后面会讲到如何填写要管理的服务器的信息到数
  • golang http请求时设置代理ip

    在http Client中自定义Transport 设置Proxy即可 目前网上存在很多代理ip网站 本人也写过一些代理ip网址的爬取 见 GitHub 如果需要代理验证 那么如下进行设置 否则直接设置为url Parse http inp
  • CSS设计指南(第3版)》

    CSS设计指南 第3版 基本信息 原书名 Stylin with CSS a designer s guide 作者 英 Charles Wyke Smith 译者 李松峰 丛书名 图灵程序设计丛书 出版社 人民邮电出版社 ISBN 978
  • ATL与COM之间的关系、ATL的特点与基本使用方法

    ATL Active Template Library活动模板库 是一种微软程序库 支持利用C 语言编写ASP代码以及其它ActiveX程序 通过活动模板库 可以建立COM组件 然后通过ASP页面中的脚本对COM对象进行调用 这种COM组件
  • [R语言]R包的安装&帮助获取

    本文主要参考 Paul Teetor R语言经典实例 一书 在R语言中 包含的包中有各种应用函数 1 install packages packagename 安装R包 library package name 载入包 对于base包可省略
  • CentOS7安装oracle19c

    教程 https zhuanlan zhihu com p 571737575 CentOS7安装oracle19c教程 https zhuanlan zhihu com p 571737575 一 准备工作 1创建 oracle 用户 以