Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by kevina555

  1. kevina555

    Trigger with SQL Loader

    Hi All, I have a Normalization situation. I have denormalized data in the incoming flat file and has to be normalized into the target, while generating PK as well. But SQL Loader only allows us to create a sequence. Can I use a trigger to tell SQL Loader that if (field x in the record just...
  2. kevina555

    DECODE in SQL LDR control file

    Hi LKBrwnDBA, I've written a before insert trigger, but something seems to be wrong wit this, 'coz I get the PLS 00103 error everytime I try to run this. CREATE OR REPLACE TRIGGER IDMAP BEFORE INSERT ON fcBalances FOR EACH ROW BEGIN IF :NEW.ACCOUNTID = 11777 THEN...
  3. kevina555

    DECODE in SQL LDR control file

    Hi LKBrwnDBA, Thank you for the clarification. I was hoping this would be possible. But the problem now is that I have a list of about 50 values to be decoded (into 50 others obviously) and when I give all these 100 in the proper format, I receive the SQLLDR 350 error which says that the 'max...
  4. kevina555

    DECODE in SQL LDR control file

    Hi, I need to decode an incoming value from the delimited file and insert the decoded value into the target table. For this, I was wondering if I could write a "decode" in the control file itself or if I have to use a Before Insert Row level trigger........ Thank you.
  5. kevina555

    ORA 01858 error in SQL Loader

    Hi Mufasa, I apologize, this is my first time here and don't know the customs. Thank for the suggestion. I followed it. LKBrwnDBA, Thank you for the great help.....Many tahnks with all my heart(I donno about the stars and all, but you very well deserve a real one). You are a lifesaver...
  6. kevina555

    ORA 01858 error in SQL Loader

    Hi LKBrwnDBA, KUDOS TO YOU!!!!! Although your solution did not work for me, it did trigger a thought (declaring the sequence at the end of the regular INFILE fields and giving a filler in its original place) and it worked splendid. Although I said that I followed all your suggestions, I...
  7. kevina555

    ORA 01858 error in SQL Loader

    Hi LkBrwnDBA, Thank you for your suggestions. I have followed all in writing the control files. But still.....I think I'm out of luck on this.....Thanks anyways. I really appreciate all your effort. Thank you
  8. kevina555

    ORA 01858 error in SQL Loader

    I'm extremely sorry for not mentioning this in the same message, but the INFILE I sent you appears only 5 fields because I sent you only the ones surrounding STMTDATE. Here's my ugly scenario: In fact, there are a total of 41 fields in the INFILE that need to be transferred to 9 different...
  9. kevina555

    ORA 01858 error in SQL Loader

    When I look at the DB through TOAD, I get "MM/DD/YYYY hh24:mi:ss" When I query the same Db through SQLPlus, I get "DD-MON-YY" format results. Now, I understand that the DB has a default format of DD-MON-YY for any column declared as a DATE variable, but I seem to be too confused with this...
  10. kevina555

    ORA 01858 error in SQL Loader

    Thank you for the info.....I did not have any value under the nls_lang parameter box in the registry for hkey\localmachine\software\oracle so, I added AMERICAN_AMERICA.WEISO8859P1 as the value. Also, the nls_lang value for hkey\localmachine\software\oracle\homeo had a different value. I...
  11. kevina555

    ORA 01858 error in SQL Loader

    Hi LKBrwnDBA, I have already posted my control file. Anyways, here it is again..... LOAD DATA INFILE 'c:\ARKfeed0225.txt' BADFILE 'c:\ARKfeedStmt0224.bad' DISCARDFILE 'c:\ARKfeedStmt0224.dsc' APPEND INTO TABLE fcSTATEMENTS FIELDS TERMINATED BY "~"...
  12. kevina555

    ORA 01858 error in SQL Loader

    Hi LkBrwnDBA, Thank you for the suggestion. I really appreciate the response. I have tried using the TimeStamp definition previously and even now, after your suggestion. I get the error Record 1: Rejected - Error on table FCSTATEMENTS, column STMTDATE. ORA-01843: not a valid month even...
  13. kevina555

    ORA 01858 error in SQL Loader

    Hi All, I'm a new subscriber to this forum, but have been a great admirer and regular visitor. Very Informative. I've now run into a problem while using SQL Loader. I've used this in the past, but never had suchan irritating issue. I'm trying to load a delimited file into Oracle using...

Part and Inventory Search

Back
Top