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

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命令,如果能正常显示,说明设置成功


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值