Shell variable is not working

view full story

http://www.unix.com – One of my shell script, I'm using shell variable to substitute parameter value to a oracle related command "tnsping". without substitution same value is working fine. see below example. Below is the result is expected with command: > tnsping "(ADDRESS = (PROTOCOL = TCP)(HOST = uedcb031)(PORT = 1521))" TNS Ping Utility for IBM/AIX RISC System/6000: Version - Production on 01-NOV-2012 19:28:42 Copyright (c) 1997, 2011, Oracle. All rights reserved. Attempting to contact (ADDRESS = (PROTOCOL = TCP)(HOST = uedcb031)(PORT = 1521)) OK (0 msec) my shell varia (HowTos)