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

在安装oracle中遇到问题汇总

2013-05-20 01:22 706 查看
在安装oracle中遇到的问题

1、配置磁盘分区时,/root最大只能50G,/home 860G,想把/Home的磁盘空间设置为50G,其他移到/根目录下

出现这个原因是,第一次默认安装的时候centos提供的建议分区方案,下次重新安装centos时,会默认以上次分区方案为准,需要进入自主创建分区,删除系统提供的分区方案,然后创建/root(挂载到/根目录)和swap分区,/home不要特意分区设定大小。

2、sysctl -p错误

fs.file-max = 6815744

fs.aio-max-nr = 1048576

kernel.shmall = 2097152

kernel.shmmax = 2147483648

"sysctl.conf" 54L, 1461C

kernel.shmall = 2097152

kernel.shmmax = 2147483648

kernel.shmmni = 4096

kernel.sem = 250 32000 100 128

net.ipv4.ip_local_port_range = 9000 65500

net.core.rmem_default = 4194304

net.core.rmem_max=4194304

net.core.wmem_default = 262144

net.core.wmem_max = 1048576

由于把 kernel.shmmni写成 kernel.shmmin导致编译不成功,直接导致执行sysctl -p命令时,提示sysctl命令不存在。因此在编写脚本时,要特别小心确保每一个单词都是正确的,每一个字母大小写都是正确的(linux区分大小写),同时要特别注意编译器提示的消息。

3、sysctl -p显示错误

error: "net.bridge.bridge-nf-call-ip6tables" is an unknown key
error: "net.bridge.bridge-nf-call-iptables" is an unknown key
error: "net.bridge.bridge-nf-call-arptables" is an unknown key


解决方法:参考http://serverfault.com/questions/477718/sysctl-p-etc-sysctl-conf-returns-error

modprobe bridge
lsmod | grep bridge


4、出现root和oracle用户的配置信息错误

-bash: [root: command not found

-bash: [oracle: command not found

出现原因是没有加双引号和空格

if [ "$USER" = "oracle" ] ; then

if [ "$SHELL" = "/bin/ksh"] ; then

ulimit -p 16384

ulimit -n 65536

else

ulimit -u 16384 -n 65536

fi

fi

5、-bash: [: missing `]'

原因 :缺少空格导致

6、执行 ./runInstall时乱码

解决:在oracle账户中执行export LANG=en_US

7、No protocol specified

Exception in thread "main" java.lang.NoClassDefFoundError

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Class.java:164)

at java.awt.Toolkit$2.run(Toolkit.java:821)

at java.security.AccessController.doPrivileged(Native Method)

at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:804)

at com.jgoodies.looks.LookUtils.isLowResolution(Unknown Source)

at com.jgoodies.looks.LookUtils.<clinit>(Unknown Source)

at com.jgoodies.looks.plastic.PlasticLookAndFeel.<clinit>(PlasticLookAndFeel.java:122)

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Class.java:242)

at javax.swing.SwingUtilities.loadSystemClass(SwingUtilities.java:1783)

at javax.swing.UIManager.setLookAndFeel(UIManager.java:480)

at oracle.install.commons.util.Application.startup(Application.java:758)

at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:164)

at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:181)

at oracle.install.commons.base.driver.common.Installer.startup(Installer.java:265)

at oracle.install.ivw.db.driver.DBInstaller.startup(DBInstaller.java:114)

at oracle.install.ivw.db.driver.DBInstaller.main(DBInstaller.java:132)

解决方法:注销root账户,在oracle账户下执行./runInstall ,不能使用 su - oracle

8、The password entered does not conform to the Oracle recommended standards.

解决方法:密码设置复杂一些

9、central inventory location was not writable

给文件夹设置权限:chown -R oracle:oinstall /usr/oracle

10、ip address localhost could not be determined

vi /etc/hosts 将主机名添加到127.0.0.1的主机名列表中

hostname RAID

11、the selected oracle home contained directories or files

to start with an enpty oracle home, either remove its contents or choose another location

解决方法将/usr/oracle中的所有文件和文件夹删除\

11、this is a prerequisite condition to test whether the package "make-3.8"

解决方法: yum -y install gcc automake autoconf libtool make

12、每次重启服务器后/etc/resolv.conf中的nameserver设置全部被清空

解决方法:在/etc/network-scripts/ifcfg-em1中添加DNS1=192.168.1.1

13、this is a prerequisite condition to test whether the package "make-3.8"

解决方法:yum install make

14、在安装oracle中断后,重启centos后,在本机使用root用户名和密码(用户名密码正确)一直无法登录成功

解决方法:安装oracle过程中,一般的安装文档中都会提到要设置/etc/security/limits.conf和/etc/pam.d/login参数文件来限制oracle服务器可以打开的文件数、进程数等等资源的限制,于是会需要在/etc/pam.d/login 文件中添加session required /lib/security/pam_limits.so一行内容来实现/etc/security/limits.conf中定义的各项限制,和通过ulimit命令直接设置资源设置类似,此机器的安装过程中也是这样设置的,可是问题就出现在这里了。

此机器使用的是64位的操作系统,因此根本没有/lib/security/pam_limits.so文件存在,而应该使用替代的/lib64/security/pam_limits.so文件来代替,否则在登陆的时候找不到这个文件,就会出现本机不能登陆的情况。

15、ORA-01017: invalid username/password; logon denied

错误原因:Oracle密码丢失,账号被锁解决方案

解决方案:

SQL>sqlplus

SQL>conn/as sysdba

SQL>alter user system identified by system;

16、Oracle the network adapter could not establish the connection 异常

原因:端口没有开放,没有开放1521

解决:lsnrctl start

17、linux TNS:listener does not currently know of service requested in connect

原因:没有启动oracle服务

解决方法:./dbstart

18、PL/SQL Developer 中文乱码解决

修改本地环境变量,设置

1、执行 select * from v$nls_parameters; 查询oracle服务端的NLS_LANG和NLS_CHARACTERSET

1、进入 我的电脑,属性,高级,环境变量,添加2项:LANG=zh_CN.GBK 和 NLS_LANG=oracle服务端的NLS_LANG的值

2、在pl/sql developer的菜单->tools->preferences->user interface->fonts 中修改为中文字体
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: