Starting JavaDB for Sun Portal Server

November 20, 2008

Starting/stopping JavaDB:

/usr/jdk/entsys-j2se/bin/java -classpath /opt/SUNWjavadb/lib/derby.jar:/opt/SUNWjavadb/lib/derbytools.jar:/opt/SUNWjavadb/lib/derbynet.jar -Dderby.system.home=/var/opt/SUNWportal/derby org.apache.derby.drda.NetworkServerControl <start|shutdown>

The process will be connected to the terminal from which it was started. To leave it running in the background, use the nohup command.

References: http://docs.sun.com/app/docs/doc/819-5025/6n74td5jt?a=view


Adding new disk to Solaris 10 on VMWare

November 19, 2008

A wonderful and thorough guide on adding new disks to Solaris 10 on VMWare:

http://blogs.sun.com/harcey/entry/solaris_x86_vmware_adding_a


Adding swap space in Solaris

November 19, 2008

When desperate for more swap space in Solaris, this will add more swap space temporarily until the next reboot:

mkfile 512m /path/to/new/swap/file

swap -a /path/to/new/swap/file

Verify the new swap space:

swap -l

References: http://www.tech-recipes.com/rx/163/add-swap-space-temporarily-in-solaris/


Changing Solaris host name and domain name

November 19, 2008

References: http://pantsblazing.com/geek/get_solaris_online.html

In addition, edit /etc/defaultdomain

After the above is done, restart network services: svcadm restart network/physical


ufsdump and ufsrestore

November 4, 2008
  • ufsdump 0f /path/to/mydumpfile /export/home/mystuffs-to-be-backup/
  • ufsrestore fr mydumpfile  (this will dump the contents in the current working directory)

Follow

Get every new post delivered to your Inbox.