redhat6.4安装oracle11G-软件安装前环境准备_redhat6.0安装oracle 11g-程序员宅基地

技术标签: oracle  服务器  

redhat 安装系统步骤
选择
1.第一个
2.Tab 键,空格
3.必须选英文
4.basic storage device
5.yes,discard any data
6.Aisa/shanghai 或chongqing
7.设置密码 redhat. —> Use any—>use all space—>write chanes to disk
8.Desktop 选择立即安装软件包,语言支持中文chinese
9.reboot
Welcome: 同意
License: 同意
Information: 同意
Set up software: no
Updates: 下一步
Create user: 下一步
Date and time: 下一步
Kdump: 取消勾选 (是一个内核崩溃保护分析机制)
重启
1.1.1首次登陆
勾选do not show me this again

Init 0是关机命令

1.1.2 root 登陆系统后的设置
1)关闭防火墙

Setup命令
Firewalld 用空格取消enabled的*

2)禁用selinux

vim /etc/selinux/config
修改
SELINUX=disabled
1、安装vmware-tools
点击解压出来的文件vmware-tools-distrib 右键open in terminal
在该终端执行命令:./vmware-install.pl

vmware-tools-distrib/vmware-install.pl
[root@rhel64 cdrom]# cd /tmp/
[root@rhel64 tmp]# ls
keyring-K77cPe       virtual-root.cy67g5
orbit-gdm            vmware-tools-distrib
orbit-root           yum.log
pulse-G8PdLP2Aysww   yum_save_tx-2023-06-16-18-26tqZNeG.yumtx
pulse-llNZgEZuKULo   yum_save_tx-2023-06-16-18-26zMziwY.yumtx
virtual-root.8mYVea
[root@rhel64 tmp]# ll
total 40
drwx------  2 root root 4096 Jun 16 17:35 keyring-K77cPe
drwx------  2 gdm  gdm  4096 Jun 16 17:35 orbit-gdm
drwx------  2 root root 4096 Jun 16 17:39 orbit-root
drwx------. 2 root root 4096 Jun 16 17:35 pulse-G8PdLP2Aysww
drwx------. 2 gdm  gdm  4096 Jun 16 17:36 pulse-llNZgEZuKULo
drwx------  2 root root 4096 Jun 16 17:35 virtual-root.8mYVea
drwx------. 2 root root 4096 Jun 16 17:24 virtual-root.cy67g5
drwxr-xr-x  9 root root 4096 Jun 13  2019 vmware-tools-distrib
-rw-------. 1 root root    0 Jun 16 17:09 yum.log
-rw-------  1 root root  212 Jun 16 18:26 yum_save_tx-2023-06-16-18-26tqZNeG.yumtx
-rw-------  1 root root  212 Jun 16 18:26 yum_save_tx-2023-06-16-18-26zMziwY.yumtx
[root@rhel64 tmp]# ls
keyring-K77cPe       virtual-root.cy67g5
orbit-gdm            vmware-tools-distrib
orbit-root           yum.log
pulse-G8PdLP2Aysww   yum_save_tx-2023-06-16-18-26tqZNeG.yumtx
pulse-llNZgEZuKULo   yum_save_tx-2023-06-16-18-26zMziwY.yumtx
virtual-root.8mYVea
[root@rhel64 tmp]# cd vmware-tools-distrib/
[root@rhel64 vmware-tools-distrib]# ls
bin  caf  doc  etc  FILES  INSTALL  installer  lib  vgauth  vmware-install.pl
[root@rhel64 vmware-tools-distrib]# sh vmware-install.pl 
vmware-install.pl: line 8: use: command not found
vmware-install.pl: line 9: syntax error near unexpected token `('
vmware-install.pl: line 9: `use IO::Handle qw( );  # For autoflush'
[root@rhel64 vmware-tools-distrib]# ll
total 400
drwxr-xr-x  2 root root   4096 Jun 13  2019 bin
drwxr-xr-x  5 root root   4096 Jun 13  2019 caf
drwxr-xr-x  2 root root   4096 Jun 13  2019 doc
drwxr-xr-x  5 root root   4096 Jun 13  2019 etc
-rw-r--r--  1 root root 146996 Jun 13  2019 FILES
-rw-r--r--  1 root root   2538 Jun 13  2019 INSTALL
drwxr-xr-x  2 root root   4096 Jun 13  2019 installer
drwxr-xr-x 14 root root   4096 Jun 13  2019 lib
drwxr-xr-x  3 root root   4096 Jun 13  2019 vgauth
-rwxr-xr-x  1 root root 227024 Jun 13  2019 vmware-install.pl
[root@rhel64 vmware-tools-distrib]# sh vmware-install.pl
vmware-install.pl: line 8: use: command not found
vmware-install.pl: line 9: syntax error near unexpected token `('
vmware-install.pl: line 9: `use IO::Handle qw( );  # For autoflush'
[root@rhel64 vmware-tools-distrib]# ./vmware-install.pl 
Creating a new VMware Tools installer database using the tar4 format.

Installing VMware Tools.

In which directory do you want to install the binary files? 
[/usr/bin] 

INPUT: [/usr/bin]  default

What is the directory that contains the init directories (rc0.d/ to rc6.d/)? 
[/etc/rc.d] 

INPUT: [/etc/rc.d]  default

What is the directory that contains the init scripts? 
[/etc/rc.d/init.d] 

INPUT: [/etc/rc.d/init.d]  default

In which directory do you want to install the daemon files? 
[/usr/sbin] 

INPUT: [/usr/sbin]  default

In which directory do you want to install the library files? 
[/usr/lib/vmware-tools] 

INPUT: [/usr/lib/vmware-tools]  default

The path "/usr/lib/vmware-tools" does not exist currently. This program is 
going to create it, including needed parent directories. Is this what you want?
[yes] 

INPUT: [yes]  default

In which directory do you want to install the common agent library files? 
[/usr/lib] 

INPUT: [/usr/lib]  default

In which directory do you want to install the common agent transient files? 
[/var/lib] 

INPUT: [/var/lib]  default

In which directory do you want to install the documentation files? 
[/usr/share/doc/vmware-tools] 

INPUT: [/usr/share/doc/vmware-tools]  default

The path "/usr/share/doc/vmware-tools" does not exist currently. This program 
is going to create it, including needed parent directories. Is this what you 
want? [yes] 

INPUT: [yes]  default

The installation of VMware Tools 10.3.10 build-13959562 for Linux completed 
successfully. You can decide to remove this software from your system at any 
time by invoking the following command: "/usr/bin/vmware-uninstall-tools.pl".

