From 7ab99f41cf75da22e523c132cb782bb20102b348 Mon Sep 17 00:00:00 2001 From: Szabolcs Vasas Date: Thu, 25 Oct 2018 08:36:29 +0200 Subject: [PATCH] SQOOP-3355: Document SQOOP-1905 DB2 --schema option (Fero Szabo via Szabolcs Vasas) --- src/docs/user/connectors.txt | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/docs/user/connectors.txt b/src/docs/user/connectors.txt index 59e3e00b..b5ec9269 100644 --- a/src/docs/user/connectors.txt +++ b/src/docs/user/connectors.txt @@ -20,6 +20,27 @@ Notes for specific connectors ----------------------------- +DB2 JDBC Connector +~~~~~~~~~~~~~~~~~~ + +This section contains information specific to DB2 JDBC Connector. + +Schema support +^^^^^^^^^^^^^^ + +When connecting to DB2 and using the import-all-tables or the list-tables tools, +one can use the +\--schema+ tool option to specify the schema to use. If the option +is not present, then the schema of the current user (specified with the +\--username+ option) will be used as a default. +Please note that this option doesn't work for any other tools at the moment, +(such as the import tool or the export tool). + +Examples: + +---- +$ sqoop list-tables --connect $CONN --username $USER --password $PASS -- --schema DB2INST2 +$ sqoop import-all-tables --connect $CONN --username $USER --password $PASS -- --schema DB2INST2 +---- + MySQL JDBC Connector ~~~~~~~~~~~~~~~~~~~~