unable to run the bteq script on sun Unix os.
Teradata Teradata Discussion Forums Teradata.com Discussion Forum
Visit Teradata.com
Home       Guidelines    Member List
Welcome Guest ( Login | Register )
        


This online forum is for user-to-user discussions of Teradata products, and is not an official customer support channel for Teradata. If you require direct assistance, please contact Teradata support.


unable to run the bteq script on sun Unix os.... Expand / Collapse
Author
Message
Posted 6/16/2008 4:30:19 AM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 8/26/2008 8:33:41 AM
Posts: 19, Visits: 50
Hi all,

I am trying to run the below mentioned script. It works fine in AIX unix box but in Sun Unix box, an error
occurs:

test.sh: bteq: execute permission denied

could you please tell me how i can resolve this problem?


FUNC_VALIDATE_ENTRIES()
{


bteq<<-END

.logon DemoTd/User1,******;

.export report file=VALIDATE_FILE.sol
select distinct DatabaseName from dbc.Tables where DatabaseName = 'USER1';
.if ACTIVITYCOUNT > 0 then .goto labelC
select 5;
.goto labelD
.label labelC
select 0;
.label labelD
.export reset
.quit errorcode
.LOGOFF
END
}

FUNC_VALIDATE_ENTRIES


thanks
Post #11877
Posted 6/17/2008 2:09:48 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: 8/24/2008 2:47:14 PM
Posts: 425, Visits: 398
That's normally given by unix if the user does not have execute permission on the executable... so check the permissions on the bteq executable and make sure the unix user id you are using has execute permissions for it.

ls -ltr $(which bteq)
Post #11897
Posted 6/19/2008 1:52:29 AM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 8/26/2008 8:33:41 AM
Posts: 19, Visits: 50
I found the problem is with connectivity b/w Unix and teradata. Teradata Client is installed on Pc but Unix is not connected to Teradata.

could anyone help me in making this connection.what are the things necessary for this connection? I have already included teradata server host string in Unix Hosts file, But didnt find any teradata utility connectivity to Unix.


Thanks and regards,
Kunal
Post #11927
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 ( 0 guests, 0 members, 0 anonymous members )
No members currently viewing this topic.


All times are GMT -5:00, Time now is 4:15am

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.063. 7 queries. Compression Disabled.