Before running VMware Tools for the first time, you need to configure it by 
invoking the following command: "/usr/bin/vmware-config-tools.pl". Do you want 
this program to invoke the command for you now? [yes] 

INPUT: [yes]  default

Initializing...



Making sure services for VMware Tools are stopped.



Found a compatible pre-built module for vmci.  Installing it...


Found a compatible pre-built module for vsock.  Installing it...


The module vmxnet3 has already been installed on this system by another 
installer or package and will not be modified by this installer.

The module pvscsi has already been installed on this system by another 
installer or package and will not be modified by this installer.

The module vmmemctl has already been installed on this system by another 
installer or package and will not be modified by this installer.

The VMware Host-Guest Filesystem allows for shared folders between the host OS 
and the guest OS in a Fusion or Workstation virtual environment.  Do you wish 
to enable this feature? [yes] 
INPUT: [yes]  default

Found a compatible pre-built module for vmhgfs.  Installing it...


Found a compatible pre-built module for vmxnet.  Installing it...


The vmblock enables dragging or copying files between host and guest in a 
Fusion or Workstation virtual environment.  Do you wish to enable this feature?
[yes] 

INPUT: [yes]  default

VMware automatic kernel modules enables automatic building and installation of
VMware kernel modules at boot that are not already present. This feature can
be enabled/disabled by re-running vmware-config-tools.pl.

Would you like to enable VMware automatic kernel modules?
[yes] 

INPUT: [yes]  default


Disabling timer-based audio scheduling in pulseaudio.

Do you want to enable Guest Authentication (vgauth)? Enabling vgauth is needed 
if you want to enable Common Agent (caf). [yes] 

INPUT: [yes]  default

Do you want to enable Common Agent (caf)? [no] 

INPUT: [no]  default



Detected X server version 1.13.0



Distribution provided drivers for Xorg X server are used.

Skipping X configuration because X drivers are not included.

Creating a new initrd boot image for the kernel.
Generating the key and certificate files.
Successfully generated the key and certificate files.
vmware-tools start/running
The configuration of VMware Tools 10.3.10 build-13959562 for Linux for this 
running kernel completed successfully.

You must restart your X session before any mouse or graphics changes take 
effect.

To enable advanced X features (e.g., guest resolution fit, drag and drop, and 
file and text copy/paste), you will need to do one (or more) of the following:
1. Manually start /usr/bin/vmware-user
2. Log out and log back into your desktop session
3. Restart your X session.

Found VMware Tools CDROM mounted at /media/VMware Tools. Ejecting device 
/dev/sr0 ...
Found VMware Tools CDROM mounted at /mnt/cdrom. Ejecting device /dev/sr0 ...
Enjoy,

--the VMware team

[root@rhel64 vmware-tools-distrib]# shutdown now -h

Broadcast message from root@rhel64
        (/dev/pts/1) at 18:52 ...

The system is going down for halt NOW!
[root@rhel64 vmware-tools-distrib]# 
Last login: Fri Jun 16 18:40:20 2023 from 192.168.186.1

2、挂载光盘,配置本地数据源


[root@rhel64 ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/vg_rhel64-lv_root
                       20G  4.0G   15G  22% /
tmpfs                 2.0G  224K  2.0G   1% /dev/shm
/dev/sda1             485M   38M  422M   9% /boot
/dev/mapper/vg_rhel64-lv_u01
                       51G  180M   49G   1% /u01
/dev/sr0              3.5G  3.5G     0 100% /media/RHEL_6.4 x86_64 Disc 1
[root@rhel64 ~]# mount /dev/sr0 /mnt/cdrom
mount: mount point /mnt/cdrom does not exist
[root@rhel64 ~]# cd /mnt/
[root@rhel64 mnt]# ls
hgfs
[root@rhel64 mnt]# mkdir cdrom
[root@rhel64 mnt]# mount /dev/sr0 /mnt/cdrom
mount: block device /dev/sr0 is write-protected, mounting read-only
[root@rhel64 mnt]# ls
cdrom  hgfs
[root@rhel64 mnt]# cd /etc/yum.repos.d/
[root@rhel64 yum.repos.d]# ls
packagekit-media.repo  rhel-source.repo  rhel-source.repo.bak

[root@rhel64 yum.repos.d]# more rhel-source.repo
[rhel64]
name=rhel64
baseurl=file:///mnt/cdrom/Server
gpgcheck=0

3、系统版本、内存检查

[root@rhel64 yum.repos.d]# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 6.4 (Santiago)
[root@rhel64 yum.repos.d]# free -m
             total       used       free     shared    buffers     cached
Mem:          3946        810       3135          0         27        497
-/+ buffers/cache:        286       3660
Swap:         8095          0       8095
[root@rhel64 yum.repos.d]# df -h /dev/shm
Filesystem            Size  Used Avail Use% Mounted on
tmpfs                 2.0G  224K  2.0G   1% /dev/shm
[root@rhel64 yum.repos.d]# cat /etc/fstab 

#
# /etc/fstab
# Created by anaconda on Fri Jun 16 17:12:35 2023
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/vg_rhel64-lv_root /                       ext4    defaults        1 1
UUID=b17fde30-d52f-4e97-b7e1-4f1bd0b237bc /boot                   ext4    defaults        1 2
/dev/mapper/vg_rhel64-lv_u01 /u01                    ext4    defaults        1 2
/dev/mapper/vg_rhel64-lv_swap swap                    swap    defaults        0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
[root@rhel64 yum.repos.d]# 

4、修改系统内存参数

[root@rhel64 yum.repos.d]# df -h /dev/shm
Filesystem            Size  Used Avail Use% Mounted on
tmpfs                 2.0G  224K  2.0G   1% /dev/shm
[root@rhel64 yum.repos.d]# cat /etc/fstab 

# /etc/fstab
# Created by anaconda on Fri Jun 16 17:12:35 2023
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/vg_rhel64-lv_root /                       ext4    defaults        1 1
UUID=b17fde30-d52f-4e97-b7e1-4f1bd0b237bc /boot                   ext4    defaults        1 2
/dev/mapper/vg_rhel64-lv_u01 /u01                    ext4    defaults        1 2
/dev/mapper/vg_rhel64-lv_swap swap                    swap    defaults        0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
~                                                                         
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/vg_rhel64-lv_root /                       ext4    defaults        1 1
UUID=b17fde30-d52f-4e97-b7e1-4f1bd0b237bc /boot                   ext4    defaults        1 2
/dev/mapper/vg_rhel64-lv_u01 /u01                    ext4    defaults        1 2
/dev/mapper/vg_rhel64-lv_swap swap                    swap    defaults        0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
[root@rhel64 yum.repos.d]# vi /etc/fstab             
[root@rhel64 yum.repos.d]# more /etc/fstab 

#
# /etc/fstab
# Created by anaconda on Fri Jun 16 17:12:35 2023
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/vg_rhel64-lv_root /                       ext4    defaults        1 1
UUID=b17fde30-d52f-4e97-b7e1-4f1bd0b237bc /boot                   ext4    defaults        1 2
/dev/mapper/vg_rhel64-lv_u01 /u01                    ext4    defaults        1 2
/dev/mapper/vg_rhel64-lv_swap swap                    swap    defaults        0 0
tmpfs                   /dev/shm                tmpfs   defaults,size=2500M        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
[root@rhel64 yum.repos.d]# mount -o remount /dev/shm
[root@rhel64 yum.repos.d]# df -h /dev/shm
Filesystem            Size  Used Avail Use% Mounted on
tmpfs                 2.5G  224K  2.5G   1% /dev/shm
[root@rhel64 yum.repos.d]# 

5、查看本地主机名解析

[root@rhel64 yum.repos.d]# cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.186.10 rhel64
[root@rhel64 yum.repos.d]# cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=rhel64
GATEWAY=192.168.186.1
[root@rhel64 yum.repos.d]# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 6.4 (Santiago)
[root@rhel64 yum.repos.d]# 

6、磁盘空间检查,临时空间必须大于1G,软件空间必须大于2G,查看系统内核需求
oracle 安装内核必须高于Linux version 2.6.32-71.el6.x86_64 or later

[root@rhel64 yum.repos.d]# 
[root@rhel64 yum.repos.d]# df -h /tmp
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/vg_rhel64-lv_root
                       20G  4.0G   15G  22% /
[root@rhel64 yum.repos.d]# df -h /u01
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/vg_rhel64-lv_u01
                       51G  180M   49G   1% /u01
[root@rhel64 yum.repos.d]# cat /proc/version 
Linux version 2.6.32-358.el6.x86_64 (mockbuild@x86-022.build.eng.bos.redhat.com) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC) ) #1 SMP Tue Jan 29 11:47:41 EST 2013
#高于2.6.32-71
[root@rhel64 yum.repos.d]# lsb_release -id
Distributor ID: RedHatEnterpriseServer
Description:    Red Hat Enterprise Linux Server release 6.4 (Santiago)
[root@rhel64 yum.repos.d]# 
[root@rhel64 yum.repos.d]# uname -r
2.6.32-358.el6.x86_64
[root@rhel64 yum.repos.d]# 

