如何把win7中下载好的Oracle.zip移动到VMmac虚拟机安装win7中的Linux

win7与虚拟机linux共享 主机是用的window7 旗舰版,虚拟机上装的ubuntu,现在我的VMtools已经安装成功,_百度知道
win7与虚拟机linux共享 主机是用的window7 旗舰版,虚拟机上装的ubuntu,现在我的VMtools已经安装成功,
主机是用的window7 旗舰版,虚拟机上装的ubuntu,现在我的VMtools已经安装成功,但是还是不能从window7中复制文件到linux中。 在li穿处扁肺壮镀憋僧铂吉nux中,/mnt/hgfs 文件中也是空的,求指教怎么弄。
提问者采纳
主机设置好共享目录了吗?VM&-&Settings-&Options-&Shared&Folders-&Always&Enabled-&添加主机共享目录即可在,/mnt/hgfs中找到对应共享。看图
共享目录设置好了,但是/mnt/hgfs目录下是空的。也不能自由复制文件
提问者评价
其他类似问题
按默认排序
其他3条回答
复制楼上的,原谅我:主机设置好共享目录了吗?VM&-&Se穿处扁肺壮镀憋僧铂吉ttings-&Options-&Shared&Folders-&Always&Enabled-&添加主机共享目录即可在,/mnt/hgfs中找到对应共享。看图&之后虚拟机右下角的工具栏的共享磁盘图标要不能挂载才行,windows中的盘符要和虚拟机中设置的盘符要相同其次,安装完VMtools后重启虚拟机,然后就可以将文件从windows直接拖拽至linux,复制也可以,但有时不成功,要多试几次
可以在windows中设置FTP服务器,然后linux下访问FTP服务器来实现文件的传输。
vmtools的相关知识
为您推荐:
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁VM虚拟机下在LINUX上安装ORACLE 11G单实例数据库-Oracle-第七城市
VM虚拟机下在LINUX上安装ORACLE 11G单实例数据库
VM虚拟机下在LINUX上安装ORACLE 11G单实例数据库&1.环境及安装前规划:虚拟机及OS如下环境:VMware Wordstation ACE版 6.0.2操作系统:OracleLinux-R5-U8-Server-i386-dvd & &3.2G&安装操作系统,这里需要注意的是磁盘空间要预留足够。我的规划是:虚拟机分配1024M内存,当然如果主机内存足够,安装时内存设置2048M可以更快。虚拟机分配一块磁盘,30G磁盘空间。/boot 100M ext3/ & &20G &ext3swap 2048M剩余的近8G空间留着做ASM时用。同时最好安装系统时选择图形模式安装,直接安装好图形模式,比较省事。&2.OS的配置:操作系统安装好后,暂时需要配置以下内容固定IP及DNS /etc/sysconfig/network-scripts/ifcfg-eth0主机名 &/etc/sysconfig/network修改开机运行级别 /etc/inittab关闭SELINUX /boot/grub/menu.lst修改sshd_config,解决SSH超时自动断开问题&login as: root's password:Last login: Wed Jun &5 09:11:26 2013[root@oel-01 ~]# hostnameoel-01[root@oel-01 ~]# cat/etc/sysconfig/network-scripts/ifcfg-eth0# Advanced Micro Devices [AMD] 79c970[PCnet32 LANCE]DEVICE=eth0BOOTPROTO=noneHWADDR=00:0C:29:99:8B:C9ONBOOT=yesNETMASK=255.255.255.128IPADDR=192.168.1.212GATEWAY=192.168.1.254TYPE=EthernetUSERCTL=noIPV6INIT=noPEERDNS=yes&[root@oel-01 ~]# cat /etc/resolv.confnameserver 222.88.88.88&[root@oel-01 ~]# cat /etc/sysconfig/networkNETWORKING=yesNETWORKING_IPV6=yesHOSTNAME=oel-01&[root@oel-01 ~]# vi /etc/inittabid:3:initdefault:&[root@oel-01 ~]# vi /boot/grub/menu.lst在kernel 行末尾增加selinux=0关闭SELINUX。也可以在安装完系统时的图形配置界面中关闭。&[root@oel-01 ~]# cd /etc/ssh/[root@oel-01 ssh]# grep&ClientAlive& sshd_config#ClientAliveInterval 0#ClientAliveCountMax 3[root@oel-01 ssh]# cp sshd_configsshd_config.bak[root@oel-01 ssh]# sed -i&s/#ClientAliveInterval 0/ClientAliveInterval 60/g& sshd_config[root@oel-01 ssh]# grep&ClientAlive& sshd_configClientAliveInterval 60#ClientAliveCountMax 3[root@oel-01 ssh]# sed -i&s/#ClientAliveCountMax 3/ClientAliveCountMax 10/g& sshd_config[root@oel-01 ssh]# grep&ClientAlive& sshd_configClientAliveInterval 60ClientAliveCountMax 10&[root@oel-01 ssh]# service sshd restartStopping sshd: & & & & & & & & & & & & & & & & & & & & & &[ &OK &]Starting sshd: & & & & & & & & & & & & & & & & & & & & & &[ &OK &]&到此应该将系统重启,验证以上各项配置是否生效。如生效,关机,在VMWARE中做快照3.创建安装ORACLE的用户组&[root@oel-01 ~]# groupadd -g 1000 oinstall[root@oel-01 ~]# groupadd -g 1031 dba[root@oel-01 ~]# groupadd -g 1032 oper[root@oel-01 ~]# useradd oracle[root@oel-01 ~]# passwd oracleChanging password for user oracle.New UNIX password:BAD PASSWORD: it is based on a dictionarywordRetype new UNIX password:passwd: all authentication tokens updatedsuccessfully.[root@oel-01 ~]# usermod -g oinstall -Gdba,oper oracle[root@oel-01 ~]# mkdir -p/u01/app/oracle/product/11.2.0/dbhome_1[root@oel-01 ~]# chown -R oracle:oinstall/u01/[root@oel-01 ~]# chmod 775 /u01/[root@oel-01 app]# pwd/u01/app[root@oel-01 app]# ls -altotal 16drwxrwxr-x 4 oracle oinstall 4096 Jun &5 10:56 .drwxrwxr-x 3 oracle oinstall 4096 Jun &5 10:55 ..drwxrwxr-x 2 oracle oinstall 4096 Jun &5 10:55 oracle&4.挂载光盘,安装软件[root@oel-01 ~]# cd /etc/yum.repos.d/[root@oel-01 yum.repos.d]# ls[root@oel-01 yum.repos.d]# viOEL_CDROM.repo[root@oel-01 yum.repos.d]# catOEL_CDROM.repo[OEL5.8]name=oracle linuxbaseurl=file:///mnt/cdrom/Serverenabled=1gpgcheck=0[root@oel-01 yum.repos.d]# cd /mnt/[root@oel-01 mnt]# mkdir cdrom[root@oel-01 mnt]# mount /dev/cdrom/mnt/cdrommount: block device /dev/cdrom iswrite-protected, mounting read-only[root@oel-01 mnt]# lscdrom[root@oel-01 mnt]# cd cdrom/[root@oel-01 cdrom]# lsblafdoc.css & & eula.py & README-en.html & & & & ServerCluster & & & & GPL & & & &RELEASE-NOTES-en & & & supportinfoClusterStorage &images & &RELEASE-NOTES-en.html &TRANS.TBLEULA & & & & & &isolinux & RPM-GPG-KEY & & & & & &VTeula.en_US & & &README-en RPM-GPG-KEY-oracle[[root@oel-01 Server]# pwd/mnt/cdrom/Server[root@oel-01 Server]# ls /etc/pki/rpm-gpg/RPM-GPG-KEY & & &RPM-GPG-KEY-fedora & & & RPM-GPG-KEY-oracleRPM-GPG-KEY-EL4 &RPM-GPG-KEY-fedora-test[root@oel-01 Server]# rpm --import/etc/pki/rpm-gpg/RPM-GPG-KEY-oracle&开始安装软件方法一:[root@oel-01 Server]# yum -y installoracleasm-support-2.1.7-1.el5.i386.rpm[root@oel-01 Server]# yum -y installreadline-devel-5.1-3.el5.i386.rpm[root@oel-01 Server]# yum -y installunixODBC[root@oel-01 Server]# yum -y install &make* gcc* glibc* compat-db* compat-gcc*compat-gcc* compat-libstdc++* compat-libstdc* openmotif* setarch*[root@oel-01 Server]# yum -y installelfutils-libelf-devel-* libaio-devel-0.3.106-5.i386.rpm &sysstat-7.0.2-11.el5.i386.rpm unixODBC-devel-2.2.11-10.el5.i386.rpm安装rlwrap-0.37.tar.gz,这里我也是上传上去的,这个软件可以在网上自己找。[root@oel-01 ~]# lsanaconda-ks.cfg &install.log & & & & rlwrap-0.37Desktop & & & & &install.log.syslog &rlwrap-0.37.tar.gz[root@oel-01 ~]# tar -zxvfrlwrap-0.37.tar.gz[root@oel-01 rlwrap-0.37]# pwd/root/rlwrap-0.37[root@oel-01 rlwrap-0.37]# ./configure[root@oel-01 rlwrap-0.37]# make[root@oel-01 rlwrap-0.37]# make install&方法二:批量安装挂载光盘后[root@oel-01 mnt]#mkdir cdrom[root@oel-01 mnt]# mount /dev/cdrom/mnt/cdrom/mount: block device /dev/cdrom is write-protected, mounting read-only[root@oel-01 mnt]# cd /etc/yum.repos.d/&&[root@oel-01 yum.repos.d]# vi public-yum-el5.repo[oel5]name = Enterprise Linux 5.7 DVDbaseurl=file:///mnt/cdrom/Server/gpgcheck=0enabled=1[root@oel-01 yum.repos.d]# yum installoracle-validated&如果是OEL5: yum install oracle-validated如果是OEL6: yum install oracle-rdbms-server-11gR2-preinstall&5.修改LINUX中的环境变量修改oracle的.bash_profile,示例如下:oracle_sid之类要提前规划好。[root@oel-01 oracle]# pwd/home/oracle[root@oel-01 oracle]# cat .bash_profileif [ -f ~/.bashrc ]; then& & & &. ~/.bashrcfiPATH=$PATH:$HOME/bin#after is add by admin.#ORACLE_SID=bys001ORACLE_BASE=/u01/app/oracleORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1PATH=$ORACLE_HOME/bin:$PATH:/user/sbinexport ORACLE_BASE ORACLE_SID ORACLE_HOMEPATHLD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:/usr/local/lib:/usr/X11R6/lib/exportCLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlibalias sqlplus='rlwrap sqlplus'alias rman='rlwrap rman'&使用ORACLE用户验证下[oracle@oel-01 ~]$ source .bash_profile[oracle@oel-01 ~]$ sqlplusrlwrap: Cannot execute sqlplus: No suchfile or directory[oracle@oel-01 ~]$ rmanrlwrap: Cannot execute rman: No such fileor directory&说明:其它的内核参数等可以不修改,在安装时检查系统环境时可以使用ORACLE给出的脚本进行修改,我这里就用的这种方法。&6.把ORACLE DATABASE软件上传并解压我这里使用的是SSH Secure Shell.这个软件里的传文件功能注意要用ORACLE用户上传并解压文件,避免文件权限问题。[oracle@oel-01 u01]$ lsapp & & & & & & & & & & & & & linux_11gR2_database_2of2.ziplinux_11gR2_database_1of2.zip&[oracle@oel-01 u01]$ du -sh /u01/linux*1.2G & /u01/linux_11gR2_database_1of2.zip951M & /u01/linux_11gR2_database_2of2.zip[oracle@oel-01 u01]$ unziplinux_11gR2_database_1of2.zip[oracle@oel-01 u01]$ unziplinux_11gR2_database_2of2.zip解压后删除原压缩文件节省磁盘空间[oracle@oel-01 u01]$ du -sh database/2.3G & database/[oracle@oel-01 u01]$ rm -rf linux_11gR2_*[oracle@oel-01 u01]$ lsapp database&[oracle@oel-01 u01]$&到此,关机,做一次快照。安装前准备工作完成。&7.使用OUI图形界面安装[root@oel-01 ~]# init 5&ORACLE软件的安装去图形界面,使用oracle用户登陆,然后在桌面右键菜单中,打开一个命令行终端窗口[oracle@oel-01 ~]$ cd /u01/database/[oracle@oel-01 database]$ lsdoc install &response &rpm runInstaller &sshsetup &stage welcome.html[oracle@oel-01 database]$ ./runInstaller&安装时的注意事项:在安装时过程中,要查看ORACLE_BASE/HOME等是否正确。在安装到检查安装环境时,会出现一些内核参数调整、缺少包(如果缺少包,按我这个说明上的环境及软件如果都安装的话是不会缺少包的)等提示。根据提示框中 Fixable下有YES参数的,都是ORACLE可以自动修复的。选择上方的FIX&CHECK AGAIN。这时打开一个终端,注意要使用root用户.根据对话框提示,打开一个终端输入下面:[root@oel-01 ~]# sh/tmp/CVU_11.2.0.1.0_oracle/runfixup.shResponse file being used is :/tmp/CVU_11.2.0.1.0_oracle/fixup.responseEnable file being used is:/tmp/CVU_11.2.0.1.0_oracle/fixup.enableLog file location:/tmp/CVU_11.2.0.1.0_oracle/orarun.logSetting Kernel Parameters...kernel.sem = 250 8fs.file-max = 6815744net.ipv4.ip_local_port_range = net.core.rmem_default = 262144net.core.wmem_default = 262144net.core.rmem_max = 4194304net.core.wmem_max = 1048576fs.aio-max-nr = 1048576uid=501(oracle) gid=1000(oinstall)groups=1000(oinstall),1031(dba),1021(asmdba)[root@oel-01 ~]#&再点击对话框中OK选项。此时重新检查,发现这些参数都自动修复了。如果有未安装的包再进行安装并重新检查环境。此时再进行检查,发现就SWAP SIZE未通过,这个可以直接选择IGNORE-ALL。然后在下一步时检查一下配置是否正确,然后点击下一步进行安装。#######################################################安装到启动NETCA时会出错,不能启动,需要打一个补丁其实我的打了补丁还是不行,安装完成后手动修改了下LISTNER.ORA文件&[INS-20802] Oracle Net ConfigurationAssistant failedCause-The plug-in failed in its performmethod&解决方案:需打名为p010_LINUX.zip的补丁。出现此错误时,先不要关闭安装程序:使用oracle用户上传和解压文件以及操作unzip p010_LINUX.zipcd 8670579/u01/app/oracle/product/11.2.0/dbhome_1/OPatch/opatchapply -invPtrLoc /u01/app/oracle/product/11.2.0/dbhome_1/oraInst.loc其中/apps/oracle/product/11.2.0/db_1/为ORACLE_HOME,可使用$ORACLE_HOME代替补丁打好后,点击安装程序的retry,继续安装即可。&查看系统中安装的补丁[oracle@orasrv 8670579]$/u01/app/oracle/OPatch/opatch lsinventory&#########################################################安装完成后根据提示运行以下两个脚本。[root@oel-01 Server]# sh/u01/app/oraInventory/orainstRoot.shChanging permissions of/u01/app/oraInventory.Adding read,write permissions for group.Removing read,write,execute permissions forworld.&Changing groupname of /u01/app/oraInventoryto oinstall.The execution of the script is complete.[root@oel-01 Server]# sh/u01/app/oracle/product/11.2.0/dbhome_1/root.shRunning Oracle 11g root.sh script...&The following environment variables are setas:& &ORACLE_OWNER= oracle& &ORACLE_HOME= /u01/app/oracle/product/11.2.0/dbhome_1&Enter the full pathname of the local bindirectory: [/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/oratabfile as needed byDatabase Configuration Assistant when adatabase is createdFinished running generic part of root.shscript.Now product-specific root actions will beperformed.Finished product-specific root actions.&8.安装完成后续工作1.防火墙开放1521端口[root@oel-01 ~]# iptables-I INPUT 1 -p tcp --dport 1521 -j ACCEPT &[root@oel-01 ~]# /etc/rc.d/init.d/iptablessaveSaving firewall rules to/etc/sysconfig/iptables: & & &[ &OK &][root@oel-01 ~]# services iptables restart-bash: services: command not found[root@oel-01 ~]# service iptablesrestart & & & & & &&Flushing firewall rules: & & & & & & & & & & & & & & & [ &OK &]Setting chains to policy ACCEPT:filter & & & & & & & &[ &OK &]Unloading iptables modules: & & & & & & & & & & & & & &[ &OK &]Applying iptables firewall rules: & & & & & & & & & & &[ &OK &]Loading additional iptables modules: ip_conntrack_netbios_ns&2.配置LISTENER---如安装过程中已经正常配置完成可以不做。&安装完成后,启动LISTENER[oracle@oel-01 admin]$ lsnrctl start输出的最后两句:The listener supports no servicesThe command completed successfully&这样启动后远程连接会报错:oracle ORA-12514:TNS:listener does notcurrently know of service requested in connect descriptor&原因:数据库实例没注册到listener在listener.ora里面添加了如下内容:--配置为静态监听。&SID_LIST_LISTENER =(SID_LIST =&(SID_DESC =&(GLOBAL_DBNAME = orcl)&(SID_NAME = orcl)& ))&注:里面的orcl根据你安装的数据库实例名确定,我用此法解决了这个报错。解决方法二:这个网上看的,我自己没使用,使用第一种就解决了。这种应该是解决非动态注册问题的,要手动注册实例到listener登录数据库:$sqlplus / as sysdba显示服务名:SQL&show parameter service_names强制注册服务:SQL&a查看监听状态:$lsnrctl status&&9.配置数据库开机自启动安装好Oracle数据库后:执行 dbstart和dbshut会提示:&[oracle@oracle11g ~]$ dbstartORACLE_HOME_LISTNER is not SET, unable toauto-start Oracle Net ListenerUsage:/u01/app/oracle/oracle/product/10.2.0/db_1/bin/dbstart ORACLE_HOME&错误原因是:dbstart和dbshut脚本文件中ORACLE_HOME_LISTNER的设置有问题,分别打开两个文件找到:ORACLE_HOME_LISTNER=$1,(在文件开头,比较好找)修改为&ORACLE_HOME_LISTNER=$ORACLE_HOME修改后保存退出,问题已解决;&测试:1.SQLPLUS能否启动,如不能,检查.bash_profile中环境变量 &ORACLE_HOME &PATH等,按我的方法做就可以。2.使用SQLPLUS登陆测试&sqlplus / as sysdba需要解锁SCOTT用户,并配置/u01/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora[oracle@oel-01 admin]$ cat tnsnames.ora# tnsnames.ora Network Configuration File:/u01/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora# Generated by Oracle configuration tools.&BYS001 =&(DESCRIPTION =& &(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.212)(PORT = 1521))& &(CONNECT_DATA =& & &(SERVER = DEDICATED)& & &(SERVICE_NAME = bys001)& & )& )&sqlplus scott/tiger@bys001sqlplusscott/:1521/bys001&3.正常情况下数据库实例未启动,此时用SYS登陆,启动数据库,看数据库能否启动&4.实现开机ORACLE自动启动监听和实例第一步:修改/etc/oratab文件,命令如下:格式如下: &&--------------------------------------------------------------------------------&SID:ORACLE_HOME:AUTO&--------------------------------------------------------------------------------[oracle@oracle11g ~]$ vi /etc/oratab添加或修改成(默认好像是N)这一句:bys001:/u01/app/oracle/product/11.2.0/dbhome_1/:Y[root@oel-01 ~]# cat /etc/oratab&bys001:/u01/app/oracle/product/11.2.0/dbhome_1:Y&第二步:把lsnrctl start和dbstart添加到rc.local文件中,命令如下:[oracle@oracle11g ~]$ vi /etc/rc.d/rc.local添加如下内容:su oracle -lc&/u01/app/oracle/product/11.2.0/dbhome_1/bin/lsnrctl start&su oracle -lc&/u01/app/oracle/product/11.2.0/dbhome_1/bin/dbstart&[root@oel-01 ~]# cat /etc/rc.d/rc.local#!/bin/sh## This script will be executed *after* allthe other init scripts.# You can put your own initialization stuffin here if you don't# want to do the full Sys V style initstuff.&touch /var/lock/subsys/localsu oracle -lc&/u01/app/oracle/product/11.2.0/dbhome_1/bin/lsnrctl start&su oracle -lc &/u01/app/oracle/product/11.2.0/dbhome_1/bin/dbstart&&第三步,重启后直接用SQLPLUS登陆测试数据库是否已经打开哈哈。&VM+redhat linux server5部署oracle 10gR2_百度文库
两大类热门资源免费畅读
续费一年阅读会员,立省24元!
评价文档:
喜欢此文档的还喜欢
VM+redhat linux server5部署oracle 10gR2
L​I​N​U​X​虚​拟​机​环​境​部​署​O​r​a​c​l​e​ 0​g​R​2
阅读已结束,如果下载本文需要使用
想免费下载本文?
把文档贴到Blog、BBS或个人站等:
普通尺寸(450*500pix)
较大尺寸(630*500pix)
你可能喜欢win7的虚拟机安装linux--Redhat_百度文库
两大类热门资源免费畅读
续费一年阅读会员,立省24元!
评价文档:
喜欢此文档的还喜欢
win7的虚拟机安装linux--Redhat
阅读已结束,如果下载本文需要使用
想免费下载本文?
把文档贴到Blog、BBS或个人站等:
普通尺寸(450*500pix)
较大尺寸(630*500pix)
你可能喜欢

我要回帖

更多关于 vm虚拟机安装win7 的文章

 

随机推荐