Chinaunix首页 | 论坛 | 博客
  • 博客访问: 54803
  • 博文数量: 56
  • 博客积分: 1410
  • 博客等级: 上尉
  • 技术积分: 600
  • 用 户 组: 普通用户
  • 注册时间: 2010-10-15 09:38
文章分类
文章存档

2011年(8)

2010年(48)

我的朋友

分类: Oracle

2010-11-03 17:24:06

How to do Troubleshooting

IT Technology is a technology
All sciences and technology belong to Logic
All of us have logic think ability.
Differet Roles of Human Beings in IT
Researcher    ---  Developer ---  Administrator --- User
Troubleshooting is the top ability of an administrator!
My view about Software Industry:
Open Source is more and more strong;
Open Source is better in serer side than in desktop side;
More and more administrator jobs are required;
GUI  && CML
Command Line Interface
STDIN                      ----       Program   ----    STDOUT
Configuration Files        ----       Software  ----    Log files
Environment Variables     ----       Process ----     STDERR
software talks to software
Program1        Protocol           Program2
Software1    ------------------    Software2
Process1        tcp/ip             Process2
TCP/IP             &&           IPC
 
                              SHM:Shared Memory
TCP   UDP                      MSG:Message Queue
  IP                          SEM:Semaphore
  
  
  
  
  Configuration files:
  Text file only
  
  Text file -- Binary file
  
  Binary file
  
  
  
  Environment Variables:环境变量表,在内存中有一个地址块,存放环境变量表。
  
  Every process can modify /add/delete its environment variables
  
  Child process can inherit the variables from parent process
  
  Parent process must "export" the Environment Variables to let child process to inherit them
   
  Child process cannot modify the Environment Variables of parent process
  
  eg:
  ORACLE 
  .bash_profile
  
  
  
  Log Files:
  
  Text file only.
  
  Binary file
  
  $ cat /dev/null >mylogfile    清空再操作
  
  $ tail -f mylogfile   查看日志尾部信息
  
  
  从配置文件中查找日志文件的位置
  
  cat  error_log |grep WARN
  
  
  How to Master a Software?
  
  know its architecture
  know where we can get its configuration files
  know where we can get its log files
  know how to modify its configuration files
  know how to read and analyze its logfiles
  
  
  
The process of Doing Trouble Shoot
step 1,Read the error message on the screen:STDOUT/STDERR
step 2,know where to get the log files
step 3,know where to get the corresponding blocks in the log files
step 4,use your HEAD to think
step 5,Get an Conclusion,and try it
step 6,Repeat step 4 and step 5;   
  
  
  
  
  
  
   
阅读(391) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~