软件包检查

[root@rhel64 yum.repos.d]# rpm -qa binutilscompat-libcap1compat-libstdc++ gcc gcc-c++glibcglibc-develglibc-devel-libgcclibstdclibstdc++-devellibaiolibaio-develmakesysstat |grep "not installed" 
[root@rhel64 yum.repos.d]# rpm -q binutils compat-libcap1 compat-libstdc++ gcc gcc-c++ glibc glibc-devel- libgcc libstdc libstdc++-devel libaio libaio-devel make sysstat |grep "not installed"            
package compat-libstdc++ is not installed
package gcc is not installed
package gcc-c++ is not installed
package glibc-devel- is not installed
package libstdc is not installed
package libstdc++-devel is not installed
package libaio-devel is not installed
[root@rhel64 yum.repos.d]# 

检查本地源配置

[root@rhel64 ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/vg_rhel64-lv_root
                       20G  4.0G   15G  22% /
tmpfs                 2.5G  224K  2.5G   1% /dev/shm
/dev/sda1             485M   38M  422M   9% /boot
/dev/mapper/vg_rhel64-lv_u01
                       51G  180M   49G   1% /u01
/dev/sr0              3.5G  3.5G     0 100% /media/RHEL_6.4 x86_64 Disc 1
/dev/sr0              3.5G  3.5G     0 100% /mnt/cdrom
[root@rhel64 ~]# cat /etc/yum.repos.d/
packagekit-media.repo  rhel-source.repo       rhel-source.repo.bak
[root@rhel64 ~]# cat /etc/yum.repos.d/rhel-source.repo
[rhel64]
name=rhel64
baseurl=file:///mnt/cdrom/Server
gpgcheck=0
```c
yum安装包

```c
#yum install binutils compat-libstdc++-33 elfutils-libelf elfutils-libelf-devel gcc gcc-c++ glibc glibc-common glibc-devel glibc-headers ksh libaio libaio-devel libgcc libstdc++ libstdc++-devel make sysstat unixODBC unixODBC-devel
[root@rhel64 ~]# yum install binutils compat-libcap1 compat-libstdc++ gcc gcc-c++ glibc glibc-devel- libgcc libstdc libstdc++-devel libaio libaio-devel make sysstat -y
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Setting up Install Process
Package binutils-2.20.51.0.2-5.36.el6.x86_64 already installed and latest version
Package compat-libcap1-1.10-1.x86_64 already installed and latest version
No package compat-libstdc++ available.
Package glibc-2.12-1.107.el6.x86_64 already installed and latest version
No package glibc-devel- available.
Package libgcc-4.4.7-3.el6.x86_64 already installed and latest version
No package libstdc available.
Package libaio-0.3.107-10.el6.x86_64 already installed and latest version
Package 1:make-3.81-20.el6.x86_64 already installed and latest version
Package sysstat-9.0.4-20.el6.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package gcc.x86_64 0:4.4.7-3.el6 will be installed
--> Processing Dependency: cpp = 4.4.7-3.el6 for package: gcc-4.4.7-3.el6.x86_64
--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc-4.4.7-3.el6.x86_64
--> Processing Dependency: cloog-ppl >= 0.15 for package: gcc-4.4.7-3.el6.x86_64
---> Package gcc-c++.x86_64 0:4.4.7-3.el6 will be installed
--> Processing Dependency: libmpfr.so.1()(64bit) for package: gcc-c++-4.4.7-3.el6.x86_64
---> Package libaio-devel.x86_64 0:0.3.107-10.el6 will be installed
---> Package libstdc++-devel.x86_64 0:4.4.7-3.el6 will be installed
--> Running transaction check
---> Package cloog-ppl.x86_64 0:0.15.7-1.2.el6 will be installed
--> Processing Dependency: libppl_c.so.2()(64bit) for package: cloog-ppl-0.15.7-1.2.el6.x86_64
--> Processing Dependency: libppl.so.7()(64bit) for package: cloog-ppl-0.15.7-1.2.el6.x86_64
---> Package cpp.x86_64 0:4.4.7-3.el6 will be installed
---> Package glibc-devel.x86_64 0:2.12-1.107.el6 will be installed
--> Processing Dependency: glibc-headers = 2.12-1.107.el6 for package: glibc-devel-2.12-1.107.el6.x86_64
--> Processing Dependency: glibc-headers for package: glibc-devel-2.12-1.107.el6.x86_64
---> Package mpfr.x86_64 0:2.4.1-6.el6 will be installed
--> Running transaction check
---> Package glibc-headers.x86_64 0:2.12-1.107.el6 will be installed
---> Package ppl.x86_64 0:0.10.2-11.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                Arch          Version               Repository     Size
================================================================================
Installing:
 gcc                    x86_64        4.4.7-3.el6           rhel64         10 M
 gcc-c++                x86_64        4.4.7-3.el6           rhel64        4.7 M
 libaio-devel           x86_64        0.3.107-10.el6        rhel64         13 k
 libstdc++-devel        x86_64        4.4.7-3.el6           rhel64        1.6 M
Installing for dependencies:
 cloog-ppl              x86_64        0.15.7-1.2.el6        rhel64         93 k
 cpp                    x86_64        4.4.7-3.el6           rhel64        3.7 M
 glibc-devel            x86_64        2.12-1.107.el6        rhel64        974 k
 glibc-headers          x86_64        2.12-1.107.el6        rhel64        604 k
 mpfr                   x86_64        2.4.1-6.el6           rhel64        156 k
 ppl                    x86_64        0.10.2-11.el6         rhel64        1.3 M

Transaction Summary
================================================================================
Install      10 Package(s)

Total download size: 23 M
Installed size: 56 M
Downloading Packages:
--------------------------------------------------------------------------------
Total                                            84 MB/s |  23 MB     00:00     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : mpfr-2.4.1-6.el6.x86_64                                     1/10 
  Installing : cpp-4.4.7-3.el6.x86_64                                      2/10 
  Installing : glibc-headers-2.12-1.107.el6.x86_64                         3/10 
  Installing : glibc-devel-2.12-1.107.el6.x86_64                           4/10 
  Installing : ppl-0.10.2-11.el6.x86_64                                    5/10 
  Installing : cloog-ppl-0.15.7-1.2.el6.x86_64                             6/10 
  Installing : gcc-4.4.7-3.el6.x86_64                                      7/10 
  Installing : libstdc++-devel-4.4.7-3.el6.x86_64                          8/10 
  Installing : gcc-c++-4.4.7-3.el6.x86_64                                  9/10 
  Installing : libaio-devel-0.3.107-10.el6.x86_64                         10/10 
  Verifying  : gcc-c++-4.4.7-3.el6.x86_64                                  1/10 
  Verifying  : gcc-4.4.7-3.el6.x86_64                                      2/10 
  Verifying  : libaio-devel-0.3.107-10.el6.x86_64                          3/10 
  Verifying  : mpfr-2.4.1-6.el6.x86_64                                     4/10 
  Verifying  : glibc-devel-2.12-1.107.el6.x86_64                           5/10 
  Verifying  : cpp-4.4.7-3.el6.x86_64                                      6/10 
  Verifying  : libstdc++-devel-4.4.7-3.el6.x86_64                          7/10 
  Verifying  : ppl-0.10.2-11.el6.x86_64                                    8/10 
  Verifying  : cloog-ppl-0.15.7-1.2.el6.x86_64                             9/10 
  Verifying  : glibc-headers-2.12-1.107.el6.x86_64                        10/10 

Installed:
  gcc.x86_64 0:4.4.7-3.el6               gcc-c++.x86_64 0:4.4.7-3.el6          
  libaio-devel.x86_64 0:0.3.107-10.el6   libstdc++-devel.x86_64 0:4.4.7-3.el6  

Dependency Installed:
  cloog-ppl.x86_64 0:0.15.7-1.2.el6     cpp.x86_64 0:4.4.7-3.el6               
  glibc-devel.x86_64 0:2.12-1.107.el6   glibc-headers.x86_64 0:2.12-1.107.el6  
  mpfr.x86_64 0:2.4.1-6.el6             ppl.x86_64 0:0.10.2-11.el6             

Complete!
[root@rhel64 ~]# 

yum重新安装包

[root@rhel64 ~]# yum install gcc* binutils* compat* glibc* ksh* libgcc* libstdc* libaio* make* sysstat* unixODBC* -y
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Setting up Install Process
Package gcc-4.4.7-3.el6.x86_64 already installed and latest version
Package gcc-c++-4.4.7-3.el6.x86_64 already installed and latest version
Package binutils-2.20.51.0.2-5.36.el6.x86_64 already installed and latest version
Package compat-db-4.6.21-15.el6.x86_64 already installed and latest version
Package compat-opensm-libs-3.3.5-3.el6.x86_64 already installed and latest version
Package compat-libf2c-34-3.4.6-19.el6.x86_64 already installed and latest version
Package compat-openmpi-psm-1.4.3-1.el6.x86_64 already installed and latest version
Package 1:compat-openldap-2.3.43-2.el6.x86_64 already installed and latest version
Package compat-libgfortran-41-4.1.2-39.el6.x86_64 already installed and latest version
Package 1:compat-glibc-headers-2.5-46.2.x86_64 already installed and latest version
Package 1:compat-glibc-2.5-46.2.x86_64 already installed and latest version
Package compat-libstdc++-296-2.96-144.el6.i686 already installed and latest version
Package compat-openmpi-1.4.3-1.el6.x86_64 already installed and latest version
Package compat-libtermcap-2.0.8-49.el6.x86_64 already installed and latest version
Package compat-db42-4.2.52-15.el6.x86_64 already installed and latest version
Package compat-db43-4.3.29-15.el6.x86_64 already installed and latest version
Package compat-expat1-1.95.8-8.el6.x86_64 already installed and latest version
Package compat-readline5-5.2-17.1.el6.x86_64 already installed and latest version
Package compat-libcap1-1.10-1.x86_64 already installed and latest version
Package compat-libstdc++-33-3.2.3-69.el6.x86_64 already installed and latest version
Package glibc-devel-2.12-1.107.el6.x86_64 already installed and latest version
Package glibc-2.12-1.107.el6.x86_64 already installed and latest version
Package glibc-headers-2.12-1.107.el6.x86_64 already installed and latest version
Package glibc-common-2.12-1.107.el6.x86_64 already installed and latest version
Package libgcc-4.4.7-3.el6.x86_64 already installed and latest version
Package libstdc++-4.4.7-3.el6.x86_64 already installed and latest version
Package libstdc++-devel-4.4.7-3.el6.x86_64 already installed and latest version
Package libaio-0.3.107-10.el6.x86_64 already installed and latest version
Package libaio-devel-0.3.107-10.el6.x86_64 already installed and latest version
Package 1:make-3.81-20.el6.x86_64 already installed and latest version
Package sysstat-9.0.4-20.el6.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package binutils-devel.x86_64 0:2.20.51.0.2-5.36.el6 will be installed
--> Processing Dependency: zlib-devel for package: binutils-devel-2.20.51.0.2-5.36.el6.x86_64
---> Package compat-dapl.x86_64 1:1.2.19-2.el6 will be installed
---> Package compat-gcc-34.x86_64 0:3.4.6-19.el6 will be installed
---> Package compat-gcc-34-c++.x86_64 0:3.4.6-19.el6 will be installed
---> Package compat-gcc-34-g77.x86_64 0:3.4.6-19.el6 will be installed
---> Package gcc-gfortran.x86_64 0:4.4.7-3.el6 will be installed
---> Package gcc-gnat.x86_64 0:4.4.7-3.el6 will be installed
--> Processing Dependency: libgnat-devel = 4.4.7-3.el6 for package: gcc-gnat-4.4.7-3.el6.x86_64
--> Processing Dependency: libgnat = 4.4.7-3.el6 for package: gcc-gnat-4.4.7-3.el6.x86_64
---> Package gcc-java.x86_64 0:4.4.7-3.el6 will be installed
rhel64/filelists_db                                      | 3.7 MB     00:00 ... 
--> Processing Dependency: libgcj-devel = 4.4.7-3.el6 for package: gcc-java-4.4.7-3.el6.x86_64
--> Processing Dependency: libgcj = 4.4.7-3.el6 for package: gcc-java-4.4.7-3.el6.x86_64
--> Processing Dependency: /usr/share/java/eclipse-ecj.jar for package: gcc-java-4.4.7-3.el6.x86_64
--> Processing Dependency: libgij.so.10()(64bit) for package: gcc-java-4.4.7-3.el6.x86_64
--> Processing Dependency: libgcj_bc.so.1()(64bit) for package: gcc-java-4.4.7-3.el6.x86_64
--> Processing Dependency: libgcj.so.10()(64bit) for package: gcc-java-4.4.7-3.el6.x86_64
--> Processing Dependency: libgcj-tools.so.10()(64bit) for package: gcc-java-4.4.7-3.el6.x86_64
---> Package gcc-objc.x86_64 0:4.4.7-3.el6 will be installed
--> Processing Dependency: libobjc = 4.4.7-3.el6 for package: gcc-objc-4.4.7-3.el6.x86_64
--> Processing Dependency: libobjc.so.2()(64bit) for package: gcc-objc-4.4.7-3.el6.x86_64
---> Package gcc-objc++.x86_64 0:4.4.7-3.el6 will be installed
---> Package glibc-utils.x86_64 0:2.12-1.107.el6 will be installed
--> Processing Dependency: libgd.so.2()(64bit) for package: glibc-utils-2.12-1.107.el6.x86_64
---> Package ksh.x86_64 0:20100621-19.el6 will be installed
---> Package libstdc++-docs.x86_64 0:4.4.7-3.el6 will be installed
---> Package makebootfat.x86_64 0:1.4-10.el6 will be installed
---> Package unixODBC.x86_64 0:2.2.14-12.el6_3 will be installed
---> Package unixODBC-devel.x86_64 0:2.2.14-12.el6_3 will be installed
--> Running transaction check
---> Package ecj.x86_64 1:3.4.2-6.el6 will be installed
--> Processing Dependency: java-gcj-compat for package: 1:ecj-3.4.2-6.el6.x86_64
--> Processing Dependency: java-gcj-compat for package: 1:ecj-3.4.2-6.el6.x86_64
---> Package gd.x86_64 0:2.0.35-11.el6 will be installed
---> Package libgcj.x86_64 0:4.4.7-3.el6 will be installed
---> Package libgcj-devel.x86_64 0:4.4.7-3.el6 will be installed
---> Package libgnat.x86_64 0:4.4.7-3.el6 will be installed
---> Package libgnat-devel.x86_64 0:4.4.7-3.el6 will be installed
---> Package libobjc.x86_64 0:4.4.7-3.el6 will be installed
---> Package zlib-devel.x86_64 0:1.2.3-29.el6 will be installed
--> Running transaction check
---> Package java-1.5.0-gcj.x86_64 0:1.5.0.0-29.1.el6 will be installed
--> Processing Dependency: sinjdoc for package: java-1.5.0-gcj-1.5.0.0-29.1.el6.x86_64
--> Running transaction check
---> Package sinjdoc.x86_64 0:0.5-9.1.el6 will be installed
--> Processing Dependency: java_cup >= 0.10 for package: sinjdoc-0.5-9.1.el6.x86_64
--> Running transaction check
---> Package java_cup.x86_64 1:0.10k-5.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                Arch        Version                   Repository   Size
================================================================================
Installing:
 binutils-devel         x86_64      2.20.51.0.2-5.36.el6      rhel64      686 k
 compat-dapl            x86_64      1:1.2.19-2.el6            rhel64       98 k
 compat-gcc-34          x86_64      3.4.6-19.el6              rhel64      3.7 M
 compat-gcc-34-c++      x86_64      3.4.6-19.el6              rhel64       10 M
 compat-gcc-34-g77      x86_64      3.4.6-19.el6              rhel64      2.1 M
 gcc-gfortran           x86_64      4.4.7-3.el6               rhel64      4.7 M
 gcc-gnat               x86_64      4.4.7-3.el6               rhel64      8.7 M
 gcc-java               x86_64      4.4.7-3.el6               rhel64      3.7 M
 gcc-objc               x86_64      4.4.7-3.el6               rhel64      3.6 M
 gcc-objc++             x86_64      4.4.7-3.el6               rhel64      4.0 M
 glibc-utils            x86_64      2.12-1.107.el6            rhel64      160 k
 ksh                    x86_64      20100621-19.el6           rhel64      686 k
 libstdc++-docs         x86_64      4.4.7-3.el6               rhel64       14 M
 makebootfat            x86_64      1.4-10.el6                rhel64       42 k
 unixODBC               x86_64      2.2.14-12.el6_3           rhel64      378 k
 unixODBC-devel         x86_64      2.2.14-12.el6_3           rhel64       53 k
Installing for dependencies:
 ecj                    x86_64      1:3.4.2-6.el6             rhel64      2.8 M
 gd                     x86_64      2.0.35-11.el6             rhel64      142 k
 java-1.5.0-gcj         x86_64      1.5.0.0-29.1.el6          rhel64      146 k
 java_cup               x86_64      1:0.10k-5.el6             rhel64      197 k
 libgcj                 x86_64      4.4.7-3.el6               rhel64       19 M
 libgcj-devel           x86_64      4.4.7-3.el6               rhel64      1.6 M
 libgnat                x86_64      4.4.7-3.el6               rhel64      908 k
 libgnat-devel          x86_64      4.4.7-3.el6               rhel64      3.3 M
 libobjc                x86_64      4.4.7-3.el6               rhel64       90 k
 sinjdoc                x86_64      0.5-9.1.el6               rhel64      705 k
 zlib-devel             x86_64      1.2.3-29.el6              rhel64       44 k

Transaction Summary
================================================================================
Install      27 Package(s)

Total download size: 85 M
Installed size: 330 M
Downloading Packages:
--------------------------------------------------------------------------------
Total                                            83 MB/s |  85 MB     00:01     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : libgcj-4.4.7-3.el6.x86_64                                   1/27 
  Installing : zlib-devel-1.2.3-29.el6.x86_64                              2/27 
  Installing : libgnat-4.4.7-3.el6.x86_64                                  3/27 
  Installing : compat-gcc-34-3.4.6-19.el6.x86_64                           4/27 
  Installing : libgnat-devel-4.4.7-3.el6.x86_64                            5/27 
  Installing : libgcj-devel-4.4.7-3.el6.x86_64                             6/27 
  Installing : java-1.5.0-gcj-1.5.0.0-29.1.el6.x86_64                      7/27 
  Installing : 1:java_cup-0.10k-5.el6.x86_64                               8/27 
  Installing : sinjdoc-0.5-9.1.el6.x86_64                                  9/27 
  Installing : 1:ecj-3.4.2-6.el6.x86_64                                   10/27 
  Installing : unixODBC-2.2.14-12.el6_3.x86_64                            11/27 
  Installing : gd-2.0.35-11.el6.x86_64                                    12/27 
  Installing : libobjc-4.4.7-3.el6.x86_64                                 13/27 
  Installing : gcc-objc-4.4.7-3.el6.x86_64                                14/27 
  Installing : gcc-objc++-4.4.7-3.el6.x86_64                              15/27 
  Installing : glibc-utils-2.12-1.107.el6.x86_64                          16/27 
  Installing : unixODBC-devel-2.2.14-12.el6_3.x86_64                      17/27 
  Installing : gcc-java-4.4.7-3.el6.x86_64                                18/27 
  Installing : gcc-gnat-4.4.7-3.el6.x86_64                                19/27 
  Installing : compat-gcc-34-g77-3.4.6-19.el6.x86_64                      20/27 
  Installing : binutils-devel-2.20.51.0.2-5.36.el6.x86_64                 21/27 
  Installing : makebootfat-1.4-10.el6.x86_64                              22/27 
  Installing : gcc-gfortran-4.4.7-3.el6.x86_64                            23/27 
  Installing : ksh-20100621-19.el6.x86_64                                 24/27 
  Installing : libstdc++-docs-4.4.7-3.el6.x86_64                          25/27 
  Installing : 1:compat-dapl-1.2.19-2.el6.x86_64                          26/27 
  Installing : compat-gcc-34-c++-3.4.6-19.el6.x86_64                      27/27 
  Verifying  : sinjdoc-0.5-9.1.el6.x86_64                                  1/27 
  Verifying  : libobjc-4.4.7-3.el6.x86_64                                  2/27 
  Verifying  : compat-gcc-34-3.4.6-19.el6.x86_64                           3/27 
  Verifying  : 1:compat-dapl-1.2.19-2.el6.x86_64                           4/27 
  Verifying  : 1:java_cup-0.10k-5.el6.x86_64                               5/27 
  Verifying  : libstdc++-docs-4.4.7-3.el6.x86_64                           6/27 
  Verifying  : compat-gcc-34-g77-3.4.6-19.el6.x86_64                       7/27 
  Verifying  : gcc-gnat-4.4.7-3.el6.x86_64                                 8/27 
  Verifying  : gd-2.0.35-11.el6.x86_64                                     9/27 
  Verifying  : glibc-utils-2.12-1.107.el6.x86_64                          10/27 
  Verifying  : gcc-java-4.4.7-3.el6.x86_64                                11/27 
  Verifying  : libgnat-4.4.7-3.el6.x86_64                                 12/27 
  Verifying  : unixODBC-2.2.14-12.el6_3.x86_64                            13/27 
  Verifying  : zlib-devel-1.2.3-29.el6.x86_64                             14/27 
  Verifying  : ksh-20100621-19.el6.x86_64                                 15/27 
  Verifying  : java-1.5.0-gcj-1.5.0.0-29.1.el6.x86_64                     16/27 
  Verifying  : binutils-devel-2.20.51.0.2-5.36.el6.x86_64                 17/27 
  Verifying  : unixODBC-devel-2.2.14-12.el6_3.x86_64                      18/27 
  Verifying  : compat-gcc-34-c++-3.4.6-19.el6.x86_64                      19/27 
  Verifying  : libgcj-4.4.7-3.el6.x86_64                                  20/27 
  Verifying  : libgcj-devel-4.4.7-3.el6.x86_64                            21/27 
  Verifying  : libgnat-devel-4.4.7-3.el6.x86_64                           22/27 
  Verifying  : gcc-objc++-4.4.7-3.el6.x86_64                              23/27 
  Verifying  : gcc-gfortran-4.4.7-3.el6.x86_64                            24/27 
  Verifying  : gcc-objc-4.4.7-3.el6.x86_64                                25/27 
  Verifying  : makebootfat-1.4-10.el6.x86_64                              26/27 
  Verifying  : 1:ecj-3.4.2-6.el6.x86_64                                   27/27 

Installed:
  binutils-devel.x86_64 0:2.20.51.0.2-5.36.el6                                  
  compat-dapl.x86_64 1:1.2.19-2.el6                                             
  compat-gcc-34.x86_64 0:3.4.6-19.el6                                           
  compat-gcc-34-c++.x86_64 0:3.4.6-19.el6                                       
  compat-gcc-34-g77.x86_64 0:3.4.6-19.el6                                       
  gcc-gfortran.x86_64 0:4.4.7-3.el6                                             
  gcc-gnat.x86_64 0:4.4.7-3.el6                                                 
  gcc-java.x86_64 0:4.4.7-3.el6                                                 
  gcc-objc.x86_64 0:4.4.7-3.el6                                                 
  gcc-objc++.x86_64 0:4.4.7-3.el6                                               
  glibc-utils.x86_64 0:2.12-1.107.el6                                           
  ksh.x86_64 0:20100621-19.el6                                                  
  libstdc++-docs.x86_64 0:4.4.7-3.el6                                           
  makebootfat.x86_64 0:1.4-10.el6                                               
  unixODBC.x86_64 0:2.2.14-12.el6_3                                             
  unixODBC-devel.x86_64 0:2.2.14-12.el6_3                                       

Dependency Installed:
  ecj.x86_64 1:3.4.2-6.el6                  gd.x86_64 0:2.0.35-11.el6          
  java-1.5.0-gcj.x86_64 0:1.5.0.0-29.1.el6  java_cup.x86_64 1:0.10k-5.el6      
  libgcj.x86_64 0:4.4.7-3.el6               libgcj-devel.x86_64 0:4.4.7-3.el6  
  libgnat.x86_64 0:4.4.7-3.el6              libgnat-devel.x86_64 0:4.4.7-3.el6 
  libobjc.x86_64 0:4.4.7-3.el6              sinjdoc.x86_64 0:0.5-9.1.el6       
  zlib-devel.x86_64 0:1.2.3-29.el6         

Complete!
[root@rhel64 ~]# 

修改资源限制

[root@rhel64 ~]# vi /etc/security/limits.conf
[root@rhel64 ~]# more /etc/security/limits.conf
# /etc/security/limits.conf
#
#Each line describes a limit for a user in the form:
#
#<domain>        <type>  <item>  <value>
#
#Where:
#<domain> can be:
#        - an user name
#        - a group name, with @group syntax
#        - the wildcard *, for default entry
#        - the wildcard %, can be also used with %group syntax,
#                 for maxlogin limit
#
#<type> can have the two values:
#        - "soft" for enforcing the soft limits
#        - "hard" for enforcing hard limits
#
#<item> can be one of the following:
#        - core - limits the core file size (KB)
#        - data - max data size (KB)
#        - fsize - maximum filesize (KB)
#        - memlock - max locked-in-memory address space (KB)
#        - nofile - max number of open files
#        - rss - max resident set size (KB)
#        - stack - max stack size (KB)
#        - cpu - max CPU time (MIN)
#        - nproc - max number of processes
#        - as - address space limit (KB)
#        - maxlogins - max number of logins for this user
#        - maxsyslogins - max number of logins on the system
#        - priority - the priority to run user process with
#        - locks - max number of file locks the user can hold
#        - sigpending - max number of pending signals
#        - msgqueue - max memory used by POSIX message queues (bytes)
#        - nice - max nice priority allowed to raise to values: [-20, 19]
#        - rtprio - max realtime priority
#
#<domain>      <type>  <item>         <value>
#

#*               soft    core            0
#*               hard    rss             10000
#@student        hard    nproc           20
#@faculty        soft    nproc           20
#@faculty        hard    nproc           50
#ftp             hard    nproc           0
#@student        -       maxlogins       4
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft stack 10240
# End of file
[root@rhel64 ~]# 
[root@rhel64 ~]# tail -8 /etc/security/limits.conf
#ftp             hard    nproc           0
#@student        -       maxlogins       4
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft stack 10240
# End of file

修改内核参数

[root@rhel64 ~]# vi /etc/sysctl.conf 
[root@rhel64 ~]# tail -10 /etc/sysctl.conf 

fs.aio-max-nr = 1048567
fs.file-max = 6815744
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048586
[root@rhel64 ~]# 

创建组和用户,设置密码

[root@rhel64 ~]# groupadd oinstall
[root@rhel64 ~]# groupadd dba
[root@rhel64 ~]# groupadd oper
[root@rhel64 ~]# useradd -g oinstall -G dba,oper oracle
[root@rhel64 ~]# passwd oracle
Changing password for user oracle.
New password:
BAD PASSWORD: it is based on a dictionary word
BAD PASSWORD: is too simple
Retype new password:
passwd: all authentication tokens updated successfully.
[root@rhel64 ~]# su - oracle
[oracle@rhel64 ~]$ id
uid=500(oracle) gid=500(oinstall) groups=500(oinstall),501(dba),502(oper)
[oracle@rhel64 ~]$

创建目录 ,修改属主权限

[root@rhel64 ~]# mkdir -p /u01/app/oracle
[root@rhel64 ~]# chown -R oracle:oinstall /u01
[root@rhel64 ~]# chmod -R 775 /u01/app/oracle/
[root@rhel64 ~]# 

登录oracle 用户,修改oracle 环境变量并刷新环境变量:

[oracle@rhel64 ~]$ vi .bash_profile 
[oracle@rhel64 ~]$ more .bash_profile 
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin export PATH
umask 022 
export ORACLE_BASE=/u01/app/oracle
export ORACLE_SID=PROD
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1
export PATH=$ORACLE_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib 
export LC_CTYPE=en_US.UTF-8 export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
[oracle@rhel64 ~]$ 
[oracle@rhel64 ~]$ source .bash_profile 
[oracle@rhel64 ~]$ source ~/.bash_profile 

上传软件oracle,做好安装准备

[root@rhel64 database]# unzip p13390677_112040_Linux-x86-64_1of7.zip
[root@rhel64 database]# unzip p13390677_112040_Linux-x86-64_2of7.zip
[root@rhel64 database]# unzip p13390677_112040_Linux-x86-64_3of7.zip
[root@rhel64 software]# ls
database                                p13390677_112040_Linux-x86-64_2of7.zip
grid                                    p13390677_112040_Linux-x86-64_3of7.zip
p13390677_112040_Linux-x86-64_1of7.zip
[root@rhel64 software]# cd database/
[root@rhel64 database]# ll
total 60
drwxr-xr-x  4 root root  4096 Aug 27  2013 install
-rw-r--r--  1 root root 30016 Aug 27  2013 readme.html
drwxr-xr-x  2 root root  4096 Aug 27  2013 response
drwxr-xr-x  2 root root  4096 Aug 27  2013 rpm
-rwxr-xr-x  1 root root  3267 Aug 27  2013 runInstaller
drwxr-xr-x  2 root root  4096 Aug 27  2013 sshsetup
drwxr-xr-x 14 root root  4096 Aug 27  2013 stage
-rw-r--r--  1 root root   500 Aug 27  2013 welcome.html[root@rhel64 software]# chown -R oracle:oinstall database/
[root@rhel64 software]# ll
total 3664220
drwxr-xr-x 7 oracle oinstall       4096 Aug 27  2013 database
drwxr-xr-x 7 root   root           4096 Aug 27  2013 grid
-rw-r--r-- 1 root   root     1395579832 Oct 17  2022 p13390677_112040_Linux-x86-64_1of7.zip
-rw-r--r-- 1 root   root     1151304589 Oct 17  2022 p13390677_112040_Linux-x86-64_2of7.zip
-rw-r--r-- 1 root   root     1205251894 Oct 17  2022 p13390677_112040_Linux-x86-64_3of7.zip
[root@rhel64 software]# 

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/weixin_44048054/article/details/131243236

智能推荐

while循环&CPU占用率高问题深入分析与解决方案_main函数使用while(1)循环cpu占用99-程序员宅基地

文章浏览阅读3.8k次,点赞9次,收藏28次。直接上一个工作中碰到的问题,另外一个系统开启多线程调用我这边的接口,然后我这边会开启多线程批量查询第三方接口并且返回给调用方。使用的是两三年前别人遗留下来的方法,放到线上后发现确实是可以正常取到结果,但是一旦调用,CPU占用就直接100%(部署环境是win server服务器)。因此查看了下相关的老代码并使用JProfiler查看发现是在某个while循环的时候有问题。具体项目代码就不贴了,类似于下面这段代码。​​​​​​while(flag) {//your code;}这里的flag._main函数使用while(1)循环cpu占用99

【无标题】jetbrains idea shift f6不生效_idea shift +f6快捷键不生效-程序员宅基地

文章浏览阅读347次。idea shift f6 快捷键无效_idea shift +f6快捷键不生效

node.js学习笔记之Node中的核心模块_node模块中有很多核心模块,以下不属于核心模块,使用时需下载的是-程序员宅基地

文章浏览阅读135次。Ecmacript 中没有DOM 和 BOM核心模块Node为JavaScript提供了很多服务器级别,这些API绝大多数都被包装到了一个具名和核心模块中了,例如文件操作的 fs 核心模块 ,http服务构建的http 模块 path 路径操作模块 os 操作系统信息模块// 用来获取机器信息的var os = require('os')// 用来操作路径的var path = require('path')// 获取当前机器的 CPU 信息console.log(os.cpus._node模块中有很多核心模块,以下不属于核心模块,使用时需下载的是

数学建模【SPSS 下载-安装、方差分析与回归分析的SPSS实现(软件概述、方差分析、回归分析)】_化工数学模型数据回归软件-程序员宅基地

文章浏览阅读10w+次,点赞435次,收藏3.4k次。SPSS 22 下载安装过程7.6 方差分析与回归分析的SPSS实现7.6.1 SPSS软件概述1 SPSS版本与安装2 SPSS界面3 SPSS特点4 SPSS数据7.6.2 SPSS与方差分析1 单因素方差分析2 双因素方差分析7.6.3 SPSS与回归分析SPSS回归分析过程牙膏价格问题的回归分析_化工数学模型数据回归软件

利用hutool实现邮件发送功能_hutool发送邮件-程序员宅基地

文章浏览阅读7.5k次。如何利用hutool工具包实现邮件发送功能呢?1、首先引入hutool依赖<dependency> <groupId>cn.hutool</groupId> <artifactId>hutool-all</artifactId> <version>5.7.19</version></dependency>2、编写邮件发送工具类package com.pc.c..._hutool发送邮件

docker安装elasticsearch,elasticsearch-head,kibana,ik分词器_docker安装kibana连接elasticsearch并且elasticsearch有密码-程序员宅基地

文章浏览阅读867次,点赞2次,收藏2次。docker安装elasticsearch,elasticsearch-head,kibana,ik分词器安装方式基本有两种,一种是pull的方式,一种是Dockerfile的方式,由于pull的方式pull下来后还需配置许多东西且不便于复用,个人比较喜欢使用Dockerfile的方式所有docker支持的镜像基本都在https://hub.docker.com/docker的官网上能找到合..._docker安装kibana连接elasticsearch并且elasticsearch有密码

随便推点

Python 攻克移动开发失败!_beeware-程序员宅基地

文章浏览阅读1.3w次,点赞57次,收藏92次。整理 | 郑丽媛出品 | CSDN(ID:CSDNnews)近年来,随着机器学习的兴起,有一门编程语言逐渐变得火热——Python。得益于其针对机器学习提供了大量开源框架和第三方模块,内置..._beeware

Swift4.0_Timer 的基本使用_swift timer 暂停-程序员宅基地

文章浏览阅读7.9k次。//// ViewController.swift// Day_10_Timer//// Created by dongqiangfei on 2018/10/15.// Copyright 2018年 飞飞. All rights reserved.//import UIKitclass ViewController: UIViewController { ..._swift timer 暂停

元素三大等待-程序员宅基地

文章浏览阅读986次,点赞2次,收藏2次。1.硬性等待让当前线程暂停执行,应用场景:代码执行速度太快了,但是UI元素没有立马加载出来,造成两者不同步,这时候就可以让代码等待一下,再去执行找元素的动作线程休眠,强制等待 Thread.sleep(long mills)package com.example.demo;import org.junit.jupiter.api.Test;import org.openqa.selenium.By;import org.openqa.selenium.firefox.Firefox.._元素三大等待

Java软件工程师职位分析_java岗位分析-程序员宅基地

文章浏览阅读3k次,点赞4次,收藏14次。Java软件工程师职位分析_java岗位分析

Java:Unreachable code的解决方法_java unreachable code-程序员宅基地

文章浏览阅读2k次。Java:Unreachable code的解决方法_java unreachable code

标签data-*自定义属性值和根据data属性值查找对应标签_如何根据data-*属性获取对应的标签对象-程序员宅基地

文章浏览阅读1w次。1、html中设置标签data-*的值 标题 11111 222222、点击获取当前标签的data-url的值$('dd').on('click', function() { var urlVal = $(this).data('ur_如何根据data-*属性获取对应的标签对象

推荐文章

热门文章

相关标签