473,769 Members | 2,348 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Questions on a 'shadow catalog' and ODBC

Running DB28.2 on AIX 5.2.

I have two questions if its possible for anyone to assist.

1. Is it possible to make use of a 'Shadow Catalog' on DB2 UDB v8.2 on
AIX? If so, how? Can anyone give me an example of the SQL to create
the appropriate view and catalog table?

2. Is there anyway via the ODBC datasource parameters to influence the
SQLTables and SQLColumns stored procedures to use a schema_name when
reading catalog information during the initial connection? These
procedures do have a parameter that can be supplied to limit the search
to a specific schema but I have no control over this application
functionality.

Jan 9 '06 #1
4 1907
da*******@yahoo .com wrote:
Running DB28.2 on AIX 5.2.

I have two questions if its possible for anyone to assist.

1. Is it possible to make use of a 'Shadow Catalog' on DB2 UDB v8.2 on
AIX? If so, how? Can anyone give me an example of the SQL to create
the appropriate view and catalog table?
What kind of information shall the 'shadow catalog' contain?
2. Is there anyway via the ODBC datasource parameters to influence the
SQLTables and SQLColumns stored procedures to use a schema_name when
reading catalog information during the initial connection? These
procedures do have a parameter that can be supplied to limit the search
to a specific schema but I have no control over this application
functionality.


What exactly do you want to control? If you just want to get all the tables
in a particular schema, provide the schema name. Then rely on the function
to do it the best way possible.

p.s: SQLTables and SQLColumns are functions, not (stored) procedures.

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
Jan 9 '06 #2
Knut,

This questions was posted by a DBA that I am working with at a client
site. My name is Kevin Burton, and I am the one working on this issues.
Below is my response to your question:

This is a third party application that is connecting to the DB2
database base via an ODBC connection. Upon connection, the call to the
SQLColumns function is generating 1,000,000+ reads for each connection.
It appears that the connection is executing the SQLColumns function
once for each table returned from the SQLTable call. The third party
application is not supplying the SQLColumns call with the schema or
table name. This is resulting in the all of the columns being read
from the system table for each table. Hence the 1,000,000+ reads for
each connection.

What I want to do is force the SQLTable and SQLColumns function call to
use a schema name. I can't change the application code. After reading
some documentation on ODBC parameters, I believe I should be able to
set the 'clishema' parameter to a schema value. As a result, these
functions should then use that schema supplied instead of the system
schema (SYSIBM).

If this did not work, I have gotten the idea that we could implement a
'Shadow Schema'. We can create views of the system tables that contain
only the tables, views, columns that we want in the target schema. If
the 'clischema' parameter is set, the SQLTable and SQLColumn functions
would then use the views in the target schema. I tried doing this but
it did not seem to work. Since the the SQLTables and SQLColumns calls
are the problem, I tried creating views of the system tables that were
named SQLTABLES, TABLES, SQLCOLUMNS and COLUMNS in the target schema.
This did not appear to work. I am not sure if I have to create actual
tables in the target schema as well as the views for them to get this
to work or not. Any thoughts?

I was hoping to get some verification that this would work. Is there
anyway to see what the SQLTables and SQLColumns functions are doing?
Can we confirm that the functions should look at a specific schema if
supplied?

Thank You

- Kevin Burton

Jan 9 '06 #3

ke**********@sb cglobal.net schrieb:
Knut,

This questions was posted by a DBA that I am working with at a client
site. My name is Kevin Burton, and I am the one working on this issues.
Below is my response to your question:

This is a third party application that is connecting to the DB2
database base via an ODBC connection. Upon connection, the call to the
SQLColumns function is generating 1,000,000+ reads for each connection.
It appears that the connection is executing the SQLColumns function
once for each table returned from the SQLTable call. The third party
application is not supplying the SQLColumns call with the schema or
table name. This is resulting in the all of the columns being read
from the system table for each table. Hence the 1,000,000+ reads for
each connection.

What I want to do is force the SQLTable and SQLColumns function call to
use a schema name. I can't change the application code. After reading
some documentation on ODBC parameters, I believe I should be able to
set the 'clishema' parameter to a schema value. As a result, these
functions should then use that schema supplied instead of the system
schema (SYSIBM).

If this did not work, I have gotten the idea that we could implement a
'Shadow Schema'. We can create views of the system tables that contain
only the tables, views, columns that we want in the target schema. If
the 'clischema' parameter is set, the SQLTable and SQLColumn functions
would then use the views in the target schema. I tried doing this but
it did not seem to work. Since the the SQLTables and SQLColumns calls
are the problem, I tried creating views of the system tables that were
named SQLTABLES, TABLES, SQLCOLUMNS and COLUMNS in the target schema.
This did not appear to work. I am not sure if I have to create actual
tables in the target schema as well as the views for them to get this
to work or not. Any thoughts?

I was hoping to get some verification that this would work. Is there
anyway to see what the SQLTables and SQLColumns functions are doing?
Can we confirm that the functions should look at a specific schema if
supplied?

Thank You

- Kevin Burton


Kevin,

take a look at the db2ocat tool at
ftp://ftp.software.ibm.com/ps/products/db2/tools/

it creates a "shadow system catalog" for ODBC calls

HTH
Joachim

