Skip to content

Instantly share code, notes, and snippets.

@JorgenEvens
Created December 30, 2013 13:58
Show Gist options
  • Save JorgenEvens/8182364 to your computer and use it in GitHub Desktop.
Save JorgenEvens/8182364 to your computer and use it in GitHub Desktop.
Run a query on a table without hitting the transaction log size
#!/bin/sh
TABLE="$1"
shift
db2 connect to dbarch
db2 +c "alter table $TABLE activate not logged initially"
db2 +c "$@"
db2 commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment