473,748 Members | 7,142 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

shared memory - can't backup

Jim
Hello,

I have a broken server that we are going to be moving off to a new server
with a new version of DB2 but here is what I have right now:
RedHat 7.0 (2.2.24smp)
DB2 v6.1.0.40

I am getting this error when I try to run the command 'db2 "backup database
dbname online to /opt/BACKUP"' on my 3 databases:
SQL1042C An unexpected system error occurred. SQLSTATE=58004
SQL1084C Shared memory segments cannot be allocated. SQLSTATE=57019
SQL1084C Shared memory segments cannot be allocated. SQLSTATE=57019

I have done some research and my shmmax is set to '1073741824'.

1) How can I get this to back up? :)
2) What are my options to move the database to a new server with these
problems?

Thanks!

----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Nov 12 '05 #1
5 7079
Jim
Hi again. I didn't receive a response on this. Was my question(s) not
stated clearly or is this just a completely stupid question? I appreciate
a response.

Thanks!

Jim wrote:
Hello,

I have a broken server that we are going to be moving off to a new server
with a new version of DB2 but here is what I have right now:
RedHat 7.0 (2.2.24smp)
DB2 v6.1.0.40

I am getting this error when I try to run the command 'db2 "backup
database dbname online to /opt/BACKUP"' on my 3 databases:
SQL1042C An unexpected system error occurred. SQLSTATE=58004
SQL1084C Shared memory segments cannot be allocated. SQLSTATE=57019
SQL1084C Shared memory segments cannot be allocated. SQLSTATE=57019

I have done some research and my shmmax is set to '1073741824'.

1) How can I get this to back up? :)
2) What are my options to move the database to a new server with these
problems?

Thanks!

----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet
News==---- http://www.newsfeed.com The #1 Newsgroup Service in the World!
100,000 Newsgroups ---= 19 East/West-Coast Specialized Servers - Total

Privacy via Encryption =---


----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Nov 12 '05 #2
Hi Jim,

You wrote:
I am getting this error when I try to run the command 'db2 "backup
database dbname online to /opt/BACKUP"' on my 3 databases:
SQL1042C An unexpected system error occurred. SQLSTATE=58004
SQL1084C Shared memory segments cannot be allocated. SQLSTATE=57019
SQL1084C Shared memory segments cannot be allocated. SQLSTATE=57019

I have done some research and my shmmax is set to '1073741824'.
This is the maximum size of a segment.
Your problem might be the maximum number of segments is too low.

extract of "man shmget":
The followings are limits on shared memory segment resources affecting a
shmget call:

SHMALL System wide maximum of shared memory pages: policy dependent.

SHMMAX Maximum size in bytes for a shared memory segment:
implementation dependent (currently 4M).

SHMMIN Minimum size in bytes for a shared memory segment:
implementation dependent (currently 1 byte, though PAGE_SIZE is
the effective minimum size).

SHMMNI System wide maximum number of shared memory segments:
implementation dependent (currently 4096, was 128 before Linux
2.3.99).
1) How can I get this to back up? :)
Increase SHMMNI/SHMALL parameters and retry.
2) What are my options to move the database to a new server with these
problems?


Maybe shared memory segments got lost somehow: stop instance, use ipclean or
ipcs/ipcrm to free segs, start instance, if this does not help, reboot.

Maybe an offline backup works?

If this all won't work (and noone else has a better idea), you can copy the
database file by file (with cp, tar, ...).
You have to consider some things then:
- This won't work online. Best/easiest to stop the instance before copying.
- Get the source path with "db2 list db directory" and
"db2 get db directory on /path/for/db/from/cmd/above")
- Don't forget to copy tablespace containers you created outside of the
database directory (check with "db2 list tablespaces" and
"db2 list tablespace containers for <TBSPACE_ID_fro m_cmd_above>").
- Preserve user, group and permissions (e.g. use tar).
- Recreate exactly the same directory structure (using links is ok if you
have another physical disk layout on the new server)
- Create an instance with the same name, users and groups (with same ID's)
- Target system should be same/newer db2 version and same/newer fixpak level
(if newer you might have to migrate the database)
- Catalog the database on the new server
(db2 catalog database xy on /path/from/list/db/cmd/above)

HTH

Joachim Banzhaf

Nov 12 '05 #3
Jim
33554432
This is the value of shmall. What do you think?

<posted & mailed>

Joachim Banzhaf wrote:
Hi Jim,

You wrote:
I am getting this error when I try to run the command 'db2 "backup
database dbname online to /opt/BACKUP"' on my 3 databases:
SQL1042C An unexpected system error occurred. SQLSTATE=58004
SQL1084C Shared memory segments cannot be allocated. SQLSTATE=57019
SQL1084C Shared memory segments cannot be allocated. SQLSTATE=57019

I have done some research and my shmmax is set to '1073741824'.


This is the maximum size of a segment.
Your problem might be the maximum number of segments is too low.

extract of "man shmget":
The followings are limits on shared memory segment resources affecting a
shmget call:

SHMALL System wide maximum of shared memory pages: policy dependent.

SHMMAX Maximum size in bytes for a shared memory segment:
implementation dependent (currently 4M).

SHMMIN Minimum size in bytes for a shared memory segment:
implementation dependent (currently 1 byte, though PAGE_SIZE is
the effective minimum size).

SHMMNI System wide maximum number of shared memory segments:
implementation dependent (currently 4096, was 128 before Linux
2.3.99).
1) How can I get this to back up? :)


