Search

Custom Search

Monday 25 January 2016

How to Check the Environment Variables for an Oracle Process In Linux


There are cases when a database was started from an environment that did not have all the variables set correctly and this can cause troubles afterwards. Typical examples are :

 - starting a database from an environment where ORACLE_HOME has a path with a final forward slash ( "/u01/oracle/12.1.0.1/db_1/" rather than "/u01/oracle/12.1.0.1/db_1")

- starting the database from an environment that points with the TNS_ADMIN parameter to the wrong sqlnet configuration files

- starting the database with the incorrect value for LD_LIBRARY_PATH  (LIBPATH for AIX or SHLIB_PATH for HP)

- starting the database from an environment that does not have the ORACLE_UQNAME variable set, although this is used to derive the path to a TDE( or SSL ) wallet.




1. Determine the pid of the process at OS level, eg for the smon process:
ps -ef | grep smon

2. Get the environment of the process:

cat /proc/pid from above/environ

Saturday 5 December 2015

Installing Oracle Ksplice

Installation instructions

To install Ksplice Uptrack, please run the following commands as root:


wget -N https://www.ksplice.com/uptrack/install-uptrack

sh install-uptrack 9db6fd7c6694c39d955e99969f1fdbddb83888661a488166e0d54e91dfa52784

uptrack-upgrade -y

If you'd like Ksplice Uptrack to automatically install updates as they become available, run:

sh install-uptrack 9db6fd7c6694c39d955e99969f1fdbddb83888661a488166e0d54e91dfa52784 --autoinstall

in place of the above install-uptrack command, or set "autoinstall = yes" in /etc/uptrack/uptrack.conf after installation.
If installing on a Debian or Ubuntu machine, you may first need to install the ca-certificates package with apt-get install ca-certificates. Without this package you will see a "certificate verification error".

Thursday 22 October 2015

Enabling SNMP in Oracle Enterprise Linux

1. Install the required tools using 


yum -y install net-snmp net-snmp-utils

2. Enable ports 162 and 161 UDP, TCP in firewall

3. Edit config file

vi /etc/snmp/snmpd.conf

Should look like the following

# com2sec notConfigUser  default       public

com2sec notConfigUser   default        nameofcommunitystring
#com2sec ConfigUser     default         nameofcommunitystring
com2sec AllUser         default             nameofcommunitystring

####
# Second, map the security name into a group name:

#       groupName      securityModel securityName
group   notConfigGroup  v1              notConfigUser
group   notConfigGroup  v2c             notConfigUser
group   ConfigGroup     v2c             ConfigUser
group   AllGroup        v2c             AllUser

####
# Third, create a view for us to let the group have rights to:

# Make at least  snmpwalk -v 1 localhost -c public system fast again.
#       name           incl/excl     subtree         mask(optional)
view    systemview    included   .1.3.6.1.2.1.1
#view    systemview    included   .1.3.6.1.2.1.25.1.1
view    systemview    included   .1.3.6.1.2.1.25
view    AllView       included        .1

####
# Finally, grant the group read-only access to the systemview view.

#       group          context sec.model sec.level prefix read   write  notif
access  notConfigGroup ""      any       noauth    exact  systemview none none
access  ConfigGroup     ""      any     noauth  exact   SystemView      none    none
access  AllGroup        ""      any     noauth  exact   AllView         none    none


3.Restart snmpd daemon

service snmpd restart

4. Configure SNMP to start when the server boots:

chkconfig snmpd on

5. Check config

snmpwalk -v 2c -c nameofcommunitystring -O e 102.106.0.460