linux64 oracle11g缺失包,ORACLE11G在LINUX6下安装及报错 C [ld-linux-x86-64.so.2+0x14d70]的解决方法...

-------------------------------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/bashh2: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 <

> 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

267ef9ba39dc3cf6f199dda8d6037ff1.png

#--------------------------------*/

-------------------------------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屏幕切换

abfa6c191c0f5c8df823786af8f7cbfa.png

#----------配置目录,版本,字符集,DBA组,name.域名,密码3cfb1c5bd15f7cb2b40ba03c3619f967.png#----------配置目录/app/oraInventory,组#与RAC有关e9e1c57eb14f124d646db351093b9119.png#----------环境检查684a27e36ee63bf506293571195aea33.pngbc916fe46ba89c429b245e9f49bde5b6.png276dcb8d954f3d5485a550529be21c53.pnge4a140f5c2b5fecc43401a82118b6676.png#----------------------密码管理,用户解锁2d665142cac94a09ed773c439b64e71d.pngae4d5f2a0793714b70951eec01654a97.png#----------------------------------用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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值