Dont understand Oracle Tables

I am new to Oracle and need to ask a question.
Some oracle tables appear to act different than in DB2.
I determine that the number of records within dba_jobs is 1.
Then I describe the table and find there are about
18 columns within the table.
Then I perform a SELECT * on the table.
When I do the select, it looks like it is printing out about 8 different records.
With only the MISC ENV field being populated.
How should I interpret this
The following are the commands I entered:
SQL> select count(*) from dba_jobs;
  COUNT(*)
         1
SQL> describe dba_jobs;
Name                                      Null?    Type
JOB                                       NOT NULL NUMBER
LOG_USER                                  NOT NULL VARCHAR2(30)
PRIV_USER                                 NOT NULL VARCHAR2(30)
SCHEMA_USER                               NOT NULL VARCHAR2(30)
LAST_DATE                                          DATE
LAST_SEC                                           VARCHAR2(8)
THIS_DATE                                          DATE
THIS_SEC                                           VARCHAR2(8)
NEXT_DATE                                 NOT NULL DATE
NEXT_SEC                                           VARCHAR2(8)
TOTAL_TIME                                         NUMBER
BROKEN                                             VARCHAR2(1)
INTERVAL                                  NOT NULL VARCHAR2(200)
FAILURES                                           NUMBER
WHAT                                               VARCHAR2(4000)
NLS_ENV                                            VARCHAR2(4000)
MISC_ENV                                           RAW(32)
INSTANCE                                           NUMBER
SQL> select * from dba_jobs;
       JOB LOG_USER                       PRIV_USER
SCHEMA_USER                    LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE
NEXT_SEC TOTAL_TIME B
INTERVAL
  FAILURES
WHAT
NLS_ENV
MISC_ENV                                                           INSTANCE
         1 SYSMAN                         SYSMAN
       JOB LOG_USER                       PRIV_USER
SCHEMA_USER                    LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE
NEXT_SEC TOTAL_TIME B
INTERVAL
  FAILURES
WHAT
NLS_ENV
MISC_ENV                                                           INSTANCE
SYSMAN                         20-APR-09 22:29:55                    20-APR-09
       JOB LOG_USER                       PRIV_USER
SCHEMA_USER                    LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE
NEXT_SEC TOTAL_TIME B
INTERVAL
  FAILURES
WHAT
NLS_ENV
MISC_ENV                                                           INSTANCE
22:30:55      17989 N
       JOB LOG_USER                       PRIV_USER
SCHEMA_USER                    LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE
NEXT_SEC TOTAL_TIME B
INTERVAL
  FAILURES
WHAT
NLS_ENV
MISC_ENV                                                           INSTANCE
sysdate + 1 / (24 * 60)
       JOB LOG_USER                       PRIV_USER
SCHEMA_USER                    LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE
NEXT_SEC TOTAL_TIME B
INTERVAL
  FAILURES
WHAT
NLS_ENV
MISC_ENV                                                           INSTANCE
         0
       JOB LOG_USER                       PRIV_USER
SCHEMA_USER                    LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE
NEXT_SEC TOTAL_TIME B
INTERVAL
  FAILURES
WHAT
NLS_ENV
MISC_ENV                                                           INSTANCE
EMD_MAINTENANCE.EXECUTE_EM_DBMS_JOB_PROCS();
       JOB LOG_USER                       PRIV_USER
SCHEMA_USER                    LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE
NEXT_SEC TOTAL_TIME B
INTERVAL
  FAILURES
WHAT
NLS_ENV
MISC_ENV                                                           INSTANCE
NLS_LANGUAGE='AMERICAN' NLS_TERRITORY='AMERICA' NLS_CURRENCY='$' NLS_ISO_CURRENC
       JOB LOG_USER                       PRIV_USER
SCHEMA_USER                    LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE
NEXT_SEC TOTAL_TIME B
INTERVAL
  FAILURES
WHAT
NLS_ENV
MISC_ENV                                                           INSTANCE
Y='AMERICA' NLS_NUMERIC_CHARACTERS='.,' NLS_DATE_FORMAT='DD-MON-RR' NLS_DATE_LAN
       JOB LOG_USER                       PRIV_USER
SCHEMA_USER                    LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE
NEXT_SEC TOTAL_TIME B
INTERVAL
  FAILURES
WHAT
NLS_ENV
MISC_ENV                                                           INSTANCE
GUAGE='AMERICAN' NLS_SORT='BINARY'
       JOB LOG_USER                       PRIV_USER
SCHEMA_USER                    LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE
NEXT_SEC TOTAL_TIME B
INTERVAL
  FAILURES
WHAT
NLS_ENV
MISC_ENV                                                           INSTANCE
0102000000000000                                                          0
       JOB LOG_USER                       PRIV_USER
SCHEMA_USER                    LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE
NEXT_SEC TOTAL_TIME B
INTERVAL
  FAILURES
