Lock on a table and SQL * Net more data from client

Hello

I have a problem loading data through Php in Oracle: web page of Php open an xml file, create a .csv, then begins to Oracle using an external table to process the data.

The problem is that, the second time that PHP is trying to run the following query:

INSERT INTO table1 T (Field1, Field2, field3, field4, sphere5, case field6) VALUES ('Aaa1E63819707', SYSDATE, 'KO', 'error', 'L', 'file_name.xml') POLL INTO Field1: id

on the Oracle sessions, I have an exclusive lock on table1 and wait for SQL * Net more data from client.

Where is the problem?

Thank you

Igor

Finally I found the problem: a DBA changed the cursor sharing EXACT force! I restored the CORRECT setting and now everything is fine.

Thank you

Bye,.

Igor

Tags: Database

Similar Questions

  • SQL * Net more data from client wait event

    Hi all

    DB 11.2.0.2

    AIX 6

    I get two events of high expectation of the AWR report page

    (1) SQL * Net more data from client

    synchronization of log files 2)

    Need advice to the configuration of the hardware and network latency?

    What should I do for the first event of waiting?

    This simple average may, what they're doing massive data loads with a very large table size that the Oracle Server manages very effectively but necessarily expect much coming data of the customer and parallel large log files written to end on the validation.  It is possible that setting a large SDU and tcp large transmiat and receive buffers would help if this happens to be what they do; Similarly, if that's what they do, then reduce their size of table can also have some effect.

    Concerning

    Jonathan Lewis

  • How to see the lock on the table and query?

    Hi all
    How do we see the lock on the table and query?


    Thank you
    Rafi

    Yes Rafi,

    It works fine at my end... see below:

    Opening of Session 1 with scott/tiger and:
    setting a day emp set ename = 'xx' where empno = 7499;

    Opening of Session 2 with scott/tiger and:
    setting a day emp set ename = 'xx' where empno = 7499;
    > This session is locked by a superior.

    Open 3 Session with pw/sys as sysdba and:

    SQL> set serveroutput on
    SQL> BEGIN
      2  dbms_output.enable(1000000);
      3  for do_loop in (select session_id, a.object_id, xidsqn, oracle_username, b.owner owner,
      4  b.object_name object_name, b.object_type object_type
      5  FROM v$locked_object a, dba_objects b
      6  WHERE xidsqn != 0
      7  and b.object_id = a.object_id)
      8  loop
      9  dbms_output.put_line('.');
     10  dbms_output.put_line('Blocking Session : '||do_loop.session_id);
     11  dbms_output.put_line('Object (Owner/Name): '||do_loop.owner||'.'||do_loop.object_name);
     12  dbms_output.put_line('Object Type : '||do_loop.object_type);
     13  for next_loop in (select sid from v$lock
     14  where id2 = do_loop.xidsqn
     15  and sid != do_loop.session_id)
     16  LOOP
     17  dbms_output.put_line('Sessions being blocked : '||next_loop.sid);
     18  end loop;
     19  end loop;
     20  END;
     21  /
    .
    Blocking Session : 139
    Object (Owner/Name): SCOTT.EMP
    Object Type : TABLE
    Sessions being blocked : 134
    
    PL/SQL procedure successfully completed.
    

    HTH
    Girish Sharma

  • I want to return the product to stop the renovation and to remove the data from credit card

    I want to return the product to stop the renovation and to remove the data from credit card

    To the link below, click on the still need help? option in the blue box below and choose the option to chat or by phone...
    Make sure that you are logged on the Adobe site, having cookies enabled, clearing your cookie cache.  If it fails to connect, try to use another browser.

    Creative cloud support (all creative cloud customer service problems)
    http://helpx.Adobe.com/x-productkb/global/service-CCM.html ( http://adobe.ly/19llvMN )

  • Difference between external tables and sql * loader

    Hello

    Could you please tell me the difference between
    tables external and sql * loader

    I have serached on the net but did ' get correct idea

    Please help me

    1 SQL LOADER can be run on the network (from any client computer), external tables can't

    2. return to the Oracle 9, external Tables could not load CLOB/BLOB (Oracle10 changed it)

    3 oracle 11 external tables have preprocessor, which is pretty dam characteristic cool - running essentially any OS command e.g. decompress before external table run. What's even better is the fact that the result of the operating system command is the source of the outer table, which means that there are no required temporary file (unzip the tracks and the output is the source of the external table). There are several ways to great use this - look at my blog for samples rare http://jiri.wordpress.com/2010/01/19/no-more-unix-scripts-in-11-2/

    4. as long as the 009 stressed, filed external load anything, they show just. Think of it more as load on request - it's great if you have old files archived and one or two users what to see content once a while

    5. external tables require no user access to the operating system, it is oracle environment pure - this may seem minor but for me it's huge. The fact that the ETL needs no special unix, no control file command and uses the simple SQL and DDL is nice and important

    6. external tables can load more text files, Oracle export dump files can be loaded, perhaps in the future more formats will be supported (hopefully all right excel format?)

    now the same thing to kill the myth - the TWO are EXACTLY the same when it comes to speed, I would actually drive of the external tables before will be faster because sql loader is old technology oracle doesn't really develops more

  • Several alter session and SQL * Net message from dblink in APEX

    Hello

    I have Apex 4.2.3 and I use Glassfish more listener of the Apex.

    Database is 11.2.0.4 under linux

    Looking for the session active database, I see that apex run several alter session with a lot of expectation as SQL * Net message from dblink the.

    Ex:

    ALTER session set NLS_TERRITORY = "AMERICA."

    call the query of disc elapsed to cpu count current lines

    ------- ------  -------- ---------- ---------- ---------- ----------  ----------

    Parse 58 0.00 0.00 0 0 0 0

    Run 58 0.06 3.53 267 58 0 0

    Fetch        0      0.00       0.00          0          0          0           0

    ------- ------  -------- ---------- ---------- ---------- ----------  ----------

    Total 116 0.06 3.53 267 58 0 0

    Chess in the library during parsing cache: 0

    The analysis of the user id: 277 (recursive depth: 1).

    Elapsed time are waiting on the following events:

    Event waited on times max wait for the Total WHEREAS

    ----------------------------------------   Waited  ----------  ------------

    SQL * Net message to dblink 174 0.00 0.00

    SQL * Net message from dblink 174 3.47 0.03

    ********************************************************************************


    Why he is doing a lot to change session? Why the wait is SQL * Net message from dblink the?

    We have recently to load a new language, but I'm not sure that this is the main problem.



    I think that you have the link db in the workspace schema and data requested by the Apex of this link. For example, it may be

    report which uses db link. Check dba_db_links or user_db_links for the existing links. Check if this link used by Apex.

  • problem while browsing the table and tem records for data matching

    Hi I'm using a table all temporary and ane record and a loop through the two to find the correspondence between the dates.
    If the date is then it shud some treatment otherwise it will return null (default values).

    ******
    I'm IN student_rec FIRST... student_rec. LAST / * student_rec.school_date 01-MAR-2012,02-MAR-2012,03-MAR-2012,04-MAR-2012,05-MAR-2012*/ a
    LOOP

    l_return_out.school_date: = student_rec (i) .school_date;
    l_return_out.marks_obtained: = student_rec (i) .marks_obtained;

    BECAUSE me IN selected_dates. FIRST... selected_dates. LAST / * selected_dates 02-MAR-2012,03-MAR-2012,05-MAR-2012*/ a
    LOOP

    DBMS_OUTPUT. Put_line (selected_dates (i));

    IF selected_dates (i) = student_rec (i) .sett_date
    THEN
    EXIT;
    end if;
    -appeal procedure P1
    -output as ret_val1 / * to ret_val1 like 10 for 02-MAR-2012,03-MAR-2012,05-MAR-2012 * /.
    -appeal procedure P2
    -Download ouput as ret_val2 / * for ret_val1 20 02-MAR-2012,03-MAR-2012,05-MAR-2012 * /.

    If ret_val1 > 0 ret_val2 0r > 0
    then
    l_return_out.has_csts: = yes;
    l_return_out.cst_present: = 10;
    l_return_out.cst_absent: = 20;

    on the other
    l_return_out.has_csts: = No;
    l_return_out.cst_present: = 0;
    l_return_out.cst_absent: = 0;
    end if;
    end loop;

    l_return_out.has_cst: = student_rec (i) .has_csts;
    l_return_out.cst_missing: = student_rec (i) .cst_present;
    l_return_out.cst_existing: = student_rec (i) .cst_absent;

    PIPE ROW (l_return_out);
    END LOOP;
    RETURN;

    I expect that as a result

    school_date marks_obtained has_csts cst_present cst_absent
    MARCH 1, 2012 20
    March 2, 2012 Yes 10 20 30
    March 3, 2012 Yes 10 20 40
    MARCH 4, 2012 70
    60 Yes 10 20 5 March 2012

    but this result
    school_date marks_obtained has_csts cst_present cst_absent
    MARCH 1, 2012 20
    30 MARCH 2, 2012
    MARCH 3, 2012 40
    MARCH 4, 2012 70
    5 MARCH 2012 60

    Can someone please select the error I do when processing logic?

    Published by: 942390 on July 13, 2012 20:44

    Published by: 942390 on July 13, 2012 20:45

    >
    Can someone please select the error I do when processing logic?
    >
    Let me see if I understand. If you reach this part of the code:

    if ret_val1>0 0r ret_val2>0
    then
    l_return_out.has_csts := yes;
    l_return_out.cst_present := 10;
    l_return_out.cst_absent := 20;
    else
    l_return_out.has_csts :=No;
    l_return_out.cst_present:= 0;
    l_return_out.cst_absent := 0;
    end if;
    end loop; 
    

    You set values but DO NOT actually exit the loop - you just wrap around and continue. And the next iteration of the loop can actually delete these values and exit the loop.

    Even if these values don't get wiped out then when the loop ends you must run this code

    l_return_out.has_cst := student_rec(i).has_csts;
    l_return_out.cst_missing := student_rec(i).cst_present;
    l_return_out.cst_existing := student_rec(i).cst_absent;
    PIPE ROW(l_return_out);
    

    And this code permanently erases all the values in the first code that I showed and then DIRECTS the row.
    Each row that lead you has therefore values or NULL values for student_rec.

    This is the problem that you requested.

    But tell us why you use two tables and make two loops nested making slow down-by-slow (by line) treatment instead of using SQL for this?

  • SQL loader loading data from legacy to Oracle

    Hello

    We have a requirement that we have to import legacy data to oracle AR. We know we have to put the data file in the BIN folder, but I want to know the source of data file if we put in the windows folder instead of the directory BIN will be SQL loader retrieves the file and loads the data.

    Thank you
    THERE

    Yes,

    Refer to this

    http://www.Oracle.com/technology/products/database/utilities/htdocs/sql_loader_overview.html

    * Load data across a network. This means that SQL * Loader client can be run on a different system that is running the SQL * Loader server.
    * Load the data from several data during the same load session files
    * Load data into multiple tables in the same load session
    * Specify the character set of the data
    * Selectively load data
    * Load the data from the disk, tape, or named pipe
    * Specify the character set of the data
    Generate reports of sophisticated, error that greatly helps troubleshooting
    Load arbitrarily complex object-relational data
    * Use either conventional path loading or direct.

    Arun-

  • SQL to retrieve data from the day before

    Hello

    I am asked to collect intelligence data and generate a daily report to determine the success rate (to do daily data that determines success rate). I have a session_time of column (with the DATE data type) that I try to do the job. I've been using:

    Select * from ABC

    where session_time > = TRUNC (SYSDATE - 2)

    Gives me data, but I get the data from 26/10/14 and 10/28/14 so when I only need data on 27-10-14 (as of the day 28/10/14). I tried a few variations and did not get the expected result. Could someone please help me understand this? Time is also displayed in my outings, maybe I shouldn't include the time?

    I use: TOAD for Oracle 11.5.1.2.

    Oracle Database 11g Enterprose 11.2.0.1.0 Edition

    Thank you in advance.

    Hello

    2632048 wrote:

    Hello

    I am asked to collect intelligence data and generate a daily report to determine the success rate (to do daily data that determines success rate). I have a session_time of column (with the DATE data type) that I try to do the job. I've been using:

    Select * from ABC

    where session_time > = TRUNC (SYSDATE - 2)

    Gives me data, but I get the data from 26/10/14 and 10/28/14 so when I only need data on 27-10-14 (as of the day 28/10/14). I tried a few variations and did not get the expected result. Could someone please help me understand this? Time is also displayed in my outings, maybe I shouldn't include the time?

    I use: TOAD for Oracle 11.5.1.2.

    Oracle Database 11g Enterprose 11.2.0.1.0 Edition

    Thank you in advance.

    Use:

    SELECT *.

    ABC

    WHERE session_time > = TRUNC (SYSDATE) - 1

    AND session_time<  trunc="">

    ;

    It's 09:15 on October 28, 2014, then TRUNC (SYSDATE - 2) is 00:00:00 October 26; The query you posted became data of October 26 and later.  (You may not all future dates in your table.)

    If it's 09:15 October 28, then TRUNC (SYSDATE) is 00:00:00 October 28 (i.e., midnight, at the beginning of October 28) and TRUNC (SYSDATE) - 1 is 00:00:00 October 27.

    Do not be tempted to use

    WHEN TRUNC (session_time) = TRUNC (SYSDATE) - 1 * INEFFECTIVE!  ***

    It will get the same results, but it is slower, you cannot use an index on session_time and requires a call to separate function for each row in the table, it is selected or not.

  • Autocommit DDL: difference between SQL and SQL Developer * more?

    I asked this in the SQL forum (commit auto DDL: difference between developer SQL and command-line client?), but it has suggested it might be a problem in SQL Developer, so I thought I would ask here.

    I'm trying to understand what exactly happens when an error occurs when a transaction is committed because of a DDL statement. I noticed that with SQL Developer, if the DDL statement CREATE TABLE, the statement is executed, even if the DML statements which I entered before CREATE TABLE violates a deferred constraint, so that the transaction fails. In SQL * Plus, it's not the case: the table is not created. I have no automatic validation. I'm using Oracle 10 g XE.

    That's what happens in SQL * more:
    SQL> create table table1(a number);
    
    Table created.
    
    SQL> alter table table1 add constraint table1_a_uq unique(a) deferrable initially deferred;
    
    Table altered.
    
    SQL> insert into table1 values(1);
    
    1 row created.
    
    SQL> commit;
    
    Commit complete.
    
    SQL> insert into table1 values(1);
    
    1 row created.
    
    SQL> create table table2(b number);
    create table table2(b number)
    *
    ERROR at line 1:
    ORA-02091: transaction rolled back
    ORA-00001: unique constraint (BOEK.TABLE1_A_UQ) violated
    
    
    SQL> select * from table2;
    select * from table2
                  *
    ERROR at line 1:
    ORA-00942: table or view does not exist
    If I put the same code in SQL Developer (versions 1.5.5 and 2.1.0.63), the table is created.
    This is my script:
    create table table1(a number);
    alter table table1 add constraint table1_a_uq unique(a) deferrable initially deferred;
    insert into table1 values(1);
    commit;
    insert into table1 values(1);
    create table table2(b number);
    select * from table2;
    And this is the output of SQL Developer:
    create table succeeded.
     alter table table1 succeeded.
    1 rows inserted
    commited
    1 rows inserted
    
    Error starting at line 9 in command:
    create table table2(b number)
    Error report:
    SQL Error: ORA-02091: transaction rolled back
    ORA-00001: unique constraint (BOEK.TABLE1_A_UQ) violated
    02091. 00000 -  "transaction rolled back"
    *Cause:    Also see error 2092. If the transaction is aborted at a remote
               site then you will only see 2091; if aborted at host then you will
               see 2092 and 2091.
    *Action:   Add rollback segment and retry the transaction.
    B                      
    ---------------------- 
    
    0 rows selected
    As you can see, the table is created in SQL Developer, but not in SQL * more.

    I wonder why it's different.

    Well Yes, it is a slightly different situation, because you issue 1 statement that executes internally 2 statements.
    But the problem is the same: the error handling. Where sqlplus rejects again (implicit) statements, sqldev goes ahead and runs them anyway. Personally, I'd say sqldev is more consistent and sqlplus is not, because run the following instructions (explicit).

    Kind regards
    K.

  • TCPWARE instead of TCP and SQL * NET compatibility

    I use an oracle on VMS client, that connects to a base of oracle 11G windows on server 1.
    Everything works fine.

    2A TCPware server instead of TCP and while we compatabilities verfied for this product, when I
    set up I get the wonder 12154 TNS could not resolve the connect identifier.


    The customer Oracle on both servers are 10.2.0.2.0 and the database is 11 GR 1 material. As previously stated,
    Server there is no connection problem persists...

    my connection is made

    sqlplus/nolog
    connect sys/tester09@devorcl as sysdba
    devorcl is the machine of 11G.

    Any idea what might be different with the TCPWARE product? or how to test? I added a trace
    My sqlnet.ora file and nothing doesn't happen.

    ORA-12154 is a very basic problem, it means that what he says... "could not resolve identifier of connection...". Protocol of questions, if there is, come later.

    /*
    ORA-12154: TNS: could not resolve the specified connection Cause identifier: a connection to a database or other service has been requested using a login name, and the specified connection identifier could not be resolved into a connect descriptor using one of the configured naming methods. For example, if the type of connection identifier used was a network service name then the network service name is not found in a naming method repository, or the repository impossible located or reached.
    Action:
    -If you are using local naming (TNSNAMES. ORA file):

    S ' ensure that "TNSNAMES" is cited as one of the values of the NAMES. DIRECTORY_PATH parameter in the profile Oracle Net (SQLNET. ORA)

    -Check that a TNSNAMES file. ORA file exists and is in the appropriate directory and is accessible.

    -Check that the network service name used as the connect identifier exists in the TNSNAMES file. ORA file.

    -Make sure that there are no errors of syntax anywhere in the TNSNAMES file. ORA file. Search for unmatched parentheses or stray characters. Errors in a TNSNAMES file. ORA file can make it unusable.

    -If you use the directory naming:

    -Check that "LDAP" is one of the values of the NAMES. DIRETORY_PATH parameter in the profile Oracle Net (SQLNET. ORA).

    -Check that the LDAP directory server is in place and be accessible.

    -Check that the net service name or the database name as an identifier of connection is configured in the directory.

    -Check that the default context used is correct by specifying a full network service name or a unique display name of LDAP as the identifier of connection

    -If you use easy connect naming:

    -Check that "EZCONNECT" is one of the values of the NAMES. DIRETORY_PATH parameter in the profile Oracle Net (SQLNET. ORA).

    -Make sure that the host name, port and service specified are correct.

    -Try putting the identifier of connection between quotation marks. See the Oracle Net Services Administrator's Guide or the specific guide to the Oracle operating system for more information on naming.
    */

    Ensure connect you identifier "devorcl" can be solved on server 2. I'm not familiar with the virtual computers, so I don't know how to build an appropriate environment sqlnet. At least I know it's possible to connect virtual computers on any other platform.

    Werner

  • Tables and SQL query

    Hello

    I post this question for clarification. I have a report that is based on a SQL query area.

    Place automatically APEX sql in the tables, all THE results of a query if it is in a region of report? Or y at - it a step that the developer must do to retrieve the columns of the sql query in a table.

    I'm working with checkboxes, and I read up on top of the api APEX_APPLICATION. This part is still unclear.

    Your comments would be appreciated!

    Keisha

    Hi Keisha,

    You should have a read of: [http://download-uk.oracle.com/docs/cd/B31036_01/doc/appdev.22/b28839/check_box.htm#CHDHFACG] that explains the use of checkboxes on the reports.

    I guess the 'picture' you refer to are APEX_APPLICATION. G_F01 up APEX_APPLICATION. Paintings of G_F50? If so, they are built when you submit the page and are based on elements with attributes of 'name' of 'f01' up to 'f50' in the HTML tags. You don't need to do anything beforehand to create these, which is done automatically for you by the Apex. But, notes, however, that only the checked boxes are presented with a page - so if your username is checked, say, 3 of the 10 boxes, table will contain only 3 points not 10 (with each element of the table that contains the attribute 'value' of a checkbox).

    Andy

  • use the queue and event to read data from two series mean

    Hi all

    I'm reading the data of two serial port using QUEUE AND EVENT but not sccusess. can someone help me?

    I use LABVIEW 2011.

    att my project.

    regrads.

    You stop the second for loop using cluster of error which means that your upper and lower loop stops when you press exit but not the one in the middle. In theory, you should send a queue for loops below when you press the exit button and also make sure that you shoot hunting all queues before closing everything.

  • Please remove my Adobe account and delete all my data from your servers

    As above.

    Thank you.

    No one here has this capability, and I don't know if Support Adobe can even do, but thast is where you need to connect to your best shot at realizing.

    To the link below, click on the still need help? the option in the blue box below and choose the option to chat...

    Support of Adobe ID and registration of chat (non - CC)

    http://helpx.Adobe.com/x-productkb/global/service-C1.html ( http://adobe.ly/19r6ZDp )

  • I have a new computer with windows 8.1 and need to transfer data from lightroom 4 on my old computer

    How to make the transfer to a new computer with a new version of lightroom? I tried to use windows simple transfer all data and found that it has failed to transfer from vista to windows 8.1. Apparently, it worked in windows 8, but not 8.1. No experience? I would like to make the backup of the catalog that I can put on an external hard drive and the two computers are on a network.

    Try http://members.lightroomqueen.com/index.php?/Knowledgebase/Article/View/1165/187/how-do-i-move-my-catalog-photos-and-other-lightroom-files-to-a-new-computer

Maybe you are looking for

  • Some complex web sites like the Huffington Post does not load. Circle just keeps going in circles CW

    Some complex web sites like Huffington Post dot com home page load slowly. When that finally they load and you attempt to open a tab, many refuse to load. Blue circle continues to go round and round in a clockwise direction. The box in the bottom lef

  • Since updading to 10.11.4 the action popup menu is not complete

    MacBookPro mid 2012. ElCapitan. Given that I upgraded 10.11.4 the menu share point is not what it was before: When I select a file in the Finder, and then CTL + click on it, then I select "sharing...". "in the context menu: can I get the choice 'mess

  • Satellite L305 - recovery after HARD drive installation

    The hard drive on my L305 Satellite is out and had to replace it. Ordered the Toshiba recovery disks and have spent the last two hours Exchange back and forth every minute or so when you are prompted. Is this normal or should I try something differen

  • Photosmart 5510

    Hello, I bet you might think it's a stupid question and I apologize to you in advance, but it's something that drives me crazy. When I started using the printer I need to click on an icon of the black printer giving me a selection of tasks, including

  • X 2 Pavilion: Pavilion x 2 pc goes black after login

    PC screen turns black after login. Ctrl/alt/Del we will execute me explore program and shows nothing running. I seem to have a virus on my new pc, even with supply it, free antivirus comes with the pc program. And I bought it on the Microsoft Store w