niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Databases » IBM DB2
Unlocking DB2 table/row locks
Post new topic   Reply to topic Page 25 of 26 [388 Posts] View previous topic :: View next topic
Goto page:  Previous  1, 2, 3, ..., 23, 24, 25, 26 Next
Author Message
technocrat
*nix forums beginner


Joined: 21 Mar 2006
Posts: 35

PostPosted: Wed Apr 05, 2006 8:42 pm    Post subject: Re: Is there a way to find the record causing SET INTEGRITY command to fail? Reply with quote

Thanks gert ...I think I would try this first and then try the sql
version of it...if I could get some more info on it , i would
appreciate it.....

The thing i am wndering is...does for exception ....remove only
duplicates?? or remove rows that are violating the FK
constraint...becuase, I am not rteally worried about duplicates...but I
want to find the rows that are violating the FK Constraint...

Any help is appreciated..!
Back to top
technocrat
*nix forums beginner


Joined: 21 Mar 2006
Posts: 35

PostPosted: Wed Apr 05, 2006 8:45 pm    Post subject: Re: Is there a way to find the record causing SET INTEGRITY command to fail? Reply with quote

And another thing,...if i user FOr EXCEPTION....if there are violating
rows....then will the status of the table be "C" at the end of SET
INTEGRITY or "N" ...i mean will it be normal or check pending at the
end of Set Integrity ...for exception.....??
Back to top
Phil Sherman
*nix forums Guru Wannabe


Joined: 16 Jun 2005
Posts: 183

PostPosted: Wed Apr 05, 2006 9:27 pm    Post subject: Re: Problem inserting spanish characters in DB2 UDB Reply with quote

I've encountered this this problem which is a consequence of using
UTF-8. UTF-8 stores "standard" ascii using one byte per character. When
characters outside of the standard ascii set appear, they are stored as
16 bit unicode, occupying two character spaces. This requires that the
character (preferably varchar) columns be, worst case, defined twice as
large as the number of characters they will contain. Characters in some
languages will occupy more than 16 bits per character, requiring the
column definitions to be larger than two bytes/character.

UTF-8 data in columns also had interesting effects when using db2look to
transfer statistics data to another instance. The high2key and low2key
columns would not correctly transfer if the data values included UTF-8
16 bit characters.


Philip Sherman



pramod wrote:
Quote:
Hi

I am facing the problem while inserting the spanish characters in the
DB2 UDB v8.2 database. We are pulling the data from SQL server through
informatica and then pushing the same in the DB2 database. Codepage for
DB2 database is UTF-8, which is Unicode. Whenever it is encountering
any spanish charater it is giving the following error:

SQL0302N The value of a host variable in the execute or open statement
is too large for its corresponding use.
SQLSTATE=22001

Please help me.
Back to top
Ian
*nix forums Guru Wannabe


Joined: 02 Aug 2005
Posts: 262

PostPosted: Wed Apr 05, 2006 9:58 pm    Post subject: Re: Is there a way to find the record causing SET INTEGRITY command to fail? Reply with quote

technocrat wrote:
Quote:
And another thing,...if i user FOr EXCEPTION....if there are violating
rows....then will the status of the table be "C" at the end of SET
INTEGRITY or "N" ...i mean will it be normal or check pending at the
end of Set Integrity ...for exception.....??


Why don't you read the doc for SET INTEGRITY. It will answer all of
your questions.
Back to top
Gert van der Kooij
*nix forums Guru Wannabe


Joined: 27 May 2005
Posts: 267

PostPosted: Wed Apr 05, 2006 10:09 pm    Post subject: Re: Is there a way to find the record causing SET INTEGRITY command to fail? Reply with quote

In article <44343d0e$1_1@newsfeed.slurp.net>, ianbjor@mobileaudio.com
says...
Quote:
technocrat wrote:
And another thing,...if i user FOr EXCEPTION....if there are violating
rows....then will the status of the table be "C" at the end of SET
INTEGRITY or "N" ...i mean will it be normal or check pending at the
end of Set Integrity ...for exception.....??


Why don't you read the doc for SET INTEGRITY. It will answer all of
your questions.


And to help with that, you can find them at http://tinyurl.com/r7sug
Back to top
technocrat
*nix forums beginner


Joined: 21 Mar 2006
Posts: 35

PostPosted: Thu Apr 06, 2006 2:25 pm    Post subject: Re: Is there a way to find the record causing SET INTEGRITY command to fail? Reply with quote

hey gert and ian...
I did read thse two docs u both mentioned...I did understand some
stuf..but not really clear...i m trying to implement that and see how
it goes....if i hav eany doubts will get back to you guys ...

