您的位置:首页 > 数据库 > Oracle

linux操作oracle 11g数据库常见问题

2013-10-27 15:03 537 查看
1.ORA-27154:

ORACLE启动数据库报错

ORA-27154:
post/wait create failed

ORA-27300:
OS system dependent operation:semget failed with status: 28

ORA-27301:
OS failure message: No space left on device

ORA-27302:
failure occurred at: sskgpcreates

su

echo "110 10000
110 128" > /proc/sys/kernel/sem

cat /proc/sys/kernel/sem

110 10000 110 128

2.RHEL5.2 iptables防火墙设置:

1. 查看现有配置

[root@RHEL
~]# iptables -L -n

Chain INPUT (policy ACCEPT)

target prot
opt source destination

RH-Firewall-1-INPUT all -- 0.0.0.0/0 0.0.0.0/0

ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp
dpt:1158

Chain FORWARD (policy ACCEPT)

target prot
opt source destination

RH-Firewall-1-INPUT all -- 0.0.0.0/0 0.0.0.0/0

Chain OUTPUT (policy ACCEPT)

target prot
opt source destination

Chain RH-Firewall-1-INPUT (2 references)

target prot
opt source destination

ACCEPT all -- 0.0.0.0/0 0.0.0.0/0

ACCEPT icmp
-- 0.0.0.0/0 0.0.0.0/0 icmp
type 255

ACCEPT esp -- 0.0.0.0/0 0.0.0.0/0

ACCEPT ah -- 0.0.0.0/0 0.0.0.0/0

ACCEPT udp -- 0.0.0.0/0 224.0.0.251 udp
dpt:5353

ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 udp
dpt:631

ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp
dpt:631

ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 state
RELATED,ESTABLISHED

ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state
NEW tcp dpt:21

ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state
NEW tcp dpt:22

ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state
NEW tcp dpt:443

ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state
NEW tcp dpt:23

ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state
NEW tcp dpt:80

REJECT all -- 0.0.0.0/0 0.0.0.0/0 reject-with
icmp-host-prohibited

2.清除防火墙配置

[root@RHEL ~]# iptables
-F

[root@RHEL ~]# iptables
-X

[root@RHEL ~]# /etc/rc.d/init.d/iptables
save

Saving firewall rules to /etc/sysconfig/iptables: [ OK ]

[root@RHEL ~]# iptables
-L -n

Chain INPUT (policy ACCEPT)

target prot
opt source destination

Chain FORWARD (policy ACCEPT)

target prot
opt source destination

Chain OUTPUT (policy ACCEPT)

target prot
opt source destination

3.添加防火墙配置

将特定的端口添加到允许列表。比如EM使用的1158、telnet使用的23和Litener使用的1521等。

[root@RHEL ~]# iptables
-A INPUT -p tcp --dport 1158 -j ACCEPT

[root@RHEL ~]# iptables
-A INPUT -p tcp --dport 23 -j ACCEPT

[root@RHEL ~]# iptables
-A INPUT -p tcp --dport 1521 -j ACCEPT

保存配置:

[root@RHEL ~]# /etc/rc.d/init.d/iptables
save

Saving firewall rules to /etc/sysconfig/iptables: [ OK ]

查看一下当前配置:

[root@RHEL ~]# iptables
-L -n

Chain INPUT (policy ACCEPT)

target prot
opt source destination

ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp
dpt:1158

ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp
dpt:23

ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp
dpt:1521

Chain FORWARD (policy ACCEPT)

target prot
opt source destination

Chain OUTPUT (policy ACCEPT)

target prot
opt source destination

重启一下防火墙服务:

[root@RHEL ~]# service
iptables restart

Flushing firewall rules: [ OK ]

Setting chains to policy ACCEPT: nat filter [ OK ]

Unloading iptables modules: [ OK ]

Applying iptables firewall rules: [ OK ]

Loading additional iptables modules: ip_conntrack_netbios_n[ OK ]ntrack_ftp

3.安装oracle无法使用命令/usr/bin/xdpyinfo自动检查显示器颜色

1.在root下执行

#xdpyinfo 记录下name of display:后的字符串,如 127.0.0.1:1.0

2. #xhost +

返回信息为: access control disabled,clients can connect from any host

3.切换到Oracle用户: www.2cto.com

#su - oracle

4.在Oracle用户下执行命令:

export DISPLAY=:1.0

5.在Oracle下执行xdpyinfo命令,如果能正常显示,说明设置成功
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: