Unloading data with dbunload
You use the dbunload command to unload data from IBM® Db2® Warehouse systems into a file. Depending on the location of the output data file directory, you can use the dbunload command in local mode or remote mode, when the files must be transferred over the network.
About this task
- Local mode means that the output data file is directly available for the database server on its filesystem. You would usually run the dbunload command from the Db2 Warehouse container.
- Remote mode is used if dbunload is invoked from a client machine, that is you use the dbunload command from the client container. In this case, data is unloaded into a file stored on the client filesystem so it needs to be transferred over the network.
Note: Ensure that the output
file directory has the correct permissions set, that is, when unloading data to a particular
directory, the user which authenticates to a database must have
write permissions
on that directory. For example, when unloading data as bluadmin when the output
file directory is a home directory of the db2inst1 user, then
that directory must have 777 mode set.