Search This Blog

Total Pageviews

Wednesday, 19 January 2011

How to format pen drive in Linux ?

command is

mkfs.vfat -I -n 'USB-name' /dev/sdb



apt-amd-02:/home/anujs/Downloads # umount /dev/sdb1

apt-amd-02:/home/anujs/Downloads # mkfs.vfat -I -n 'anuj' /dev/sdb1
mkfs.vfat 3.0.9 (31 Jan 2010)

now your drive will be

df -h


/dev/sdb1 7.6G 4.0K 7.6G 1% /media/anuj



List of these commands are as follows-

mkfs.bfs
mkfs.ext3
mkfs.ext4dev
mkfs.msdos
mkfs.reiserfs
mkfs.ext2
mkfs.ext4
mkfs.minix
mkfs.ntfs
mkfs.vfat

Tuesday, 11 January 2011

Oracle RPM Installation

apt-amd-02:/home/anujs/Downloads/Oracle_Linux_rpm # cat rpm_install.txt

13 find /media/cdrom -name RPMS
14 cd /media/cdrom/Enterprise/RPMS
15 ls -lt
16 rpm -Uvh setarch-1*
17 rpm -Uvh compat-libstdc++-33-3*
18 rpm -Uvh make-3*
19 rpm -Uvh glibc-2*
20 rpm -Uvh openmotif-2*
21 rpm -Uvh compat-db-4*
22 rpm -Uvh gcc-3*
23 rpm -Uvh libaio-0*
24 rpm -Uvh rsh-*
25 rpm -Uvh compat-gcc-32-3*
26 rpm -Uvh compat-gcc-32-c++-3*
27 rpm -Uvh compat-gcc-3*
28 rpm -Uvh openmotif21*
29 rpm -Uvh sysstat*
30 rpm -Uvh compat-gcc-32-3*
31 rpm -Uvh glibc-devel-2.3.4-2.43.i386.rpm
32 rpm -Uvh glibc-*
33 rpm -Uvh compat-gcc-32-c++-3*
34 uname -P
35 uname -p
36 rpm -ivh gcc-3.4.6-3.1.i386.rpm
37 pwd
38 rpm -ivh compat-gcc-32-c++-3*
39 rpm -ivh compat-gcc-32-3.2.3-47.3.i386.rpm
40 rpm -ivh glibc-devel-2.3.4-2.43.i386.rpm
41 rpm -ivh glibc-headers-2.3.4-2.43.i386.rpm
42 rpm -ivh glibc-kernheaders-2.4-9.1.103.EL.i386.rpm
43 rpm -ivh compat-gcc-32-3.2.3-47.3.i386.rpm
44 rpm -ivh glibc-devel-2.3.4-2.43.i386.rpm
45 rpm -ivh glibc-headers-2.3.4-2.43.i386.rpm
46 rpm -ivh compat-gcc-32-3.2.3-47.3.i386.rpm
47 rpm -ivh glibc-devel-2.3.4-2.43.i386.rpm
48 rpm -ivh glibc-headers-2.3.4-2.43.i386.rpm
49 rpm -ivh glibc-headers-2.3.4-2.43.i386.rpm
50 rpm -Uvh compat-gcc-32-*
51 rpm -Uvh openmotif21*
52 rpm -Uvh sysstat*
53 pwd
54 vi /etc/sysctl.conf
55 /sbin/sysctl -p
56 vi /etc/security/limits.conf
57 vi /etc/pam.d/login
58 vi /etc/selinux/config
59 vi /etc/modprobe.conf
60 groupadd oinstall
61 groupadd dba
62 groupadd oper
63 useradd -u 500 -g oinstall -G dba oracle
64 passwd oracle
65 df -h
66 mkdir /home/oracle
67 cd /home/oracle
68 ls -lt
69 pwd
70 vi .bash_profile
71 chkconfig nfs on
72 ipconfig
73 ifconfig
74 chkconfig nfs on
75 service nfs restart
76 vi /etc/hosts
77 init 0;exit;
78 ifconfig
79 ifconfig -a
80 service network restart
81 ifconfig a
82 ifconfig -a
83 init 0
84 ifconfig -a
85 service network restart
86 system-config-networkt
87 system-config-network
88 service network restart
89 vi /etc/sysconfig/network-scripts/ifcfg-eth0
90 service network restart
91 vi /etc/sysconfig/network-scripts/ifcfg-eth0
92 system-config-network
93 system-config-network
94 init 0
95 hostname
96 vi /etc/sysconfig/network
97 hostname
98 service network restart
99 hostname
100 hostname rac2
101 service network restart
102 exec /usr/bin/ssh-agent $SHELL
103 /etc/init.d/autofs restart
104 showmount -e 192.168.2.247
105 cd /
106 ls
107 mkdir /u01
108 mount 192.168.2.247:/shared_config /u01
109 df -h
110 umount /u01
111 df -h
112 pwd
113 cd /etc/ssh/ssh_config
114 vi /etc/ssh/ssh_config
115 /etc/init.d/sshd restart
116 vi /etc/ssh/ssh_config
117 /etc/init.d/sshd restart
118 su - oracle
119 vi /etc/ssh/ssh_config
120 /etc/init.d/sshd restart
121 su - oracle
122 vi /etc/fstab
123 df -h
124 mkdir -p /u01/app/crs/product/10.2.0/crs
125 mkdir -p /u01/app/oracle/product/10.2.0/db_1
126 mkdir -p /u01/oradata
127 mkdir -p /u01/shared_config
128 chown -R oracle:oinstall /u01/app /u01/app/oracle /u01/oradata /u01/shared_config
129 chmod -R 775 /u01/app /u01/app/oracle /u01/oradata /u01/shared_config
130 mount -a
131 df -h
132 touch /u01/shared_config/test1
133 ls -lt /u01/shared_config/test1
134 cd /u01/app/oracle/product/10.2.0/db_1
135 ls -lt
136 cd ..
137 ls -lt
138 ping rac2
139 ping rac1
140 df -h
141 cd /media/cdrom
142 ls -lt
143 cd Enterprise/
144 cd RPMS/
145 ls -lt
146 rpm -Uvh gcc-3*
147 pwd
148 cd /home/oracle/
149 ls -lt
150 ls -lt

