Minimize
Blogger List

Johannes Ahrends
Toad and Oracle

Ben Boise
Toad SC Discussions

Kevin Dalton
Benchmark Factory

Steven Feuerstein
PL/SQL Obsession

Devin Gallagher
Toad SC discussions

Stuart Hodgins
JProbe Discussions

  Henrik "Mauritz" Johnson
Toad Tips & Tricks on the "other" Toads
  Mark Kurtz
Toad SC discussions
  Michael Lumbard
Toad SC discussions
Daniel Norwood
Toad for Data Analysts,
Toad Extension for Visual Studio
Debbie Peabody
Toad for Data Analysts
Gary Piper
Toad Reports Manager
John Pocknell
Toad for Oracle, JProbe
Kuljit Sangha
Toad SC discussions
Bert Scalzo Indicates Oracle ACE status
Toad for Oracle, Data Modeling, Benchmarking
Jeff Smith
Toad product family
Richard To
SQL Optimization
Jim Wankowski
DB2 - LUW and z/OS
John Weathington
  Toad Data Modeler Opens in a new window
Data Modeling
 
  Real Automated Code Testing for Oracle
Quest Code Tester blog
 
Minimize
Blog Tags
toad for oracle (122)
oracle (62)
plsql (46)
sql optimization (37)
toad for data analysts (28)
code tester (19)
toad for ibm db2 (13)
automation (11)
batch optimizer (10)
virtualization (10)
schema browser (9)
toad for sql server (9)
data grid (8)
sql (8)
sql editor (8)
toad data modeler (8)
benchmark factory (7)
excel (7)
query builder (7)
report manager (7)
toad extension (7)
visual studio (7)
11g (6)
configuration (6)
freeware (6)
health check (6)
vmware (6)
connect (5)
dba module (5)
er diagrammer (5)
F4 (5)
linux (5)
refactoring (5)
spotlight (5)
unicode (5)
compare (4)
debugger (4)
export (4)
formatter (4)
make code (4)
rman (4)
strip code (4)
benchmark (3)
bfscript (3)
bulk collect (3)
code templates (3)
code xpert (3)
database browser (3)
db2 (3)
notebook (3)
oem (3)
RAC (3)
session browser (3)
speed (3)
sql optimizer (3)
toad for mysql (3)
tpc-c (3)
9.7 (2)
alert log (2)
app designer (2)
awr (2)
code insight (2)
code snippets (2)
collection (2)
compare and sync (2)
compliance (2)
data generator (2)
data warehouse (2)
database explorer (2)
database monitor (2)
explain (2)
forall (2)
ftp (2)
group execute (2)
handbook (2)
installation (2)
job scheduler (2)
multi-task (2)
nested table (2)
os command (2)
profiler (2)
recovery (2)
release history (2)
save as (2)
schema compare (2)
sql recall (2)
stats pack (2)
subversion (2)
team coding (2)
trace file browser (2)
while loop (2)
10g (1)
64 bit (1)
7zip (1)
action (1)
addm (1)
alter (1)
ansi join (1)
array (1)
ccleaner (1)
code coverage (1)
code road map (1)
CRON (1)
cursor for loop (1)
data browser (1)
data subset (1)
database probe (1)
dbms_flashback (1)
dbms_profiler (1)
ddl (1)
feuerstein (1)
filezilla (1)
flash drive (1)
flow control (1)
for loop (1)
group policy manager (1)
hints (1)
import (1)
index (1)
inheritance (1)
invoker rights (1)
ipad (1)
java (1)
latency (1)
log switch (1)
logical model (1)
ltrim (1)
master-detail browser (1)
monitor (1)
multi-select (1)
naming standards (1)
network (1)
object explorer (1)
OEBS (1)
package (1)
parser (1)
partitioning (1)
performance (1)
pragma (1)
project manager (1)
RAT (1)
revo (1)
REXEC (1)
schema report (1)
script manager (1)
search (1)
set operator (1)
sga (1)
slow (1)
sonarsource (1)
source control (1)
space projection (1)
sql monitor (1)
sql navigator (1)
sql script (1)
sql tracker (1)
sql*plus (1)
standards (1)
statistics (1)
stored procedure (1)
string parser (1)
sub-model (1)
sub-type (1)
synch (1)
synchback (1)
TELNET (1)
toad (1)
trace (1)
unit test (1)
unix (1)
usb (1)
utility (1)
v10 (1)
v9.5 (1)
version control (1)
waits (1)
workload replay (1)
workspace (1)
xml (1)
 
