473,857 Members | 2,173 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

db2 database online copy help?

Hi all,

I know this is possible in Oracle but has anyone done it in DB2 and
could you maybe direct me to some documentation or let me know how I
would go about doing it?

In the oracle world you would basically need to do the following:

1. Set tablespace to backup mode
2. Copy associated data files to new directory/system
3. Set tablespace off backup mode

4. Keep doing the above for all the tablespaces.
5. Force a log switch to write an archive log
6. Copy the archive logs over to the new directory/system
7. create a new control file with the new system name etc.
8. bring up the DB.

That was basically it.

In most cases we copied the data files over to a new system via rfc
(scp)

Can you do this or something similar in db2 on AIX?

Thanks,

Kevin

May 5 '06 #1
5 3120
1. Take an online backup of the database from source system (include
the logs in the backup)
2. FTP the backup to the destination system
3. Restore the back up on the destination system(redirect ed restore if
the tablespace containers do not follow the same structure)
4. rollforward logs on the destination system

Hope this helps.

Kums
ke******@yahoo. com wrote:
Hi all,

I know this is possible in Oracle but has anyone done it in DB2 and
could you maybe direct me to some documentation or let me know how I
would go about doing it?

In the oracle world you would basically need to do the following:

1. Set tablespace to backup mode
2. Copy associated data files to new directory/system
3. Set tablespace off backup mode

4. Keep doing the above for all the tablespaces.
5. Force a log switch to write an archive log
6. Copy the archive logs over to the new directory/system
7. create a new control file with the new system name etc.
8. bring up the DB.

That was basically it.

In most cases we copied the data files over to a new system via rfc
(scp)

Can you do this or something similar in db2 on AIX?

Thanks,

Kevin


May 5 '06 #2

hi****@gmail.co m wrote:
1. Take an online backup of the database from source system (include
the logs in the backup)
2. FTP the backup to the destination system
3. Restore the back up on the destination system(redirect ed restore if
the tablespace containers do not follow the same structure)
4. rollforward logs on the destination system

Hope this helps.

Kums
ke******@yahoo. com wrote:
Hi all,

I know this is possible in Oracle but has anyone done it in DB2 and
could you maybe direct me to some documentation or let me know how I
would go about doing it?

In the oracle world you would basically need to do the following:

1. Set tablespace to backup mode
2. Copy associated data files to new directory/system
3. Set tablespace off backup mode

4. Keep doing the above for all the tablespaces.
5. Force a log switch to write an archive log
6. Copy the archive logs over to the new directory/system
7. create a new control file with the new system name etc.
8. bring up the DB.

That was basically it.

In most cases we copied the data files over to a new system via rfc
(scp)

Can you do this or something similar in db2 on AIX?

Thanks,

Kevin


Kums,

that's a very similiar idea to the oracle "copy" that I described
except it's using the backup command.

Is there a similar way of just doing a copy? So that you don't have to
have a "dump" space for the backup. Although that isn't all that bad,
could just have a NFS mounted filesystem and dump to it.

Thanks,

Kevin

May 5 '06 #3
ke******@yahoo. com wrote:
hi****@gmail.co m wrote:
1. Take an online backup of the database from source system (include
the logs in the backup)
2. FTP the backup to the destination system
3. Restore the back up on the destination system(redirect ed restore if
the tablespace containers do not follow the same structure)
4. rollforward logs on the destination system

Hope this helps.

Kums
ke******@yahoo. com wrote:
Hi all,

I know this is possible in Oracle but has anyone done it in DB2 and
could you maybe direct me to some documentation or let me know how I
would go about doing it?

In the oracle world you would basically need to do the following:

1. Set tablespace to backup mode
2. Copy associated data files to new directory/system
3. Set tablespace off backup mode

4. Keep doing the above for all the tablespaces.
5. Force a log switch to write an archive log
6. Copy the archive logs over to the new directory/system
7. create a new control file with the new system name etc.
8. bring up the DB.

