In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
1 "
The following are executed using the root user
/ usr/sbin/groupadd-g 501 oinstall/usr/sbin/groupadd-g 502 dba/usr/sbin/groupadd-g 503 oper/usr/sbin/groupadd-g 504 asmadmin/usr/sbin/groupadd-g 505 asmoper/usr/sbin/groupadd-g 506 asmdba/usr/sbin/useradd-g oinstall-G dba,asmdba,oper oracle/usr/sbin/useradd-g oinstall-G asmadmin,asmdba,asmoper,oper Dba gridmkdir-p / u01/app/oracle/product/11.2.0/dbhome_1mkdir-p / u01/app/grid/product/11.2.0/gridchown-R oracle:oinstall / u01/app/chown-R grid:oinstall / u01/app/gridchmod-R 775 / u01 /
# passwd grid
# passwd oracle
# vi / etc/security/limits.conf
# ORACLE SETTINGgrid soft nproc 2047grid hard nproc 16384grid soft nofile 1024grid hard nofile 65536oracle soft nproc 2047oracle hard nproc 16384oracle soft nofile 1024oracle hard nofile 65536
# vi / etc/pam.d/login
# ORACLE SETTINGsession required pam_limits.so
# vi / etc/sysctl.conf
# ORACLE SETTINGfs.aio-max-nr = 1048576fs.file-max = 6815744kernel.shmall = 2097152kernel.shmmax = 536870912kernel.shmmni = 4096kernel.sem = 32000 100 128net.ipv4.ip_local_port_range = 900065500net.core.rmem_default = 262144net.core.rmem_max = 4194304net.core.wmem_default = 262144net.core.wmem_max = 1048586
Use cysctl-p to make sysctl effective
# Oracle Settings oracleTMP=/tmp; export TMPTMPDIR=$TMP; export TMPDIRORACLE_HOSTNAME=UMI; export ORACLE_HOSTNAMEORACLE_BASE=/u01/app/oracle; export ORACLE_BASEORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1; export ORACLE_HOMEORACLE_SID=ORCL; export ORACLE_SIDORACLE_TERM=xterm; export ORACLE_TERMNLS_LANG=AMERICAN_AMERICA.UTF8export NLS_LANGPATH=/usr/sbin:$PATH; export PATHPATH=$ORACLE_HOME/bin:$PATH; export PATHLD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib Export LD_LIBRARY_PATHCLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATHif [$USER = "oracle"] | | [$USER = "grid"]; then if [$SHELL = "/ bin/ksh"]; then ulimit-p 16384 ulimit-n 65536 else ulimit-u 16384-n 65536 fi umask 022fi
2 "
Assign Oracle permissions to the file where the Oracle installation package is located: chown-R oracle:oinstall database//database is the oracle installation directory
Under oracle user: execute. / runInstaller (if it appears to let you select yes and no, select no to switch to root user to execute xhost +)
Execution
It shows that there are some failed packages on the system: install it and open the source system ISO file with rpm in it.
Open a terminal to execute the above two scripts
The software is installed.
Check to see if the environment variable is successful
If it is not successful, execute xhost + under the root user and enter through su-oracle. Note "-"
Next, create a listener
Netca (if this command doesn't work, check to see if the installation directory of oracle is the same as ORACLE_HOME, and see if there are files under ORACLE_HOME)
Next step, that's it.
Finally, create the database.
Dbca
Get rid of CEM
Configure a unified password
Then finish will be fine.
If there is a NTS error here, I will directly reinstall the virtual machine to solve the problem: thinking that the liboio package mentioned on the Internet has been installed
Oracle database installed successfully
Conduct a test
Successful landing
This is the end of this tutorial
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.