首先创建组、用户、目录
#groupadd oinstall
#groupadd dba
#useradd -m -g oinstall -G dba oracle
#id oracle
#passwd oracle
#mkdir -p /u01/oracle
#chown -R oracle:oinstall /u01
#chmod -R 775 /u01
修改配置文件
(配置内核参数)
#cat >> /f <<EOF
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 6815744
fs.aio-max-nr = 1048576
net.ipv4.ip_local_port_range = 9000 65500
EOF
/
sbin/sysctl –p(执行此行以上生效)
#cat >> /etc/f <<EOF
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
EOF
#cat >> /etc/pam.d/login <<EOF
session required /lib/security/pam_limits.so
EOF
#cat >> /etc/profile <<EOF
if [ \$USER = "oracle" ]; then
if [ \$SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
umask 022
fi
EOF
#cat >> /etc/csh.login <<EOF
if ( \$USER == "oracle" ) then
limit maxproc 16384
limit descriptors 65536
umask 022
endif
EOF
切换为oracle用户
vi /home/oracle/.bash_profile
环境变量的配置内容放在这行注释下# User specific environment and startup programs
ORACLE_SID=orcl
ORACLE_BASE=/u01/app/oracle
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1
ORACLE_HOME_LISTNER=$ORACLE_HOME
PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin
export ORACLE_SID ORACLE_BASE ORACLE_HOME ORACLE_HOME_LISTNER PATH
环境变量设置生效命令source ~/.bash_profile
解压安装包到同一个目录database
并进行安装
安装路径设置为之前创建的u01/oracle目录下
(配置实例:dbca
配置监听:netca
启动实例:sqlplus / as sysdba
启动监听:lsnrctl start
启动停止em:emctl start/stop dbconsole)
启动实例执行sqlplus / as sysdba过程中报错如下
SP2-0667: Message file sp1<lang>.msb not found
SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
则执行chcon -t texrel_shlib_t /u01/oracle/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1
配置监听 设置为 本地net… 其他的选择下一步即可 其中注意 实例名 ip的设定
若是linux系统下安装的oracle11g 需要通过本机的xp访问需要现在xp上安装oracle客户端 和 pl/sql developer工具
(注意:Sqlplus 用户名/密码 as sysdba)
-------------------------------------------------------------------分界线
yum install elfutils-libelf*
yum install compat-libstdc*
yum install binutils-2*
yum install glibc-*
yum install libaio*
yum install libgcc*
yum install libstdc*
yum install make*
yum install sysstat*
./runInstaller -silent -debug -force -ignoreSysPrereqs \
FROM_LOCATION=/home/oracle/database/l \
oracle.install.option=INSTALL_DB_SWONLY\
linux系统安装oracle11gUNIX_GROUP_NAME=oinstall \
INVENTORY_LOCATION=/home/oracle/oraInventory \
ORACLE_HOME=/u01/app/oracle
/product/11.2.0/dbhome_1 \
ORACLE_HOME_NAME="oracle11g" \
ORACLE_BASE=/u01/app/oracle \
oracle.install.db.InstallEdition=SE \
oracle.install.db.isCustomInstall=false \
oracle.install.db.DBA_GROUP=dba\
oracle.install.db.OPER_GROUP=dba\
DECLINE_SECURITY_UPDATE=true
-
cvc-complex-type.2.4.a: Invalid content was found starting with element 'DECLINE_SECURITY_UPDATE'. One of '{"":oracle.install.option, "":SELECTED_LANGUAGES, "":INVENTORY_LOCATION, "":UNIX_GROUP_NAME, "":oracle.install.db.InstallEdition, "":ORACLE_HOME, "":oracle.install.db.CLUSTER_NODES, "":oracle.install.db.DBA_GROUP, "":oracle.install.db.isCustomInstall, "":oracle.install.db.customComponents, "":oracle.pe, "":oracle.fig.starterdb.SID, "":oracle.fig.starterdb.globalDBName, "":oracle.fig.starterdb.characterSet, "":oracle.Limit, "":oracle.ableSecuritySettings, "":oracle.fig.starterdb.fileSystemStorage.dataLocation, "":oracle.fig.starterdb.password.SYS, "":oracle.fig.starterdb.password.DBSNMP, "":oracle.fig.starterdb.password.SYSMAN, "":oracle.fig.starterdb.password.SYSTEM, "":oracle.l, "":oracle.fig.ailAddress, "":oracle.fig.starterdb.dbcontrol.SMTPServer, "":oracle.idControlServiceURL, "":oracle.fig.starter
able, "":oracle.fig.starterdb.automatedBackup.osuid, "":oracle.fig.starterdb.automatedBackup.ospwd, "":SECURITY_UPDATES_VIA_MYORACLESUPPORT, "":DECLINE_SECURITY_UPDATES, "":MYORACLESUPPORT_USERNAME, "":MYORACLESUPPORT_PASSWORD, "":PROXY_PORT, "":PROXY_USER}' is expected.
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论