Shared memory -  Delete instances

data :  text type char10.
text =  'ME'.
data :  val1 type string.
try.
o_area = zcl_mar_area=>attach_for_write(  ).
create object o_sme area handle o_area.
o_area->set_root( o_sme ).
o_sme->value = 'TEXT'.
o_area->detach_commit( ) .
catch cx_shm_attach_error.
endtry.
data :  val1 type string.
try.
    data : hdl type ref to zcl_mar_area,
          root type ref to zcl_mar_shma.
    hdl = zcl_mar_area=>attach_for_read( ).
    val1 = hdl->root->value.
*   TRY.
  data : oref   type ref to cx_root,
          text type string,
         text1   type string.
*    itab_fms = hdl->root->itab.
catch cx_shm_inconsistent into oref.
        text1 = oref->get_text( ).
catch cx_shm_change_lock_active into oref.
        text1 = oref->get_text( ).
catch cx_shm_exclusive_lock_active into oref.
        text1 = oref->get_text( ).
catch cx_shm_read_lock_active into oref.
        text1 = oref->get_text( ).
catch cx_shm_no_active_version into oref.
        text = oref->get_text( ).
if hdl is not INITIAL.
hdl->detach( ).
hdl->detach_commit( ).
endif.
*TRY.
data: rc type shm_rc.
CALL METHOD zcl_mar_area=>invalidate_instance
  EXPORTING
    inst_name         = CL_SHM_AREA=>DEFAULT_INSTANCE
    terminate_changer = ABAP_TRUE
  receiving
    rc                = rc
* CATCH cx_shm_parameter_error .
*ENDTRY.
endtry.
TRY.
CALL METHOD zcl_mar_area=>free_instance
  EXPORTING
    inst_name         = CL_SHM_AREA=>default_instance
    terminate_changer = ABAP_TRUE
  receiving
    rc                = rc
CATCH cx_shm_parameter_error .
ENDTRY.
I am getting this dump - SYSTEM_SHM_AREA_OBSOLETE
PLease help

Works as designed.
Quote from documentation for free_instance:
After this method has been executed, all programs where area handles still exist for the released area instance versions are terminated with the SYSTEM_SHM_AREA_OBSOLETE runtime error.
Not sure why your are using free instance anyway. The invalidation should be sufficient. Also at the beginning of your code, you use detach and detach_commit in succession, detach_commit is enough to close the changing connection.

