2011年4月16日星期六

Linux Chrome 的下载助手插件:Download Assistant | jKey' Blog

Linux Chrome 的下载助手插件:Download Assistant | jKey' Blog: "#!/bin/sh
xterm -hold -e aria2c -d ~/Desktop $1
# 注意这里我是用 aria2 作为下载工具
# 如果你没有这个命令,请自行下载
# sudo apt-get install aria2"

2011年4月14日星期四

vCenter hardware Warning(Yellow)-Bettery on Controller 0 Charging ..."

Symptoms:

I'm receiving this warning  immediately from my ESX server which is recently  installing   on Eell PowerEdge R910:
Status: Warning
sensor  info: Battery on Controller 0 Charging ... (learn Cycle complete)

 

Resolution:

Just wait a day or less for the battery to complete  Charging, and the warning will disappear  normally .

2011年4月13日星期三

vCenter Hardware Status Error-An error occurred, please try again in another vSphere session.

Symptoms:

When Adding  a host to the vCenter and click " Hardware Status "tabs immediacy, i received
an 'An error occurred, please try again in another vSphere session.' error - or dispaly '发生错误,请在另一个 vSphere 会话中重新尝试。' in chinese.

vCenterError

 

Resolution:

Just wait 5 or more minute for vCenter to updating the hardware info.

 

Other Resolution:

http://www.vmwareinfo.com/2009/12/vcenter-hardware-status-error-you-do.html

2011年4月11日星期一

ine 69: ./runInstaller: 权限不够

详情:

在Linux下安装Oracle, 执行 ./runInstaller 的时候报错:

line 69: ./runInstaller: 权限不够

 

原因:

权限问题。(从Windows系统中拷贝过来的文件权限不足)

 

解决办法:

