觀察Oracle資料庫效能,Oracle內建的awr 功能為我們提供了一個近乎完美的解決方案,通過awr特性我們可以隨時從資料庫提取awr報告。不過awrrpt.sql指令碼執行時需要我們提供一些互動資訊,因此可以將其整合到shell指令碼中來實現自動產生指定時段的awr報告並發送給相關人員。本文即是描述linux shell指令碼來實現此功能。 1、shell指令碼robin@SZDB:~/dba_scripts/custom/awr> more
6.3 啟動shell環境init_post函數來自同一個檔案的814行: 811/* This is a non __init function. Force it to be noinline otherwise gcc 812 * makes it inline to init() and it becomes part of init.text section 813 */ 814static noinline int init_post(void) 815
Linux Shell指令碼編程--scp命令詳解命令:scp不同的Linux之間copy檔案常用有3種方法:第一種就是ftp,也就是其中一台Linux安裝ftp Server,這樣可以另外一台使用ftp的client程式來進行檔案的copy。第二種方法就是採用samba服務,類似Windows檔案copy 的方式來操作,比較簡潔方便。第三種就是利用scp命令來進行檔案複製。
Berkeley DB XML Shell常用命令使用執行個體作者:gobitan(雨水) 日期:2007-04-04 轉載請註明出處http://blog.csdn.net/gobitan 建立容器createContainer book 向容器中加入文檔(可以在一個容器中放入多個文檔,但每次只能放入一個文檔)putDocument book1.xml '<bookList> <book> <name>Berkeley DB XML
一個簡單的例子:#!/bin/bashecho "What's your favourite star?"select var in "Leehom" "Vae" "Jay" "Jolin"; dobreak;doneecho "You have selected $var"運行結果:root@ubuntu:~# ./star.shWhat's your favourite star?1) Leehom2) Vae3) Jay4) Jolin#? 1You have selected
1 if #!/bin/bashecho "Please chose your favourite fruit:";select fruit in "apple" "orange" "banana" "none";dobreak;done;if [ $fruit == "apple" ] then echo "you like apple!"elif [ $fruit == "orange" ] then echo "you like orange!"elif [ $fruit ==