十、必做的后安装工作:
1、从metalink 现在改叫mos上下载相应的补丁,进行安装;
2、推荐备份root.sh 文件,在$oracle_home下;
3、运行utlrp.sql文件,编译系统内的PL/SQL包;
$ . /usr/local/bin/oraenv
$ sqlplus "/ AS SYSDBA"
SQL> STARTUP
SQL> @?/rdbms/admin/utlrp.sql
4、Setting Up User Accounts
参考Oracle Database Administrator's Reference for UNIX-Based Operating Systems.没做!
5、Setting the NLS_LANG Environment Variable
Export NLS_LANG=SIMPLIFIED CHINESE_CHINA.ZHS16GBK
6、Generating the Client Static Library
切换到oracle用户,设置环境变量(如果没设的话)
$ ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1
$ export ORACLE_HOME
然后运行:
$ $ORACLE_HOME/bin/genclntst
至此安装成功!
1、oracle_sid 设置有问题
SQL> startup
ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file '/home/app/oracle/product/10.2.0/db_1/dbs/initlucy0.ora'
使用export ORACLE_SID=your sid即可
2、
运行dbca netca出现Xlib: connection to ":0.0" refused by server
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
这个是因为dbca需要图形界面的支持,字符界面是无法直接使用的。XHOST的问题.具体解决方法就是在root的用户下执行 xhost +,当提示access control disabled, clinens can connect from any host的时候就表示可以在ROOT用户下执行DBCA的操作.
[root@myredhat ~]# xhost +
access control disabled, clients can connect from any host
再运行dbca即可以了!
3、
主机名变为bogon Oracle无法启动 oracle
前台显示: ora -3114
Ora-27101 shared memory realm does not exist oracle
和:
Ora-24324:service handle not initial
Ora-01041:internal error.hostdef extension doesn’t exist
查看alert 文件,发现有:
Thu Mar 22 20:33:15 2012
Errors in file /home/app/oracle/admin/lucy/bdump/lucy_j000_24999.trc:
ORA-00600: internal error code, arguments: [keltnfy-ldmInit], [46], [1], [], [], [], [], []
Starting ORACLE instance (normal)
Cannot determine all dependent dynamic libraries for /proc/self/exe
Unable to find dynamic library libocr10.so in search paths
RPATH = /ade/aime1_build2101/oracle/has/lib/:/ade/aime1_build2101/oracle/lib/:/ade/aime1_build2101/oracle/has/lib/:
LD_LIBRARY_PATH is not set!
The default library directories are /lib and /usr/lib
Unable to find dynamic library libocrb10.so in search paths
Unable to find dynamic library libocrutl10.so in search paths
Unable to find dynamic library libocrutl10.so in search paths
后来修改/etc/hosts /etc/sysconfig/network
修改listener.ora中的host=bogon 或者localhost ,oracle可以启动 !
如果想更改主机名,也请修改上述两个文件
其中:hosts 文件内容默认为
127.0.0.1 localhost.localdomain localhost
192.168.235.XXX myredhat
分别为ip 主机名 主机别名
4、
Enterprise manager configuration 出错,错误信息可见$ORACLE_HOME/cfgtoollogs/dbca//emConfig.log ,日后可以运行$ORACLE_HOME/bin/emca script.
5、
安装过程中如果出现错误信息:
Error in invoking target “all_no_orcl lhsodbc’ of makefile ‘home/app/oracle/product/10.2.0/db_1/rdbms/lib/ins_rdbms.mk’ ,see /home/oracle/oraInventory下的日志
估计是没装一些link软件所需要的内核环境包,八成因为没注意:PATH变量中在/usr/X11R6/bin之前含有$ORACLE_HOME/bin,我后来执行了link all ,执行了很多文件的链接......
/home/oracle/oracle/product/10.2.0/db_1/network/lib/ins_net_client.mk relink
/home/oracle/oracle/product/10.2.0/db_1/precomp/lib/ins-precomp.mk relink
/home/oracle/oracle/product/10.2.0/db_1/rdbms/lib/ins_rdbms.mk
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/7177735/viewspace-720115/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/7177735/viewspace-720115/