Oralce10g卸载与安装

http://blog.csdn.net/xingwei_chn/article/details/7868078

1、环境

redhat5 32  + oracle 10g 32

2、卸载

[sql]   view plain copy
  1. [root@edrsr9p1 ~]# rm -rf /u01/app/oracle/*  
  2. [root@edrsr9p1 ~]# rm -rf /etc/ora*  
  3. [root@edrsr9p1 ~]# cd /usr/local/bin  
  4. [root@edrsr9p1 bin]# rm -f coraenv  dbhome  oraenv  
[sql]   view plain copy
  1. [root@edrsr9p1 ~]# rm -rf /u01/app/oracle/*  
  2. [root@edrsr9p1 ~]# rm -rf /etc/ora*  
  3. [root@edrsr9p1 ~]# cd /usr/local/bin  
  4. [root@edrsr9p1 bin]# rm -f coraenv  dbhome  oraenv  

 3、安装

[sql]   view plain copy
  1. [root@edrsr9p1 ~]# su - oracle  
  2. [oracle@edrsr9p1 ~]$ cd /stage/10.2.0/  
  3. [oracle@edrsr9p1 10.2.0]$ unzip 10201_database_linux32.zip   
[sql]   view plain copy
  1. [root@edrsr9p1 ~]# su - oracle  
  2. [oracle@edrsr9p1 ~]$ cd /stage/10.2.0/  
  3. [oracle@edrsr9p1 10.2.0]$ unzip 10201_database_linux32.zip   
[sql]   view plain copy
  1. [oracle@edrsr9p1 10.2.0]$ cd /stage/10.2.0/database/  
  2. [oracle@edrsr9p1 database]$ ./runInstaller   
  3. Starting Oracle Universal Installer...  
  4.   
  5. Checking installer requirements...  
  6.   
  7. Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2  
  8.                                       Failed <<<<  
  9.   
  10. Exiting Oracle Universal Installer, log for this session can be found at /tmp/OraInstall2012-11-17_04-21-00PM/installActions2012-11-17_04-21-00PM.log  
[sql]   view plain copy
  1. [oracle@edrsr9p1 10.2.0]$ cd /stage/10.2.0/database/  
  2. [oracle@edrsr9p1 database]$ ./runInstaller   
  3. Starting Oracle Universal Installer...  
  4.   
  5. Checking installer requirements...  
  6.   
  7. Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2  
  8.                                       Failed <<<<  
  9.   
  10. Exiting Oracle Universal Installer, log for this session can be found at /tmp/OraInstall2012-11-17_04-21-00PM/installActions2012-11-17_04-21-00PM.log  

版本兼容性检测不过,忽略版本检查。

[sql]   view plain copy
  1. [oracle@edrsr9p1 database]$ ./runInstaller -ignoreSysPrereqs  
  2. Starting Oracle Universal Installer...  
  3.   
  4. Checking installer requirements...  
  5.   
  6. Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2  
  7.                                       Failed <<<<  
  8.   
  9. >>> Ignoring required pre-requisite failures. Continuing...  
  10.   
  11. Preparing to launch Oracle Universal Installer from /tmp/OraInstall2012-11-17_04-29-14PM. Please wait ...  
  12. DISPLAY not set. Please set the DISPLAY and try again.  
  13. Depending on the Unix Shell, you can use one of the following commands as examples to set the DISPLAY environment variable:  
  14. For csh:                      % setenv DISPLAY 192.168.1.128:0.0  
  15. For sh, ksh and bash:         $ DISPLAY=192.168.1.128:0.0; export DISPLAY  
  16. Use the following command to see what shell is being used:  
  17.         echo $SHELL  
  18. Use the following command to view the current DISPLAY environment variable setting:  
  19.         echo $DISPLAY  
  20. - Make sure that client users are authorized to connect to the X Server.  
  21. To enable client users to access the X Server, open an xterm, dtterm or xconsole as the user that started the session and   
  22. type the following command:  
  23. % xhost +  
  24. To test that the DISPLAY environment variable is set correctly, run a X11 based program that comes with the native   
  25. operating system such as 'xclock':  
  26.         % <full path to xclock.. see below>  
  27. If you are not able to run xclock successfully, please refer to your PC-X Server or OS vendor for further assistance.  
  28. Typical path for xclock: /usr/X11R6/bin/xclock  
[sql]   view plain copy
  1. [oracle@edrsr9p1 database]$ ./runInstaller -ignoreSysPrereqs  
  2. Starting Oracle Universal Installer...  
  3.   
  4. Checking installer requirements...  
  5.   
  6. Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2  
  7.                                       Failed <<<<  
  8.   
  9. >>> Ignoring required pre-requisite failures. Continuing...  
  10.   
  11. Preparing to launch Oracle Universal Installer from /tmp/OraInstall2012-11-17_04-29-14PM. Please wait ...  
  12. DISPLAY not set. Please set the DISPLAY and try again.  
  13. Depending on the Unix Shell, you can use one of the following commands as examples to set the DISPLAY environment variable:  
  14. For csh:                      % setenv DISPLAY 192.168.1.128:0.0  
  15. For sh, ksh and bash:         $ DISPLAY=192.168.1.128:0.0; export DISPLAY  
  16. Use the following command to see what shell is being used:  
  17.         echo $SHELL  
  18. Use the following command to view the current DISPLAY environment variable setting:  
  19.         echo $DISPLAY  
  20. - Make sure that client users are authorized to connect to the X Server.  
  21. To enable client users to access the X Server, open an xterm, dtterm or xconsole as the user that started the session and   
  22. type the following command:  
  23. % xhost +  
  24. To test that the DISPLAY environment variable is set correctly, run a X11 based program that comes with the native   
  25. operating system such as 'xclock':  
  26.         % <full path to xclock.. see below>  
  27. If you are not able to run xclock successfully, please refer to your PC-X Server or OS vendor for further assistance.  
  28. Typical path for xclock: /usr/X11R6/bin/xclock  

runInstaller必须在x window下执行,不能是命令行。

[sql]   view plain copy
  1. [root@edrsr9p1 ~]# xhost +  
  2. [root@edrsr9p1 ~]# su - oracle  
  3. [oracle@edrsr9p1 ~]$ DISPLAY=:0.0;export DISPLAY  
[sql]   view plain copy
  1. [root@edrsr9p1 ~]# xhost +  
  2. [root@edrsr9p1 ~]# su - oracle  
  3. [oracle@edrsr9p1 ~]$ DISPLAY=:0.0;export DISPLAY  
[sql]   view plain copy
  1. [oracle@edrsr9p1 database]$ ./runInstaller -ignoreSysPrereqs  
[sql]   view plain copy
  1. [oracle@edrsr9p1 database]$ ./runInstaller -ignoreSysPrereqs  

图形界面安装,先安装软件。

netca配置服务。

dbca建库。

你可能感兴趣的:(Shenzhen_ever)