I Cannot Delete Into ASMCMD

A coworker ask me about a problem he had when trying delete into the asmcmd. At shell prompt he can deleted without problems but from asmcmd doesn’t. He get the control and interrogation symbol like show below;

 
grid@mortir./grid/home/grid $ asmcmd -p                   
ASMCMD [+] > lsdg dddssss^?^?^?^?                                                                                                                  
ASMCMD-8001: diskgroup 'ddd' does not exist or is not mounted
ASMCMD [+] > exit                                            

The problem here is that the erase is not set correct. He needed to define the stty erase for the backspace key.

 
grid@mortir./grid/home/grid $
grid@mortir./grid/home/grid $ stty erase ^?

HTH – Antonio NAVARRO

Error When Deploy Agent In EM12c Because Of Trash

Today I was deploying agents in several machines when one of them failed in remote validations. The error text is the next;

El directorio base de instalación “/agent12c” no está vacío.

Of course, it is in spanish. Translate to English would be similar to;

The base directory “/agente12c” is not empty.

I opened a ssh to the machine and take a look at /agente12c, it had a file, maybe created to validate permissions on this directory for the agent user. The solution so easy like remove the file;

 
mortadela-1:/agent12c$ ls -rlt
total 1
-rw-r--r--   1 agente12c  oinstall       0 Apr 10 09:42 dummy.txt
mortadela-1:/agent12c$ rm dummy.txt
mortadela-1:/agent12c$ ls -rlt
total 0
mortadela-1:/agent12c$ pwd
/agent12c

HTH – Antonio NAVARRO.

11.2 RunInstaller Fails With Java Error libXm.so

Today I was intalling an Oracle 11.2.0.3 on Solaris 11. When I started the runInstaller I get an error from java installer tell me it don’t found the libXm.so library.

In my case the  “libmawt.so” library no exist, sorry I mean that this library is not installed at operating system level. For install it you must install the next package;

pkg://solaris/library/motif

You must be root to install the package as show below;

pkg install pkg://solaris/library/motif

HTH – Antonio NAVARRO

 

Minimal Checks For Install Database 12.1 On Solaris 11

Today I’ll like show the minimal checks for solaris operating system, these are the minimum requisites to install the database software.

These are the shell commands that we must to execute;

#
# Swap
#
# Between 1 GB and 2 GB	1.5 times the size of RAM
# Between 2 GB and 16 GB	Equal to the size of RAM
# More than 16 GB	16 GB
#
/usr/sbin/swap -l

#
# Tmp directory, >= 1 Giga
#
df -h /tmp

#
# Version
#
cat /etc/release

#
# Package dtrace
#
pkg info -r SUNWdtrc

#
# Specific packages
#
pkg info consolidation/osnet/osnet-incorporation  /x11/diagnostic/x11-info-clients /developer/build/make system/xopen/xcu4 | egrep -i 'Name|installed'

#
# Limits
#
ulimit -s
ulimit -n

#
# Default mask has to be 022
#
umask

#
# Hostname, must be qualified
#
hostaname

#
# check os Release
#
cat /etc/realease

#
# Range ports for TPC and UDP protocol
#
# Check the range ports for tcp protocol     RECOMENDATION 9000 - 655000
# Check the range ports for tcp protocol     RECOMENDATION 9000 - 655000
#
/usr/sbin/ndd /dev/tcp tcp_smallest_anon_port tcp_largest_anon_port

/usr/sbin/ndd /dev/udp udp_smallest_anon_port udp_largest_anon_port

Here you can see the output;

lion-1@:/oracle/app/orap12> #
lion-1@:/oracle/app/orap12> # Swap
lion-1@:/oracle/app/orap12> #
lion-1@:/oracle/app/orap12> # Between 1 GB and 2 GB 1.5 times the size of RAM
lion-1@:/oracle/app/orap12> # Between 2 GB and 16 GB        Equal to the size of RAM
lion-1@:/oracle/app/orap12> # More than 16 GB       16 GB
lion-1@:/oracle/app/orap12> #
lion-1@:/oracle/app/orap12> /usr/sbin/swap -l
swapfile             dev    swaplo   blocks     free
/dev/zvol/dsk/rpool/swap 303,1        16 134217712 134217712
lion-1@:/oracle/app/orap12> #
lion-1@:/oracle/app/orap12> # Tmp directory, >= 1 Giga
lion-1@:/oracle/app/orap12> #
lion-1@:/oracle/app/orap12> df -h /tmp
Filesystem             Size   Used  Available Capacity  Mounted on
swap                    77G    12M        77G     1%    /tmp
lion-1@:/oracle/app/orap12>
lion-1@:/oracle/app/orap12> #
lion-1@:/oracle/app/orap12> # Version
lion-1@:/oracle/app/orap12> #
lion-1@:/oracle/app/orap12> cat /etc/release
                            Oracle Solaris 11.3 SPARC
  Copyright (c) 1983, 2016, Oracle and/or its affiliates.  All rights reserved.
                            Assembled 03 August 2016