381 rpm -ivh compat-gcc-c++-7.3-2.96.128.XOS.1.i386.rpm
382 rpm -ivh compat-gcc-c++-7.3-2.96.128.XOS.1.i386.rpm --aid
383 rpm -ivh compat-libstdc++-7.3-2.96.128.i386.rpm
384 rpm -ivh compat-libstdc++-7.3-2.96.128.i386.rpm --force
385 rpm -ivh compat-libstdc++-devel-7.3-2.96.128.XOS.1.i386.rpm
386 wget ftp://ftp.pbone.net/mirror/www.whiteboxlinux.org/whitebox/3.0/en/os/x86_64/RedHat/RPMS/compat-libstdc++-devel-7.3-2.96.128.i386.rpm
387 rpm -ivh compat-libstdc++-devel-7.3-2.96.128.i386.rpm



151 rpm -Uvh compat-gcc-c++-7.3-2.96.128.i386.rpm --force
152 rpm -Uvh compat-gcc-7.3-2.96.128.i386.rpm --force
153 rpm -Uvh compat-gcc-c++-7.3-2.96.128.i386.rpm --force
154 rpm -Uvh compat-libstdc++-devel-7.3-2.96.128.i386.rpm --force
155 rpm -Uvh compat-libstdc++-devel-7.3-2.96.128.i386.rpm --force
156 ls -lt
157 rpm -Uvh compat-libstdc++-7.3-2.96.128.i386.rpm
158 rpm -Uvh compat-libstdc++-7.3-2.96.128.i386.rpm --force
159 rpm -Uvh compat-libstdc++-devel-7.3-2.96.128.i386.rpm --force
160 ls -lt
161 rpm -Uvh compat-gcc-7.3-2.96.128.i386.rpm --force
162 rpm -Uvh compat-gcc-c++-7.3-2.96.128.i386.rpm --force
163 cat /etc/host
164 cat /etc/hosts
165 /u01/app/oracle/oraInventory/orainstRoot.sh
166 /u01/app/oracle/product/10.2.0/db_1/root.sh
167 su - oracle
168 /u01/app/oracle/product/10.2.0/db_1/root.sh
169 su - oracle
170 ifconfig -a
171 system-config-network
172 cat /etc/hosts
173 vi /etc/hosts
174 service network restart
175 hostname
176 system-config-network
177 vi /etc/sysconfig/network-scripts/ifcfg-eth1
178 vi /etc/sysconfig/network-scripts/ifcfg-eth0
179 service network restart
180 system-config-network
181 service network restart
182 ping rac1
183 ipconfig -a
184 ifconfig -a
185 uname -a
186 ifconfig -a
187 cd /u01/app
188 ls -lt
189 rm -rf oracle
190 rm /etc/oracle/*
191 rm -rf /etc/oracle/*
192 rm -f /etc/init.d/init.cssd
193 rm -f /etc/init.d/init.crs
194 rm -f /etc/init.d/init.crsd
195 rm -f /etc/init.d/init.evmd
196 rm -f /etc/rc2.d/K96init.crs
197 rm -f /etc/rc2.d/S96init.crs
198 rm -f /etc/rc3.d/K96init.crs
199 rm -f /etc/rc3.d/S96init.crs
200 rm -f /etc/rc5.d/K96init.crs
201 rm -f /etc/rc5.d/S96init.crs
202 rm -Rf /etc/oracle/scls_scr
203 rm -f /etc/inittab.crs
204 cp /etc/inittab.orig /etc/inittab
205 pwd
206 ls -lt
207 rm -Rf crs
208 rm -Rf crs/
209 init 6
210 history
211 cd /etc/init.d/ssh restart
212 cd /etc/init.d/sshd start
213 /etc/init.d/sshd start
214 service ssh start
215 service sshd restart
216 ifconfig
217 ifconfig -a
218 cat /etc/hosts
219 vi /etc/hosts
220 vi /etc/hosts
221 network restart
222 history
223 init 6
224 ifconfig
225 ifconfig -a
226 ifconfig
227 ifup eth0
228 yast2
229 yast2
230 init 6
231 ifconfig
232 ifup eth0
233 system-config-network
234 kudzu
235 ifconfig
236 service network restart
237 ifconfig
238 kudzu
239 system-config-network
240 kudzu
241 system-config-network
242 service network restart
243 ifconfig
244 ping 192.168.2.222
245 ping 192.168.2.222
246 ping 192.168.2.121
247 ping 192.168.2.121
248 ping -b 192.168.2.222
249 ping -b 192.168.2.
250 ping 192.168.2.122
251 ping 192.168.2.121
252 nslookup
253 ls
254 cd /tmp/
255 ls
256 ifconfig
257 ping 192.168.2.122
258 ping 192.168.2.121
259 ping rac1-vip
260 ethtool
261 ethtool -i
262 ethtool -S
263 ethtool eth0
264 ethtool eth1
265 ethtool -s eth0
266 ethtool -S eth0
267 mii-tool
268 ping rac11-vip
269 ping rac1-vip
270 ls
271 dig
272 dig rac1
273 dig -X rac1
274 dig -x rac1
275 dig rac1.aptus.co.uk
276 cd /usr/lib
277 ls
278 pwd
279 df -h
280 mount
281 df -h
282 cd /u01/shared_config
283 ls -lt
284 cd voting_disk
285 rm -r voting_disk
286 rm ocr_configuration
287 pwd
288 chown -R oracle:oinstall /u01/shared_config
289 chown -R oracle:oinstall /u01/app/crs/product/10.2.0/crs
290 chown -R oracle:oinstall /u01/app/oracle/product/10.2.0/db_1
291 chown -R oracle:oinstall /u01/oradata
292 touch /u01/shared_config/ocr_configuration
293 touch /u01/shared_config/voting_disk
294 chown -R oracle:oinstall /u01/shared_config
295 chown -R oracle:oinstall /u01/app/crs/product/10.2.0/crs
296 chown -R oracle:oinstall /u01/app/oracle/product/10.2.0/db_1
297 chown -R oracle:oinstall /u01/oradata
298 touch /u01/shared_config/ocr_configuration
299 ping rac1-vip
300 ping rac1-vip
301 ping -c 5 rac1-vip
302 ping -c 5 rac2-vip
303 ping -c 5 rac1-vip
304 ifconfig -a
305 vi /ect/hosts
306 vi /etc/hosts
307 vi /etc/hosts
308 cat /etc/hosts
309 hostname
310 /u01/app/crs/product/10.2.0/crs/root.sh
311 ps -ef|grep ora
312 su - oracle
313 ps -ef|grep ora
314 /etc/init.d/init.crs stop
315 ps -ef|grep ora
316 init 0
317 /u01/app/oracle/product/10.2.0/db_1/root.sh
318 ps -ef|grep ora
319 ps -ef|grep ora
320 init 0
321 vi /etc/hosts
322 pwd
323 su - oracle
324 history
325 pwd
326 pwd
327 man ping
328 cd /u01/app/crs/product/10.2.0/crs/bin/
329 crs_stat -t
330 ./crs_stat -t
331 ./crs_stat start
332 ./crs_stat restart
333 ./crs_stat stop
334 ./crstat
335 vi crstat.sh
336 sh crstat.sh
337 sh crstat.sh
338 vi crstat.sh
339 pwd
340 vi crstat.sh
341 sh crstat.sh
342 vi crstat.sh
343 sh crstat.sh
344 ./crs_stat -t
345 history

Oracle DBA

anuj blog Archive