What is semaphore and shared memory

Hello Gurus,
what is Semaphores and shared memory. what is the use of setting the parameter
SHMMAX
SHMMIN
SEMMIN while installing Oracle software in Linux
Regards
Hameed

Hello,
I would advise you to review Oracle Metalink Document: Semaphores and Shared Memory - An Overview : Doc ID: Note:153961.1.
https://metalink.oracle.com/metalink/plsql/f?p=130:14:12007188755102069423::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,153961.1,1,1,1,helvetica
Oracle Metalink Document: TECH: Unix Semaphores and Shared Memory Explained Doc ID: Note:15566.1.
https://metalink.oracle.com/metalink/plsql/f?p=130:14:12007188755102069423::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,15566.1,1,1,1,helvetica
Additionally you can review Oracle Metalink Document: Linux: How to Check Current Shared Memory, Semaphore Values Doc ID: Note:226209.1.
https://metalink.oracle.com/metalink/plsql/f?p=130:14:12007188755102069423::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,226209.1,1,1,1,helvetica
Hope it helps.
Adith

Similar Messages

  • Semaphores and shared memory's classes

    Hi there,
    I looking for the classes used to deal with semaphores and shared memory. Does anyone know which are these classes?
    Thanks

    The file mapping capability added in 1.4 may result in shared memory but this is not guaranteed. You can use JNI to call some C code which allocates shared memory and then uses the NewDirectByteBuffer method to return a ByteBuffer representing that shared memory to the Java code.
    You would also need to use JNI to wrap system provided semaphore or mutex operations to provide cross process synchronization.
    However, do your communication needs really require performance in excess of that available using sockets? I can get at least 7MB/s between two processes on a rather modest machine.

  • Segment memory and shared memory

    hi guys
    is it possible to know the path of "Segment memory and shared memory " on OS level...........
    i don't know exact forum for this question so i post it here
    please help me !

    If are you using Linux you can use ipcs to get all shared memory segments at system level:
    $  ipcs -m
    ------ Shared Memory Segments --------
    key        shmid      owner      perms      bytes      nattch     status
    0x0000f47a 65536      root      777        512000     4
    0x26278554 163842     oracle    640        132120576  16
    0xac004cf0 196611     oracle    660        16108224512 128The Oracle executable sysresv uses ORACLE_SID env. var to map shared memory segment to the current instance:
    $ sysresv
    IPC Resources for ORACLE_SID "XXX1" :
    Shared Memory:
    ID              KEY
    196611          0xac004cf0
    Semaphores:
    ID              KEY
    229377          0x2dac12a4
    Oracle Instance alive for sid "XXX1"

  • Solaris 10, Oracle 10g, and Shared Memory

    Hello everyone,
    We've been working on migrating to Solaris 10 on all of our database servers (I'm a UNIX admin, not a DBA, so please be gentle) and we've encountered an odd issue.
    Server A:
    Sun V890
    (8) 1.5Ghz CPUs
    32GB of RAM
    Server A was installed with Solaris 10 and the Oracle data and application files were moved from the old server (the storage hardware was moved between servers). Everything is running perfectly, and we're using the resource manager to control the memory settings (not /etc/system)
    The DBAs then increase the SGA of one of the DBs on the system from 1.5GB to 5GB and it fails to start (ORA-27102). According to the information I have, the maximum shared memory on this system should be 1/4 of RAM (8 GB, actually works out to 7.84 GB according to prctl). I verified the other shared memory/semaphore settings are where they should be, but the DB would not start with a 5 GB SGA. I then decided to just throw a larger max shared memory segment at it, so I used the projmod to increase project.max-shm-memory to 16GB for the project Oracle runs under. The DB now starts just fine. I cut it back down to 10GB for project.max-shm-memory and the DB starts ok. I ran out of downtime window, so I couldn't continue refining the settings.
    Running 'ipcs -b' and totalling up the individual segments showed we were using around 5GB on the test DB (assuming my addition is correct).
    So, the question:
    Is there a way to correlate the SGA of the DB(s) into what I need the project.max-shm-memory to? I would think 7.84GB would be enough to handle a DB with 5GB SGA, but it doesn't appear to be. We have some 'important' servers getting upgraded soon and I'd like to be able to refine these numbers / settings before I get to them.
    Thanks for your time,
    Steven

    To me, setting a massive shared memory segment just seems to be inefficient. I understand that Oracle is only going to take up as much memory (in general) as the SGA. And I've been searching for any record of really large shared memory segments causing issues but haven't found much (I'm going to contact Sun to get their comments).
    The issue I am having is that it doesn't make sense that the DB with a 5GB SGA is unable to startup when there is an 8GB max shared memory segment, but a 10GB (and above) seems to work. Does it really need double the size of the SGA when starting up, but 'ipcs' shows it's only using the SGA amount of shared memory? I have plans to cut it down to 4GB and test again, as that is Oracle's recommendation. I also plan to run the DB startup through truss to get a better handle on what it's trying to do. And, if it comes down to it, I'll just set a really big max shared memory segment, I just don't want it to come back and cause an issue down the road.
    The current guidance on Metalink still seems to be suggesting a 4GB shared memory segment (I did not get a chance to test this yet with the DB we're having issues with).
    I can't comment on how the DBA specifically increased the SGA as I don't know what method they use.

  • ORA-01031: insufficient privileges and shared memory realm does not exist

    Hi all,
    I came to a dead end to start oracle 10.2 database. I have searched on google and this forum, none of these solutions work for me. PS, I have installed 11g on my machine too.
    I have set up ORACLE_SID,ORACLE_HOME to 10.2 database based on the tnsnames.ora.
    follow is error message:
    sqlplus sys as sysdba
    SQL*Plus: Release 10.2.0.1.0 - Production on Wed Apr 3 02:09:54 2013
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Enter password:
    ERROR:
    ORA-01031: insufficient privileges
    sqlplus /nolog
    SQL*Plus: Release 10.2.0.1.0 - Production on Wed Apr 3 02:10:55 2013
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    SQL> conn / as sysdba
    ERROR:
    ORA-01031: insufficient privileges
    SQL> conn scott/tiger
    ERROR:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux-x86_64 Error: 2: No such file or directory
    First I thought the instance has been start yet, but since I can't login with sysdba. I don't know what other options.
    For 10.2, the tnsnames.ora
    ORA102 =
    +(DESCRIPTION =+
    +(ADDRESS = (PROTOCOL = TCP)(HOST =XXX)(PORT = 1523))+
    +(CONNECT_DATA =+
    +(SERVER = DEDICATED)+
    +(SERVICE_NAME = ora102)+
    +)+
    +)+
    LISTENER_ORA102 =
    +(ADDRESS = (PROTOCOL = TCP)(HOST =XXX)(PORT = 1523))+
    EXTPROC_CONNECTION_DATA =
    +(DESCRIPTION =+
    +(ADDRESS_LIST =+
    +(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC2))+
    +)+
    +(CONNECT_DATA =+
    +(SID = PLSExtProc)+
    +(PRESENTATION = RO)+
    +)+
    +)+
    listener.ora:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /data/oracle/ora102)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC2))
    (ADDRESS = (PROTOCOL = TCP)(HOST =XXXXX)(PORT = 1523))
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    )

    try do this steps on server side:
    1) sqlplus sys as sysdba
    2) select open_mode from v$database;
    show result 2 step

  • Migration 8i to 9iR2 and "Shared Memory Realm does not exist"

    Dear Experts,
    I read from Note 159657.1 in step 22
    If you are using a passwordfile set the parameter
    REMOTE_LOGIN_PASSWORDFILE=NONE (If you are using windows also set the
    parameter SQLNET.AUTHENTICATION_SERVICES=(NTS) in the sqlnet.ora file.
    The issue is I can't restart my instance in step 32 (same note) because I need to have SQLNET.AUTHENTICATION_SERVICES=(NONE) since we migrated to Active Directory.
    So...is this setting to (NTS) mandatory before migrating my database ? If Yes Should I simply set it to NTS and then set it back to NONE before re-strating my database ?
    Thanks for any advice.
    Regards,
    Guillaume

    Hi,
    "Shared Memory Realm does not exist" error might come from some initialization parameter in init.ora file not set properly most probably these are "memory" related parameters. init.ora file was configured with diffirent memory value.
    Data sheet

  • FOTRAN and Shared Memory

    I'm currently working with a large simulation involving mixed language Fortran and C executable programs (like 10 different executables running
    together in real-time).
    I now need to port the code from SUN-3 (SunOS 4.0) over to a modern Enterprise 250 server. Since I' porting I'd like to have the multitude of executables to use the POSIX compliant calls shm_open and mmap to map the appropriate common blocks. Unfortunately, my search of Dejanews and other internet sources have shown this to be a widely debated topic without much in the way of answers.
    So far, I've written fortran callable c-stubs to do the shm_open and mmap calls but I can't get mmap to successfully take the address I specify. Also since the other fortran programs will have copies of the same common blocks the obvious interface issue comes up, how to I map onto the same common block (shared memory region) for all programs?
    My target platform is UltraSparc II running Solaris 2.7. Any hints?

    One possible problem is that Fortran passes everything by reference (by
    default) and the C routines that you are calling may want some of the
    data to be passed by value.
    Another could be that the mmap doesn't want to remap the common blocks
    if they are already mapped. If that is the case, you can try mapping unused
    space and then using either Fortran 95 (preferred) or Cray pointers to point
    to the space. If you make it work with Fortran 95 pointers, you won't even
    need much in the way of syntax changes in your program.

  • Trying to create multiple state machines out of same VI to monitor each cFP channel results in what seems to be shared memory between machines

    Hi,
    I'm trying to create a state machine which monitors a single channel on a field point. I want to monitor up to 64 channels at a time, each one with different instances of the same VI. The VI itself needs to maintain information mainly through feedback nodes both in its own block diagram and subVIs within. 
    All instances of this VI will be executing inside a main loop as they do not execute loops of their own as this would create 64 threads on the cFP-2200 we're using which I believe would be too much.
    My attempted solution to all of this was to make the Channel Monitoring VI along with all SubVIs reentrant and "pre-allocate" for each instance. This does not seem to help as each VI seems to maintain the state of the one which ran before. Maybe I'm missing a step?
    Is there a better way to approach this problem without writing a separate VI for each channel and the maintenance headache that would cause?

    Hi Ben,
    I actually read your document for another puzzle and it worked well, I think largely because it involved subVIs which were meant as separate threads. In that case, I used methods to alter inputs while the VI was "running."
    In this case, as you know, my SubVIs are not looping inside, they are instead single calls but they do need to maintain the state at the end of their previous call, adding to the data they're tracking after they are called subsequent times. I tried the "call by reference" to call them each time. Below is a screenshot of the VI used to create the occurances and a SubVI used to execute each occurance, this subVI is embedded inside a while loop which I did not show here:
    In running my tests, there still seems to be some data sharing of internal variables and feedback nodes between the SubVIs I'm calling, which I do not want. Am I approaching this in the correct way? Is what I'm trying to do even possible?

  • Why am I having less free memory? What is active and inactive memory?

    Hi, I own a MBP penryn model. Right now, when I look in the activity monitor (or istat pro), it tells me that my free ram is 302mb, 56mb inactive, 816mb active, and 166mb wired. Why am I only having 300mb free if Im only using safari at the moment and not running anything else? Everytime I start up my notebook, the free space is around 1.70gb free at least. But why do I have that little bit of free space after a long time use?
    Sorry if this is a newbie question, im really new to this.
    Message was edited by: djvic87

    About OS X Memory Management and Usage
    Reading system memory usage in Activity Monitor
    Memory Management in Mac OS X
    Performance Guidelines- Memory Management in Mac OS X
    A detailed look at memory usage in OS X
    Understanding top output in the Terminal
    The amount of available RAM for applications is the sum of Free RAM and Inactive RAM. This will change as applications are opened and closed or change from active to inactive status. The Swap figure represents an estimate of the total amount of swap space required for VM if used, but does not necessarily indicate the actual size of the existing swap file. If you are really in need of more RAM that would be indicated by how frequently the system uses VM. If you open the Terminal and run the top command at the prompt you will find information reported on Pageins () and Pageouts (). Pageouts () is the important figure. If the value in the parentheses is 0 (zero) then OS X is not making instantaneous use of VM which means you have adequate physical RAM for the system with the applications you have loaded. If the figure in parentheses is running positive and your hard drive is constantly being used (thrashing) then you need more physical RAM.

  • Shared memory & semaphores

    Hi,
    I'm using an Ultra 10 running Solaris 8.
    I've set the /etc/system file as follow:
    set shmsys:shminfo_shmmax=4294967295
    set shmsys:shminfo_shmmin=1
    set shmsys:shminfo_shmmni=100
    set shmsys:shminfo_shmseg=10
    set semsys:seminfo_semmni=100
    set semsys:seminfo_semmsl=100
    set semsys:seminfo_semmns=200
    set semsys:seminfo_semopm=100
    set semsys:seminfo_semvmx=32767
    forceload: sys/msgsys
    forceload: sys/semsys
    forceload: sys/shmsys
    But it seems to be ignored. The command "ipcs" return:
    IPC status from <running system> as of Tue Jun 18 08:58:13 GMT 2002
    T ID KEY MODE OWNER GROUP
    Message Queues:
    Shared Memory:
    m 0 0x50000392 rw-rr-- root root
    Semaphores:
    Due to this I can not run Oracle 8.1.7.
    What is wrong? What should I do?
    Thanks in advance for your support.
    Patrick

    I got a similar problem on Solaris 9 while trying to get Ingres to run. Ingres comes with a utility named "syscheck" that checks how many semaphores and shared memory segments are available. It complains that there are a total of 0 shared memory segments available in the system (I've set the number to 3) and that there are a total of 30 semaphores in the system (I've set the number to 35).
    However, the sysdef output shows exactly the values that are set in /etc/system. So, do I face a compatibility problem here (Ingres ran fine on Solaris 7) or is it a problem in my system configuration? How can I determine that?
    Thanks in advance
    Gregor

  • Read & Write Shared memory with Java

    Hi,
    I have to read and write from/to shared memory four integers with Java, using Posix package (the shared memory is already created).
    I've looking in google for any examples that attachs, read, and write to shared memory using that package but i couldn't find anything (that's the reason to write in this forum).
    Posix package link
    http://www.bmsi.com/java/posix/docs/Package-posix.html
    Operative System
    Suse 10
    Could anyone help me with any example, please?
    Thank you very much
    Oscar

    Hi, i can't post any code because i have no idea about posix and shared memory.
    I came from web world and my company has send me to space department, two weeks ago, that use Unix as its operative system.
    The first thing i have to do it's what i post but i don't know even how to start doing it, because this is almost the first time i hear about reading and writing shared memory.
    Java is a high level and non-dependent platform (but this kind of things i think are dependent platform, in this case the opearative system) and it's few time since i am working with this operative system.
    That's the trouble i don't know how to start working with this.
    Thanks again

  • Shared memory settings from 32 to 64 bit Oracle

    Hello,
    Questions about Oracle and Shared Memory from 32bit to 64bit Oracle
    I have a Sun Sparc V880 server running Solaris 9 with 8xCPUs and 16gb of Ram. It is currently running 6 Oracle (32 bit) 9.2 databases which we are planning to upgrade to 10.2. My question regards the setting of the Solaris 9 kernel parameters speciifically 'shminfo_shmmax'. This is currently set to - 'shmsys:shminfo_shmmax=4294967295'which I believe is the maximum amount of shared memory which can be allocated to a 32bit version of Oracle and the one recommended by Oracle.
    Running 'show sga' on all of the current 9.2 databases returns
    Total System Global Area
    DB     SGA(bytes)
    db1     772528008
    db2     789305244
    db3     772528008
    db4     114021228
    db5     791238556
    db6     789305244
    Total = 4045703524 bytes or 3.76786 gb.
    1. Does this mean that each Oracle 32bit database can only use up to a maximum of about 4gb of shared memory or that all 6 together can only use up to 4gb ? resulting in 12gb being available for other (non Oracle) processes.
    2. I have noticed (through 'sar' stats) that the server occasionally pages (non zero values for pgscan/s and pgfree/s etc.). Since the server mostly only runs the Oracle databases, is this because Oracle can only use circa 4gb of Ram before it starts paging ?
    3. If both 9.2 and 10.2 Oracle databases are run on the server would increasing the value of shminfo_shmmax then allow the 10.2 databases to use more of the 16gb of Ram, while still limiting the 32bit databases to the 4gb limit ?
    Any help here would be appreciated

    Pl see if MOS Doc 467960.1 (How Important It Is To Set shmsys:shminfo_shmmax Above 4 GB) and the notes it references can help
    HTH
    Srini

  • What should be started and enabled in SQL express 2008 R2? Shared memory, TCP/IP , named pipes, VIA

    I copied my Visual Studio 2008 projects to a new computer and am having trouble getting the database to attach to my website to continue with it.
    I uninstalled SQL 2005 express and installed SQL 2008 R2 Express.
    When I looked in the SQL Server configuration manager, I wasn't sure what should be running and what should be stopped and what protocols should be enabled, etc so I started everything and enabled everything.
    However, the SQL Server Agent will not start. Maybe I did something wrong by enabling everything. I have everything to start automatically, and all enabled:
    SQL Native Client: I right clicked and opened and under client protocols, have enabled all: Shared memory, TCP/IP , named pipes, VIA
    and under SQL Server Network Configuration, I opened that and under there is listed protocols for SQLEXPRESS AND I enabled same things: Shared memory, TCP/IP , named pipes, VIA
    When I could not start the SQL Server Agent before from the SQL Server configuration mgr. I went into services and started it that way and it did start. But since I have rebooted, it will not start that way either and I now get this message: Windows could
    not start the SQL Server Agent(SQLEXPRESS) Service on local computer. Error 1067
    I'm just trying to get my visual studio project working again. Would appreciate any help. Maybe I should uninstall SQL and reinstall 2005??

    Windows could not start the SQL Server Agent(SQLEXPRESS) Service on local computer.
    As the others already wrote, with SQL Server Express in Version 2008 the "SQL Server Agent" will be installed, but it's not a Feature of the Express Edition and therefore you can't start & use it.
    In SQL Server 2005 Express the Agent was completly missing (not installed), therefore you haven't this "issue" before.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • How do I set the shared memory and semaphore Parameters

    Hi, everyone:
    Could someone help me on this? The Oracle Installation Guide
    for Linux says these parameters need to be set, but does not say
    how. Thanks in advance.
    Jim
    null

    Lawrence Yeo (guest) wrote:
    : Hi,
    : Please refer to the Installation guide written by
    : [email protected] at http://jordan.fortwayne.com/oracle/.
    : I haven't successfully install oracle on my linux box, but I
    : think this installation guide is pretty good, it guide you
    step
    : by step throught experience. There is an instruction on how
    to
    : set the parameter, but that require kernel re-compile though.
    It seems this problem is getting discussed on a number of
    different threads. Here is a reply I just posted on one of
    those other threads:
    Ari Arantes (guest) wrote:: Hi,
    : I've installed Oracle on RedHat 5.2 (2.0.36) on a machine with
    : 512 mb memory.
    : First I've recompiled the kernel how Oracle says and basing in
    : some documents (like
    : http://jordan.fortwayne.com/oracle/oralinux.html). Of course
    I've
    : saved a copy of the old kernel. The linux was ok, the command
    : ipcs -l shows the new values of the kernel parameters, but
    Oracle
    : didn't start. I've restored the copy of the kernel, the ipcs -
    l
    : shows the old values and now Oracle is running, with a SGA of
    : almost 300 mb.
    : Is there some problem in that? Will the machine loose
    performance
    : because the miminum values of the kernel parameters?
    : Best regards,
    : Ari
    I have a setup similar to yours (384 MB instead of 512 MB),
    and I spent some time looking at the parameters.
    You CANNOT use the value for SHMMAX from the Oracle manual!
    As it says at http://jordan.fortwayne.com/oracle/oralinux.html
    "Should you decided to change these parameters, if you set
    the SHMMAX to what Oracle says, you are telling the system
    to allow a shared memory segment to grow as large as 4 Gigs.
    Many users have reported problems setting the value this
    high."
    Sounds like you are another one of those users, eh?
    If you read on down, the guy who wrote that web page never
    used over 128 MB for SHMMAX. I'd take a strong hint from that.
    =====
    Oracle wants you to use 4GB-1 as the SHMMAX value. That
    equates to (1<<32)-1. As we shall see, that is not allowed
    without "breaking the rules" for the i386 architecture.
    If you carefully read through the header file, you will find
    out that the **actual maximum value** for SHMMAX is 256 MB.
    You can tell this two ways. Take a look at the file at:
    /usr/src/linux/include/asm/shmparam.h
    Near the top of the file is:
    /* address range for shared memory attaches if
    no address passed to shmat() */
    #define SHM_RANGE_START 0x50000000
    #define SHM_RANGE_END 0x60000000
    Note that the above is 256 MB (0x10000000), or (1<<28). This
    is one potential source of trouble. I don't know if some other
    files someplace else in the kernel specify uses for address
    ranges adjacent to the above range, which I take to be the
    "practical maximum" without redefining that range. Personally,
    I wouldn't want to mess with the above unless I **really**
    knew what I was doing (and I'll be the first to admit I don't).
    =====
    Farther down you will see some more lines (not together)
    that look like this:
    #define SHMID_BITS 7
    #define SHMIDX_BITS 15
    * SHMID_BITS + SHMIDX_BITS must be <= 24 on the i386 and
    * SHMMAX <= (PAGE_SIZE << SHMIDX_BITS).
    #define SHMMAX 0x2000000 /* max shared seg
    size (bytes) */
    Now, 7 + 15 is 22, so you could go up a couple of bits if you
    had to. To avoid making the table any larger, I would suggest:
    #define SHMIDX_BITS 17
    But, 17 turns out to produce a result larger than the "practical
    maximum" (256 MB) above. To see why takes a little more
    explaining.
    If you don't change this at all, then the maximum possible
    value for SHMMAX is 4096 [the PAGE_SIZE) << 15 [_SHM_IDX_BITS],
    or rather (1<<27).
    Now, that is exactly half of the (1<<28) "practical maximum" I
    mentioned above.
    So, if you always want the maximum amount of shared memory,
    then change the definition of SHMMAX to the following:
    #define SHMMAX (PAGE_SIZE<<_SHM_IDX_BITS) /* max shared seg
    size (bytes) */
    That gives you 128 MB in and of itself (as compared with 32 MB
    as Red Hat 5.2 is delivered).
    If you want the full 256 MB that is allowed for in the memory
    map, then you need to also change:
    #define SHMIDX_BITS 16
    The above value is **exactly** what is recommended on the web
    page you were following (above).
    If you want to keep going up, you will need to change the
    memory space allocated for shared memory as defined by
    SHM_RANGE_START and SHM_RANGE_END, something I advise against.
    =====
    Even on a machine with 512 MB of "real" memory, I find it hard
    to believe that there would be any substantial benefit to
    having a maximum shared memory space greater than 256 MB. The
    reason is that Oracle can use multiple shared memory spaces.
    It requires a minimum of ten (10), according to the installation
    manual, but the Red Hat 5.2 distribution supplies SHMMNI (128)
    of them. That will allow each Oracle process to have a total
    of up to 32 GB of shared memory (128 times 256 MB) and all it
    asks for is 40 GB (10 times 4 GB), so it has plenty, IMHO.
    =====
    Let me say a few more words about the web page you were using
    for configuration advice. That person actually **reduced** the
    amount of shared memory segments by specifying **lower values**
    for SHMMNI and SHMSEG.
    I'd **STRONGLY** recommend **NOT CHANGING** those other values!
    Its my understanding that Oracle can make up for the smaller
    maximum shared memory segment size by using more shared memory
    segments. So, if you reduce those, you are essentially shooting
    yourself in the foot by taking away what you are giving with
    increasing the maximum segment size.
    =====
    Good luck, and may this farce be with you!
    null

  • Shared memory and ABAP

    Dear developers,
    I have some documentation on ABAP SHARED OBJECTS and I wonder how I could define shared memory objects at run time ( so I would need something like an API ) instead of using the SHMA transaction.
    I actually also wonder what would happen if 2 users of the same shared object would call on one of its methods ? Can we have concurrent access ? How does the whole locking thing works ? Is it possible to implement waiting calls/locks ?
    If you have any serious/technical documentation on semaphores/locks in SAP/ABAP I'd also be very interested.
    Sincerely,
    Olivier MATT

    Hi matt,
                This is vijay here.
                                          if you r working on frequntly changed data then you must use this locking technique.
    well jus go to se11 and make a lock object by starting initial......EZ....
    EX: EZENMARA.
    then u can fix the lock as shared or (exclusive,cumulative) or( exclusive, not cumulative)
    you can also fix the lock parameters like  specific fields.then jus save and activate.
    and when you will make a program jus call the function module enqueue_ezenmara for locking and dequeue_ezenmara for unlocking and u can get rest in my program.
    regards
    vijay
    rewards if answer is helpfull.
    TABLES: MARA.
    PARAMETER: MATNR LIKE MARA-MATNR.
    CALL FUNCTION 'ENQUEUE_EZENMARA'
    EXPORTING
       MODE_MARA            = 'S'
       MANDT                = SY-MANDT
      MATNR                =
       X_MATNR              = 'MATNR'
      _SCOPE               = '2'
      _WAIT                = ' '
      _COLLECT             = ' '
    EXCEPTIONS
      FOREIGN_LOCK         = 1
      SYSTEM_FAILURE       = 2
      OTHERS               = 3
    IF SY-SUBRC = 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    WRITE: 'TABLE IS LOCKED'.
    ELSE.
    SELECT * FROM MARA WHERE MATNR = MATNR.
    WRITE:/ MARA-MATNR,MARA-ERNAM,MARA-MTART.
    ENDSELECT.
    ENDIF.

Maybe you are looking for

  • Accidntly WIPE

    I accidentally wipped my Blackberry Curve 8520 and since then i cannot use any of the Internet services through my data plan . I tried back up but still I receive the same message when i try using any of the Internet services .It's not even trying to

  • Converting 8mm film question

    Not sure if this is the right forum, but here goes. I have acquired the old family 8 mm film reels (no audio) and the projector, a Kodak Brownie 8 Model 10. I would like to put them into digital format and edit in FCE. I have searched the web and loc

  • Itunes wont burn a CD

    When ever I try to burn a CD to listen to, it starts to initializing when I click burn disk and then stops. A new window will then pop up saying this......."The attempt to burn a disc failed. The device failed to calibrate the laser power level for t

  • Couldn't install RM Client to full version

    Hi, I downloaded Release Management for Visual Studio 2013 with Update 4 (DVD) from my MSDN subscription. RM server and deployment agent have been installed properly. However, I have a problem with RM Client that it is running in 90-day trial version

  • InDesign CS5.5 Installation parameter for serial

    Hello, I created a .msi install pack for InDesign CS5.5. The silent installation works fine, but I need to set the serial key after creating the .msi file, during the installation. Is ther a parameter or something for that? Thanks