Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#!/bin/sh

# Look for the first of the next new L1 keys which has not been validated.
# Reference ~l1emulator/o2o/scripts/getRecentKeys.sh

lastID=$1

DB="cms_omds_lb"
USER="cms_trg_r"
PASSWORD_FILE=/nfshome0/centraltspro/secure/$USER.txt
PASSWORD=`cat $PASSWORD_FILE`

sqlplus -S ${USER}/${PASSWORD}@${DB} <<EOF
set linesize 500
set wrap on
set heading off
set pagesize 0
set feedback off
select TSC_KEY from cms_l1_hlt.L1_HLT_CONF_LATEST_VALID_VIEW;
EOF

exit