That was basically it.

In most cases we copied the data files over to a new system via rfc
(scp)

Can you do this or something similar in db2 on AIX?

Thanks,

Kevin


Kums,

that's a very similiar idea to the oracle "copy" that I described
except it's using the backup command.

Is there a similar way of just doing a copy? So that you don't have to
have a "dump" space for the backup. Although that isn't all that bad,
could just have a NFS mounted filesystem and dump to it.

Hmm, in Viper you can perform tablespace buck-ups and stitch it back
together on the remote side, but I fail to see where the difference is
between copies and backup/restore? Care to motivate?

Cheers
Serge

PS: Search for my name on www.ibm.com. You'll find a COPY SCHEMA
article. Maybe that'll help?
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
May 5 '06 #4
Investigate the:
db2relocatedb.

This allows you to take fast OS file system copies ot using flash copies on
ESS or SAN boxes.
Once the data is moved, you use the command on the receiving system with a
config file you build.
The Admin. Guide has all the necessary info.
You can script those, do it once and afte it's only a repeat of the scripts.

HTH, Pierre.

--
Pierre Saint-Jacques
SES Consultants Inc.
514-737-4515
<ke******@yahoo .com> a écrit dans le message de news:
11************* *********@e56g2 00...legr oups.com...

hi****@gmail.co m wrote:
1. Take an online backup of the database from source system (include
the logs in the backup)
2. FTP the backup to the destination system
3. Restore the back up on the destination system(redirect ed restore if
the tablespace containers do not follow the same structure)
4. rollforward logs on the destination system

Hope this helps.

Kums
ke******@yahoo. com wrote:
> Hi all,
>
> I know this is possible in Oracle but has anyone done it in DB2 and
> could you maybe direct me to some documentation or let me know how I
> would go about doing it?
>
> In the oracle world you would basically need to do the following:
>
> 1. Set tablespace to backup mode
> 2. Copy associated data files to new directory/system
> 3. Set tablespace off backup mode
>
> 4. Keep doing the above for all the tablespaces.
> 5. Force a log switch to write an archive log
> 6. Copy the archive logs over to the new directory/system
> 7. create a new control file with the new system name etc.
> 8. bring up the DB.
>
> That was basically it.
>
> In most cases we copied the data files over to a new system via rfc
> (scp)
>
> Can you do this or something similar in db2 on AIX?
>
> Thanks,
>
> Kevin


Kums,

that's a very similiar idea to the oracle "copy" that I described
except it's using the backup command.

Is there a similar way of just doing a copy? So that you don't have to
have a "dump" space for the backup. Although that isn't all that bad,
could just have a NFS mounted filesystem and dump to it.

Thanks,

Kevin


May 8 '06 #5
Thanks for your responses.

It seems like this does an "internal" rename. So it seems like you
need to have the files copied over, paths renamed etc. before you run
the script.

Kevin

Pierre Saint-Jacques wrote:
Investigate the:
db2relocatedb.

This allows you to take fast OS file system copies ot using flash copies on
ESS or SAN boxes.
Once the data is moved, you use the command on the receiving system with a
config file you build.
The Admin. Guide has all the necessary info.
You can script those, do it once and afte it's only a repeat of the scripts.

HTH, Pierre.

--
Pierre Saint-Jacques
SES Consultants Inc.
514-737-4515
<ke******@yahoo .com> a écrit dans le message de news:
11************* *********@e56g2 00...legr oups.com...

hi****@gmail.co m wrote:
1. Take an online backup of the database from source system (include
the logs in the backup)
2. FTP the backup to the destination system
3. Restore the back up on the destination system(redirect ed restore if
the tablespace containers do not follow the same structure)
4. rollforward logs on the destination system

Hope this helps.