WELCOME, GUEST
 
 

Blogs
Toad and Database Commentaries

Toad World blogs are a mix of insightful how-tos from Quest experts as well as their commentary on experiences with new database technologies.  Have some views of your own to share?  Post your comments!  Note:  Comments are restricted to registered Toad World users.

Do you have a topic that you'd like discussed?  We'd love to hear from you.  Send us your idea for a blog topic.


Nov 19

Written by: Bert
Wednesday, November 19, 2008 1:32 PM  RssIcon

Lot’s of people have asked “How can I setup Toad to run off a flash drive?” The reason for this question varies in nature and intent by requestor – but the general concept is that some users need the ability to carry Toad with them. Some are contractors who must use whatever computer and/or desk is open that day. Some are database developers who must travel around their company to perform or assist with various tasks. And finally, some are DBA’s who need to travel around while diagnosing and troubleshooting problems. In all cases, the request makes total sense (i.e. making portable a legal license). Now we have a way to do it!

Note – Toad is normally licensed per seat, therefore this is not a mechanism or technique to circumvent or violate the spirit of that license agreement. The basic idea is that per seat means for a single USB Flash Drive being used by a single user on a single computer at a time – and thus no concurrency.
 
Here are the steps:
  1. Format the USB Flash Drive as an NTFS file system.
     
    1. File explorer, right hand mouse, properties, hardware tab
    2. Select the USB Flash Drive and press the properties button
    3. Policies tab, choose Optimize for Performance and press OK
    4. Format the USB Flash Drive – NTFS should now be available
       
  2. Create TOAD_FLASH directory on your USB Flash Disk (at topmost level)
     
  3. Download and then unzip the TOAD_FLASH.zip file onto your USB Flash Disk
     
  4. Unzip the contained Oracle Instant Client installation file onto your USB Flash Disk
     
  5. Install Toad for Oracle and copy the Toad home (install directory) to your flash drive
     
    Example: xcopy /s /q "C:\Program Files\Quest Software\Toad 9.7" "X:\Toad 9.7\"
     
  6. Run TOAD_FLASH_SETUP.bat file to install (and save pre-existing Toad setups)
     
  7. Run TOAD_FLASH_RUN.bat file to launch Toad (must enter license first time)
     
  8. Run TOAD_FLASH_RESTORE.bat file to restore PC back to prior Toad state
You can download the file at http://www.bertscalzo.com/Files/TOAD_FLASH.zip
 

6 comment(s) so far...


Re: Run Toad off a USB Flash Drive

Why the NTFS file system? Speed issues?

By wdelange on   Thursday, November 20, 2008 11:02 PM

Re: Run Toad off a USB Flash Drive

In order to create a directory shortcut (i.e. link) so that Toad thinks it's running off C:\Documents and Settings\username\Application Data\Quest Software\Toad when in fact it's been redirected to the flash drive. This Windows feature requires the NTFS file system.

By bscalzo on   Saturday, November 22, 2008 6:12 AM

Re: Run Toad off a USB Flash Drive

Will this or something similar work for Toad for SQL Server?

By DavidSt on   Thursday, December 11, 2008 7:36 AM

Re: Run Toad off a USB Flash Drive

Toad for SQL Server is built from a completely different architecture as Toad for Oracle so there are some differences. Toad for SQL Server does not currently provide any way to direct it to look for setting files, which are normally found in the user’s profile folder, on a flash drive. Also, there are some registry settings that may not be present on a new machine that would most likely cause the application to fail. The best way to move Toad for SQL Server between different customer sites would be to install it on a laptop.

By dchristian on   Monday, January 05, 2009 12:35 PM

Re: Run Toad off a USB Flash Drive

