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命令,如果能正常显示,说明设置成功
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命令,如果能正常显示,说明设置成功
相关文章推荐
- linux下打开Oracle 11g数据库的闪回flashback
- Linux 操作 oracle 数据库
- Linux下oracle11gR2系统安装到数据库建立配置及最后oracle的dmp文件导入一站式操作记录
- Linux下oracle11gR2系统安装到数据库建立配置及最后oracle的dmp文件导入一站式操作记录
- X86_64平台下Oracle 11g R2 X64 for Linux的软件安装、数据库安装、服务配置、数据库启动和停止、SQLPLus使用
- 在Linux(RedHat 4.8)命令行下安装Oracle 11g (11.2.0.1.0)数据库
- Linux下启动Oracle 11g数据库监听问题的解决
- VM虚拟机下在LINUX上安装ORACLE 11G单实例数据库
- 如何在centOS等一些linux系统下安装oracle sqldeveloper图形化数据库操作界面
- Oracle 11g数据库相关操作
- linux下搭建oracle11G数据库
- sql操作实例(采用的oracle 11g数据库)
- 安装笔记之Linux下安装Oracle_11g_R2 数据库
- 如何在centOS等一些linux系统下安装oracle sqldeveloper图形化数据库操作界面
- 【数据库基础】 Oracle DB基本操作(11g E)
- linux下oracle 11g一些简单的操作和一些错误处理
- VM虚拟机下在LINUX上安装ORACLE 11G单实例数据库
- linux下卸载oracle 11g单实例数据库
- 在 Rhel Linux 5.1 (32 位)上安装 Oracle ASM数据库 11g (第二部分)