这篇文章主要为大家展示了“VBOX RAC 12C安装的常见问题有哪些”,内容简而易懂,条理清晰,希望能够帮助大家解决疑惑,下面让小编带领大家一起研究并学习一下“VBOX RAC 12C安装的常见问题有哪些”这篇文章吧。
vbox安装出现问题
如果工具安装不成功 一般是 内核缺少 可以查询一下
yum install kernel-devel kernel-headers gcc gcc-c++ make
yum install kernel-devel –外置核心模块
yum install kernel-headers –安装内核,编译内核,驱动必要的
yum install gcc –编译器
yum install gcc-c++
yum install make –自动编译源码的工具,写好makefile就可以方便编译
7.0 以上的版本
还需要修改内核启动方式
# cat /boot/grub2/grub.cfg |grep Fedora
结果:
menuentry 'Fedora Linux, with linux 3.1.2-1.fc16.i686.PAE' –class fedora –class os {
menuentry 'Fedora Linux, with Linux 3.1.1-1.fc16.i686.PAE' –class fedora –class os {
menuentry 'Fedora Linux, with Linux 3.1.0-7.fc16.i686.PAE' –class fedora –class os {
# grub2-set-default "Fedora Linux, with Linux 3.1.2-1.fc16.i686.PAE"
# grub2-editenv list
# grub2-mkconfig -o /boot/grub2/grub.cfg
安装图形界面
yum groupinstall "Desktop"
yum groupinstall "X Window System"
yum groupinstall "Chinese Support"
startx
修改图形界面启动
# multi-user.target: analogous to runlevel 3
# graphical.target: analogous to runlevel 5
#
# To view current default target, run:
# systemctl get-default
#
# To set a default target, run:
# systemctl set-default TARGET.target
设置
# systemctl set-default graphical.target
文件共享
mount -t vobxsf soft /media就OK
删除用户
usedel 出现错误
home# vipw 删除用户 再 vipws -s 删除密码文件
–ASM出错
C:/Users/Administrator>"c:/Program Files/Oracle/VirtualBox/VBoxManage" storageat
tach ol7-122-rac2 –storagectl "SATA" –port 1 –device 0 –type hdd –medium as
m1.vdi –mtype shareable
VBoxManage.exe: error: Could not find file for the medium 'C:/Users/Administrato
r/asm1.vdi' (VERR_FILE_NOT_FOUND)
VBoxManage.exe: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component M
ediumWrap, interface IMedium, callee IUnknown
VBoxManage.exe: error: Context: "OpenMedium(Bstr(pszFilenameOrUuid).raw(), enmDe
vType, enmAccessMode, fForceNewUuidOnOpen, pMedium.asOutParam())" at line 179 of
file VBoxManageDisk.cpp
VBoxManage.exe: error: Invalid UUID or filename "asm1.vdi"
可以手动挂载
删除磁盘分区
VBoxManage closemedium disk /home/freeoa/winxp.vdi –delete
–安装出错
# rpm -ivh cvuqdisk-1.0.9-1.rpm
Preparing… ########################################### [100%]
ls: cannot access /usr/sbin/smartctl: No such file or directory
/usr/sbin/smartctl not found.
error: %pre(cvuqdisk-1.0.9-1.x86_64) scriptlet failed, exit status 1
error: install: %pre scriptlet failed (2), skipping cvuqdisk-1.0.9-1
解决:安装rpm包smartmontools
检查 2边配置是否合适
runcluvfy.sh stage -pre crsinst -n ol7-122-rac1,ol7-122-rac2 -verbose
KERNEL=="sd?1", SUBSYSTEM=="block", PROGRAM=="/usr/lib/udev/scsi_id -g -u -d /dev/$parent", RESULT=="1ATA_VBOX_HARDDISK_VB2904c39d-6ae45f47", SYMLINK+="oracleasm/asm-disk1", OWNER="oracle", GROUP="dba", MODE="0660"
KERNEL=="sd?1", SUBSYSTEM=="block", PROGRAM=="/usr/lib/udev/scsi_id -g -u -d /dev/$parent", RESULT=="1ATA_VBOX_HARDDISK_VB3fcb1cbf-5b7b8cb5", SYMLINK+="oracleasm/asm-disk2", OWNER="oracle", GROUP="dba", MODE="0660"
KERNEL=="sd?1", SUBSYSTEM=="block", PROGRAM=="/usr/lib/udev/scsi_id -g -u -d /dev/$parent", RESULT=="1ATA_VBOX_HARDDISK_VB3f6e81c0-525d0b1a", SYMLINK+="oracleasm/asm-disk3", OWNER="oracle", GROUP="dba", MODE="0660"
KERNEL=="sd?1", SUBSYSTEM=="block", PROGRAM=="/usr/lib/udev/scsi_id -g -u -d /dev/$parent", RESULT=="1ATA_VBOX_HARDDISK_VBde18a207-898264ae", SYMLINK+="oracleasm/asm-disk4", OWNER="oracle", GROUP="dba", MODE="0660"
runcluvfy.sh stage -pre crsinst -n ol7-122-rac1,ol7-122-rac2 -verbose
VBoxManage storageattach ol7-122-rac2 –storagectl "SATA" –port 1 –device 0 –type hdd –medium asm1.vdi –mtype shareable
VBoxManage closemedium disk F:/vbox/ol7-122-rac2/ol7-122-rac2-disk1.vdi –delete
12C 需要安装的包
yum install -y compat-libstdc++-33 compat-libstdc++-33.i686 gcc gcc-c++ glibc glibc.i686 glibc-devel glibc-devel.i686 ksh libgcc libgcc.i686 libstdc++ libstdc++.i686 libstdc++-devel libstdc++-devel.i686 libaio libaio.i686 libaio-devel libaio-devel.i686 libXext libXext.i686 libXtst libXtst.i686 libX11 libX11.i686 libXau libXau.i686 libxcb libxcb.i686 libXi libXi.i686 make sysstat unixODBC unixODBC-devel zlib-devel zlib-devel.i686
–更改数据库字符集
QL> alter system enable restricted session;
系统已更改.
SQL> alter system setjob_queue_processes=0;
系统已更改.
SQL> alter database open;
数据库已更改.
SQL> alter database character set zhs16gbk;
alter databasecharacter set zhs16gbk
*
第一行出现错误:
ORA-12712: 新字符集必须为旧字符集的超集
SQL> Alter DATABASE character set INTERNAL_USE zhs16gbk;—–使用INTERNAL_USE可以跳过超集的检查
tmpfs 的值默认情况是为系统内存的一半,这种配置放在,在Redhat 系统下可以正常使用,但是我在oracle Linux 6.1 下测试,发现这个参数不能生效,即使这里设成3G,OS 启动完毕后,查看tmpfs 的大小还是会变成内存的一半。
解决方法都是在:/etc/fstab中添加参数,让系统启动时自动加载配置:
tmpfs /dev/shm tmpfs defaults,size=3G 0 0
因此如果我们只修改/etc/fstab,在Oracle Linux6.1 下没有影响。
我们还需要修改另一个配置文件,才可以使fstab中tmpfs的修改生效:/etc/rc.d/rc.sysinit
第一步:注释如下语句
#mount -f /dev/shm >/dev/null2>&1
第二步:
在rc.sysinit 中找到如下内容:
# Mount all other filesystems (except forNFS and /proc, which is already
# mounted). Contrary to standard usage,
# filesystems are NOT unmounted in singleuser mode.
if [ "$READONLY" !="yes" ] ; then
action $"Mounting local filesystems: " mount -a -tnonfs,nfs4,smbfs,ncpfs,cifs,gfs,gfs2 -O no_netdev
else
action $"Mounting local filesystems: " mount -a -n -tnonfs,nfs4,smbfs,ncpfs,cifs,gfs,gfs2 -O no_netdev
fi
在如下部分里添加tmpfs 这个类型进去:
if [ "$READONLY" !="yes" ] ; then
action $"Mounting local filesystems: " mount -a -t tmpfs,nonfs,nfs4,smbfs,ncpfs,cifs,gfs,gfs2 -O no_netdev
else
action $"Mounting local filesystems: " mount -a -n -t tmpfs,nonfs,nfs4,smbfs,ncpfs,cifs,gfs,gfs2 -Ono_netdev
fi
装rwlrap包
./configure
make
make install
libtermcap-devel-2.0.8-39.i386.rpm
readline-4.3-13.i386.rpm
readline-devel-4.3-13.i386.rpm
以上是“VBOX RAC 12C安装的常见问题有哪些”这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注亿速云行业资讯频道!
原创文章,作者:306829225,如若转载,请注明出处:https://blog.ytso.com/205394.html