Oracle database structures (1)

Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/The_code_is_poison/article/details/48159785

Preparing for Installation

1. Create the / u01 directory in the root directory, create a directory for storing soft compress files / u01

2. The file transfer from the local to the virtual machine

  1. Use chkconfig -list | ftp command to view the current status of FTP
  2. Modify the parameters, the use of 'chkconfig -level 2345 vsftpd on' command
  3. 'Service vsftpd restart' Restart
  4. Modify the parameters, the user_list in the / etc / vsftpd / ftpusers in the root directory and the same to eliminate #

3. Unzip the file with unzip

4. modify the configuration parameters and

1. Create a user group and user names
to create Oracle Inventory group
groupadd oinstall
Creating the OSDBA group
groupadd dba
Creating Oracle software creator
useradd -g oinstall -G dba oracle
to amend the oracle user's password
passwd oracle
2. Configure the kernel parameters
edit / etc / sysctl. conf file
vim /etc/sysctl.conf

Add the following content files open at the bottom
fs.aio-NR-max = 1048576
fs.file-max = 6,815,744
kernel.shmall = 2097152
kernel.shmmax = 536870912
kernel.shmmni = 4096
kernel.sem = 32000 250 100 128
net.ipv4 9000 = 65500 .ip_local_port_range
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048586

Change the current system kernel parameter value (let /etc/sysctl.conf become effective immediately)
sysctl -p
3. Check the installation user resource limits
modify the file /etc/security/limits.conf

vim /etc/security/limits.conf
add the following content in the bottom of the open file

Soft nproc 2047 the Oracle
the Oracle 16384 Hard nproc
the Oracle Soft nofile 1024
the Oracle 65536 Hard nofile
the Oracle Stack Soft 10240
4. Create the required directory to install the software

mkdir -p /u01/oracle/product/11.2.0/db_1

chown -R oracle:oinstall /u01

chmod -R 775 /u01

  1. Oracle installation configuration environment

Edit the /home/oracle/.bash_profile
vim the /home/oracle/.bash_profile
add the following content in the open file

umask 022 // default directory permissions to build subtracting
export ORACLE_BASE = / u01 / oracle / product // variable
export ORACLE_HOME = O R A CThe EBASE/11.2.0/db1/ / Variable amount EXPOR & ltTOR & ltACThe ESID = O R & lt C L ( single real cases the number of data database -A th real embodiment of should a th number data database ) / / variable amount EXPOR & ltTPATH= PATH: HOME / bin: $ ORACLE_HOME / bin
edit /etc/pam.d/login
vim /etc/pam.d/login
add the following content in the open file in
the session required /lib/security/pam_limits.so
the session required pam_limits. so

Edit / etc / Profile
vim / etc / Profile
add the following content in the open file
if [ TheSER=oracle];thenif[ = The SHELL "/ bin / the bash"]; the then
the ulimit -p 16384
the ulimit -n 65536
the else
the ulimit -n -u 16384 65536
Fi
Fi
6. The remote desktop installation configuration graphical
installation tool Xmanager

Xmanager connected to the server via remote workers

Configuring the DISPLAY environment variable

Virtual machine network connection HOST-ONLY, the physical machine with virtual NICs VMnet1

VMnet1 query on the physical IP address of the Linux DISPLAY environment variable on the set of IP addresses VMnet1:
Export the DISPLAY = 192.168.216.55: 0.0
xhost +
the xclock

Guess you like

Origin blog.csdn.net/The_code_is_poison/article/details/48159785