Posts

How to enable DNFS and set hugepages

Configuring HugePages for Oracle on Linux (x86-64) The steps in this section are for configuring HugePages on a 64-bit Oracle Linux system running one or more Oracle Database instances. To configure HugePages:Verify that the  soft  and  hard  values in kilobytes of  memlock  that are configured in  /etc/security/limits.conf  are slightly smaller than the amount of installed memory. For example, if the system has 64GB of RAM, the values shown here would be appropriate: soft memlock 60397977 hard memlock 60397977 Log in as the Oracle account owner (usually  oracle ) and use the following command to verify the value of  memlock : $ ulimit -l 60397977 If your system is running Oracle Database 11g or later, disable AMM by setting the values of both of the initialization parameters  memory_target  and  memory_max_target  to 0. If you start the Oracle Database instances with a server parameter file, which is the default if ...

How to check number of CPUs are there in Linux system

O ne can use any one of the following command to find the number of physical CPU cores including all cores on Linux: lscpu command cat /proc/cpuinfo top or htop command nproc command Just run the lscpu command: $  lscpu $  lscpu | egrep 'Model name|Socket|Thread|NUMA|CPU\(s\)' $  lscpu -p [root@shsdascn7i ~]# lscpu Architecture:          x86_64 CPU op-mode(s):        32-bit, 64-bit Byte Order:            Little Endian CPU(s):                2 On-line CPU(s) list:   0,1 Thread(s) per core:    1 Core(s) per socket:    1 Socket(s):             2 NUMA node(s):          1 Vendor ID:             GenuineIntel CPU family:            6 Model:                 158 Model nam...

How to set Date and Time on a Linux Server

  Linux Display Current Date and Time Type the date command: $  date Sample outputs: Tue Oct   4 13:11:27 IST 2022 Linux Display The Hardware Clock (RTC) Type the following hwclock command to read the Hardware Clock and display the time on screen: #  hwclock -r OR show it in Coordinated Universal time (UTC): #  hwclock --show --utc Linux Set Date Command Example date --set="STRING" For example, set new data to 2 Oct 2006 18:00:00, type the following command as root user: #  date -s "4 OCT 2022 18:00:00" Type the following timedatectl command: $  timedatectl sudo timedatectl set-time YYYY-MM-DD For example set the current date to 2022-10-04 (4th, Oct, 2022): #  timedatectl set-time '2022-10-04' #  timedatectl [root@shsdascn7i ~]# date -s "4 OCT 2022 13:12:00" Tue Oct   4 13:12:00 IST 2022