[security]
AllowRemoteRoot=true #允许root登陆
[xdmcp]
Enable=true #开启xdcmp服务
Port=177 #指定服务端口
然后重启服务器:init 6
配置Xmanager: 见附件
安装oracle:
1、将压缩包使用ftp传上去后,使用unzip来进行解压
2、在根目录下创建oracle的组与和用户
mkdir u01
groupadd oinstall
groupadd dba
useradd -g oinstall -G dba -d /u01/oracle oracle
passwd oracle oracle
3、进入u01把database目录剪切到该目录
cd /u01
mv /root/database/ .
4、更改u01r的权限让oracle和oinstall有权限操作u01
chown oracle:oinstall -R /u01
5、切换到oracle用户,并设置该用户的环境变量
su - oracle
vim .bash_profile,在其末尾添加
ORACLE_SID=test
ORACLE_BASE=/u01
ORACLE_HOME=$ORACLE_BASE/oracle
LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
PATH=$ORACLE_HOME/bin:$PATH
export ORACLE_SID ORACLE_BASE ORACLE_HOM ELD_LIBRARY_PATH PATH
Downloading Packages:
(1/22): libaio-devel-0.3.106-5.i386.rpm | 12 kB
(2/22): numactl-devel-0.9.8-11.el5.i386.rpm | 17 kB
(3/22): elfutils-libelf-devel-0.137-3.el5.i386.rpm | 24 kB
(4/22): elfutils-libelf-devel-static-0.137-3.el5.i386.rpm | 66 kB
(5/22): libgomp-4.4.4-13.el5.i386.rpm | 72 kB
(6/22): libgcc-4.1.2-50.el5.i386.rpm | 96 kB
(7/22): nscd-2.5-58.el5_6.3.i386.rpm | 167 kB
(8/22): sysstat-7.0.2-3.el5_5.1.i386.rpm | 170 kB
(9/22): pdksh-5.2.14-36.el5.i386.rpm | 198 kB
(10/22): compat-libstdc++-33-3.2.3-61.i386.rpm | 232 kB
(11/22): libstdc++-4.1.2-50.el5.i386.rpm | 362 kB
(12/22): glibc-headers-2.5-58.el5_6.3.i386.rpm | 603 kB
(13/22): unixODBC-devel-2.2.11-7.1.i386.rpm | 739 kB
(14/22): unixODBC-2.2.11-7.1.i386.rpm | 832 kB
(15/22): kernel-headers-2.6.18-238.9.1.el5.i386.rpm | 1.1 MB
(16/22): glibc-devel-2.5-58.el5_6.3.i386.rpm | 2.0 MB
(17/22): cpp-4.1.2-50.el5.i386.rpm | 2.7 MB
(18/22): libstdc++-devel-4.1.2-50.el5.i386.rpm | 2.8 MB
(19/22): gcc-c++-4.1.2-50.el5.i386.rpm | 3.4 MB
(20/22): gcc-4.1.2-50.el5.i386.rpm | 5.2 MB
(21/22): glibc-2.5-58.el5_6.3.i686.rpm | 5.3 MB
(22/22): glibc-common-2.5-58.el5_6.3.i386.rpm
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft stack 10240
vim /etc/sysctl.conf,在其末尾添加
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 4294967295
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
最后让其生效:sysctl -p
7、修改login文件
vim /etc/pam.d/login,在其末尾添加
session required /lib/security/pam_limits.so
session required pam.limits.so
8、运行Xmanager
如果Xmanager连接不上centos,则先用root用户执行iptables -F
打开终端运行:xhost +
切换oracle用户:su - oracle
再运行:xhost local:oracle
进入/u01/database
运行./runInstaller
按照界面提示,一步一步执行
9、若之前安装数据库的时候只安装了数据库软件,则现在来创建数据库
进入到oracle用户运行dbca
解决方法:
[root@fw55 lib]# getenforce
Enforcing
[root@fw55 lib]# /usr/sbin/setenforce 0
[root@fw55 lib]# cd /etc/selinux
[root@fw55 selinux]# ls
config restorecond.conf semanage.conf targeted
[root@fw55 selinux]# vi config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted
把SELINUX设置为disabled 就好了,保存后退出。