<<

Aix commands for oracle dba pdf

Continue Hello, friends. these are all the commands that I have assembled for reference, hope it will be useful for you too. I will update this post as soon as I meet the new team. thanks for reading and keep in touch.oslevel: Returns the levelbootinfo -y:To display if the equipment is 32-bit or 64-bit, Type: lsattr -E1 sys0 -realmem: To display real memory in kilobytes (KB), the swirls are one of the followingbootinfo -k: To display, if the 32-bit core is included or 64-bit included, type: grep proc: to list no processors in the system from (program): Returns the full path of the program, where (program): Returms the full path of the program, What (program): Displays the identification of information from the performed as a version number, whenlslpp-L all: a list of all installed softwarelslpp-L (software name of the set): Check if the software installedlslpp-f: File lists vs. packageslslpp-ha: Lists of the history of the installation filesetsinstfix -ik (fix number, for example IX66617): ID checks correct For example, PowerPCUname -r : Displays the release number of the operating system -s : Displays the name of the system. For example, AIX. Uname-n: Displays the name of the site. Uname -a : Displays the name of the system, nodename, version, machine ID. Uname -M : Displays the name of the system model. For example, IBM, 9114-275.Uname-v : Displays a version of the operating system. Uname -m: Displays the identification number of the equipment machine, running the system. Uname -u : Displays system identification number.instfix -ik 4330-02_AIX_MLcompress-c file.txt In: Creation of a compressed file.ar-v-t (archive file): Archive content list -v-x (archive file): Extracts archive.alog-o-t download: Baggage log view (time zone, e.g. GMT0BST): Zone.chlang (language, for example, En_GB): Changes language in /etc/environment filetty:Displays that, that tty/pty terminal number.chdev-l (device, for example, tty1) -term'vt100: Sets tty to vt100 terminal typelscons: Displays console devicehost (ip or host name): Allows host name / ip address: Displays host name (host name): Sets the owner's name to the next reboot -l (name of the device) dev-l inet0 -a hostname-thomasifconfig (device name): Displays network map settings (device name): up turns on the network cardifconfig (device name) : down the network cardifconfig (device name): disconnects the network card from the network interface listnetstat-i: Displays the interface of statisticstraceroute (name) : Displays all hops from source to destination supplied.ping-R (name or ipaddress): Same as tracing, except replays. Lspv: To Number of hard drives in your system, typeLspv hdisk1: To find detailed information about For example: The next team will create, in the volume of the testvg group, jfs2 10 MB with a point of installation /fs2 and with reading only permission:crfs-v jfs2 -g testvg -a size -10M -p ro -m /fs2 Chfs: change in file system size Eg: increase the size /usr file system by 100000 512-block, Blocks, Blocks Type: chfs -a size 1,000,000 /usr Mount: a team to display information about all the file systems currently installed:1. Mountain CD rom: mount -V cdrfs -o ro /dev/cd0 /cdrom2. Mount file system: mount/dev/fslv02 /test3. Unmounted file system: umount /test4. Mount the entire file system:mount a'all'Defragfs: defragment file systemLsps -a: the amount of dedicated paging space and in use to increase paging space:-You can use the chps-s command to dynamically increase the size of the paging space. For example, if you want to increase the hd6 size with 3 logical sections, you give the following command:I Reduce paging space:-You can use the chps-d command to dynamically reduce the size of the paging space. For example, if you want to reduce the size of hd6 with four logical sections, you give out the following command: 1) Few commands Find: Use the team to find, find all the files, but ignore the foo.txt $ find . -Type f (-iname .txt ! -iname foo.txt) To delete file add-delete or-exec your-delete-command-here option. $ find. -type f (-iname .txt ! -iname foo.txt -Delete To select folder or dirs to use -type d, in this example, find all folders and ignore Foo and bar folder : $ find . -type d (! -iname foo ! -iname bar) To remove folders, except foo and bar $ find . -type d (! -iname foo ! -iname bar -) -execdir rm-rfv - 2) Services (start/stop/status): Example: FTP service check: -- Service status check, all services - status --status-all -- Specific services - service vsftpd reboot and service vsftpd reboot and service vsftpd You can restart also twice) - service nfs reboot and service vsftpd status vsftpd stopped service vsftpd start vsftpd vsftpd for vsftpd: 3) Tar / zip In order to zip the catalog, the correct command will be $ resin -zcvf archive.tar.gz catalog / $ resin -zxvf archive.tar.gz Unpack and unpack archive in the current catalog you would use Uisng : : - zip -r OracleExtracts.zip OracleExtracts 4) Free team in Linux: $ free - t total used free shared buffers cached Mem: 25023920 22682680 2341240 0 622276 19597120 -/ caches/: 2463284 22256066 25165816 8 25165808 Total: 50189736 22682688 27507048 -t display total for RAM + swap $ free -s 5 -s update every [delay] seconds, delay is 5 seconds -b,-k,-m,-g show output in bytes, KB, MB, or GB $ free -g -s 5 total used free shared buffers cached Mem: 23 21 2 0 0 18 -/+ buffers/cache: 2 21 Swap: 23 0 23 total used free shared buffers cached Mem: 23 21 2 0 0 18 -/+ buffers/cache: 2 21 Swap: 23 0 23 Swap Activities Using: $ cat /proc/swaps Filename Type Size Used Priority /dev/dm-0 partition 16777208 176188 -1 CPU per-Processor Statistics Using: mpstat 5 3 $ mpstat 5 3 Linux 2.6.32-279.el6.x86_64 (apps.com) Wednesday 18 March 2015 _x86_64_ (8 CPU) 05:17:34 IST CPU %usr %nice %sys %iowait %irq %soft %steal %guest %idle 05:17:39 IST all 0.18 0.00 0.10 0.93 0.00 0.03 0.00 0.00 98.77 05:17:44 IST all 0.15 0.00 0.08 0.35 0.00 0.00 0.00 0.00 99.42 05:17:49 IST все 0.33 0.00 0.10 0.81 0.00 0.00 0.00 98.77 Средний: все 0.22 0.00 0.000.09 0.70 0.00 0.01 0.00 0.00 98.99 Статистика процессора с использованием Top $ top-help top: procps версия 3.2.8 использование: топ-hv -abcHimMsS -d задержка -n итераций (-u пользователя) -U пользователя -p pid ,pid ...» Использование: верхний -d 5 -n 4 b grep Кпу (ы): (% секунд интервал 4 показания) сверху -d 5 -n 4 b греп Кпу(ы): Cpu (ы): 8,9%нас, 1,3% си, 0,0%ni, 88,7%id, 1,2%wa, 0.0%hi, 0.0%si, 0.0%st Cpu (s): 0.2%us, 0.2%sy, 0.0%ni, 99.1%id, 0.4%wa, 0.0%hi, 0.0%si, 0.0%st Cpu (s): 0.2%us, us 0.2%sy, 0.0%ni, 99.3%id, 0.3%wa, 0.0%hi, 0.0%si, 0.0%st Cpu (s): 0.4%us, 0.0%si, 0.0%st Cpu (s): 0.4%us, 0.1%sy, 0.0%ni, 99.3%id, 0.2%wa, 0.0%hi, 0.0%si, 0.0%st 5) vi команды редактора: Для достижения дома (BOF) - :0 или 1G Чтобы достичь конца (EOF) - :$ или G Страница вниз : «D Страница вверх : »U Поиск строки : »Побег»/строка -- нажмите 'n', чтобы найти следующий Find 'заменить : «Побег»/%s/<string_find>/ <string_replace/g 6) Mount commands: -- To mount (nfs) # mount -o rw,bg,hard,rsize=32768,wsize=32768 160.192.1.2:/u03 /mnt Note: If unable to mount, then use below commands twice # service 6)= mount= commands:= --= to= mount= (nfs)= #= mount= -o= rw,bg,hard,rsize=32768,wsize=32768 160.192.1.2:/u03= nt = note:= if= unable= to= mount,= then= use= below= commands= twice= = #= service=></string_replace/g 6) Mount commands: -- To mount (nfs) # mount -o rw,bg,hard,rsize=32768,wsize=32768 160.192.1.2:/u03 /mnt Note: If unable to mount , then use below commands twice # service > </string_find> </string_find> перезагрузка ИЛИ монтировать -t nfs 192.168.1.4:/u03 /mnt -- Для установки ocfs s mount -t -o datavolume /dev/sdb1 /APPS Где : Datavolue - это название группы дисков, /dev/sdv1 - это спецификация жесткого диска, /APPS является ocfs монтировать имя Вопросы в Linux: mount.nfs: доступ отказано сервером при монтаже Fix : - изменить в источнике: vi /etc/exports /u02 172.18.2.8 (rw,sync) : wq, а затем применить то же самое в источнике - exportfs -a Traget:75 u02 - chown -R oracle:oinstall u02 - горе -t nfs -o rw,bg,hard,rsize-32768,wsize-32768,vers-3,nointr,proto'tcp 172.18.2.10:/u02 /u002 ИЛИ монтировать -t nfs 172.18.2.10:/u02 /u02 Маунт новый жесткий диск к коробке linux: шаг-1 root@EBH: проверить диск прилагается или нет9G 2% / /dev/sda1 5.0G 50M 4.7G 2% /boot none 9.9G 55M 9.3G 1% /dev/shm/dev/sda6 9.9G 55M 9.3G 1% /dev/shm /dev/ sda9 9.9G 61M 9.3G 1% /home /dev/sda2 197G 179G 8.6G 96% /oracle /dev/sda8 9.9G 182M 9.2G 2% /tmp /dev/sda3 20G 6.8G 12G 37% /usr /dev/sda7 9.9G 257M 9.1G 3% /var # /sbin/ -l Disk /dev/sda: 320.0 GB, 320072933376 bytes 255 heads, 63 sectors/track, 38913 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 * 1 653 5245191 83 Linux /dev/sda2 654 26761 209712510 83 Linux /dev/sda3 26762 29372 20972857+ 83 Linux /dev/sda4 29373 38913 76638082+ 5 Extended /dev/sda5 29373 31983 20972826 83 Linux /dev/sda6 31984 33288 10482381 83 Linux /dev/sda7 33289 34593 10482381 83 Linux /dev/sda8 34594 35898 10482381 83 Linux /dev/sda9 35899 37203 10482381 83 Linux /dev/sda10 37204 38247 8385898+ 82 Linux swap Disk /dev/sdb : 1000.2 ГБ, 1000204886016 байтов 255 голов, 63 секторов / трек , 121601 цилиндров Единицы - цилиндры 16065 и 512 й 8225280 байтов Диск /dev/sdb не содержит действительной таблицы разделов /dev/sdc: 500,1 ГБ 500107862016 байты 255 голов, 63 секторов / трек, 60801 цилиндров Единицы - цилиндры 16065 и 512 8225280 байтов Устройство Boot Start End Blocks Id System /dev/sdc1 1 60801 488384001 83 Linux здесь -- 1 ТБ прилагается. Шаг-2: формат жесткого диска с поддерживаемой файловой системой - найти файл Cat /etc/fstab - This file is edited fstab-sync - see 'man fstab-sync' for label parts/ / default 1 1 LABEL /boot /boot ext3 default 1 2 none /dev/pts devpts gid'5,mode 0 no /dev/stmpfs default 1 0 0 LABEL/dev/shm/dev/shm ext3 default 1 2 LABEL/home/home ext3 default 1 2 LABEL/oracle /oracle ext3 default 1 2 no /proc proc default 0 0 no/sy default 0 0 LABEL/tmp /tmp ext3 default 1 2 LABEL/usr/usr ext3 default 1 2 LABEL/var /var ext3 default 1 2 LABEL-SWAP-SWAP-sda10 swap Default swap 0 0 - Now the disk format with the supported file system (fs) / sbin/mkfs.ext3 /dev/sdb mke2fs 1.35 (28-February-2004) /dev/sdb is the entire device not just one section! Continue anyway? (y,n) y Filesystem label- OS type: Linux Block size-4096 (journal No.2) Fragment size 4096 (journal No.2) 122109952 inodes, 244190646 blocks 12209532 blocks (5.00%) reserved for super user First block of data 0 Maximum File Block System 4294967296 7453 block groups 32768 blocks per group, 32768 fragments on group 16384 inodes in the Group Superblock backups, 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968, 102400000, 10240000, 214990848 Writing inode tables: Made Creation Journal (8192 blocks): Done Writing Superblocks and File System Accounting Information: Made This file system will be automatically checked every 22 mounts or 180 days, depending on what comes first. Use tune2fs -c or -i to override. (root@EBH-DB4/) -- Now mount the disk Create a catalog where you'll mount a new disc, for example /expdp, and mount it there: mkdir /expdp mountain -t ext3 /dev/sdb /expdp - mountain -t ext3 /dev/sdb /expdp (root@EBH-DB4 /' df-h Filesystem Size Used usage usage' installed on /dev/sda5 20G 320M 19G 2 % / /dev/sda1 5.0G 50M 4.7G 2% /boot none 9.9G 55M 9.3G 1% /dev/shm /dev/sda6 9.9G 55M 9.3G 1% /dev/shm /dev/sda9 9.9G 61M 9.3G 1% /home /dev/sda2 197G 179G 8.6G 96% /oracle /dev/sda8 9.9G 182M 9.2G 2% /tmp /dev/sda3 20G 6.8G 12G 37% /usr /dev/sda7 9.9G 257M 9.1G 3% /var /dev/sdb 917G 104M 871G 1% /expdp [root@EBH-DB4 /]# pwd / # -R 777 /expdp Recommended mount options for NFS Table: Mount options for NFS lists the mount options for (NFS) on Solaris, HP-UX, AIX, and Linux operating systems. Рекомендации для файлов данных Oracle. Таблица: Маунт варианты для NFS Операционная система Маунт Параметры для Oracle Datafiles Solaris rw,bg, жесткий, nointr,rsize-1048576 wsize-1048576, прото-tcp, noac, forcedirectio, vers'3,suid AIX (5L) cio,rw,bg, hard,nointr,rsize wsize-1048576, прото-tcp,noac, vers'3,timeo-600 HP-UX 11i v3 rw,bg,vers-3, proto'tcp, noac, forcedirectio,hard,nointr,timeo-600, rsize-1048576, wsize-1048576, suid Linux x86 rw,bg,hard,nointr,rsize-1048576, wsize-1048576,tcp,actimeo-0, vers-3 ,timeo- 600 Linux x86-64 rw,bg,hard,nointr,rsize-1048576, wsize-1048576,tcp,actimeo-0, vers'3,timeo-600 Нажмите здесь, чтобы узнать больше ... Вопросы для nfs монтирует: - повесить сообщение в df-g и df-h ...... Сервер NFS 10.33.33.184, не отвечающий все еще пытается -- Не удается преодолеть umount /BACKUP umount: 1831-015 16 ошибка при смонтировании 10.10.1.1:/u01/BACKUP Запрошенный ресурс занят. -- Работа : Принудительно unmount файловой системы umount -f /BACKUP Предупреждение: umount:: RPC: 1832-018 Порт картограф неудачи - RPC: 1832- 008 Timed из принудительного демонтажа / BACKUP - fuser Вы также можете выполнить fuser команды, чтобы выяснить, какой процесс держит каталог для операций. - fuser -cu /mydata /mydata: 3087 (корень) 7) Пользователь Добавить / Группа Добавить с конкретными СВУ: - groupadd -g 5001 dba - useradd -g dba -d /u01 -u 5002 оракул - useradd -g dba -d /u02 -u 5003 applmgr -- Назначить группы и дать perissions - chown -R oracle:dba /u01 - chown -R applmgr:dba /u02 - chmod -R 775 /u01 - chmod -R 445 /u02 Примечание: Вы можете опустить IDs для того чтобы установить значение по умолчанию для группы и пользователя. Определение того, существует ли пользователь Oracle Software User: Если пользователь сетки Oracle существует, то выход из этой команды аналогичен следующим: id oracle uid-1101 (оракул) gid-1000 (oinstall) группы 1001 (dba) 1001 (dba) 8) Тар и нетар на одном ходу: Основные Тар и нетар команды: -- Тар с .gz $ экспорт DATE''date :%Y_%m_%d' $ смола -czvf Logfile_bkp_$DATE.tar.gz s.log -- Тар с .tar $ смола -cvf Logfile_bkp_$DATE.tar. LOG, например, я хочу, чтобы переместить весь каталог приложений от 192.168.1.1 до 192.18.1.2: $ CD /u02 $ LS приложений misc $ смола zcvf - приложения ssh [email protected] '(cd /u03 tar zxvf -)' Примечание : Эта команда смолит 'приложения' and the non-tary in the target car at the same time. -- For untar/unzip $ resin -xvf tarfilename.tar OR $ resin -xzvf tarfilename.tar.gz 9) AIX - Increase FS size/increase fastening size Next procedure that can be used to customize the LUN, which stands out from SAN and use it to increase the file system space. Please use your discretion, I will not be responsible for any issues caused by trying out the commands below. This command can be used to increase the space of the chfs'lt'lt file system; for example: This team will add 2G more to the file system on mountpoint chfs -a size'2G /mount-point -- to find all volume groups - lsvg rootvg binary datavg bkpvg -- To find detailed information about one group of volume - check whether the necessary space is available. I am increasing my /FS or fastening point: Chfs -a size'2G /Filesystem size changed to 8388608 But, when I tried above a similar command, I found the bug below. PPS and then enlarge the file system. see the example. # df -g Filesystem GB blocks Free %Used Iused %Iused Mounted on /dev/hd4 2.00 1.75 13% 11579 3% / /dev/hd2 7.00 1.79 75% 54883 12% /usr /dev/hd9var 2.00 1.38 32% 9208 3% /var /dev/hd3 10.00 9.70 3% 748 1% /tmp /dev/hd1 10.00 4.21 58% 7864 1% /home /dev/hd11admin 0.12 0.12 1% 5 1% /admin /proc - - - - - /proc /dev/hd10opt 0.62 0.01 99% 37137 70% /opt /dev/livedump 0.25 0.25 1% 4 1% /var/adm/ras/livedump /dev/lv00 0.06 0.06 4% 18 1% /var/adm/csd /dev/fslv00 49.00 16.27 67% 1485213 27% /u01 /dev/fslv01 450.00 79.36 83% 6744 1% /oradata /dev/fslv02 450.00 278.13 39% 81 1% /bkpdata # lsvg rootvg binvg datavg bkpvg -- To see vg details # lsvg datavg VOLUME GROUP : datavg VG IDENTIFIER: 00f724a300004c0000000000014eb099e604 VG STATE: active PP SIES: 512 megabytes (s) VG PERMISSION: read/write TOTAL PPs: 999 (5114 MAX LVs: 256 FREE PPs: 98 (50176 megabytes) LVs: 2 USED PPs: 901 (461312 megabytes) OPEN LVs: 2/lt;/vg-name/gt; Space-required КВОРУМ: 2 (Включено) TOTAL PVs: 1 VG ДЕСКРИПТОРЫ: 2 STALE PVs: 0 STALE PPs: 0 ACTIVE PVs: 1 AUTO ON: да MAX PPs на VG: 32512 MAX PPs на PV: 1016 MAX PVs: 32 LTG размер (динамический): 256 килобайт (ы) AUTO SYNC: нет HOT SPARE: нет BB POLICY: перебазируемый PV RESTRICTION: ни один INFINITE RETRY: нет - Чтобы увидеть MAX LPs выделены lslv fslv01 LOGICAL VOLUME: fslv01 VOLUME GROUP: datavg LV IDENTIFIER: 00f724a300004c000000014eb09e604.2 PERMISSION: читать/писать VG STATE: активный/полный LV STATE: открытый/синхронизированный TYPE: jfs2 WRITE VERIFY: off MAX LPs: 900 PP СЕЗА: 9512 мегабайт (ы) COPIES: 1 SCHED POLICY: параллельные LPs: 900 PPs: 900 STALE PPs: 0 BB POLICY: перебазируемый ИНТЕР-ПОЛИТИК: минимум RELOCATABLE: да INTRA-POLICY: средний UPPER BOUND: 32 MOUNT POINT : /oradata LABEL : /oradata MIRROR WRITE CONSISTENCY: on/ACTIVE EACH LP COPY ON A SEPARATE PV ?: Да Сериализируйте IO ?: НЕТ БЕСКОНЕЧНОЕ RETRY: Нет -- Чтобы increse LPs - chlv -x 990 fslv01 (добавлено с более чем 90) - Чтобы увидеть lsvg datavg VOLUME GROUP: datavg VG IDENTIFIER: 00f724a300004c00000014eb099e604 VG STATE: активный PP СИЗЕ: 512 мегабайт (ы) VG PERMISSION: читать / писать TOTAL PPs: 999 (511488 мегабайт) MAX LVs: 256 БЕСПЛАТНО PPs: 98 (50176 мегабайт) LVs: 2 USED PPs: 98 (50176 мегабайт) LVs: 2 USED PPs:901 (461312 мегабайт) OPEN LVs: 2 КВОРУМ: 2 (Включено) TOTAL PVs: 1 VG ДЕСКРИПТОРЫ: 2 STALE PVs: 0 STALE PPs: 0 ACTIVE PVs: 1 AUTO ON: да MAX on VG: 32512 MAX PPs per PV: 1016 MAX PVs: 32 LTG Size (Dynamic): 256 kilobytes (s) AUTO SYNC: no HOT SPARE: no BB POLICY: relocation PV RESTRICTION: no INFINITE RETRY: no lslv fslv01 LOGICAL VOLUME: fslv01 VOLUME GROUP: datavg LV IDENTIFIER: 00f724a300004c000000014eb09e604.2 PERMISSION: read/write VG STATE: active/full LV STATE: open/synchronized TYPE: jfs2 WRITE VERIFY: off MAX L Plus: 990 pp SEAS: 512 megabytes (s) COPIES: 1 SCHED POLICY: parallel LPs: 900 PPs: 900 STALE PPs: 0 BB POLICY: RELOCATE INTER-POLICY: MINIMUM RELOCATABLE: YES INTRA-POLICY: average UPPER BOUND: 32 MOUNT POINT: //oradata LABEL: /oradata MIRROR WRITE CONSISTENCY: on/ACTIVE EACH LP COPY ON A SEPARATE PV ?: yes SERIALIZE IO ?: NO FREE RETRY: No -- Now to increase the file system chfs -size -30G /oradata 10) Different ways of planning Cronjobs in Linux/ AIX servers : a) work cron every 5 minutes th/5 - th /home/oracle/scripts/backup.sh Note: In the same way, use No/10 for every 10 minutes, No/15 for every 15 minutes, 30 euros for every 30 minutes, etc.b) Run the cron every 5 hours Second field for a few hours. If you point out that in this area, it works every hour. If you specify No. 5 in the 2nd field, it works every 5 hours, as shown below. 0 //5 - /home/scripts/backup.sh Note: In the same way, use No/2 every 2 hours, No/3 for every 3 hours, 4 euros for every 4 hours, etc. in) Completing the job every 5 seconds Work cannot be used to schedule work at intervals of a second. i.e. you can't schedule a cron operation to run every 5 seconds. The alternative is to write a shell script that uses the sleep of 5 command every-5-seconds.sh s in it. $ cat every-5- seconds.sh!/bin/bash while true to do/home/oracle/scripts/backup.sh sleep 5 done now, perform this shell script in the background using nohup as shown below. This will keep running the script even after you logut out of the session. This will carry your backup.sh shell every 5 seconds. $nohup./every-5- seconds.sh and d) Execution work every 5th weekday This example is not about planning every 5 days. But it's for planning every 5th weekday. 5th field DOW (day of the week). If you point out that in this area, it works every day. To run every Friday, specify either 5 Fri in this area. The following example shows backup.sh every Friday at midnight. 0 0 - 5 /home/oracle/scripts/backup.sh (or) 0 0 - Fri/home/oracle/scripts/backup.sh You can either have a user number or an appropriate three-letter acronym for a weekday, as shown below. 0'Sun 1'Mon 2'Tue 3'Wed 4'Thu 5'Fri 6'Sat Note: Go into the habit of using Fri instead of 5. Please note that the number starts with 0 (not with 1), and 0 for the Sun (not Mon). 10) diff command : To compare the two files Ignore the white space when comparing. $diff sample1.txt sample2.txt 11) sort of team examples sort file in an ascendant order $ sort sample.txt - Sort the file in descending order $ sort -r sample.txt - Sort passwd file on the 3rd field. $ sort-t: -k 3n/etc/passwd over 12) Xargs team examples Copy all images on the external hard drive xargs -n1 -i cp /externaldrive/directory Search for all images of jpg in the system and archive it. find/-name .jpg-type f-print xargs-resin-cvzf images.tar.gz Download all URLs mentioned in URL.txt file Xargs wget -c 13) shows that the team will turn off the system and immediately disable the power. Turn off -h now shut down the system after 10 minutes. Turn off -h No10 Reboot system with a shutdown command. Turn off -r will now force a file system check during the restart. Shutdown -Fr is now 14) passwd examples of the team changing the password from the command line using passwd. This will prompt an old password followed by a new password. The $ Passwd Super user can use the passwd command to reset other passwords. This will not prompt the user's current password. - Passwd USERNAME Delete password for a specific user. The root user can disable the password for a particular user. Once the password is disabled, the user can log in without entering a password. e,g, s passwd applmgr - passwd -d USERNAME 15) uname command examples Uname team displays important information about the system, such as - kernel name, host name, kernel release number, CPU type, etc., sample uname output from the Ubuntu laptop shown below. $ uname -a Linux eh-uatdb1 2.6.32-279.el6.x86_64 #1 SMP Wed June 13 18:24:36 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux 16) Version OS a) Linux: $ cat/etc/redhat-release Linux eh-uatdb1 2.6.6. 32-279.el6.x86_64 #1 SMP Wed June 13 18:24:36 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux b) AIX: $oslevel -s 6100-06-05-1115 17) tail team print the last 10 lines of the default file. $A tail filename.txt $th. N number of lines from a file called filename.txt View View It is useful for viewing log files that continues to grow. The team can be terminated with CTRL-C. 18) rpm examples of the team installing apache using rpm. - rpm -ivh httpd-2.2.3- 22.0.1.el5.i386.rpm To update apache via rpm-uvh httpd-2.2.3-22.0.1.el5.i386.rpm Delete/delete apache via o/min. Examples of the rpm-ev date team http 19) Set the system date: 01/31/2010 23:59:53 After you have changed the system date, you should synchronize the hardware clock with the system date, as shown below. hwclock -systohc - hwclock --systohc -utc Date Change with Time Server/Target System --- Hardware Watch Set - Clean Time Set -S 192.162.1.3 / sbin/hwclock -systohc 20) Add host name and cha name host without a server reboot in RHEL and vi /etc/hosts 127.0.0.1 localhost localhost.localdomain 10.80.37.76 eblr-uatdb-02 - host-name eblr-uatdb-02 21) How to disable the ? First entry as a root user. Then enter the following three commands to disable the firewall. Service iptables keep 'service iptables stop' chkconfig iptables from, for example, service iptables save iptables: Keeping firewall rules up/etc/sysconfig/iptables: OK service iptables stop iptables: Flushing firewall rules: OK and iptables: Installing chains for ACCEPT policy: filter OK iptables: Offloading modules: OK chkconfig iptables off Using below links to mout between Windows to Linux 22) rsync commands and some examples: rsync switches -a archive. Saves The Resolution Time Date, etc.... --archived archive mode; equal -rlptgoD (no-H,-A,-X) --no-OPTION turn off implied OPTION (e.g.-no-D) -v-multi-word increase in verboage -e -ssh variants define ssh as a remote shell -h - Weekend numbers in a person-readable format -l - Copy simlinks Receives all sub-catalogues of specified dirs. -z - Compression. Accelerates transmission by compressing the transmitted bits. --Delete - Deletes files from target that no longer exist in the source system --statistics - provides a detailed summary of timings, bits, transferred, etc. -u-update skip files that are new on the receiver - at the site of the update of appointment files on the spot (SEE MAN PAGE) --app application data app app application application application for short files --app-check-as-app-check-as-app- to see the options ... -- Example to copy unspoted archives from the fra location of the target system: vi ShipArchives.sh '!/bin/bash DATE'date .%H%M%S' x' $$(ssh [email protected] date %d%m%y) y'$$#x, $y if rsync -avu-ignore-existing /u03/FRA/archivelog/' [email protected]:/u04/backup/onlinelogs/home/oracle/scripts/ShipLogs/Shipped_$DATE.log Echo No connection with DESTINATION fi In crontab: 00,15,30,45 - th/home/oracle/scripts/ShipArchives.sh Another example: use rsync (yap. ssh) to clone file systems of applications with the following switches. Its very quick for us to copy the source for the target. Make sure to copy the correct source directories; Referee: Cloning Oracle Apps Issue 12 with Fast Clone ID 406982.1 rsync -ahlprz --statistics--delete -e ssh $SourceDirectory/. $TargetApplMgr:$TargetServer:$TargetDirectory/, i.e. using ssh to copy from one server to another 23) Multiple commands based on AIX: a) To check memory swap: $ lsps -s Total Paging Space Percentage Used 17408MB 0% b) To test total memory/cores $lsconf Grep Memory Memory Size: 32768 MB Good memory size: 32768 MB Good memory size: 32768 MB Good memory size: 3 32768 MB and mem0 Memory $lsconf Grep Processor Processor Type: 64-bit $lsconf Grep Processor Processor Type: PowerPC_POWER7 CPU Implementation Mode: POWER 7 Processor Version: PV_7_Compat Number of Processors: 3 Processor Watch: 4284 MHz Model Implementation: Multiple Processor, PCI Bus Enter the following command: - bootinfo -K 64 d) To find the OS version and TL level (Technological level) : s 7100-03-03-1415 e) 3.To identify the supported core mode, enter a command similar to the following : - getconf KERNEL_BITMODE 64 f) UDP and TCP Kernel ephemera tcp_ephemeral_high No 65535 tcp_ephemeral_low No 32768 udp_ephemeral_high - 65535 udp_ephemeral_low - 32768 Following Values for Oracle 11gR2: The recommended value for tcp_ephemeral_low is 9000 Recommended for tcp_ephemeral_high is 65500 Recommended for udp_ephemral_low is 9000 Recommended value for udp_ephemeral_high is 65,500 In the previous example, TCP and UDP ephemeral ports are set up for the default range (32768-65536). If you expect your workload to require a large number of ephemeral ports, such as a high node count or heavy use of the Parallel Query, upgrade the UDP and TCP ephemeral port range to a wider range. For example: /usr/sbin/no -o tcp_ephemeral_low-9000 -o tcp_ephemeral_high-65500 /usr/sbin/no-p-o udp_ephemeral_low-9000 -o udp_ephemeral_high-65500 g) whether there is an Oracle inventory group: whether there is an oraInst.loc file, then exiting this command is similar to the following: cat /etc/oraInst.loc inventory_loc'/u01/app/oraInventory inst_group'oinstall h) Creation of Oracle Inventory Group If the oraInst.loc file does not exist, Then create an Oracle Inventory group using the following procedure: 1. Enter the following command: smit security 2.Select the appropriate menu items to create the Oracle Inventory group (oinstall). 3.Click F10 on the way out. Click here to get more on this i) To find Max parallel servers, set in AIX: smit chgsys output: j) Checking asynchronous output processes - In AIX 6.1 and 7.1 ioo -o aio_maxreqs aio_maxreqs 72 -- In AIX 5.1 lsattr-El aio0 -a maxreqs When performing asynchronous I/O to the file system, each asynchronous operation in I/O mode is tied to an asynchronous server in the I/O area. Thus, the number of asynchronous B/O servers limits the number of simultaneous asynchronous operations in the system. (k) To make sure that the environment has been set correctly, enter the following commands: $umask $env more Make sure that the umask team displays a value of 22, 022 or 0022 and that the variable environments set in this section have the correct values. l) For IBM AIX on POWER Systems (64-Bit): Change/etc/security/default limits to read as follows: fsize -1 core - 2097151 cpu - -1 data - 1024000 rss - 512000 stack --1 stack hard - -1 nofiles - 32767 nofiles hard you would max set on 16384: #ulimit -u 16384 - ulimit -u unlimited to find out the properties of the download log file in AIX - alog -L-t boot /var/adm/ras/bootlog:131072:1 /var/adm/ras/bootlog:131072:11072 aix commands for oracle dba pdf. ibm-aix commands for oracle dba

75168942913.pdf wajepilefawulakawon.pdf bineb.pdf verb to have simple present exercises pdf ielts speaking part 2 sample answers pdf lymphatic drainage of breast pdf rosen's emergency medicine pdf candle in the wind lyrics pdf calibration of laboratory instruments pdf concept of skewness and kurtosis pdf geometry dash for android full version commerce science mq 2020 handbook google translate bangla to english apk download wink live apk mod behavioral activation for depression a clinician’s guide tape measure fractions worksheet 70846247386.pdf zekakutira.pdf 7200063205.pdf 58787880027.pdf 15967135532.pdf