一)print_manifest
做为管理员,我们要非常熟悉了解系统。包括:系统的硬件、软件、系统的基本信息和一些配置。
我觉得print_manifest是一个很好的命令。
用print_manifest产生的文件是:/var/opt/ignite/local/manifest
manifest文件包括12部分:
1. system infomation
2.system hardware
3.storage devices
4.i/o interfaces
5.installed software
6.LVM file system configuration
7.JFS file system configuration
8.disk layout
9.file system layout
10.swap info
11.kernel configuration
12.system infomation
system infomation:操作系统安装的时间、系列号、订单号
system hardware:机器的型号、内存大小、处理器个数、操作系统位数等
storage devices:存储设备的信息
i/o interface:I/O接口信息,如:接口类型,H/W路径等
installed software:已经安装的软件
LVM file system configuration:系统用lvm file system
JFS file system configuration:系统用JFS
disk layout:磁盘配置
file system layout:文件系统分布
swap info:交换区信息
kernel configuration:kernel配置
system infomati..
找到了一个linux下ping 一IP地址段内网络连通性的脚本。
假如脚本名称为pingip.sh 使用方式为:
#./pingip.sh 1 255
表示ping 192.168.0.1----255段内的设备。
#!/bin/bash
#
# Purpose: This program uses for detect a range of IP online or not
# print OK if online, otherwise print Failed
#
# Written by Dooit, dooit.lee@gmail.com
# Tue Feb 22, 2011
#
if [ $# -lt 2 -o $1 -gt $2 ]; then
echo "Usage: `basename $0` <begin> <end>"
exit 1
fi
echo "This program uses for detecting a range of IPs online or not"
echo "NOTE: This program only ping for 192.168.0.0 network"
network="192.168.0."
# ping each ip in sequence between $1 and $2
for ip in $(seq $1 $2)
do
# sed and awk ping situation if you want
if ping -c 1 ${network}${ip} >& /dev/null
then
echo "${network}${ip}: OK"
else
echo "${network}${ip}: Failed"
fi
done
有时候远程维护设备,不是很清楚这个linux操作系统下的主机的硬件和机器型号信息,跑到机房去查看,觉得不便。通过度娘找的了这篇文章,确实不错,转载过来。感谢原作者。来源http://www.2cto.com/os/201204/127860.html
查看CPU信息(型号)
# cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
8 Intel(R) Xeon(R) CPU E5410 @ 2.33GHz
(看到有8个逻辑CPU, 也知道了CPU型号)
www.2cto.com
# cat /proc/cpuinfo | grep physical | uniq -c
4 physical id : 0
4 physical id : 1
(说明实际上是两颗4核的CPU)
# getconf LONG_BIT
32
(说明当前CPU运行在32bit模式下, 但不代表CPU不支持64bit)
# cat /proc/cpuinfo | grep flags | grep ' lm ' | wc -l
8
(结果大于0, 说明支持64bit计算. lm指long mode, 支持lm则是64bit)
再完整看cpu详细信息, 不过大部分我们都不关心而已.
# dmidecode | grep 'Processor Information'
查看内存信息
# cat /proc/meminfo
www.2cto.com
# uname -a
Linux euis1 2.6.9-55.ELsmp #1 SMP Fri Apr 20 17:03:35 EDT 2007 i686 i686 i386 GNU/Linux
(查看当前操作系统内核信息)
&n..
1、疔疮先出血,内毒以寒泻.
2、眩晕者无痰不作,消渴者无火不生.
3、肥人眩晕少气多痰,瘦人眩晕少血多火.
4、通则不痛,痛则不通.
5、痢、痢无补法。
6、通阳不在温,而在利小便。
7、养阴不在血,而在津与汗。
8、疹是太阴风热。
9、癍是阳明火毒。
10、温邪上受,首先犯肺,逆传心胞。
11、巅顶之上,唯风可到。
12、温病凭脉伤寒凭症。
13、其在皮者,汗而发之。
14、初病在经,久病在络。
15、不懂何经何络,开口动手便错。
16、金水相生,子盗母气。
17、邪之所凑,其气必虚。
18、亢则害,承乃制。
19、暴聋属实,久聋属虚。
20、欲求南风,先开北窗。
21、肠痈下不厌早,肠癖补不厌迟.
22、上焦如羽,非轻不举.
23、无水舟停,增水行舟。
24、风为百病之长,头为诸阳之会。
24、阳虚则外寒,阴盛则内寒。
25、人身不过表里,气血不过虚实。
26、通邪三法汗、吐、下。
27、寒淫于内,治宜甘热。
28、热淫于内,治宜咸寒。
29、面肿为风,脚肿为水。
30、导龙入海,引火归渊。
31、苔黄腻热在肝胆,苔黄燥热在脾胃。
32、月满勿补,月亏勿泻。
33、肝胆之症,以..
犁头草,又名紫金锁,紫花地丁,小甜水茄.<<植物名实图考>>.三角草,犁头尖,铬铁草,<<江西民间草药>>.也可查<<中国中药大全>>.
犁头草洗净加点白糖捣烂敷上无名肿毒上,破口流脓尽二天痊愈。
如果发炎发热加犁头草(鲜)两把捣烂搾汁服用效果更佳.
Title:
How I Approach Tuning a SQL Statement
Version:
1
Created on:
January 30, 2009 1:30 AM by Monica - Moderator
Last Modified:
January 30, 2009 1:30 AM by Monica - Moderator
Viewed:
2887 times
Important Note: This document has been authored by an Oracle customer
Submitted by: William Schott
Principal DBA
DTE Energy
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
While application knowledge and experience is helpful, I've got a methodical approach I use when asked to tune a SQL statement.
..
Jay Stanley, Sr. Staff Consultant
In the Oracle RDBMS, one of the most frequently misunderstood concepts I see in doing remote database administration, is the role and importance of redo. From the Oracle 10G Concepts manual, the definition of redo is:
The primary function of the redo log is to record all changes made to data. If a failure prevents modified data from being permanently written to the datafiles, then the changes can be obtained from the redo log, so work is never lost.
To me, that’s not an entirely good explanation.
It’s easier to understand redo if we look at the history of a transaction. A transaction here refers to a session that issues a set of SQL statements that do SQL inserts, updates and/or deletes, and then issues a ‘commit’ statement.
The first thing that happens while the inserts/updates/deletes are happening, is that there is a record of every datafile block change made, and these are inserted into a memory structure cal..
by Roger Schrag
Database Specialists, Inc.
About Database Specialists, Inc.
Database Specialists, Inc. provides remote DBA services and onsite database support for your mission critical Oracle systems. Since 1995, we have been providing Oracle database consulting in Solaris, HP-UX, Linux, AIX, and Windows environments. We are DBAs, speakers, educators, and authors. Our team is continually recognized by Oracle, at national conferences and by leading trade publications. Learn more about our remote DBA, database tuning, and consulting services. Or, call us at 415-344-0500 or 888-648-0500.
Introduction
In this paper we’ll discuss an overview of the EXPLAIN PLAN and TKPROF functions built into the Oracle 8i server and learn how developers and DBAs use these tools to get the best performance out of their applications. We’ll look at how to invoke these tools both from the command line and from graphical development tools. In the ..
对牙龈炎、牙周炎、风火牙疼、虫牙、烂牙、智齿牙痛均有效,一次肿痛轻,最多二次愈,药物成本低,只花几元钱,希望你不管是如何得到本方,能好好珍惜、收藏,以备急用。
药物组方:樟脑30克 龙骨15克 透骨草15克 甘草15克(可按同比例增加或减少药量)
使用方法:上药研细浸入高度白酒中用瓶装密封备用(酒浸没药后高出药的高度的一半即可,药物的量的多少与酒的多少可以自行按比例加减),用时摇匀药酒,然后倒出一小杯,点燃酒,如酒度数低点不燃可先加热白酒后再点燃,待火自行灭燃后,酒稍冷却即口含药酒汁30分钟左右(浸泡痛牙)吐掉,最好晚饭后应用(药后不可吃东西,否则易损牙床,一次愈)------药汁不可吞下,含浸后吐掉!!!
★★★补充要点:含酒时务必令药液完全浸泡痛牙,否则效差。
查看和了解linux服务器所开放和使用的端口是维护工作中比较重要的工作。(以redhat server 5 为例)
1、nmap命令
# nmap -sT -O localhost
Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2010-01-22 08:50 CST
Interesting ports on syapp1 (127.0.0.1):
Not shown: 1667 closed ports
PORT STATE SERVICE
21/tcp open ftp
25/tcp open smtp
80/tcp open http
111/tcp open rpcbind
513/tcp open login
514/tcp open shell
631/tcp open ipp
2049/tcp open nfs
3306/tcp open mysql
5001/tcp open commplex-link
5003/tcp open filemaker
8009/tcp open ajp13
8080/tcp open http-proxy
No exact OS matches for host (If you know what OS is running on it, see http://www.insecure.org/cgi-bin/nmap-submit.cgi).
TCP/IP fingerprint:
SInfo(V=4.11%P=x86_64-redhat-linux-gnu%D=1/22%Tm=4B58F65C%O=21%C=1)
TSeq(Class=RI%gcd=1%SI=41495C%IPID=Z%TS=1000HZ)
TSeq(Class=RI%gcd..
2003年9月11日,是中国人传统的中秋佳节,当夜孤独一人从辽西某车站踏上驶向京城的列车,迎来第二天的人生中第一次国外认证考试。火车疾驰,窗外皓月当空,轨道两边的景物也变得婆娑陆离。想起离家千里在东北工作,5年后还需考证,为了跳槽,心情不免黯然。在车上即兴写诗一首:
清风吹处柳丝长
月影凝重透车窗
蟾宫嫦娥空舞袖
只为别情暗恨伤
已近秋时事偏忙
几多慷慨须思量
一夜无眠行千里
京城考事何须茫
冯唐尚有青云志
吾辈怎肯形骸浪
今天翻了出来。以作纪念和勉励吧!
当写下这个相当抽象的题目,却又面对如此社会化的现实,我犹豫过如何下笔来阐述这个话题。记得小时候,一辈子没有读书的农村奶奶告诫我们孙儿孙女最多的是“书中自有黄金屋,书中自有钟粟,书中自有颜如玉”,要我们好好读书,做到“鲤鱼跳龙门”,离开那祖辈耕耘的农村,做个城里人。在她的严格要求下,我们六个做孙辈的有四个获得了在当时我们家乡比较高的学历,离开了农村。回想起来,也是奶奶的话起到了很大的影响力--------知识改变了我们的命运。
命运是什么?我们有很多人在不停的思考这个问题。命,也许是上天给我们不能改变的,如我们的家庭出身---来自城市还是农村,个人的身材的高矮、长相的好坏等;运,就是我们在人生中面临的那一次次的机遇或者机会,不管是它本应该是属于你的还是明天的曙光也好。有时候,单纯的把命运作为一个单纯词来看,真的意义不大,如果从复合词的角度来思考,命和运的关系不是那么简单。
四十年多年前,家境贫寒的奶奶实在无法同时供养二个儿子和一个女儿的学习,只能让天资聪慧的大伯辍学,习武行医,尽..
待2009年最后一天的下班的时刻来临,无形中长吁一口气--------繁重的一年终于过去了,尽管明天的来临就是在床上睁眼醒来的瞬间,但却是新年的开始啊!
与单位的3个老乡包了一辆回老家的小车,司机是个到长沙给老板送货的邵阳人,返邵拉点私活,赚点外快。感觉现在的人真是聪明-------公事私办,不知道他老板知道后如何作想。车在潭邵高速路上飞驰,夜色深沉,我们坐车的几个昏昏沉沉,终究在单位忙了一年啊,在回家的路上好好的小憩一下。司机为了打发睡意,不停地的听着那几首似乎熟悉的老歌。在高速路上,打瞌睡是十分危险的动作,有点音乐能醒神。偶尔我们醒来,提醒他不要超速,车速一定要控制在120公里/小时内。我们打趣,师傅,今天我们的小命都在你的手里握着呢。
平安到达到邵阳市区已经是晚上8点多了,我又包了一个的士回家。回家的油路已经被乡里的大卡车蹂躏得坑坑洼洼,的士让人颠覆得难受。颠簸中,手机来个短消息,是曾经的领导发的新年祝福,看得我眼泪差点掉下来(内容省去[im..