allaripidugu Posted July 7, 2016 Report Share Posted July 7, 2016 I am working on POC for a data refresh job. I need to write a job which finds structural differences between tables from one environment to another environment and changes in strored procedures from one environment to another environment. I am working on db2 database please help me out on how to do this. Quote Link to comment Share on other sites More sharing options...
allaripidugu Posted July 7, 2016 Author Report Share Posted July 7, 2016 ltt Quote Link to comment Share on other sites More sharing options...
allaripidugu Posted July 7, 2016 Author Report Share Posted July 7, 2016 @loveindia bhayya any idea ela cheyacho. Quote Link to comment Share on other sites More sharing options...
allaripidugu Posted July 7, 2016 Author Report Share Posted July 7, 2016 ltt Quote Link to comment Share on other sites More sharing options...
150bryant Posted July 7, 2016 Report Share Posted July 7, 2016 structural differences antey enti? ey type of data? health finance etc? wat is a POC? Quote Link to comment Share on other sites More sharing options...
150bryant Posted July 7, 2016 Report Share Posted July 7, 2016 SELECT colname, colno, typeschema, typename FROM syscat.columns WHERE tabname = 'tab1' AND tabschema = 'schema' EXCEPT SELECT colname, colno, typeschema, typename FROM syscat.columns WHERE tabname = 'tab2' AND tabschema = 'schema' this will give u columns frm tabl1 tht are not in table2 Quote Link to comment Share on other sites More sharing options...
allaripidugu Posted July 8, 2016 Author Report Share Posted July 8, 2016 21 hours ago, 150bryant said: structural differences antey enti? ey type of data? health finance etc? wat is a POC? Finance bhayya. 21 hours ago, 150bryant said: SELECT colname, colno, typeschema, typename FROM syscat.columns WHERE tabname = 'tab1' AND tabschema = 'schema' EXCEPT SELECT colname, colno, typeschema, typename FROM syscat.columns WHERE tabname = 'tab2' AND tabschema = 'schema' this will give u columns frm tabl1 tht are not in table2 Thank you maaya actually ninna stack overflow lo post chesthe similar solution dorkindhi. I will query syscat.columns in server1 and export it to a file and SFTP the file to server2, load the SFTP ed file into a temporary table in server2 and comapre to syscat,columns in the server2. Quote Link to comment Share on other sites More sharing options...
ronitreddy Posted July 8, 2016 Report Share Posted July 8, 2016 GP.. Okavela antha ayyi success aithe SP ikkada share cheyi bro..vere vallaki use avuddi.. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.