Understanding the output - AC db_stat, lockers, locks and lock objects

I would like to understand this output. 80000045 transaction holds a lock for writing on page 11 and is waiting for a lock for writing on page 13, which, however, is not granted as long as transaction 80000051 retains its read lock.

Is there something in this table explaining why 80000051 doesn't seem unwilling to move and release the read lock?

And what makes SD = 37 average?

Michael Ludwig
Locks grouped by lockers:
Locker   Mode      Count Status  ----------------- Object ---------------
      a1 dd=37 locks held 1    write locks 0    pid/thread 1284/4896
      a1 READ          1 HELD    test.dbxml                handle        2
      a4 dd=36 locks held 0    write locks 0    pid/thread 1284/4896
      a5 dd=35 locks held 1    write locks 0    pid/thread 1284/4896
      a5 READ          1 HELD    test.dbxml                handle        4
      a8 dd=34 locks held 0    write locks 0    pid/thread 1284/4896
      a9 dd=33 locks held 1    write locks 0    pid/thread 1284/4896
      a9 READ          1 HELD    test.dbxml                handle        6
      ac dd=32 locks held 0    write locks 0    pid/thread 1284/4896
      ad dd=31 locks held 1    write locks 0    pid/thread 1284/4896
      ad READ          1 HELD    test.dbxml                handle        8
      b0 dd=30 locks held 0    write locks 0    pid/thread 1284/4896
      b1 dd=29 locks held 1    write locks 0    pid/thread 1284/4896
      b1 READ          1 HELD    test.dbxml                handle       10
      b4 dd=28 locks held 0    write locks 0    pid/thread 1284/4896
      b5 dd=27 locks held 2    write locks 0    pid/thread 1284/4896
      b5 READ          1 HELD    test.dbxml                handle       12
      b5 READ          6 HELD    test.dbxml                handle        0
      b8 dd=26 locks held 0    write locks 0    pid/thread 1284/4896
      bc dd=25 locks held 1    write locks 0    pid/thread 1284/4896
      bc READ          1 HELD    test.dbxml                handle       14
      bf dd=24 locks held 0    write locks 0    pid/thread 1284/4896
      c0 dd=23 locks held 2    write locks 0    pid/thread 1284/4896
      c0 READ          1 HELD    test.dbxml                handle       16
      c0 READ          2 HELD    test.dbxml                handle        0
      c3 dd=22 locks held 0    write locks 0    pid/thread 1284/4896
      f1 dd=21 locks held 2    write locks 0    pid/thread 1284/4896
      f1 READ          1 HELD    test.dbxml                handle       18
      f1 READ          1 HELD    test.dbxml                handle        0
      f4 dd=20 locks held 0    write locks 0    pid/thread 1284/4896
      f5 dd=19 locks held 0    write locks 0    pid/thread 1284/2648
      f6 dd=18 locks held 0    write locks 0    pid/thread 1284/2648
      f7 dd=17 locks held 0    write locks 0    pid/thread 1284/2648
      f8 dd=16 locks held 0    write locks 0    pid/thread 1284/2648
      f9 dd=15 locks held 0    write locks 0    pid/thread 1284/2648
      fa dd=14 locks held 0    write locks 0    pid/thread 1284/2648
      fb dd=13 locks held 0    write locks 0    pid/thread 1284/2648
      fc dd=12 locks held 0    write locks 0    pid/thread 1284/4184
      fd dd=11 locks held 0    write locks 0    pid/thread 1284/2672
      fe dd=10 locks held 0    write locks 0    pid/thread 1284/4184
      ff dd= 8 locks held 0    write locks 0    pid/thread 1284/2672
     100 dd= 7 locks held 0    write locks 0    pid/thread 1284/2672
     101 dd= 5 locks held 0    write locks 0    pid/thread 1284/2648
     102 dd= 4 locks held 0    write locks 0    pid/thread 1284/2648
