external table access hangs

  • From: "Herring Dave - dherri" <Dave.Herring@xxxxxxxxxx>
  • To: <oracle-l@xxxxxxxxxxxxx>
  • Date: Mon, 26 Feb 2007 07:35:07 -0600

Folks,

I've got a strang problem trying to access an external table, actually any 
external table I define for this database and server.  Its Oracle 9.2.0.6 on 
Tru64 5.1b.  The table definition is rather simple:

CREATE TABLE STATS_COLLECT_DISK_XTB
   (    RUN_DT DATE,
        SNPSH_NBR NUMBER,
        DISK_NAME VARCHAR2(30),
        READS_PER_SEC NUMBER,
        KB_READS_PER_SEC NUMBER,
        WRITES_PER_SEC NUMBER,
        KB_WRITES_PER_SEC NUMBER,
        AVG_SERVICE_TIME NUMBER,
        AVG_WAIT_TIME NUMBER,
        REQUESTS_IN_ACTIVE_QUEUE NUMBER,
        REQUESTS_IN_WAIT_QUEUE NUMBER,
        PCT_BUSY NUMBER
   )
   ORGANIZATION EXTERNAL
    ( TYPE ORACLE_LOADER
      DEFAULT DIRECTORY COLLECT_DATA_DIR
      ACCESS PARAMETERS
      (FIELDS TERMINATED BY ','  OPTIONALLY ENCLOSED BY ''
           (run_dt char date_format date mask 'DD-MON-YYYY:HH24:MI:SS',
            snpsh_nbr, disk_name, reads_per_sec, kb_reads_per_sec, 
writes_per_sec, kb_writes_per_sec,
            avg_service_time, avg_wait_time, requests_in_active_queue, 
requests_in_wait_queue, pct_busy))
      LOCATION ( 'extract_DISK_current_1.csv'))
   REJECT LIMIT UNLIMITED;

Directory COLLECT_DATA_DIR is defined as CREATE OR REPLACE DIRECTORY 
COLLECT_DATA_DIR AS '/stage/oradata/ntrndb1/data';.  That directory is owned by 
Oracle (/oradata on down) and also matches UTL_FILE_DIR.  When I try any access 
of this table, such as simply counting the rows, the statement hangs.  CPU 
activity seems to continue indefinitely, yet from output of event 10046 it 
isn't apparent what the issue is, as the last statement listed is:

PARSING IN CURSOR #7 len=61 dep=1 uid=144 oct=3 lid=144 tim=9004781648896 
hv=3261540815 ad='8951c048'
SELECT PATH, READ, WRITE FROM LOADER_DIR_OBJS WHERE NAME = :1
END OF STMT
PARSE #7:c=4100,e=4096,p=0,cr=2,cu=0,mis=1,r=0,dep=1,og=0,tim=9004781648896
BINDS #7:
 bind 0: dty=1 mxl=32(16) mal=00 scl=00 pre=00 oacflg=31 oacfl2=0 size=32 
offset=0
   bfp=140578910 bln=32 avl=16 flg=05
   value="COLLECT_DATA_DIR"
EXEC #7:c=1025,e=2048,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=4,tim=9004781650944
FETCH #7:c=0,e=1024,p=0,cr=6,cu=0,mis=0,r=1,dep=1,og=4,tim=9004781651968
FETCH #7:c=0,e=0,p=0,cr=1,cu=0,mis=0,r=0,dep=1,og=4,tim=9004781651968

I saw only 1 reference in Metalink similar to this problem, dealing with a bad 
date mask.  So I removed the date column and definition and tried again, but 
got the same result.

Any clues?

Thanks.

Dave
 

___________________________________
David C. Herring, DBA  |   A c x i o m  Delivery Center Organization
630-944-4762 office | 630-430-5988 wireless | 630-944-4989 fax
***************************************************************************
The information contained in this communication is confidential, is
intended only for the use of the recipient named above, and may be legally
privileged.

If the reader of this message is not the intended recipient, you are
hereby notified that any dissemination, distribution or copying of this
communication is strictly prohibited.

If you have received this communication in error, please resend this
communication to the sender and delete the original message or any copy
of it from your computer system.

Thank You.
****************************************************************************
--
//www.freelists.org/webpage/oracle-l


Other related posts: