Aix Commands for Oracle Dba Pdf
Total Page:16
File Type:pdf, Size:1020Kb
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 operating system 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 file system 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 ocfs2-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/fdisk -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 ТБ прилагается.