标签:
本文 基本参考了下面这篇文章INFO: INFO: Verification Result for Node:localhost INFO: INFO: Expected Value:2.6845GB (2814906.0KB) INFO: INFO: Actual Value:2GB (2097148.0KB) INFO: INFO: Error Message:PRVF-7573 : Sufficient swap size is not available on node "localhost" [Required = 2.6845GB (2814906.0KB) ; Found = 2GB (2097148.0KB)] INFO: INFO: Cause: The swap size found does not meet the minimum requirement. INFO: INFO: Action: Increase swap size to at least meet the minimum swap space requirement.然后我就在现有的虚拟机上增加swap,后面又说磁盘不够。
地址呢?
下面的你要是还不知道,那我就没法了。
yum -y install binutils compat-libcap1 compat-libstdc++-33 compat-libstdc++-33*.i686 elfutilslibelf-devel gcc gcc-c++ glibc*.i686 glibc glibc-devel glibc-devel*.i686 ksh libgcc*.i686 libgcc libstdc++ libstdc++*.i686 libstdc++-devel libstdc++-devel*.i686 libaio libaio*.i686 libaio-devel libaio-devel*.i686 make sysstat unixODBC unixODBC*.i686 unixODBC-devel unixODBCdevel*.i686 libXp
groupadd oinstall groupadd dba groupadd oper useradd -g oinstall -G dba,oper oracle echo "123456" | passwd --stdin oracle注释:最后那个就是给oracle这个用户,设置密码123456
mkdir -p /orcl/app/oracle/product/12.1.0/db_1 chown -R oracle:oinstall /orcl/app chmod -R 775 /orcl/app
fs.aio-max-nr = 1048576 fs.file-max = 6815744 kernel.shmall = 2097152 kernel.shmmax = 1200000000 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 = 1048576改好后,使之生效
另外 上面的kernel.shmmax = 1200000000可能会有问题,后面咱们再说。
或者你直接现在就写成4098955264
oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536 oracle soft stack 10240注意:修改此文件是即时生效的,但可能要重登录后再看
#session required /lib/security/pam_limits.so session required pam_limits.so注意:如果在login文件里就没有
if [ $USER = "oracle" ]; then if [ $SHELL = "/bin/ksh" ]; then ulimit -p 16384 ulimit -n 65536a else ulimit -u 16384 -n 65536 fi fi进到/etc/profile里 里面本身就有内容,把上面的内容加入进去。
ORACLE_BASE=/orcl/app/oracle ORACLE_HOME=$ORACLE_BASE/product/12.1.0/db_1 ORACLE_SID=orcl export ORACLE_BASE ORACLE_HOME ORACLE_SID PATH=$ORACLE_HOME/bin:$PATH export PATH注释:
# su - oracle $ cd /orcl/app/oracle $ unzip linuxamd64_12102_database_se2_1of2.zip $ unzip linuxamd64_12102_database_se2_2of2.zip $ export LANG="en_US" $ cd /orcl/app/oracle/database $ ./runInstaller
安装的时候,不能是root用户,所以得su - oracle
在运行./runInstaller的时候,可能会报错误说显示器256色的问题(大概就是这么个意思)如果切换到oracle了还不行,那就重新以oracle用户登陆
上面的步骤都走完了之后,就会出现图形界面
关于这个 大家参考
http://ycrsjxy.blog.51cto.com/618627/1598712如下图,已经说得很清楚了,执行第二个sh的时候,会有提示,但是你不用管,直接回车
4.SQL>SHUTDOWN IMMEDIATE 关闭 db
http://blog.csdn.net/gq5251/article/details/42004035
http://zyp88.blog.51cto.com/1481591/1566504
http://ycrsjxy.blog.51cto.com/618627/1598712
标签:
原文地址:http://blog.csdn.net/dlf123321/article/details/51371669