#!/usr/local/bin/perl # # $Header: checkCredentials.pl 15-feb-2006.00:38:11 vivsharm Exp $ # # checkCredentials.pl # # Copyright (c) 2002, 2006, Oracle. All rights reserved. # # NAME # checkCredentials.pl - # # DESCRIPTION # # # NOTES # # # MODIFIED (MM/DD/YY) # vivsharm 02/15/06 - NT porting # dkapoor 07/26/02 - don't check for writable lsnrctl # dkapoor 07/18/02 - dkapoor_create_script_dirs # dkapoor 07/18/02 - Creation # require 5.8.2; sub verifyCredentials { my ($oracleHome,$tnsAdmin) = @_; if(!(-d $oracleHome)) { return "NET_ADMIN_ERROR,NO_ORACLE_HOME,$oracleHome"; } if(!(-d $tnsAdmin)) { return "NET_ADMIN_ERROR,NO_TNS_ADMIN,$tnsAdmin"; } return ""; }