473,569 Members | 2,601 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How is refresh of nickname definition done?

Hi,

We have DB2 7 fixpak 14 on AIX 5.1. There are federated links
(nicknames) established for tables in Informix database.

One of the table was modified in Informix. The table has now got 3 new
columns. These columns are not seen in DB2 nickname definition. When we
run the queries, we do not see these columns in the result. When we
describe the nickname, these columns are not present.

Now, How can we refresh the nickname defininton without dropping and
recreating it? There is a stored procedure nnstat in Version 8. But we
are at version 7.

Please can someone help.

Thanks,
Prasad

Nov 24 '06 #1
6 6190
Prasad wrote:
Hi,

We have DB2 7 fixpak 14 on AIX 5.1. There are federated links
(nicknames) established for tables in Informix database.

One of the table was modified in Informix. The table has now got 3 new
columns. These columns are not seen in DB2 nickname definition. When we
run the queries, we do not see these columns in the result. When we
describe the nickname, these columns are not present.

Now, How can we refresh the nickname defininton without dropping and
recreating it? There is a stored procedure nnstat in Version 8. But we
are at version 7.
DROP and CREATE is the only way in V7.

Given that V7 is out of service for 1 year now, you should consider moving
to V8 or even V9.

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
Nov 24 '06 #2
Thank you for your response. We are in the process of upgrade. In the
meantime, this requirement came up.

Is there any way to capture the definitions of all the nicknames,
indexes & views etc created on the nicknames? db2look does not give
this information.

Nov 24 '06 #3
Prasad wrote:
Thank you for your response. We are in the process of upgrade. In the
meantime, this requirement came up.

Is there any way to capture the definitions of all the nicknames,
indexes & views etc created on the nicknames? db2look does not give
this information.
There are no indexes on nicknames. db2look (V8) does collect this
information. So again, the my answer would be to upgrade to V8 or V9.

Have a look at your V7 manual (or "db2look -h" to see if it covers any
federated objects).

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
Nov 24 '06 #4
We have definition only indexes on the nicknames. db2look does not have
the option to capture definitions of nicknames and other objects
depending on nicknames.

We are upgrading to V9 next year. This issue has come up now.

Nov 27 '06 #5
Prasad wrote:
We have definition only indexes on the nicknames. db2look does not have
the option to capture definitions of nicknames and other objects
depending on nicknames.

We are upgrading to V9 next year. This issue has come up now.
Well, db2look does extract wrapper, server, user mapping, nickname, and
index specification definitions:

$ db2look -d test -e | less

-- ---------------------------
-- DDL Statements for WRAPPER
-- ---------------------------
CREATE WRAPPER "DRDA"
LIBRARY 'libdb2drda.so'
OPTIONS (DB2_FENCED 'Y'
);
-- ---------------------------
-- DDL Statements for SERVER
-- ---------------------------
CREATE SERVER "SRV1"
TYPE DB2/UDB
VERSION '8'
WRAPPER "DRDA"
OPTIONS
(DBNAME 'remote'
);
-- --------------------------------
-- DDL Statements for USER MAPPING
-- --------------------------------
CREATE USER MAPPING FOR STOLZE
SERVER "SRV1"
OPTIONS
(REMOTE_AUTHID 'stolze'
,REMOTE_PASSWOR D ''
);
-- --------------------------------
-- DDL Statements for NICKNAME
-- --------------------------------

-- DEFINER = STOLZE
CREATE NICKNAME "STOLZE "."N1"
FOR "SRV1"."STOLZE" ."T1";
-- --------------------------------
-- DDL Statements for CREATE INDEX...SPECIFI CATION ONLY
-- --------------------------------
CREATE INDEX "STOLZE"."I DX"
ON "STOLZE"."N 1" (A ASC)
SPECIFICATION ONLY;

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
Nov 27 '06 #6
I executed the same command (with our DB name) you provided on our
system. It does not provide the nickname definitions. Did you execute
the command on v7 system?

Nov 27 '06 #7

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

Similar topics

6
27889
by: Matt | last post by:
By using javascript, is it possible to disable the REFRESH functionality (F5 or refresh icon) in a browser? Please advise. Thanks!!
0
1801
by: aj | last post by:
DB2 WSE LUW 8.1 Fixpak 5 Red Hat AS 2.1 I'm trying to set up a federated view from one DB2 database to another in the same instance on the same server. I do a: create server <SERVER> type DB2/UDB version 8.1 wrapper DRDA authorization <INSTANCE_OWNER> password "<PASSWD>" options (NODE 'LOCAL',DBNAME '<DBNAME>',FOLD_ID 'N',FOLD_PW 'N')
6
3023
by: _link98 | last post by:
Problem: getting SQL0181N for queries on nicknames to remote Union-All-View. Can't see what I'm doing wrong yet, maybe someone has seen this before. Environment: UDB ESE 8.1 + FIXPAK 9A, on Solaris 8.1, with 64-bit instances. I have a NICKNAME called REMOTE_DW.T_MYTABLE which points to a "union-all-view". Several other nicknames exist...
5
15792
by: Jiggaz | last post by:
Hi, Look my stored procedure : __________________ ALTER PROCEDURE dbo.CreateAccount @Nickname varchar(30), @Password varchar(15), @Email varchar(50), @Date datetime,
2
8161
by: Robert | last post by:
I am trying to give the user dynamic search capabilities to select almost any record in the database from criteria they select. Everything seems to work except when I open the display form to display the data to the user. If that form is already open, how do I make it refresh its data source and display the new data. Here is what I am...
3
7631
by: Jean-Marc Blaise | last post by:
Hi, Is there any reason why a CREATE NICKNAME statement fails if the remote object is an ALIAS ? I actually have an ALIAS that is used to point to the correct table in the remote DB, and would like the nickname to point to this alias, avoiding the obligation to drop and recreate the nickname any time. Thanks for your help,
5
10101
by: Asphalt Blazer | last post by:
OS: AIX 5L, DB2 UDB v8.2 the nicknames are created like this create nickname <schema-name>.<tab-name for <remote-db-name>.<remote-schema-name>.<remote-tabname> The schema name is usually same as the remote db name while tabname is the same as the remote tabname.
5
14471
by: Ben | last post by:
Hi! I need to refresh an entire database. I can recompile SPs with sp_recompile (or DBCC FLUSHPROCINDB), and refresh views with sp_refreshView, but I cannot find any way to refresh my user-defined functions (some of them are like views, with parameters). Any help appreciated :) !
13
3316
by: CindySue | last post by:
I have a table of providers that has a license number and fullname field, among others. Deman helped me with being able to enter a nickname and having it change to the fullname if a nickname exists in a nickname table when I have new entries. I also have a table called TA where I enter requests, linking to the providers table with the license...
0
7701
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...
0
7615
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...
0
7924
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. ...
0
7979
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...
0
6284
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...
1
5514
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...
0
5219
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3643
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
940
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...

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.