PIXNET Logo登入

DanBrother的部落格

跳到主文

歡迎光臨DanBrother在痞客邦的小天地. 部落格文章同步於=> http://blog.xuite.net/gem083/dba

部落格全站分類:數位生活

  • 相簿
  • 部落格
  • 留言
  • 名片
  • 12月 17 週二 201918:13
  • Multiple Log File Viewer (Linux Bash)

cat log_file_viewer.sh
>>
#################################
# Multiple Log File Viewer (Linux Bash)
# Programmed By DanBrother
#################################
#!/bin/bash
function pause(){
   read -p "$*"
}
(繼續閱讀...)
文章標籤

DanBrother 發表在 痞客邦 留言(0) 人氣(6)

  • 個人分類:Linux
▲top
  • 6月 10 週一 201917:41
  • How to Log-In To A Linux Server With An SSH Private Key On Windows

How to Log-In To A Linux Server With An SSH Private Key On Windows:
How to Log-In To A Linux Server With An SSH Private Key On Windows.pdf
(繼續閱讀...)
文章標籤

DanBrother 發表在 痞客邦 留言(0) 人氣(1)

  • 個人分類:Linux
▲top
  • 6月 05 週三 201918:28
  • How to Change Network Interface Name on Ubuntu / Debian

How to Change Network Interface Name on Ubuntu / Debian
>>
How to Change Network Interface Name on Ubuntu  Debian.pdf

https://1drv.ms/b/s!AiM4lZDi7mITgZUEe71K7ogMzKr7dw?e=HDahVB
(繼續閱讀...)
文章標籤

DanBrother 發表在 痞客邦 留言(0) 人氣(7)

  • 個人分類:Linux
▲top
  • 10月 30 週二 201815:08
  • Bash script for searching all file contents containing specific text within a directory

#################################################################
# To Generate a lottery text randomly within 10 different files
#!/bin/bash
#################################################################
file_dir='/backup/files'
array=(file_1 file_2 file_3 file_4 file_5 file_6 file_7 file_8 file_9 file_10)