Increase SHMMNI/SHMALL parameters and retry.
2) What are my options to move the database to a new server with these
problems?


Maybe shared memory segments got lost somehow: stop instance, use ipclean
or ipcs/ipcrm to free segs, start instance, if this does not help, reboot.

Maybe an offline backup works?

If this all won't work (and noone else has a better idea), you can copy
the database file by file (with cp, tar, ...).
You have to consider some things then:
- This won't work online. Best/easiest to stop the instance before
copying. - Get the source path with "db2 list db directory" and
"db2 get db directory on /path/for/db/from/cmd/above")
- Don't forget to copy tablespace containers you created outside of the
database directory (check with "db2 list tablespaces" and
"db2 list tablespace containers for <TBSPACE_ID_fro m_cmd_above>").
- Preserve user, group and permissions (e.g. use tar).
- Recreate exactly the same directory structure (using links is ok if you
have another physical disk layout on the new server)
- Create an instance with the same name, users and groups (with same ID's)
- Target system should be same/newer db2 version and same/newer fixpak
level
(if newer you might have to migrate the database)
- Catalog the database on the new server
(db2 catalog database xy on /path/from/list/db/cmd/above)

HTH

Joachim Banzhaf


----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Nov 12 '05 #4
Jim wrote:
33554432
This is the value of shmall. What do you think?


I would translate that as "enough".
What about SHMMNI?
What about the other suggestions?

bye

Joachim Banzhaf

Nov 12 '05 #5
Jim
I don't think I can adjust shmmni in this kernel on the fly. I think it
calls for a recompile. How can I find out what it is set to currently?
I don't have shmget on redhat 7.0.

Joachim Banzhaf wrote:
Jim wrote:

33554432
This is the value of shmall. What do you think?

I would translate that as "enough".
What about SHMMNI?
What about the other suggestions?

bye

Joachim Banzhaf


----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Nov 12 '05 #6

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

Similar topics

0
4408
by: Srijit Kumar Bhadra | last post by:
Hello, Here is some sample code with pywin32 build 203 and ctypes 0.9.6. Best regards, /Srijit File: SharedMemCreate_Mutex_win32all.py # This application should be used with SharedMemAccess_Mutex_ctypes.py or SharedMemAccess_Mutex_win32all.py
11
4902
by: Michael Schuler | last post by:
The use of STL in shared memory poses a real problem since (non-smart) pointers are not allowed there. Is there any solution for containers in shared memory using smart pointers? Where can I find templates?
5
12905
by: Eddie | last post by:
I have a MySQL-server running Innodb. We have installed ~ 2GB of memory in the server. In spite of this MySQL keeps crashing due to out-of-memory errors. The server is a dual xeon i686 running kernel Linux 2.4.20-8smp redhat stock. Top shows mysql steadily consuming more resourses over a period of 2 hours, up to 1.2 Gb, before it crashes. Any clues?
12
5544
by: Jeremy | last post by:
Hi all, I'm getting very confused about how DB2 uses shared memory and I wonder if someone could clarify matters for me, please ? We are running 32bit DB2 V7.2 FP9 under AIX 4.3.3 on a machine with 64 Gb of memory with a single non-partitioned database using extended storage and with intra-parallelism enabled. I've been experimenting with changing various parameters in an attempt
22
3479
by: xixi | last post by:
hi, we are using db2 udb v8.1 for windows, i have changed the buffer pool size to accommadate better performance, say size 200000, if i have multiple connection to the same database from application server, will each connection take the memory 800M (200000 x 4k = 800 M), so the memory took will be 800M times number of connections, or the total memory get from bufferpool will be 800M?
5
5677
by: apple | last post by:
UDBV8 fp 6a - AIX 5.1 We have scheduled cron jobs to do backups. Periodically and starting to occur more frequently, a backup fails with this error: SQL2072N Unable to bind the shared library "". Reason code: "". We are backing up to a file system on the server. Can't find anything in the logs. We can manually resubmit the job 15 or 30 minutes later and everything works fine. Any ideas on what might be happening? The documentation on...
0
4412
by: Peter | last post by:
When I issue call sqlj.install_jar('file:///f:/jars/mail.jar','MAIL'); I get the messages SQL4301N Java or .NET interpreter startup or communication failed, reason
4
1989
by: Zeya | last post by:
I am executing OSQL using System.Diagnostic.Process with the following parameters: -S <servername> -E -Q "BACKUP DATABASE <databasename> to DISK='E:\Temp\Now.bak'" This works from command line but when I execute this from my ASP.Net app it shows this error: SSL Security error
2
1924
peeaurjee
by: peeaurjee | last post by:
hi! I am using Ms Access 2003 on Xp and i have shared a database on the server through LAN. There is 1 Administrator account, 5 data entry users and 4 read only users. I think I have messed up with the account settings and now whenever i open it with the Admin account it shows me That you do not have permission to open this database and contact the Administrator. I searched on the Internet for the solution but nothing helped me out. I make...
0
8991
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
8830
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9321
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
9247
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...
1
6796
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4602
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...
1
3312
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2782
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2215
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.