dbTalk Databases Forums  

Configuring the DRDA Server for DB2 UDB for Linux, UNIX, and Windows

comp.databases.ibm-db2 comp.databases.ibm-db2


Discuss Configuring the DRDA Server for DB2 UDB for Linux, UNIX, and Windows in the comp.databases.ibm-db2 forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
marten@nowhere.invalid
 
Posts: n/a

Default Configuring the DRDA Server for DB2 UDB for Linux, UNIX, and Windows - 11-05-2011 , 04:03 PM






I have problems with configuring oracle database gateway for drda
One of the steps in this process is (according to the manuel) is (DB2
side):

- GRANT EXECUTE ON PACKAGE oraclegtw.* TO PUBLIC

If I execute this statement I receive the following error:

- An unexpected token "*" was found following "N PACKAGE
oraclegtw.".
Expected tokens may include: "<identifier>".. SQLCODE=-104,
SQLSTATE=42601, DRIVER=3.61.65

Can somebody help me with this problem

Reply With Quote
  #2  
Old   
Frederik Engelen
 
Posts: n/a

Default Re: Configuring the DRDA Server for DB2 UDB for Linux, UNIX, and Windows - 11-06-2011 , 06:33 AM






On 5 nov, 23:03, "mar... (AT) nowhere (DOT) invalid" <mar.houweni... (AT) wxs (DOT) nl>
wrote:
Quote:
I have problems with configuring oracle database gateway for drda
One of the steps in this process is (according to the manuel) is (DB2
side):

- * * * GRANT EXECUTE ON PACKAGE oraclegtw.* TO PUBLIC

If I execute this statement I receive the following error:

- * * * An unexpected token "*" was found following "N PACKAGE
oraclegtw.".
* * * * Expected tokens may include: *"<identifier>".. SQLCODE=-104,
SQLSTATE=42601, DRIVER=3.61.65

Can somebody help me with this problem
The grant syntax on a whole schema is - unfortunately - not supported
by DB2.

I'm not too strong with packages myself, but if you bound them using a
*.bnd file you could've granted it at that point. Right now, I assume
you'll have to grant it on each package separately.

You can work from this query to find the complete list: select PKGNAME
from syscat.packages where PKGSCHEMA = 'ORACLEGTW'

--
Frederik Engelen

Reply With Quote
  #3  
Old   
TheBoss
 
Posts: n/a

Default Re: Configuring the DRDA Server for DB2 UDB for Linux, UNIX, and Windows - 11-06-2011 , 05:22 PM



Frederik Engelen <engelenfrederik (AT) gmail (DOT) com> wrote in news:0e879207-2700-
471c-b475-16ab7168d19b (AT) f13g2000...oglegroups.com:

Quote:
On 5 nov, 23:03, "mar... (AT) nowhere (DOT) invalid" <mar.houweni... (AT) wxs (DOT) nl
wrote:
I have problems with configuring oracle database gateway for drda
One of the steps in this process is (according to the manuel) is (DB2
side):

- * * * GRANT EXECUTE ON PACKAGE oraclegtw.* TO PUBLIC

If I execute this statement I receive the following error:

- * * * An unexpected token "*" was found following "N PACKAGE
oraclegtw.".
* * * * Expected tokens may include: *"<identifier>".. SQLCODE
=-104,
SQLSTATE=42601, DRIVER=3.61.65

Can somebody help me with this problem

The grant syntax on a whole schema is - unfortunately - not supported
by DB2.
For DB2 LUW this is true, it is supported though for DB2 z/OS.

Quote:
I'm not too strong with packages myself, but if you bound them using a
*.bnd file you could've granted it at that point. Right now, I assume
you'll have to grant it on each package separately.

You can work from this query to find the complete list: select PKGNAME
from syscat.packages where PKGSCHEMA = 'ORACLEGTW'

This won't work in this case as the grant is performed during
configuration, while the packages are created/bound at first usage of the
gateway.
Luckily the Gateway documentation offers an alternative
installation/configuration procedure where the packages are bound/granted
manually, directly on the DB2 server, as I've explained in more detail in
the Oracle group where the OP also asked this question.
For those interested, the doc can be found here:

http://download.oracle.com/docs/cd/E11882_
01/gateways.112/e12013/configdrda_server.htm#OTGIS1073

(the manual procedure is described in par. 13.4.2)

Cheers!

--
Jeroen

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.