Skip to content

Instantly share code, notes, and snippets.

@zyjibmcn
Created August 14, 2016 08:38
Show Gist options
  • Save zyjibmcn/eff46d3587032b6d4977301e60527204 to your computer and use it in GitHub Desktop.
Save zyjibmcn/eff46d3587032b6d4977301e60527204 to your computer and use it in GitHub Desktop.
Change Schema Names in DB2
1. Issue "db2move <dbname> export". This will create several files, including a db2move.lst file, in your current directory.
2. Change the existing schema name with new schema name with ":1,$ s/<SEARCH>/<REPLACE>/g" in db2move.lst.
3. Issue "db2move <dbname> import" (to import the data into the tables.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment