Monday, April 11, 2011

Mounting an NTFS drive on Linux
I recently needed to mount a USB drive, containing a large VM, onto my linux 5.5 laptop.  Here is the command to do just that.
mount -t ntfs-3g /dev/sdb1 /mnt/sdb1 -o force
The force was necessary.  You may also have to install fuse-ntfs-3g RPM package is not already on your linux distro.

Sunday, January 16, 2011

Rebuilding the Oracle 11g DB OEM repository
Sometimes this may be needed if the IP address changes for the host...for example if using an EC2 image that gets a new static IP.  Use these commands (the lsnr and DB must be running first):
1.  Drop the OEM DB
./emca -deconfig dbcontrol db -repos drop -SID orcl -PORT 1521 -SYSMAN_PWD -SYS_PWD
2.  Create the new OEM DB
./emca -config dbcontrol db -repos create -SID orcl -PORT 1521 -SYSMAN_PWD -SYS_PWD -DBSNMP_PWD