Uninstall File - Aster Client

Teradata Aster® Client Guide

Product
Aster Client
Release Number
7.00
Published
May 2017
Language
English (United States)
Last Update
2018-04-13
dita:mapPath
hki1475000360386.ditamap
dita:ditavalPath
Generic_no_ie_no_tempfilter.ditaval
dita:id
B700-2005
lifecycle
previous
Product Category
Software

This command removes the file or SQL-MapReduce function from Aster Database.

UNINSTALL FILE 'filename' from schema  schemaname

This is an example:

public void testUninstall() {
String stmt1 = "UNINSTALL file  'abc.txt' from schema uploadfile  ;";
String stmt2 = "UNINSTALL file  'odbcng.zip' from schema uploadfile  ;";
String stmt3 = "UNINSTALL file  'odbcng.tar.gz'   ;";
try {
conn_.setAutoCommit(false);
Statement s = conn_.createStatement();
s.executeUpdate(stmt1);
s.executeUpdate(stmt2);
s.executeUpdate(stmt3);
conn_.commit();
s.close();
} catch (Exception e) {
try {
conn_.rollback();
} catch (SQLException e1) {
e1.printStackTrace();
}
fail(e.getMessage());
}
}