java程序运行的过程中,IE提示下面的错误
java.lang.InternalError: Can't connect to X11 window server using ':0.0' as
resin后台会提示如下错误:
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
经检查天津JAVA参数解决:
-Djava.awt.headless=true
Message from syslogd@dbserver at Fri Sep 30 13:40:02 2011 ...
dbserver kernel: CPU13: Temperature above threshold
Message from syslogd@dbserver at Fri Sep 30 13:40:03 2011 ...
dbserver kernel: CPU5: Running in modulated clock mode
Message from syslogd@dbserver at Fri Sep 30 13:40:02 2011 ...
dbserver kernel: CPU13: Running in modulated clock mode
在网上搜索了一下是CPU温度过高,原因是是 2.6 内核的相应阀值过低造成了这种状况。
vi /etc/syslog.conf
注释掉 *.emerg 这一行
/etc/init.d/syslog restart
就不会出现 CPU 温度过高的警告了。
HP工程师说没有关系,除掉这个提示后不知道会不会有其他问题。
日常工作中visio已经是一个很重要的工具了,从网上下载一些形状库是必须的,否则怎么能做出漂亮的visio图呢?!呵呵。
visio默认的形状库存放路径为:Users用户名Documents我的形状,如果我们不想存放到这儿咋办呢。
原文地址:http://www.aixchina.net/club/thread-30672-1-1.html
写给我们这些浮躁的系统工程师
| 对于我们这些刚入行浮躁的系统工程师,如何成长,以下是列出了一些成长的心得,我们不必每条都去实践,但是优秀的系统工程师成长过程中总会实践里面的几条。 多做项目,多思考 不要害怕做事,刚毕业的同学最缺的就是工作经验,乱七八糟的项目能让你很快就了解了一个公司的业务与使用的技术,并且可以多接触同事与客户。 当你毕业后刚进一家公司时,如果主管没有把你安排到项目组工作,那真的很杯具,因为他认为你还不能胜任工作或者你的加入会让项目组更糟。 还有人说,我刚进公司,公司就把我当成了苦工,工资又低,项目组加入好几个,也做了很多事情,每天都要加班。我估计有很多人感觉是这种状态,为什么会是这 样,因为全国人民(不只是系统工程师)里有90%可能都和你一样的感觉,这说明你现在状况是很普遍的,也说明你现在的能力并没有很多出众的地方。也许是逆 境才能让人成长,如果有一天你让你的团队从这些苦力工作中解脱出来或者能给你的团队前进的动力,那你就升华了,你就比他们出众。你没有能力去改变现状,所 以只能接受,而不要认为是自己生不逢时,或者说公司环境太差。创业也一样,不要认为公司没发展的主要原因是环境太差,那你不要去当老板算了,投资环境都非 常好还能轮到你吗。 还有很多同学感觉自己付出了很多,回报太少,这个问题很难平衡,首先一点,公司在聘你进来后不会因为你没有成绩就先给你回报,公司也不可能会在你有了成绩 后就立即给你回报,但是长时间付出没有回报,那这个公司就不值得你付出。我不赞成频繁换公司,这么做至少可以说明你是一个只求回报不求付出的人。 至于薪资的问题,这个很难去评估,因为每个企业的收益相差太远。但是刚毕业的同学工作需要关注薪资+成长环境,当薪资可以满足普通生活需求后,成长环境更 为重要,就好比,给你一月5000元,或者6000元,真的不那么重要,因为这些收入在你以后的人生中基本没有影响。当然,如果你现在在大城市几年里每个 月只拿着1000元,那还是需要选择一下收入更好的公司,因为这么低的收入会严重影响你的工作学习计划,也说明你的公司不重视员工,没有能力给员工好生活 的公司,将来的发展也是有限的。 特别说明一点,IT公司与传统信息化企业不一样,IT一直是风险比较高的行业,也许你选择了一个看好的企业,也佩服老板的眼光,可能你现在需要的是与公司 同甘共苦。不要指望在刚创业的团队里拿到非常好的待遇,因为你现在就是在投资,也许几年后公司成功了,你就是功臣,不怎么出色的你也可以当上总监或副总 裁。 英语 在这个全球信息时代,英语真的是一个很重要的工具,我真的很羡慕那些学校里英语就很好的同学,好的英语能力可以更快速的了解到更多知识。当前,新的技术与知识大部份语言都是英语或翻译成英语,如果能把英语学好,可以让你人生少奋斗10年。 写技术博客 写技术博客是一种可以快速提高的方法,但是一个人能坚持每周写技术博客,那是需要付出很多代价,写博客并不是要我们写出高质量的文章才发表,我们可以分享 自己的一些小经验,也可以分享自己的体会。一样东西在你大脑里,并不表示你已经掌握了,如果你能说给别人听,或者用文字表达出来,那首先你要将这些知识点 整理清楚才好表达。我经常认为自己已经对某个问题了解了,但是在整理技术博客时发现自己的知识盲点,然后再去查找知识来补充自己的盲点,直到最后搞清楚了 才算告一段落。 有些人不喜欢分享或者害怕分享,但是在这个世界,只要不是公司机密或商业秘密,拿出来分享可以让你得到更多同行的反馈,网络上的人会给你相对真实的反馈,因为大部份人与你没有利益关系。 新人不要害怕自己分享的知识是否有技术含量,只要你认为有价值,都可以拿出来,这不仅可以给别人提供知识,也可以自己整理思路,还可以得到网友的反馈。如 果你的知识没有价值,分享出来也没有关系,如果你的文章技术含量低,怕被人鄙视,那是你这个人不敢承认现实,因为同事与朋友可能不会说你的文章很菜,就算 被鄙视了又如何,有时被人鄙视也是一种前进的动力。有人说如果几年后我进步了很多,但还让人看到我这些初学时弱智的文档,误人子弟,不好意思,Ok,那个 时候有可以完全把文档删除,其实我更喜欢放在那里品味自己成长的过程,把有误导的地方更正。 加入感兴趣的技术论坛 每个公司使用的技术与产品及环境都不太一样,也许你在公司里感觉什么东西都是别人做好了,我只是个流水线工人,我们的系统由于有严格的规范也不太出问题,自己的实践提高机会太少,那建议你加入感兴趣的技术论坛。 技术论坛上你可以看到很多人各种各样的问题与分享讨论,你也可以试着去帮别人解决问题。技术论坛可以让你进一步成长,但不要告诉我你只是会沙发、顶或接分的那种。 国内AIX专家俱乐部、loveunix都是人气很旺,里面也不缺技术大牛与无敌大菜鸟。 常看参考手册 很多系统管理员,遇到问题喜欢直接去请教别人,或是Google找结果,通过别人或Google也许问题可以解决,但是只能形成知识点,不能形成知识体系。 要全面掌握一个东西最快的方法是看产品的官方参考手册,参考手册一般是代表正规的用法或者是推荐的用法,对于小产品最好是先将参考手册全部看一遍。只有当你在看完参考手册还不懂的时候再去Google或与别人探讨,这样的方式会让你的知识更体系化。 深入分析问题原因 系统工程师一定要具备对技术问题刨根问底的想法,很多系统工程师能解决问题,但是不想去了解问题的根源。我们经常遇到问题,而且很多问题重启程序或者重启 机器就好了,有多少系统工程师会去挖掘重启就解决问题的原因。我是从事系统管理工作的,也经常看到很多人遇到系统有问题,重起一下搞定,而没有深入分析问 题产生的原因。也许在生产环境我们没有时间去分析,但是在开发环境、测试环境你是不是也经常重启解决问题。如果能在开发环境与测试环境遇到问题,这是技术 人员成长的最好机会,我们在自己的领域一定不能放过这种成长的机会,因为大部份专家都是在这种历练中出来的。 学习计算机基础,深入技术原理 有时候我们经常迷惘,感觉技术水平没有提高,感觉技术能力总是浮在表面,特别是当你发现自己算法分析、性能分析、故障诊断能力有限时,也许这是你再次需要学习计算机基础的时候,因为基础不牢,所以你的问题诊断准确率不高。每个系统工程师应该都学过计算机基础(计算机体系、操作系统、网络、数据库原理、算法等等),这些知识对很多人来说是很枯燥。在当前时代,你的计算机基础不好也能管理系统,而且效率也不低,但是当你要想成为技术牛人,计算机基础就是一道坎,因为不扎实的计算机基础知识会让你在忽悠与被忽悠中成长。 关心产品市场与商业动态 系统工程师是否需要关心产品市场与商业动态,我认为是有必要的,除非你真是技术天才,能闭关十年后横扫江湖。计算机技术发展太快,每年都有新的流行产品与技术,大公司也经常改变战略或易主。如果你想引领技术潮流,想创业,那一定要关心产品市场与商业动态。 不要去轻视任何一种职位 在IT岗位里,没有高低之分,不要去轻视任何一种岗位,有些系统工程师认为自己的成果最有价值,程序员、测试只是边缘岗位,项目经理就只会瞎指挥,不干 活,销售人员与售前人员接到定单后屁事都没有,整个项目基本上就是我一个人的成果。这种心态是最要不得的。其实你的领导并不会这么想,很多事情是你不知道 的,如客户关系就可能不是你一个人搞定的。还有最重要的一点,如果这个项目没有你参加怎么样?项目可能换成另外一个人做,也许他也能做得也不错,这就说明 你的价值或重要性并不像你想象的那么重要。举个例子: 就好比你买一台联想电 脑4000块,卖给一个没看过电脑的火星人20000块,这台电脑是最后的成果,但是否表示联想这台电脑是最重要的,可能你买一台戴尔的电脑还赚的钱更 多,也可能你只要给对方一台杂牌电脑就可以拿到20000块。在这个例子里更重要的也许是客户关系与抓住商机,而买什么样的电脑影响不大(你在项目里的地 位可能就是这台电脑的作用,没有你肯定不完整,但是很容易找到你的替代品,所以你的价值并不是最重要的)。 最后写上一句浮躁的根源: 不要把祖国当母亲,应该把祖国当自己的孩子。 本不想讲这句话的,但是现实就是如此,浮躁的人群总是对社会充满了意见。我认为所有的这些浮躁都有一个共同点,就是认为自己无法改变这个社会,改变这个社会是国家的事,是其他人的事。 小时候老师总是讲祖国是母亲,我们是花朵,但是实际上我们也不是什么花朵,我们就是郑智化歌里的那根“小小的草,风吹雨打后依然不倒”。现实的社会总是充 满着种种不平衡,但是浮躁并不能解决问题。有时总在想祖国并不像我的母亲,她更像是我的孩子,她还很小,经历过很多坎坷,我们经常感觉自家的孩子比不上别 人的孩子的某个方面,于是对孩子多加责骂,也可能会让她花一个暑假的时间去补习。小孩子有一些成绩后也会骄傲,有时还会欺骗,我们不能容忍的是她的恶意谎 言,但是她还没有到无药可救的程度,她依然还在成长。我们经常拿孩子与别人的孩子对比,而且总是发现别人孩子更好的一面,但是你是否希望与别人交换孩子 呢,除了感情外你是否了解别人孩子的全部,我们需要更多的面对现实,应该在孩子成长的时候及时指出她的缺点,她不可能什么都是优秀的,所以我们应该尽自己 的能力让她更好一些。你不太可能改变母亲,但是你的行动会影响孩子,你抛弃孩子,你真正的孩子将来可能也会抛弃你,所以说祖国可能并不像母亲,更像孩子, 如果你把祖国当孩子,也许是另一种人生价值。 |
今天用户拿了一个REDHAT9环境下的oracle9的数据文件要求取出其中的数据。因为原服务器主板损坏,只能重新搭建redhat9的环境,然后将整个oracle目录拷贝过去。
时下找一台能安装redhat9操作系统的机器还真不容易,最后还是通过虚拟机解决。安装完操作系统、配置好一些参数,Oracle目录拷贝过去后就尝试启动数据库。错误就出来了
Enter user-name: /as sysdba
SID: error while loading shared libraries: libodm9.so: cannot open shared object file: No such file or directory
ERROR:
ORA-12547: TNS:lost contact
几经baidugoogle终于解决。
方法:打开/etc/ld.so.conf 增加一下内容/opt/ora9/product/9.2/lib ,然后运行ldconfig。
ERROR:
ORA-01017: Message 1017 not found; No message file for product=RDBMS,
facility=ORA
,之前正常,突然变成这样,这是为什么。
-bash-3.2$ uname -a
Linux jw 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
oracle version:11g
今天一用户来电:数据库又连不上了,并且不能再服务器上用sysdba登录,有时候好不容易登录上了想停掉数据库就hang住了。
数据库环境比较简单:redhat as5+64bit oracle 10g单机环境
日志中错误信息:
ORA-16038: 日志 3 序列号 855无法归档
ORA-19809: 超出了恢复文件数的限制
ORA-00312: 联机日志1 线程 1:......REDO03.LOG'
中国地震台网测定,今日中午12时07分,安徽省安庆市市辖区、怀宁县交界处发生4.8级地震,震源深度9公里。
不幸的是几十年地震就发生在我的家乡。庆幸的是不严重,我家离震中还有几十里地。
好担心呀!
希望地震早点离去,余震不再发生!
1)建立临时UNDO表空间
CREATE UNDO TABLESPACE undotbs001 DATAFILE
'/home/oracle/oradata/jw/undo001.dbf' SIZE 500M ;
2)将系统UNDO表空间修改为前面新建的临时UNDO表空间
alter system set undo_tablespace=undotbs001 scope=both;
3)删除undo表空间及其数据文件
drop tablespace undotbs including contents and datafiles;
4)重建临时表空间
CREATE UNDO TABLESPACE undotbs DATAFILE
'/home/oracle/oradata/jw/undo02.dbf' SIZE 300M ;
5)重新将系统UNDO表空间修改为undotbs
alter system set undo_tablespace=undotbs scope=both;
6)重启数据库
reboot database
一哥们由于误操作,在pl/sql developer中直接将公司测试数据库服务器中DBA 角色给删除了,导致system用户建立普通用户的权限丢失,只好协助其重建,通过晚上查看资料,过程如下:
-- Create the role
create role DBA;
-- Grant/Revoke object privileges
grant execute on DBMS_DBVERIFY to DBA;
grant execute on DBMS_DEFER_QUERY to DBA;
grant execute on DBMS_DEFER_SYS to DBA;
grant execute on DBMS_FEATURE_USAGE to DBA;
grant execute on DBMS_FLASHBACK to DBA;
grant execute on DBMS_MONITOR to DBA;
grant execute on DBMS_RESUMABLE to DBA;
grant execute on DBMS_SERVER_ALERT to DBA;
grant execute on DBMS_SERVER_TRACE to DBA;
grant execute on DBMS_SERVICE to DBA;
grant execute on DBMS_STORAGE_MAP to DBA;
grant execute on DBMS_UADV_ARR to DBA;
grant execute on DBMS_UNDO_ADV to DBA;
grant execute on DBMS_WORKLOAD_REPOSITORY to DBA;
grant execute on LOAD_UNDO_STAT to DBA;
grant select, insert, update, delete, alter on MAP_OBJECT to DBA;
grant execute on OUTLN_EDIT_PKG to DBA;
grant execute on OUTLN_PKG to DBA;
grant execute on RESET_UNDO_STAT to DBA;
-- Grant/Revoke role privileges
grant delete_catalog_role to DBA with admin option;
grant execute_catalog_role to DBA with admin option;
grant exp_full_database to DBA;
grant gather_system_statistics to DBA;
grant imp_full_database to DBA;
grant java_admin to DBA;
grant java_deploy to DBA;
grant olap_dba to DBA;
grant scheduler_admin to DBA with admin option;
grant select_catalog_role to DBA with admin option;
grant wm_admin_role to DBA;
grant xdbadmin to DBA;
-- Grant/Revoke system privileges
grant administer any sql tuning set to DBA with admin option;
grant administer database trigger to DBA with admin option;
grant administer resource manager to DBA with admin option;
grant administer sql tuning set to DBA with admin option;
grant advisor to DBA with admin option;
grant alter any cluster to DBA with admin option;
grant alter any dimension to DBA with admin option;
grant alter any evaluation context to DBA with admin option;
grant alter any index to DBA with admin option;
grant alter any indextype to DBA with admin option;
grant alter any library to DBA with admin option;
grant alter any materialized view to DBA with admin option;
grant alter any outline to DBA with admin option;
grant alter any procedure to DBA with admin option;
grant alter any role to DBA with admin option;
grant alter any rule to DBA with admin option;
grant alter any rule set to DBA with admin option;
grant alter any sequence to DBA with admin option;
grant alter any sql profile to DBA with admin option;
grant alter any table to DBA with admin option;
grant alter any trigger to DBA with admin option;
grant alter any type to DBA with admin option;
grant alter database to DBA with admin option;
grant alter profile to DBA with admin option;
grant alter resource cost to DBA with admin option;
grant alter rollback segment to DBA with admin option;
grant alter session to DBA with admin option;
grant alter system to DBA with admin option;
grant alter tablespace to DBA with admin option;
grant alter user to DBA with admin option;
grant analyze any to DBA with admin option;
grant analyze any dictionary to DBA with admin option;
grant audit any to DBA with admin option;
grant audit system to DBA with admin option;
grant backup any table to DBA with admin option;
grant become user to DBA with admin option;
grant comment any table to DBA with admin option;
grant create any cluster to DBA with admin option;
grant create any context to DBA with admin option;
grant create any dimension to DBA with admin option;
grant create any directory to DBA with admin option;
grant create any evaluation context to DBA with admin option;
grant create any index to DBA with admin option;
grant create any indextype to DBA with admin option;
grant create any job to DBA with admin option;
grant create any library to DBA with admin option;
grant create any materialized view to DBA with admin option;
grant create any operator to DBA with admin option;
grant create any outline to DBA with admin option;
grant create any procedure to DBA with admin option;
grant create any rule to DBA with admin option;
grant create any rule set to DBA with admin option;
grant create any sequence to DBA with admin option;
grant create any sql profile to DBA with admin option;
grant create any synonym to DBA with admin option;
grant create any table to DBA with admin option;
grant create any trigger to DBA with admin option;
grant create any type to DBA with admin option;
grant create any view to DBA with admin option;
grant create cluster to DBA with admin option;
grant create database link to DBA with admin option;
grant create dimension to DBA with admin option;
grant create evaluation context to DBA with admin option;
grant create indextype to DBA with admin option;
grant create job to DBA with admin option;
grant create library to DBA with admin option;
grant create materialized view to DBA with admin option;
grant create operator to DBA with admin option;
grant create procedure to DBA with admin option;
grant create profile to DBA with admin option;
grant create public database link to DBA with admin option;
grant create public synonym to DBA with admin option;
grant create role to DBA with admin option;
grant create rollback segment to DBA with admin option;
grant create rule to DBA with admin option;
grant create rule set to DBA with admin option;
grant create sequence to DBA with admin option;
grant create session to DBA with admin option;
grant create synonym to DBA with admin option;
grant create table to DBA with admin option;
grant create tablespace to DBA with admin option;
grant create trigger to DBA with admin option;
grant create type to DBA with admin option;
grant create user to DBA with admin option;
grant create view to DBA with admin option;
grant debug any procedure to DBA with admin option;
grant debug connect session to DBA with admin option;
grant delete any table to DBA with admin option;
grant dequeue any queue to DBA with admin option;
grant drop any cluster to DBA with admin option;
某学校的业务系统在寒假结束后使用的时候发现sqlplus不能连接数据库,服务器上产生的现象如下:
[root@yjsgl ~]# su - oracle
[oracle@yjsgl ~]$ sqlplus "/as sysdba"
然后数据库hang住了。
客户数据库环境:as5+oracle 10.2.0.1
[root@yjsgl ~]# uptime
16:26:54 up 334 days, 48 min, 2 users, load average: 0.02, 0.23, 14.68
[oracle@yjsgl databak]$ top
top - 15:41:08 up 334 days, 2 min, 3 users, load average: 169.09, 168.61, 167.71
Tasks: 780 total, 170 running, 609 sleeping, 1 stopped, 0 zombie
Cpu(s): 34.2%us, 65.8%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 12474924k total, 12092092k used, 382832k free, 236180k buffers
Swap: 12517360k total, 0k used, 12517360k free, 10725280k cached
所有资源完全占用。
经查是遇到Oracle uptime bug了.
查看全文tongyi =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.199.6)(PORT = 1521))
)
(CONNECT_DATA =
(SERVER = SHARED)
(SERVICE_NAME = aa)
)
)
修改为:
tongyi =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.199.6)(PORT = 1521))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = aa)






