Hi Ian,
I am using ksh on AIX 5.2. I don't see any weird stuff in the .profile
or db2profile. If I do not have the "(" or any such spl characters it
works fine.
db2_all "db2 select agent_id from table(snapshot_lock(' ',-1) ) as
snap"
ksh: 0403-057 Syntax error at line 1 : `(' is not expected.
ksh: 0403-057 Syntax error at line 1 : `(' is not expected.
ksh: 0403-057 Syntax error at line 1 : `(' is not expected.
ksh: 0403-057 Syntax error at line 1 : `(' is not expected.
$ db2_all "db2 select 'no-conn' from sysibm.sysdummy1"
SQL1024N A database connection does not exist. SQLSTATE=08003
cdidev01: db2 select agent_id ... completed rc=4
SQL1024N A database connection does not exist. SQLSTATE=08003
cdidev01: db2 select agent_id ... completed rc=4
Note: I did not connect to the db. I just wanted to see whether the
syntax works or not
.................................................. ...........................
looks like
Ian <ia*****@mobileaudio.com> wrote in message news:<41**********@corp.newsgroups.com>...
Prince Kumar wrote:
Thanks Ian,
I already tried that. I got the following error.
db2_all "db2 connect to mydb; db2 \"select * from table
(SNAPSHOT_CONTAINER('', -1 )) as snp where TABLESPACE_NAME = 'TSSAM'
\";db2 terminate"
This exact syntax works just fine for me. Are you using a weird shell,
or do you have anything strange in your .profile, db2profile or
userprofile?
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----