lion-1@:/oracle/app/orap12>
lion-1@:/oracle/app/orap12> #
lion-1@:/oracle/app/orap12> # Package dtrace
lion-1@:/oracle/app/orap12> #
lion-1@:/oracle/app/orap12> pkg info -r SUNWdtrc
             Name: SUNWdtrc
          Summary:
            State: Not installed (Renamed)
       Renamed to: consolidation/osnet/osnet-incorporation
                   developer/dtrace@0.5.11-0.133
        Publisher: solaris
          Version: 0.5.11
    Build Release: 5.11
           Branch: 0.133
   Packaging Date: October 27, 2010 06:37:09 PM
             Size: 0.00 B
             FMRI: pkg://solaris/SUNWdtrc@0.5.11,5.11-0.133:20101027T183709Z
lion-1@:/oracle/app/orap12>
lion-1@:/oracle/app/orap12> #
lion-1@:/oracle/app/orap12> # Specific packages
lion-1@:/oracle/app/orap12> #
lion-1@:/oracle/app/orap12> pkg info consolidation/osnet/osnet-incorporation  /x11/diagnostic/x11-info-clients /developer/build/make system/xopen/xcu4 | egrep -i 'Name|installed'
             Name: consolidation/osnet/osnet-incorporation
            State: Installed
             Name: developer/build/make
            State: Installed
             Name: system/xopen/xcu4
            State: Installed
             Name: x11/diagnostic/x11-info-clients
            State: Installed
lion-1@:/oracle/app/orap12>
lion-1@:/oracle/app/orap12> #
lion-1@:/oracle/app/orap12> # Limits
lion-1@:/oracle/app/orap12> #
lion-1@:/oracle/app/orap12> ulimit -s
32768
lion-1@:/oracle/app/orap12 ulimit -n
4096
lion-1@:/oracle/app/orap12>
lion-1@:/oracle/app/orap12> #
lion-1@:/oracle/app/orap12> # Default mask has to be 022
lion-1@:/oracle/app/orap12> #
lion-1@:/oracle/app/orap12> umask
0022
lion-1@:/oracle/app/orap12>
lion-1@:/oracle/app/orap12> #
lion-1@:/oracle/app/orap12> # Hostname, must be qualified
lion-1@:/oracle/app/orap12> #
lion-1@:/oracle/app/orap12> hostaname
lion-1
lion-1@:/oracle/app/orap12>
lion-1@:/oracle/app/orap12> #
lion-1@:/oracle/app/orap12> # Range ports for TPC and UDP protocol
lion-1@:/oracle/app/orap12> #
lion-1@:/oracle/app/orap12> # Check the range ports for tcp protocol     RECOMENDATION 9000 - 655000
lion-1@:/oracle/app/orap12> # Check the range ports for tcp protocol     RECOMENDATION 9000 - 655000
lion-1@:/oracle/app/orap12> #
lion-1@:/oracle/app/orap12> /usr/sbin/ndd /dev/tcp tcp_smallest_anon_port tcp_largest_anon_port
9000

65500
lion-1@:/oracle/app/orap12>
lion-1@:/oracle/app/orap12> /usr/sbin/ndd /dev/udp udp_smallest_anon_port udp_largest_anon_port
9000

65500
lion-1@:/oracle/app/orap12>

HTH – Antonio NAVARRO

Using at Command To Scheduler A Process

Usually, on Unix/Linux, we use the crontab to planify tasks or process but it is not the unique way, of course, maybe crontab is the best.

In this blog entry I like talk about at command, it is so easy to use. At command is very usefull when you haven’t permission or doesn’t exits the crontab file.

With the next command you check if any process or tasks have been planified by at;

at -l

For create a new schedule you can use the next command;

at -k -f /usr/tmp/my_command_file.sh now + 2 hours

Last command will execute the /usr/tmp/my_command_file.sh file in two hours from now, the file will be execute with Korn shell because of -k flag.
If you execute the at -l you will see something similiar to next output;

$ at -l
1485896164.a Tue Jan 31 20:56:04 2017

A problem of at command is that it not show the task/process/file to execute. For delete a at entry you need the identificator, the first column. It is shown below;

$ at -r 1485896164.a

HTH – Antonio NAVARRO