#!/bin/bash
#################################################################
#Description: a temporary way to check data and wait mechanism
##################################################################
. $HOME/.profile
SQLString="select txntimestamp FROM SDB_TB_EXTRACTOR_LASTTXN WHERE threadid='Extractor' and fab='M1';";
VALUE=`sqlplus -S $WSDB_CONN_STRING << END
set pagesize 0 feedback off verify off heading off echo off
$SQLString
exit;
END`
echo $VALUE