WHAT
NLS_ENV
MISC_ENV                                                           INSTANCE
---------------------------------------------------------------- ----------Thanks,
Edited by: user10747262 on Apr 21, 2009 11:56 AM

Hello,
Can you edit your post and enclose your code and output between \ tag to preseve formatting? Also list out all the questions before your output so it will be easier for any volunteer to help you out faster.
\Your code or output goes here.
\Regards                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • How to understand Oracle tables (as opposed to DB2)

    I am a beginner and need to ask a question.
    I determine that the number of records within dba_jobs is 1.
    Then I describe the table and find there are about
    18 columns within the table.
    Then I perform a SELECT * on the table.
    When I do the select, it looks like it is printing out about 8 different records.
    With only the MISC ENV field being populated.
    How should I interpret this
    The following are the commands I entered:
    SQL> select count(*) from dba_jobs;
    COUNT(*)
    1
    SQL> describe dba_jobs;
    Name Null? Type
    JOB NOT NULL NUMBER
    LOG_USER NOT NULL VARCHAR2(30)
    PRIV_USER NOT NULL VARCHAR2(30)
    SCHEMA_USER NOT NULL VARCHAR2(30)
    LAST_DATE DATE
    LAST_SEC VARCHAR2(8)
    THIS_DATE DATE
    THIS_SEC VARCHAR2(8)
    NEXT_DATE NOT NULL DATE
    NEXT_SEC VARCHAR2(8)
    TOTAL_TIME NUMBER
    BROKEN VARCHAR2(1)
    INTERVAL NOT NULL VARCHAR2(200)
    FAILURES NUMBER
    WHAT VARCHAR2(4000)
    NLS_ENV VARCHAR2(4000)
    MISC_ENV RAW(32)
    INSTANCE NUMBER
    SQL> select * from dba_jobs;
    JOB LOG_USER PRIV_USER
    SCHEMA_USER LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE
    NEXT_SEC TOTAL_TIME B
    INTERVAL
    FAILURES
    WHAT
    NLS_ENV
    MISC_ENV INSTANCE
    1 SYSMAN SYSMAN
    JOB LOG_USER PRIV_USER
    SCHEMA_USER LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE
    NEXT_SEC TOTAL_TIME B
    INTERVAL
    FAILURES
    WHAT
    NLS_ENV
    MISC_ENV INSTANCE
    SYSMAN 20-APR-09 22:29:55 20-APR-09
    JOB LOG_USER PRIV_USER
    SCHEMA_USER LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE
    NEXT_SEC TOTAL_TIME B
    INTERVAL
    FAILURES
    WHAT
    NLS_ENV
    MISC_ENV INSTANCE
    22:30:55 17989 N
    JOB LOG_USER PRIV_USER
    SCHEMA_USER LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE
    NEXT_SEC TOTAL_TIME B
    INTERVAL
    FAILURES
    WHAT
    NLS_ENV
    MISC_ENV INSTANCE
    sysdate + 1 / (24 * 60)
    JOB LOG_USER PRIV_USER
    SCHEMA_USER LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE
    NEXT_SEC TOTAL_TIME B
    INTERVAL
    FAILURES
    WHAT
    NLS_ENV
    MISC_ENV INSTANCE
    0
    JOB LOG_USER PRIV_USER
    SCHEMA_USER LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE
    NEXT_SEC TOTAL_TIME B
    INTERVAL
    FAILURES
    WHAT
    NLS_ENV
    MISC_ENV INSTANCE
    EMD_MAINTENANCE.EXECUTE_EM_DBMS_JOB_PROCS();
    JOB LOG_USER PRIV_USER
    SCHEMA_USER LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE
    NEXT_SEC TOTAL_TIME B
    INTERVAL
    FAILURES
    WHAT
    NLS_ENV
    MISC_ENV INSTANCE
    NLS_LANGUAGE='AMERICAN' NLS_TERRITORY='AMERICA' NLS_CURRENCY='$' NLS_ISO_CURRENC
    JOB LOG_USER PRIV_USER
    SCHEMA_USER LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE
    NEXT_SEC TOTAL_TIME B
    INTERVAL
    FAILURES
    WHAT
    NLS_ENV
    MISC_ENV INSTANCE
    Y='AMERICA' NLS_NUMERIC_CHARACTERS='.,' NLS_DATE_FORMAT='DD-MON-RR' NLS_DATE_LAN
    JOB LOG_USER PRIV_USER
    SCHEMA_USER LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE
    NEXT_SEC TOTAL_TIME B
    INTERVAL
    FAILURES
    WHAT
    NLS_ENV
    MISC_ENV INSTANCE
    GUAGE='AMERICAN' NLS_SORT='BINARY'
    JOB LOG_USER PRIV_USER
    SCHEMA_USER LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE
    NEXT_SEC TOTAL_TIME B
    INTERVAL
    FAILURES
    WHAT
    NLS_ENV
    MISC_ENV INSTANCE
    0102000000000000 0
    JOB LOG_USER PRIV_USER
    SCHEMA_USER LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE
    NEXT_SEC TOTAL_TIME B
    INTERVAL
    FAILURES
    WHAT
    NLS_ENV
    MISC_ENV INSTANCE
    ---------------------------------------------------------------- ----------

    ...and then how to post with tags: http://forums.oracle.com/forums/help.jspa                                                                                                                                                                               

  • Insert /delete data from SAP Z table to Oracle table and opposite

    Hi,
    Can u help me write this FM from the SAP side?
    So, I have two tables ZTABLE in SAP and Oracle table ORAC.
    Let's put three columns in each of them, for example
    TEL1
    TEL2
    ADRESS
    NAME
    where TEL field is primary from ZTABLE to ORAC...
    (in FM there shoud be abap code for writing data in ZTABLE after we press some pushbutton made in sap screen painter..)
    for example, when we write new record in ZTABLE
    00
    112233
    Street 4
    Name1
    this data shoud be inserted in Oracle table ORAC.
    when we write new record in Oracle table for example
    01
    445566
    New Street
    Name2
    this data shoud be inserted in ZTABLE.
    Field TEL1 can be only of two values 01 or 02, other combination is not valid...
    I must have all data from Oracle table ORAC in ZTABLE and opposite.
    It should be the same scenario for DELETE...
    And this communication should be online between sap and table in oracle database...
    Can u help me from sap side? and give idea how to configure on oracle side??
    Thanks a lot,
    Nihad

    I dont know if we can directly connect to a oracle database ( wait for the answers from others on this )
    but in XI we have the JDBC adaptor to insert and retrieve data.
    so for the outbound from SAP the flow can be something like this (with XI in landscape):
    1) You have a screen to maintain a new entry / delete an entry
    2) On save , this record gets saved or deleted from the Ztable in SAP
    3)) In the same screen you can call a proxy class-method (generated using SPROXY transaction ) to send the record to XI.
    4) XI to format it and insert into the oracle table
    Mathews

  • Problem refreshing an Oracle table in MapInfo that's been updated in Oracle

    Dear all
    I am doing some digitising work in MapInfo Professional 8, using a table stored in Oracle 10.2g. I have completed the bulk of my digitising and the polygons have been written back to the Oracle database without any issues.
    As I am working with several maps coving the same area, but from different dates, I have simply been copying the shapes from one field to another, for areas that are the same on other maps. This avoids having to digitise an area more than once.
    Here is an example of my table:
    map_index_id  original_map_publication_id  name_of_feature         geographical_coordinates
    5000840       200016                       NORTH STREET            MDSYS.SDO_GEOMETRY [1a]
    5000841       200016                       NORTH STREET QUADRANT   MDSYS.SDO_GEOMETRY [2a]
    5000843       200016                       OLD STEINE              MDSYS.SDO_GEOMETRY [3a]
    5000955       200021                       NORTH STREET            null [1b]
    5000956       200021                       NORTH STREET QUADRANT   null [2b]
    5000957       200021                       OLD STEINE              null [3b]The idea is that the geometry of 1a is copied to 1b, 2a to 2b and so on. The script I am using to do this, is as follows:
    undefine name_of_feature_to_be_used
    undefine name_of_feature_to_be_updated
    UPDATE MAP_INDEX  B
    SET (B.geographical_coordinates) =
    (SELECT A.geographical_coordinates
    FROM MAP_INDEX A
    WHERE A.original_map_publication_id=&&original_map_to_be_used
    AND A.name_of_feature='&&name_of_feature_to_be_used')
    WHERE B.original_map_publication_id=original_map_to_be_updated
    AND B.name_of_feature='&&name_of_feature_to_be_updated';That works okay. The problem I have is that whenever I make changes to the geographical_coordinates column, which is an sdo_geometry column, the changes are not then being picked up by MapInfo Professional when I click refresh DBMS table in that program.
    If I make additional changes in MapInfo and then save the table out, it simply wipes all the changes I have made in Oracle, using my above SQL script.
    I believe what happens when a table is first made mapping in MapInfo, is that MapInfo takes the Oracle sdo_column: geographical_coordinates and links this to a MapInfo column called obj , since MapInfo seems to only allow the spatial column to be called obj. All other columns are brought in using their Oracle names. What I think it isn't doing though, is relinking this column at any point afterwards.
    Am I correct and if so, does anyone have a away round this problem? I made my Oracle table "download table [link to Oracle]". Would keeping the table live, make any difference?
    Kind regards
    Tim

    Hi Ivan and everyone
    Thank you for your reply. The geometries are not always the same. I have now found out what the problem is and how to solve it and I will explain this for the benefit of others.
    When I update a spatial column for a row ,outside of MapInfo Professional 8, it is not picking up the updates.
    When I update a non-spatial column for a row, outside of MapInfo Professional 8, it is picking up the updates.
    When I update a non-spatial column and a geometry column for a row, outside of MapInfo Professional 8, it is picking up the updates for both columns.
    Therefore a solution to my problem is to create an additional non-spatial column, which I update everytime I copy the geometry values. Then when I refresh the table in MapInfo, it will pick up the geometry changes. I do not understand why MapInfo will not pick up the updates to the spatial columns on their own but it is not doing this.
    I did a test to see what would happen if I updated three rows where all three rows had there geometry values updated but only two rows had a non-spatial column value updated.
    When opened up the table in MapInfo, using the following MapInfo SQL:
    Select * From "user name here"."MAP_INDEX_FOR_MAPINFO_USE"
    WHERE not GEOGRAPHICAL_COORDINATES Is Null
    AND original_map_publication_id=200010
    AND original_map_sheet_number_id=330010it brought in only the two rows whose non-spatial column had been updated. The row where only it's spatial column was amended, was not brought in. There was no other rows brought in because no other row for that publication and sheet had been updated.
    Why this is occurring I do not know. It may be that issue was resolved in later versions of MapInfo. I am very happy to have found a solution to my problem. However I do feel it is something I should not be having to do in the first place, no matter how pleased I am to have found a solution.
    Kind regards
    Tim

  • Mapping To Oracle Table, but no output after transform

    Hi, All
    I want to transform some records to Oracle table and met a very werid issue. I use a transform in odx.  this is the mapping
    name  by name
    and I add a output before the mapping, this is the output xml
     <InforProd xmlns="">
    - <InforProdRow xmlns="">
      <PROD_CD>00000013 JOBST</PROD_CD>
      <PROD_DESCRP>Description</PROD_DESCRP>
      <STD_COST>100.0000</STD_COST>
      <SELL_PRICE>1000.0000</SELL_PRICE>
      <UOM>11.000000000000</UOM>
      <USERSTRING_0>213020900030</USERSTRING_0>
      <USERSTRING_1>SN</USERSTRING_1>
      <USERSTRING_2>这是中文</USERSTRING_2>
      <USERSTRING_3>Active</USERSTRING_3>
      <USERSTRING_4>1</USERSTRING_4>
      <USERSTRING_5>2</USERSTRING_5>
      <USERSTRING_6>3</USERSTRING_6>
      <USERSTRING_7>4</USERSTRING_7>
      <USERSTRING_8>5</USERSTRING_8>
      <LOADER_REF>7</LOADER_REF>
      <LastModifiedDate>2014-01-01T00:00:00</LastModifiedDate>
      <LastUpdatedDate>2014-01-01T00:00:00</LastUpdatedDate>
      </InforProdRow>
      </InforProd>
    after the transform, I get no resuslt.
    <ns0:Insert xmlns:ns0="....">
    - <ns0:RECORDSET>
    - <ns0:IMP_RAW_PRODRECORDINSERT>
      <ns0:PROD_CD />
      <ns0:PROD_DESCRP />
      <ns0:STD_COST />
      <ns0:SELL_PRICE />
      <ns0:UOM />
      <ns0:USERSTRING_0 />
      <ns0:USERSTRING_1 />
      <ns0:USERSTRING_2 />
      <ns0:USERSTRING_3 />
      <ns0:USERSTRING_4 />
      <ns0:USERSTRING_5 />
      <ns0:USERSTRING_6 />
      <ns0:USERSTRING_7 />
      <ns0:USERSTRING_8 />
      <ns0:LOADER_REF />
      </ns0:IMP_RAW_PRODRECORDINSERT>
      </ns0:RECORDSET>
      </ns0:Insert>
    This the instance I use Generate Intance of the schema.
    <ns0:InforProd xmlns:ns0="">
    - <ns0:InforProdRow>
      <ns0:PROD_CD>PROD_CD_0</ns0:PROD_CD>
      <ns0:PROD_DESCRP>PROD_DESCRP_0</ns0:PROD_DESCRP>
      <ns0:STD_COST>10.4</ns0:STD_COST>
      <ns0:SELL_PRICE>10.4</ns0:SELL_PRICE>
      <ns0:UOM>UOM_0</ns0:UOM>
      <ns0:USERSTRING_0>USERSTRING_0_0</ns0:USERSTRING_0>
      <ns0:USERSTRING_1>USERSTRING_1_0</ns0:USERSTRING_1>
      <ns0:USERSTRING_2>USERSTRING_2_0</ns0:USERSTRING_2>
      <ns0:USERSTRING_3>USERSTRING_3_0</ns0:USERSTRING_3>
      <ns0:USERSTRING_4>USERSTRING_4_0</ns0:USERSTRING_4>
      <ns0:USERSTRING_5>USERSTRING_5_0</ns0:USERSTRING_5>
      <ns0:USERSTRING_6>USERSTRING_6_0</ns0:USERSTRING_6>
      <ns0:USERSTRING_7>USERSTRING_7_0</ns0:USERSTRING_7>
      <ns0:USERSTRING_8>USERSTRING_8_0</ns0:USERSTRING_8>
      <ns0:LOADER_REF>10.4</ns0:LOADER_REF>
      <ns0:LastModifiedDate>1999-05-31T13:20:00.000-05:00</ns0:LastModifiedDate>
      <ns0:LastUpdatedDate>1999-05-31T13:20:00.000-05:00</ns0:LastUpdatedDate>
      </ns0:InforProdRow>
      </ns0:InforProd>
    it has <ns0:>, but my schema input doesn't have, does it matter, I did the same thing on Sqlserver, the map result is correct.
    can anyone help?

    Hi Neal,
    It wont matter much to have <ns0> attribute added to your  Map output .
    We can remove ns0 prefix simply by set the schema elements property or both elements and attributes properties to be qualified. To do that follow my steps:
    1-      Open your schema
    2-      Right Click <Schema> and select properties
    3-      Use schema property editior and Set [Element FromDefult] to Unqualified, and then set [Attribute FromDefault] to Unqualified if you are using attributes in your schema.
    You can look at below links
    http://geekswithblogs.net/dmillard/archive/2004/10/20/12935.aspx
    http://www.techtalkz.com/microsoft-biztalk-server/295831-why-biztalk-2006-piut-ns0-prefix-part-my-xml-even-if-i-dont-wantit-plz-some1-explain-me.html

  • How to insert a string with \' and \" into an Oracle table?

    I'm transferring an MS Access column contains characters such like \' and \" to an Oracle table.
    The following statement can work PROPERLY while rsSrc.getString(1) does NOT contain \' and \".
    But when \' or \" occurs in rsSrc.getString(1), a SQLException was caught as "ORA-00917: missing comma".
    sqlCommand="insert into myTable values (\'"+rsSrc.getString(1)+"\')";
    How to solve this problem? Thank you.

    Thank you, San.
    Original statement is right...
    sqlCommand="insert into myTable values (\'"+rsSrc.getString(1)+"\')";
    Your statement will not work properly when rsSrc.getString(1) contains " or '.
    sqlCommand="insert into myTable values ('"+rsSrc.getString(1)+"')";
    The best solution should be preparedStatement. Please see another topic with the same topic name.
    Thank you, San, again.
    Hi,
    Original ...
    sqlCommand="insert into myTable values
    (\'"+rsSrc.getString(1)+"\')";
    change it to ...
    sqlCommand="insert into myTable values
    ('"+rsSrc.getString(1)+"')";
    Pls dont add \
    good luck !
    :-) san

  • From IDOC to Multiple Oracle tables Structure

    Hi Guys,
    I am doing a one Senario which is Custom idoc and Custom Tables of oracle they both have same fields and Same Sturucte does it possible from to do 1:1 mapping shall i process these in 1:n.Need a sugestion in these  How i can slove these problem. IF some from india will give their cont pho to my mail id [email protected] i can call them and dicuss about these problem..
      the senario is idoc to multiple oracle tables..need to map.
    Regd's
    Raj

    Hi Raj,
    you scenario can be:
    R/3 -> XI -> JDBC
    The flow is asynchronous - so you dont have any responses. If you want to use BPM/acknowledgements to catch errors have a look to <a href="/people/udo.martens/blog/2005/09/30/one-logical-system-name-for-serveral-bpm-acknowledgements Logical System Name for serveral BPM Acknowledgements</a>
    You can split the IDoc (<a href="/people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible without BPM - Yes, it’s possible!</a>) to several JDBC messages or put serveral statements into one message (
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/frameset.htm">Document Formats for the Receiver JDBC Adapter</a>)
    Regards,
    Udo

  • Import excel/csv data to oracle table problem

    hello sir,
    i am using application importing csv/excel data to oracle table which is developed by vikas and that i want but when i add csv file and upload. My cvs file will displayed but when i click on create table button then it gives error like ...
    1) invalid datatype. vikas link as :
    http://htmldb.oracle.com/pls/otn/wwv_flow_custom_auth_std.login_page?p_flow_page=38131:1:1287783765705596
    i search in forum for solution i got following link but it also gives me error
    Re: File Browse, File Upload
    still i am trying but i dont get solution . plz help me!!! give me steps ......
    Report on table created
    says:
    failed to parse SQL query:
    ORA-00942: table or view does not exist

    Hi
    Firstly, are you trying to upload your data into a new table or an existing table? If it's a new table, what name are you using?
    Secondly, it may help if we could see a sample of the csv

  • Load XML Data to Oracle Table

    I am new to AQ and XML,
    We have a situation at our project, the last DBA left us without any previous notice and no one here know AQ and XML. So now it is my duty to learn and work on this project.
    We are getting Queue with XML information (i mean data) we have to dequeue and then store that data in oracle tables.
    I tried to each and every site to get a grip of what's the basic here, but I get lost. It's more easy for me to understand a concept by going through examples rather study chapters.
    This is what I did today from this site. (http://www.oracle.com/technology/sample_code/tech/java/codesnippet/xmldb/HowToLoadLargeXML.html#PLSQLCode)
    created the potable, then loaded data in potable as per example. Now I want to load this data in a table which I created in Oracle (10.2....) table.
    CREATE OR REPLACE PROCEDURE loadpurchaseorder
    IS
    -- Declare a CLOB variable
    poxml CLOB;
    BEGIN
    -- Store the Purchase Order XML in the CLOB variable
    poxml :=
    '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <PurchaseOrder>
    <PONum>1001</PONum>
    <Company>Oracle Corp</Company>
    <PONum>1002</PONum>
    <Company>NPC Corp</Company>
    <PONum>1003</PONum>
    <Company>FDCA Corp</Company>
    <PONum>1004</PONum>
    <Company>Mahesh Corp</Company>
    <PONum>1005</PONum>
    <Company>Habeeb Corp</Company>
    </PurchaseOrder>';
    -- Insert the Purchase Order XML into an XMLType column
    INSERT INTO potable
    (purchaseorder
    VALUES (XMLTYPE (poxml)
    --Handle the exceptions
    EXCEPTION
    WHEN OTHERS
    THEN
    raise_application_error
    (-20101
    , 'Exception occurred in loadPurchaseOrder procedure :'
    || Sqlerrm
    END loadpurchaseorder;
    execute loadpurchaseorder;PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.04
    select count(*) from potable;COUNT(*)
    1
    Elapsed: 00:00:00.00
    select * from potable;PURCHASEORDER
    <?xml version="1.0" encoding="ISO-8859-1" standalone='yes'?>
    <PurchaseOrder>
    <PONum>1001</PONum>
    <Company>Oracle Corp</Company>
    <PONum>1002</PONum>
    <Company>NPC Corp</Company>
    <PONum>1003</PONum>
    <Company>FDCA Corp</Company>
    <PONum>1004</PONum>
    <Company>Mahesh Corp</Company>
    <PONum>1005</PONum>
    <Company>Habeeb Corp</Company>
    </PurchaseOrder>
    Elapsed: 00:00:00.03
    create table xml_ora_data(corp_id number, corp_name varchar2(30));Table created.
    Now I want data from potable to be loaded in xml_ora_data.
    any help is appriciated...
    Thanks
    Habeeb

    Thanks for the quick response...
    XML_ORA_DATA is the table I created as below..
    create table xml_ora_data(corp_id number, corp_name varchar2(30));

  • How to define mapping from multiple files to Oracle Tables in 9i

    Around 100-200 Flat files are created every 30 minutes and each filename is different - Filename has datetime Stamp as part of the file name apart from the product code as first 12 characters.
    Can anyone guide me in How to define mappings to these files using OWB ?
    What I can do is consolidate all files into one known single file name and map the files to Oracle tables which I don't want to do because I need to reject errorneous files.
    Can anyone provide me some tips on this ?
    Thanks in Advance.
    Sohan.

    As you know, in OWB you need to define the flat file source in a 'static' way (name, location, etc. have to be defined previously), so you cannot deal directly with dinamically generated file names. One solution would be to consolidate them into a single file (which you can define statically in OWB), but prefix every record with the filename. In this way it is easy to understand from which file the rejected records came from. If you are using unix, it is very easy to write a script to do this. Something like this will do:
    awk '{printf "%s,%s\n",FILENAME,$1}' yourfilename >> onefile
    where yourfile is the name of the file you are currently processing, while onefile is the name of the consolidated file. You can run this for all files in your directory by substituting yourfilename with * .
    You can then disregard the file name field in OWB, while processing the rejected records based on the file name prefix by using unix utilities like grep and similar.
    Regards:
    Igor

  • How can I inserting file's line into a oracle table in physycal order

    How can I insert the file's line into a oracle table in the same physycal order that they exists in the file ?
    I am using "SQL to FILE" km to performing file load into Oracle table, but the order which the records are insered into the oracle table doesn't match with the order of file's lines
    How can I guarantee the same file's physycal order in the oracle table( target ) and file( source ) ?
    Is it possible throught ODI ?
    Thanks,
    Luciana

    Hi,
    although I understand why use "File to Oracle( SQLLDR )" KM, I haven't the guarantee that in the agent's machine the Oracle Client installed and because when I openned the others projects I saw that anyone in my company use this KM( "File to Oracle( SQLLDR )" )
    Tha's why I ask for anyone lead me whith the modification of the previous post in the "uLKM File to SQL", specifing the km step e where put the RECNUM pseudo column
    This is fundamental for my ODI project
    When I try to alter the "Create Work Table" and "Load Data" step of my "uLKM File to SQL" km, the execution returned me the error below:
    =====================> Create Work Table Step
    create table <@= vWorkTable @>
         C1_LINHA_ARQ     VARCHAR2(500) NULL, RECNUM NUMBER(10)
    =====================> Load Data Step
    select     LINHA_ARQ     C1_LINHA_ARQ
    from      TABLE
    /*$$SNPS_START_KEYSNP$CRDWG_TABLESNP$CRTABLE_NAME=ARQ_INSS2SNP$CRLOAD_FILE=/arquivos_odi/ccrs/in/#CCRS_CAD_INSS.vpNOME_ARQUIVOSNP$CRFILE_FORMAT=DSNP$CRFILE_SEP_FIELD=09SNP$CRFILE_SEP_LINE=0D0ASNP$CRFILE_FIRST_ROW=0SNP$CRFILE_ENC_FIELD=SNP$CRFILE_DEC_SEP=SNP$CRSNP$CRDWG_COLSNP$CRCOL_NAME=LINHA_ARQSNP$CRTYPE_NAME=STRINGSNP$CRORDER=1SNP$CRLINE_OFFSET=1SNP$CRLENGTH=500SNP$CRPRECISION=500SNP$CR$$SNPS_END_KEY*/
    insert into ODI_RUN_CONV.C$_0TMP_ODI_INSS_DADOS_ARQ
         C1_LINHA_ARQ, RECNUM
    values
         :C1_LINHA_ARQ, RECNUM
    =====================
    984 : 42000 : java.sql.BatchUpdateException: ORA-00984: column not allowed here
    984 : 42000 : java.sql.SQLSyntaxErrorException: ORA-00984: column not allowed here
    java.sql.BatchUpdateException: ORA-00984: column not allowed here
         at oracle.jdbc.driver.DatabaseError.throwBatchUpdateException(DatabaseError.java:629)
         at oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:9409)
         at oracle.jdbc.driver.OracleStatementWrapper.executeBatch(OracleStatementWrapper.java:211)
         at com.sunopsis.sql.SnpsQuery.executeBatch(Unknown Source)
    ...Thanks again gyus,
    Luciana
    Edited by: 933810 on 31/05/2012 06:04
    Edited by: 933810 on 31/05/2012 06:07
    Edited by: 933810 on 31/05/2012 06:14

  • Data from xml to oracle tables

    Hi All,
    I need to store data from the XML documents into appropriate tables in ORACLE. Note: I dont need to store the document itself, but the data in the document needs to be stored in the tables. What is the right way of doing this?
    I previoulsy used SQLXML3.0 to load data from the XML documents to SQL server database ( .xsd will take care of the mapping), but we now need to store data into Oracle tables.
    Thanks,

    There is a XMLDB demo authored by Mark Drake. This will explain a lot about Oracle XMLDB.
    AFter reading, if you still have questions post back to the list
    http://www.oracle.com/ultrasearch/wwws_otn/searchotn.jsp?p_Action=Search&p_Query=demo+xml

  • How to copy only some coulums and rows from excel files to a Oracle Table

    Dear all,
    I have the following problems:
    How to copy only some wanted coulums ( I.e DATETIME(format:17/09/2007 00:00:01 ) and TIME (format: 00:00:01 ) from excel files to oracle table.
    HOPE TO GET HELP FROM YOU GUYS!
    SINCERELY,
    MONOJSHARMALUITEL

    How about Heterogeneous Services so that the Excel sheet is an external database:
    1- Go to Control Panel>Administrative Tools>Data Sources (ODBC)>System DSN and create a data source with appropriate driver. Name it EXCL.
    2- In %ORACLE_HOME%\Network\Admin\Tnsnames.ora fie add entry:
    EXCL =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.12.0.24)(PORT = 1521))
    (CONNECT_DATA =
    (SID = EXCL)
    (HS = OK)
    Here SID is the name of data source that you have just created.
    3- In %ORACLE_HOME%\Network\Admin\Listener.ora file add:
    (SID_DESC =
    (PROGRAM = hsodbc)
    (SID_NAME = <hs_sid>)
    (ORACLE_HOME = <oracle home>)
    under SID_LIST_LISTENER like:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = d:\ORA9DB)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = ORA9DB)
    (ORACLE_HOME = d:\ORA9DB)
    (SID_NAME = ORA9DB)
    (SID_DESC =
    (PROGRAM = hsodbc)
    (SID_NAME = EXCL)
    (ORACLE_HOME = D:\ora9db)
    Dont forget to reload the listener
    c:\> lsnrctl reload
    4- In %ORACLE_HOME%\hs\admin create init<HS_SID>.ora. For our sid EXCL we create file initexcl.ora.
    In this file set following two parameters:
    HS_FDS_CONNECT_INFO = excl
    HS_FDS_TRACE_LEVEL = 0
    5- Now connect to Oracle database and create database link with following command:
    SQL> CREATE DATABASE LINK excl
    2 USING 'excl'
    3 /
    Database link created.
    Now you can perform query against this database like you would for any remote database.
    SQL> SELECT table_name FROM all_tables@excl;
    TABLE_NAME
    DEPT
    EMP

  • Importing excel data into oracle tables

    Hello gurus,
    Importing excel data into oracle tables..
    I know this is the most common question on the thread ...First, i searched the forum, i found bunch of threads with loading data using sqlloader, converting excel into .Txt, tab delimited file, .csv file etc....
    Finally i was totally confused in terms how to get this done....
    Here is wat i have
       - Excel file on local computer.
       - i have laod data into dev environment tables(So no risk involved, but want to try something simple)
       - Oracle version 11.1.0.7
       - Sqlplus and toad (editors)
    Here is wat i like to do ....i dont know if its possible
        - Without going to unix server can i do everthing on local system by making use of oracle db and sqlplus or toad
       SQLLOADER might be one option...but i dont want to go the unix server for placing files and logs and stuff.
    Wat will be best and simplest option to do?? and wat format will best to convert from excel into csv, or txt or tab delimited etc.....
    If you suggest sqlloader, any code example will be greatly appriciated.
    Thank you so much!!!

    Hi,
    user642297 wrote:
    Imran,
    This is increadible option in toad!!! It works absolutely sweet!! I have toad 9.7 version. IT works great. Thank you so much!!You are welcome :)
    Well i have further discussion on this ....this option is great if you doing in staging or development area. What if your doing in prod?? If you automating the sqlloader then how do u do it?? I think we still need to stick with traditional approach of laoding data by making use of SQLLoader right ?? If m wrong please correct me.well, in our case, we do have access to a custom schema in prod where we create the staging table and load the data from datafiles.
    try this:
    load data
    infile 'C:\dest.csv'
    into table dest_table
    fields terminated by "~" optionally enclosed by '"'
    TRAILING NULLCOLS
    (name,
    owner_nm,
    description_column,
    UPDT_DT DATE 'MM/DD/YYYY')
    {code}
    you can get more info about sql loader and your error here:
    http://download.oracle.com/docs/cd/B10501_01/server.920/a96652/ch05.htm
    http://www.allinterview.com/showanswers/53766.html
    And one more quick question ...i found an example of control file , in that i see .dat format file. Is it a data file ?? can i try that option ?? But in excel i didnt see to convert the .dat format file.
    Any thoughts ???
    It is same as a delimiter text file.
    steps to create a .dat file (from a excel file):
    1. Insert a column between two columns and populate it with the delimiter (in our case, it is ~)
    2. Save the file as unicode text.
    3. Open the file in text editor and remove all the tabs (find an replace with blank)
    4. Save the file as "DEST.dat". Select encoding as UTF-8 while saving.
    5. Your .dat file is ready.
    Regards
    Imran
    Edited by: Imran Soudagar on Apr 22, 2010 10:22 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How Oracle tables can be used to display Chinese/Japanese characters

    If anyone knows how to display Chinese/Japanese characters from Oracle tables please reply this email. Thanks.
    Regards,
    Preston

    hi
    ->Also please let me know how the Oracle Lite is licenced if I have 300 odd users of this offline applications
    you should speak to your local oracle rep about that, for us for example they gave a pretty cheap packet for olite 10gr3+ 11g repository
    ->need to use only database part of Oracle Lite and not mobile server.
    you cant do that. mobile server is the application server that handles the synchronization process from the server side. when a client tries to sync he actually connects to the mobile server and asks for the database changes , the mobile server know what the client must get so he packs it and give it to him
    ->you can ofc make lightweight .net apps using olite. we make olite apps even for wince handhelds. so yes ofcourse you can. olite had a win32 client also.
    ->can it run from usb.
    ok here to be honest ive never tried that myself, looks kinda weird as a requirement to be honest but i dont see why it shouldnt run. if you set up the paths correctly you shouldnt have a problem i think.
    ->offline application will have more or less similar data entry forms and storage structure
    yes ofcourse , if i have 3 tables in server i can choose to have 2(or all ) of them on the client too. i can even separate which client gets what. for instance if client a sells houses in new york he will get only the house table rows for new york. if another sells for chicago he will get those instead and etc.
    ->all client apps are offline and sync periodically (when you choose) to the server

Maybe you are looking for