473,378 Members | 1,393 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

COLLATE USING IDENTITY

Hi,
We created a database (DB2 UDB 7.2 on solaris 8) without this
(COLLATE USING IDENTITY ) option. But we need this now for binary
sorting. The database is siebel database. Is it possible to drop and
recreate the database with COLLATE USING IDENTITY option and restore
the database. Please advise.

Nanchil.
Nov 12 '05 #1
4 7674
If the database was created in Unicode, backup/restore should work.

If the database was not created in unicode, you'll need to export the
data using a tool like db2move, capture other objects (triggers etc)
using db2look -e, and then recreate those objects, and load or import
the tables in the newly created database.

Nanchil wrote:
Hi,
We created a database (DB2 UDB 7.2 on solaris 8) without this
(COLLATE USING IDENTITY ) option. But we need this now for binary
sorting. The database is siebel database. Is it possible to drop and
recreate the database with COLLATE USING IDENTITY option and restore
the database. Please advise.

Nanchil.


Nov 12 '05 #2
Ken
We did this by unloading the databases using db2move, dropping the
database, recreate the database with the collate using identity and
then reloading with db2move:

1 - run db2look
2 - export database using db2move
3 - unload the db configuration (get db configuration for x)
4 - drop tablespaces (one database left tags in the raw devices)
5 - drop db (I had to remove some "lost+found" directories and
uncatalog one of the databases)
6 - create db with collate using identity (same name as was dropped)
7 - update db configuration
8 - backup the db
9 - ran sql from db2 look to create tables (probably not necessary)
10 - backup the db
11 - use db2load to load the db
12 - run stats
13 - create procedures
14 - create new packages (we had the dbrm's in a directory)
15 - update user and group permissions for tables...
16 - set integrities on constraints
17 - rebind QMF
18 - rebind CLI/ODBC with Client Configuration Assistant
19 - verify connections
20 - backup db

I think we tried doing it with a backup and restore and the collating
sequence was not what we want when we were done with the restore so we
went with the unload and reload. We were lucky it got caught before
we were in production.

Ken

na*****@hotmail.com (Nanchil) wrote in message news:<6c*************************@posting.google.c om>...
Hi,
We created a database (DB2 UDB 7.2 on solaris 8) without this
(COLLATE USING IDENTITY ) option. But we need this now for binary
sorting. The database is siebel database. Is it possible to drop and
recreate the database with COLLATE USING IDENTITY option and restore
the database. Please advise.

Nanchil.

Nov 12 '05 #3
Hi All,
Thanks for your responses. I think we have to do the export and
import the database. Thanks for your help.

Nanchil.

lf****@volcanomail.com (Ken) wrote in message news:<74**************************@posting.google. com>...
We did this by unloading the databases using db2move, dropping the
database, recreate the database with the collate using identity and
then reloading with db2move:

1 - run db2look
2 - export database using db2move
3 - unload the db configuration (get db configuration for x)
4 - drop tablespaces (one database left tags in the raw devices)
5 - drop db (I had to remove some "lost+found" directories and
uncatalog one of the databases)
6 - create db with collate using identity (same name as was dropped)
7 - update db configuration
8 - backup the db
9 - ran sql from db2 look to create tables (probably not necessary)
10 - backup the db
11 - use db2load to load the db
12 - run stats
13 - create procedures
14 - create new packages (we had the dbrm's in a directory)
15 - update user and group permissions for tables...
16 - set integrities on constraints
17 - rebind QMF
18 - rebind CLI/ODBC with Client Configuration Assistant
19 - verify connections
20 - backup db

I think we tried doing it with a backup and restore and the collating
sequence was not what we want when we were done with the restore so we
went with the unload and reload. We were lucky it got caught before
we were in production.

Ken

na*****@hotmail.com (Nanchil) wrote in message news:<6c*************************@posting.google.c om>...
Hi,
We created a database (DB2 UDB 7.2 on solaris 8) without this
(COLLATE USING IDENTITY ) option. But we need this now for binary
sorting. The database is siebel database. Is it possible to drop and
recreate the database with COLLATE USING IDENTITY option and restore
the database. Please advise.

Nanchil.

Nov 12 '05 #4
Nanchil,

What is the codepage or codeset of your database? If your database is UTF-8
or 1208, the default collation is binary already.

Sherman

"Nanchil" <na*****@hotmail.com> wrote in message
news:6c*************************@posting.google.co m...
Hi All,
Thanks for your responses. I think we have to do the export and
import the database. Thanks for your help.

Nanchil.

lf****@volcanomail.com (Ken) wrote in message

news:<74**************************@posting.google. com>...
We did this by unloading the databases using db2move, dropping the
database, recreate the database with the collate using identity and
then reloading with db2move:

1 - run db2look
2 - export database using db2move
3 - unload the db configuration (get db configuration for x)
4 - drop tablespaces (one database left tags in the raw devices)
5 - drop db (I had to remove some "lost+found" directories and
uncatalog one of the databases)
6 - create db with collate using identity (same name as was dropped)
7 - update db configuration
8 - backup the db
9 - ran sql from db2 look to create tables (probably not necessary)
10 - backup the db
11 - use db2load to load the db
12 - run stats
13 - create procedures
14 - create new packages (we had the dbrm's in a directory)
15 - update user and group permissions for tables...
16 - set integrities on constraints
17 - rebind QMF
18 - rebind CLI/ODBC with Client Configuration Assistant
19 - verify connections
20 - backup db

I think we tried doing it with a backup and restore and the collating
sequence was not what we want when we were done with the restore so we
went with the unload and reload. We were lucky it got caught before
we were in production.

Ken

na*****@hotmail.com (Nanchil) wrote in message news:<6c*************************@posting.google.c om>...
Hi,
We created a database (DB2 UDB 7.2 on solaris 8) without this
(COLLATE USING IDENTITY ) option. But we need this now for binary
sorting. The database is siebel database. Is it possible to drop and
recreate the database with COLLATE USING IDENTITY option and restore
the database. Please advise.

Nanchil.

Nov 12 '05 #5

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

Similar topics

1
by: Deepak | last post by:
Hi, I'm using the JDBC API's to access a MS-SQL 2000 DB.I have a manual-commit transaction block involving multiple inserts and updates. One of the step involves retrieving the auto generated...
112
by: Andy | last post by:
Hi All! We are doing new development for SQL Server 2000 and also moving from SQL 7.0 to SQL Server 2000. What are cons and pros for using IDENTITY property as PK in SQL SERVER 2000? Please,...
2
by: Andrew Grandison | last post by:
We are converting a legacy visual foxpro system to use a SQL back-end. A number of (existing DBF) tables currently have a zero-filled primary key eg. '000255' which is just an auto-incrementing...
0
by: Sethuraman D | last post by:
Using <identity impersonate="true" userName="DOMAIN\UserName" password="Password" /> From the client machine, the application access the server to check for the certificates. When the domain...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.