Wednesday, February 9, 2011

Solaris Technotes

  • Enable rsh in S10:
http://unixadministrator.blogspot.com/2008/12/how-to-enable-rsh-on-solaris-10.html
Also, verify that the account from where you are setting rsh has a password ....

  • corestat does not show output
verify that cpustat command is giving the right output.if cpustat says resource currently unavailable, reboot the system.The cpustat command that corestat executes can be found in corestat file ....
  • Kill all oraclebench process 
  ps -ef | grep oraclebench | awk '{print $2}' | xargs -n1 kill -9

  • List ora_smon_test process

pgrep -fl ora_smon_test 
  • To remove all the files from  a directory , when rm gives "list too long" error
        find . -name '*' | xargs rm
  • To enable ssh for root  

  • Edit /etc/ssh/sshd_config file 
      • search for: PermitRootLogin no 
      • change the 'no' to yes.
  • Edit etc/default/login 
    • comment out "CONSOLE=/dev/console"
  • Restart sshd 
    • with following command
      •  # svcadm restart svc:/network/ssh:default
    • Or as under
      •  # /lib/svc/method/sshd restart
 
  •  Sqlplus cheatsheet:
 
  • http://www.adp-gmbh.ch/ora/sqlplus/use_vars.html
  • http://www.cs.csubak.edu/~wang/CS342/SqlPlus.htm

     

No comments:

Post a Comment