thanks again!
Back to top
pukuri
*nix forums beginner


Joined: 06 Apr 2006
Posts: 1

PostPosted: Thu Apr 06, 2006 3:22 pm    Post subject: Re: Problem with Backup/Restore with Vendore Products Reply with quote

Hi,
nobody has any ideas?

thx
Hannes
Back to top
technocrat
*nix forums beginner


Joined: 21 Mar 2006
Posts: 35

PostPosted: Thu Apr 06, 2006 7:40 pm    Post subject: Re: Is there a way to find the record causing SET INTEGRITY command to fail? Reply with quote

the for exception table worked like a charm..Thanks a ton everyone!
Back to top
Pierre Saint-Jacques
*nix forums Guru Wannabe


Joined: 29 May 2005
Posts: 217

PostPosted: Thu Apr 06, 2006 10:50 pm    Post subject: Re: Is there a way to find the record causing SET INTEGRITY command to fail? Reply with quote

AFAIK, the SET INTEGRITY command allows you to insert in the exception table
either or both of FK violations and column check violations.
The command has a parm that allows you to specify ALL, CHECK, FK (or
FOREIgn, can't remember).
So the exception table will contain what you'll specify.
Depending on the option, after the set, the table could still be in check
pending. If you use ALL, after the set, the table will be in normal state
and the status will show it.
Look in the SYSCA.TABLES, two columns, STATUS and CONST_CHECKED.
Your docs. will show you that in CONST_CHECKED:
The first Y is indicates the table has been checked for Foreign Key
integrity.
The second Y is indicates the table has been checked for Column Check
integrity.
The fifth Y is indicates the table has been checked for Refresh for MQT
integrity. (Don't ask Y the fifth as opposed to 3rd, 4th ???? I don't know).
As well don't ask Y the rest of the 32 values, I don't know. Maybe it's
like in the docs: This page intentionnally left blank!!!!

HTH, Pierre.
--
Pierre Saint-Jacques
SES Consultants Inc.
514-737-4515
"technocrat" <sumant.kalvala@gmail.com> a écrit dans le message de news:
1144269958.369710.115940@i40g2000cwc.googlegroups.com...
Quote:
And another thing,...if i user FOr EXCEPTION....if there are violating
rows....then will the status of the table be "C" at the end of SET
INTEGRITY or "N" ...i mean will it be normal or check pending at the
end of Set Integrity ...for exception.....??
Back to top
Vincent M
*nix forums Guru


Joined: 22 Feb 2005
Posts: 1332

PostPosted: Fri Apr 07, 2006 3:09 am    Post subject: Re: re-configuring db2 server for client operation? [comparison to oracle] Reply with quote

"z" <z@y.x.invalid> wrote in message
news:zzkZf.12878$tN3.5191@newssvr27.news.prodigy.net...
Quote:
I'm sorry I do not know very much about DB2 at all, just
a very superficial amount from running QuickInstall
once.

Would the following be correct [DB2 V 8.2]?


starting from systemA on which DB2 has been installed monolithically
[using the defaults from the Quick Installation Guide wherever possible]
and systemB on which DB2 has not yet been installed:


copy:

systemA /home/dasusr1 to systemB /home/dasusr1
systemA /home/db2fenc1 to systemB /home/db2fenc1
systemA /home/db2inst1 to systemB /home/db2inst1
systemA /opt/IBM to systemB /opt/IBM
systemA /opt/IBMJava2-141 to systemB /opt/IBMJava2-141

[Please let all of the above be a given. Thanks.]

Then, issue the following commands on systemB:

as user db2inst1:

db2 catalog tcpip node systemA remote tcphost server db2c_db2inst1
db2 catalog database sample at node systemA

After this, issuing db2 commands on database sample should not
matter whether the commands are being issues on systemA or systemB.

Correct?

If not, what can be done to the above procedure to make it correct?

[Alternatively, are there files that can be tweaked a la Oracle9i
to achieve the equivalent of the above two db2 administrative commands?]

Thanks...


I don't understand what all the copy commands are for. But you cannot
install DB2 or copy a database by copy files. You should do install of DB2,
backup of the database in question, and restore of database on the new
server. Backup and restore are DB2 commands documented in the Command
Reference.

On your first catalog statement: tcphost is the hostname or IP address of
the remote server. db2c_db2inst1 is the port number or service name (as
specified in /etc/services).

On the second catalog statement, you need a database name and an alias name
that the database will be called on the local machine. So it would be
something like:

db2 catalog database sample as sample_r at node systemA authentication
server

sample_r is the alias with a different name in case you have a local
database named sample. But both the database name and alias name can be the
same if it does not already exist.
Back to top
Norbert Munkel
*nix forums beginner


Joined: 30 May 2005
Posts: 41

PostPosted: Tue Apr 11, 2006 3:02 pm    Post subject: Re: How to recover db2 instance user's privilege? Reply with quote

Mockey Chen schrieb:
Quote:
I installed a DB2 instance named db2inst1, while the user
db2inst1's DBA privilege revoked by some one by accident.
I want to recove the db2inst1's DBA privilege,
then what should I do?

There are three possibilities what might have happened:

1. The user "db2inst1" has been removed from the (operating system)
group configured as SYSADM_GROUP in the database managers configuration.

2. The (operating system) group has been removed.

3. The accident included something like "db2 update dbm cfg using
SYSADM_GROUP=somegroup" and db2inst1 is not member of "somegroup"

Conclusion:

1.

If you can still remember which group was configured as "SYSADM_GROUP",
just add db2inst1 to that group (create the group if necessary, eg
db2iadm1). Unfortunately "get dbm cfg" will not work to figure that out
due to limited privileges.

OR

2.

Drop the instance, recreate it and catalog your databases again.
Restoring them should not be necessary (although a fresh backup always
gives a better feeling).

Hint: db2cfexp and db2cfimp are very nice tools to backup/restore and
even edit the (instance)-configuration.

regards,

Norbert
Back to top
Norbert Munkel
*nix forums beginner


Joined: 30 May 2005
Posts: 41

PostPosted: Wed Apr 12, 2006 10:13 am    Post subject: Re: How to recover db2 instance user's privilege? Reply with quote

Hi again,

Mockey Chen wrote:

Quote:
I re-create the instance, and how to know the database name through
the DB2 data directory?

Well, you should at least remember which database you are missing. E.g.
If it was "test" something like

db2 catalog database test

should do.

If you _really_ can't remember the missings database Name, a look at the
name of the corresponding Backup-Image should help.

Best regards,

Norbert
Back to top
Darin McBride
*nix forums Guru Wannabe


Joined: 28 Jul 2005
Posts: 100

PostPosted: Tue May 23, 2006 3:45 pm    Post subject: Re: Does DB2 8.2 Enterprise Edition support IPv6? Reply with quote

Mockey Chen wrote:

Quote:
Does DB2 8.2 Enterprise Edition support IPv6?

IPv6 support should be in the Viper beta available on IBM's website.
Back to top
Jan M. Nelken
*nix forums Guru Wannabe


Joined: 26 May 2005
Posts: 126

PostPosted: Mon May 29, 2006 4:48 pm    Post subject: Re: DBA Interview Questions Reply with quote

rmli wrote:
Quote:
DBA Interview Questions

http://quickdba.blogspot.com/2006/05/dba-interview-questions.html


Visit for more Articles


Please try to comprehend that Oracle and DB2 do differ...

Jan M. Nelken
Back to top
Knut Stolze
*nix forums Guru


Joined: 28 Jul 2005
Posts: 755

PostPosted: Tue Jun 13, 2006 8:09 am    Post subject: Re: Installing probs with DB2 universal Database 8.2 Reply with quote

Photubias wrote:

Quote:
On 1 machine the installation works perfectly with one of the first
installations screens being the one with the Typical installation taking
520-590MB.
But on about 5 other machines i wanna do exactly the same, but then i get
the installation screen with Typical installation taking 10-20MB. Here the
installation failes eventually, does any one have seen this? And is there
a simple solution?

Maybe you don't even try to install the same product, e.g. server vs.
client-only?

Also what does "installation fails" actually mean? Some sort of error
message? If so, which?

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 25 of 26 [388 Posts] Goto page:  Previous  1, 2, 3, ..., 23, 24, 25, 26 Next
View previous topic :: View next topic
The time now is Tue Dec 02, 2008 5:51 am | All times are GMT
navigation Forum index » Databases » IBM DB2
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts How to ALTER a table using the ALTOBJ procedure Serge Rielau IBM DB2 1 Fri Jul 21, 2006 1:06 pm
No new posts Can't Select External Table from CSV File Resant Server 1 Fri Jul 21, 2006 2:45 am
No new posts Images Table Nicholas Vettese MySQL 1 Thu Jul 20, 2006 2:19 pm
No new posts grant on a specified table to a user Shinyday Server 4 Wed Jul 19, 2006 6:03 am
No new posts Database or table level logging? David Felio MySQL 5 Tue Jul 18, 2006 6:57 pm

Debt Consolidation | Per Insurance | Web Advertising | Gas Suppliers | Xbox Mod Chip
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.9418s ][ Queries: 16 (0.7941s) ][ GZIP on - Debug on ]