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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. jhammer98

    Invoking sqlplus scripts

    I have noticed a slight difference in the output... the '@' produces 'H -- Hi 'H -- Hi from this script: select 'Hi' from dual; / quit When I ran it with the '<', I got the following: (notice the prompts) SQL> 'H -- Hi SQL> 'H -- Hi I don't see how this could affect the data...
  2. jhammer98

    Invoking sqlplus scripts

    To forewarn you...This is potentially a very stupid question. I'm trying to figure out why things aren't running consistently in one of my batches. While perusing the logs I've only found one difference between the several runs. The script that is producing varying results is called like...
  3. jhammer98

    External table question

    Just to follow-up... I created the directory for the incoming files: CREATE DIRECTORY GWEST_in AS '/faprd_in/SMART/GWEST'; Then I created a seperate directory for the log and bad files: CREATE DIRECTORY EXTTABLOG AS '/cfprd/smart/cmg/exttablog'; Finally I created my external tables using...
  4. jhammer98

    How Can I execute unix command from an oracle procedure

    I found this: http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:16212348050 Hope it helps... ~Jake
  5. jhammer98

    External table question

    So far so good with external tables as long as I use the /tmp directory. Now the problem I'm having is my files are landing on an NFS mount point that the Oracle user does not have access to. I'm pretty sure oracle can read the directory but I'm afraid it cannot write the log and bad files to...
  6. jhammer98

    External table question

    Can anybody think of any disadvantages to external tables? This is the first time I'm working with them and from my experience thus far, this will be the way I do things from now on. TIA, ~Jake
  7. jhammer98

    External table question

    That's my next approach...Thanks Santa! Other that saving on tablespace, what are the advantages to external tables?
  8. jhammer98

    External table question

    Hi all, I have a situation where I have 2 different fixed length flat files coming in that I want to load into a single table. The first file contains half the detail for the record and the second has the other half. Can I use an external table to hold the records if the file layouts differ...
  9. jhammer98

    Updating Cursor records

    The third option will not work because by doing it that way I would have to outer join table B to 3 different tables. The first way that I posted (with the NVL conversions) takes about 1.25 minutes to insert 110,000 records. The cursor method from BJCooper takes a little over 3 minutes for the...
  10. jhammer98

    Updating Cursor records

    Both solutions work, the NVL conversions as well as the cursor method. Now my question is which is better? At first I thought the cursors would be a better implementation because of Oracle's bulk binding capabilities. Then I got to thinking about how declaring an explicit cursor on top of an...
  11. jhammer98

    Updating Cursor records

    Perfect!!! I knew I was on the right track, I just coudn't get it into code like that. Thanks a lot!!!
  12. jhammer98

    Updating Cursor records

    Yes.
  13. jhammer98

    Updating Cursor records

    The problem updating the records in table A is all the 'join information' I need to update the records is in table C. Once I insert data into A I have nothing to join on for the update.
  14. jhammer98

    Updating Cursor records

    Hi, I have a strange situation here. I'm trying to find the most efficient and least 'costly' way to insert records into a table. Currently I am doing an INSERT...SELECT... The new data I want to add will need to be updated before it is inserted ONLY IF the incoming data is null. For...
  15. jhammer98

    Passing parameters from shell script

    ok...it needed some help $SOURCE had to be enclosed by 3 single quotes... execute omni_processing.delete_processed_data('''$SOURCE''','T'); Thanks for reading anyway... ~Jhammer
  16. jhammer98

    Passing parameters from shell script

    Hi, I have created a package containing several procedures. I wish to call them from shell scripts passing unix variables as parameters but I'm not sure if this will work. Does anybody have any experience with something like this? My code follows: ... sqlplus / << EOM set serveroutput on...
  17. jhammer98

    sql plus output

    How about... Set verify off
  18. jhammer98

    sql plus output

    Try set echo off This controls wheather the 'start' command lists each command in a command file as the command is executed. 'On' lists the commands and 'off' supresses the listing.
  19. jhammer98

    Bulk Collect with Cursor

    I think I found the problem... Oracle9i Enterprise Edition Release 9.2.0.1.0 - 64bit Production PL/SQL Release 9.2.0.1.0 - Production CORE 9.2.0.1.0 Production TNS for HPUX: Version 9.2.0.1.0 - Production NLSRTL Version 9.2.0.1.0 - Production
  20. jhammer98

    Bulk Collect with Cursor

    I can't do the insert-select because I am using a group by clause which is hosing the sequence. Here is my code...kinda. I don't want to post it exactly for fear of loosing my lob ;) DECLARE CURSOR seq_cur IS SELECT ... FROM ... WHERE ... GROUP...

Part and Inventory Search

Back
Top