ORACLE11G在LINUX6下安装及报错 C [ld-linux-x86-64.so.2+0x14d70]的解决方法
2012-11-04 22:27
555 查看
1.zip/unzip,tar
4.Oracle安装
本文出自 “nest” 博客,请务必保留此出处http://cswggod.blog.51cto.com/4569505/1050040
#/*---------------------压缩举例 [root@instructor Share]# pwd /var/Share [root@instructor Share]# touch 1.txt 2.txt -----------------1.zip压缩 [root@instructor Share]# zip txt1.zip *.txt adding: 1.txt (stored 0%) adding: 2.txt (stored 0%) [root@instructor Share]# mkdir text [root@instructor Share]# rm -rf txt1.zip [root@instructor Share]# zip txt1.zip *.txt -C text -------------2.zip压缩的指定目录 [root@instructor Share]# zip text/txt1.zip *.txt adding: 1.txt (stored 0%) adding: 2.txt (stored 0%) [root@instructor Share]# cd text [root@instructor text]# ls txt1.zip------------------------------ [root@instructor text]# cd .. [root@instructor Share]# pwd /var/Share [root@instructor Share]# ls 1.txt apache-tomcat-6.0.14 database jdk1.6.0_27 linux.x64_11gR2_database_1of2.zip text 2.txt apache-tomcat-6.0.14.zip javacord jdk-6u27-linux-x64.bin linux.x64_11gR2_database_2of2.zip [root@instructor Share]# rm -rf 1.txt 2.txt [root@instructor Share]# ls apache-tomcat-6.0.14 database jdk1.6.0_27 linux.x64_11gR2_database_1of2.zip text apache-tomcat-6.0.14.zip javacord jdk-6u27-linux-x64.bin linux.x64_11gR2_database_2of2.zip ----------------------3.unzip 解压至指定目录 [root@instructor Share]# ls apache-tomcat-6.0.14 database jdk1.6.0_27 linux.x64_11gR2_database_1of2.zip text apache-tomcat-6.0.14.zip javacord jdk-6u27-linux-x64.bin linux.x64_11gR2_database_2of2.zip [root@instructor Share]# unzip text/txt1.zip -d /var/Share/ Archive: text/txt1.zip extracting: /var/Share/1.txt extracting: /var/Share/2.txt -------------------4.tar压缩,解压 [root@instructor Share]# tar -cvf text/txt.tar *.txt#指定压缩目录 1.txt 2.txt [root@instructor Share]# tar -tvf text/txt.tar *.txt -rw-r--r-- root/root 0 2012-10-21 17:23 1.txt -rw-r--r-- root/root 0 2012-10-21 17:23 2.txt [root@instructor Share]# rm -rf *.txt [root@instructor Share]# ls apache-tomcat-6.0.14 database jdk1.6.0_27 linux.x64_11gR2_database_1of2.zip text apache-tomcat-6.0.14.zip javacord jdk-6u27-linux-x64.bin linux.x64_11gR2_database_2of2.zip [root@instructor Share]# tar -xvf text/txt.tar -C text#指定解压目录 1.txt 2.txt [root@instructor Share]# cd text [root@instructor text]# ls 1.txt 2.txt txt1.zip txt.tar |
-------------------------------1.yum安装依赖包 [root@instructor yum.repos.d]# yum install binutils [root@instructor ~]# yum install compat-libstdc* [root@instructor yum.repos.d]# yum install elfutils-libelf-devel [root@instructor ~]# yum install glibc [root@instructor ~]# yum install glibc-common [root@instructor ~]# yum install glibc-devel [root@instructor ~]# yum install gcc- [root@instructor ~]# yum install gcc-c++ [root@instructor ~]# yum install libaio-devel [root@instructor ~]# yum install libaio [root@instructor ~]# yum install libgcc [root@instructor ~]# yum install libstdc++ [root@instructor ~]# yum install libstdc++-devel [root@instructor ~]# yum install make [root@instructor ~]# yum install sysstat [root@instructor ~]# yum install unixODBC [root@instructor ~]# yum install unixODBC-devel ------------------------------------------------------------ -------------------------------2.内核参数修改 root@instructor ~]# vi /etc/sysctl.conf #oracle conf #共享内存 kernel.shmall = 2097152 kernel.shmmax = 2147483648 kernel.shmmin = 4096 #互斥量 kernel.sem = 250 32000 100 128 #最大同时打开文件数 fs.file-max = 65536 net.ipv4.ip_local_port_range = 1024 65000 #net.core.rmen_default = 4194304 #net.core.rmen_max = 4194304 #net.core.wmen_default = 2621144 #net.core.wmen_max = 2621144 [root@instructor ~]# /sbin/sysctl –p #---------------内核参数生效命令 -------------------------------3.权限,用户,组 [root@instructor Share]# chmod -R 777 database/#递归授权 #----------------chown 修改所属组 root@instructor bin]# groupadd dba [root@instructor bin]# groupadd oinstall [root@instructor database]# cat /etc/group #查看用户组 gdm:x:42: dba:x:500:oracle oinstall:x:501: h2:x:502: cswggod:x:503: [root@instructor bin]# useradd -d /home/oracle -m -g oinstall -G dba oracle #------- -d, --home-dir HOME_DIR home directory of the new account #------- -g, --gid GROUP name or ID of the primary group of the new account 主组 #------- -G, --groups GROUPS list of supplementary groups of the new account 副组 #------- -m, --create-home create the user's home directory #------- [root@instructor database]# cat /etc/passwd #查看用户 oracle:x:500:501::/home/oracle:/bin/bash h2:x:501:502::/home/h2:/bin/bash cswggod:x:502:503::/home/cswggod:/bin/bash #或使用id oracle命令查看 -------------------------------- [root@instructor bin]# passwd oracle Changing password for user oracle. New password: BAD PASSWORD: it is based on a dictionary word BAD PASSWORD: is too simple Retype new password: passwd: all authentication tokens updated successfully. [root@instructor bin]# mkdir -p /app/oracle/product/11.2.0/dbhome_1 #/*--------------------权限举例------------------------------ [root@instructor database]# pwd /var/Share/database [root@instructor database]# cd .. [root@instructor Share]# pwd /var/Share [root@instructor Share]# mkdir test [root@instructor Share]# ls -al total 2385352 drwxrwxrwx. 7 root root 4096 Oct 21 18:16 . drwxr-xr-x. 24 root root 4096 Oct 21 00:22 .. drwxr-xr-x. 9 root root 4096 Jul 20 2007 apache-tomcat-6.0.14 -rw-r--r--. 1 root root 6452660 May 24 2008 apache-tomcat-6.0.14.zip drwxrwxrwx. 8 oracle oinstall 4096 Aug 20 2009 database drwxr-xr-x. 2 root root 4096 Oct 21 01:52 javacord drwxr-xr-x. 10 root root 4096 Oct 21 00:39 jdk1.6.0_27 -rwxrwxrwx. 1 root root 85418489 Oct 21 00:08 jdk-6u27-linux-x64.bin -rw-r--r--. 1 root root 1239269270 Oct 17 08:04 linux.x64_11gR2_database_1of2.zip -rw-r--r--. 1 root root 1111416131 Oct 17 08:06 linux.x64_11gR2_database_2of2.zip drwxr-xr-x. 2 root root 4096 Oct 21 18:16 test [root@instructor Share]# mkdir -p test/test1 -------------------1.修改所有者 [root@instructor Share]# chown -R oracle test [root@instructor Share]# ls -al test total 12 drwxr-xr-x. 3 oracle root 4096 Oct 21 18:17 . drwxrwxrwx. 7 root root 4096 Oct 21 18:16 .. drwxr-xr-x. 2 oracle root 4096 Oct 21 18:17 test1 [root@instructor Share]# ls -al test/test1 total 8 drwxr-xr-x. 2 oracle root 4096 Oct 21 18:17 . drwxr-xr-x. 3 oracle root 4096 Oct 21 18:17 .. [root@instructor Share]# -----------------2.修改所属组 [root@instructor Share]# chown -R oracle:oinstall test [root@instructor Share]# ls -al test/test1 total 8 drwxr-xr-x. 2 oracle oinstall 4096 Oct 21 18:17 . drwxr-xr-x. 3 oracle oinstall 4096 Oct 21 18:17 .. [root@instructor Share]# ls -al test total 12 drwxr-xr-x. 3 oracle oinstall 4096 Oct 21 18:17 . drwxrwxrwx. 7 root root 4096 Oct 21 18:16 .. drwxr-xr-x. 2 oracle oinstall 4096 Oct 21 18:17 test1 [root@instructor Share]# #--------------------权限举例------------------------------*/ -------------------------------4.目录 [root@instructor /]# chown -R oracle app [root@instructor /]# chown -R oracle:oinstall app [root@instructor /]# ls -al app/oracle/ total 12 drwxr-xr-x. 3 oracle oinstall 4096 Oct 21 01:31 . drwxr-xr-x. 3 oracle oinstall 4096 Oct 21 01:31 .. drwxr-xr-x. 3 oracle oinstall 4096 Oct 21 01:31 product [root@instructor /]# -------------------------------5.限制及profie [root@instructor ~]# vi /etc/security/limits.conf oracle soft nproc supplementary 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536 [root@instructor ~]# vi /etc/pam.d/login session required /lib/security/pam_limits.so session required pam_limits.so #-------------------------屏蔽-------------------------- #------------vi 加入代码报错,用文件流----------------- #[root@instructor ~]# vi /etc/profile #oracle #if[$USER = "oracle" ];then # if [$SHELL = "/bin/ksh" ];then # ulimit -p 16384 # ulimit -n 65536 # else # ulimit -u 16384 -n 65536 # fi #fi #---------------------------------------------------------- [root@instructor ~]# cat >> /etc/profile <<EOF > if [ $USER = "oracle" ]; then > if [ $SHELL = "/bin/ksh" ]; then > ulimit -p 16384 > ulimit -n 65536 > else > ulimit -u 16384 -n 65536 > fi > fi > EOF ------------------------------------------------------------ -------------------------------6.DISPLAY切换测试 #------windows 运行 Xmanager->Xmanager-passive #------windows ip:192.168.5.222 #-----linux ip: 192.168.5.128 [root@instructor Packages]# yum install xorg-x11-apps #-------------安装xclock #----------yum锁定解决:rm /var/run/yum.pid [root@instructor app]# su oracle [root@instructor /]# export DISPLAY=192.168.5.222:0.0 [oracle@instructor app]$ xclock Warning: Missing charsets in String to FontSet conversion #/*------------------------windows显示xclock #--------------------------------*/ -------------------------------7.修改环境变量 [oracle@instructor ~]$ pwd /home/oracle [oracle@instructor ~]$ whoami oracle#---------------oracle 用户登陆 [oracle@instructor ~]$ [oracle@instructor ~]$ ll -a total 36 drwx------. 4 oracle oinstall 4096 Oct 21 19:57 . drwxr-xr-x. 5 root root 4096 Oct 21 09:48 .. -rw-------. 1 oracle dba 159 Oct 21 04:25 .bash_history -rw-r--r--. 1 oracle oinstall 18 Jun 22 2010 .bash_logout -rw-r--r--. 1 oracle oinstall 926 Oct 21 19:57 .bash_profile -rw-r--r--. 1 oracle oinstall 124 Jun 22 2010 .bashrc drwxr-xr-x. 2 oracle oinstall 4096 Jul 14 2010 .gnome2 drwxr-xr-x. 4 oracle oinstall 4096 Aug 20 08:05 .mozilla -rw-------. 1 oracle oinstall 1598 Oct 21 19:57 .viminfo--------------------- [oracle@instructor ~]$ vi .bash_profile # .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup programs PATH=$PATH:$HOME/bin export PATH export ORACLE_BASE=/app/oracle; export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1 export ORA_CRS_HOME=$ORACLE_BASE/crs export ORACLE_PATH=$ORACLE_BASE/common/oracle/sql:.:$ORACLE_HOME/rdms/admin export ORACLE_SID=orcl export PATH=${PATH}:$ORACLE_HOME/bin:ORA_CRS_HOME/bin:$HOME/bin export PATH=${PATH}:$ORACLE_BASE/common/oracle/bin export ORACLE_TERM=xterm export TNS_ADMIN=$ORACLE_HOME/network/admin export ORA_NLS10=$ORACLE_HOME/nls/data export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/lib:/usr/local/lib:$ORACLE_HOME/oracm/bin:$ORACLE_HOME/lib export LIBPATH=$LIBPATH:$ORA_CRS_HOME/LIB:$ORACLE_HOME/lib export CLASSPATH=${CLASSPATH}:$ORACLE_HOME/rdbms/jlib:$ORACLE_HOME/jlib:$ORACLE_HOME/network/jlib:$ORACLE_HOME/JRE export THREADS_FLAG=native export LD_BIND_NOW=1 ~ ~ ".bash_profile" 26L, 926C written #/* ------------------------------------- Get the following error when installing Oracle. I have java version "1.7.0_05" and based on the log, it appears that Oracle is trying to install the binaries using an older version of java (1.5.0). Has anyone come across this issue? # An unexpected error has been detected by HotSpot Virtual Machine: # # SIGSEGV (0xb) at pc=0x00000030b7014d70, pid=2615, tid=140142440847120 # # Java VM: Java HotSpot(TM) 64-Bit Server VM (1.5.0_17-b03 mixed mode) # Problematic frame: # C [ld-linux-x86-64.so.2+0x14d70] #oracle 11g 在redhat linux 6.0 安装报错 C [ld-linux-x86-64.so.2+0x14d70] #是oracle自带java运行库问题 #解决方法:在oracle用户的 .bashprofile中添加环境变量 export LD_BIND_NOW=1 # ------------------------------------ */ [oracle@instructor ~]$ . .bash_profile [oracle@instructor ~]$ cd $ORACLE_HOME [oracle@instructor dbhome_1]$ pwd /app/oracle/product/11.2.0/dbhome_1-------------------------------8.安装 [root@instructor /]# export DISPLAY=192.168.5.222:0.0 [oracle@instructor ~]$ cd /var/Share/database/ [oracle@instructor database]$ ./runInstaller Starting Oracle Universal Installer... Checking Temp space: must be greater than 120 MB. Actual 31596 MB Passed Checking swap space: must be greater than 150 MB. Actual 1529 MB Passed Checking monitor: must be configured to display at least 256 colors. Actual 16777216 Passed Preparing to launch Oracle Universal Installer from /tmp/OraInstall2012-11-03_11-44-13PM. Please wait ...[oracle@instructor database]$ #------------------------Xmanager屏幕切换 #----------配置目录,版本,字符集,DBA组,name.域名,密码 #----------配置目录/app/oraInventory,组#与RAC有关 #----------环境检查 #----------------------密码管理,用户解锁 #----------------------------------用root用户运行脚本 Last login: Sun Oct 21 19:38:50 2012 from 192.168.5.222 [root@instructor ~]# /app/oraInventory/orainstRoot.sh Changing permissions of /app/oraInventory. Adding read,write permissions for group. Removing read,write,execute permissions for world. Changing groupname of /app/oraInventory to oinstall. The execution of the script is complete. [root@instructor ~]# /app/oracle/product/11.2.0/dbhome_1/root.sh Running Oracle 11g root.sh script... The following environment variables are set as: ORACLE_OWNER= oracle ORACLE_HOME= /app/oracle/product/11.2.0/dbhome_1 Enter the full pathname of the local bin directory: [/usr/local/bin]: Copying dbhome to /usr/local/bin ... Copying oraenv to /usr/local/bin ... Copying coraenv to /usr/local/bin ... Creating /etc/oratab file... Entries will be added to the /etc/oratab file as needed by Database Configuration Assistant when a database is created Finished running generic part of root.sh script. Now product-specific root actions will be performed. Finished product-specific root actions. [root@instructor ~]# #--------------------安装完成: #Enterprise Manager Database Control URL - (orcl) : #https://localhost:1158/em #安装日志:/app/oraInventory/logs/installActions2012-11-03_11-58-54PM.log |
相关文章推荐
- 安装数据库遇到 C [ld-linux-x86-64.so.2+0x14d70]
- 安装数据库遇到错误 C [ld-linux-x86-64.so.2+0x14d70]
- 安装数据库遇到错误 C [ld-linux-x86-64.so.2+0x14d70]
- Linux安装informatica报错ld-linux-x86-64.so.2+0x14d70
- 解决挖矿病毒占用cpu以及误删 ld-linux-x86-64.so.2 文件的问题
- 32位linux安装32位oracle11g-netca报错解决方法
- linux安装oracle11g以及部分错误解决方法
- Linux静默安装Oracle11g部分问题的解决方法
- 在英文版的linux系统下,安装google浏览器出现乱码解决方法
- 安装交叉编译工具,执行arm-linux-gcc –v命令出现提示找不到该文件或目录?解决方法
- Linux下安装nginx时出现“cp: "conf/koi-win" 与"/usr/local/nginx/conf/koi-win" 为同一文件”的解决方法:
- 【ARM-Linux开发】wubi.exe安装Ubuntu14.04出现为/检查磁盘时发生严重错误的解决方法
- Linux提示 /usr/bin/ld:cannot find-lxxx 系列解决方法
- vm自动安装linux解决方法
- 解决linux安装软件:/lib/ld-linux.so.2: bad ELF interpreter问题
- 使用vmware安装Linux错误No hard driver found解决方法
- linux下安装Subversion遇到关于BerkeleyDB问题及解决方法
- linux安装mysql出现Could NOT find Curses (missing CURSES_LIBRARY CURSES_INCLUDE_PATH)解决方法
- 安装oracle11g INS-30131执行安装程序验证所需的初始设置失败的解决方法
- linux安装他版本python时遇到的问题及解决方法