Thinking Out Loud

Linux

Search and Replace using sed

sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config
sed -i 's/appu\.//g' /tmp/metadata.sql
sed -i 's/\"NEWAPP"\.//g' /tmp/metadata.sql

Find 1 directory below admin, directories adump, bdump, cdump, udump
File extensions: .aud, .trc, .trm
File size: zero byte
File name: sbtio.log
Print files deleted older than 1 day.

find /u01/app/oracle/admin/*/[abcu]dump -type f \( -name "*\.aud” -o -name "*\.tr[cm]" -o -size 0c -o -name "sbtio.log” \) -mtime +1 -print -exec rm {} \;

Find and delete files NOT new than the provided file

find . \( ! -newer db01_ora_1937_2.aud \) -print -exec rm {} \;

service network restart

yum list dnsmasq
yum install dnsmasq
yum install oracle-rdbms-server=11gR2-preinstall
yum list installed dnsmasq
yum remove dnsmasq
yum clean all

/sbin/chkconfig dnsmasq on
/sbin/chkconfig dnsmasq –list
/sbin/chkconfig dnsmasq on –level 6

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: