External tables in Oracle

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dilippanda
    New Member
    • Jun 2007
    • 26

    External tables in Oracle

    Hi,

    Please let me know about the concept behind External tables.
    How to select data from External Tables.

    It's urgent for me.
    Please help me.

    Thanks,
    Dilip
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    please find the details here

    Comment

    • dilippanda
      New Member
      • Jun 2007
      • 26

      #3
      Hi,

      wrk_cbx_respons e_ext is the external table in my scenario.

      Whenever i am trying to select data from this table it is throwing me the following error.

      ERROR at line 1:
      ORA-29913: error in executing ODCIEXTTABLEOPE N callout
      ORA-29400: data cartridge error
      KUP-04040: file CBX_Response_Fe edback^20070405 _1.dat in GCA_CBXRF not found
      ORA-06512: at "SYS.ORACLE_LOA DER", line 14
      ORA-06512: at line 1

      Please help me how to select data from this table.

      Thanks,
      Dilip

      Originally posted by debasisdas
      please find the details here

      Comment

      • debasisdas
        Recognized Expert Expert
        • Dec 2006
        • 8119

        #4
        please follow the steps provides in the link carefully

        take special care while creating directory and grant preveliges

        If u dont have the previleges log in through the SYS/SYSTEM account or ask your DBA to do the same for you

        Comment

        • dilippanda
          New Member
          • Jun 2007
          • 26

          #5
          Hi,

          The link you have provided tells
          2.EXTERNAL TABLES CAN BE QUERIED IN THE SAME WAY AS STANDARD TABLES IN JOINS,VIEWS.... .AND CAN USE ALL TYPES OF FUNCTION ON THE EXTERNAL TABLE.

          But i am not able to select data from my external table.

          I also don't have grant privileges grant priveleges on the directory.

          Please suggest me.

          Thanks,
          Dilip

          Originally posted by debasisdas
          please follow the steps provides in the link carefully

          take special care while creating directory and grant preveliges

          If u dont have the previleges log in through the SYS/SYSTEM account or ask your DBA to do the same for you

          Comment

          • Saii
            Recognized Expert New Member
            • Apr 2007
            • 145

            #6
            When you specify the dir_obj name in external table defination, you should have access to that location so that you can read data from file.
            Also check whether you have mapped the columns correctly.

            Comment

            • debasisdas
              Recognized Expert Expert
              • Dec 2006
              • 8119

              #7
              simply copy and paste the code from the link and try to execute

              You change the code later on as per your requirment.

              Comment

              Working...