Kums
ke******@yahoo. com wrote:
> Hi all,
>
> I know this is possible in Oracle but has anyone done it in DB2 and
> could you maybe direct me to some documentation or let me know how I
> would go about doing it?
>
> In the oracle world you would basically need to do the following:
>
> 1. Set tablespace to backup mode
> 2. Copy associated data files to new directory/system
> 3. Set tablespace off backup mode
>
> 4. Keep doing the above for all the tablespaces.
> 5. Force a log switch to write an archive log
> 6. Copy the archive logs over to the new directory/system
> 7. create a new control file with the new system name etc.
> 8. bring up the DB.
>
> That was basically it.
>
> In most cases we copied the data files over to a new system via rfc
> (scp)
>
> Can you do this or something similar in db2 on AIX?
>
> Thanks,
>
> Kevin


Kums,

that's a very similiar idea to the oracle "copy" that I described
except it's using the backup command.

Is there a similar way of just doing a copy? So that you don't have to
have a "dump" space for the backup. Although that isn't all that bad,
could just have a NFS mounted filesystem and dump to it.

Thanks,

Kevin


May 10 '06 #6

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

Similar topics

3
12148
by: Cristina | last post by:
Hallo i am a beginner into Oracle Technologies.I would like to make backup of my database,but i dont know how.Is there tools?Can i schedule the backup plan? thanks Cristina
2
4985
by: LizP | last post by:
Could someone help us with a problem we're having with regard to moving several databases from SQL 7 to SQL 2000 on different servers in different domains. Our current SQL 7 server resides in one domain, and holds several databases. We now want to move these to a SQL 2000 server in another domain. We're trying to use the Copy Database wizard on the SQL 2000 server (logged in as the local admin account), selecting the SQL 7 server as...
3
29578
by: Rob Wahmann | last post by:
Is there a way to copy/duplicate and rename a database on the same server? I need to make a copy for another application. I appreciate any tips or advice you can provide! TIA - Rob
6
18768
by: xmp333 | last post by:
Hi, I have read the MS documentation and researched this matter, but I could not find the answer to my question. If this is online or in a FAQ somewhere, I apologize in advance. How difficult would it be to host an Access Database online so that people who visit the web site can read and modify the database? I know one can create data access pages, but those are read only.
9
7281
by: Daven Thrice | last post by:
If I have a fairly big Access MDB, that is relational, and has, say, 100 objects (forms, reports, modules, etc.), what is the path to get this database "online". Is there a way to put the tables online and then distribute the front end to each user? What if I want to have all the forms and stuff online? How do you approach something like that? Is it a total rewrite with another tool?
1
5431
by: Mr Gabriel | last post by:
Hi to all, I'm trying to use the copy database wizard to copy a database from the 2000 version to the 2005 version of sql server. I choose not to copy logins so I expect to find a database with only an administrative login o none at all. When I start the created package it throws an error saying: errorCode=-1073548784 description=Executing the query "EXEC dbo.sp_grantdbaccess @loginame = N'PresIng1', @name_in_db = N'PresIng1' " failed...
1
4370
by: Rico | last post by:
Hello, I have a database in 2005 that I'd like to copy and attach in 2000. Is this possible? if so, how do I do it? I've tried doing a number of things from just trying to attach to the db file to trying to export and import via access and I can't seem to get anything to work. Any help would be greatly appreciated. Thanks!
1
2207
by: Dave | last post by:
I'm very new to SQL Server 2005, so please be kind. We had a vendor in and they loaded their software and the database that was created is sitting on the root (c:) drive. On this server we have another drive where the database should reside, is there a way to move this database to the correct drive? Thank you for any help that you could provide.
5
34058
by: Steve | last post by:
Hi; I thought I would rephrase a question I asked in another post to more quickly get to the heart of the matter. My apologies for anyone who is offended by what appears to be a repetition. My company has two identical web sites. One copy is for our customer, and one copy is for us to test our code changes on. We developed a hard to isolate bug in the copy of the web stie for our
0
9923
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
11082
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10711
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...
1
10807
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10394
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
9549
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...
0
5774
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
4190
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3215
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.