Question : Oracle Enterprise Manager -- Scheduled TEXT file ?

How can I get the below to
extract the attached fixed_width.txt
to \\temp\export via an Oracle Enterprise Manager
nightly scheduled job ?

select  distinct spt.catalog_no,
        substr(spt.catalog_desc,1,20) description,
        spt.sales_unit_meas
from sales_part_tab spt
where spt.part_no like '74459%'
Attachments:

Answer : Oracle Enterprise Manager -- Scheduled TEXT file ?

As in your other Q, you could do some optimizing by stopping the iteration when you encounter a distance that is larger than the one we're checking for (since no equal one will follow from then), e.g.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
size_t printAllEqual(const vector<StudentAttempt>& v, const StudentAttempt& sa, stringstream& ss ) {

  vector<StudentAttempt>::const_iterator i = v.begin();
  size_t sz = 0;
  bool bFirst = true;

  while (i != v.end()) {

    if(isDistEqual(*i,sa)) {
    
      if (!bFirst) ss << ',';
      ss << i->studentName;
      ++sz;

      // we can stop here when encountering distances
      // larger than the one we're since the vector is
      // sorted in ascending order (if not, this would cause errors)
      // Higher distances will never equal ours
      if (i->distance > sa.distance) break;
    }

    ++i; 
    bFirst = false;
  }

  return sz;
}
Random Solutions  
 
programming4us programming4us