02-12-2010
What do you mean by "shared memory"? The memory's not shared if changes in A aren't automatically reflected in B's memory. If you make a proper shared segment, A's shared mem will always be the same as B's shared mem. They'd literally be referencing the same memory.
Instead of deleting counters could you just reset them to zero? Or, better yet, make the thing that deletes counters delete them from the shared memory. All DB modifications must update the shared mem to keep it consistent, otherwise it's untrustworthy hence not worth having.
Last edited by Corona688; 02-12-2010 at 12:54 PM..
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
i would like to export a particular table in my oracle database installed in a hpux box. i would like to determine the filesize of the output before performing these action so i can assess if my harddisk can still handle it.
thanks as usuall :rolleyes: (1 Reply)
Discussion started by: inquirer
1 Replies
2. UNIX for Advanced & Expert Users
Hi all,
i am new to the unix enviorment i have got a urgent requirement where we need to migrate the date from the folder heirachy that contains the "IMAGES". These images are to be uploaded on to the database table.
Uploading images from the a single folder (Static) to the... (0 Replies)
Discussion started by: shashisaini24
0 Replies
3. Shell Programming and Scripting
I want to connect to one database and collect data from any table using shell script. (0 Replies)
Discussion started by: rinku
0 Replies
4. UNIX for Dummies Questions & Answers
Hi, I want to create a table on our unix box that allows the user to tab through it and select certain option by putting an asterix or similair into it.
e.g.
--------------
|Start App | |
|Stop App |*|
etc...
Can this be done using a script (never seen any graphics options in ksh, but... (2 Replies)
Discussion started by: dlam
2 Replies
5. Shell Programming and Scripting
Hi ,
I have inserted some records in a table having column "value1 varchar2(4000)" and want to spool in a file.
I have written as below
set echo off
set feed off
set hea off
set wra off
set lin 500
spo temp_table
and fired select query as below
select value1 from temp_table;
spo... (6 Replies)
Discussion started by: CaapAjayShukla
6 Replies
6. UNIX for Advanced & Expert Users
Hello
I have 2 servers that need a database table to be one way synchronized (server A needs to push the table to server B)
I considered using a FEDERATED DB, but decided against it for my particular application (Server B has several apps that would be calling the table repeatedly, and a... (3 Replies)
Discussion started by: kettlewell
3 Replies
7. UNIX for Advanced & Expert Users
Hello
Hope someone can help with this problem. We are running Solaris 10 with a current kernel patch of 142900-09.
We appear to be getting a serious issue with the routing table as shown below:
Output from netstat -rnv
Destination ....Mask ............Gateway ........Device... (2 Replies)
Discussion started by: gregsih
2 Replies
8. AIX
Hello,
I was trying to install python on aix and it was taking too long and I closed the terminal.
Now when i issue the command rpm -qa instead of getting all the rpms installed I'm getting the following error.
root:stud -> $ rpm -qa
cannot get shared lock on database
rpmQuery: rpmdbOpen()... (2 Replies)
Discussion started by: gaugeta
2 Replies
9. Shell Programming and Scripting
Im trying to update an informix database table for each occurance of a head_barcode in a file called mw within a for loop
please see below - cant get the syntax correct. any help please?
for a in `cat /tmp/mw`
do
sql image - << STOP > /dev/null 2>&1
update doc_table set status =... (4 Replies)
Discussion started by: worky
4 Replies
LEARN ABOUT HPUX
shm_unlink
shm_unlink(2) System Calls Manual shm_unlink(2)
NAME
shm_unlink - unlink a shared memory object
SYNOPSIS
DESCRIPTION
The system call removes the name of the shared memory object named by the string pointed to by name. If one or more references to the
shared memory object exists when the object is unlinked, the name will be removed before returns, but the removal of the memory object con-
tents will be postponed until all open and map references to the shared memory object have been removed.
RETURN VALUE
returns the following values:
Successful completion.
Failure,
is set to indicate the error.
ERRORS
If fails, is set to one of the following values:
[EACCES] Permission to unlink the named shared memory object is denied.
[ENAMETOOLONG] The length of the name string exceeds or the length of a (pathname) component of the name string exceeds while is in
effect.
[ENOENT] The named shared memory object does not exist.
[ENOSYS] is not supported by the implementation.
SEE ALSO
shm_open(2), close(2), mmap(2), munmap(2), privileges(5).
STANDARDS CONFORMANCE
shm_unlink(2)