13.07.2015 Views

Saving My Time Using Scripts Speed up IBM ... - DanNotes

Saving My Time Using Scripts Speed up IBM ... - DanNotes

Saving My Time Using Scripts Speed up IBM ... - DanNotes

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>IBM</strong> DB2 / SQL>>DB2 useful commands• Get a list of all databases of an db2 instance– Linux• db2 list database directory | grep alias | awk '{print $4}' | sort– Windows (Powershell)• db2cmd -i -c -w "db2 list database directory |where {$_ -match "alias"} | %{ $_.Split('=')[1]; }"• Show active databases– db2 list active databases52

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!