80000044 dd= 9 locks held 0    write locks 0    pid/thread 1284/4184
80000045 dd= 9 locks held 1    write locks 1    pid/thread 1284/4184
80000045 WRITE         1 WAIT    test.dbxml                page         13
80000045 WRITE         1 HELD    test.dbxml                page         11
8000004d dd= 6 locks held 0    write locks 0    pid/thread 1284/4100
8000004e dd= 6 locks held 0    write locks 0    pid/thread 1284/4100
8000004e READ          1 WAIT    test.dbxml                page         11
80000051 dd= 3 locks held 1    write locks 0    pid/thread 1284/2648
80000051 READ          1 HELD    test.dbxml                page         13
80000054 dd= 2 locks held 0    write locks 0    pid/thread 1284/5816
80000054 READ          1 WAIT    test.dbxml                page         13
80000055 dd= 1 locks held 0    write locks 0    pid/thread 1284/4824
80000055 READ          1 WAIT    test.dbxml                page         13
80000056 dd= 0 locks held 0    write locks 0    pid/thread 1284/2648
80000057 dd= 0 locks held 0    write locks 0    pid/thread 1284/2648
80000057 READ          1 WAIT    test.dbxml                page         11
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Locks grouped by object:
Locker   Mode      Count Status  ----------------- Object ---------------
80000045 WRITE         1 HELD    test.dbxml                page         11
8000004e READ          1 WAIT    test.dbxml                page         11
80000057 READ          1 WAIT    test.dbxml                page         11

      b1 READ          1 HELD    test.dbxml                handle       10

      ad READ          1 HELD    test.dbxml                handle        8

      bc READ          1 HELD    test.dbxml                handle       14

80000051 READ          1 HELD    test.dbxml                page         13
80000045 WRITE         1 WAIT    test.dbxml                page         13
80000054 READ          1 WAIT    test.dbxml                page         13
80000055 READ          1 WAIT    test.dbxml                page         13

      b5 READ          1 HELD    test.dbxml                handle       12

      a1 READ          1 HELD    test.dbxml                handle        2

      b5 READ          6 HELD    test.dbxml                handle        0
      c0 READ          2 HELD    test.dbxml                handle        0
      f1 READ          1 HELD    test.dbxml                handle        0

      a9 READ          1 HELD    test.dbxml                handle        6

      a5 READ          1 HELD    test.dbxml                handle        4

      f1 READ          1 HELD    test.dbxml                handle       18

      c0 READ          1 HELD    test.dbxml                handle       16

The problem here is that you have multiple active transactions on a single thread. The reason that the transaction wire 80000051 2648 is not moving forward and renounce its lock is because the thread is blocked with transaction 80000057 2648 thread waiting on page 11, that 80000045 holds. When a thread has several transactions in Berkeley DB XML built detection of blockages can not say he is in a bind, because it assumes that transactions are on different threads and therefore increase.

Lauren Foutz

Tags: Database

