桌面安装
图形安装准备安装文件
下载10201_database_linux_x86_64.cpio.gz
#gunzip 10201_database_linux_x86_64.cpio.gz
#cpio –idmv <10201_database_linux_x86_64.cpio
1.安装包安装
#yum install glibc-* libXpm-*glibc-*.i686 libXp.so.6 libXt.so.6 libXtst.so.6 libgcc_s.so.1 ksh libXplibaio-devel numactl numactl-devel unixODBC unixODBC-devel compat-db compat-db42compat-db43 compat-gcc-34 compat-gcc-34-c++ libstdc++- libstdc++-33
2.新增组和用户
#groupadd oinstall
#groupadd dba
#useradd –g oinstall –G dba oracle
#passwd oracle
3.创建安装目录
#mkdir –p /home/oracle
#chown –R oracle:oinstall /home/oracle
#chmod –R 775 /home/oracle
#cd /home/oracle (目录为oracle安装文件路径)
#chown–R oracle:oinstall database/
4.使用oracle用户登录
修改#vi ~/.bash_profile ,增加如下内容
export ORACLE_BASE=/home/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
export ORACLE_HOME_LISTNER=$ORACLE_HOME
export ORACLE_SID=DEV
export PATH=$PATH:$ORACLE_HOME/bin
然后运行
#source .bash_profile
5.修改版本号
因为默认CentOS 6.0不支持10.2.0需修改配置文件使CentOS 6.0支持Oracle10g ,oracle可以正常运行
# vi /etc/redhat-release 直接修改内容为
CentOS Linux release 4.0 (Final)
保存后执行
#sysctl –p
(error:"net.bridge.bridge-nf-call-ip6tables" is an unknown key正常的 )
6.修改参数
#vi /etc/sysctl.conf 在文件末尾添加如下参数
# Kernel Parameters for Oracle Database 10g
fs.file-max = 6553600
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 4194304
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 2621442
保存后执行
#sysctl –p
7.修改hostname
#hostname newhostname(例子:#hostname oracleServer)
#vi /etc/hosts
添加主机ip 并重新配置个主机名,例子:
192.168.200.39 oracleServer
验证:hostname
8.权限问题
[root@localhost oradisk]# id oracle
uid=502(oracle) gid=502(oinstall) groups=502(oinstall),503(dba)
用root执行下面的命令,将dba组添加到系统内核中
[root@localhost oradisk]# echo 503 >/proc/sys/vm/hugetlb_shm_group
这样启动数据库,问题消失;但是如果系统重启了,还需要执行上面的命令,治标不治本。一劳永逸的办法就是修改文件sysctl.conf,方法如下:
[root@localhost oradisk]# vi /etc/sysctl.conf
....
vm.hugetlb_shm_group = 503
....
[root@localhost oradisk]# sysctl -p
9.图形安装
用oracle用户登录
双击runlnstaller文件
(每步都点下一步即可,注意最后用root执行2条脚本即可 )
点击ok后下边的这步,先不要点击OK按钮,以下两个文件要在root下执行
/路径/orainstRoot.sh
/路径/root.sh
点击OK按钮
选YES,安装成功,退出安装。
VMware 虚拟机配置文件为 *.vmx,以下具体是在VMware Workstation 6 下安装的Slackware GNU/Linux 12.0 *** 作系统一例,其初始配置文件的名称为slackware.vmx,具体内容如下:.encoding = "GBK"config.version = "8"virtualHW.version = "6"memsize = "256"scsi0.present = "TRUE"scsi0.virtualDev = "lsilogic"scsi0:0.present = "TRUE"scsi0:0.fileName = "slackware.vmdk"ide1:0.present = "TRUE"ide1:0.autodetect = "TRUE"ide1:0.deviceType = "cdrom-image"ide1:0.fileName = "slackware-12.0-install-dvd.iso"floppy0.present = "FALSE"ethernet0.present = "TRUE"ethernet0.virtualDev = "e1000"ethernet0.wakeOnPcktRcv = "FALSE"ethernet0.addressType = "generated"ehci.present = "TRUE"pciBridge0.present = "TRUE"sound.present = "FALSE"usb.present = "FALSE"vmci0.present = "TRUE"roamingVM.exitBehavior = "go"displayName = "slackware"extendedConfigFile = "slackware.vmxf"guestOS = "other26xlinux"nvram = "slackware.nvram"virtualHW.productCompatibility = "hosted"Virtual DeviceSCSI"buslogic" BusLogic SCSI"lsilogic" LSI Logic SCSI"lsisas1068" LSI Logic SASEthernet"e1000" Intel(R) PRO/1000 MT Network Connection"pcnet32" 设备为:AMD PCNet AM79C970A,"vmxnet" VMware PCI Ethernet Adapter宿主 *** 作系统列表guestOS = "other26xlinux"Windows"winxphome" Windows XP Home Edition"winxppro" Windows XP Professional"winxppro-64" Windows XP Professional x64 Edition"winnetenterprise" Windows Server 2003 Enterprise Edition"winnetenterprise-64" Windows Server 2003 Enterprise x64 EditionLinux"rhel3" Red Hat Enterprise Linux 3"rhel3-64" Red Hat Enterprise Linux 3 64-bit"rhel4" Red Hat Enterprise Linux 4"rhel4-64" Red Hat Enterprise Linux 4 64-bit"rhel5" Red Hat Enterprise Linux 5"rhel5-64" Red Hat Enterprise Linux 5 64-bit"sles11" SUSE Linux Enterprise 11Netware"netware6" Novell Netware 6Otherfreebsd FreeBSDfreebsd-64 FreeBSD 64-bitdos MS-DOSother Otherother-64 Other 64-bitVMware 修改磁盘disk.locking = "false" VMware 修改网卡类型、网卡连接方式和网卡MAC地址的方法一、修改网卡类型:vmware默认使用是虚拟的AMD PCNet AM79C970A网卡,但是也可以改变网卡配置,虚拟出Intel PRO/1000和VMware PCI Ethernet Adapter网卡。方法是在虚拟机的.vmx文件中用添加或者修改如下语句指定网卡类型:ethernet0.virtualDev = "e1000"其值为e1000指定网卡类型为Intel(R) PRO/1000 MT Network Connection其值为vmxnet指定网卡类型为VMware PCI Ethernet Adapter其值为vlance指定网卡类型为AMD PCNet AM79C970A(默认为此项),现实的连接信息为:VMware Accelerated AMD PCNet Adapter;未安装VMware Tools之前显示为:AMD PCNET Family PCI Ethernet Adapter二、修改网卡连接方式:VMware 网卡连接方式有桥接方式、网络地址转换NAT方式、ethernet0.connectionType = "nat""nat""custom"三、修改网卡MAC地址 修改VMware中网卡MAC地址的几种方法:1、修改虚拟机的*.vmx文件.这种方法最值得推荐,因为这样就类似于重新改写VMware虚拟机的"物理网卡ROM”。方法是:分两种情况:第一种:ethernet0.addressType = "static"ethernet0.Address = "00:50:56:C7:9B:36""static”说明vmware"物理网卡"的MAC是静态设定的,你可以修改成以005056开头的另外一个MAC即可。改完启动vmware时如果问你SSID的话,选择"Keep Always”。注: 机器位址必须跟随这样式00:50:56:XX:XX:XX第二种方法:ethernet0.addressType = "generated"uuid.location = "56 4d 31 44 c7 9b 76 01-ab aa b9 1b e2 6d d2 03"uuid.bios = "56 4d 31 44 c7 9b 76 01-ab aa b9 1b e2 6d d2 03"ethernet0.generatedAddress = "00:0c:29:6d:d2:03""generated"说明vmware"物理网卡"的MAC是系统随机动态设定的,你可以通过将uuid.bios后六位及ethernet0.generatedAddress后六位改成你想要改成的以000c29开头的MAC即可。2、就是在Windows或者Linux等系统里面通过系统的软修改方式进行修改,关于这种方式的资料很多地方有提供就不再陈述了欢迎分享,转载请注明来源:内存溢出
评论列表(0条)