Wednesday, December 27, 2017

Changing the Hostname and Gateway in Linux Environment

Add IP to the Linux Machine.

Verify the IP current settings

[root@xxx] $route -n

Add IP to the
[root@xxx] $sudo ifconfig eth0 172.16.74.10 netmask 255.255.255.0

Add Default Gateway
[root@xxx] $sudo route add default gw 172.16.74.1 eth0

Add Hostname
Modify the below file as below.
/etc/sysconfig/network

NETWORKING=yes
HOSTNAME="plain.domainname.com"
GATEWAY="172.16.74.1"
GATEWAYDEV="eth0"
FORWARD_IPV4="yes"

Retest the issue.
Reboot the server

VNCSERVER "Command Not Found" in Solaris 11

root@labsys2:/software# pkg install --accept solaris-desktop
           Packages to install: 322
            Services to change:  12
       Create boot environment:  No
Create backup boot environment: Yes

DOWNLOAD                                PKGS         FILES    XFER (MB)   SPEED
Completed                            322/322   46542/46542  556.9/556.9    0B/s


PHASE                                          ITEMS
Installing new actions                   77190/77190
Updating package state database                 Done
Updating package cache                           0/0
Updating image state                            Done
Creating fast lookup database                working -Dec 27 17:35:40 labsys2 sendmail[22098]: [ID 702911 mail.alert] unable to qualify my own domain name (labsys2) -- using short name
Creating fast lookup database                   Done
Updating package cache                           1/1
You have new mail in /var/mail/root
root@labsys2:/software#
root@labsys2:/software# vncserver

You will require a password to access your desktops.

Password:
Verify:
xauth:  file /root/.Xauthority does not exist

New 'labsys2:1 (root)' desktop is labsys2:1

Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/labsys2:1.log

root@labsys2:/software#

Saturday, December 16, 2017

Debugging RMAN Utility

rman target xx/xx@xx debug all log=mylog trace=mytrace --with catalog 

execute the backup command of controlfile and crosscheck 

rman target / debug all log=mylog trace=mytrace --without catalog 


execute the backup command of controlfile and crosscheck