메뉴 건너뛰기

SAP 한국 커뮤니티



Example for Buffer Synchronization(버퍼 동기화)

sapjoy 2007.04.02 13:51 조회 수 : 5055 추천:14

Example for Buffer Synchronization Locate the document in its SAP Library structure

The following example shows how the local buffers of the system are synchronized. We have a system with two application servers, called Server1 and Server2.


Initial situation: Neither server has yet accessed records of the fully buffered table TAB. The local buffers of both servers do not yet contain the records of the table.


Event 1: Server 1 reads records from table TAB in the database.


Event 2: Table TAB is completely loaded into the local buffer of Server 1. Accesses by Server 1 to the data of table TAB now use the local buffer of this server.


Event 3: Server 2 accesses records of the table. Since the table is not yet in the local buffer of Server 2, the records are read directly from the database.


Event 4: Table TAB is completely loaded into the local buffer of Server 2. Server 2 then also accesses the data in TAB using its local buffer the next time it reads.


This graphic is explained in the accompanying text


Event 5: Server 1 deletes records from table TAB and updates the database.


Event 6: Server 1 writes an entry in the synchronization table.


Event 7: Server 1 updates its local buffer.


This graphic is explained in the accompanying text


Event 8: Server 2 accesses the deleted data records. Since table TAB is in its local buffer, access uses this local buffer.


Server 2 therefore finds the records, although they are no longer in the database table!


If the same access were executed from an application program on Server 1, this program would see that the records no longer exist. The behavior of an application program at this time therefore depends on the server on which it is executing!


This graphic is explained in the accompanying text


Event 9: It is now time for synchronization. Both servers check the synchronization table to find out whether one of the tables in its local buffer has been changed in the meantime.


Event 10: Server 2 finds that table TAB was modified by Server 1 in the meantime. Server 2 therefore invalidates the table in its local buffer. The next time Server 2 accesses the data in table TAB, it therefore uses the database. Server 1 does not have to invalidate the table in its buffer because it alone changed table TAB. Server 1 therefore uses its local buffer the next time it accesses records of table TAB.


This graphic is explained in the accompanying text


Event 11: Server 2 again accesses records of table TAB. Because TAB was invalidated in the local buffer of Server 2, access uses the database.


Event 12: The table is again loaded into the local buffer of Server 2. The information about table TAB is now consistent for both servers and the database.


This graphic is explained in the accompanying text


출처. sap.help.com


누가 물어봐서 올립니다.

번호 제목 글쓴이 날짜 조회 수
1184 <img src=d.gif>SAP screen에 그림파일 조회하기(3)[추천:보나] [14] file 춘풍 2011.03.11 17853
1183 <img src=d.gif>SAP screen에 그림파일 조회하기(2)[추천:보나] [20] file 춘풍 2011.03.11 17299
1182 <img src=d.gif>SAP Screen에 그림파일 조회하기(1)[추천:보나] [25] file 춘풍 2011.03.11 18082
1181 웹딘프로 생성 예제(SFLIGHT 데이타를 화면에 출력하자) [9] file 양키 2011.02.21 20116
1180 sap 모듈별 Tables Reference 실행파일입니다. [12] file 아이촉촉 2011.02.09 7566
1179 LSMW 메뉴얼 [27] file 카푸치노 2011.02.08 20005
1178 SAP Mobile 개발을 위한 java(jar) tool [13] file 양키 2011.02.07 16626
1177 T-CODE 리스트 [18] file talking11 2011.02.07 18335
1176 <img src=d.gif>Code Inspector(tcode:SCI) 사용방법[추천:e-abap] [13] file 양키 2011.01.24 18864
1175 List ALV에서 헤더만 두줄로 보이기 [17] file 아바뽀 2011.01.22 18471
1174 <img src=d.gif>다운로드 받은 BDC recording 파일을 이용한 BDC 구문 자동 완성 유틸?[추천:e-abap] [15] file 특정단어 2011.01.19 18155
1173 gdb 뷰어 참고하세요 [8] file 위대한코끼리 2011.01.15 17235
1172 T-CODE 모음(FI포함) [18] file 노아 2011.01.12 19015
1171 Data_Interface [10] file 크리스마스 2010.12.24 17796
1170 abap certification [11] file 크리스마스 2010.12.24 18974
1169 Internal Table 사용 메뉴얼 [51] file 재즈 2010.12.23 14753
1168 Interactive Programming 예제 [5] file 양키 2010.12.22 16376
1167 SAP 시스템의 Overview ? [3] file 남군 2010.12.16 8101
1166 간단한 SQL Test 소스 입니다. [13] file 남군 2010.12.16 8299
1165 User-exit & BADI Search Program [3] file SAP아가씨 2010.12.08 10970