Sqlldr
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: Sqlldr

  1. #1
    Join Date
    Feb 2000
    Location
    NJ, United States
    Posts
    250

    Exclamation

    Hi guys,

    I have a strange problem with Sqlldr. Sometimes without any reason it hangs and it starts working only after I restart the database. Any clue what'st the problem.

    Thanx in advance,

    Kavita
    KN

  2. #2
    Join Date
    Nov 2000
    Posts
    344
    Maybe you are experiencing a lock.

    Run this query next time it happens to find out :
    It will show the session that is blocking you.


    select
    L.sid session_id,
    Substr(S.Username, 1, 10) as DBUser,
    decode(L.type, 'MR','Media Recovery', 'RT','Redo Thread',
    'UN','User Name', 'TX','Transaction',
    'TM','DML', 'UL','PL/SQL User Lock',
    'DX','Distributed Xaction', 'CF','Control File',
    'IS','Instance State', 'FS','File Set',
    'IR','Instance Recovery', 'ST','Disk Space Transaction',
    'TS','Temp Segment', 'IV','Library Cache Invalidation',
    'LS','Log Start or Switch', 'RW','Row Wait',
    'SQ','Sequence Number', 'TE','Extend Table',
    'TT','Temp Table', L.type) lock_type,
    decode(L.lmode, 0, 'None', 1, 'Null',
    2, 'Row-S (SS)', 3, 'Row-X (SX)',
    4, 'Share', 5, 'S/Row-X (SSX)',
    6, 'Exclusive', to_char(L.lmode)) mode_held,
    decode(L.request, 0, 'None', 1, 'Null',
    2, 'Row-S (SS)', 3, 'Row-X (SX)',
    4, 'Share', 5, 'S/Row-X (SSX)',
    6, 'Exclusive', to_char(L.request)) mode_requested,
    to_char(L.id1) lock_id1,
    decode(L.block, 0, 'Not Blocking', 1, 'Blocking',
    2, 'Global', to_char(L.block)) blocking_others,
    to_char(L.id2) lock_id2, sysdate - (l.ctime / 86400) ctime,
    S.User#,
    S.status,
    S.schemaname,
    S.osuser,
    S.machine,
    S.Program, S.Terminal,
    S.type,
    S.logon_time,
    S.Serial#,
    S.paddr,
    decode(S.sql_hash_value, 0, S.prev_hash_value, S.sql_hash_value) SQL_HASH_VALUE
    from V$lock L, V$session S
    where S.Sid = L.SID
    And S.type <> 'BACKGROUND'
    and L.Block = 1
    Order by 1

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width