473,395 Members | 1,905 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,395 software developers and data experts.

Moving database to a larger hard disk partition

Good morning,

Database PRODUCTION was created on a system mamanged tablespace on
drive c:\
Now drive c:\ is running out of space and I need to move PRODUCTION to
the larger drive d:\ on the same machine.
PRODUCTION is currently accessed by 50 clients running many
applications and by some REXX scripts running on the same server
machine on a timely basis.
I do not want to modify in any way clients configuration, applications,
nor server REXX scripts.

Please let me know if the following procedure is the correct one:

1) Disconnect both client and server applications
2) Backup PRODUCTION
3) Drop PRODUCTION
4) Restore PRODUCTION into dirve d:\
5) Leave totally untoched all CAE configurations and REXX scripts.

Moroever, what if I skip to DROP PRODUCTION before restoring it ?
Will I be forced to change database name while restoring it and
recataloging all CAEs to address the new name ?

Thank you for your help.

Nov 12 '05 #1
2 3577
That will work.

I don't think you can restore to another location without dropping
(uncataloguing) the database first. You definitely can't restore to the same
name, so that would hardly be transparent. The physical disk issues are not
the problem.

BTW, next time, don't use the boot drive to hold a database. Other drives
can be enlarged, but not the boot drive.

"Massimiliano Campagnoli" <ma**@paoloastori.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
Good morning,

Database PRODUCTION was created on a system mamanged tablespace on
drive c:\
Now drive c:\ is running out of space and I need to move PRODUCTION to
the larger drive d:\ on the same machine.
PRODUCTION is currently accessed by 50 clients running many
applications and by some REXX scripts running on the same server
machine on a timely basis.
I do not want to modify in any way clients configuration, applications,
nor server REXX scripts.

Please let me know if the following procedure is the correct one:

1) Disconnect both client and server applications
2) Backup PRODUCTION
3) Drop PRODUCTION
4) Restore PRODUCTION into dirve d:\
5) Leave totally untoched all CAE configurations and REXX scripts.

Moroever, what if I skip to DROP PRODUCTION before restoring it ?
Will I be forced to change database name while restoring it and
recataloging all CAEs to address the new name ?

Thank you for your help.

Nov 12 '05 #2
Do a DB2 ? RESTORE, it shows:

RESTORE DATABASE source-database-alias { restore-options | CONTINUE |
ABORT }

restore-options:
[USER username [USING password]] [TABLESPACE [ONLINE] |
TABLESPACE (tblspace-name [ {,tblspace-name} ... ]) [ONLINE] |
HISTORY FILE [ONLINE] | LOGS [ONLINE] | COMPRESSION LIBRARY [ONLINE]]
[INCREMENTAL [AUTOMATIC | ABORT]] [USE {TSM | XBSA} [OPEN num-sess
SESSIONS]
[OPTIONS {options-string | options-filename}] |
FROM dir/dev [{,dir/dev} ... ] | LOAD shared-lib [OPEN num-sess SESSIONS]
[OPTIONS {options-string | options-filename}]] [TAKEN AT date-time]
[TO target-directory] [INTO target-database-alias] [LOGTARGET directory]
[NEWLOGPATH directory] [WITH num-buff BUFFERS] [BUFFER buffer-size]
[DLREPORT file-name] [REPLACE HISTORY FILE] [REPLACE EXISTING] [REDIRECT]
[PARALLELISM n] [COMPRLIB lib-name] [COMPROPTS options-string]
[WITHOUT ROLLING FORWARD] [WITHOUT DATALINK] [WITHOUT PROMPTING]

This shows you can specify a new path for the db: TO target-directory. Also
use REPLACE EXISTING
The db has unique seed number that will show the restore that you are
bringing back the same db but to a new location. It will build the new
path.
The current path is C:\instname\node0000\SQL0000n
The new path will be: D:\instname\node0000\SQL0000n
The db diretories (system and local) will be updated also to show the new
location.

The physical location of the db is never known to the clients. They connect
to a db name which takes them to the node/server. The server's system
database directory identifies the db as a local db and the server's local db
directory identifies the actual path to the db.

The REXX scripts will have to modofied for each of their code lines showing
C:\
There's no facility for the script to know that the db has moved to a new
drive.

HTH, Pierre.

--
Pierre Saint-Jacques
SES Consultants Inc.
514-737-4515
"Massimiliano Campagnoli" <ma**@paoloastori.com> a écrit dans le message de
news: 11**********************@f14g2000cwb.googlegroups. com...
Good morning,

Database PRODUCTION was created on a system mamanged tablespace on
drive c:\
Now drive c:\ is running out of space and I need to move PRODUCTION to
the larger drive d:\ on the same machine.
PRODUCTION is currently accessed by 50 clients running many
applications and by some REXX scripts running on the same server
machine on a timely basis.
I do not want to modify in any way clients configuration, applications,
nor server REXX scripts.

Please let me know if the following procedure is the correct one:

1) Disconnect both client and server applications
2) Backup PRODUCTION
3) Drop PRODUCTION
4) Restore PRODUCTION into dirve d:\
5) Leave totally untoched all CAE configurations and REXX scripts.

Moroever, what if I skip to DROP PRODUCTION before restoring it ?
Will I be forced to change database name while restoring it and
recataloging all CAEs to address the new name ?

Thank you for your help.


Nov 12 '05 #3

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

Similar topics

2
by: Erich Keane | last post by:
Ok, first a quick background: I, along with a small group of diehards came up with a way to disable the EU volume cap protection on the european ipods. Unfortunately, this way never caught on, as...
19
by: dchow | last post by:
Our database size is currently 4G and is incrementing at a rate of 45M/day. What is the max size of a SQL database? And what is the size beyond which the server performance will start to go down?
6
by: Hemant Shah | last post by:
Folks, I need to move HOME directory of an instance to another directory. What is the best way of doing it? Is changing password file enough? or dies DB2 store this info in it's own config? ...
2
by: Jeff Davis | last post by:
I have virtual hosted users on a server and some of them have a postgresql database. I'm concerned about the outside possibility that a user could create an infinite loop and fill up the partition...
2
by: fuzzybr80 | last post by:
I am using MySQL 5.0 with a number of innodb tables whose ibdata files are growing quite quickly and filling up the /var partition (file is /var/mysql/ibdata1). Earlier on I followed instructions...
4
by: Zeeshan | last post by:
hi, i want to get the hard drive number for example if if have drive letter C it should tell me Disk number as 1 and suppose if i have another hard disk attach to my system having letter J, the by...
3
by: Marc C | last post by:
Hello, I have a SQL 2000 installation on a small partion that I would like to move to a second larger partion on the same disk array array with the config as follows: d: full installation of prod...
13
by: ragtag99 | last post by:
I posted this on comp.lang.asm.x86, alt.os.development, comp.arch, comp.lang.c++ Im working with windows xp professional, NTFS and programming with MASM, c++ (free compiler) or visual basic 6.0...
1
by: scotter86 | last post by:
Hey everyone, for the love of god i cannot get this straight. I have 2 hard drives, each runing windows xp home. I installed linux on my second hard drive and it over wrote the windows mbr. thats...
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: 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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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,...
0
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...
0
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...
0
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,...

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.