Hi TJ, Permissions: - Just to query the database you should not need any special permissions. - If Tamino Security is being used then you need to have your user-id added to Tamino Security. - If you are talking about the being able to perform database (DBA) functions such as starting and stopping the database then you need to have your user-id added to the System Management Hub (SMH) as an administrator. Test db access: The easiest command is to ping the database from your browser’s Address (command) line. It command would look like: http://the-Tamino-host/tamino/the-db-name/?_diagnose=ping To ping mydb on my pc the command is: http://localhost/tamino/mydb?_diagnose=ping If the database is up it will return “Server is alive” Java example: (I hope this is not to verbose) /* * Copyright (c) 2003 SOFTWARE AG, ALL Rights Reserved. / / || Example using the Tamino API for Java || || The following tasks are performed: || || - Check the Server Status and Print the System Information || / import com.softwareag.tamino.db.API.accessor.TAccessLocation; import com.softwareag.tamino.db.API.accessor.TAccessorException; import com.softwareag.tamino.db.API.accessor.TSystemAccessor; import com.softwareag.tamino.db.API.common.TException; import com.softwareag.tamino.db.API.connection.TConnection; import com.softwareag.tamino.db.API.connection.TConnectionFactory; import com.softwareag.tamino.db.API.common.TAccessFailureMessage; import com.softwareag.tamino.db.API.connection.TConnectionException; import java.io.; import java.lang.; import java.util.; /** ** Check the database status, i.e., is it running and accessable ** ** ** ** / //java CheckDBstatus http://pcdummy/tamino/mydb public class CheckDBstatus { protected static boolean checkServerAndPrintSystemInformation(TConnection connection, String DATABASE_URL ) throws TAccessorException { // Obtain the TSystemAccesor TSystemAccessor systemaccessor = connection.newSystemAccessor(); if (!systemaccessor.isServerAlive()) { return false; } else { System.out.println( “------------------------------\nServer is alive” ); System.out.println( "The Tamino server hosting " + DATABASE_URL + " is version " + systemaccessor.getServerVersion() ); return true; } } / ** parseArgs ** ** ** @param args ** ** @return ** **/ private static String parseArgs( String args){ if (args.length >= 1) return args; else { System.out.println(“\n>> Tamino Demo Programs << \n” + “Copyright (c) 2000 SOFTWARE AG, ALL Rights Reserved. \n\n” + “Usage: java CheckDBstatus database-url\n” + " e.g. java CheckDBstatus http://pcmypc/tamino/mydb\n" ); System.exit(0); return null; } // end else } // end parseArgs() public static void main (String args) throws Exception { parseArgs(args); String sargs= parseArgs(args); // URL of the Tamino database String DATABASE_URL = new String( sargs[0]); // Establish the connection to Tamino TConnection connection = TConnectionFactory.getInstance().newConnection( DATABASE_URL ); // Check if the connection is available and print out some system information if ( !checkServerAndPrintSystemInformation( connection, DATABASE_URL ) ) return ; } // end main } // end CheckDBstatus
#API-Management#Tamino#webMethods