Insert pk locks

Hii
When I issue an update, itl entry is opened for this row.
next transaction see that itl is open for this row and goes to rollback segments to see if it is committed
or not, if it is not committed, it will hang.
Regarding the insert statement to primay key column.
If a user insert a value to primary column and not commit, whenever another user tries to
insert the same value to that column it will hang.
How is the process in this scenerio??

If a user insert a value to primary column and not commit, whenever another user tries toinsert the same value to that column it will hang.>
As its a primary key you simply can't insert the same value again.
Anand

Similar Messages

  • Inserts and locking

    We have like 10 sessions trying to insert into a same table and we are experiencing heavy enq:TX waits (enq: TX - row lock contention). What I don't understand is why does the INSERTS have to wait for TX locks.
    Can some one please clarify or provide some pointers on this.

    Usually there are 2 senarios, insert could block others,
    1. Waits for TX in mode 4 can also occur if a session is waiting due to potential duplicates in UNIQUE index. If two sessions try to insert the same key value thesecond session has to wait to see if an ORA-0001 should be raised or not.
    2. Waits for TX in mode 4 is also possible if the session is waiting due to shared bitmap index fragment. Bitmap indexes index key values and a range of ROWIDs. Each entry in bitmap index can cover many rows in the actual table. If two sessions want to update rows covered by the same bitmap index fragment, then the second session waits for the first transaction to either COMMIT or ROLLBACK by waiting for the TX lock in mode 4

  • IPhone 4s which was bought sim-free locked to Virgin when Virgin sim was inserted. What can I do to unlock so O2 sim can be used?

    The iPhone 4s was purchased unlocked.  When a Virgin sim was inserted, it locked to Virgin.  Need to put an O2 sim in.  Would it be Virgin to unlock it or can Apple supply an unlocking code?

    Only Virgin can unlock it. You'll need to contact them. The unlock process is summarized as follows:
    You request an unlock
    Your carrier enters the request into their system
    time passes...and passes...and passes
    Eventually someone at the carrier approves the request
    The approved request is sent to Apple
    It goes into a queue at Apple
    Eventually (usually 1-2 days) Apple updates their activation database to show the phone as unlocked
    You then connect the phone to iTunes on your computer and click the "Restore iPhone" button in iTunes
    If the request has been processed, when the Restore is complete you will get a message "Congratulations. Your iPhone is unlocked"
    You can then restore your backup.
    Summary quoted with gratitude from Lawrence Finch, another regular participant in the forums.

  • E45-4200/Locking Cable

    I cannot locate the hole to insert a locking cable into my laptop.  I went to Best Buy and the guys looked at all the Toshiba Ultrabooks.....no one can find the hole to insert the locking cable.  I'm traveling next week and want to secure my laptop.
    Thank you in advance.
    Solved!
    Go to Solution.

    After an exhaustive search, I found many ultrabooks do not have a Kensington slot (aka security slot) for a typical laptop lock.  I think I am going to have to invest in one of the locks as shown below:
    http://www.kensington.com/kensington/us/us/p/1479/K64994AM/microsaver%C2%AE%C2%A0ultrabook%C2%AE%C2%...

  • Record locking

    How does Oracle 8i handle record locking?
    Is this handled completely in the background by oracle or are there explicit record locks that can be set.
    I understand that an update or insert will lock the current record and the commit and rollback will release the lock.
    I have a problem where some developers are using an odbc connection to access an oracle database while a java servlet app is accessing the same database using jdbc. At times the changes made through the servlet app are rolled back or are not processed and the changes made by the odbc connection are kept.
    I am confused as to how this could happen.
    any suggestions?

    I have a simmilar problem, where my program aborts too often with a record Lock.
    Everytime I do an update/delete I do it using the SELECT .... FOR UPDATE NOWAIT. In order to reduce the number of aborts due to record locks I'd like to try your suggestion of catching the ROW_LOCKED error, sleep(dbms_lock.sleep in PL/SQL), and retry getting the lock a certain amount of times prior to erroring out. Can You give me more details of how to do this.
    In paticular how do you use dbms_lock.sleep function/package? where can I find this package? Can you share any code examples where you have used this package.
    I greatly appreciate all teh help/suggestions you can provide to me.
    Thanks.

  • Too many sessions inserting in table

    Hi All
    I am new to batch programs processing .Please help me on this.
    I have an application in which more than 1 session
    will try to insert millions of recrds in the same table.
    I need to know what care should I take for this.
    Will tables be locked or I do not need to wory about this
    Further in the program , one application may delete certain lacs of records while
    other session might still be inserting into it
    WHat do I do in this case.
    Also if one session is trying to update while other session is inserting/deleting records
    then what care do I take
    Thanks
    Ashwin N.

    It is a very bad idea to have more than one session attempt to insert millions of rows (if that is a literal statement of requirement). In you have paid for it use the Parallel Server option, but always try to have only a single batch process running unless it is absoultely unavoidable. Otherwise you are increasing the risk of latch contention both for the table itself and also rollback segemnts.
    Other things to check (these are database type things):
    - have big rollback segment assigned to batch session;
    - consider committing every 1000 records to cut down on rollback usage;
    - if you're really going to have several sessions doing monster inserts like this give your table lots of freelist groups;
    - make sure the table and its indexes have enough empty space by pre-assigning extents
    - make sure that the tablespaces are big enough in case additional extents are required
    As for row contention: rows you insert cannot locked by someone else nor are they affected by someone else inserting, updating or deleting other rows (although you might suffer from block header contention) unless that other session has issued a LOCK TABLE statement. Only once you have committed your insert will other sessions be able to see, update and delete your new rows (because Oracle doesn't support DIRTY_READ :-) )
    One way of reading your question is that you think someone may be trying to delete the records you're inserting. I hope that's not the case but if it is someone ought to have a look at the business model.
    rgds, APC

  • How to check if row to be inserted will cause circular circular loop?

    Hi-
    I'm using connect by clause to do some processing and to check that the data is not causing circular loops (with SQLCODE = -1436).
    Customers can add data via API, and this data, after inserted, can cause the problem explained above (loop). Therefore I need to find a way to check that these new values don't collide with the existing data in the table.
    One way that currently works is to insert the data, use my pl/sql function to check that there's no loops; if there's a loop, i catch the exception, delete the rows I just inserted, and throw back the error to the user.
    I find it very ugly and unneficient, but I can't find the way to use CONNECT BY with data that is not present in the table. example:
    table my_table contains
    parent_id | child_id
    111 | 777
    777 | 333
    and now customer wants to insert:
    parent_id | child_id
    777 | 111
    Also, if customer wants to insert
    333 | 111
    if I insert the row and run my script, it will work OK, but only if I insert the row. Is there any way to validate this without inserting/removing the row ?
    the script I'm using is similar to the one posted here:
    problems using CONNECT BY
    thanks

    This approach may fail to detect loops introduced by concurrent transactions if one of the transaction uses a serializable isolation level.
    For example, assume there are two sessions (A and B), the table and trigger have been created, and the table is empty. Consider the following scenario.
    First, session A starts a transaction with serializable isolation level:
    A> SET TRANSACTION ISOLATION LEVEL SERIALIZABLE;
    Transaction set.Next, session B inserts a row and commits:
    B> INSERT INTO my_table (parent_id, child_id) VALUES (111, 777);
    1 row created.
    B> COMMIT;
    Commit complete.Now, session A successfully inserts a conflicting row and commits:
    A> INSERT INTO my_table (parent_id, child_id) VALUES (777, 111);
    1 row created.
    A> COMMIT;
    Commit complete.
    A> SELECT * FROM MY_TABLE;
    PARENT_ID  CHILD_ID
          111       777
          777       111Session A "sees" the table "as of" a point in time before session B inserted. Also, once session B commits, the lock it acquired is released.
    An alternative approach that would prevent this could use SELECT...FOR UPDATE and a "table of locks" like this:
    SQL> DROP TABLE MY_TABLE;
    Table dropped.
    SQL> CREATE TABLE MY_TABLE
      2  (
      3      PARENT_ID NUMBER,
      4      CHILD_ID NUMBER
      5  );
    Table created.
    SQL> CREATE TABLE LOCKS
      2  (
      3      LOCK_ID INTEGER PRIMARY KEY
      4  );
    Table created.
    SQL> INSERT INTO LOCKS(LOCK_ID) VALUES(123);
    1 row created.
    SQL> COMMIT;
    Commit complete.
    SQL> CREATE OR REPLACE TRIGGER MY_TABLE_AI
      2      AFTER INSERT ON my_table
      3  DECLARE
      4      v_count NUMBER;
      5      v_lock_id INTEGER;
      6  BEGIN
      7      SELECT
      8          LOCK_ID
      9      INTO
    10          v_lock_id
    11      FROM
    12          LOCKS
    13      WHERE
    14          LOCKS.LOCK_ID = 123
    15      FOR UPDATE;
    16         
    17      SELECT
    18          COUNT (*)
    19      INTO  
    20          v_count
    21      FROM  
    22          MY_TABLE
    23      CONNECT BY
    24          PRIOR PARENT_ID = CHILD_ID;
    25 
    26  END MY_TABLE_AI;
    27  /
    Trigger created.Now the scenario plays out like this.
    First, session A starts a transaction with serializable isolation level:
    A> SET TRANSACTION ISOLATION LEVEL SERIALIZABLE;
    Transaction set.Next, session B inserts a row and commits:
    B> INSERT INTO my_table (parent_id, child_id) VALUES (111, 777);
    1 row created.
    B> COMMIT;
    Commit complete.Now, when session A tries to insert a conflicting row:
    A> INSERT INTO my_table (parent_id, child_id) VALUES (777, 111);
    INSERT INTO my_table (parent_id, child_id) VALUES (777, 111)
    ERROR at line 1:
    ORA-08177: can't serialize access for this transaction
    ORA-06512: at "TEST.MY_TABLE_AI", line 5
    ORA-04088: error during execution of trigger 'TEST.MY_TABLE_AI'To show that this still handles other cases:
    1. Conflicting inserts in the same transaction:
    SQL> TRUNCATE TABLE MY_TABLE;
    Table truncated.
    SQL> INSERT INTO my_table (parent_id, child_id) VALUES (111, 777);
    1 row created.
    SQL> INSERT INTO my_table (parent_id, child_id) VALUES (777, 111);
    INSERT INTO my_table (parent_id, child_id) VALUES (777, 111)
    ERROR at line 1:
    ORA-01436: CONNECT BY loop in user data
    ORA-06512: at "TEST.MY_TABLE_AI", line 15
    ORA-04088: error during execution of trigger 'TEST.MY_TABLE_AI'2. Read-committed inserts that conflict with previously committed transactions:
    SQL> TRUNCATE TABLE MY_TABLE;
    Table truncated.
    SQL> INSERT INTO my_table (parent_id, child_id) VALUES (111, 777);
    1 row created.
    SQL> COMMIT;
    Commit complete.
    SQL> INSERT INTO my_table (parent_id, child_id) VALUES (777, 111);
    INSERT INTO my_table (parent_id, child_id) VALUES (777, 111)
    ERROR at line 1:
    ORA-01436: CONNECT BY loop in user data
    ORA-06512: at "TEST.MY_TABLE_AI", line 15
    ORA-04088: error during execution of trigger 'TEST.MY_TABLE_AI'3. Conflicting inserts in concurrent, read-committed transactions:
    a) First, empty out the table and start a read-committed transaction in one session (A):
    A> TRUNCATE TABLE MY_TABLE;
    Table truncated.
    A> SET TRANSACTION ISOLATION LEVEL READ COMMITTED;
    Transaction set.b) Now, start a read-committed transaction in another session (B) and insert a row:
    B> SET TRANSACTION ISOLATION LEVEL READ COMMITTED;
    Transaction set.
    B> INSERT INTO my_table (parent_id, child_id) VALUES (111, 777);
    1 row created.c) Now, try to insert a conflicting row in session A:
    A> INSERT INTO my_table (parent_id, child_id) VALUES (777, 111);This is blocked until session B commits, and when it does:
    B> COMMIT;
    Commit complete.the insert in session A fails:
    INSERT INTO my_table (parent_id, child_id) VALUES (777, 111)
    ERROR at line 1:
    ORA-01436: CONNECT BY loop in user data
    ORA-06512: at "TEST.MY_TABLE_AI", line 15
    ORA-04088: error during execution of trigger 'TEST.MY_TABLE_AI'If updates are permitted on the table, then they could cause loops also, but the trigger could be modified to test for this.

  • My ipad is lock.please help me

    hello my ipad is lock your apple id on this ipad . i entered password and can not do for this person to be inserted and locked .my machine . my have no access to such a person. please help me . thanks

    You seem to be referring to Activation Lock.  Read these two articles to learn more. 
    http://support.apple.com/kb/PH13695
    http://support.apple.com/kb/ht5818

  • Does the MacBook Air have a slot for a lock?

    My current MacBook has a slot in which I can insert a lock to protect the computer in a public location (a library, for example).
    Does the MacBook Air have the same slot?
    Thanks.

    Unfortunately the MBA is too thin for the Kensington lock. I've seen a couple solutions but they aren't inexpensive. I've seen this one and some of these. I recommend Prey for after the fact.

  • Getting errors while writing to a BLOB column using PrepareStatement

    Hello,
    I am getting the following errors when I am trying to insert in a BLOB in the oracle 9i database:
    java.sql.SQLException: ORA-00604: error occurred at recursive SQL level 1 ORA-06502: PL/SQL: numeric or value error ORA-06512: at line 205 ORA-22297: warning: Open LOBs exist at transaction commit time
    It gets inserted into the BLOB column correctly even after throwing exception.I am using the following code:
    String outputXML = outputXML //Some huge string having a length of 52k
    String pKey = "DATA-WORKATTACH-URL MELLONFINCORP-GSS-CPG E-444!20061130T211932.030 GMT";
    String createDateTime = "20061212T145931.448 GMT";
    String createOpName = "Haque, Nadeem";
    String createOperator = "ADCDTB6";
    String createSystemID = "WFE";
    String insName = "TESt INS";
    String objClass = "Data-WorkAttach-Note";
    String updateDateTime = "20061207T191900.510 GMT";
    String updateOpName = "Haque, Nadeem";
    String updateOperator = "ADCDTB6";
    String updateSystemID = "WFE";
    String label = "This is a test for label";
    String attachDate = "20061207T191900.510 GMT";
    String attachedBy = "Nadeem";
    String attachName = "Nadeem Haque";
    String note = "This is a test note";
    String refObjectKey = "E-438!20061130T211932.030";
    String replicationDate = "20061207T191900.510 GMT";
    try{
    java.sql.PreparedStatement pstmt = null;
    java.sql.Statement stmt = null;
    java.io.OutputStream tempBlobOStream = null;
    oracle.sql.BLOB tempBlob = null;
    javax.naming.Context ctx = new javax.naming.InitialContext();
    tools.findPage("tempWorkPage").putString ("testctx", ctx.toString());     
    javax.sql.DataSource ds = (javax.sql.DataSource)ctx.lookup("jdbc/gswWorkflowReportingData");
    tools.findPage("tempWorkPage").putString ("testds", ds.toString());
    java.sql.Connection conn = ds.getConnection();
    tools.findPage("tempWorkPage").putString ("testconn", conn.toString());
    java.sql.ResultSet lobDetails = null;
         try{
              byte [] ba = outputXML.getBytes();
              String query = "INSERT INTO GSW06U.pc_data_workattach(PZINSKEY,PXCREATEDATETIME,ATTACHDATE,PXUPDATEDATETIME,PXCREATEOPNAME,PXCREATEOPERATOR,PXCREATESYSTEMID,PXINSNAME,PXOBJCLASS,PXUPDATEOPNAME,PXUPDATEOPERATOR,PXUPDATESYSTEMID,PYLABEL,ATTACHEDBY,ATTACHNAME,NOTE,REFOBJECTKEY,ATTACHSTREAM) values(?,to_date(concat(substr(?,1,8),substr(?,10,6)),'YYYYMMDDHH24MISS'),to_date(concat(substr(?,1,8),substr(?,10,6)),'YYYYMMDDHH24MISS'),to_date(concat(substr(?,1,8),substr(?,10,6)),'YYYYMMDDHH24MISS'),?,?,?,?,?,?,?,?,?,?,?,?,?,EMPTY_BLOB())";
              tools.findPage("tempWorkPage").putString ("query", query);
              pstmt = conn.prepareStatement(query);
              pstmt.setString(1, pKey); // Bind PZINSKEY
              pstmt.setString(2, createDateTime); // Bind PZINSKEY
              pstmt.setString(3, createDateTime);
              pstmt.setString(4, attachDate);
              pstmt.setString(5, attachDate);
              pstmt.setString(6, updateDateTime);
              pstmt.setString(7, updateDateTime);
              pstmt.setString(8, createOpName);
              pstmt.setString(9, createOperator);
              pstmt.setString(10, createSystemID);
              pstmt.setString(11, insName);
              pstmt.setString(12, objClass);
              pstmt.setString(13, updateOpName);
              pstmt.setString(14, updateOperator);
              pstmt.setString(15, updateSystemID);
              pstmt.setString(16, label);
              pstmt.setString(17, attachedBy);
              pstmt.setString(18, attachName);
              pstmt.setString(19, note);
              pstmt.setString(20, refObjectKey);
              pstmt.execute(); // Execute SQL statement
              // Retrieve the row just inserted, and lock it for insertion of the LOB columns
              stmt = conn.createStatement();
              lobDetails = stmt.executeQuery("SELECT AttachStream FROM GSW06U.pc_data_workattach WHERE PZINSKEY = '" + pKey + "' FOR UPDATE");
              tools.findPage("tempWorkPage").putString ("idvalue", pKey);
              // Retrieve Blob streams for AttachStream column and load the sample XML
              if( lobDetails.next()) {
              //Get the CLOB from the resultset
              tempBlob = (oracle.sql.BLOB)lobDetails.getBlob(1);
              tools.findPage("tempWorkPage").putString ("pos1", "at pos1");
              // Open the temporary CLOB in readwrite mode, to enable writing
              tempBlob.open(oracle.sql.BLOB.MODE_READWRITE);
              tools.findPage("tempWorkPage").putString ("pos2", "at pos2");
              // Get the output stream to write
              tempBlobOStream = tempBlob.getBinaryOutputStream();
              tools.findPage("tempWorkPage").putString ("pos3", "at pos3");
              // Write the data into the temporary CLOB from the byte array
              tempBlobOStream.write(ba);
              // Flush and close the stream
              tempBlobOStream.flush();
              conn.commit();
              //Close everything
    tempBlobOStream.close();
              tempBlobOStream = null;
              tempBlob.close();
              tempBlob =null;
              lobDetails.close();
              lobDetails = null;
              stmt.close();
              stmt = null;
              pstmt.close();
              pstmt = null;
              conn.close(); // Return to connection pool
              conn = null; // Make sure we don't close it twice
         catch(java.sql.SQLException sqlexp) {
                   tempBlob.freeTemporary();
                   sqlexp.printStackTrace();
                   tools.findPage("tempWorkPage").putString ("SQLException", sqlexp.toString());
         catch(java.lang.Exception exp) {
                   tempBlob.freeTemporary();
                   tools.findPage("tempWorkPage").putString ("InnerException", exp.toString());
                   exp.printStackTrace();
         finally
              if (lobDetails != null) {
              try { lobDetails.close(); } catch (java.sql.SQLException e) { System.out.println(" Error while Freeing Result sets" + e.toString()); }
              lobDetails = null;
              if (stmt != null) {
              try { stmt.close(); } catch (java.sql.SQLException e) {System.out.println(" Error while Freeing java Statement" + e.toString()); }
              stmt = null;
              if (pstmt != null) {
              try { pstmt.close(); } catch (java.sql.SQLException e) {System.out.println(" Error while Freeing java PrepareStatement" + e.toString()); }
              pstmt = null;
              try{
              if (tempBlob != null) {
         // If the BLOB is open, close it
         if (tempBlob.isOpen()) {
         tempBlob.close();
         // Free the memory used by this BLOB
         tempBlob.freeTemporary();
              tempBlob = null;
              catch (Exception ex) { // Trap errors
              System.out.println(" Error while Freeing LOBs : " + ex.toString());
              if (conn != null) {
              try { conn.close(); } catch (java.sql.SQLException e) { System.out.println(" Error while Freeing Connection" + e.toString()); }
              conn = null;
    catch(java.lang.Exception e)
         tools.findPage("tempWorkPage").putString ("LangException", e.toString());
         e.printStackTrace();
    }

    Hello,
    I am getting the following errors when I am trying to
    insert in a BLOB in the oracle 9i database:
    java.sql.SQLException: ORA-00604: error occurred
    at recursive SQL level 1 ORA-06502: PL/SQL: numeric
    or value error ORA-06512: at line 205 ORA-22297:
    warning: Open LOBs exist at transaction commit
    time
    You're doing exactly what the error says, that is committing with an open LOB. Look at the following piece of code: you write in the LOB, you flush it and then commit. There is no closing of the LOB stream before committing.
    Try putting the tempBlobOStream.close() instruction before the commit.
    // Write the data into the temporary CLOB from the
    he byte array
              tempBlobOStream.write(ba);
              // Flush and close the stream
              tempBlobOStream.flush();
    nn.commit();
              //Close everything
    tempBlobOStream.close();

  • Can_i_stop_certain_status_bar_messages?

    hi all,
    can somebody help / guide me about form's status bar? i have 2 problems with default status bar...
    1. in some of my modules, when ever i update something and then save it, status bar issues the message "frm-40405 No changes to apply" and then save the changes too.
    2. mostly it happens that a message that already persist on the status bar, when an event leads to re issue that message, the message is poped up like an alert. i dont like this since i have assigned my own color schemes to every thing, (different canvases, pop up menue, alert etc) so i dont like that green message issued like an alert...
    is there any way so that i can stop certain messages from being even visible ?
    and is there any way to stop the status bar messages to apear like alerts do... ?
    what could be the reason that in some of my modules frm-40405 thing apears before the updates are saved...?
    i dont wana make another status bar, nor i wana change any functionality of default status bar. i just need a mechanism if any, like we can over ride the default menu-items functionality...
    please help this...
    regards...

    thanx for attention...
    actually there are a number of datablocks shown on different canvases.
    in 1st canvas i have a non database data block containing a search mechanism (comprising radio groups (search by donor_registration_no, donor_name, donor_nic_no etc) and a text item associated with it).
    there is a database block DONOR_INFO subsequent to key_next_item of the previous block, showing a list of relevant search...
    there is yet again another non database block containg buttons (donor_profile in detail and donation record).
    when either of these buttons is pressed a new canvas is shown below containing relevant data in full detail.
    this module is designed for searching purpose only. insertion is locked in all the blocks, updation in DONOR_INFO block is also locked since it is aimed to show only a list of relevant search. details are shown in later data blocks
    the problem with this module is that, when ever i update any field in the DONOR_PROFILE or DONATION_RECORDS (data blocks) my form prompts the message "frm- 40405 No changes to apply". PLUS none of any other messages except this 40405 apears on the status bar on any event.
    i have a similar PATIENT_SEARCHING_MODULE. that works all fine but this DONOR_SEARCHING_MODULE is not so
    i tried ur advises: i put a form level on-commit FORM_DDL ('COMMIT');
    then i put in when-new-form_instance :SYSTEM.MESSAGE_LEVEL:=25;
    then i tried both but none of the try was fruitfull
    if u got any other advice please help me with that...
    regards...

  • Need to salvage HDD out of T61 crash

    My T61 crashed a while back and I would like to recover the files from the hard drive. The T61 used a BIOS protection to prevent unauthorized HDD access. I have my password, but no way to use it. I can attach it to another computer via USB, the drive comes up as Unallocated. Suppose I need it to ask for the password. Not sure how to do that. I have an older T60, but have been hesitant to plug this drive into it as the primary drive as the components are a little different and it might not react well. Certainly not worth damaging a working computer.
    What is the best way to recover these files?
    Thanks!
    Solved!
    Go to Solution.

    Welcome to the forum!
    You won't damage the T60 by inserting the locked hard drive in it, and the hardware should be close enough for you to be able to clear the password in BIOS, and then recover the files.
    Good luck.
    Cheers,
    George
    In daily use: R60F, R500F, T61, T410
    Collecting dust: T60
    Enjoying retirement: A31p, T42p,
    Non-ThinkPads: Panasonic CF-31 & CF-52, HP 8760W
    Starting Thursday, 08/14/2014 I'll be away from the forums until further notice. Please do NOT send private messages since I won't be able to read them. Thank you.

  • Dreamweaver template declaration affects Google Map loading

    My Dreamweaver Template declaration statement
    <!-- InstanceBegin template="/Templates/kayaking.dwt" codeOutsideHTMLIsLocked="false" -->
    is preventing a Google Map from loading.  It works fine in IE and Firefox, but not in Safari and Chrome.  The weird thing is, if I move it above the following declaration is works fine.
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    Dreamweaver inserts and locks this code so the only way I get it to work is to either detach it from the template completely or edit the code in a text editor before upload.  I need a different fix.  I'm hoping that there is actually other code in my page that is leading to the declaration problem although it seems unlikly.
    For reference here is the html that calls the map
    <a href="javascript:;" class="content" title="Location Map" onclick="mopen('map1');loadScript();return false">Location Map</a></p>
                      <div id="map1" style="visibility:hidden;"> <span class="content"><a href="javascript:;" class="closemap" onclick="mclose('map1')" title="Close Map">Close</a> </span>
                        <div id="googlemap1"> </div>
                      </div>
    For the code or to see for yourself go to http://www.outbackadventures.com/trips_classes/kayaking/kayak_classes/intro_paddling/index 2_3.html
    Any help would be much appreciated.  Thanks.

    The problem has been solved.  It seems that Google Chrome and Safari do not entirely ignore comment tags such as Dreamweaver's template declaration.
    In my "lazy load" Google Map code taken from a Google employee suggestion
    http://groups.google.com/group/Google-Maps-API/msg/4e2acbe1ca7f0324
    Example at http://imagine-it.org/google/gmaps-samples/dynamicloading.html
    there is this line of code
    document.documentElement.firstChild.appendChild(script);
    As I understand it Chrome and Safari may read the Dreamweaver template comment
    <!-- InstanceBegin template="/Templates/kayaking.dwt" codeOutsideHTMLIsLocked="false" -->
    as the first.Child and therefore results in invalid html causing an error and no loading of the script.
    This was solved by the help of folks at this post:
    http://groups.google.com/group/google-maps-api/browse_thread/thread/101bc4c59d098367/0decf 0c096119f82#0decf0c096119f82
    Essentially the code above needs to be modified so that it reads from the head section rather than from above it. To fix this, replace the above code with either one of the following lines:
    document.getElementsByTagName(\"head\")[0].appendChild(script);
    document.documentElement.getElementsByTagName(\"head\")[0].appendChild(script);

  • Need a help to Modify Trigger for Deadlocks issue

    Is there anyway I can resolve the deadlock after modify the following  trigger. Any best idea to modify the trigger? 
    This is the query is in the Trigger..
    USE [XePro]
    GO
    /****** Object:  Trigger [dbo].[t_SOCOMMENT]    Script Date: 01/12/2015 10:08:11 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    -- =============================================
    -- Author:        <Author,,Name>
    -- Create date: <Create Date,,>
    -- Description:   <Description,,>
    -- =============================================
    ALTER TRIGGER [dbo].[t_SOCOMMENT]
       ON  [dbo].[tblICWMST]
       AFTER INSERT,UPDATE
    AS
    BEGIN
          UPDATE tblICWMST
          SET COMMENT = ISNULL(S.CUSTNO,'
    ') + ' ' + ISNULL(S.BRANDING,'
    ') + ' ' + ISNULL(CAST(S.TRAILCMNT as VARCHAR(MAX)),'
          FROM tblSOMAST S
          INNER JOIN tblICWMST W ON REPLACE(S.SONO, '
    ','') = REPLACE(REPLACE(W.WONO,'
    ',''), 'O','')
    END
    After insert, It's update whole table again and it's locked another process. I'm describing details for the column.
    Table:- tblICWMST columns data types
    CustNO Cahr(6)
    Table:- tblSOMAST columns data types
    CustNO Cahr(6)
    Branding Varchar(50)
    TRAILCMNT Text...    Giving you data types just as if I missed anything.

    Hi Danny,
    I am not able to reproduce any lock with your trigger. I tried the below but after inserting no lock appeared.
    CREATE TABLE tblICWMST(CustNO CHAR(6),Wono VARCHAR(99),Comment VARCHAR(99)) ;
    CREATE TABLE tblSOMAST(CustNO CHAR(6),Sono VARCHAR(99),Branding VARCHAR(50),TRAILCMNT TEXT);
    GO
    CREATE TRIGGER [dbo].[t_SOCOMMENT]
    ON [dbo].[tblICWMST]
    AFTER INSERT,UPDATE
    AS
    BEGIN
    UPDATE tblICWMST
    SET COMMENT = ISNULL(S.CUSTNO,' ') + ' ' + ISNULL(S.BRANDING,' ') + ' ' + ISNULL(CAST(S.TRAILCMNT as VARCHAR(MAX)),' ')
    FROM tblSOMAST S
    INNER JOIN tblICWMST W ON REPLACE(S.SONO, ' ','') = REPLACE(REPLACE(W.WONO,' ',''), 'O','')
    END
    GO
    INSERT INTO tblSOMAST(CustNO,Sono,Branding,TRAILCMNT) SELECT 'A','B','C','D'
    INSERT INTO tblICWMST(CustNO,Wono) SELECT 'A','B'
    DROP TABLE tblICWMST,tblSOMAST;
    Regarding the code in your trigger, what does the trigger do is to update the column
    COMMENT of the whole table after any insert or update. For this kind of requirement, a trigger is not the best option. The trigger runs every time when any insert or update happens on your table in your case. It is overhead on system and make
    your system run slower.
    Why not just wrap the code into a stored procedure and schedule it to run at a certain interval based on your business requirement?
    If you have any question, feel free to let me know.
    Best regards,
    Eric Zhang
    TechNet Community Support

  • Timesheet could not add task from existing project task assignment

    HI there,
    I tried to add a task in Timesheet (PWA2013) from an existing assignment. However, there is no task listed under the project when I open the dialog "Add an existing task". It only shows me the project name, I click it, nothing under the project.
    Due to this issue, I could not add any existing task into the timesheet.Please look at the screenshot. The "test project" is the project name, while no  any task under this project.
    Any help is appreciated!
    Cindy

    Hi Cindy,
    Indeed if you cannot access the server setting from the quick launch menu in the left part of PWA, you have to request administrator rights to your admin.
    I would add an important comment : in PWA2013, the "close to update" PWA2010 feature no longer exists and has been replace by the "lock" feature, which works basically the same.
    To unlock tasks in PWA2013,
    go to server setting, manage views,
    choose a project view,
    insert the "lock" column,
    go to the project center,
    check out your project schedule,
    select the view you just modified,
    change the value in the lock field for the given task,
    publish the project
    Read this post here: http://social.technet.microsoft.com/Forums/projectserver/en-US/28d4914d-5a80-4638-8153-94155a7d43fe/locked-feature-not-working-in-pwa-2013?forum=projectserver2010general
    And this article: http://epmsource.com/2012/10/31/where-has-close-tasks-to-update-gone-in-project-server-2013/
    Then it should be ok.
    Hope this helps.
    Guillaume Rouyre - MBA, MCP, MCTS

Maybe you are looking for

  • How do I update ios in an older touch?

    I have a 2nd gen 8gb touch that I want to upgrade to a more recent ios. I'll be brief. How? I can't seem to find anything that even tells me what version is installed. Thanks in advance. Doc

  • JavaFX2.0: Change Fontsize  in TextBox not working ?

    TextBox textBox = new TextBox ();                               textBox.setFont( new Font(Font.getDefault().getFamily(), 53));No Effect, the characters still appear very small. Is this a bug?

  • Export to pdf hangs on large reports

    Post Author: SueIrvine CA Forum: Exporting Hello. I have a Crystal Report that's part of an ASP.net web application written in VS.2003. The report is grouped so it can be run for 1 record or hundreds. The report runs fine for a data set of up to abou

  • Services over NAT

                       Hi, I am trying to conect two overlaping IP address sites ( see attached diagram). Site A LAN address will dynamic NAT to 10.1.1.0/24 at ASA5520.All the users from site A need to get services from site B ( DHCP, DNS, Mailbox,Print

  • Release date for PXIe Modules

    I had a couple of questions about PXIe: 1) I see that a controller and chassis have been released, when will Digitizers and DAQ cards be released? 2) It is my understanding that a PXI card that is plugged into the PXIe chassis will work, but NOT rece