com.bankframe.admin.tools
Class MigrateMetaData
java.lang.Object
com.bankframe.admin.tools.MigrateMetaData
public class MigrateMetaData
- extends Object
This class migrates the Meta-data txn_field table prior to MCA 4.0 to the MCA 4.0 style meta-data tables
Usage:
java com.bankframe.admin.tools.MigrateMetaData -url [jdbcUrl] -driver [jdbcDriver] -u [username] -p [password] -t [tablespace] -script [script file name] [-OnlyScript] [-DB2ScriptFormat]
Options:
-url
The JDBC URL of the database
-driver
The JDBC Driver to use to access the database. Note the driver must be in the classpath
-u
The username to connect to the database as
-p
The password to connect to the database as
-t
The tablespace to use. This defaults to the username
-script
Once the meta-data has been converted the contents of the meta-data tables are extracted to an SQL script file.
If this is null no script is created
-OnlyScript
This option specifies that only the script is to be updated
from the new tables that have been previously updated, the database tables are not changed
MigrateMetaData
public MigrateMetaData()
- Constructor
main
public static void main(String[] args)
- Parameters:
args
- String array
migrateMetaData
public void migrateMetaData(String url,
String driver,
String username,
String password,
String tablespace,
String script,
boolean onlyScript)
throws SQLException,
IOException
- This method initialises tool and starts processing
- Parameters:
url
- is the JDBC URL of the databasedriver
- is the JDBC Driver to use to access the database.
Note the driver must be in the classpathusername
- is the username to connect to the database aspassword
- is the password to connect to the database astablespace
- is the tablespace to use. This defaults to the usernamescript
- is contents script file name. Once the meta-data has been
converted the contents of the meta-data tables are extracted to an SQL script file.
If this is null no script is created.onlyScript
- specifies that only the script is to be updated. This uses the
new database tables created previously, the database tables are not affected.
- Throws:
SQLException
IOException
Copyright © 2005, 2007, Oracle. All rights reserved.