Linux下安装sybase15.7,无法打开图形化安装界面

昨天,在linux安装sybase15.7,想着给自已弄个Sybase单机环境,方便研究sybase,但在安装sybase时,就遇到图形化界面无法打开的错误:如下为错误解决过程:

[root@co2 sb157]# export DISPLAY=192.168.134.1:0.0
[root@co2 sb157]# ./setup.bin
Preparing to install…
Extracting the JRE from the installer archive…
Unpacking the JRE…
Extracting the installation resources from the installer archive…
Configuring the installer for this system’s environment…

Launching installer…

Graphical installers are not supported by the VM. The console mode will be used instead…

===============================================================================
Sybase Adaptive Server Enterprise Suite (created with InstallAnywhere)
——————————————————————————-

Preparing CONSOLE Mode Installation…

起初, 我以为在VM虚拟机下面,真的不支持图形化安装,就想当然地选择console方式安装:

一开始都很顺,都是选择安装选项,但直到Configure Web Services 时就报错:

** Web Services Configuration utility completed.
** At 09/25/18 19:30:03 CST
Invocation of this Java Application has caused an InvocationTargetException. This application will now exit. (LAX)

Stack Trace:
java.lang.UnsatisfiedLinkError: /tmp/install.dir.1912/Linux/resource/jre/lib/i386/xawt/libmawt.so: libXext.so.6: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.load0(Unknown Source)
at java.lang.System.load(Unknown Source)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)

起初不为留意这个报错,好打开安装日志,再留意到这个错误:

阅读更多

Linux 系统下 /dev/shm 大小调整 实用方法

今天,在弄linux 下的oracle12c RAC环境时,在调整/dev/shm 大小调整时,遇到一些麻烦,幸好,最后都能解决问题,下面为解决过程:

[root@node01 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_node01-lv_root
36G 759M 33G 3% /
tmpfs 932M 0 932M 0% /dev/shm
/dev/sda1 485M 32M 428M 7% /boot

/dev/shm默认只有932m,也就是差不多1G,担心在ORACLE安装配置过程文件系统大小,不够用,就想着调大一些:

[root@node01 ~]# vi /etc/fstab

dev/mapper/vg_node01-lv_root / ext4 defaults 1 1
UUID=f1c91395-7698-4bf3-954a-adc8862fbe9b /boot ext4 defaults 1 2
tmpfs /dev/shm tdevpts /dev/pts dsysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
tmpfs /dev/shm t[root@node01 ~]# vi /etc/fstab Used Available Use% Mounted on

调整tmpfs /dev/shm 的大小,如下所示:

/dev/mapper/vg_node01-lv_root / ext4 defaults 1 1
UUID=f1c91395-7698-4bf3-954a-adc8862fbe9b /boot ext4 defaults 1 2
/dev/mapper/vg_node01-lv_swap swap swap defaults 0 0
tmpfs /dev/shm tmpfs defaults.size=1140850688 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0

然后保存退出,并执行如下命令:

[root@node01 ~]# mount -o remount /dev/shm
mount: /dev/shm not mounted already, or bad option

有如上报错:

再尝试:

[root@node01 ~]# mount -o remount,rw /dev/shm
mount: /dev/shm not mounted already, or bad option

仍然有如上报错:

[root@node01 ~]# umount /dev/shm
[root@node01 ~]# mount /dev/shm
mount: wrong fs type, bad option, bad superblock on tmpfs,
missing codepage or helper program, or other error
(for several filesystems (e.g. nfs, cifs) you might
need a /sbin/mount.<type> helper program)
In some cases useful info is found in syslog – try
dmesg | tail or so

[root@node01 ~]# df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/vg_node01-lv_root
36744792 777004 34101244 3% /
/dev/sda1 495844 32411 437833 7% /boot
[root@node01 ~]# mount -o remount /dev/shm
mount: /dev/shm not mounted already, or bad option
[root@node01 ~]# mount -o remount /dev/shm
mount: /dev/shm not mounted already, or bad option

还是报错,并且,umount /dev/shm后,再mount 还是会报同样的错,

最好,通过以下命令来解决问题:

[root@node01 ~]# mount -o size=1500M -o nr_inodes=1000000 -o noatime,nodiratime -o remount /dev/shm
[root@node01 ~]# df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/vg_node01-lv_root
36744792 777132 34101116 3% /
tmpfs 1536000 0 1536000 0% /dev/shm
/dev/sda1 495844 32411 437833 7% /boot

最后,终于,将/dev/shm 大小调整到1500M,即是1.5G.

 

 

vmware 虚拟机vmx文件字典问题的解决

今天,在尝试搭建ORACLE12C的RAC环境,是用VMWARE WORKSTATION14 Pro 来创建两台虚拟机后,然后在某一台虚拟机的vmx文件,增加相关参数设置,以实现RAC环境的共享磁盘设置,也就是当我用Notepad++ 等笔记本文件,打开虚拟机的vmx文件,增加如下类似内容时:

disk.locking = “FALSE”

diskLib.dataCacheMaxSize = “0”

diskLib.dataCacheMaxReadAheadSize = “0”

diskLib.dataCacheMinReadAheadSize = “0”

diskLib.dataCachePageSize = “4096”

diskLib.maxUnsyncedWrites = “0”

scsi1.present = “TRUE”

scsi1.virtualDev = “lsilogic”

scsi1.sharedBus = “VIRTUAL”

scsi1:0.present = “TRUE”

scsi1:0.mode = “independent-persistent”

scsi1:0.deviceType = “plainDisk”

scsi1:0.redo = “”

scsi1:1.present = “TRUE”

scsi1:1.mode = “independent-persistent”

scsi1:1.deviceType = “plainDisk”

scsi1:1.redo = “”

然后保存vmx文件,然后重新启动虚拟机时,总是报字典问题,后百度了下,说是因为vmx文件里一行命令,有多个参数,建议将一行命令,多个参数,改成多行命令参数。查证过,确认上面的增加内容,并没有存在一行命令,有多个参数,或者多个命令写到一行的情况出现。 并且只要不增加这些新增内容,虚拟机就可以正常启动。

后来,经过尝试,将vmware workstation关掉,然后再编辑 vmx文件,并加上以上内容,再打开vmware workstaion,再给虚拟机通电开机,就不再报字典问题。感觉这个VMWARE workstation打开时,会对虚拟机的VMX文件有文件锁,所以,当你直接编辑这个VMX文件时,会破坏这个文件锁,因而报字典问题,所以,需要完全关掉vmware workstation ,再修改虚拟机的vmx文件,才不会报字典问题。