Results 1 to 5 of 5

Thread: rename db

  1. #1
    Join Date
    Jul 2008
    Posts
    131

    Question Unanswered: rename db

    Hi,
    I am using db2v9.5 ESE on windows.
    While renaming a database I get the following error:
    DBT1022N The DB2RELOCATEDB tool must be run under instance "DB2".
    which says:
    DBT1022N The DB2RELOCATEDB tool must be run under instance
    "<instance-name>".

    Explanation:
    An attempt has been made to run the DB2RELOCATEDB tool from an incorrect
    instance. If the instance is changing then the tool should be run from
    the new instance.

    User response:
    Resubmit the command using the correct instance.

    I checked for the instance in which I am running the command and it shows the right and expected one only. So what is then going wrong?

  2. #2
    Join Date
    Apr 2006
    Location
    Belgium
    Posts
    2,514
    Provided Answers: 11
    would it not be easier - backup - restore into new database
    Best Regards, Guy Przytula
    Database Software Consultant
    Good DBAs are not formed in a week or a month. They are created little by little, day by day. Protracted and patient effort is needed to develop good DBAs.
    Spoon feeding : To treat (another) in a way that discourages independent thought or action, as by overindulgence.
    DB2 UDB LUW Certified V7-V8-V9-V9.7-V10.1-V10.5 DB Admin - Advanced DBA -Dprop..
    Information Server Datastage Certified
    http://www.infocura.be

  3. #3
    Join Date
    Jan 2009
    Location
    Zoetermeer, Holland
    Posts
    746
    Quote Originally Posted by nittal
    I checked for the instance in which I am running the command and it shows the right and expected one only. So what is then going wrong?
    How exactly? What did you check and what did you see?
    b.t.w. I agree with the previous poster: when you can aviod the relocate and use a "redirected restore", go for the restore. More safe and easier.

  4. #4
    Join Date
    Jul 2008
    Posts
    131
    thanks for pointing the easy way to go

  5. #5
    Join Date
    Jul 2006
    Location
    Pune , India
    Posts
    433
    what are the various options you are using for db2relocatedb ?
    i usually prefer it as it usually renames the db name within a min. or so where bkp/restore may take hrs to do same
    Rahul Singh
    Certified DB2 9 DBA / Application Developer

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •