Created
August 14, 2016 08:38
-
-
Save zyjibmcn/eff46d3587032b6d4977301e60527204 to your computer and use it in GitHub Desktop.
Change Schema Names in DB2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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