ORACLE11G在LINUX6下安装及报错 C [ld-linux-x86-64.so.2+0x14d70]的解决方法
#/*---------------------压缩举例
[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 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 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.安装
[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.域名,密码
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 |
转载于:https://blog.51cto.com/cswggod/1050040
ORACLE11G在LINUX6下安装及报错 C [ld-linux-x86-64.so.2+0x14d70]的解决方法相关推荐
- linux oracle 11g x86,Oracle 11g在Linux6下安装及报错 C [ld-linux-x86-64.so.2+0x14d70]的解决方...
Oracle 11g在Linux6下安装及报错 C [ld-linux-x86-64.so.2+0x14d70]的解决方法 首页 → 数据库技术 背景: 阅读新闻 Oracle 11g在Linux6下 ...
- golang go get 命令行安装库 报错 go: cannot use path@version syntax in GOPATH mode 解决方法
go mod作为官方的依赖管理工具,类似于maven这种本地缓存库的管理方式,其主要是通过GOPATH/pkg/mod下的缓存包来对工程进行构建. 问题: 执行go get github.com/go ...
- Windows下安装RabbitMQ报错:unable to perform an operation on node时的解决方案
Windows下安装RabbitMQ报错:unable to perform an operation on node时的解决方案 参考文章: (1)Windows下安装RabbitMQ报错:unab ...
- Deepin下安装scrapy报错fatal error: Python.h: 没有那个文件或目录
Deepin下安装scrapy报错(亲测有效!) 问题描述 在deepin操作系统上,使用python3.6,通过sudo pip3 install scrapy安装时候,出现以下错误: src/tw ...
- Python使用pip安装报错ModuleNotFoundError: No module named ‘pip._internal.cli.main‘的解决方法
Python使用pip安装报错ModuleNotFoundError: No module named 'pip._internal.cli.main'的解决方法 大家好,我叫亓官劼(qí guā ...
- mysql 1033_mysql报错1033 Incorrect information in file: ''''xxx.frm''''问题的解决方法(图)...
这篇文章主要介绍了关于mysql报错1033 Incorrect information in file: 'xxx.frm'问题的解决方法,文中通过示例代码介绍的很详细,需要的朋友可以参考借鉴,下面 ...
- centos在yum install报错:Another app is currently holding the yum lock解决方法
centos在yum install报错:Another app is currently holding the yum lock解决方法 参考文章: (1)centos在yum install报错 ...
- phpmyadmin登录报错crypt_random_string requires at least one symmetric cipher be loaded 解决方法
phpmyadmin登录报错crypt_random_string requires at least one symmetric cipher be loaded 解决方法 参考文章: (1)php ...
- 控制台报错:java.lang.ClassNotFoundException: javax.xml.bind.JAXBException之解决方法
控制台报错:java.lang.ClassNotFoundException: javax.xml.bind.JAXBException之解决方法 参考文章: (1)控制台报错:java.lang.C ...
最新文章
- __init__在python中的用法知乎_python使用selenium爬虫知乎的方法示例
- 本地jar文件中搜索class
- Broadcom NetXtrem II网卡Linux安装指南(转载)
- spring入门-----spring中遍历各种集合
- Spring管理的Hibernate事件监听器
- 一页纸项目管理模板_项目管理职场必备读物!这一次全部送给你!
- SAP License:兼顾发展与成本:解构大中型企业ERP产品需求
- 虚拟机上安装Linux时出现的问题及解决方法
- ubuntu16.04 gnome环境,怎么样下载使用monaco字体
- 基于Ace Admin 的菜单栏实现
- 智能客服FAQ问答任务的技术选型探讨
- 多次请求后tomcat网页假死
- 一位高速交警的救命忠告!常跑高速的一定要看!
- 第一章:计算机组成与体系结构(软件设计师备考)
- WebAssembly:系统编程语言的逆袭
- 说说jvm什么时候会回收垃圾
- “算力经济”时代扑面而来,智算中心成未来数据中心进化方向
- 宝塔php漏洞,宝塔面板 phpmyadmin 未授权访问漏洞 BUG ip:888/pma的问题分析
- 块存储、文件存储与对象存储的区别与应用场景
- OpenCV的Scalar对象怎样初始化,如何取分量值,如何与标量相乘?
热门文章
- ES6进阶Async与Await,你不知道的同步与异步
- c语言控制安卓桌面,让你自己编写的Android的Launcher成为系统中第一个启动应用程序,也是唯一的Launcher...
- java初始块,java初始代码块
- debian 安装 php,Ubuntu/Debian上安装Nginx+php环境详细教程
- 地址html后面传参,JS中获取地址栏url后面的参数的三种方法
- Android的SharedPreferences存取String和List<String>类型(在Activity和Fragment内使用)
- 20190601:第一个JDBC程序
- ribbon设置权重_spring cloud gateway+ribbon 组合指定版本权重分流(简易灰度发布实现)...
- python的抽象类详解_第7.19节 Python中的抽象类详解:abstractmethod、abc与真实子类...
- 白板随手一画,嗖嗖变成代码