473,695 Members | 2,675 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How do you specify a default schema for DB2ADVIS?

Hi.

I'm attempting to get DB2ADVIS to analyze some SQL that I have to
determine if any MDC tables would be appropriate (well, at least to
know what DB2 thinks). Unfortunately, I'm running into issues.

My SQL is using unqualified tables (generated from a tool), and I'd
like to be able to specify a specific schema that it should look for
these tables in.

Looking at the documentation, I would assume that -qualifier (or -q)
followed by a schema would cause DB2ADVIS to use the schema specified.
Unfortunately, it doesn't seem to be doing this. It proceeds to
determine that all the SQL is invalid, and gives a somewhat cryptic
message:
Using user id as default schema name. Use -n option to specify schema

Then, down near the bottom of the output (after showing all the
options), it errors out with error code -106

Incidentally, if I provide a -n option, it no longer gives me the
message, but still doesn't find any valid SQL.

I have independantly run these SQL, and they do work, so I don't think
it is that. Also, if I include SQL in the statement where all tables
are owned by the specified user, then those are deemed valid SQL, and
it gives me suggestions about those.

Any ideas?

-ChrisC

(ps - I'm on V9.10, LUW, Solaris)

Dec 12 '06 #1
0 1554

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

Similar topics

1
2966
by: Izvra | last post by:
How can i specify default XML namespace when it does not declared in the xml document I need it for validation against xml schema @@@I have a procedure Sub ValidateXMLDocument(ByRef XMLDocument As Xml.XmlDocument, ByVal SchemaPath as string) If XMLDocument.DocumentElement.NamespaceURI = String.Empty Then '@@@ calculating target namspace of the schema
0
1048
by: norab | last post by:
Hi, In the help here (http://publib.boulder.ibm.com/infocenter/db2help/topic/com.ibm.db2.udb.doc/admin/t0011424.htm?resultof=%22%77%6f%72%6b%6c%6f%61%64%22%20) is described that you can run the reset monitor command before running db2advis with the -g option. Can someone explain what the relation is between these monitor areas and the dynamic sql package cache where the db2advis takes it input from. Can this be a mistake in the docs and...
1
5717
by: norab | last post by:
Hi, In the help here (http://publib.boulder.ibm.com/infocenter/db2help/topic/com.ibm.db2.udb.doc/admin/t0011424.htm?resultof=%22%77%6f%72%6b%6c%6f%61%64%22%20) is described that you can run the reset monitor command before running db2advis with the -g option. Can someone explain what the relation is between these monitor areas and the dynamic sql package cache where the db2advis takes it input from. Can this be a mistake in the docs and...
1
2663
by: Erik Hendrix | last post by:
Hi, I just upgraded a instance from 8.1 FP5 to 8.2 (FP7). Now when I run db2advis I get the following: SQL0805N Package "NULLID.DB2ADVIO 0X5142316D564F4A55" was not found. SQLSTATE=51002 ************************************* * CONTENTS OF SQLCA *
1
4192
by: mandible | last post by:
Hello I was wondering if I"m doing something wrong with using db2advis I have 2 stored procedures are are massive, I created an input file to call both of these stored procedures and I dont' seem to get any index help, but if I put the main body of these stored procs in a view and do a select * from that view I get a tonne of index help. this is my input file I have run it with the views uncommented and get great results but I really...
0
363
by: rjha94 | last post by:
Hi folks I am pretty new to DB2. I am trying to use MKT tool to copy one oracle to a target DB2 database. I import the oracle DDL sql scripts and everything goes fine till the final tab (deploy). Here, I am running the MKT tool on a windows machine and my DB2 is a remote database running on linux box. question 1) I see the remote option on deploy tab but where do a
0
1529
by: sancho | last post by:
Hi folks: My environment: db2level: "DB2 v8.1.0.48", "s040212", "MI00069", FixPak "5". db2licm -l: DB2 Enterprise Server Edition uname -a: Linux 2.6.17-1.2187_FC5smp My question:
0
1107
by: Dave Burns | last post by:
Hello, I am trying to specify a logical default value for a in a WCF Web Service using basicHttpBinding. I realize that the language defaults are: int - 0 string - null bool - false
3
3234
by: sandeep.iitk | last post by:
I am using a query into db2advis for index recommendation. this query is having a CTE (with clause). when I run db2advis it returned some error like Database is reporting the following error: excluding statement from the workload. Error. No valid statements were found in this input file or in the workload table.
0
8647
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8585
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
9004
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
8838
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
7682
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...
1
6506
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4592
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3024
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
2
2288
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.