Changes for page JDBC2XML Usage
Last modified by christoph_lechleitner@iteg_at on 2013-10-08 03.37:51
From version 3.1
edited by christoph_lechleitner@iteg_at
on 2012-08-06 10.41:57
on 2012-08-06 10.41:57
Change comment:
debian package and driver path mysql
To version 9.1
edited by christoph_lechleitner@iteg_at
on 2013-10-08 03.37:50
on 2013-10-08 03.37:50
Change comment:
Added auth options to most command introductions
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Objects (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -15,7 +15,7 @@ 15 15 ==== {{id name="JDBC2XMLUsage-DumpingaDBtoXML"/}}Dumping a DB to XML ==== 16 16 17 17 {{code language="none"}} 18 -jdbc2xml --url <jdbc-url> --file <path-to-file> 18 +jdbc2xml --url <jdbc-url> --user <jdbc-user> --password <jdbc-password> --file <path-to-file> 19 19 {{/code}} 20 20 21 21 See below for details and example for JDBC URLs. ... ... @@ -23,13 +23,13 @@ 23 23 ==== {{id name="JDBC2XMLUsage-RestoringaDBfromXML"/}}Restoring a DB from XML ==== 24 24 25 25 {{code language="none"}} 26 -xml2jdbc --file <path-to-file> --url <jdbc-url> 26 +xml2jdbc --file <path-to-file> --url <jdbc-url> --user <jdbc-user> --password <jdbc-password> 27 27 {{/code}} 28 28 29 29 ==== {{id name="JDBC2XMLUsage-CopyingfromoneDBtoanother"/}}Copying from one DB to another ==== 30 30 31 31 {{code language="none"}} 32 -jdbc2jdbc --from-url <jdbc-url> --to-url <jdbc-url> 32 +jdbc2jdbc --from-url <jdbc-url> --to-url <jdbc-url> --user <jdbc-user> --password <jdbc-password> 33 33 {{/code}} 34 34 35 35 ==== {{id name="JDBC2XMLUsage-ParseandcopyanXMLfile"/}}Parse and copy an XML file ==== ... ... @@ -43,13 +43,13 @@ 43 43 ==== {{id name="JDBC2XMLUsage-TestDBconnectionandserverstatus"/}}Test DB connection and server status ==== 44 44 45 45 {{code language="none"}} 46 -jdbcping --url <jdbc-url> 46 +jdbcping --url <jdbc-url> --user <jdbc-user> --password <jdbc-password> 47 47 {{/code}} 48 48 49 49 ==== {{id name="JDBC2XMLUsage-ExtractpartsofaDB"/}}Extract parts of a DB ==== 50 50 51 51 {{code language="none"}} 52 -jdbcextr --url <jdbc-url> --file <path-to-file> 52 +jdbcextr --url <jdbc-url> --user <jdbc-user> --password <jdbc-password> --file <path-to-file> 53 53 {{/code}} 54 54 55 55 == {{id name="JDBC2XMLUsage-JDBCURLs"/}}JDBC URLs == ... ... @@ -60,12 +60,14 @@ 60 60 61 61 {{code language="none"}} 62 62 # MySQL 63 -jdbc:mysql://localhost:3306/MYDATABASE 63 +jdbc:mysql://localhost:3306/MYDATABASE?useCursorFetch=true 64 64 65 65 # MSSQL 66 66 jdbc:sqlserver://localhost:1433;databaseName=MYDATABASE; 67 67 {{/code}} 68 68 69 +The use of cursor fetching in mysql is highly recommended in order to circumvent java heap space exceptions while dumping the content of large tables. 70 + 69 69 == {{id name="JDBC2XMLUsage-Fulllistofoptions"/}}Full list of options == 70 70 71 71 ==== {{id name="JDBC2XMLUsage-Databaseaccess"/}}Database access ==== ... ... @@ -253,16 +253,13 @@ 253 253 --debug-startup 254 254 {{/code}} 255 255 256 -=== {{id name="JDBC2XMLUsage-Driverpackagesandpaths"/}}Driver packages and paths === 258 +=== {{id name="JDBC2XMLUsage-Driverpackagesandpaths,andotherBackendspecifictips"/}}Driver packages and paths, and other Backend specific tips === 257 257 258 - ====== {{id name="JDBC2XMLUsage-MySQL-Driver"/}}MySQL-Driver ======260 +See 259 259 260 -{{code language="none"}} 261 -apt-get install libmysql-java 262 - 263 -jdbc2xml ... --jdbc-drivers /usr/share/java/mysql-connector-java.jar 264 -{{/code}} 262 +(% style="list-style-type: square;" %) 263 +* [[MySQL Tips>>doc:JDBC2XML.JDBC2XML Usage.MySQL Tips.WebHome]] 264 +* [[doc:JDBC2XML.JDBC2XML Usage.MSSQL Tips.WebHome]] 265 +* [[doc:KH.Database Tips.JDBC Snippets.WebHome]] with common JDBC URL examples 265 265 266 -TBC. 267 - 268 268
- Confluence.Code.ConfluencePageClass[0]
-
- Id
-
... ... @@ -1,1 +1,1 @@ 1 -656 8181 +656916 - URL
-
... ... @@ -1,1 +1,1 @@ 1 -https://clazzes.atlassian.net/wiki/spaces/JDBC2XML/pages/656 818/JDBC2XML Usage1 +https://clazzes.atlassian.net/wiki/spaces/JDBC2XML/pages/656916/JDBC2XML Usage