chmod -R /u01/* 755

解决 XMANAGER下SQLPLUS不能使用上下左右和BACKSPACE键问题

一. 解决输入 BACKSPACE 键变成 ^h 的问题

#su - oracle 

$stty erase ^h.

要永久生效,可以加入到用户环境配置文件 .bash_profile   加入如下一行 

stty erase ^h

 

二. 解决上下左右键问题


1.  安装 readline 组件包

 ftp://ftp.gnu.org 的 gun/readline目录下,下载最新版本的 read.*.tar.gz 文件,

如:   ftp://ftp.gnu.org/gnu/readline/readline-6.1.tar.gz


然后上传到服务器进行编译安装, 相关指令:


tar zxvf 文件名

./configure   或者  perl Makefile

make

make install

2. 安装 rlwrap 组件包

到如下网页搜索下载相应操作系统版本的 rlwrap  rpm 包,这里以RHEL4为例:

http://rpm.pbone.net/index.php3/stat/4/idpl/5810350/com/rlwrap-0.30-1.el4.i386.rpm.html

如:  ftp://ftp.univie.ac.at/systems/linux/fedora/epel/4/i386/rlwrap-0.30-1.el4.i386.rpm


注意:

对于 x86_64 系统, 也安装上述 i386版的rpm包即可。

然后上传到服务器后使用类似如下指令进行安装:

#rpm -Uvh rlwrap-0.30-1.el4.i386.rpm


也可以到其官方下载源文件进行手工编译:

http://utopia.knoware.nl/~hlub/uck/rlwrap/

但是, 我在编译的时候遇到了如下错误, 所以还是推荐使用 RPM 包进行安装

=======================================================

......
readline.o(.text+0xf5c): In function `prompt_is_single_line':
/home/rlwrap-0.36/src/readline.c:686: undefined reference to `rl_variable_value'
collect2: ld returned 1 exit status
make[1]: *** [rlwrap] 错误 1
make[1]: Leaving directory `/home/rlwrap-0.36/src'
make: *** [install-recursive] 错误 1
......

=======================================================

3. 使用方法
可以手动输入如下指令使用:
# rlwrap sqlplus "/as sysdba"


为了方便,也可以在Oracle用户环境配置文件
.bash_profile中加入如下语句:

stty erase ^h   

alias sqlplus='rlwrap sqlplus'


最后,再次进入sqlplus,上下左右和Backspace键都可以用了

Oracle Online redo logfile 配置

更多相关信息,参见Oracle官方文档:

Managing the Online Redo Log

 

忠告:

  • 在下述操作前进行数据库完全备份
  • 在下述操作后进行控制文件(control file)的备份

 

查询logfile相关信息:

 

  • 查询日志文件位置和状态

SQL> select * from v$logfile;

 

    GROUP# STATUS  TYPE    MEMBER

---------- ------- ------- --------------------------------------------------

 3           ONLINE  /u01/app/oracle/oradata/knitter/redo03.log

 2           ONLINE  /u01/app/oracle/oradata/knitter/redo02.log

 1           ONLINE  /u01/app/oracle/oradata/knitter/redo01.log

 4           ONLINE  /u01/app/oracle/oradata/knitter/redo04.rdo

 4 INVALID ONLINE  /u01/app/oracle/oradata/knitter/redo04_02.rdo

 

  • 查询日志组序号和状态

 

SQL> SELECT GROUP#, ARCHIVED, STATUS FROM V$LOG;

 

    GROUP# ARC STATUS

---------- --- ----------------

 1 NO  CURRENT

 2 YES INACTIVE

 3 YES INACTIVE

 4 YES INACTIVE

 

  • 查询日志历史

SQL> select * from V$LOG_HISTORY;

 

     RECID        STAMP         THREAD#  SEQUENCE# FIRST_CHANGE# FIRST_TIM NEXT_CHANGE#

---------- ---------- ---------- ---------- ------------- --------- ------------

 1  716304893               1          1           158900 01-APR-10          260498

 2  716317218               1          2           260498 14-APR-10          296893

 3  716317260               1          3           296893 14-APR-10          296990

 4  716319163               1          4           296990 14-APR-10          303247

 5  716319176               1          5           303247 14-APR-10          303252

 6  716384800               1          6           303252 14-APR-10          332583

 7  716384854               1          7           332583 15-APR-10          332775

 8  716384882               1          8           332775 15-APR-10          332881

 9  716384892               1          9           332881 15-APR-10          332889

 

 

============================================================================================

 

  1. 增加组(同时指定logfile):
  • 不指定组号(将自动使用组号: 当前最大组号+1

ALTER DATABASE
  ADD LOGFILE ('/oracle/dbs/log1c.rdo', '/oracle/dbs/log2c.rdo') SIZE 500K;

  • 指定组号

ALTER DATABASE 
  ADD LOGFILE GROUP 10 ('/oracle/dbs/log1c.rdo', '/oracle/dbs/log2c.rdo')
      SIZE 500K;

  1. 增加组成员
  • 指定组号

ALTER DATABASE ADD LOGFILE MEMBER

'/oracle/dbs/log2b.rdo'

TO GROUP 2;

 

ALTER DATABASE ADD LOGFILE MEMBER

'/u01/app/oracle/oradata/knitter/redo05_3.rdo',

'/u01/app/oracle/oradata/knitter/redo05_4.rdo' TO GROUP 5;

 

  • 不指定组号,指定所有组成员

ALTER DATABASE ADD LOGFILE MEMBER '/oracle/dbs/log2c.rdo'
    TO ('/oracle/dbs/log2a.rdo', '/oracle/dbs/log2b.rdo');

 

说明: 在增加组成员的时候, 不能指定logfile文件大小,因为同一组(logGroup)中所有member文件是完全一样的(大小、内容),Oracle将自动根据已有组员确定其大小。如果指定了大小,将会出错,如:

SQL> alter database add logfile member '/oracle/dbs/log1f.rdo' size 100k to group 5;

alter database add logfile member '/oracle/dbs/log1f.rdo' size 100k to group 5

                                                          *

ERROR at line 1:

ORA-00946: missing TO keyword

 

 

  1. 删除组成员

 

前提条件: 

  • 无法删除组中的最后一个成员
  • 所在组状态不能为 active  current 否则必须先进行日志切换(log switch
  • 如果数据库处于归档模式,必须(通过强制日志切换)先确保待删除组成员中的信息已经被归档

 

  • 强制切换日志

ALTER SYSTEM SWITCH LOGFILE;

然后通过如下语句查询,确保待操作组不为activecurrent状态:

SELECT GROUP#, ARCHIVED, STATUS FROM V$LOG;

 

  • 删除组成员

ALTER DATABASE DROP LOGFILE MEMBER '/oracle/dbs/log3c.rdo';

 

说明:

  • 上述操作完成后,只是删除了Oracle中的相关记录信息,

还应该使用操作系统删除指令,删除硬盘上相应的日志文件

 

 

  1. 删除组

 

前提条件: 

  • 最起码要有两个组
  • 所在组状态不能为 active  current 否则必须先进行日志切换(log switch
  • 如果数据库处于归档模式,必须(通过强制日志切换)先确保待删除组成员中的信息已经被归档

 

  • 强制切换日志

ALTER SYSTEM SWITCH LOGFILE;

然后通过如下语句查询,确保待操作组不为activecurrent状态:

SELECT GROUP#, ARCHIVED, STATUS FROM V$LOG;

 

  • 删除组

ALTER DATABASE DROP LOGFILE GROUP 3;

 

说明:

  • 上述操作完成后,只是删除了Oracle中的相关记录信息,

还应该使用操作系统删除指令,删除硬盘上相应的日志文件

 

 

 

说明:

  • 上述操作完成后,只是删除了Oracle中的相关记录信息,

还应该使用操作系统删除指令,删除硬盘上相应的日志文件

 

 

  1. 移动与重命名

 

  • 方法一

增加一个新的日志组成员,删除原有组成员, 以达到移动和重命名的效果

 

  • 方法二

 

  1. 关闭数据库:

SQL> shutdown;

  1. 使用操作系统指令,移动待处理的日志文件到目标位置
  2. 启动数据库到 MOUNT 状态

SQL> startup mount;

  1. 执行如下指令重命名日志文件:

ALTER DATABASE 
  RENAME FILE '/diska/logs/log1a.rdo', '/diska/logs/log2a.rdo' 
           TO '/diskc/logs/log1c.rdo', '/diskc/logs/log2c.rdo';

 

  1. 开启数据库:

SQL> alter database open;

 

  1. 清空日志文件

 

忠告: 在清空未归档日志文件前,进行数据库完全备份

 

使用场景:

日志文件无法Drop 常见有如下情况

  • 只有两组日志文件(不允许Drop
  • 待处理日志文件处于current状态组

 

指令:

  • 清空前自动归档:

ALTER DATABASE CLEAR LOGFILE GROUP 3;

  • 如果待清空日志文件数据已经损坏,同时数据库处于归档模式。此时,为了避免该损坏日志文件被归档,可使用如下指令:

ALTER DATABASE CLEAR UNARCHIVED LOGFILE GROUP 3;


Oracle netca 出错

错误信息:

[oracle@VM_Center5_wusy u01]$ netca

Oracle Net Services 配置:

#

# An unexpected error has been detected by HotSpot Virtual Machine:

#

#  SIGSEGV (0xb) at pc=0xa43ea4d4, pid=4341, tid=3086784720

#

# Java VM: Java HotSpot(TM) Client VM (1.5.0_17-b02 mixed mode)

# Problematic frame:

# C  [libnnz11.so+0x3c4d4]

#

# An error report file with more information is saved as hs_err_pid4341.log

#

# If you would like to submit a bug report, please visit:

# http://java.sun.com/webapps/bugreport/crash.jsp

#

/u01/oracle/bin/netca: line 178:  4341 已放弃               $JRE $JRE_OPTIONS -classpath $CLASSPATH oracle.net.ca.NetCA $*

 

解决办法:

在hosts文件中的127.0.0.1 后面添加对应的主机名,如:

vi /etc/hosts

127.0.0.1 localhost.localdomain localhost VMRHEL5

windows 下 oracle 从9.2.0.1 升级到9.2.0.8 过程中出错解决办法及相关注意事项

 

升级过程中出错,错误信息如下:

oracleUpdateError01

----------------------------------------------------------------------------------------------------------------------

 

我的解决办法:

到如下官方地址重新下载补丁包后执行安装, 问题解决:
ftp://updates.oracle.com/4547809/p4547809_92080_WINNT.zip

 

P.S.
升级注意事项:


0. 升级前先关闭数据库

1. 升级前记得设置 ORACLE_HOME 环境变量, 比如我的为: E:\oracle\ora92
这样在升级时会自动识别出之前安装的Oracle的主目录, 否则需要自己手动指定到之前安装的Oracle的主目录

2. 升级后重启Oracle数据库后使用sys账户登录后执行如下语句查看升级结果:

select * from product_component_version

3. 升级后通过如下方法确保 System表空间有足够空闲空间: (或者通过企业管理器直接修改)
a. 通过如下语句查看 SYSTEM 表空间 空闲空间:
select tablespace_name, sum(bytes)/(1024*1024) as free_space
from dba_free_space
where tablespace_name = 'SYSTEM'
group by tablespace_name;


b. 通过如下语句查看 SYSTEM 表空间在硬盘上的相关文件:
select file_name, round(bytes/(1024*1024),0) total_space
from dba_data_files
where tablespace_name = 'SYSTEM';


c. 根据以上两步的查询结果,增大表空间:
语法: alter database datafile 'data_filename' resize new_size;
示例: alter database datafile 'E:\ORACLE\ORADATA\ORACLE\SYSTEM01.DBF' resize 512M;

SQLPlus 登录方法

一。本地Oracle

1. 普通账户
C:\>sqlplus scott/tiger

2. 以DBA登录
对于10g:
C:\>sqlplus sys/manager as sysdba

但是对于9i,以上写法无效,应该使用:
C:\>sqlplus sys/manager@“oracle as sysdba"   注意引号
其中的oracle为本地Oracle数据库SID

二。远端Oracle
其中的oracle_192.168.2.1为本地Oracle数据库SID

1. 普通账户
C:\>sqlplus scott/tiger@oracle_192.168.2.1

2. 以DBA登录
C:\>sqlplus scott/tiger@"oracle_192.168.2.1 as sysdba"

或者:
先登录: C:\>sqlplus /nolog
然后切换到管理员:
sql> conn sys/manager@oracle_192.168.2.1 as sysdba

解决 Linux下oracle导入(imp)导出(exp)出现"failed to open ...for reader/wirte" 错误

相关指令:
> exp bbs/password file=/home/oracle/bbs.dmp owner=bbs;
> imp bbs/password file=/home/oracle/bbs.dmp fromuser=bbs;


 

出现错误:

failed to open ......for write/reader


 

原因:

oracle 账户没有对指定目录的读/写权限


 

解决办法:

更换到Oracle有读写权限的相关目录

修改 Google Earth 的默认缓存目录和默认KML文件加载目录

Linux 下 修改 Google Earth 的默认缓存目录和默认KML文件加载目录
# vi ~/.config/Google/GoogleEarthPlus.conf
修改 默认缓存目录 只要修改 CachePath 字段的值即可
修改 KML文件加载目录 只要修改 KMLPath字段的值即可

Windows 下 修改 Google Earth 的默认缓存目录和默认KML文件加载目录
定位到注册表如下位置:

HKEY_CURRENT_USER\Software\Google\Google Earth Plus

修改 默认缓存目录 只要修改 CachePath 字段的值即可
修改 KML文件加载目录 只要修改 KMLPath字段的值即可

Google Chrome Protable 版设置为默认浏览器后,外部程序调用问题

症状:

Google Chrome Protable 版设置为默认浏览器后,外部程序调用其打开会打开无插件版的Google Chrome

 

原因:

Google Chrome Protable 将默认浏览器设置成了:

"D:\netApp\GoogleChromePortableDev\App\Chrome-bin\chrome.exe" -- "%1"

而非:

"D:\netApp\GoogleChromePortableDev\GoogleChromePortable.exe" -- "%1"

而chrome.exe 是没有加载插件的。

 

解决办法:

将默认浏览器设置成为GoogleChromePortable.exe 即可。

导入如下注册表文件(先做相应修改)

Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\http\shell\open\command]

@="\"D:\\netApp\\GoogleChromePortableDev\\GoogleChromePortable.exe\" -- \"%1\""

 

P.S.

经过上述设置后,再次打开Chrome浏览器会提示你, Chrome浏览器不是默认浏览器, 忽略即可。

Outlook中添加中国农历节日

Outlook中直接添加农历节日非常不方便, Google后找到解决办法如下:

 

一. ics文件导入法推荐

下载如下农历日历:

http://www.google.com/calendar/ical/china__zh_cn%40holiday.calendar.google.com/public/basic.ics

或:

我的网盘下载:http://www.brsbox.com/filebox/down/fc/63d219417fa8d79b1b5301e322bb0f2b

然后打开Outlook,使用“文件”-->“导入和导出”,然后选择“导入iCalendar或vCalendar文件(.vcs),定位到相应文件导入即可。

 

二. Google Calendar 同步法
在Google Calendar中添加农历日历后, 使用GoogleCalendarSync同步到Otutlook, 注意如下几点:
1. 要通过"导入日历"功能导入到您自己的日历中, 因为GoogleCalendarSync只会同步您自的私有日历,而不会同步您添加的公共日历
2. 农历节日链接地址:
http://www.google.com/calendar/ical/china__zh_cn%40holiday.calendar.google.com/public/basic.ics


三. 导入cvs文件添加农历日历(英文日历名称)
到如下页面下载中国日历csv文件:
http://pinyinjoe.com/pinyin/chinese_festivals.htm
使用方法该页面已经作了详细介绍.

找回"发送到邮件接收者"

误删"C:\Documents and Settings\Administrator\SendTo"中的 "邮件接收者"


修复方法:
在 C:\Documents and Settings\Administrator\SendTo 中新建一个文本文件,
重命名为"邮件接收者.MAPIMail" 即可.

OneNote 无法创建新页

refer:http://bookcold.com/2010/03/340


 

故障表象:


1. OneNote无法创建新页,按钮变成了灰色。
2. 无法复制页面内容
3.卸载的时候出现错误:“安装无法继续,因为一个必需文件已损坏或不可用,请从原始源光盘下载位置重新运行安装程序。”
故障原因:
OneNote破解失败
解决办法:
首先,卸载OneNote

  1. 打开C:\Program Files\Common Files\Microsoft Shared\OFFICE12\Office Setup Controller\Proof.en\Proof.XML,把里面的<OptionRef Id="NeverInstalled"/>改为<OptionRef Id="AlwaysInstalled"/>。
  2. 卸载OneNote

然后重新下载安装其它版本OneNote


 

可用版本:


转载自:http://xu.hong.liang1982.blog.163.com/blog/static/11868496920095281426573/
==========================================================================

Microsoft Office 2007 中文企业版(微软原版)镜像下载 + 正版密钥

Office 2009-06-02 20:15:06 阅读804 评论0 字号:大中小

       说微软原版, 自有Microsoft官方MSDN网站有关下载的校验值为证(附后)。说正版密钥并且没加“”引号,是因为它与本博客提供的Windows XP VOL密钥一样确有奇效,安装后即可自行激活并顺利通过微软正版验证(无需任何破解)。最为重要的是,它经历了两年来好几轮OGA的洗礼和考验,一直保持 奇效至今。为了大家免去破解的麻烦,现提供Microsoft Office 2007 中文企业版(微软原版)镜像下载 + 正版密钥

       Microsoft Office Enterprise 2007 简体中文版下载:点击 下载

MD5: E2DAF20324B0AA55AAC312A1E7B5ACE8
SHA1: 975C76A28183AC827F62160739FE0F7F4E600645
CRC32: 50605B7C

      文件名 cn_office_enterprise_2007_DVD_VL_X12-19567.iso
邮寄日期 (UTC): 12/14/2006 7:52:08 PM
SHA1: 975C76A28183AC827F62160739FE0F7F4E600645
ISO/CRC: 50605B7C


组件包括: Word、Excel、Outlook、PowerPoint、Publisher、Access、InfoPath、 Communicator、Integrated Enterprise Content Management、Electronic Forms、Advanced Information Rights Policy Capabilities、On

eNote Groove


       Microsoft Office Enterprise 2007 简体中文版密钥:

CTKXX-M97FT-89PW2-DHKD3-74MYJ

       这个密钥属于VOL(大客户)激活序列号。用此进行安装,无需任何破解,即可自行激活并成功通过微软正版验证,与正版别无二致。


        最简单的安装方法:用WinRAR打开(不是解压)下载的ISO光盘镜像,鼠标双击其中的“Setup.exe”即进入安装。

==================================================================================

如何在ESX 4中开启网页访问

refer: http://blog.microhyper.com/archives/801

 

如果你用浏览器通过HTTPS访问你的ESX 4.0服务器 ,访问可能会失败并收到“503 Service unavailable” 错误。该如何解决呢?

 

  1. 首先,检查网页服务是否已运行。进入控制台,登录后输入以下命令,看该服务是否正在运行: (注:区分大小写)

service vmware-webAccess status

  1. 启动该服务:service vmware-webAccess start

该服务在默认情况下好像并未开启。若你需要在每一次重启ESX服务器后自动开启该服务,可以输入以下命令:

chkconfig –level 345 vmware-webAccess on

  1. 启动该服务:service vmware-webAccess start

该服务在默认情况下好像并未开启。若你需要在每一次重启ESX服务器后自动开启该服务,可以输入以下命令:

chkconfig –level 345 vmware-webAccess on

VMware vSphere Client 连接 vCenter 时"连接到 VMware vCenter Update Manager 时出错"解决办法

故障描述:
使用 VMware vSphere Client 连接 vCenter ,正常登录后出错,出现如下错误信息
------------------------------------------------------------------------------------------------------------
连接到 VMware vCenter Update Manager 时出错 - [testserver:8084]。
由于服务器名称“testserver”无法解析,请求失败。 (无法解析此远程名称: 'testserver')
------------------------------------------------------------------------------------------------------------

错误信息如下图:


vmClientError2

错误原因:
进过分析, 错误的原因是因为VMware vSphere Client所在主机无法正确解析vCenter服务器的主机名(这里为testserver)

解决办法:
分析出了错误原因,解决就很简单了: 手动添加vCenter解析到hosts文件中即可:
运行:
notepad C:\WINDOWS\system32\drivers\etc\hosts
在打开的hosts文件中添加主机解析即可:
----------------------------------------------------------------------------------------------------------
# Copyright (c) 1993-1999 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host
127.0.0.1       localhost
192.168.60.20       TESTSERVER
----------------------------------------------------------------------------------------------------------

解决"VMware Infrastructure Client unrecoverable error"

错误描述:
在使用VMware vSphere Client 连接 vCenter ,正常退出后, 出现错误窗口:


vmClientError


相关错误信息如下:
---------------------------------------------------------------------------
VMware Infrastructure Client unrecoverable error: (app)
Exception 0xc0000005 (access violation) has occurred.
Please request support.
To collect data to submit to VMware support, run "vm-support".
We will respond on the basis of your support entitlement.
---------------------------------------------------------------------------


错误原因:
禁用插件"vCenter Converter Plugin"后,未再出现相应的错误,所以推断应该是"vCenter Converter Plugin"引起的错误


解决办法:
查询了VMware的官方论坛, 目前还没有解决办法,已经作为Bug提交,只能等更新了。
不过好像只是关闭的时候有错误提示,目前还没发现对之前的使用有任何影响。
官方说明:
---------------------------------------------------------------------------------------------------------------------------------
we are aware of the issue (PR 445084) and it will be fixed in Update 1 which should be out in November.
---------------------------------------------------------------------------------------------------------------------------------

Internal AAM Error - agent could not start

错误细节:

启动HA时,一台ESX主机可正确配置,另外一台配置出错,错误信息如下:

--------------------------------------------------------------------------------------------------------------------------------------------------------

HA 代理出现错误 : cmd addnode failed for secondary node: Internal AAM Error - agent could not start.: 未知HA错误

--------------------------------------------------------------------------------------------------------------------------------------------------------

或(英文错误信息):

--------------------------------------------------------------------------------------------------------------------------------------------------------

HA agent has an error : cmd addnode failed for primary node: Internal AAM Error - agent could not start. : Unknown HA error.

--------------------------------------------------------------------------------------------------------------------------------------------------------

错误原因:

集群中的两台主机无法相互正确进行解析

解决办法:

在两台主机上分别手动配置hosts文件,示例如下:

-----------------------------------------------------------------------------------------------------

[root@servera ~]# cat /etc/hosts

127.0.0.1        localhost

::1                localhost

192.168.120.1        servera.vmware.com servera

192.168.120.2        serverb.vmware.com serverb

-----------------------------------------------------------------------------------------------------

注意:切记加上后面的去掉域名的servera和serverb

  • 方法二:

配置DNS服务器,在DNS服务器中配置相关集群主机的信息

“Mounting HGFS filesystems: [FAILED]”

Details
After installing VMware tools in RHEL 5.2 which created by VMware Server 2.0.2-203138, i got the follow three similar error messages when i rebooting the system:
Mounting local filesystems: [FAILED]
......
Mounting HGFS filesystems: [FAILED]
......
Mounting other filesystems: [FAILED]
......


Solution
Since "The shared folders feature is not supported in VMware Server"(from VMware Server help ), you can disable the error above only by remove the vmhgfs entry in "/etc/fstab".
The vmhgfs entry is similar like this:
.host:/                 /mnt/hgfs               vmhgfs  defaults,ttl=5     0 0
Edit the file by "vi /etc/fstab" and just delete or comment the vmhgfs entry .
Good luck!
Marked by knityster.

解决VirtualBox虚拟机无法Ping通主机的问题(取消Windows7的防ping设置)

环境:
Guest: RHEL4U8 @ VirtualBox 3.1.4
HOST: Windows 7
问题描述:
HOST可以ping通Guest,反之不行。
问题分析:
1.出现此类问题, 凭经验, 应该是由防火墙引起的。
2.关闭Windows7 自带的防火墙, 果然正常了
3.Google之,查出问题是由“Windows 7 防火墙 默认防ping”的策略引起的
解决办法:
1. 直接关闭Windows 7 系统自带防火墙(极度不推荐
2. 添加自定义策略:
a. 在控制面板中打开“Windows Firewall” (Control Panel\All Control Panel Items\Windows Firewall), 选择“Advanced Settings”
b. 右击“Inbound Rules”,选择“New Rule”,选“Custom”,下一步,选“All Programs”, 下一步,Protocol选择“ICMPv4”,下一步,设置本地和远端受限IP(根据情况设置,我这里设置 remote IP address 为IP段: 选 These IP Address,然后点Add添加Guest虚拟机所在的IP段), 下一步,默认, 下一步,默认,最后,输入防火墙规则名称和注释。
c. OK

VMware启动错误信息: The connection to the VMware USB Arbitration Service was unsuccessful

故障: VMware 虚拟机启动时候右下角出现如下错误
---------------------------------------------------------------------------------------------------------------------------------
The connection to the VMware USB Arbitration Service was unsuccessful. Please check the status of this service in the Microsoft Management Console.
---------------------------------------------------------------------------------------------------------------------------------

故障原因:
VMware USB Arbitration Service 服务没有启动


解决办法:
net start VMUSBArbService

执行 smitty 报错 "1800-005 SMIT requires a minimum of 24 line by 80 column output display."

使用XManager登录AIX 执行 smitty 的时候报错:
1800-005 SMIT requires a minimum of 24 line by 80 column output display.


原因:
XManager窗口太小


解决办法:
将XManager窗口拉大后再执行 smitty 指令

解决AIX SSH登录后 delete与backspace按键解释错误问题

解决办法:
set -o emacs
执行 stty -a 可以查看详细设置。

其中:

  • eof : 输入结束
  • erase : 向后删除字符,
  • intr : 中断当前程序
  • kill : 删除整条命令
  • quit :退出当前程序
  • start : 启动屏幕输出
  • stop :停止屏幕输出;
  • susp : terminal stop当前程序。

Windws 7上安装 Oracle 11g R1

Oracle 官方从11gR2才开始正式支持Windows 7, 不过当前官方还没有提供R2 for Windows的相关办法下载, 官方说明:

Goal

Is Microsoft Windows 7 certified to install/run Oracle Database Server/Client ?

Solution

Oracle Database releases "9iR2 (9.2.0.x), 10gR1 (10.1.0.x), 10gR2 (10.2.0.x) and 11gR1 (11.1.0.x)" are not Certified/Supported to install/run on Microsoft Windows 7.

"Microsoft Windows 7" certification will begin with "Oracle Database 11gR2 (11.2.0.x)". That means, Oracle Database 11gR2 will be the first Oracle Database product certified/supported to install/run on "Microsoft Windows 7".

Pasted from <https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&id=952302.1>

解决办法:

  1. 打开 database\stage\prereq\db\refhost.xml

将:

<!--Microsoft Windows Vista-->

<OPERATING_SYSTEM>

<VERSION VALUE="6.0"/>

</OPERATING_SYSTEM>

修改为:

<!--Microsoft Windows 7-->

<OPERATING_SYSTEM>

<VERSION VALUE="6.1"/>

</OPERATING_SYSTEM>

  1. 右击“setup.exe”后选择“以管理员身份运行(Run as administrator)”
  1. 安装前检查会出现如下警告:

一些建议的先决条件检查失败。在安装期间可能会出错。是否要继续?

选择“是”,继续安装。

  1. “仅安装软件”
  1. 配置监听、建库等操作要在“以管理员身份运行”的cmd窗口中进行。简要说明:

单机Win键后,在搜索框中输入cmd,会出现“cmd.exe”程序,在其上右击,选择“以管理员身份运行(Run as administrator)”, 然后进行Oracle相关操作

  1. 配置EM

配置EM前要先创建%ORACLE_SID%环境变量, 否则会出现如下错误:

Environment variable ORACLE_SID not defined. Please define it.

无法使用: emctl status dbconsole 进行配置

Fedora11 (Linux) 下远程telnet到AIX

更正: 还是使用telnet 直接使用算了, 因为 TN3270无法解决 按上下键无法选中 smitty 菜单的问题


====================================================================
虽然可以在shell中直接telnet到AIX, 但是还是存在“登录后 delete与backspace按键解释错误” 等问题,
虽然可以参照“解决AIX SSH登录后 delete与backspace按键解释错误问题”  进行解决, 但是效果也不是很理想。
Google了一段时间后, 找到比较好的解决办法:  安装 tsclient 的 TN3270 支持

# yum install x3270 x3270-text x3270-x11

成功安装完成后,就可以在 tsclient 中通过建立 TN3270连接连接到AIX了, 而且 TN3270 提供了丰富的定制功能,

而且, 默认也没有按键乱码的问题。


最后, 老样子, 上张效果图
aixtelnet


====================================================================

2011年4月10日星期日

AIX 操作备忘

1. 重复执行指令
#set -o vi    表示将i设置为当前编辑器, 相关操作指令和vi中一样
然后按 Esc 键后,  按键 J K 进行上下查看已输入的指令
2. 补齐:
# set -o emacs
按 ESC 就可以了

QLSERVER 列出所有用户表、列出所有表,字段名,主键,类型,长度,小数位数等信息

refer:http://blog.csdn.net/cncco/archive/2009/08/10/4432357.aspx

列出所有用户表

select 表名=name from sysobjects where xtype='U' and name<>'dtproperties'

列出SQL SERVER 所有表,字段名,主键,类型,长度,小数位数等信息

----------------------------------------------------------------------------------------------------------------------

[sourcecode language='sql' padlinenumbers='true']
SELECT
(case when a.colorder=1 then d.name else '' end)表名,
a.colorder 字段序号,
a.name 字段名,
(case when COLUMNPROPERTY( a.id,a.name,'IsIdentity')=1 then '√'else '' end) 标识,
(case when (SELECT count(*)
FROM sysobjects
WHERE (name in
(SELECT name
FROM sysindexes
WHERE (id = a.id) AND (indid in
(SELECT indid
FROM sysindexkeys
WHERE (id = a.id) AND (colid in
(SELECT colid
FROM syscolumns
WHERE (id = a.id) AND (name = a.name))))))) AND
(xtype = 'PK'))>0 then '√' else '' end) 主键,
b.name 类型,
a.length 占用字节数,
COLUMNPROPERTY(a.id,a.name,'PRECISION') as 长度,
isnull(COLUMNPROPERTY(a.id,a.name,'Scale'),0) as 小数位数,
(case when a.isnullable=1 then '√'else '' end) 允许空,
isnull(e.text,'') 默认值,
isnull(g.[value],'') AS 字段说明
FROM syscolumns a left join systypes b
on a.xtype=b.xusertype
inner join sysobjects d
on a.id=d.id and d.xtype='U' and d.name<>'dtproperties'
left join syscomments e
on a.cdefault=e.id
left join sysproperties g
on a.id=g.id AND a.colid = g.smallid
order by a.id,a.colorder
[/sourcecode]

GoogleKingKong 自定义搜索

Update:
------------------------------------------------------------------------

GoogleEN|https://encrypted.google.com/search?q={word}&num=50&hl=en-US&newwindow=1&safe=off&prmd=ivns&ei=DNWzTcrqCKnKiALo6I2wBg&start=120&sa=N
GoogleIMG|http://www.google.com/search?hl=zh-CN&q={word}&um=1&ie=UTF-8&tbm=isch&source=og&sa=N&tab=wi&biw=1280&bih=711
手气不错|http://www.google.com/search?hl=zh-CN&q={word}&btnI=I&sourceid=navclient-ff&rlz=1B7GGLL_zh-CNUS379CN379&ie=UTF-8
必应|http://cn.bing.com/search?q={word}&go=&form=QBRE&filt=all&qs=n&sk=
百度|http://www.baidu.com/s?ie=utf-8&wd={word}
Wikiw中文|http://zh.wikipedia.org/wiki/Special:Search?search={word}
------------------------------------------------------------------------


爱词霸|http://www.iciba.com/{word}/
淘宝|http://search.taobao.com/search?shopf=newsearch&q={word}
VeryCD|http://www.verycd.com/search/folders/{word}
绿软|http://www.xdowns.com/tag.asp?keyword={word}&page=



------------------------------------------------------------------------
Google英文|http://www.google.com/search?hl=en-US&q={word}&sourceid=navclient-ff&rlz=1B7GGLL_zh-CNUS379CN379&ie=UTF-8
Google中文|http://www.google.com.hk/search?hl=zh-CN&source=hp&q={word}&aq=f&aqi=&aql=&oq=&gs_rfai=
百度|http://www.baidu.com/s?ie=utf-8&wd={word}
爱词霸|http://www.iciba.com/{word}/
手气不错|http://www.google.com/search?hl=zh-CN&q={word}&btnI=I&sourceid=navclient-ff&rlz=1B7GGLL_zh-CNUS379CN379&ie=UTF-8
必应|http://cn.bing.com/search?q={word}&go=&form=QBRE&filt=all&qs=n&sk=
淘宝|http://search.taobao.com/search?shopf=newsearch&q={word}
VeryCD|http://www.verycd.com/search/folders/{word}
绿软联盟|http://www.xdowns.com/tag.asp?keyword={word}&page=
------------------------------------------------------------------------

Firefox 导航工具栏变成一根空白条 解决办法

天不知做了什么操作后, 我的Firefox的地址栏居然变成拉一根空白条。
排除了可能引起该故障的几个Extend的原因后, 到处找相关的设置, 最终找到解决办法。
真的是:  踏破铁鞋无觅处, 得来全不费功夫


 

解决办法:


查看--》工具栏--》定制 (或直接在菜单栏下面的位置点右键,选“定制”),
在弹出的“定制工具栏”窗口中, 点击“恢复默认设置”按钮即可。。
Enjoy。

windows server 2008 使用 psshutdown 定时关机、休眠 及错误解决

最近将本本上的系统由2003升级到了2008,发现原先我用来自动关机、休眠的免费小软件 poweroff 无法使用了(不起作用)。也懒得找了,就用系统自带的指令实现吧。
首先想到的当然是 shutdown 指令, 但是它有一个致命缺陷: 无法实现定时休眠
没办法, google 了下, 原来 SysinternalsSuite 工具包中就有一个能实现定时休眠的工具: psshutdown
试用了下,效果俱佳,完全能满足的需要。 注意下面的 -v 参数
常用指令如下:
半小时候自动休眠: psshutdown -h -t 1800 -v 0
注意:
-v 参数后接一个数字, 表示出现提示信息的时间,设置为0,表示不出现提示信息。
必须指定 -v 参数, 否则会出现 "A program can't display a message on your desktop." 错误信息:

 

win2k8shutdown

 

完整使用说明:
------------------------------------------------------------------------------------------------
usage:
psshutdown -s|-r|-h|-d|-k|-a|-l|-o [-f] [-c] [-t [nn|h:m]] [-v nn] [-e [u|p]:xx:yy] [-m "message"] [-u Username [-p password]] [-n s] [\\computer[,computer[,...]|@file]
   -a          Abort a shutdown (only possible while countdown is in progress)
   -c          Allow the shutdown to be aborted by the interactive user
   -d          Suspend the computer
   -e          Shutdown reason code (available on Windows XP and higher).
               Specify 'u' for unplanned and 'p' for planned
               shutdown reason codes.
               xx is the major reason code (must be less than 256)
               yy is the minor reason code (must be less than 65536)
   -f          Forces running applications to close
   -h          Hibernate the computer
   -k          Poweroff the computer (reboot if poweroff is not supported)
   -l          Lock the computer
   -m          Message to display to logged on users
   -n          Specifies timeout in seconds connecting to remote computers
   -o          Logoff the console user
   -p          Specifies optional password for user name. If you omit this
               you will be prompted to enter a hidden password.
   -r          Reboot after shutdown
   -s          Shutdown without poweroff
   -t          Specifies countdown in seconds until shutdown (default is 20) or
               the time of shutdown (in 24 hour notation)
   -u          Specifies optional user name for login to remote
               computer.
   -v          Display message for the specified number of seconds before
               the shutdown. If you omit this parameter the shutdown
               notification dialog displays and specifying a value of 0
               omits the dialog.
   computer    Shutdown the computer or computers specified
   @file       Shutdown the computers listed in the file specified
Reasons defined on this computer (U = unplanned, P = planned):
Type   Major   Minor   Title
U      0       0     Other (Unplanned)
P      0       0     Other (Planned)
U      1       1     Hardware: Maintenance (Unplanned)
P      1       1     Hardware: Maintenance (Planned)
U      1       2     Hardware: Installation (Unplanned)
P      1       2     Hardware: Installation (Planned)
P      2       3     Operating System: Upgrade (Planned)
U      2       4     Operating System: Reconfiguration (Unplanned)
P      2       4     Operating System: Reconfiguration (Planned)
P      2      16     Operating System: Service pack (Planned)
U      2      17     Operating System: Hot fix (Unplanned)
P      2      17     Operating System: Hot fix (Planned)
U      2      18     Operating System: Security fix (Unplanned)
P      2      18     Operating System: Security fix (Planned)
U      4       1     Application: Maintenance (Unplanned)
P      4       1     Application: Maintenance (Planned)
P      4       2     Application: Installation (Planned)
U      4       5     Application: Unresponsive
U      4       6     Application: Unstable
U      5      19     Security issue
P      5      19     Security issue
U      5      20     Loss of network connectivity (Unplanned)
P      7       0     Legacy API shutdown
------------------------------------------------------------------------------------------------