my_lottery1=$((RANDOM%${#array[@]}))
my_lottery2=$((RANDOM%${#array[@]}))

(繼續閱讀...)
文章標籤

DanBrother 發表在 痞客邦 留言(0) 人氣(4)

  • 個人分類:Linux
▲top
  • 10月 07 週三 201517:57
  • 檔案編碼轉換程式-iconv (Linux)

-- 查iconv之版本
$ iconv -V
iconv (GNU libc) 2.5
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Ulrich Drepper.
(繼續閱讀...)
文章標籤

DanBrother 發表在 痞客邦 留言(0) 人氣(129)

  • 個人分類:Linux
▲top
  • 4月 15 週三 201512:10
  • How to Rescan SCSI Disk Without Reboot in Linux?

How to Rescan SCSI Disk Without Reboot in Linux?
[root@test ~]# ls -l /sys/class/scsi_host
total 0
drwxr-xr-x 2 root root 0 Apr 15 11:00 host0
drwxr-xr-x 2 root root 0 Apr 15 11:00 host1
drwxr-xr-x 2 root root 0 Apr 15 11:00 host2
drwxr-xr-x 2 root root 0 Apr 15 11:00 host3
drwxr-xr-x 2 root root 0 Apr 15 11:00 host4
(繼續閱讀...)
文章標籤

DanBrother 發表在 痞客邦 留言(0) 人氣(53)

  • 個人分類:Linux
▲top
  • 3月 24 週二 201518:21
  • Fast switch to BDUMP (Background Dump) Directory using Linux Function in Oracle RAC environment

Fast switch to BDUMP (Background Dump or Diag Trace) Directory using Linux Function in Oracle RAC environment

/shared_dir/script/dba_functions
>>
# Switch to bdump directory
function tobdump {
lower_sid=$(echo "$ORACLE_UNQNAME" | tr '[:upper:]' '[:lower:]')
cd $ORACLE_BASE/diag/rdbms/$lower_sid/$ORACLE_SID/trace
pwd
}
(繼續閱讀...)
文章標籤

DanBrother 發表在 痞客邦 留言(0) 人氣(8)

  • 個人分類:Linux
▲top
  • 3月 05 週四 201516:36
  • Linux Server Login Alert Script

Linux Server Login Alert Script
The following script demonstates a way to send out an alert email when someone logs in the Linux Server.
vi /script/login_alert.sh

#!/bin/bash
host=`hostname`
user=`whoami`
ip="$(echo $SSH_CLIENT|awk '{print $1}')"
mkdir -p ~/ServerLoginTrace
echo 'ALERT - ' $user ' IP:'$ip ' Shell Access' $host > ~/ServerLoginTrace/alert_message.txt
pinky >> ~/ServerLoginTrace/alert_message.txt
chmod 600 ~/ServerLoginTrace/alert_message.txt
mutt -s "Login Monitor from $host" -- danbrother@pixnet.net < ~/ServerLoginTrace/alert_message.txt
(繼續閱讀...)
文章標籤

DanBrother 發表在 痞客邦 留言(0) 人氣(24)

  • 個人分類:Linux
▲top
  • 6月 26 週四 201412:10
  • Send Email using Mutt Program In Linux

Send Email using Mutt Program In Linux
Step 1. Install ssmtp program to deliver an email from a server to a configured mailhub.
(繼續閱讀...)
文章標籤

DanBrother 發表在 痞客邦 留言(0) 人氣(64)

  • 個人分類:Linux
▲top
  • 6月 17 週二 201410:17
  • How to change (rename) Linux hostname without rebooting the machine

Here are the steps to change (rename) Linux hostname without rebooting:
1. edit /etc/sysconfig/network as follows:  (* change danbrother to whatever your new hostname would be)
    HOSTNAME=danbrother
2. edit /etc/hosts as follows:
    192.168.100.101 danbrother
3. hostname danbrother
4. service network restart
 
(繼續閱讀...)
文章標籤

DanBrother 發表在 痞客邦 留言(0) 人氣(12)

  • 個人分類:Linux
▲top
12...5»

廣告

個人資訊

DanBrother
暱稱:
DanBrother
分類:
數位生活
好友:
累積中
地區:

熱門文章

  • (49,256)Excel 2007 中文字顯示亂碼之修復步驟
  • (136)crsctl command usage
  • (83)ORA-15306: ASM Password File Update Failed On At Last One Node
  • (542)Workaround for NI cryptographic checksum mismatch error: 12599 (TNS-12599)
  • (1,847)FRM-91111 and FRM-10039 When Starting Oracle Forms Builder 11g on Linux
  • (21)PL/SQL BULK COLLECT Using LIMIT Clause Practice
  • (3,644)[OHS-2171] NZ Library Error: SSL negotiation error [Hint: too restrictive SSLCipherSuite]
  • (41)OPatch failed with error code 73 (Solved)
  • (137)Oracle HTTP Server 12c (12.1.3) standalone installation Procedures on Linux
  • (784)如何讓樞紐分析表區分大小寫

文章分類

  • Android (1)
  • Java (1)
  • MongoDB (1)
  • MariaDB (7)
  • Python (10)
  • HTML (1)
  • ORDS (1)
  • Apache Tomcat (1)
  • Oracle Streams (1)
  • Javascript (1)
  • Oracle Data Guard (2)
  • Oracle VirtualBox (3)
  • Grid Infrastructure (4)
  • Oracle SQL Tuning (6)
  • OEM11g / 12c (28)
  • IT Links (1)
  • 心靈饗宴 (161)
  • Oracle Clusterware (5)
  • ORACLE RAC (21)
  • Oracle ASM (18)
  • Oracle Export/Import (10)
  • MySQL (22)
  • Windows Series (18)
  • Oracle HTTP Server (8)
  • Linux (49)
  • Microsoft Office (6)
  • SQL SERVER (19)
  • Install Apache & PHP (2)
  • Oracle in General (111)
  • RMAN (15)
  • SQL / PL/SQL (30)
  • 未分類文章 (1)

最新文章

  • MySQL Array Simulation in Stored Procedure
  • Extracts, orders, and then prints grants for MySQL user accounts (pt-show-grants)
  • MySQL Stored Procedure - Nested Loop Example
  • Metabase H2 DB Migration to MySQL 5.7
  • Steps for Upgrading Percona-Toolkit to the Latest Version
  • MySQL Slave - Skip Replication for A Particular Table
  • MySQL - Export & Import Table Data Based on the SQL Query
  • MySQL Table Fragmentation Detection and De-fragmentation Implementation
  • Multiple Log File Viewer (Linux Bash)
  • Solving MySQL slave lag Issues

動態訂閱

文章精選

文章搜尋

誰來我家

參觀人氣

  • 本日人氣:
  • 累積人氣:

留言板