DB2: to export a table

 $ db2 "select count(*) from wcs.XGCPMWSTOREINVENTORY"


1

-----------

    3604155


  1 record(s) selected.


[prd1ins1@db2prd601  prd1ins1]

$ db2 -v "export to /usr/opt/app/dbdump/prd1ins1/XGCPMWSTOREINVENTORY_prod.del of del lobs to /usr/opt/app/dbdump/prd1ins1 select * from wcs.XGCPMWSTOREINVENTORY"

export to /usr/opt/app/dbdump/prd1ins1/XGCPMWSTOREINVENTORY_prod.del of del lobs to /usr/opt/app/dbdump/prd1ins1 select * from wcs.XGCPMWSTOREINVENTORY

SQL3104N  The Export utility is beginning to export data to file

"/usr/opt/app/dbdump/prd1ins1/XGCPMWSTOREINVENTORY_prod.del".


SQL3105N  The Export utility has finished exporting "3604155" rows.



Number of rows exported: 3604155


Comments

Popular posts from this blog

Oracle: To clean up WRI$_ADV_OBJECTS