Skip to main content

Posts

Using Posix 7zip on the Cosole for Fast Compression

7zip has a fast compression algorithm using LZMA2 with as many threads (logic processors, cores, etc) as you like.  In this article we are focusing on the Posix version of 7zip for linux/unix. Here is an example command: 7za a -m0=lzma2 -mmt=2 -mx=1 MyZip.7z mydatabase.dpdmp -m0=lzma2 tells 7zip to use the LZMA2 compression algorithm. -mmt specifies the number of logic processors to use (multi threads) -mx=1 tells 7zip to use the fastest compression This is faster and better compression than zip and gzip and while comparable to bzip2 in size it is way faster than bzip2. Throw that together with a command that detects the number of logical processors and you get a function that discovers how many CPU's to use. LCPU=`cat /proc/cpuinfo | grep processor | wc -l` 7za a -m0=lzma2 -mmt=${LCPU} -mx=1 MyZip.7z mydatabase.dpdmp
Recent posts

Remotely Give Local Admin Privileges to Domain Account on Windows Server

It is assumed that you have a privileged account (read - domain admin) to be able to grant local admin privileges on servers. You will require psexec from sysinternals. C:\Windows\system32>psexec \\TestServer cmd PsExec v1.98 - Execute processes remotely Copyright (C) 2001-2010 Mark Russinovich Sysinternals - www.sysinternals.com Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. Confirm we are connected to the correct server. C:\Windows\system32>hostname Testserver Now issue the command to grant local admin privileges and exit the server. C:\Windows\system32>net localgroup administrators corp\jeremy /add The command completed successfully. C:\Windows\system32>exit cmd exited on testserver with error code 0.

Windows 7 x64 and Oracle 10g R2 Client Installation

By default Windows 7 x64 is not support in Oracle 10g R2, but 10gR2 does support Windows 2008 x64, so it should work with Windows 7 after some tweaking. Tweak the following two files: .\stage\prereq\db\refhost.xml .\stage\prereq\db_prereqs\db\refhost.xml To add the BOLD text below: <certified_systems> <!--Microsoft Windows 7--> <operating_system> <version value="6.1"> </operating_system> </certified_systems> Next edit the ./install/oraparam.ini file making the BOLD changes/addition: [Certified Versions] #You can customise error message shown for failure, provide value for CERTIFIED_VERSION_FAILURE_MESSAGE Windows=5.0,5.1,5.2,6.0, 6.1 Then just run the installer as Administrator and you are done.

Oracle Enterprise Manager Java Console and Vista 64 bit

I recently ran into an issue (again) where I was running the Java version of Oracle Enterprise Manager (OEM) 10g to manager my Oracle Databases under Vista Business 64-bit. Oracle OEM wasn't retaining my database tree settings. I would delete an old database and add a new one only to find out after I restarted the app that my changes were not retained/saved. With the help of the MS Sysinternals utility called Process Monitor I was able to track down where these database preferences gets saved to. Turns out that they are in $ORACLE_HOME\sysman\config\pref\dbastudio-%USERNAME%.crd. After tweaking the security permissions (taking ownership and allowing my account 'full access') OEM returned to normal saving operation.

My FireFox 2.0 Setup - Extenstions, Themes, and Search Engines

Well I have done it, I've formatted and re-installed Windows XP. One of the very first programs I install is FireFox. Version 3 is still in Beta (more on that in a different post) so I stick with 2.0.0.11, it is far more stable and has more working extensions and themes. I am currently using the Nasa Night Launch theme for a couple of reasons. Firstly I prefer dark colored themes, it doesn't disturb me or my wife (as much) at night and it saves on power consumption over the long term. Secondly, it does work with FireFox 3 right now. So what extensions do I have? Adblock Plus - the must have ad blocker del.icio.us Bookmarks - points to my bookmarks FlashGot - for those large downloads Forecastfox - I love the long range weather forecasts FoxyTunes - Integrates nicely with iTunes Google Browser Sync - Private bookmark syncing and I can sync with my work computer Google Photos Screensaver IETab - Becuase some pages can only be viewed in IE NoScript - Another must have security...