dbTalk Databases Forums  

configuring oracle database gateway drda

comp.databases.oracle.server comp.databases.oracle.server


Discuss configuring oracle database gateway drda in the comp.databases.oracle.server forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
mar.houweninge@wxs.nl
 
Posts: n/a

Default configuring oracle database gateway drda - 11-04-2011 , 02:30 PM






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

- 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   
Mladen Gogala
 
Posts: n/a

Default Re: configuring oracle database gateway drda - 11-04-2011 , 03:20 PM






On Fri, 04 Nov 2011 13:30:09 -0700, mar.houweninge (AT) wxs (DOT) nl wrote:

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

- GRANT EXECUTE ON PACKAGE oraclegtw.* TO PUBLIC
The Oracle syntax is: GRANT EXECUTE ON oraclegtw TO PUBLIC;
Serge Rielau maybe able to help with the DB2 side. BTW, who's Manuel?




--
http://mgogala.byethost5.com

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

Default Re: configuring oracle database gateway drda - 11-05-2011 , 03:35 PM



Mladen Gogala <gogala.mladen (AT) gmail (DOT) com> wrote in
newsan.2011.11.04.21.20.14 (AT) gmail (DOT) com:

Quote:
On Fri, 04 Nov 2011 13:30:09 -0700, mar.houweninge (AT) wxs (DOT) nl wrote:

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

- GRANT EXECUTE ON PACKAGE oraclegtw.* TO PUBLIC

The Oracle syntax is: GRANT EXECUTE ON oraclegtw TO PUBLIC;
The grant is not performed on Oracle but on DB2.

Quote:
Serge Rielau maybe able to help with the DB2 side./
The OP should mention platform (LUW, z/OS, AS400) and version of DB2 first,
as syntax for the GRANT differs. As an example, here is the syntax for v9
on z/OS:

http://publib.boulder.ibm.com/infoce...ex.jsp?topic=%
2Fcom.ibm.db2z9.doc.sqlref%2Fsrc%2Ftpc%
2Fdb2z_sql_grantpackageprivileges.htm

And the syntax for v9.5 for LUW:

http://publib.boulder.ibm.com/infoce...ex.jsp?topic=%
2Fcom.ibm.db2.luw.sql.ref.doc%2Fdoc%2Fr0007699.htm l

As an alternative to executing the grant remotely via the Oracle Gateway
interface, the OP could ask his DB2 DBA to execute it directly on the DB2
side.

Quote:
/BTW, who's Manuel?

He's from Barcelona!

http://en.wikipedia.org/wiki/Manuel_%28Fawlty_Towers%29

http://www.youtube.com/watch?v=pOEbCQIfndc

HTH

--
Jeroen

Reply With Quote
  #4  
Old   
Mladen Gogala
 
Posts: n/a

Default Re: configuring oracle database gateway drda - 11-05-2011 , 03:37 PM



On Sat, 05 Nov 2011 21:35:50 +0000, TheBoss wrote:

Quote:
The Oracle syntax is: GRANT EXECUTE ON oraclegtw TO PUBLIC;

The grant is not performed on Oracle but on DB2.
If so, why is the question on the Oracle group?



--
http://mgogala.byethost5.com

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

Default Re: configuring oracle database gateway drda - 11-06-2011 , 04:43 PM



Mladen Gogala <gogala.mladen (AT) gmail (DOT) com> wrote in
newsan.2011.11.05.21.37.59 (AT) gmail (DOT) com:

Quote:
On Sat, 05 Nov 2011 21:35:50 +0000, TheBoss wrote:

The Oracle syntax is: GRANT EXECUTE ON oraclegtw TO PUBLIC;

The grant is not performed on Oracle but on DB2.

If so, why is the question on the Oracle group?

Well, I'm not the one posing the question, but I think because the gateway
software is an Oracle product and the OP didn't realise that part of the
products configuration (more specifically: binding and authorising packages
and plans that the gateway uses to access DB2) is performed on DB2.
In the mean time the OP has (may be because of my previous answer) posted
the question in the DB2 group, with the additional info that (like I
suspected) he is configuring for DB2 for LUW, which doesn't allow a generic
grant on all packages for a certain schema (via <schema>.*), where DB2 for
z/OS does allow such a generic grant.
This also means the doco for the gateway is incorrect/incomplete.
The OP needs to find out what packages are used in the oracletgw schema.
As this info is not available in the doco, his best bet would be to query
the DB2 catalog for this.

Cheers!

--
Jeroen

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

Default Re: configuring oracle database gateway drda - 11-06-2011 , 05:15 PM



TheBoss <TheBoss (AT) invalid (DOT) nl> wrote in
news:Xns9F95F14C7F5BATheBossUsenet (AT) 194 (DOT) 109.133.133:

Quote:
Mladen Gogala <gogala.mladen (AT) gmail (DOT) com> wrote in
newsan.2011.11.05.21.37.59 (AT) gmail (DOT) com:

On Sat, 05 Nov 2011 21:35:50 +0000, TheBoss wrote:

The Oracle syntax is: GRANT EXECUTE ON oraclegtw TO PUBLIC;

The grant is not performed on Oracle but on DB2.

If so, why is the question on the Oracle group?


Well, I'm not the one posing the question, but I think because the
gateway software is an Oracle product and the OP didn't realise that
part of the products configuration (more specifically: binding and
authorising packages and plans that the gateway uses to access DB2) is
performed on DB2. In the mean time the OP has (may be because of my
previous answer) posted the question in the DB2 group, with the
additional info that (like I suspected) he is configuring for DB2 for
LUW, which doesn't allow a generic grant on all packages for a certain
schema (via <schema>.*), where DB2 for z/OS does allow such a generic
grant. This also means the doco for the gateway is
incorrect/incomplete. The OP needs to find out what packages are used
in the oracletgw schema. As this info is not available in the doco,
his best bet would be to query the DB2 catalog for this.

I did some more analysis of the gateway doc, and it's a little more
complicated than I thought.
The part of the gateway configuration that the OP is referring to is
documented here:
http://download.oracle.com/docs/cd/E11882_
01/gateways.112/e12013/configdrda_server.htm#OTGIS1073

In DB2 it is possible to grant privileges on objects that are not existing
(yet), and that's the case here: privileges are granted for the oraclegtw
packages during configuration, while these packages are created/bound
during the first gateway usage. So my previous advice to query the DB2
catalog won't help here.
Fortunately the docs also offers an alternative way in the next section
13.4 "Manually Binding of DRDAQ Gateway Packages".
More specifically, paragraph 13.4.2 gives the exact procedure to follow for
DB2 LUW.

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.