File open  event  지속에 대해..

SELECT * FROM V$SQLAREA;
SELECT * FROM V$ACCESS;
를 하면
v$session_wait에 "file open" event 와 cpu 사용은 증가되며
조회는 안되고 종료할 수 밖에 없습니다...
(V$ACCESS 는 계속 기다려 보니 200개 정도 였습니다..)
무엇이 문제인가요...

이러한 질문은 OS version, OS word size(32bit 64bit), DB version, DB word size
가 없으면 알아낼 수 없습니다. 찾아보면 8.1.6 버젼에서 problem으로
등록된 것이 보이네요.
그런데 v$sqlarea를 where조건없이 모두 조회할 필요가 있는 것인지
요? 로드가 클 텐데요.
아래처럼 필요한 데이터만 조건을 걸어서 찾으면 안되는 건지요?
# buff_used_sql.sql
Doc
버퍼에서 있는 sql문장의 메모리 사용률 확인
file: buff_used_sql.sql
This script lists all statements that are taking longer than
4 seconds to scan through the buffer cache. The statements
use 500 buffer scans per second, which we have found that
most sites run at.
Note that the number of buffers scanned to achieve our
timings is 500 per second.
SET     LINESIZE     140
COLUMN     BUFFER_GETS     FORMAT     999,999
COLUMN EXECUTIONS      FORMAT      999,999
COLUMN      AVERAGE      FORMAT      999,999
COLUMN      RESPONSE      FORMAT      99,999 HEADING "RTime(Sec)"
COLUMN TEXT      FORMAT      A80 HEADING 'Sql Statement'
SELECT BUFFER_GETS,
EXECUTIONS ,
BUFFER_GETS / DECODE(EXECUTIONS, 0,1,EXECUTIONS) "AVERAGE",
BUFFER_GETS / DECODE(EXECUTIONS, 0,1,EXECUTIONS) / 1000 "RESPONSE",
SUBSTR(SQL_TEXT,1,1000) TEXT
FROM V$SQLAREA
WHERE BUFFER_GETS / DECODE(EXECUTIONS, 0,1,EXECUTIONS) > 20
AND ROWNUM < 10
ORDER BY 3 DESC
* 다음 Query는 Lock과 관련된 테이블을 출력.
column username format a10
column lockwait format a10
column sql_text format a80
column object_owner format a14
column object format a15
select b.username username, c.sid sid, c.owner object_owner,
c.object object, b.lockwait, a.sql_text SQL
from v$sqltext a, v$session b, v$access c
where a.address=b.sql_address and
a.hash_value=b.sql_hash_value and
b.sid = c.sid and c.owner != 'SYS'
( 위의 Query를 실행하면 다음과 같은 결과가 출력된다.
USERNAME SID OBJECT_OWNER OBJECT LOCKWAIT
SQL
LTO2 6 LTO EMP C3D320F4
update lto.emp set empno =25 where empno=7788
LTO3 9 LTO EMP C3D320C8
delete from lto.emp where empno=7788
LTO 5 LTO DEPT
insert into lto.dept values (60,'PROGRAMMER','LOS ANGELOS')
여기서는 USERNAME에 나와있는 유저가 OBJECT에 나와있는 테이블을 수정하려고
함을 나타낸다. LT02,LT03는 LT0가 Commit,Rollback 하기를 기다리고 있음을 알
수 있다. 하지만 여기에는 가장 최근의 DML 명령 하나만 나와있기 때문에 여기
나온 명령이 반드시 Lock을 걸고 있는 명령이라고 단정지을 수는 없다.
관련된 프로세스
* 다음 Query를 행해 보면 프로세스와 관련된 정보를 얻을 수 있다.
column "ORACLE USER" format a11
column SERIAL# format 9999999
column "OS USER" format a8
select substr(s.username,1,11) "ORACLE USER", p.pid "PROCESS ID",
s.sid "SESSION ID", s.serial#, osuser "OS USER",
p.spid "PROC SPID",s.process "SESS SPID", s.lockwait "LOCK WAIT"
from v$process p, v$session s, v$access a
where a.sid=s.sid and
p.addr=s.paddr and
s.username != 'SYS'
* 위의 Query를 실행하면 다음과 같은 결과가 출력.
ORACLE PROCESS SESSION SERIAL# OS USER PROC SESS LOCKWT
USER ID ID SPID SPID
LTO 19 5 31 usupport 17312 17309
LTO2 25 6 43 usupport 17313 17310 C3D320F4
LTO3 26 9 1 usupport 17314 17311 C3D320D8
글 수정:
민천사(민연홍)

Similar Messages

  • After the 13.1 retina update, all files open at 50% zoom

    Hi there,
    I have a 15 MacBook Pro retina display, with an external thunderbolt display.  Since the 13.1 update, all files that I open in Photshop open at 50% zoom.  How can I reset it so they open at 100%?  It's really annoying to have to constantly zoom everything that is opened up.
    Thanks!

    As a work-around to your problem:
    1. Make an action that zooms the window to 100% (Photoshop calls it Actual Pixels)
    2. In Scripts Events Manager assign that action to the File Open event.
    From now on every image will open at 100%
    Ronald

  • Open event for RAW files from Bridge

    I installed the “Open As Layer.jsx” to promote the background into a layer and rename that layer to the file name. This is working perfect when I open the file via file menu from PS.
    If I use a double-click from the Bridge it works only for JPEG’s and other files but not for RAW-files. As soon as ACR is involved, no open event is fired in Photoshop.
    Is there a way to catch another event after the file is placed in PS? I tried to find some with the ScriptListener.8li but I don’t get a log entry.
    Thanks for help.

    Edit:
    Glad to hear you got it working.
    I'll just leave what i had put here anyway.
    You want Program Files (x86)
    That's where the 32 bit programs such as photoshop cs3 are on a windows 7 64 bit system.
    Also, in bridge cs3 under Edit>Preferences>Thumbnails ensure Prefer Adobe Camera Raw for Jpeg and Tiff files is checked.
    (then restart bridge cs3)

  • Using open instead of file open causes Acrobat X11 to barf and stop working

    I get a Critical Error when I use Open instead of File Open.
    Faulting Application Path: C:\Program Files (x86)\Adobe\Acrobat 11.0\Acrobat\Acrobat.exe
    Problem Event Name: APPCRASH
    Application Name: Acrobat.exe
    Application Version: 11.0.9.29
    Application Timestamp: 5412b52e
    Fault Module Name: StackHash_9cd1
    Fault Module Version: 0.0.0.0
    Fault Module Timestamp: 00000000
    Exception Code: c00001a5
    Exception Offset: PCH_9A_FROM_ntdll+0x0003AAAC
    OS Version: 6.3.9600.2.0.0.256.48
    Locale ID: 1033
    Additional Information 1: 9cd1
    Additional Information 2: 9cd11aece74acb27712497bb36a41cb9
    Additional Information 3: 907e
    Additional Information 4: 907e2580c2bb8a6c100db3c807719959
    Bucket ID: 14715054b1814cb4d80f9c990e44ea23 (73554368215)

    You can use the DocOpen event.

  • File Open failed Error in Process Chain

    Hi,
    Our process chains are failing at the last step of event trigger.The file is not getting created in the directory as a result of which the BO reports are not getting triggered.Kindly help.
    Regards,
    Shalaka

    Pl find the below code:
    DATA mesg(80) VALUE 'BW load complete. Ready for BOBJ Refresh. File Created on : '.
    DATA fname(60).
    DATA pc_flag TYPE rspc_state.
    * Get the folder and file name from parameter
    PARAMETERS p_fname TYPE string LOWER CASE.
    AT SELECTION-SCREEN.
    START-OF-SELECTION.
       fname = p_fname.
    *Add the system date into the file.
       CONCATENATE mesg sy-datum INTO mesg.
       CALL FUNCTION 'AUTHORITY_CHECK_DATASET'
       EXPORTING
    * PROGRAM =
      activity = 'DELETE'
      filename = fname
      EXCEPTIONS no_authority = 1
             activity_unknown = 2
             OTHERS   = 3 .
       IF sy-subrc = 0.
    *Delete the file if it is already existing
         DELETE DATASET fname.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
       ELSE.
         MESSAGE i051(rsar) WITH 'No Authorizations to delete the file'.
       ENDIF.
       WAIT UP TO 65 SECONDS.
    *Set the flag for the process chain to read if file deletion fails.
       IF sy-subrc <> 0." The ABAP program failed
         pc_flag = zcl_abap_bobj_event_trg=>failed.
       ELSE. " The ABAP program was successful
         pc_flag = zcl_abap_bobj_event_trg=>success.
       ENDIF.
       CALL FUNCTION 'AUTHORITY_CHECK_DATASET'
         EXPORTING
           activity         = 'WRITE'
           filename         = fname
         EXCEPTIONS
           no_authority     = 1
           activity_unknown = 2.
       IF sy-subrc <> 0.
         MESSAGE i051(rsar) WITH 'No Authorizations to Write to file'.
       ELSE.
    *Create the file based on the input from variant including folder and file name.
         OPEN DATASET fname FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
    *Set the flag for the process chain to read if file creation fails.
         IF sy-subrc <> 0.
           MESSAGE i051(rsar) WITH 'File open failed.'.
           pc_flag = zcl_abap_bobj_event_trg=>failed.
         ELSE. " The ABAP program was successful
           TRANSFER mesg TO fname.
           pc_flag = zcl_abap_bobj_event_trg=>success.
         ENDIF.
         CLOSE DATASET fname.
       ENDIF.
       EXPORT e_state FROM pc_flag TO DATABASE indx(bo) ID
       zcl_abap_bobj_event_trg=>status_idx_id.

  • Photoshop CS4 (11.0.2) crashes when file opens (Windows 7 x64 Pro)

    Did a recent install of Windows 7 x64 Pro and installed Adobe Web Suite and updated all adobe programs. When I use photoshop to open a file, the file opens then photoshop hangs and windows says it has stopped responding then closes. This is a fresh install of windows...
    I used drivermax to backup drivers from a previous install and install those drivers on the new install. After that I installed the newest graphics drivers via nvidia's website.
    I installed all updates for the suite then I cleared my preferences, none of this worked.
    Please let me know where I can find the crash log and any other logs so I can post that info here.
    Message was edited by: Angryp00nani - added things I have tried to solve the issue

    I would do exactly as Curt suggests, and check out Event Viewer. This ARTICLE goes into more detail about what to look for. Be sure to follow every link, in every warning, or error message. Do not get frustrated with warning and error messages, that are 100% code - just look for one written in words that you can understand, and especially with any, that have links.
    Good luck,
    Hunt

  • Acrobat 9.5.5 multiple .pdf files open without toolbars displaying

    Recently, I noticed that, when I open one .pdf file, all toolbars I have selected as customized are displayed.  But, upon opening additional ,pdf files, those files do not display my toolbars at the top - only the file menu shows up.  If I try to close the limited toolbar files, I get the error "Adobe Acrobat 9.5 has stopped working," and the programs aborts.  I've searched the web to no avail for a solution.  My work requires I have multiple Adobe files open, but these additional files have extremely limited functionality without the toolbars.
    Event Viewer indicates the following errors:
    Faulting application path: C:\Program Files (x86)\Adobe\Acrobat 9.0\Acrobat\Acrobat.exe
    Faulting module path: C:\Program Files (x86)\Adobe\Acrobat 9.0\Acrobat\Acrobat.dll
    I'm running Win 7 Pro 64-bit, on Intel i7, with 14 GB RAM, 224GB SSD/68 GB free.  My system should more than amply support the application.
    My thought is a recent Adobe update or Windows update caused this anomaly.  Has anyone else experienced this issue?  Please advise - I'm desperate for a resolution.  Thanks.
    Message was edited by: psoberg
    Update - when you select View -Toolbars on the additional files, all the customized toolbars are check-marked, so they should be displaying.  But, they don't.

    Bill@VT,
    Thank you for your reply.  Your recommendation is not the issue for sure.  I had tested by opening numerous files on my system, which I know are not secure.  The first file opened with all toolbar functionality, and the rest of the files opened in limited view.  These are files I've created and opened numerous times in the past with no issues, until recently.
    I've since installed Adobe Pro XI Trial, as well as a couple other .pdf maker apps.  I had already remove Adobe Pro 9.5.5, so I can't reinstall while I have XI on my system - the installation aborts.  My assessment, after spending hours researching it, is that there's a conflict in my OS and 9.5.5.  At this point, I have to cut my losses (time & billable hours) and move onto a more stable, dependable application.  It's probably not going to be an Adobe product, sad to say.  Too many issues, too little accessible and timely support.
    I am grateful for your input in my scenario. Have a splendid day/evening!

  • Show File Open Dialog and get File

    Am creating a document where I want to prompt the user with the File Open dialog box and when a file is selected, I want to get that file and attach to the document. I know the scripting allows files to be attached but how do I display the dialog and then attach using the script.
    Will greatly appreciate the help.
    Am using Adobe LiveCycle Designer 7
    Thanks
    Nilesh!

    Hi Nilesh,
    You can use the getDataObject method of the Adobe document object. Below is a sample script that you can attach to the click event of a button to see how it works. For more information on importDataObject and getDataObject go to
    http://partners.adobe.com/public/developer/en/acrobat/sdk/pdf/javascript/AcroJS.pdf
    SAMPLE
    ======
    //Get a handle to the Adobe document object
    var doc = event.target;
    //Display a file dialog box and assign the name Attachment to the
    //DataObject that contains the selected file.
    doc.importDataObject("Attachment");
    //Get the DataObject and store it in MyData
    var MyData = doc.getDataObject("Attachment");
    //Clear and display the console window
    console.show();
    console.clear();
    //Output the properties of the DataObject
    for (var i in MyData) console.println("MyData." + i + "=" + MyData[i]);
    Trevor

  • Where did catalog paths go in File Open Recent in Lr3??

    In Lr 1 & 2, File >> Open Recent shows you a list of your recently-opened catalogs, INCLUDING the path for each one.  I just upgraded to Lr 3 and only see the catalog NAMES are listed under Open Recent... and no paths.  I don't see any option to turning paths on in Edit >> Preferences or Edit >> Catalog Settings.
    In the past, I had a separate folder for each shoot, each with it's own Lr catalog... I named each folder for each specific shoot, but always named the catalogs "edits"... so i literally have hundreds of catalogs named "edits"!  This was never a problem in Lr 1 or 2 thanks to (1) the paths being displayed in the recent catalog list and (2) them being stored in separate, specifically-named folders... but now I can't distinguish between them in Open Recent... and I'd prefer not to rename all those catalogs!  Anyone have any insight here?  Much thanks! 

    Thanks for the effort Dorin, but actually that isn't true & doesn't help:
    (1) You're incorrect, LR 2.7 does in fact show paths under "Open Recent".  See attached picture of my screen from my old computer running LR 2.7 (I coudln't take a direct screenshot which shows active menus).  Dorin, I believe your paths don't show because they are test catalogs, and possibly your one actual catalog is in the same path as the test ones?  Not sure, but obviously from my picture you can see paths.  (My folders, on the F drive, are labled with dates & names, as you can clearly see.)
    (2) "Stop creating so many catalogs. One is enough."  Seriously?  Because I take over 50,000 shots for wedding season alone each year, let alone all the other completely unrelated things I do - commercial, landscape, events, portraits, etc.  Having just one catalog is nonsensical for many reasons - most notably that it would be so bloated that I couldn't organize anything properly (I use colors, flags, and stars already in each individual catalog already) & it would have amazingly horrible performance.
    So my question remains - does anyone know how to (or if we can) turn paths on in the Open Recent list in LR 3?  Is there anyone from Adobe on these forums?  Thanks

  • Questions re moving files into Events folders

    If you move files into an FCP X Events folder, when you open FCP X will it recognize the new files?
    Or must FCP X import files into Events folder to recognize and use them?

    Great, thanks Tom.
    there are two situations where I am now 1st going to other folders, then importinging into an FCP X Events folder. This costs me drive space (duplicate files) and time (for importing):
    (1) Using Clip Wrap to convert AVCHD files from Sony FS100 cameras to Pro Res 422
    (2) Round-tripping from FCP X to DaVinci Resolve, then rendering the graded media files.

  • Wanted: Simple, Straightforward Logging of File Opens and File Closes Per This Specification -- Is Windows Capable of This?

    What is needed is for Windows to log every attempt to open any file on the system.  The log shall contain a timestamp, name of file, the type of access required
    (read only, write only, read and write, exclusive use, non-exclusive use), and name of the process or service that wants the file open.  Also there must be a record of how the operating system disposed of the request.  If the open is successful,
    say so. If not, say so, and why.  We had this info on the mainframe in 1972.  It would be useful to log file close events, as well.  The close event will disclose what the program did to the file.  For example, did the program write into
    the file?  Did the program read from file?  Did the program truncate the file and write?  Did the program extend the file?  Did the program change the name of the file?   Did the program change any file attributes and, if so,
    which ones?  A file can have multiple streams.  Disclose which streams were affected.
    There is a Security Auditing feature in Windows that doesn't meet this specification.  So that is not the answer.   What is the answer? 
    MARK D ROCKMAN

    I have downloaded Process Monitor and tried it on my lab computer. It certainly is comprehensive in its output. I'm going to try it on the production machines in hope of catching clues as to who does what to whom in the file system that is causing
    3rd party software to reboot the computer. The author of the troublesome program claims he must reboot the computer at the drop of a hat. For example, some file he must open right now is "locked" by some other program, not his program mind you, some
    other program. Okay. So what else is running on the production system that may be doing this? Prove that some other program is doing this.  The fact that we must log all file system activity up to the moment of reboot poses a special issue.  
    Will the Process Monitor log lose any file system events because it cannot properly close the log as the system is being rebooted?  It is interesting the Federal Government is fine with Microsoft delivering an operating system that has no comprehensive
    file access logging capability.  Process Monitor may do it.  But one cannot run that behemoth 24/7/365.  (I hear you saying "Oh.  But we have Security Audits."  A CISSP may be impressed with that one.)
    MARK D ROCKMAN

  • AA9.0 Pro - Reset ddl on file open?

    I have some old documents with a handy little toolbar at the top, part of which is a drop-down list of document sections. The user can choose a section from the ddl and click a button either to print the section or go to it.
    In my old version of Acrobat, I could make this ddl reset to the default value when the user opens the PDF. (Very simply, it was in Documents> Set Page Action, where I could add a "reset form" action to Page Open.) This reset is necessary. I don't want the nav bar to contain the user's last selection when the document re-opens, I want the default text.
    I cannot figure out how to accomplish this in 9.0. I can't seem to find any way to tie an action to a file-open or page-open event. The closest thing I can find in the Help file is about the Actions tab on the form field itself, which can't do the job I'm looking for.
    Is there something simple I'm overlooking?

    > (Very simply, it was in Documents> Set Page Action, where I could add a "reset form" action to Page Open.)
    This was a very old version of Adobe Acrobat.
    Use following in the actual version:
    View > Navigation Panels > Pages
    Select the page and open the Page Properties. Then activate the tab Actions.

  • Load image from URL on file open, then embed image

    I am trying to create a PDF form with an image field that is empty/blank by default. When the PDF is opened, I want it to load the image at C:\picture.jpg and embed that image in that document.
    I need it to load on file open because C:\picture.jpg will be different each time the file is opened. Currently, if I set the image URL and embed it, it uses the image at the first time it's embedded.

    Okay, I created userInfo.js and placed it in C:\Program Files (x86)\Adobe\Acrobat 10.0\Acrobat\Javascripts. That file (adapted from How do I change an image in a button automatically without changing its location?):
    myIcon = app.trustedFunction( function (){app.beginPriv();
    this.getField("userInfo").buttonImportIcon("C:\\picture.jpg")
    app.endPriv();})
    I then added event.target.myIcon(event.target) to topmostSubform.Page1::initialize.
    I get the following error when opening my pdf:
    TypeError: this.getField("userInfo") is null
    2:XFA:topmostSubform[0]:Page1[0]:initialize
    I know the field is null. I want it to be null until I open the pdf. Is there another reason that error would be appearing?

  • Opening event for Excel or Word using Web versions of Excel and Word

    Is there an event or other messaging that can be caught and handled when a Word, or Excel file is selected and open using the web version of Word or Excel? At that event I want to access the OOXML file for the selected Word or Excel file and get data from
    it.
    Thanks
    Jim

    Hi Jim,
    As far as I know, Opening event for Excel or Word is not exist in the Javascript API for Office.
    Unfortunately, I could not find such a document.
    >> At that event I want to access the OOXML file for the selected Word or Excel file and get data from it.
    For a workaround, I will recommend you add a function to get the data from the file in the Office.initialize event.​
    Best Regards,
    Edward
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

  • File open dialog to just get the user selected file name

    Hi,
    I am working on asynchronous file storage to KPRO through my ABAP WD application. For this asynchronous upload
    operation, I just need the file name and file path(not the content). The KPRO servers could be made to use SAPFTP, SAPHTTP in the background to upload documents (triggered via tRFC's).
    Is it possible to have a file open dialog (similar to java file open) which just returns the file path and file name instead of the
    content? Current fileUpload UI element also loads the content which is not desired behaviour for me (because could be a performance problem with large documents uploading).
    Is it possible to select multiple filenames? Thomas Jung's Flash island multiple upload works, but not in my
    asynchronous scenario. Because flex fileReferenceList + upload operation works synchronously.

    You must remember the START-OF-SELECTION event here,  after you select the file name and click F8, the START-OF-SELECTION event is triggered, but if it is not there, nothing will happen.
      if sy-subrc <> 0 or l_rc < 0.
        message id sy-msgid type sy-msgty number sy-msgno       "mo271101
        with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      else.                                                     "mo271101
        read table l_files index 1 into h_files.
        auszfile = h_files-filename.
      endif.
    start-of-selection.            "<--  Add this
      write:/ auszfile.
    Regards,
    RIch Heilman

Maybe you are looking for

  • IPod not recognized/won't mount

    Hello, I have OS x 10.2.8, iTunes 6.0.5 and an iPod Nano. One day the iPod would not mount. I got an error message in OS X saying that there were no volumes that the system could recognize, etc. I restored the iPod using iPod updater, after going thr

  • What is "error -50" in iMovie???

    I want to share my iMovie to iTunes but i get this message: Unable to prepare project for publishing. The project could not be prepared for publishing because an error occurred. (-50) I would apreciate if anyone could help me... i really want to shar

  • Question on potential configurations for resource cluster as virtual machine server / beowulf / render farm

    I am looking for a starting point on where to focus my efforts in researching a desired configuration.  Of course anyone who spends anytime researching in forums knows that one thing that people hate is for people to ask questions that can be easily

  • I'm getting the error "Dialer has stopped"

    Everytime I try to make a call, dialer crashes and I get the error message, "Unfortunately, Dialer has stopped."  I downloaded a different dialer for the time being from Play Store, but what is going on?

  • SP01: 2005 A SP01 Pl:02 Memory referenced error

    Hi, I have upgraded the system to 2005 A SP01 PL:02. I have created a add-on and deployed. When im trying to shut down the add-on, Memory referenced error is throw. is this a known issue in SP01 PL:02 or is there anything that needs to be done from t