Similar Questions

  • I do understand the benefit of "Options" tab utilities and want to remove it. How, please?

    I do understand the benefit of "Options" tab utilities and want to remove it. How, please? I tried this feature because the tab 'Fox' was no longer available with the 5.0 update.

    I loved tab 'Fox '. A click and go on a site added you to 'top sites' before. The update 5.0, this feature is no longer available. It was a disappointment. There is a similar feature "add on" that is, as tab 'Fox' compatible with 5.0. If yes I would like to know about it. Or better yet... make it usable with Firefox 5.0 ' Fox' tab if upgrades cancel features previously downloaded that work really... What's the point?

    Please click the button solved it next to the answer that solved your problem of Firefox support, it appears when you are connected, so this thread is marked as resolved to help other users who may have this same problem.

  • CAPTURE THE OUTPUT IN INSERT INTO SELECT AND DELETE

    Hi all


    INSERT into employee_history_arch select * from employee_history where employee_status = 'CP' and action_dt < (sysdate-32);
    commit;

    delete from employee_history where employee_status = 'CP' and action_dt < (sysdate-32);
    commit;

    I must capture both the output of the insert and delete the sql query and compare the two values for validation. I shouldn't use select count (*) before the delete statement. I shud exactly capture the output... How to do? Please help me

    We will have ' 30 deleted rows' or ' 30 inserted rows"in our tool... I need to capture that 'put out' in a variable and validate against the other

    This should be easy.

    SQL> set serverout on
    SQL> DECLARE
      2    v_rows_inserted PLS_INTEGER;
      3    v_rows_deleted  PLS_INTEGER;
      4  BEGIN
      5    INSERT INTO emp_temp
      6      SELECT * FROM emp WHERE deptno = 20;
      7    v_rows_inserted := SQL%ROWCOUNT;
      8    dbms_output.put_line('Rows Inserted: ' || v_rows_inserted);
      9    DELETE FROM EMP WHERE deptno = 20;
     10    v_rows_deleted := SQL%ROWCOUNT;
     11    dbms_output.put_line('Rows Deleted: ' || v_rows_deleted);
     12    IF v_rows_inserted = v_rows_deleted THEN
     13      dbms_output.put_line('They are same!');
     14    ELSE
     15      dbms_output.put_line('They are NOT same!');
     16    END IF;
     17  END;
     18  /
    Rows Inserted: 7
    Rows Deleted: 7
    They are same!
    
    PL/SQL procedure successfully completed.
    
  • Unable to understand the output...

    Hi gurus

    I was reading a little code and unable to understand a single line, can someone guide me to understand this line.

    Code example

    Set serveroutput on

    DECLARE

    n number;

    BEGIN

    n: = 2 * 33.

    dbms_output.put_line (n);

    end;

    Result

    8589934592


    Now, I would like to know how the calculation performed for n: = 2 * 33 in the background so it become 8589934592 result. Thanks in advance.

    One of these curiosities PL/SQL in SQL vs. In PL/SQL * is same as it is built based on POWER. 2 * 33 is identical to POWER (2.33). It is documented in the Precedence of the operators:

    Table 2-3. precedence of operators

    Operator Operation

    **

    Exponentiation

    SY.

  • Understand the Open CL record in first and SOUL

    Hello

    I have a new mac Pro 8core d700 and strongly uses first and Media Encoder.

    Until recently, I couldn't really use made because of defects and errors in the images gpu accelerated. But 10.9.4 fixed issues for me.

    Now I was wondering, if someone could explain to me, what exactly the GPU are used during this process of editing with Premiere.


    Until now, I only saw huge speed improvements, in fact sometimes downturns with open CL active. But today, I had to cut a 30 minute video and it was so much faster using open cl than software.

    I also had a timeline complete proress, righteous edited together clips and layered with a simple title. Dissemination of this sequence (using the settings of the original sequence) was also much faster than without open cl.


    The gpu is just used when exporting? Or while working also somehow? What the tasks exactly the benefits of it? For H264 export, it seems to make no difference at all.

    CUDA, OpenCL, the reading Mercury and Adobe Premiere Pro engine

  • Understand the hidden on Oracle APEX page and form variables

    Hi all

    I got to know < form > < / form > apex when Paul said my glitch here:

    {message: id = 10072264}

    Now when I checked out one of the forms on the page of the APEX, I was following markup:
    <form id="wwvFlowForm" name="wwv_flow" method="post" action="wwv_flow.accept">
    <input id="pFlowId" type="hidden" value="122" name="p_flow_id">
    <input id="pFlowStepId" type="hidden" value="42" name="p_flow_step_id">
    <input id="pInstance" type="hidden" value="643064511551379" name="p_instance">
    <input id="pPageSubmissionId" type="hidden" value="3482959593030363" name="p_page_submission_id">
    <input id="pRequest" type="hidden" value="" name="p_request">
    Now, these things hidden?
    < ul >
    pFlowId < li > < /li >
    pFlowStepId < li > < /li >
    pInstance < li > < /li >
    pPageSubmissionId < li > < /li >
    pRequest < li > < /li >
    < /ul >

    On digging the question, I found four of them:
    < ul >
    < li > pFlowId: identifies the ID of the currently running application. Substitution of PL/SQL string - APP_ID (used as *: APP_PAGE_ID, NV('APP_PAGE_ID'), & APP_PAGE_ID.*) < /li >
    < li > pFlowStepId: identifies the ID of the currently running application page. Substitution of PL/SQL string - APP_PAGE_ID < /li >
    < li > pInstance: identifies the session ID for the user of the application running. Substitution of PL/SQL string - APP_SESSION < /li >
    < li > pRequest: identifies the query passed to the page of the currently running application. Substitution of PL/SQL string - REQUEST < /li >
    < /ul >
    Now my questions are:
    < ul >
    < li > what is pPageSubmissionId ? Is there any alternative of PL/SQL string for her? This is one of them:
    http://docs.Oracle.com/CD/E23903_01/doc/ doc.41 /e21674/concept_sub.htm#BEIIBAJD
    < /li >
    < li > I inspected an other forms and find the same code snippet:
    <form id="wwvFlowForm" name="wwv_flow" method="post" action="wwv_flow.accept">
    What is the wwv_flow.accept in the form action attribute? (I guess the procedure submission form) How does it work?
    < /li >
    can < li > I change the attributes id, name and method of form element? For example we have method get or a different form name or id? < /li >
    < /ul >

    Kind regards
    Kiran

    Kiran says:

    What is pPageSubmissionId ?

    See + {: identifier of the thread = 720469} +.

    Is there any alternative of PL/SQL string for her? This is one of them:
    http://docs.Oracle.com/CD/E23903_01/doc/doc.41/e21674/concept_sub.htm#BEIIBAJD

    N °

    I inspected an other forms and find the same code snippet:

    What is the wwv_flow.accept in the form action attribute? (I guess the procedure submission form)

    Guess correct. It is the process of wwv_flow.accept in the package of the diagram of the APEX_xxxxxx wwv_flow , which is commented "+ this procedure accepts virtually every page flow +".

    How does it work?

    See apex_xxxxxx.wwv_flow to Developer SQL package specification (or whatever IDE you use). Notice how the first parameters of the procedure to accept corresponding to the attributes name HTML elements entry that you have identified? Others include some that match the name of the page elements attributes (name = "p_t01" etc. - There are 100 of those: the source of the page/article in the APEX 100 limit) and 50 f01-f50 parameters in a table /apex_item- generated controls.

    Overly simplified: the browser - HTML and HTTP - specification generates an HTTP request for the form that includes all the names of form controls and the values; It is passed to the web server, which recognizes the URL and its configuration which demand must be managed by the apex_xxxxxx.wwv_flow.accept procedure and call it, match the settings in the HTTP request with those of the package procedure.

    Running an application in a browser that includes development tools that allow you to inspect HTTP requests (I use the network view in Safari Web Inspector). After sending a page, display the generated queries and you will be able to see the form data in the request payload.

    Can we change the attributes id, name and method of form element? For example we have method get or a different form name or id?

    Not in such a way that you would still use APEX.

    Essentially, this is why you use APEX: he manages all aspects of low level, leaving to focus you on the real needs of your applications.

  • Basic measures and the output impedance of the change with PXI-4461?

    Hello

    I am required to build an audio station with platform PXI OR test.

    It is my first experience with Renault. So I don't really know a lot...

    The PXI-4461 is a replacement of a former HP audio Analyzer. The measure is quite simple:

    1 generate fixed freq signal and measure AC RMS power

    2 measure THD (total distortion harmic) at frequency fixed

    3 measure SNR (signal to noise) at frequency fixed

    4 generate and measure DC signals

    5. change the output impedance of 50 ohms and 600 ohms.

    If I have a good feeling on which tasks 1 to 4 are feasible. I would like to ask if the task 5 (change the output impedance) problem possible?

    If this isn't a work around?

    As for tasks 1 to 4, it is possible with out doing 'a sound vibration' Toolkit?

    How helpful the Toolbox will be for the tasks listed above (humble).

    What should be my starting point learn to manage these measurement with Labview?

    Thanks in advance

    Hi Hazkel,

    Sound and Vibration toolkit will help a lot with steps 1 through 3.  This without the Toolbox would require a very high level of knowledge with LabVIEW and you will probably run again for complications.  In response to the fifth step, I tried to adapt the output impedance and am not able to do so programmtically.  However, you can still do this in hardware by adding a shunt resistor and potentially switch between if necessary impedances.  We have an article that deals with impedance matching and a circuit configuration to set the impedance if you are interested:

    Impedance and impedance matching

    http://www.NI.com/white-paper/3475/en/

    I recommend starting with examples that we have already built in LabVIEW to familiarize yourself with the concepts.  You will find them by clicking on help-> find examples-> search, then search for your application. Please let me know if you have any other questions.

    Thank you

  • Unable to understand the result of the loop


    Hi all

    I got the tracking code:

    Code

    Set serveroutput ON

    DECLARE
    TYPE IS VARRAY months_array (12) STRING (3 CHAR);
    MONTHS months_array: = months_array ('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec');
    BEGIN
    < < list_month > >
    FOR month number IN REVERSE 6.12
    LOOP
    dbms_output.put_line (' number month = ' | number month |) "Items =' | MONTH (MONTHNO));
    CONTINUE list_month
    WHEN number month < 9;
    END LOOP;
    END;

    Code output

    number months = 12 = Dec

    number month = 11 = Nov

    number months = 10 items = Oct

    number month = 9 elements = Sep

    number month = 8 = August

    number month = 7 cells = Jul

    number months = 6 items = Jun

    My question is if you notice the code condition which is CONTINUE list_month number months WHEN < 9 means loop must be output if number month < 9 and according to code loop starting with number months = 12 so system should display the 1st line of output that is number months = 12 elements = Dec , then exit because the loop exit condition is true that is list_month MORE WHEN number month < 9. Please, help me to understand the output.

    Hi Muzz,

    try something like this

    BEGIN
      FOR monthno IN REVERSE 6..12
      LOOP
        exit when monthno < 9;
        dbms_output.put_line('monthno= '||monthno||' Elements='||MONTH(monthno));
      END LOOP;
    END;
    

    concerning

    Kay

  • What is the meaning of the content under "information of Projection column (identified by the operation identity card)" in the output of dbms_xplan

    Hi Experts,

    I have a question to understand the output of the explain Plan. I'm on Oracle 11.2.0.2 on Linux. I use this command:

    Select * from table (dbms_xplan.display_cursor (null, null, 'All allstats'));

    In the output, there is a section like this:

    Projection of the column information (identified by the operation identity card):
    -----------------------------------------------------------

    2 (#keys = 1; upd = 6, 7; cmp = 1, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16; cpy = 1, 5, 6, 8) 'A1 '. "CLNT_OID" [VARCHAR2, 16], 'G2' "." " CLNT_OID "[VARCHAR2, 16]..."

    I'm not "what it means, and how this information will be used. I look at several presentations on the plan to explain it, but I don't have any explanation for this. Can someone explain what meanings, and how this information is useful?

    Thank you!

    OrauserN

    Can someone explain what meanings, and how this information is useful?

    Nothing more than general comments because does not have the validation of the application and the entire plan.

    This article shows the projections of the column used for the specific steps of the execution plan. Each step is the operation identity card which has links with the plan which would be normally shown BEFORE the one-liner you posted.

    A "projection" shows the actual columns for this stage located in the workplace. Occasionally, you will find that many more columns (and therefore data) are presented that are actually used.

    Here is an article which presents and discusses, an extreme example.

    http://alexanderanokhin.WordPress.com/2012/07/18/dont-forget-about-column-projection/

    This example compares the projections for the two versions of an application from MERGER. It's version 1

    Fusion in t1 with a t2 on (t1.id = t2.id)

    when matched, then update set n = 1;
    . . .
    Be careful on the projection of the column of steps 3, 4, 5. It contains all THE columns in the tables T1 and T2, even though the query uses only some of them.

    It is the second version of the application of the MERGER:

    Fusion in (select id, n from t1) t1 2

    using (select id, n of the t2) t2 on (t1.id = t2.id) 3

    When 4 correspondent then update the value n = 1;

    Now, projection of the column does not unnecessary, the amount of memory required and a result of temp space quantity columns contain (employee-Tmp ~ 16 MB) and i/o (2032 physical reads and 2032 physics written by direct path read temp and see direct writing temp) was significantly reduced, and the instruction was executed about 20 seconds, instead of 8 minutes.

    What article and for example, try to show is that projection section can help show how much data a plan works for a particular stage of the plan.

    This first version of MERGE seems very simple and easy to write, but as the author has pointed out, the projection indicates that all columns of the two tables were actually put in the workspace.

    The almost as simple rewrite version 2 run time reduced to 20 seconds to 8 minutes, mainly because of significantly less data handled.

  • How to select the output device HDMI as audio playback for Windows Media Center device

    Output audio media center units

    Hello

    I'm trying to set up my media center from windows to windows media center of output through a separate audio device audio device by default.

    In this case, I have hdmi output that I want to be the output for windows media center and my realtek analog to be the default for all the rest.

    So my overall question is how I make windows media center requires is not the default audio device.

    Thank you

    Andrew

    Method 1 is useless. Does that change the audio device by default in the system, what the user seeks specifically not to do.

    Method 2 has no effect at all on Media Center.
    The answer seems to be no, Media Center only works with the audio output device by default.
  • to understand the ORACLE

    Hello world

    I want to not know le Headline to understand the ORACLE performance tuning.

    And thank you

    Hello

    You can quickly go through 2 days guide

    Oracle Database 2 day + Performance Tuning Guide

    https://docs.Oracle.com/database/121/TDPPT/tdppt_preface.htm#TDPPT336

    Concerning

    Hitgon

  • The output is always 'anonymous block completed.

    Hello

    I wrote a simple stored procedure as shown:

    create or replace procedure display
    *(*
    Ename on emp.ename%type
    *)*
    is
    Start
    Select ename ename from emp where empno = '7369';
    end;

    I tried to run the help above this block

    declare
    Ename emp.ename%type;
    Start
    Display (ename);
    dbms_output.put_line (ename);
    end;

    I always get the output as "anonymous block filled" and nothing else.

    Help, please. Thank you.

    I tried myself and her work.
    In any case, environment in which you work: DB, OS version and software...

    Saad,

  • CS4: Clearly the source, but the motion blur of the output gives the export

    Hello!

    When exporting my videos imported into CS4, quick movement appears blurry, even if the source is much clearer.

    Demo 1: Source, output
    Demo 2: Source, output

    I was hoping someone could explain to me why the output is much more blurred and if possible, how to fix it.

    Sequence options:
    I tried a bunch of sequence different presets such as AVCHD/AVC-Intra/HDV/XDCAM/P2, or custom options (parameter FPS to 29.97, 30, 59.94, 60 fields/up/down, change the display format), but the output is blurry, no matter what I try. Made with upper/lower case fields does not; so the progressive setting is probably correct.

    I have also created a project without a sequence, imported the clip and it has exported directly; the output was still unclear.

    Export options:
    I used recommended an export preset for export on Vimeo (see paragraph CS4), which uses the H.264.

    Information about the source clips:
    They are filmed with my GoPro Hero HD cam to 720 p 60.
    MediaInfo output: video, audio
    Output of GSpot
    Interpretation of the creation of a clip

    My system:
    Windows 7. 4 GB of Ram, but 32 bits, up to 2.8 GB of RAM is used.
    Intel Core i3 550, 3.20 GHz
    Video card: Nvidia Geforce 8800GTS 320 MB of RAM
    1 monitor

    I hope that this information is sufficient, please let me know if there is anything I should add.
    Even if it is not possible to fix it, I hope someone can explain to me why the output is so different from the source!

    Thank you!

  • How to close a projector when locking the output is true

    I want to catch the event when the user clicks the close box in the title bar of an ex-girlfriend of projector:
    on closeWindow
    Alert ("Goodbye")
    end
    It works very well. However, I don't want the bombing program when the user accidentally presses the Esc. key.
    So I put the lock output to true. But then the close button no longer works.

    Is there a way to get around this?

    Kind regards
    Trevor

    There is a Windows only called QuitMsg xtra which will advise with a click
    on the close box.
    You can also try to fool with the undocumented "on closeRequest.
    Manager and check the keys held down when he goes off to see if it is a
    Key ALT + F4 or Esc which demand closing the application.

  • "iPhone is disabled, connect to iTunes" AND "iTunes can not connect to the iPhone because it is locked with a password" error message on the phone and the computer! Help!

    So I recently had my password wrong too many times and my iPhone 4S locked out telling me "iPhone is disabled; Connect to iTunes'. And so I connected to iTunes and decided to restore my phone. I finished the process of restoration of the configuration of my phone, but ultimately, it was not even let me in the phone! Once AGAIN he said "iPhone is disabled; " Connect " to iTunes '. However, this time, this message appeared just when I turned on my phone with a black background. I didn't scan the screen for the error message is displayed (and there was no time to be shown). When I tried to connect to iTunes again as he asked, now it says "iTunes can not connect to the iPhone because it is locked with a password".

    So now, he said "iPhone is disabled; ' Connect to iTunes' on my iPhone 4S and ''iTunes can't connect to the iPhone because it is locked with a password ' on my computer. WHAT should I do?

    As described in step 2 of "Erase your device with iTunes" in this article, you will need to use the Recovery Mode.

    Recovery mode is described in this article as well.  You may try to go into recovery mode more than once to succeed.

    If you have forgotten the password for your iPhone, iPad or iPod touch, or your device is disabled - Apple supports

Maybe you are looking for