Thứ Tư, 29 tháng 8, 2018

Thủ tục thêm đĩa vào diskgroup DATA trong AIX trong ASM

--Đổi tên giữa 2 hdisk: rendev -l hdisk33 -n hdisk58

0. Scan

Login vào cả 2 node Database, scan phân vùng SAN và định dạng lại phân vùng
#lspv
//scan để refresh ra phân vùng mới add

#cfgmgr
//Check các disk

#lspv
//Check id của disk
 
#lsattr -El hdisk25 

1. Cấu hình

-- Thuc hien tren ca 2 node, root
lspath -l hdisk25

lsattr -El hdisk25

chdev -l hdisk25 -a reserve_policy=no_reserve

chdev -l hdisk25 -a algorithm=round_robin

chdev -l hdisk25 -a queue_depth=32

lsattr -El hdisk25

1ls -l /dev/rhdisk25

chown oracle.oinstall /dev/rhdisk25 (khi cài riêng grid có thể gán quyền là chown grid.asmadmin /dev/rhdisk25)

chmod 660 /dev/rhdisk25

ls -l /dev/rhdisk25

crw-rw----    1 oracle oinstall      24, 64 Nov 30 17:57 /dev/rhdisk25
(hoặc crw-rw----    1 grid asmadmin      24, 64 Nov 30 17:57 /dev/rhdisk25)
Sửa bài viết

Quy trình thêm đĩa vào diskgroup trong ASM trên hệ điều hành Solaris

Sửa bài viết

Restart, shutdown Solaris 10



Lệnh
Diễn giải
Reboot
# init 6
(tat service sau do restart)

# reboot
reboot -- -r
Reboot luôn mà không tắt service (bật xong dễ chết service)

# shutdown -r now
shutdown -y -i6 -g0
Xem xét

oracle$ last reboot
reboot    system boot                   Wed May 30 23:03
reboot    system down                   Wed May 30 22:47
reboot    system boot                   Thu Apr 12 10:57
reboot    system down                   Thu Apr 12 10:09
reboot    EE                            Wed Jan 28 14:21 - down  (17605+20:

Shutdown
Init 5
(tat service sau do shutdown)

#shutdown -i0 -g0 -y
Xem xét

poweroff
~ Rút phích điện

halt


#shutdown -h now
#shutdown now
Reboot luôn mà không tắt service

Sửa bài viết

Cài đặt gói trong Solaris


Check
Check to see which of the required packages are already installed.
# pkginfo -i SUNWarc SUNWbtool SUNWhea SUNWlibC SUNWlibm SUNWlibms SUNWsprot \
  SUNWtoo SUNWi1of SUNWi1cs SUNWi15cs SUNWxwfnt SUNWcsl
system      SUNWarc   Lint Libraries (usr)
system      SUNWbtool CCS tools bundled with SunOS
system      SUNWcsl   Core Solaris, (Shared Libs)
system      SUNWhea   SunOS Header Files
system      SUNWi1of  ISO-8859-1 (Latin-1) Optional Fonts
system      SUNWlibC  Sun Workshop Compilers Bundled libC
system      SUNWlibm  Math & Microtasking Library Headers & Lint Files (Usr)
system      SUNWlibms Math & Microtasking Libraries (Usr)
system      SUNWsprot Solaris Bundled tools
system      SUNWtoo   Programming Tools
system      SUNWxwfnt X Window System platform required fonts
ERROR: information for "SUNWi1cs" was not found
ERROR: information for "SUNWi15cs" was not found
#
From <https://oracle-base.com/articles/11g/oracle-db-11gr2-installation-on-solaris-10>

# pkginfo -x <package>

# pkginfo |grep pkgutil


# pkgchk -l <package_name>
# pkgchk -l <package_name> | grep Pathname  # lists files only.
# pkgchk -d <name> -l
Cài đặt gói
Add the "SUNWi1cs" and "SUNWi15cs" packages using the "pkgadd" command.
# pkgadd -d /cdrom/sol_10_910_x86/Solaris_10/Product SUNWi1cs SUNWi15cs

#pkgadd -d  /cdrom/solaris10/SFWsnort
Xóa gói
# pkgrm SFWsnort

Sửa bài viết

Cài đặt patch trên Solaris 10

Dưới đây là các patch yêu cầu cho Oracle Database 11g Release 2 (11.2) trên Oracle Solaris 10:
Sửa bài viết

Đặt lại mật khẩu ASMSNMP trên ASM instance

Có 2 cách thực hiện


1)  Sử dụng lệnh Alter User

$ export ORACLE_SID=+ASM
$ . oraenv
$ sqlplus / as sysasm

SQL> alter user asmsnmp identified by <password>;
User altered.

2)  Sử dụng ASMCMD (môi trường RAC sẽ update toàn bộ các node)

orapwusr --modify --password asmsnmp

[oracle@host01 ~]$ asmcmd -p
ASMCMD [+] > lspwusr
Username sysdba sysoper sysasm
     SYS   TRUE    TRUE   TRUE
 ASMSNMP   TRUE   FALSE  FALSE




Sửa bài viết

ĐỌC NHIỀU

Trần Văn Bình - Oracle Database Master