Hi all, I have made some reverse engineering and found a workaround to get "Toad for SQL Server" working from Portable Flash drive!! :-) it is a small batch file. Which does all the stuff befor the app. is started and revert it after the app. is terminated. Its very simple and basic stuff inside. Improvements or a NSIS launcher as it is made for other apps. (see at portableapps.com) would be nice. i created a directory and placed inside it the directory ToadSQL (application directory) and ToadSQL_Data (the settings directory. What it does: - Move the settings directory to the side (if a installation is in place). - Copy the settings from the portable drive into place. - launches the NGenWrapper.exe coming with the app. (to register the dlls and do sime other optimisation stuff) - set registry settings. - Start the app and wait ... - after termination the dlls are unregistered. - the registry entries are extracted and stored - the settings are copied to the USB - original settings are restored - original registry settings are restored. Here is the batchfile source ... ---8<---------------------------------------------------- @ECHO OFF SET APP_DIR=%CD%\ToadSQL SET APP_DATA_DIR=%CD%\ToadSQL_Data SET LCD=%CD% SET TOAD_HOME=%APP_DIR% SET TOAD_APPDATA=%USERPROFILE%\Local Settings\Application Data\Quest Software\Toad for SQL Server Freeware 4.1 SET TOAD_APPDATA2=%USERPROFILE%\Local Settings\Application Data\Quest Software SET TOAD_USB_DATA=%APP_DATA_DIR% ECHO ==== ECHO Copy portable settings ren "%TOAD_APPDATA%" "Toad for SQL Server Freeware 4.1_backup" xcopy /E /Y /C /I /H /R /K /Q "%TOAD_USB_DATA%" "%TOAD_APPDATA%" ECHO Delete old backup file ... and create new backup of registry entries DEL /f /q "%APP_DATA_DIR%\TOAD_FLASH_backup.hiv" ECHO Create new backup of registry entries REG SAVE "HKEY_CURRENT_USER\software\Quest Software\Toad for SQL Server Freeware" "%APP_DATA_DIR%\TOAD_FLASH_backup.hiv" ECHO Delete backuped registry entries REG DELETE "HKEY_CURRENT_USER\software\Quest Software\Toad for SQL Server Freeware" /va /f ECHO Restore Portable Reg Settings REG RESTORE "HKEY_CURRENT_USER\software\Quest Software\Toad for SQL Server Freeware" "%APP_DATA_DIR%\TOAD_FLASH_portable.hiv" ECHO Add install directory path to registry REG ADD "HKEY_CURRENT_USER\software\Quest Software\Toad for SQL Server Freeware" /f /v INSTALLDIR /d "%APP_DIR%" REG ADD "HKEY_CURRENT_USER\software\Quest Software\Toad for SQL Server Freeware\4.1" /f /v INSTALLDIR /d "%APP_DIR%" ECHO ==== ECHO Register .NET dlls ... "%APP_DIR%\NGenWrapper.exe" ECHO Start Toad cd %TOAD_USB_DATA% "%APP_DIR%\toad.exe" cd %LCD% ECHO UN-Register .Net dlls ... DISABLED "%APP_DIR%\ngenUninstall.bat" ECHO ==== ECHO Create new backup of registry entries del /Q "%APP_DATA_DIR%\TOAD_FLASH_portable.hiv" REG SAVE "HKEY_CURRENT_USER\software\Quest Software\Toad for SQL Server Freeware" "%APP_DATA_DIR%\TOAD_FLASH_portable.hiv" ECHO Delete backuped registry entries REG DELETE "HKEY_CURRENT_USER\software\Quest Software\Toad for SQL Server Freeware" /va /f ECHO Restore Backup Reg Settings REG RESTORE "HKEY_CURRENT_USER\software\Quest Software\Toad for SQL Server Freeware" "%APP_DATA_DIR%\TOAD_FLASH_backup.hiv" ECHO Copy Settings back to Portibla data directory xcopy /E /Y /C /I /H /R /K /Q "%TOAD_APPDATA%" "%TOAD_USB_DATA%" ECHO data directory rmdir /S /Q "%TOAD_APPDATA%" ECHO Rename old settings dir ren "%TOAD_APPDATA%_backup" "Toad for SQL Server Freeware 4.1" ECHO ... END of things REM pause ---8<---------------------------------------------------- Have fun with it!!! :-)

By onetimeposter on   Thursday, January 08, 2009 9:31 AM

Re: Run Toad off a USB Flash Drive

Can I use a U3 Smart USB Drive and launch Toad from the U3 Lauchpad? I don't know if I can reformat it to NTFS without losing the U3 applications

By Seansoft on   Thursday, January 15, 2009 9:44 AM
Search Blog Entries