Showing posts with label GRID & RAC & LINUX TRICKS & TIPS & COMMANDS. Show all posts
Showing posts with label GRID & RAC & LINUX TRICKS & TIPS & COMMANDS. Show all posts

Tuesday, August 1, 2023

GRID & RAC & LINUX TRICKS & TIPS & COMMANDS

To Switch to "/bin" directory directly :-

 cd $(dirname $(ps -ef | grep -i d.bin | grep -v grep | awk '{print $8}' | awk 'NR==1') )

--------------------------------------------------------------------------------------------------------------------

[oracle@rac1 ~]$ pwd
/home/oracle
[oracle@rac1 ~]$ ps -ef | grep -i d.bin
oracle      3572       1  1 13:13 ?        00:01:18 /u01/app/19c/grid/bin/ohasd.bin reboot
oracle      5088       1  1 13:13 ?        00:01:25 /u01/app/19c/grid/bin/oraagent.bin
oracle      5138       1  0 13:13 ?        00:00:30 /u01/app/19c/grid/bin/evmd.bin
oracle      5141       1  0 13:13 ?        00:00:00 /u01/app/19c/grid/bin/tnslsnr LISTENER -no_crs_notify -inherit
oracle      5311       1  0 13:13 ?        00:00:34 /u01/app/19c/grid/bin/cssdagent
oracle      5339    5138  0 13:13 ?        00:00:30 /u01/app/19c/grid/bin/evmlogger.bin -o /u01/app/19c/grid/log/[HOSTNAME]/evmd/evmlogger.info -l /u01/app/19c/grid/log/[HOSTNAME]/evmd/evmlogger.log
oracle      5372       1  0 13:13 ?        00:00:34 /u01/app/19c/grid/bin/ocssd.bin
oracle      9910    7034  0 14:29 pts/0    00:00:00 grep --color=auto -i d.bin
[oracle@rac1 ~]$
[oracle@rac1 ~]$
[oracle@rac1 ~]$ ps -ef | grep -i d.bin | awk '{print $8}'
/u01/app/19c/grid/bin/ohasd.bin
/u01/app/19c/grid/bin/oraagent.bin
/u01/app/19c/grid/bin/evmd.bin
/u01/app/19c/grid/bin/tnslsnr
/u01/app/19c/grid/bin/cssdagent
/u01/app/19c/grid/bin/evmlogger.bin
/u01/app/19c/grid/bin/ocssd.bin
grep
[oracle@rac1 ~]$
[oracle@rac1 ~]$
[oracle@rac1 ~]$ ps -ef | grep -i d.bin | awk '{print $8}' | awk 'NR==1'
/u01/app/19c/grid/bin/ohasd.bin
[oracle@rac1 ~]$
[oracle@rac1 ~]$
[oracle@rac1 ~]$
[oracle@rac1 ~]$ dirname $(ps -ef | grep -i d.bin | awk '{print $8}' | awk 'NR==1')
/u01/app/19c/grid/bin
[oracle@rac1 ~]$
[oracle@rac1 ~]$
[oracle@rac1 ~]$ cd $(dirname $(ps -ef | grep -i d.bin | awk '{print $8}' | awk 'NR==1'))
[oracle@rac1 bin]$
[oracle@rac1 bin]$ pwd
/u01/app/19c/grid/bin
--------------------------------------------------------------------------------------------------------------------------
ORACLE GRID '/etc'
oraInst.loc: This file is located in the /etc directory and is used to specify the location of the Oracle Inventory (Central Inventory) on the system. The Oracle Inventory stores information about Oracle installations, including Oracle Grid Infrastructure.

coraenv and oraenv: These are shell scripts located in /etc. They are used to set up the environment for different Oracle software installations, including Oracle Grid Infrastructure. The oraenv and coraenv scripts allow you to set the environment for a specific Oracle home or Grid Infrastructure home.

init. files*: In some cases, you might find init.* files in the /etc directory that are used to start Oracle Grid Infrastructure resources at system startup. For example, init.ohasd is used to start the Oracle High Availability Services daemon.

cron.d: You might find cron jobs related to Oracle Grid Infrastructure in the /etc/cron.d directory. These cron jobs are used to schedule tasks such as backups, maintenance, and monitoring.

udev Rules: On Linux systems, Oracle Grid Infrastructure may create udev rules for devices like Oracle ASM disks. These udev rules can be found in the /etc/udev/rules.d directory.

Network Configuration: Some network-related configuration files, such as /etc/hosts and /etc/resolv.conf, can be important for Oracle Grid Infrastructure to properly resolve hostnames and IP addresses.

System Configuration: Various system configuration files and settings in /etc may indirectly impact Oracle Grid Infrastructure, including the /etc/sysctl.conf file for kernel parameters, /etc/security/limits.conf for resource limits, and more.


Enable OpenSSH on Windows 11

Step 1: Install OpenSSH Server You can do this via PowerShell (run as Administrator ): Check if it's already available: Get-WindowsCapab...