VBOX RAC 12C安裝一些常見問題記錄

wzhalal發表於2017-12-30
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
 

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/28894640/viewspace-2149510/,如需轉載,請註明出處,否則將追究法律責任。

相關文章