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.


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:

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


Changing Solaris host name and domain name

November 19, 2008


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)


Get every new post delivered to your Inbox.