Need help on optimizing an import

Hi,
we run a medium-sized (70.000 items) webshop for a customer, using oracle 9i in the latest version.
Once a month, this customer wants to import the whole items of one supplier. The importfile is splitted up using php and written into an (import-)table. This is done within 5-10minutes.
The import itself should work in this way: new items (=not in item-table, but in importfile) should be inserted in a special table. Items which already exists in the item-tables should be updated and items which are not in the importfile should be set to inactive.
So I do two selects.
The first one joins the import-table with the items-tables, using an outer join at the product code. The pure statement runs ~4,5 seconds to finish.
The second one selects all (active) items of this supplier, also counting how many item variants exists. It's a bit more complex (and not the best SQL, I guess), but it needs ~6,5 seconds to finish.
Ok, this two cursors are called after each other, so no nested selects.
I do the following: Loop through the first cursor, check if item exists (no new query, all done by the cursor-statement). If item exists, the script builds a update-string and execute it, using execute immediate. If items doesn't exist, it will be inserted into a other table.
After this first cursor, I loop through the second cursor and at a special condition, I update the items-table and set the item to inactive. This is done by a normal update-script.
After finishing all of this, I send the commit. On any errors a rollback.
For me, that sounds fine. But: This script runs for 4 hours! I do not understand why. The cursor-statements itself runs for 10-12 seconds (in summary). So even all the updates should be done in ~30minutes. 70.000 records to search through, should be a morning exercise for oracle.
There is a index at the table, but this index should be rebuild after finishing the script, or is this my fault? Is there a implicit commit done after eacg execute immediate statement? Or is there any fault in this workflow, I did not see yet?
Thanks for any help :(

Import/Export support in iFS is planned for 1.2 release. However, Oracle in general don't commit to features of future releases before the actural release.

Similar Messages

  • Need help in optimizing the process

    I need help in optimizing my process. Here is what am I doing:
    I have two tables table A and table B. table A has list of names and table B has name and ID. Right now I am loading name into cursor from table A and for each name from the cursor I try to match with name in table B to get the ID. This process takes very long to complete. I need help to replace PL/SQL with SQL if possible. I am using oracle utl_match to match the best possible record in table B. table B sometimes returns multiple matching records. I take the top nearest match name and ID for my use (there is not always one to one match)
    Any idea or help will be appreciated. Thanks

    always provide create table and sample data instert statements when asking a question. also, provide your database version.
    because you're using utl_match, you can't really use an index, there must be a cartesian join on the two tables so it may always be slow.
    however, here's a sample SQL that you may be able to make use of:
    with n as (select 'KATHERINE' person_name from dual
                 union all
                 select 'STEVE' from dual
                 union all
                 select 'BRUCE' from dual)
        ,nid as (select 'CATHERINE' person_name, 1 NID FROM DUAL
                 union all
                 select 'STEFAN', 2 from dual
                 UNION ALL
                 select 'STEVEN', 2 from dual
                 union all
                 select 'CATHY',3 from dual)
    select n_name, nid
      from (
            select n.person_name N_NAME
                  ,nid.person_name
                  ,nid.nid
                  ,ROW_NUMBER() OVER (partition by n.person_name ORDER BY utl_match.jaro_winkler_similarity(n.person_name,nid.person_name) DESC) jws_ORDER
              from n
              join nid on (utl_match.jaro_winkler_similarity(n.person_name,nid.person_name) > 70)
      where jws_order = 1;    

  • Need help choosing optimal hardware for a laptop that will run AE CS5

    BACKGROUND INFO (Questions listed below)
    I need some help figuring out the best hardware configuration for a new laptop. I’m a student at a design school and I will be using the laptop to mainly run After Effects and to a lesser extent Photoshop and Illustrator. I don’t need to worry about 3D rendering software or Premier Pro. I am primarily interested in getting the best performance during editing. I am not looking for the best performance for final output. I would prefer to sacrifice final output times for better editing/interface performance.
    I will be working with standard definition content and perhaps HD up to 720p on occasion. I do not need to operate in resolutions higher than 720p. My projects are generally animation and use many sources and many layers.
    I’ve been reading up on optimal hardware configurations for CS5 but my understanding is still a little foggy and I would like to use this thread to figure out how to build the best machine for my budget. The budget is about $1400 to $1600 CANADIAN after tax.
    I DON’T need help finding the laptop. I will search for it on my own. I just need to understand the best hardware to purchase within my budget.
    I realize that it is probably impossible to buy the laptop I want with the hardware configuration I need “off the shelf”. Instead I will be looking for a good base model (~$900-$1100) and I will purchase the necessary hardware upgrades separately. I will not be purchasing a Mac.
    Right now I’m thinking of a machine built something like this:
    - 15”-16” screen (17” models are too big/heavy)
    - Mid to high end i5 processor OR entry level i7 quad core
    - 8GB RAM (I would go to 12GB, but it’s hard to find a 15”-16” laptop with 3 memory slots)
    - SSD to replace HDD (However, if possible, I would like a laptop with dual HDD support or swap the optical drive for another HDD. If I had access to 2 drives, I would have and HDD/SSD combo).
    - Medium/high end NVIDIA GPU to take advantage of OpenGL while editing.
    QUESTIONS
    1) Does the “Render Multiple Frames Simultaneously” option enhance general editing performance (applying filters, scrubbing through the timeline, reverting history states)? Or does it ONLY help speed up RAM previews and final output? Does it reduce the length of RAM previews?
    1b) Is this option even necessary to enable on 64bit systems? (As far as I understand it was used to solve a problem where 32bit systems/software would only recognize 4GB of RAM per instance of AE).
    1c) If I turn this option on to help with RAM previews, would I be hindering general editing performance in any way? Or does this option have basically zero drawbacks?
    2) How come “Actual CPUs that will be used” will read 0 even if the sum total of RAM assigned to the CPUs plus the RAM reserved for other applications is less than the total available system RAM (on a 64bit system)? For example, I currently have 4GB RAM and 2 installed CPUs. I have 1.5GB reserved for other programs and when I set 0.75GB per CPU both CPUs are used. However when I set 1GB per CPU then 0 CPUs are used, even though the total RAM adds up to only 3.5GB.
    CPU
    3.) Considering the fact that I am more concerned with smooth performance while editing rather than final output speeds, would it be better to get a dual core i5 clocked around 2.5 or a quad core i7 clocked around 1.8?
    4.) What is the difference between an i3 and an i5 processor even if they are clocked at the same speed? How does an i5 460M compare on the grand scheme of things?
    RAM
    6.) Should the quantity of RAM that I get (8GB vs 12GB) be based on the number of cores in my CPU? If so, how should I be calculating optimal RAM based on # of cores. Should I also be counting threads, or just actual physical cores?
    STORAGE/SWAP
    7.) Should I replace the HDD with an SSD? I'm looking for snappy interface performance while editing. I would think that if the RAM fills up it would be best to have the SSD for scratch/cache.
    8.) What performance benchmarks are most important when considering an SSD for After Effects? (4k writes? IOs per second? Max read/write?)
    9.) I can afford the OCZ Vertex2 120GB SSD. Would this be a good choice if an SSD is recommended?
    10.) Would it be better to have 8GB of RAM and an SSD, or 12GB of RAM and an HDD? Explain why.
    GPU
    10.) After Effects utilizes OpenGL to enhance editing performance. I will not really be using Premier Pro, so catering to the CUDA Mercury Engine is not a concern. Do high end gaming cards provide significant gains in OpenGL performance? Or do OpenGL performance gains taper off around the mid-range GPUs? (i.e. can you justify buying a high end GTX 260M graphics card for enhanced editing performance versus an "entry level" dedicated card like the 310M?)
    11.) What hardware specs are most important when considering a GPU for editing performance in AE? (Memory size? # of Pixel shaders? Core speed? Shader speed?)
    Thanks so much for any answers you can offer to these questions.

    Please make sure that you've read through this page and what it points to.
    > 1) Does the “Render Multiple Frames Simultaneously” option
    enhance general editing performance (applying filters, scrubbing through
    the timeline, reverting history states)? Or does it ONLY help speed up
    RAM previews and final output? Does it reduce the length of RAM
    previews?
    It only increases rendering speed for RAM previews and rendering for final output. In After Effects CS5, it doesn't decrease the length of RAM previews. (In CS4, it does.)
    1b) Is this option even necessary to enable on 64bit
    systems? (As far as I understand it was used to solve a problem where
    32bit systems/software would only recognize 4GB of RAM per instance of
    AE).
    You misunderstood. Yes, it's still relevant on 64-bit computers. Moreso, in a way. (I'd rather not spend my entire Sunday writing out detailed answers to satisfy idle curiosity, so I'm not going to give all the technical detail to that answer.)
    > 1c) If I turn this option on to help with RAM previews,
    would I be hindering general editing performance in any way? Or does
    this option have basically zero drawbacks?
    It takes a small but nonzero time for the background processes to start up when they need to be used and shut down when they're done. And as they sit waiting, they take up a little bit of memory. So, it's not exactly correct to say that there are no downsides to leaving it on. But it's close. I leave it on.
    > 2) How come “Actual CPUs that will be used” will read 0 even
    if the sum total of RAM assigned to the CPUs plus the RAM reserved for
    other applications is less than the total available system RAM (on a
    64bit system)? For example, I currently have 4GB RAM and 2 installed
    CPUs. I have 1.5GB reserved for other programs and when I set 0.75GB per
    CPU both CPUs are used. However when I set 1GB per CPU then 0 CPUs are
    used, even though the total RAM adds up to only 3.5GB.
    4GB - 1.5GB for other software leaves 2.5 GB for After Effects.
    If you have 1GB assigned per background CPU, then the foreground takes 1.2x that = 1.2GB. That leaves 1.3GB for background processes, which is enough for one background process. There's no point in starting only one background process to do rendering, so it doesn't bother. (Note: When background processes are rendering, the foreground process isn't rendering.)
    > 3.) Considering the fact that I am more concerned with
    smooth performance while editing rather than final output speeds, would
    it be better to get a dual core i5 clocked around 2.5 or a quad core i7
    clocked around 1.8?
    Get the quad-core. That gives you a greater total number of cycles. And After Effects works very well with mutliple processors, even beyond Render Multiple Frames Simultaneously multiprocessing. An entirely unrelated sort of multiprocessing (multithreading) spreads work out to multiple processors.
    > 6.) Should the quantity of RAM that I get (8GB vs 12GB) be based on the number of cores in my CPU? If
    so, how should I be calculating optimal RAM based on # of cores. Should
    I also be counting threads, or just actual physical cores?
    The optimum amount is the amount that you can cram into the computer. I'm not kidding. Spend your budget on RAM until you have 4GB installed per processor (and I'm counting the virtual processors due to hyperthreading). If you have a quad-core, that's 8 CPUs with hyperthreading, so the optimum amount of RAM installed is 32GB. You can work with less, but you did ask about optimum. For HD work (i.e., 1920 pixels across), you're OK with more like 3GB installed per CPU. That's what I have at home: 24GB in a quad-core. You're going to assign 2/3 or so of the RAM to After Effects, so 3GB installed per CPU is 2GB per core for HD work in After Effects.
    > 10.) Would it be better to have 8GB of RAM and an SSD, or 12GB of RAM and an HDD? Explain why.
    12GB of RAM. Because After Effects likes RAM. (If you're thinking of deliberatly using virtual memory to swap memory to the hard disk, don't. That's a performance killer.)
    > 10.) After Effects utilizes OpenGL to enhance editing performance.
    Not really. If you're on a limited budget, don't even think about the GPU until you've already got the most RAM, the fastest CPUs, the largest number of CPUs, two fast hard disks, and a couple of good monitors. Then, and only then, should you even consider getting soemthing beyond a non-stock graphics card. Yes, OpenGL can be used to accelerate some things, but that's only for the low-fidelity preview renderer. (Pardon the bluntness, but I want to make sure that you heed this.)

  • NEED HELP FAST!! Importing stills into FCP 6

    Hello everyone,
    I have tried searching for a bit, but time is of the absolute essence. I am down to the wire on a project, and need to do some finishing things.
    What I need to do is to import still images (from DSLR) into an HD timeline. I am working in an HDV 1080i60 sequence at 29.97 fps. Here is what I am doing...
    - Import the particular image
    - Everything looks fine in the viewer when I double click on it
    - When I take it to the timeline though and open it in the canvas, it looks like absolute sh**. The colors look fine I suppose, but it looks incredibly pixelated.
    I have tried exporting the video, thinking that it might just be in the canvas, but that didn't fix anything.
    So, it is not a problem with rendering, as some have said where I have searched... It could be a problem with size, but I am not sure.
    If anyone knows anything, please post in here or PM me asap. Thank you for your help in advance.
    Cheers,
    Ryan

    When you load an image or clip from the Browser into the Viewer, it is displayed at it's native resolution. But once you place it in the Timeline, it displays at the FCP Sequence resolution. Also note that the image will need to be rendered FULLY before viewing. Go to the Sequence->Render menus and make sure all render types are checked ... especially FULL.
    Also keep in mind that FCP's Canvas window only shows a proxy of full quality.
    -DH

  • Need help in optimizing the ABAP code

    Hi,
    Can anyone help me in optimizing the code. Here the select statement has select within the loop. Need help in optimization.
    WHEN '0CO_PC_PCP_03'.
    LOOP AT C_T_DATA INTO TBL_KKBW_ITEM.
          W_TABIX = SY-TABIX.
          IF TBL_KKBW_ITEM-CURRENCY_TYPE EQ '20'.
    SELECT SINGLE KALNR KALKA KADKY TVERS KADAT KOKRS INTO (W_KALNR, W_KALKA, W_KADKY, W_TVERS,  
                    TBL_KKBW_ITEM-COSTING_DATE,
                    TBL_KKBW_ITEM-CONTROLLING_AREA)           
                    FROM KEKO                                  
                       WHERE KLVAR EQ TBL_KKBW_ITEM-COSTING_VARIANT                              
                        AND  KADKY EQ TBL_KKBW_ITEM-COSTING_DATE
                        AND  TVERS EQ TBL_KKBW_ITEM-COSTING_VERSION                           
                        AND  MATNR EQ TBL_KKBW_ITEM-HEADER_MATERIAL                             
                        AND  WERKS EQ TBL_KKBW_ITEM-HEADER_PLANT.
               IF SY-SUBRC EQ 0.                                
              SELECT SINGLE KOSTL INTO TBL_KKBW_ITEM-COST_CENTER
                              FROM CKIS WHERE KOSTL NE SPACE   
                                         AND  KALNR EQ W_KALNR 
                                         AND  KALKA EQ W_KALKA 
                                         AND  KADKY EQ W_KADKY 
                                         AND  TVERS EQ W_TVERS.
              IF SY-SUBRC NE 0.                                
                CLEAR TBL_KKBW_ITEM-COST_CENTER.               
              ENDIF.                                           
            ENDIF.                                             
            MODIFY C_T_DATA FROM TBL_KKBW_ITEM INDEX W_TABIX.
          ELSE.
            DELETE C_T_DATA INDEX W_TABIX.
          ENDIF.
        ENDLOOP.
    Thanks,
    Rani.

    hi
    plz use the below code :
    WHEN '0CO_PC_PCP_03'.
    SELECT  KALNR KALKA KADKY TVERS KADAT KOKRS INTO it_keko "declare internal table with the mentioned fields
    " also select the fields to be used in where condition
    FROM KEKO
    for all entries in c_t_data
    WHERE KLVAR EQ c_t_data-COSTING_VARIANT
    AND KADKY EQ c_t_data-COSTING_DATE
    AND TVERS EQ c_t_data-COSTING_VERSION
    AND MATNR EQ c_t_data-HEADER_MATERIAL
    AND WERKS EQ c_t_data-HEADER_PLANT.
    "sort the tables on the fields used in where.
    IF SY-SUBRC EQ 0.
    SELECT  KOSTL "and other fields to be used in where
    INTO it _ckis
    FROM CKIS
    for all entries in c_t_data
    WHERE KOSTL NE SPACE "use c_t_data
    AND KALNR EQ W_KALNR
    AND KALKA EQ W_KALKA
    AND KADKY EQ W_KADKY
    AND TVERS EQ W_TVERS.
    IF SY-SUBRC NE 0.
    CLEAR TBL_KKBW_ITEM-COST_CENTER.
    ENDIF.
    it_data[] = c_t_data. "declare it_data same as the extract structure
    delete it_data where CURRENCY_TYPE  NE '20'.
    LOOP AT it_data assigning <fs_data>. "use field symbols
    read from it_keko into wa_keko
    where
    KLVAR EQ <fs_data>-COSTING_VARIANT
    AND KADKY EQ <fs_data>-COSTING_DATE
    AND TVERS EQ <fs_data>-COSTING_VERSION
    AND MATNR EQ <fs_data>-HEADER_MATERIAL
    AND WERKS EQ<fs_data>-HEADER_PLANT
    binary search.
    if sy_subrc = 0.
    similarly read from the second itab
    ENDIF.
    ENDLOOP.
    c_t_data[] = it_data[].
    Pls let me know in case of any issues
    Regards,
    Aparna
    Edited by: Aparna KS on Jun 13, 2010 11:01 PM

  • Need help with optimizing text appearance when exporting video

    Here's what I'm trying to do:
    1. Convert a Powerpoint presentation to an MP4 (AVC) file, frame rate 30 (actually defaults to 29.97) and video bit rate of 1200kbps,using Wondershare PPT2VideoPro.  (There are no actual video clips contained in the original PPT file).
    2. Import the newly created MP4 video into a new project in Premeire Elements.
    3. Add audio files (WAV) created by Audacity.
    4. Export the final product as a video.
    Here's the problem:
    The text quality in the final exported film is very poor, and the screen occasionally seems to sublty flicker once and a while.  I've tried multiple different settings, but all with the same result.
    Can anyone offer suggestions on optimal settings for exporting the final product such that the text is as clear as possible?  (The text in the MP4 file created by Wondershare looks great.)
    Thanks!
    - Ernest

    One option would be to create the Text Images in Photoshop, and Save_As a PSD.
    For large sets of Titles, I do the text portion in Word/WordPerfect, so I can use Spell-Check. Then in PS, I just Copy/Paste the text into an Image, where I apply all of the PS Styles that I need. Because I use PrPro for most of my NLE work, I will often do the Titles with Layered Text, and Import those as a Sequence, so that the Layers are not Flattened. This allows me to independently animate each Layer, as I need. Unfortunately, PrE does not allow one to Import the Layered PSD's, Unflattened, as it does not have Sequences.
    Also note that PrE's Titler's Styles are just a starting point. Once applied, one can alter most aspects, and when they are satisfied with the changes, they can then Save the new Style and re-use it over and over. Do not forget the ability to modify those Styles.
    From PowerPoint, and this depends on the version, the best that one can usually do is to Export each "slide" as a TIFF, and Import those into the NLE program.
    Good luck,
    Hunt

  • Need help for school! Imported images suddenly pixelated (CS6, Windows)

    Hi guys,
    Adobe InDesign CS6 Windows I'm a frequent user of InDesign, but I now suddenly am facing problems. Note: I use InDesign not only for print material, but also for creating PDF. I therefore do not necessarily need 300 dpi. Before: copy + paste from Photoshop or even web images into InDesign used to work. The images looked fine on screen and while printing. Now, when I import or copy + paste, all images look pixelated at 100%, high quality and overprint preview. It looks like InDesign is importing images 25% larger than their original size. If I resize the imported image to 75%, the image looks normal. 100% is always pixelated now! Did I mess up some sort op setting? I never had this problem before. Please help me, need this for school assignment!
    Thanks in advance,
    Justin

    First of all, thank you for your reply. I just checked an example image and both are 72 dpi, in InDesign as well as in Photoshop. I even created a document for web in InDesign, using the 'web' & digital publishing option (which is 72 dpi) and placed the same image. At 100% pixelated, when resizing to 75% crisp. I don't know what to do..
    The thing is.. I've never had this problem for years.. with importing images. Did I change settings or?
    First one is Photoshop, second in InDesign (top left is import at 100%, bottom right is import resized to 75%). In case images are too small to see, full size: http://justinwust.com/photoshop.jpg & http://justinwust.com/indesign.jpg

  • Needed help in: how to import image in InDesign Server using Java Code

    New to InDesign Server.
    I am not been able to import image to document.
    I tried to import image using the sample snippets "PlaceTextFileInFrame.java".
    modified the line:
    String placefilepath = "C:\\placeFile.txt";
    to
    String placefilepath = "C:\\Image.jpg";
    myTextFrame.place(placefilepath);
    Is this the correct way to import image or there is another solution.
    1.The image gets imported but i am getting blur image(Zoomed image).
    2.The image gets imported to its original image width & height.
    3.I need to know how to set the image width & size.

    My Requirement is-- I ve to connect to msn search page in order retrieve the result set from msn search. The same code which I do pasted below is working for GOOGLE n YAHOO with minor changes.But not for MSN.., Can any one help me.
    I've pasted the code for msn..,
    import java.io.*;
    import java.net.*;
    public class File {
    public static void main(String[] args) throws IOException {
    Socket s = new Socket("search.live.com", 80);
    String query = "java";
    PrintStream p = new PrintStream(s.getOutputStream());
    p.print("GET /results.aspx?q=" + query);
    p.print("User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0\r\n");
    p.print("Connection: close\r\n\r\n");
    InputStreamReader in = new InputStreamReader(s.getInputStream());
    BufferedReader buffer = new BufferedReader(in);
    String line;
    while ((line = buffer.readLine()) != null) {
    System.out.println(line);
    Edited by: Lijo_Java on Jul 13, 2008 9:03 PM

  • Need help in optimizing the query with joins and group by clause

    I am having problem in executing the query below.. it is taking lot of time. To simplify, I have added the two tables FILE_STATUS = stores the file load details and COMM table that is actual business commission table showing records successfully processed and which records were transmitted to other system. Records with status = T is trasnmitted to other system and traansactions with P is pending.
    CREATE TABLE FILE_STATUS
    (FILE_ID VARCHAR2(14),
    FILE_NAME VARCHAR2(20),
    CARR_CD VARCHAR2(5),
    TOT_REC NUMBER,
    TOT_SUCC NUMBER);
    CREATE TABLE COMM
    (SRC_FILE_ID VARCHAR2(14),
    REC_ID NUMBER,
    STATUS CHAR(1));
    INSERT INTO FILE_STATUS VALUES ('12345678', 'CM_LIBM.TXT', 'LIBM', 5, 4);
    INSERT INTO FILE_STATUS VALUES ('12345679', 'CM_HIPNT.TXT', 'HIPNT', 4, 0);
    INSERT INTO COMM VALUES ('12345678', 1, 'T');
    INSERT INTO COMM VALUES ('12345678', 3, 'T');
    INSERT INTO COMM VALUES ('12345678', 4, 'P');
    INSERT INTO COMM VALUES ('12345678', 5, 'P');
    COMMIT;Here is the query that I wrote to give me the details of the file that has been loaded into the system. It reads the file status and commission table to show file name, total records loaded, total records successfully loaded to the commission table and number of records that has been finally transmitted (status=T) to other systems.
    SELECT
        FS.CARR_CD
        ,FS.FILE_NAME
        ,FS.FILE_ID
        ,FS.TOT_REC
        ,FS.TOT_SUCC
        ,NVL(C.TOT_TRANS, 0) TOT_TRANS
    FROM FILE_STATUS FS
    LEFT JOIN
        SELECT SRC_FILE_ID, COUNT(*) TOT_TRANS
        FROM COMM
        WHERE STATUS = 'T'
        GROUP BY SRC_FILE_ID
    ) C ON C.SRC_FILE_ID = FS.FILE_ID
    WHERE FILE_ID = '12345678';In production this query has more joins and is taking lot of time to process.. the main culprit for me is the join on COMM table to get the count of number of transactions transmitted. Please can you give me tips to optimize this query to get results faster? Do I need to remove group and use partition or something else. Please help!

    I get 2 rows if I use my query with your new criteria. Did you commit the record if you are using a second connection to query? Did you remove the criteria for file_id?
    select carr_cd, file_name, file_id, tot_rec, tot_succ, tot_trans
      from (select fs.carr_cd,
                   fs.file_name,
                   fs.file_id,
                   fs.tot_rec,
                   fs.tot_succ,
                   count(case
                            when c.status = 'T' then
                             1
                            else
                             null
                          end) over(partition by c.src_file_id) tot_trans,
                   row_number() over(partition by c.src_file_id order by null) rn
              from file_status fs
              left join comm c
                on c.src_file_id = fs.file_id
             where carr_cd = 'LIBM')
    where rn = 1;
    CARR_CD FILE_NAME            FILE_ID           TOT_REC   TOT_SUCC  TOT_TRANS
    LIBM    CM_LIBM.TXT          12345678                5          4          2
    LIBM    CM_LIBM.TXT          12345677               10          0          0Using RANK can potentially produce multiple rows to be returned though your data may prevent this. ROW_NUMBER will always prevent duplicates. The ordering of the analytical function is irrelevant in your query if you use ROW_NUMBER. You can remove the outermost query and inspect the data returned by the inner query;
    select fs.carr_cd,
           fs.file_name,
           fs.file_id,
           fs.tot_rec,
           fs.tot_succ,
           count(case
                    when c.status = 'T' then
                     1
                    else
                     null
                  end) over(partition by c.src_file_id) tot_trans,
           row_number() over(partition by c.src_file_id order by null) rn
    from file_status fs
    left join comm c
    on c.src_file_id = fs.file_id
    where carr_cd = 'LIBM';
    CARR_CD FILE_NAME            FILE_ID           TOT_REC   TOT_SUCC  TOT_TRANS         RN
    LIBM    CM_LIBM.TXT          12345678                5          4          2          1
    LIBM    CM_LIBM.TXT          12345678                5          4          2          2
    LIBM    CM_LIBM.TXT          12345678                5          4          2          3
    LIBM    CM_LIBM.TXT          12345678                5          4          2          4
    LIBM    CM_LIBM.TXT          12345677               10          0          0          1

  • Need help with automating text import/pasting/macro between Photoshop and Excel

    Hey everyone,
    I'm working on a large project now that seems extremely daunting, but I was hoping there would be some way to automate it using either Actions or some sort of macro program.  Here's the gist:
    I've created a template with 24 differently sized text boxes in the photoshop image file.  Each text feild has unique text that needs to be be pasted into it, which has been compiled in excel.  This wouldn't be too dificult to do, except I have to recreate this image and all 24 text fields aproximately 350 times.  None of the text boxes will remain static through all 350 images as text is the title, description, and demographic ratings/percentages/data for the topic of each image.  I did something similar manually last year and it took me about 3, non-stop 18 hour days to complete it.
    (the test template)
    Can anyone think of any way I could automate this process?  I'm thinking some sort of macro that copies cell 1 in excel, switches to photoshop, opens layer 1, pastes, switches back to excel, goes to cell 2, copies, back to photoshop, layer 2, pastes, etc, etc, then does a 'save as' in photoshop and revets to PS layer 1, EX cell 1 (on tab 2) to start the process all over again.  I have no idea if this would work or if there is another way to do this but I would really appreciate any help or advice you guys could give.  I don't have really any expreience using PS Actions or macro programs/scripts, so I may be over my head or overlooking a really simple way to do this.  If there's a way to do it, I'm persistent enough to figure it out and get it working. Doesn't really matter how it gets done, I just need to fill those text boxes as best as I can and as quickly as I can.
    Any help you all could give is really appreciated.

    Have you read up on the Variables support in Photoshop?

  • I Need Help!!! Importing with Error Code -50

    My Itunes has been working fine but when i opened it today it said my library was damaged and it saved what it could but when i tried to import the list back in it came up with "The file _____ cannot be imported An unknown error has occured -50" I read about how Mcafee might mess it up and i have aol security stuff that is powered by mcafee but i can't figure out what to do? Someone please help!!!!

    My Itunes has been working fine but when i opened it today it said my library was damaged and it saved what it could but when i tried to import the list back in it came up with "The file _____ cannot be imported An unknown error has occured -50" I read about how Mcafee might mess it up and i have aol security stuff that is powered by mcafee but i can't figure out what to do? Someone please help!!!!

  • Need help on doing full import but expluding SYSTEM tables like REPCAT$%

    Hi!
    I am using impdp and want to do a full import of the source database but exclude tables (and dependent objects like indexes, etc.) owned by the SYSTEM user like REPCAT$%, AQ$%, etc. Have tried several things with no success. Need a working example if at all possible.
    Thanks in advance!
    Dave Venus

    By default, the table_exists_action is skip, so if the tables existed, they would be skipped anyway. No harm would be done to the database that was being imported into. I was just trying to answer his question, not try to guess if that is what he really wanted to do. Your response would certainly skip the complete schema, but I wasn't sure if that is what he wanted to do or not. He said that he only had certain tables that he wanted to skip. In his follow up question, he asked about skipping tables with the same name in different schemas, so I didn't want to read into his question any more than what was asked.
    Dean

  • Need help on ifs export/import

    What is the best way to deliver an ifs database to a customer site where we do not have the ability to access our development machine? This delivery must take place via CD. In the past, we have delivered by exporting/importing.
    It is my understanding that export/import is not an option with ifs?? I read in another post that this will be addressed in a future release. Any ideas on what release and when?
    Any help will be greatly appreciated.

    Import/Export support in iFS is planned for 1.2 release. However, Oracle in general don't commit to features of future releases before the actural release.

  • Need help- some songs will import as tracks  some wont

    Im doing a cut and splice project for a dance program for a friend. almost completed, ive imported all her songs and have cut the proper portions of the songs she wants and heave re exported to itunes. Perfect. But there are three tracks i that wont convert in garage band. i dont see anything different about their format. just mp3 files, Im not doing anything different from the other tracks. Help Pleez

    If they are not songs purchased for the iTunes music store (which as Scott said, are copy protexted), then use the Never-Fail™ method to convert them:
    http://www.thehangtime.com/gb/gbfaq2.html#convertmp3s
    --HangTime [Will Compute for Food] B-|>

  • Need help adjusting audio on imported video and/or cpvc to cptx presentation

    I inserted a video into my cptx presentation that I created using captivate but the audio was too low. I went back into the cpvc (captivate video demo recording) and increased the volume and republished it and imported it again. However the sound will not increase and is still low. Can someone help me figure out how to increase the volume within the cptx or how to make the cptx recognize the updated volume that was increased? Really running into brick walls on this one...    
    Appreciate any help that someone can provide.

    Is it AVCHD, Mini-DV, or DVD?  What format does the camera record to?

Maybe you are looking for

  • Error when using oracle.j2ee.ws.StatelessJavaRpcWebService as ws wrapper

    I have a problem when using Oracle oracle.j2ee.ws.StatelessJavaRpcWebService as a web service wrapper. I get the exception below in the server.log: java.lang.IllegalStateException: Data has already been written to the OutputStream      at com.evermin

  • According to my computer firefox is running however I cannot open it

    I have been using firefox for years, I now also use internet explorer, when I try to open firefox it does not open. I tried to uninstall so I could reinstall but it says I must close firefox. All of my bookmarks are very important to me on the firefo

  • InfoPath for layout recommendations?

    I have started a new form for client tracking which has some basic columns, eg client name, address, client type, etc. This is all looking fine. My question is, we currently have 2 paper forms that are just checklists, Yes/No/NA with numerous questio

  • How to speed up this query?

    I have created a demo table: create table demo1(d date); and insert some data to table: begin -- add 6000000 rows for i in 1..1000000 loop insert into demo1 values(trunc(sysdate-i)); insert into demo1 values(trunc(sysdate-i)); insert into demo1 value

  • Can the summary report show the actual data in spreadsheet form?

    We have several forms that we are collecting data from and are trying to find an easy way to analyze all of the data. The summary report just shows percentages of who filled out the forms. I would like to see the actual data from the forms.