Similar Messages

  • Cannot create Shared Memory

    Hi,
    For maintenance activity we have restarted the system. When I checked in
    ST06 for os collecotor is not running and "warning: cannot create shared memory".  Then I have performed the following commands at OS level
    saposcol u2013d
    Collector > clean
    Collector > quit
    saposcol -k to stop the collector.
    Before restarting
    saposcol -d
    Collector > leave (You should get a message Shared memory deleted)
    Collector > quit
    move the coll.put file
    saposcol u2013f(Start the saposcol)
    When I executed the last command. I got message saying that "Cannot create Shared Memory"
    Environment:
    Windows 2003 cluser environment.
    4.6c
    oracle 10g
    Thanks and Regards
    Satya

    Hi Sergo,
    No, but I restarted the SAP, DB and SAPOSCOL. SAPOSCOL is up and running but there is waring mmessage in log file as
    02:27:11 19.04.2010   LOG: ====================================================================================
    02:27:11 19.04.2010   LOG: =                           OS Collector Start
    02:27:11 19.04.2010   LOG: ====================================================================================
    02:27:11 19.04.2010   LOG: Starting C:\WINDOWS\SapCluster\SAPOSCOL.EXE
    02:27:11 19.04.2010   LOG: Saposcol Version is [COLL 20.79 03/08/22 46D - 20.46 NT 04/08/01]
    02:27:11 19.04.2010   LOG: Allocate Counter Buffer [10000 Bytes]
    02:27:11 19.04.2010   LOG: Allocate Instance Buffer [10000 Bytes]
    02:27:11 19.04.2010   LOG: You can ignore :"Index of Title:[Disk Queue Length] not found" on Windows NT 4.0
    02:27:11 19.04.2010   LOG: You can ignore :"Index of Title:[Disk Queue Length] not found" on Windows NT 4.0
    02:27:11 19.04.2010   LOG: You can ignore :"Index of Title:[Disk Queue Length] not found" on Windows NT 4.0
    02:27:11 19.04.2010   LOG: You can ignore :"Index of Title:[Disk Queue Length] not found" on Windows NT 4.0
    02:27:11 19.04.2010   LOG: You can ignore :"Index of Title:[Disk Queue Length] not found" on Windows NT 4.0
    02:27:11 19.04.2010   LOG: You can ignore :"Index of Title:[Disk Queue Length] not found" on Windows NT 4.0
    02:27:11 19.04.2010   LOG: INFO: saposcol's shared memory size is 86420.
    02:27:11 19.04.2010   LOG: Connected to existing shared memory !
    02:27:11 19.04.2010   LOG: MaxRecords = 637 <> RecordCnt + Dta_offset = 751 + 61
    02:27:16 19.04.2010 WARNING: WaitFree: could not set new shared memory status after 5 sec
    02:27:16 19.04.2010 WARNING: Cannot create Shared Memory
    When I trying to stop the SAPOSCOL service. I got the message saying that
    " Could not stop the SAPOSCOL service on Local Computer.
    Error 1053: The service did not respond to the start or control request in a timely fashion."
    and it stopped the SAPOSCOL.
    Then I am able to start SAPOSCOL.
    The strange thing is in my environment, there are OS 10 drives but now I can see only 3 drives c, p and q.
    Regards
    Satya

  • Shared Memory Short Dump: SHMM ab_ShmResetLocks - anyone?

    hello:)
         I have a problem with shared memory area (SHMM) that dumps.
    I have a tool that uses a shared memory area instance to store data.
    When I run the tool and update the data stored in the instance, a short dump is thrown:
    SYSTEM_SHM_AREA_OBSOLETE with the explanation:
    An attempt was made to access a shared memory area that has already been
      released. Possible reasons for release:
    - explicit release from an ABAP program or from the shared objects
       management transaction
    - implicit release during resource shortages
    The first one does not match, as I DO NOT explicitly release the instance of my area.
    Moreover, ST22 shows me different parts of code every time, so my code is not the cause, or a specific part of code, or data that I shift.
    The second one would probably be the cause.
    But how can I avoid it?
    Moreover, there in SM21(System Log) there is at this time, there is a runtime error, that says
    ab_ShmResetLocks and nothing more:(
    Shared Memory size is sufficient.
    The Shared Memory Area Settings (SHMA) do not time out the read/write access(Lifetime: no entry and Automatic area structuring is set)
    Any help is more than welcome, why i get the short dump!!
    best regards
    simon:)

    Please check the following SAP notes:
    [SAP Note 1105266 WDA: Runtime error SYSTEM_SHM_AREA_OBSOLETE|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bc_wd/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d31313035323636%7d]
    Also check the below notes for related details.
    Note 1322182 - Memory consumption of ABAP Shared Objects
    [SAP Note 764187 SYSTEM_SHM_AREA_DETACHED runtime error|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bc_aba/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d373634313837%7d]
    Please check the size of the shared memory object in the profile parameter abap/shared_objects_size_MB.
    Regards,
    Dipanjan

  • SAP HA ASCS Instance service Shared Memory Problem

    Hi Gurus,
    I have completed the setup of ASCS and ERS instance for SAP HA.  The system was working fine, but yesterday when I was trying to start the ASCS instance, it shows following error in the dev_enqsrv log file.
    ShadowTable:attach: ShmCreate - pool doesn't exist
    Enqueue: EnqMemStartupAction Utc=1267507616
    Enqueue Info: replication enabled
    Enqueue Info: enque/replication_dll not set
    ShadowTable:attach: ShmCreate - pool doesn't exist
    ERROR => EnqRepAttachOldTable: failed to get information on old replication table: rc=-1 [enxxmrdt.h   393]
    EnqRepRestoreFromReplica: failed to attach to old replication table: rc=-1
    enque/backup_file disabled in enserver environment
    ***LOG GEZ=> Server start [encllog.cpp  493]
    For resolving this error, I have performed following steps:
    1. cleanipc 04 remove ( where 04 is the instance no for ASCS instance)
    2. saposcol -k to stop the saposcollector and release the shared memory.
    3. Also performed some steps like saposcol -d, kill , leave, quit.
    After doing this steps, the same error is been generated in the dev_enqsrv log file. The only problem with this is the ASCS instance is starting , but while checking the log file available.log, it is changing the staus from available to unavailable every 30 secs.
    Appreciate any response.
    Regards,
    Raj.

    Hi,
    important to know is your NW kernel version and the setup of your file systems.
    The error message could be no real error. It could be just the indication that there is no replicated enqueue table available and therefore the enqueue server of the starting ASCS instance is not able to attach to any existing table. It would create a new one. But: If you start your ASCS on the node where the ERS was running and you see that error message, that indicates that the replicated enqueue table couldn't be attached on your starting enqueue server, which is a critical error in a failover scenario.
    Check following help.sap.com site for details how enqueue table replication works:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/47/e023f3bf423c83e10000000a42189c/frameset.htm
    The available.log has this confusing entries if you have your /usr/sap/<SID>/<Instance>/work directory on a clustered file system which is present on both nodes. In that case, the sapstartsrv of the ASCS on the active node will write to the log file that the instance is available, whereas the sapstartsrv of the ASCS on the passive node will write to the log file that the instance is not available. It's a bug, but there are several possibilities to workaround.
    If you need documentation of SAP HA on SLES or RHEL, I can post the links of the whitepapers here.
    Best regards,
    Matthias

  • DB_ACTION_STATNEW - Error - How to increase shared memory in shadow instanc

    Hi all,
    We are facing the below error in the DB_ACTION_STATNEW phase:
    TRACE-INFO: 82:                                                                                13  4.822960
    TRACE-INFO: 83:  [developertra,00000]   WHERE TABNAME = :A0;                                           8  4.822968
    TRACE-INFO: 84:  [dbntab      ,06694]  ***LOG BY4=>sql error 604    performing SEL on table DDNTT
    TRACE-INFO: 85:                                                                                222  4.823190
    TRACE-INFO: 86:  [dbntab      ,06694]  ***LOG BY0=>ORA-00604: error occurred at recursive SQL level 1
    TRACE-INFO: 87:                        ORA-04031: unable to allocate 4120 bytes of shared memory ("shared pool","select t.ts#,t.file#,t.block...","Typecheck","seg:kggfaAllocSeg")
    TRACE-INFO: 88:                                                                                21  4.823211
    TRACE-INFO: 89:  [dbeh.c      ,00000]  *** ERROR => missing return code handler                       13  4.823224
    TRACE-INFO: 90:                         caller does not handle code 1 from dbntab.c[3718]
    TRACE-INFO: 91:                         ==> calling sap_dext to abort transaction
    HALT 20080410111303
    We have a physical RAM of 64 GB.
    dcecqv1:root > dmesg | more
    Apr 10 11:24
       $Revision: vmunix:    B11.23_LR FLAVOR=perf Fri Aug 29 22:35:38 PDT 2003 $
    Memory Information:
        physical page size = 4096 bytes, logical page size = 4096 bytes
        Physical: 66399504 Kbytes, lockable: 51408244 Kbytes, available: 59648572 Kbytes
    From the error message, I feel that I need to increase the shared memory, can you help me how to increase the shared memory now, bcos system is now running in the shadow instance.
    Thanks & Regards
    Senthil

    Thank you for your mail Shaji.
    SQL> show parameter shared_pool_size
    ORA-00604: error occurred at recursive SQL level 2
    ORA-04031: unable to allocate 4120 bytes of shared memory ("shared
    pool","select x.inst_id,x.indx+1,ks...","Typecheck","seg:kggfaAllocSeg")
    When I tried to see the shared_pool_size it gives the above error.
    Regarding the three log files:
    STATNEW.LOG
    LISTNEW.LOG
    DBSTATNEW.LOG
    - I didnot find STATNEW.LOG file in the path /usr/sap/put/log
    - supadm> cat DBSTATNEW.LOG
    1 ETQ201XEntering upgrade-phase "DB_ACTION_STATNEW" ("20080410111258")
    2 ETQ367 Connect variables are set for standard instance access
    4 ETQ399 System-nr = '02', GwService = 'sapgw02'
    4 ETQ399 Environment variables:
    4 ETQ399   dbs_ora_schema=SAPR3
    4 ETQ399   auth_shadow_upgrade=0
    4 ETQ389 reading file "LISTNEW.LOG" in directory "/usr/sap/put/log".
    4 ETQ275 Created SQL-script "EXSTATE.ORA"
    4 ETQ275 Created SQL-script "EXSTATC.ORA"
    4 ETQ276 Executing SQL-script "EXSTATE.ORA"
    4 ETQ001 START time "2008/04/10 11:12:58"
    4 ETQ399 ext. env.: DIR_LIBRARY=/usr/sap/SUP/SYS/exe/run
    4 ETQ399 ext. env.: LD_LIBRARY_PATH=/usr/sap/SUP/SYS/exe/run:/opt/java1.5/jre/lib/IA64N:/opt/java1.5/jre/lib/IA64N/server:/opt/java1.5/jre/../lib/IA64N
    4 ETQ399 2008/04/10 11:12:58: put_execute: (tp) forkpid:2537
    4 ETQ002 END   time "2008/04/10 11:13:03"
    4 ETQ278 Errors during execution of SQL-script "EXSTATE.ORA"
    1EETQ203 Upgrade phase "DB_ACTION_STATNEW" aborted with errors ("20080410111303")
    supadm>
    supadm> tail LISTNEW.LOG
    NAME= WTY_OBJNR_INDEX
    NAME= WTY_PARTNER_TAB
    NAME= WTY_RCLHST
    NAME= WTY_RCLOBJ
    NAME= WTY_RELOB_TAB
    NAME= WTY_RELOB_TAB_TX
    NAME= WTY_TABLE_ALV
    NAME= WYT2M
    tp_exec_dbscript: 1 statement(s) successfully processed.
    supadm>
    Can u pl help
    Thanks
    Senthil

  • CX_SHM_EXTERNAL_REFERENCE exc. when passing Class instance to Shared memory

    Hi all,
    when setting up the writing to a shared memory (using the SHMA and SHMM transactions), we get an exception mentioning CX_SHM_EXTERNAL_REFERENCE
    This problem is raised because we are trying to move an instantiated class from the calling development to the Shared memory class.
    Therefore, this exception is raised, the sap standard documentation tells me:
    "There are still references from the current area instance version to a different area instance of the shared objects memory, or to the internal session."
    How can we work around this problem, I really want to pass the instantiated class to the Shared memory?
    Thanks in advance for any help,
    Pascal Decock

    My problem is that I would like to embed a Standard SAP class into this shared memory.
    Therefore, I'm obliged to accept the 'Create object' references that are written in standard SAP code.
    That also means that it is impossible to include an instantiated SAP class into a shared object memory?

  • Multiple shared memory segments per instance (redhat AS2.1)

    We are having some trouble with oracle 9.2.0 on redhat linux advanced server. ipcs shows that quite a lot of shm segments are allocated for a single instance, which is quite strange since it should be one. Did anyone out there encounter similar problems ?
    ------ Shared Memory Segments --------
    key shmid owner perms bytes nattch status
    0x00000000 12845056 oracle 640 4194304 13
    0x00000000 12877825 oracle 640 33554432 13
    0x00000000 12910594 oracle 640 25165824 13
    0x00000000 12943363 oracle 640 20971520 13
    0x00000000 12976132 oracle 640 29360128 13
    0x00000000 13008901 oracle 640 29360128 13
    0x00000000 13041670 oracle 640 20971520 13
    0x00000000 13074439 oracle 640 33554432 13
    0xe7f3c788 13107209 oracle 640 33554432 65

    The maximum size of the shared memory segment is too small. Since Oracle cannot fit the SGA into one large shared memory segment, it allocates several shared memory segments. The maximum size of your shared memory segments is around 32 MB.
    To set the maximum size for a shared memory segment, see http://www.puschitz.com/TuningLinuxForOracle.shtml#SettingSHMMAXParameter
    Werner

  • Reentrant shared clones between instances Memory Usage

    Hi guys. 
    I have a question on the Reentrant shared clones between instances. 
    I understand the concept of Reentrant shared clones between instances, Next clone get into the memory after a clone get out the memory. 
    My question is that how many instances of clone can run simultaneously?  How much memory is allocate for Reentrant shared clones between instances?
    If I use call Vi by reference as show in the the figure, will it open more than one VI and keep it in the memory. 

    You might be just a bit confussed about clones, clone pools, and that option 0x80 setting. 
    Your code as written will cause an error to subsequent calls unless the vi has finished first.
    Combining the 0x80 flag with ox40 prepares the vi to be called reenterant so each call to the modified vi will casue one dataspace to be checked out of the clone pool.  The default is one dataspace per core in the clone pool, that can be increased (but not decreased) with the populate async call pool method. 
    Each time that sub vi runs another dataspace is checked out of the clone pool.  If none are avalable additional dataspaces are created on the fly. this takes time you will notice. 
    The sub-vi is responsible for returning the dataspace to the clone pool when it finishes.
    As far as how many can be in memory at one time.  how much memory can your application access and how much memory does your vi's dataspace take?
    Jeff

  • How to delete Shared Memory?

    Hi Gurus,
    Please help me to get out of this issue. I have to delete the content in shared memory. My system is R/3 4.6c and SQL 2000.
    Thanks and Regards,
    Ravi Basavaiah.

    You can try to find out which program still have handles open.
    http://www.sysinternals.com (now a Microsoft site)
    -->      Process Utilities
    -->      Process Explorer
    Download that and execute it on your SAP system.
    Then dig down to the process tree and check all processes of user SAPService<SID> and <sid>adm.
    Markus

  • How to find which shared memory segment corresponds to which instance.

    If you have two or more instances running on a unix machine, is there a way to find out which shred memory segment and what semaphores are allocated. You could do a "ipcs -a" which will give you all the shared memory segments and semaphores, but how to find what corresponds to what instance.
    Thanks
    Devinder
    PS: I dont know whether this is correct discussion forum or not, cause I could not find anything related to it.
    null

    if you type ipcs -a you could see:
    ipcs -aIPC status from <running system> as of Tue Jan 30 12:02:20 EST 2001
    Message Queue facility inactive.
    T ID KEY MODE OWNER GROUP CREATOR CGROUP NATTCH SEGSZ CPID LPID ATIME DTIME CTIME
    Shared Memory:
    m 0 0x500008c7 rw-rr-- root root root root 1 68 373 373 11:48:11 11:48:11 11:48:11
    m 1 0xb9359140 rw-r--- oracle dba oracle dba 28 109568000 593 8631 11:29:43 12:01:36 11:49:06
    m 2 0x21d38b58 rw-r--- oracle dba oracle dba 53 83746816 654 8630 12:01:15 12:01:15 11:49:58
    T ID KEY MODE OWNER GROUP CREATOR CGROUP NSEMS OTIME CTIME
    Semaphores:
    s 196608 0xbfb87050 ra-r--- oracle dba oracle dba 54 12:01:37 11:49:06
    s 196609 0xcc222a00 ra-r--- oracle dba oracle dba 104 11:53:31 11:49:59
    note that the CTIME shows you when the entry was created... they usually map to within a second between the memory segment and the semaphore (M and S). 11:49:06 and 11:49:59 in my case.
    If I look in my alert_log for each instance I will see:
    --Sun Jan 28 11:49:04 2001
    --Starting ORACLE instance (normal)
    and in the other file
    --Sun Jan 28 11:49:58 2001
    --Starting ORACLE instance (normal)
    This lets me know which instance uses which semaphores/memory segments.
    Just be sure the start your instances at least 30 seconds apart so the times are different enough.
    enjoy.
    null

  • Shared memory problem : MaxDB

    Hi
    I am using SAP ABAP trial version. It was working well but now when i start server. it gives the error:
    ===================================================
    ============== Starting System NSP ================
    ===================================================
    =============== Starting database instance ...
    The requested service has already been started.
    More help is available by typing NET HELPMSG 2182.
    The MaxDB Database Starter, Version 7.6.02.14
    Copyright 2000-2007 by SAP AG
    Error! Connection failed to node (local) for database NSP:
    -24700,ERR_DBMSRV_NOSTART: Could not start DBM server.
    -24832,ERR_SHMNOTAVAILABLE: Shared memory not available
    -24686,ERR_SHMNOCLEANUP: Could not cleanup the DBM server Shared Memory
    -24827,ERR_SHMALLOCFAILED: ID E:\sapdb\data\wrk\NSP.dbm.shm, requested size 4287
    037658
    Error: Error while calling dbmcli
    "E:\sapdb\programs\pgm\dbmcli"  -d NSP -u , db_online
    ============== Start database failed !
    Press any key to continue . . .
    can someone tell me the exact steps with command to handle this issue. I am dummie in database administration
    Thanks
    Vishal Kapoor

    Thanks Mark for the advise.
    after the file deletion and system restart as recomended, the new error is coming:
    I stopped every MAXDB running service, deleted 2 given files and rebooted system.
    =============== Starting database instance ...
    The SAP DB WWW service is starting.
    The SAP DB WWW service was started successfully.
    The MaxDB Database Starter, Version 7.6.02.14
    Copyright 2000-2007 by SAP AG
    ERR
    -24988,ERR_SQL: SQL error
    -9022,System error: BD Corrupted datapage
    3,Database state: OFFLINE
    6,Internal errorcode, Errorcode 9163 "corrupted_datapage"
    20026,PAM::GetPage: Data page is not assigned.
    6,bd13GetNode, Errorcode 9163 "corrupted_datapage"
    20066,HistDir: registered files 50, max used are 50
    20017,RestartFilesystem failed with 'System error: BD Corrupted datapage'
    Error: Error while calling dbmcli
    "E:\sapdb\programs\pgm\dbmcli"  -d NSP -u , db_online
    ============== Start database failed !
    Press any key to continue . . .
    Thanks
    Vishal Kapoor

  • Oracle 10G - ORA-27100 & ORA-27101 shared memory realm

    Suddenly my database started having this issue :
    I set ORACLE_SID=Build
    sqlplus /nolog
    connect sys/dba as sysdba
    Connected to an idle instance.
    startup
    I get the error
    ORA-27100: shared memory realm already exists
    and so I run
    shutdown
    I get the error
    ORA-27101: shared memory realm does not exist
    I delete and recreated the instance, I deleted the password file and recreated the password file.. but the problem still exists. I rebooted the machine but I am not able to start the database. I am not able to connect to the database.
    Database Verion : 10.1.0.2.0
    Windows Version : Microsoft Windows Server 2003 Advanced Server
    There are not errors or any trace files. Alert log just shows this :
    Thu May 27 10:33:35 2004
    ORACLE V10.1.0.2.0 - Production vsnsta=0
    vsnsql=13 vsnxtr=3
    Windows Server 2003 Version V5.2
    CPU : 1 - type 586, 1 Physical Cores
    Process Affinity: 0x00000000
    Memory (A/P) : PH:2582M/3069M, PG:4637M/4964M, VA:1959M/2047M
    Thu May 27 10:33:35 2004
    Starting ORACLE instance (normal)
    Thu May 27 10:34:43 2004
    Starting ORACLE instance (normal)
    Any help in this is greatly appreciated.
    -Nags

    I had similar error on 9i, I think it want away when I created DB using dbca. I take it you are creating db with dbca, if not, in command prompt type:
    C:\> dbca

  • Shared memory - free_instance method doesn't work

    I am using shared memory to store data, set the data in a program and then read in an update task.  My write and read both work, but I would like to "delete" the shared memory instance after the read in the update task.  I am using the free_instance method - it works sometimes, but a very small percentage of the time.  Here is the code I am using:
    To write to shared memory:
    data: lv_inst        type shm_inst_name,
              lo_shared_area type ref to z_cl_binkill_shared_area,
              lo_root        type ref to z_cl_binkill_rmnqty.
        lv_inst = ordim_confirm-matid.
        shift lv_inst LEFT DELETING LEADING space.
        concatenate ordim_confirm-who ordim_confirm-vlpla lv_inst into lv_inst.
        try.
        Attach Shared Area
          lo_shared_area = z_cl_binkill_shared_area=>attach_for_write( lv_inst ).
        Create Root Object ( Object to be created in Memory )
          create object lo_root area handle lo_shared_area.
        Set the value for our message
          lo_root->set_data( ordim_confirm ).
        Set the root back into the Area
          lo_shared_area->set_root(  lo_root ). "<- Note the 2 spaces before go_root (didn't work without!)
        Commit and detatch
          lo_shared_area->detach_commit( ).
        catch cx_shm_attach_error.
        endtry.
    To read from shared memory and then (hopefully) delete:
    DATA: lv_inst          TYPE shm_inst_name,
            ls_ordim_confirm TYPE /scwm/s_rf_ordim_confirm,
            lv_rc            TYPE shm_rc,
            lo_shared_area   TYPE REF TO z_cl_binkill_shared_area,
            lo_root          TYPE REF TO z_cl_binkill_rmnqty.
    lv_inst = ls_ordim_c-matid.
              SHIFT lv_inst LEFT DELETING LEADING space.
              CONCATENATE ls_ordim_c-who ls_ordim_c-vlpla lv_inst INTO lv_inst.
              TRY.
                  lo_shared_area = z_cl_binkill_shared_area=>attach_for_read( lv_inst ).
                  lo_root        = lo_shared_area->root.
                  TRY.
                      ls_ordim_confirm = lo_root->get_data( ).
                    CATCH cx_root.
                      CLEAR ls_ordim_confirm.
                  ENDTRY.
                  lo_shared_area->detach( ).
                  lv_rc = lo_shared_area->free_instance( lv_inst ).
                CATCH cx_shm_attach_error.
                  CLEAR ls_ordim_confirm.
              ENDTRY.
    Any ideas why the free_instance doesn't work?
    Jeff Mathieson

    If an UICommand element inside a UIData table does not invoke the method behind the action binding, then this generally means that the row object is out of the scope while the action event is getting to be fired. Test it by putting the managed bean in session scope and see if it will solve the problem. If so, and if you want to keep the managed bean in the request scope, then change/rearrange your data loading logic so that the data is available during at least the invocation phase of the JSF lifecycle. Or split the backing bean in two beans, one for strictly request-scoped data and another for strictly session-scoped data.

  • Problem with EXPORT TO SHARED MEMORY statement.

    Hi I am using the syntax
          EXPORT w_netwr FROM w_netwr
                 w_name FROM w_name
            TO SHARED MEMORY indx(xy)
            FROM wa
            CLIENT sy-mandt
            ID 'Z_MID'.  
    and later importing them in a method but I am getting wrong values in import. Can u please help do we need any
    other addition to make this work correctly.

    delete the memory before exporting and after importing. like a clear statement we use in code.

  • Oracle not Available, Shared Memory realm doesn't exist

    Hi,
    I have problem during XE installation on Windows 2003 R2 SP 2 Enterprise edition. I have uninstall the oracle xe and the result still the same. Finally I uninstall the windows and start all over again, surprisingly the result still the same. FYI, we normally has no issue during installation because this is part of our system we sell to our customer which require oracle xe. This is the first time we have seen this issue.
    ORA-01034 : Oracle Not available
    ORA-27101 : Shared memory realm doesn't exist.
    Oracle XE and listener services is started in the windows services.
    if we try to do startup the following message occured.
    SQL> connect /as sysdba
    Connected to an idle instance.
    SQL> startup
    ORA-44412: XE edition memory parameter invalid or not specified
    SQL>
    I can send you the oracle_xe log, init ora, and OpsBuildAll.log to create the database.
    When we compare with the working installation, we saw that the size of oraclexe folder is less, it's just 233MB while the working one is over 1GB. After investigation, found out that the .dbf files is not avaiable in the oradata folder, i have tried to copy those files from the working one but the problem stay the same, probably there are a lot of files more missing.
    Appreciate your help on this.
    Thanks,
    Agus

    Hi,
    Please find the log below
    SQL> startup nomount pfile="C:\oraclexe\app\oracle\product\10.2.0\server\config\scripts\init.ora";
    ORA-44412: XE edition memory parameter invalid or not specified
    SQL> @C:\oraclexe\app\oracle\product\10.2.0\server\config\scripts\rmanRestoreDatafiles.sql;
    SQL> set echo off;
    select TO_CHAR(systimestamp,'YYYYMMDD HH:MI:SS') from dual
    ERROR at line 1:
    ORA-01034: ORACLE not available
    declare
    ERROR at line 1:
    ORA-01034: ORACLE not available
    select TO_CHAR(systimestamp,'YYYYMMDD HH:MI:SS') from dual
    ERROR at line 1:
    ORA-01034: ORACLE not available
    Connected to an idle instance.
    SQL> spool C:\oraclexe\app\oracle\product\10.2.0\server\config\log\cloneDBCreation.log
    I have css log as well if you are interesting to see.
    Dump file c:\oraclexe\app\oracle\admin\xe\bdump\alert_xe.log
    Tue Mar 20 14:13:29 2012
    ORACLE V10.2.0.1.0 - Production vsnsta=0
    vsnsql=14 vsnxtr=3
    Windows NT Version V5.2 Service Pack 2
    CPU : 24 - type 586, 2 Physical Cores
    Process Affinity : 0x00000000
    Memory (Avail/Total): Ph:5308M/6133M, Ph+PgF:7152M/8000M, VA:1933M/2047M
    Tue Mar 20 14:13:29 2012
    Starting ORACLE instance (normal)
    Tue Mar 20 14:13:30 2012
    Starting ORACLE instance (normal)
    Tue Mar 20 14:13:31 2012
    Starting ORACLE instance (normal)
    Dump file c:\oraclexe\app\oracle\admin\xe\bdump\alert_xe.log
    Tue Mar 20 19:43:31 2012
    ORACLE V10.2.0.1.0 - Production vsnsta=0
    vsnsql=14 vsnxtr=3
    Windows NT Version V5.2 Service Pack 2
    CPU : 24 - type 586, 2 Physical Cores
    Process Affinity : 0x00000000
    Memory (Avail/Total): Ph:5351M/6133M, Ph+PgF:7150M/8000M, VA:1932M/2047M
    Tue Mar 20 19:43:31 2012
    Starting ORACLE instance (normal)
    Dump file c:\oraclexe\app\oracle\admin\xe\bdump\alert_xe.log
    Tue Mar 20 19:55:39 2012
    ORACLE V10.2.0.1.0 - Production vsnsta=0
    vsnsql=14 vsnxtr=3
    Windows NT Version V5.2 Service Pack 2
    CPU : 24 - type 586, 2 Physical Cores
    Process Affinity : 0x00000000
    Memory (Avail/Total): Ph:5254M/6133M, Ph+PgF:7052M/8000M, VA:1932M/2047M
    Tue Mar 20 19:55:39 2012
    Starting ORACLE instance (normal)
    Dump file c:\oraclexe\app\oracle\admin\xe\bdump\alert_xe.log
    Wed Mar 21 05:23:41 2012
    ORACLE V10.2.0.1.0 - Production vsnsta=0
    vsnsql=14 vsnxtr=3
    Windows NT Version V5.2 Service Pack 2
    CPU : 24 - type 586, 2 Physical Cores
    Process Affinity : 0x00000000
    Memory (Avail/Total): Ph:5259M/6133M, Ph+PgF:6894M/8000M, VA:1932M/2047M
    Wed Mar 21 05:23:41 2012
    Starting ORACLE instance (normal)
    Wed Mar 21 05:29:12 2012
    Starting ORACLE instance (normal)
    Wed Mar 21 05:31:42 2012
    Starting ORACLE instance (normal)
    Dump file c:\oraclexe\app\oracle\admin\xe\bdump\alert_xe.log
    Wed Mar 21 05:50:45 2012
    ORACLE V10.2.0.1.0 - Production vsnsta=0
    vsnsql=14 vsnxtr=3
    Windows NT Version V5.2 Service Pack 2
    CPU : 24 - type 586, 2 Physical Cores
    Process Affinity : 0x00000000
    Memory (Avail/Total): Ph:5143M/6133M, Ph+PgF:6768M/8000M, VA:1932M/2047M
    Wed Mar 21 05:50:45 2012
    Starting ORACLE instance (normal)
    Wed Mar 21 06:02:38 2012
    Starting ORACLE instance (normal)
    Dump file c:\oraclexe\app\oracle\admin\xe\bdump\alert_xe.log
    Wed Mar 21 06:04:03 2012
    ORACLE V10.2.0.1.0 - Production vsnsta=0
    vsnsql=14 vsnxtr=3
    Windows NT Version V5.2 Service Pack 2
    CPU : 24 - type 586, 2 Physical Cores
    Process Affinity : 0x00000000
    Memory (Avail/Total): Ph:5205M/6133M, Ph+PgF:6866M/8000M, VA:1944M/2047M
    Wed Mar 21 06:04:03 2012
    Starting ORACLE instance (normal)
    Dump file c:\oraclexe\app\oracle\admin\xe\bdump\alert_xe.log
    Wed Mar 21 06:06:00 2012
    ORACLE V10.2.0.1.0 - Production vsnsta=0
    vsnsql=14 vsnxtr=3
    Windows NT Version V5.2 Service Pack 2
    CPU : 24 - type 586, 2 Physical Cores
    Process Affinity : 0x00000000
    Memory (Avail/Total): Ph:5195M/6133M, Ph+PgF:6837M/8000M, VA:1944M/2047M
    Wed Mar 21 06:06:00 2012
    Starting ORACLE instance (normal)
    Dump file c:\oraclexe\app\oracle\admin\xe\bdump\alert_xe.log
    Wed Mar 21 06:06:11 2012
    ORACLE V10.2.0.1.0 - Production vsnsta=0
    vsnsql=14 vsnxtr=3
    Windows NT Version V5.2 Service Pack 2
    CPU : 24 - type 586, 2 Physical Cores
    Process Affinity : 0x00000000
    Memory (Avail/Total): Ph:5195M/6133M, Ph+PgF:6836M/8000M, VA:1944M/2047M
    Wed Mar 21 06:06:11 2012
    Starting ORACLE instance (normal)
    Dump file c:\oraclexe\app\oracle\admin\xe\bdump\alert_xe.log
    Wed Mar 21 06:06:40 2012
    ORACLE V10.2.0.1.0 - Production vsnsta=0
    vsnsql=14 vsnxtr=3
    Windows NT Version V5.2 Service Pack 2
    CPU : 24 - type 586, 2 Physical Cores
    Process Affinity : 0x00000000
    Memory (Avail/Total): Ph:5191M/6133M, Ph+PgF:6832M/8000M, VA:1944M/2047M
    Wed Mar 21 06:06:40 2012
    Starting ORACLE instance (normal)
    Dump file c:\oraclexe\app\oracle\admin\xe\bdump\alert_xe.log
    Wed Mar 21 06:07:18 2012
    ORACLE V10.2.0.1.0 - Production vsnsta=0
    vsnsql=14 vsnxtr=3
    Windows NT Version V5.2 Service Pack 2
    CPU : 24 - type 586, 2 Physical Cores
    Process Affinity : 0x00000000
    Memory (Avail/Total): Ph:5191M/6133M, Ph+PgF:6831M/8000M, VA:1932M/2047M
    Wed Mar 21 06:07:18 2012
    Starting ORACLE instance (normal)
    Wed Mar 21 06:07:38 2012
    Shutting down instance (abort)
    Wed Mar 21 06:07:51 2012
    Starting ORACLE instance (normal)
    Wed Mar 21 06:13:31 2012
    Starting ORACLE instance (normal)
    I have finished installing the XE on windows but result is the same, dbf file is not created on oradata folder.
    Thanks,
    Agus

Maybe you are looking for

  • Why does Shockwave crash ALL my internet browsers?

    Hi I have a really annoying problem with Shockwave that started only a few days ago. Whenever I load up a web browser and try to start an application which uses Shockwave, specifically using a Webcam in websites, the browser always crashes. This happ

  • How to set the cursor to one point (x0, y0)

    Hello I work with swing and I have done a GUI. In the GUI, I have some points. When I approach one point (x0, y0), I would like to set the cursor of the mouse to the exact position (x0, y0). But I can't find the class that can set the position of the

  • Doubt in oracle text

    Hi, Hi i am getting a parse error when i tried to execute the following using catsearch.      >>> CATSEARCH (item_title,'{SIGN PEN SIGN R50 (M)), 12 PCS/BOX,  RED}', null) > 0;      whereas when i use contains operator, there is no problem.      >>>

  • Inserting Images

    I am new to Dreamweaver AND site-building, so please keep that in mind when answering:) Can I insert an image as a background for my web page and then insert other images on top of it??

  • Tomcat crashes while running servlet chat in IE

    Hi all! I've seen similar problems posted about three years ago, but I didn't see an answer for it. I'd be very grateful if you could help me. I'm writing a chat, the code was taken from the J.Hunter "Servlet programming book" O'reilly, "absurdly sim