Jan 10 '06 #4

Jo*******@email .com wrote:
ke**********@sb cglobal.net schrieb:
Knut,

This questions was posted by a DBA that I am working with at a client
site. My name is Kevin Burton, and I am the one working on this issues.
Below is my response to your question:

This is a third party application that is connecting to the DB2
database base via an ODBC connection. Upon connection, the call to the
SQLColumns function is generating 1,000,000+ reads for each connection.
It appears that the connection is executing the SQLColumns function
once for each table returned from the SQLTable call. The third party
application is not supplying the SQLColumns call with the schema or
table name. This is resulting in the all of the columns being read
from the system table for each table. Hence the 1,000,000+ reads for
each connection.

What I want to do is force the SQLTable and SQLColumns function call to
use a schema name. I can't change the application code. After reading
some documentation on ODBC parameters, I believe I should be able to
set the 'clishema' parameter to a schema value. As a result, these
functions should then use that schema supplied instead of the system
schema (SYSIBM).

If this did not work, I have gotten the idea that we could implement a
'Shadow Schema'. We can create views of the system tables that contain
only the tables, views, columns that we want in the target schema. If
the 'clischema' parameter is set, the SQLTable and SQLColumn functions
would then use the views in the target schema. I tried doing this but
it did not seem to work. Since the the SQLTables and SQLColumns calls
are the problem, I tried creating views of the system tables that were
named SQLTABLES, TABLES, SQLCOLUMNS and COLUMNS in the target schema.
This did not appear to work. I am not sure if I have to create actual
tables in the target schema as well as the views for them to get this
to work or not. Any thoughts?

I was hoping to get some verification that this would work. Is there
anyway to see what the SQLTables and SQLColumns functions are doing?
Can we confirm that the functions should look at a specific schema if
supplied?

Thank You

- Kevin Burton


Kevin,

take a look at the db2ocat tool at
ftp://ftp.software.ibm.com/ps/products/db2/tools/

it creates a "shadow system catalog" for ODBC calls

HTH
Joachim


I was able to accomplish what I needed by setting the SYSCHEMA and
SCHEMALIST parameters for the ODBC connection.

We are testing and validating the changes but things are looking very
good.

Thank You!

- Kevin

Jan 10 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2687
by: Acer | last post by:
hi, what's the best way to display pictures with an automatic generated shadow ?
1
3020
by: Ralf Obst | last post by:
Hello, we get a message SQL0204N when trying to import tables from a DB2/VM into an MS Access database. The message text is: ... "DB2/VM SQL0204N 'SQLTables ' not defined ". When importimg from an ODBC data source Access offers a list box containing all the tables/views etc. The user can select one or more tables to import.
1
1625
by: kenfar | last post by:
I've got a set of redundant marts that I'm trying to catalog on the client side to allow us to do two things: 1. manually recatalog to point at either of the two fast marts 2. automatically failover to a third slow mart The data marts are on db2 8.2.1, the client on db2 8.2.? But I'm hitting a few roadblocks here - all suggestions are appreciated. So, I've given our portal team (runs actuate) a pair of scripts to switch the catalog...
13
8293
by: Eric E | last post by:
Two questions regarding ODBC. 1) I am connecting to a MySQL database using the following code: Function LoginToMySQL(sUsername As String, sPW As String) As Boolean Dim dbMySQL As Database Dim cnMySQL As DAO.Connection Dim sDSN As String sDSN = "ODBC;DRIVER={MySQL ODBC 3.51 Driver};" _ & "SERVER=127.0.0.1;" _
4
4216
by: Barry Kelly | last post by:
I'm designing an application framework which will, amongst other things, live in an assembly hosted in the ASP.NET worker process, servicing webservice requests. Here's the scenario: APPFX is our application framework assembly. It has no life of its own - it's designed to provide components that are glued together by another, main application assembly - let us call it APP. Thus, APP uses APPFX, and APP is registered with ASP.NET as a...
0
1748
by: Damien Anselmi | last post by:
I am using the CompileAssemblyFromSource method of an ICodeCompiler instance to dynamically compile an assembly used by a Web Application. The assembly may be recompiled any number of times during a day as a user changes the underlying code. Each time the assembly is compiled it's version is updated e.g. from 1.0.0.1 to 1.0.0.2 and so on. The assemby is compiled into a directory which has been setup to shadow copy using the...
19
1931
by: MP | last post by:
I'm interested to learn how to use mdb files via ado/adox via vb6 Since I'm not using Access are those types of questions o.t. here? I see very few ado questions here. But there's a lot more traffic here than the ado groups. :-) Thanks Mark
16
14563
by: eholz1 | last post by:
Hello CSS group, I saw a beautiful effect that I would like to use either by CSS or using photoshop to create the image/effect (maybe even imagemagick) the site address is: http://victor.hasselblad.com/. the lead image here is a white photograph (jpeg) on a white background, with a shadow like effect around the entire image. In this case the shadow effect is part of the jpeg, and not
0
1119
by: naiduG | last post by:
Hi all, How to create Shadow ODBC connectivity for DB2 for ETLs Can any one help out in this??? Thanks in advance Naidu.
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10210
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10043
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9861
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8869
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5298
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5446
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3956
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2814
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.