One all null row is always in discard file of sqlldr

Hi All,
My DB is 11.1.
I used spool to generate a formatted flat data and load it to oracle with sqlldr. I found everything was fine except that the discard file was always generated.
Its content is ~~~, which is line seperator specified in control file.
But before loading, I cleansed the data with the following command and it seems that the empty line should be in the data file any more.
sed '/^ *$/d' S_PROD_INT_PLC_BK_LEON.dat > S_PROD_INT_PLC_BK_LEON.dat1
mv S_PROD_INT_PLC_BK_LEON.dat1 S_PROD_INT_PLC_BK_LEON.dat
sed '/^~~~$/d' S_PROD_INT_PLC_BK_LEON.dat > S_PROD_INT_PLC_BK_LEON.dat1
mv S_PROD_INT_PLC_BK_LEON.dat1 S_PROD_INT_PLC_BK_LEON.dat
Could anyone give me some ideas on this?
Best regards,
Leon

Hi Kim Berg Hansen
Thank you for your reply. Besides the patterns in sed, I aslo greped the'grep '^ *~~~ *$' S_SRC_PLC_BK_LEON.dat' but no row returned.
Actually the file was generated by myself, and I think the '~~~' can only be in the last of one line.
The sample spool file looks like:
SET term OFF
SET heading OFF
SET feedback OFF
SET echo OFF
set linesize 32767
set trimspool on
SET NEWPAGE NONE
spool /home/bs7822/leon/S_SRC_PLC_BK_LEON.dat
alter session set nls_date_format = 'yyyymmdd hh24:mi:ss';
SELECT
ROW_ID||'|'||
SRC_NUM||'|'||
SUB_TYPE||'|'||
X_VISIT_SS_OVER||'~~~' FROM S_SRC_PLC_BK
where rownum<=500;
spool offYou say
Or perhaps it is on the last line and maybe missing the EOL?I checked the file with vi editor. When I used shift+G, I got to the last line of data that is not empty.
Best regards,
Leon

Similar Messages

  • How to show all the rows of a report in one page

    My report has 30 rows, by default it just show 15 rows. I want to show all the rows just in one page, without cliking link or arrow to see the left.
    In the Layout and Pagination:
    Report Template: template: 15. Standard Report (PPR)
    Pagination Scheme: Row Ranges X to Y (no pagination)
    Display Position: Bottom - Right
    Number of Rows: 1000
    Number of Rows (item) 1000
    Maximum Row Count: 1000
    How to fix it?
    Thanks.
    Jen

    Ok, I think I got it. I needed to blank out Number of Rows(item), Maximum row count and only populate Number of Rows. I was sure I did that before and it didnt work.
    Do you think that the Sessions in Apex can cause unexpected results? I have found that when I make changes I have to log all the way out of Apex, close my browser and reopen everything to ensure that my change took. Does anyone else have this issue? I can move this into a different thread if need be.
    Thx!

  • Writing all the rows in one line but cannot write more than 32767 character

    Dear All,
    i am trying to write the column of a table to a file with the '||' seperators. i want to write all the rows in one line of the file.
    for E.g
    Column1 Column2
    A B
    C D
    in the file the output needs to be gone like
    A||B||C||D
    but after 32767 character it gives a write error. could please someone let me know what is wrong with my function below or how can i write more than 32767 character in one one.
    CREATE OR REPLACE FUNCTION CORP_IB_DUMP_FILE (
    P_QUERY IN VARCHAR2,
    P_SEPARATOR IN VARCHAR2 DEFAULT '',
    P_DIR IN VARCHAR2,
    P_FILENAME IN VARCHAR2
    RETURN NUMBER AUTHID CURRENT_USER
    IS
    L_OUTPUT UTL_FILE.FILE_TYPE;
    L_THECURSOR INTEGER DEFAULT DBMS_SQL.OPEN_CURSOR;
    L_THECURSOR2 INTEGER DEFAULT DBMS_SQL.OPEN_CURSOR;
    L_COLUMNVALUE VARCHAR2 (4000);
    L_STATUS INTEGER;
    L_COLCNT NUMBER DEFAULT 0;
    L_SEPARATOR VARCHAR2 (10) DEFAULT '';
    L_CNT NUMBER DEFAULT 0;
    BEGIN
    L_OUTPUT := UTL_FILE.FOPEN (P_DIR, P_FILENAME, 'w', 32767);
    DBMS_SQL.PARSE (L_THECURSOR, P_QUERY, DBMS_SQL.NATIVE);
    FOR I IN 1 .. 255
    LOOP
    BEGIN
    DBMS_SQL.DEFINE_COLUMN (L_THECURSOR, I, L_COLUMNVALUE, 4000);
    L_COLCNT := I;
    EXCEPTION
    WHEN OTHERS
    THEN
    IF (SQLCODE = -1007)
    THEN
    EXIT;
    ELSE
    RAISE;
    END IF;
    END;
    END LOOP;
    DBMS_SQL.DEFINE_COLUMN (L_THECURSOR, 1, L_COLUMNVALUE, 4000);
    L_STATUS := DBMS_SQL.EXECUTE (L_THECURSOR);
    LOOP
    EXIT WHEN (DBMS_SQL.FETCH_ROWS (L_THECURSOR) <= 0);
    L_SEPARATOR := '';
    FOR I IN 1 .. L_COLCNT
    LOOP
    DBMS_SQL.COLUMN_VALUE (L_THECURSOR, I, L_COLUMNVALUE);
    UTL_FILE.PUT (L_OUTPUT, L_SEPARATOR || L_COLUMNVALUE);
    L_SEPARATOR := P_SEPARATOR;
    UTL_FILE.FFLUSH (L_OUTPUT);
    END LOOP;
    UTL_FILE.FFLUSH (L_OUTPUT);
    L_CNT := L_CNT + 1;
    END LOOP;
    DBMS_SQL.CLOSE_CURSOR (L_THECURSOR);
    UTL_FILE.FCLOSE (L_OUTPUT);
    RETURN L_CNT;
    END CORP_IB_DUMP_FILE;
    /

    user577300 wrote:
    Dear All,
    i am trying to write the column of a table to a file with the '||' seperators. i want to write all the rows in one line of the file.
    for E.g
    Column1 Column2
    A B
    C D
    in the file the output needs to be gone like
    A||B||C||D
    but after 32767 character it gives a write error. could please someone let me know what is wrong with my function below or how can i write more than 32767 character in one one.
    CREATE OR REPLACE FUNCTION CORP_IB_DUMP_FILE (
    P_QUERY IN VARCHAR2,
    P_SEPARATOR IN VARCHAR2 DEFAULT '',
    P_DIR IN VARCHAR2,
    P_FILENAME IN VARCHAR2
    RETURN NUMBER AUTHID CURRENT_USER
    IS
    L_OUTPUT UTL_FILE.FILE_TYPE;
    L_THECURSOR INTEGER DEFAULT DBMS_SQL.OPEN_CURSOR;
    L_THECURSOR2 INTEGER DEFAULT DBMS_SQL.OPEN_CURSOR;
    L_COLUMNVALUE VARCHAR2 (4000);
    L_STATUS INTEGER;
    L_COLCNT NUMBER DEFAULT 0;
    L_SEPARATOR VARCHAR2 (10) DEFAULT '';
    L_CNT NUMBER DEFAULT 0;
    BEGIN
    L_OUTPUT := UTL_FILE.FOPEN (P_DIR, P_FILENAME, 'w', 32767);
    DBMS_SQL.PARSE (L_THECURSOR, P_QUERY, DBMS_SQL.NATIVE);
    FOR I IN 1 .. 255
    LOOP
    BEGIN
    DBMS_SQL.DEFINE_COLUMN (L_THECURSOR, I, L_COLUMNVALUE, 4000);
    L_COLCNT := I;
    EXCEPTION
    WHEN OTHERS
    THEN
    IF (SQLCODE = -1007)
    THEN
    EXIT;
    ELSE
    RAISE;
    END IF;
    END;
    END LOOP;
    DBMS_SQL.DEFINE_COLUMN (L_THECURSOR, 1, L_COLUMNVALUE, 4000);
    L_STATUS := DBMS_SQL.EXECUTE (L_THECURSOR);
    LOOP
    EXIT WHEN (DBMS_SQL.FETCH_ROWS (L_THECURSOR) <= 0);
    L_SEPARATOR := '';
    FOR I IN 1 .. L_COLCNT
    LOOP
    DBMS_SQL.COLUMN_VALUE (L_THECURSOR, I, L_COLUMNVALUE);
    UTL_FILE.PUT (L_OUTPUT, L_SEPARATOR || L_COLUMNVALUE);
    L_SEPARATOR := P_SEPARATOR;
    UTL_FILE.FFLUSH (L_OUTPUT);
    END LOOP;
    UTL_FILE.FFLUSH (L_OUTPUT);
    L_CNT := L_CNT + 1;
    END LOOP;
    DBMS_SQL.CLOSE_CURSOR (L_THECURSOR);
    UTL_FILE.FCLOSE (L_OUTPUT);
    RETURN L_CNT;
    END CORP_IB_DUMP_FILE;
    /Check your logic very carefully. You are using UTL_FILE.PUT() which should not automatically put end-of-line characters i n your file but you are reassigning l_seperator with p_seprator after the first time.
    What value are you pasising in as p_seperator?
    UTL_FILE.PUT() should allow you to write a string of bytes without newlines as long as its arguments are less than 32K, and you can control when the newlines get written. If your arguments are > 32K can you split them up without writing the newlines until you need to do so? Try something like (untested)
    --         UTL_FILE.PUT (L_OUTPUT, L_SEPARATOR || L_COLUMNVALUE);
               UTL_FILE.PUT (L_OUTPUT, substr(L_SEPARATOR || L_COLUMNVALUE,1,32767));
               UTL_FILE.PUT (L_OUTPUT, substr(L_SEPARATOR || L_COLUMNVALUE),32767*2-1,32767));Edited by: riedelme on Sep 10, 2012 6:11 AM

  • Sqlldr - getting all nulls in target table

    Database: 10gR2 on WinXP
    I am trying to load about 4000 of 7.5 million lines into the database from a 390MB file (there are 1522 of these files in total).
    Goal:
    1. When the line starts with "ScanHeader" or "position = ", just insert the line into TEST1.
    2. When the line starts with "packet #", break it up into columns and insert into TEST2.
    In fact, I only want three values out of the line. For example, for the line:
    "Packet # 2, intensity = 0.000000, mass/position = 50.250000"
    I want "2", "0.000000", and "50.250000" to be inserted into a table (and only if the intensity (the second value) is greater than 25).
    (Note: I was thinking I would just load them all and then delete the ones I don't want, but if there is a way to exclude them up front, I would love to see it).
    The loading into TEST1 seems to be working, but my first several stabs at loading into TEST2 results in the correct number of rows with source_file and seq set properly, but NULL for all the other columns. I suspect this is probably an easy one, but the correct search terms are eluding me.
    My rust-encrusted loader skills were somewhat limited in the first place, so any suggestions beyond fixing the main issue are appreciated.
    Thanks!
    -Tom
    CONTROL FILE:
    OPTIONS(DIRECT=TRUE, ROWS=100000)
    UNRECOVERABLE
    LOAD DATA
    INFILE '081017102.txt'
    BADFILE '081017102.bad'
    TRUNCATE
    INTO TABLE TEST1
    WHEN (1:10) = 'ScanHeader'
    (source_file constant '011017102.txt',
    content position(1:200) char,
    SEQ recnum)
    INTO TABLE TEST1
    WHEN (1:10) = 'position ='
    (source_file constant '011017102.txt',
    content position(1:200) char,
    SEQ recnum)
    INTO TABLE TEST2
    WHEN (1:8) = 'Packet #'
    fields terminated by ' '
    trailing nullcols
    (source_file constant '011017102.txt',
    seq recnum,
    fpacket,
    fpoundsign,
    packet_number,
    fintensity,
    fequals1,
    fcontent,
    fmplabel,
    fequals2,
    mp
    SAMPLE DATA FROM ONE FILE (partial file):
    RunHeaderInfo
    dataset_id = 0, instrument_id = 0
    first_scan = 1, last_scan = 318, start_time = 0.002282, end_time = 0.997597
    low_mass = 50.000000, high_mass = 1000.000000, max_integ_intensity = 41286.089844, sample_volume = 0.000000
    sample_amount = 0.000000, injected_volume = 0.000000, vial = 0, inlet = 0
    err_flags = 0, sw_rev = 1
    Operator =
    Acq Date =
    comment1 =
    comment2 =
    acqui_file =
    inst_desc =
    sample volume units =
    sample amount units =
    Injected volume units =
    Packet Position = 38630
    Spectrum Position = 14603130
    ScanHeader # 1
    position = 1, start_mass= 50.000000, end_mass = 1000.000000
    start_time = 0.002282, end_time = 0.000000, packet_type = 0
    num_readings = 11400, integ_intens = 15376.646484, data packet pos = 0
    uScanCount = 0, PeakIntensity = 1098.594238, PeakMass = 75.333328
    Scan Segment = 0, Scan Event = 0
    Precursor Mass
    Collision Energy
    Isolation width
    Polarity negative, Profile Data, Full Scan Type, MS Scan
    SourceFragmentation Off, Type Ramp, Values = 0, Mass Ranges = 0
    Turbo Scan Off, IonizationMode Electrospray, Corona Any
    Detector Any, Value = 0.00, ScanTypeIndex = -1
    DataPeaks
    Packet # 0, intensity = 0.000000, mass/position = 50.083333
    saturated = 0, fragmented = 0, merged = 0
    Packet # 1, intensity = 0.000000, mass/position = 50.166667
    saturated = 0, fragmented = 0, merged = 0
    Packet # 2, intensity = 0.000000, mass/position = 50.250000
    saturated = 0, fragmented = 0, merged = 0
    (...11,900 more packets for each of 220 ScanHeaders...)
    LOG FILE FROM LOADING A PARTIAL FILE:
    SQL*Loader: Release 10.2.0.1.0 - Production on Tue Oct 21 11:24:11 2008
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Control File: pos.ctl
    Data File: 081017102.txt
    Bad File: 081017102.bad
    Discard File: none specified
    (Allow all discards)
    Number to load: ALL
    Number to skip: 0
    Errors allowed: 50
    Continuation: none specified
    Path used: Direct
    Silent options: FEEDBACK and DISCARDS
    Load is UNRECOVERABLE; invalidation redo is produced.
    Table TEST1, loaded when 1:10 = 0X5363616e486561646572(character 'ScanHeader')
    Insert option in effect for this table: TRUNCATE
    Column Name Position Len Term Encl Datatype
    SOURCE_FILE CONSTANT
    Value is '011017102.txt'
    CONTENT 1:200 200 CHARACTER
    SEQ RECNUM
    Table TEST2, loaded when 1:8 = 0X5061636b65742023(character 'Packet #')
    Insert option in effect for this table: TRUNCATE
    TRAILING NULLCOLS option in effect
    Column Name Position Len Term Encl Datatype
    SOURCE_FILE CONSTANT
    Value is '011017102.txt'
    SEQ RECNUM
    FPACKET NEXT * WHT CHARACTER
    FPOUNDSIGN NEXT * WHT CHARACTER
    PACKET_NUMBER NEXT * WHT CHARACTER
    FINTENSITY NEXT * WHT CHARACTER
    FEQUALS1 NEXT * WHT CHARACTER
    FCONTENT NEXT * WHT CHARACTER
    FMPLABEL NEXT * WHT CHARACTER
    FEQUALS2 NEXT * WHT CHARACTER
    MP NEXT * WHT CHARACTER
    Table TEST1, loaded when 1:10 = 0X706f736974696f6e203d(character 'position =')
    Insert option in effect for this table: TRUNCATE
    Column Name Position Len Term Encl Datatype
    SOURCE_FILE CONSTANT
    Value is '011017102.txt'
    CONTENT 1:200 200 CHARACTER
    SEQ RECNUM
    Table TEST1:
    1 Row successfully loaded.
    0 Rows not loaded due to data errors.
    34234 Rows not loaded because all WHEN clauses were failed.
    0 Rows not loaded because all fields were null.
    Table TEST2:
    11400 Rows successfully loaded.
    0 Rows not loaded due to data errors.
    22835 Rows not loaded because all WHEN clauses were failed.
    0 Rows not loaded because all fields were null.
    Table TEST1:
    1 Row successfully loaded.
    0 Rows not loaded due to data errors.
    34234 Rows not loaded because all WHEN clauses were failed.
    0 Rows not loaded because all fields were null.
    Bind array size not used in direct path.
    Column array rows : 5000
    Stream buffer bytes: 256000
    Read buffer bytes:20971520
    Total logical records skipped: 0
    Total logical records read: 34235
    Total logical records rejected: 0
    Total logical records discarded: 22833
    Total stream buffers loaded by SQL*Loader main thread: 5
    Total stream buffers loaded by SQL*Loader load thread: 0
    Run began on Tue Oct 21 11:24:11 2008
    Run ended on Tue Oct 21 11:24:12 2008
    Elapsed time was: 00:00:01.09
    CPU time was: 00:00:00.10

    I don't think that is the issue, but thanks for the suggestion.
    I eliminated the directives to load data into TEST1 from the control file and then, surprise surprise, the load into TEST2 started working. I added the TEST1 directives back in after the TEST2 directive and all appears to be working now. I don't understand exactly why, but at this point I will accept the result.
    I have changed the control file to what you see below. For the TEST2 load, any suggestions on how to skip the records where the intensity is less than 25?
    REVISED CONTROL FILE:
    OPTIONS(DIRECT=TRUE, ROWS=100000)
    UNRECOVERABLE
    LOAD DATA
    INFILE '081017102-partial.txt'
    BADFILE '081017102.bad'
    TRUNCATE
    INTO TABLE TEST2
    WHEN (1:8) = 'Packet #'
    fields terminated by ' '
    trailing nullcols
    (source_file constant '011017102',
    seq recnum,
    fpacket filler,
    fpoundsign filler,
    packet_number "replace(:packet_number, ',', '')",
    fintensity filler,
    fequals1 filler,
    intensity "replace(:intensity, ',', '')",
    fmplabel filler,
    fequals2 filler,
    mass_position
    INTO TABLE TEST1
    WHEN (1:10) = 'ScanHeader'
    (source_file constant '011017102',
    content position(1:200) char,
    SEQ recnum)
    INTO TABLE TEST1
    WHEN (1:10) = 'position ='
    (source_file constant '011017102',
    content position(1:200) char,
    SEQ recnum)

  • OA Framework - Help Needed in highlighting one of the rows in Custom Page

    Hi Oracle Gurus,
    I am new to OAF.
    I have a requirement like I have to highlight one of the rows in a Custom OA Page.
    These rows exist in a table structure,they are basically Claim records of the employees.
    All these rows are from only One View Object. I just need the total row alone to get highlighted in different color.
    I tried updating the Custom.xss file in $OA_HTML/cabo/styles.
    Below is my Custom.xss file
    <styleSheet>
    <!-- Please start your customizations here -->
    <style selector="XX_BOLD">
    <includeStyle name="DefaultFontFamily"/>
    <property name="background-color">#FF0000</property>
    </style>
    <style selector="XX_NORMAL">
    <property name="background-color">#0000FF</property>
    </style>
    The Query of the VO is
    SELECT EMP_DEP,
    CLINIC,
    HOSPITAL,
    DENTAL,
    OPTICAL,
    EXE_PROFILE,
    MATERNITY,
    DECODE(EMP_DEP,'Total','XX_BOLD','XX_NORMAL') XX_BOLD FROM apps.XXBEN_CB_MEDUTIL_TABLE;
    The VO has decode operation that decides the CSS style which will be used via Controller.
    I have applied the CSS file thorugh the Controller code that I have given below.
    Controller Code :
    OAPageLayoutBean plb = pageContext.getPageLayoutBean();
    OAMessageStyledTextBean columnBean = (OAMessageStyledTextBean) plb.findChildRecursive("EmpDep");
    OADataBoundValueViewObject css = new OADataBoundValueViewObject(columnBean, "XX_BOLD");
    columnBean.setAttributeValue(oracle.cabo.ui.UIConstants.STYLE_CLASS_ATTR,css);
    I did all the changes and bounced the Apache Server.
    But this seems to be not working....I do not see any Colour change in the OAPage.
    Can Anyone tell what could be wrong in this.???
    Please Reply as this very urgent........

    Hi Anil,
    I tried watever you had suggested,It is still throwing the same error.
    I have pasted below the code that I am using.
    Controller Code:
    package EmployeeTest.oracle.apps.per.server.webui;
    import oracle.apps.fnd.common.VersionInfo;
    import oracle.apps.fnd.framework.webui.OAControllerImpl;
    import oracle.apps.fnd.framework.webui.OAPageContext;
    import oracle.apps.fnd.framework.webui.beans.OAWebBean;
    import oracle.apps.fnd.framework.OAApplicationModule;
    import oracle.apps.fnd.framework.webui.OAWebBeanConstants ;
    import oracle.apps.fnd.framework.webui.beans.table.OATableBean ;
    import oracle.apps.fnd.framework.webui.beans.message.OAMessageStyledTextBean;
    import oracle.apps.fnd.framework.webui.OADataBoundValueViewObject;
    import oracle.cabo.ui.beans.table.ColumnBean;
    import oracle.apps.fnd.framework.webui.beans.form.OAChoiceBean;
    import oracle.apps.fnd.framework.webui.beans.form.OASubmitButtonBean;
    import oracle.apps.fnd.framework.webui.beans.layout.*;
    import oracle.apps.fnd.framework.webui.beans.message.*;
    import oracle.apps.fnd.framework.webui.beans.nav.OANavigationBarBean;
    import oracle.apps.fnd.framework.webui.beans.nav.OAPageButtonBarBean;
    import oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean;
    import oracle.apps.fnd.framework.webui.beans.table.*;
    import oracle.cabo.ui.*;
    import oracle.cabo.ui.beans.*;
    import oracle.cabo.ui.beans.form.*;
    import oracle.cabo.ui.beans.layout.*;
    import oracle.cabo.ui.beans.message.MessageStyledTextBean;
    import oracle.cabo.ui.beans.message.MessageTextInputBean;
    import oracle.cabo.ui.beans.nav.NavigationBarBean;
    import oracle.cabo.ui.beans.table.ColumnBean;
    import oracle.cabo.ui.beans.table.TableBean;
    import oracle.apps.fnd.framework.OAViewObject;
    import oracle.apps.fnd.framework.OARow;
    import oracle.jbo.domain.Number;
    import oracle.cabo.style.CSSStyle;
    import java.io.Serializable;
    * Controller for ...
    public class EmployeeInfoCO extends OAControllerImpl
    public static final String RCS_ID="$Header$";
    public static final boolean RCS_ID_RECORDED =
    VersionInfo.recordClassVersion(RCS_ID, "%packagename%");
    * Layout and page setup logic for a region.
    * @param pageContext the current OA page context
    * @param webBean the web bean corresponding to the region
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    int intPersonId = pageContext.getEmployeeId();
    //int intPersonId; // = pageContext.getEmployeeId();
    //String strPersonId = Integer.toString(277980);
    String strPersonId = Integer.toString(intPersonId);
    // get the Application Module
    OAApplicationModule oaAM = pageContext.getApplicationModule(webBean);
    Serializable parameters[] = { strPersonId };
    //pass parameters to Application Module
    oaAM.invokeMethod("initQuery", parameters);
    oaAM.invokeMethod("insertRow", parameters);
    oaAM.invokeMethod("execQuery");
    oaAM.invokeMethod("totexecQuery");
    oaAM.invokeMethod("tohighQuery");
    OAViewObject oaviewobject1 =(OAViewObject)oaAM.findViewObject("EmployeeUtilVO1");
    oaviewobject1.reset();
    if (oaviewobject1 != null)
    do
    if(!oaviewobject1.hasNext())
    break;
    oaviewobject1.next();
    OARow row = (OARow)oaviewobject1.getCurrentRow();
    String fullName = (String)row.getAttribute("EmpDep");
    System.out.println("The Name is "+fullName);
    row.setEmpDep("<html><H5>"+row.getEmpDep()+"</H5></html>"); (As it is a Plain Text this HTML tag is making the text row.getEmpDep() as H5)
    } while(true);
    * Procedure to handle form submissions for form elements in
    * a region.
    * @param pageContext the current OA page context
    * @param webBean the web bean corresponding to the region
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    I am successful in Interating the rows of the table.
    I am being able to print out the view attribute "EmpDep", But when I tried highlighting the row attribute using Row object,it is throwing me an error.
    The error code is :
    Error(88,40): method getEmpDep not found in interface oracle.apps.fnd.framework.OARow
    Error(88,13): method setEmpDep(java.lang.String) not found in interface oracle.apps.fnd.framework.OARow
    I have already give the Query for the VO in the Thread.
    Could You Plz let me know what is wrong in this code?
    Edited by: user1393742 on Sep 21, 2010 7:54 PM
    Edited by: user1393742 on Sep 21, 2010 7:55 PM
    Edited by: user1393742 on Sep 21, 2010 7:57 PM
    Edited by: user1393742 on Sep 21, 2010 7:58 PM
    Edited by: user1393742 on Sep 21, 2010 8:01 PM
    Edited by: user1393742 on Sep 21, 2010 8:02 PM
    Edited by: user1393742 on Sep 21, 2010 8:03 PM
    Edited by: user1393742 on Sep 21, 2010 8:07 PM

  • Exposing null row  in Pivot table

    Hi Gurus
    I have a scenario here with pivot table ..when i am pulling the a bunch of columns in my pivot table the measures with null values is getting suppressed but i want to expose all the rows and their respective values (including null)
    Regards
    Debo

    Sounds like what you want is to view data in dense form. We often do that here on my current project.
    There are a couple ways to do it including outer joins, preserve dimensions, and cross joins. Depending on your scenario some options are better than others.
    Here is a link that shows how to use cross joins. Personally this one is my preference.
    http://gerardnico.com/wiki/dat/obiee/densification_repository

  • Get All Updated row keys

    HI All
    I'm developing a web app using jdeveloper 11.1.2
    I have a VO and datacontroller for that VO
    I draged and droped that VO to a page as a tabel
    In this table user can update only one row
    This my user case
    user can update one or more rows at once ance clicks update button
    I want to get the key of al updates rows.
    Could one tell me how to do this
    Thankx

    Here is the sample code:
        public String findUpdatedRowKeys() {
            DCBindingContainer bindings = (DCBindingContainer)this.getBindings();
            DCIteratorBinding itr = bindings.findIteratorBinding("<Iterator_Binding_Of_Table>");
            List updatedRowKeys = null; //Contains list of row keys that are updated
            for(Row row : itr.getAllRowsInRange()){
                ViewRowImpl viewRow = (ViewRowImpl)row;
                //Check if the row is modified, if yes, add it to the updatedRowKeys list
                if(viewRow.getEntity(0).getEntityState() == EntityImpl.STATUS_MODIFIED){
                    if(updatedRowKeys == null)
                        updatedRowKeys = new ArrayList();
                    updatedRowKeys.add(viewRow.getKey());
            System.out.println("\n************ UpdatedRowKeys: "+updatedRowKeys);
            return null;
        public BindingContainer getBindings() {
            return BindingContext.getCurrent().getCurrentBindingsEntry();
        }Sireesha

  • I publish a 41mb newsletter monthly into interactive pdf. It always becomes a file size of 4mb, 10% of original, when I save to pdf. This month my newsletter is 41mb and it drops to 11mb, 25% of original. I have re-sized all pictures, deleted pages separa

    I publish a 41mb InDesign newsletter monthly into interactive pdf. It always becomes a file size of 4mb, 10% of original, when I save to pdf. This month my newsletter is 41mb and it drops to 11mb, 25% of original. I have re-sized all pictures, deleted pages separately, have gotten the file size down to 16mb and it drops to 7mb, 45% of original.
    I have gone back and saved Feb and March and it saves to 10% of original, as it did before, and I use the same mechanism to save now.
    I have gone to Acrobat Pro and optimized down to 8.8mb, but the quality is not acceptable.
    What other variable is there that I haven't discovered?

    My daughter has had her Razr for about 9 months now.  About two weeks ago she picked up her phone in the morning on her way to school when she noticed two cracks, both starting at the camera lens. One goes completely to the bottom and the other goes sharply to the side. She has never dropped it and me and my husband went over it with a fine tooth comb. We looked under a magnifying glass and could no find any reason for the glass to crack. Not one ding, scratch or bang. Our daughter really takes good care of her stuff, but we still wanted to make sure before we sent it in for repairs. Well we did and we got a reply from Motorola with a picture of the cracks saying this was customer abuse and that it is not covered under warranty. Even though they did not find any physical damage to back it up. Well I e-mailed them back and told them I did a little research and found pages of people having the same problems. Well I did not hear from them until I received a notice from Fed Ex that they were sending the phone back. NOT FIXED!!! I went to look up why and guess what there is no case open any more for the phone. It has been wiped clean. I put in the RMA # it comes back not found, I put in the ID #, the SN# and all comes back not found. Yet a day earlier all the info was there. I know there is a lot more people like me and all of you, but they just don't want to be bothered so they pay to have it fix, just to have it do it again. Unless they have found the problem and only fixing it on a customer pay only set up. I am furious and will not be recommending this phone to anyone. And to think I was considering this phone for my next up grade! NOT!!!!

  • How to show all the rows in PRint html option in obiee 11g

    Hi ,
    I am facing a issue in obiee 11g(windows 2003 server). I have 2 environments (SIT & dev)
    In dev I am not facing any issue but in SIT when i print the report in html only 1-25 rows are displayed.
    What should i do to see all the rows
    Thanks in advance
    Abdul

    Hi,
    In your Dev Server its configured on instanceconfig.xml file that why are getting the all rows with setting pdf/print control properties.
    1. Change instanceconfig.xml file in <biee11g_install>\instances\instance1\config\OracleBIPresentationServicesComponent\coreapplication_obips1 as following
    <Views>
    <Pivot>
    <!--This Configuration setting is managed by Oracle Business Intelligence Enterprise Manager-->
    <DefaultRowsDisplayedInDelivery>75</DefaultRowsDisplayedInDelivery>
    <!--This Configuration setting is managed by Oracle Business Intelligence Enterprise Manager-->
    <DefaultRowsDisplayedInDownload>2500</DefaultRowsDisplayedInDownload>
    <!--This Configuration setting is managed by Oracle Business Intelligence Enterprise Manager-->
    <DisableAutoPreview>false</DisableAutoPreview>
    <MaxVisibleColumns>5000</MaxVisibleColumns>
    <MaxVisiblePages>2500</MaxVisiblePages>
    <MaxVisibleRows>500000</MaxVisibleRows>
    <MaxVisibleSections>5000</MaxVisibleSections>
    </Pivot>
    <Table>
    <!--This Configuration setting is managed by Oracle Business Intelligence Enterprise Manager-->
    <DefaultRowsDisplayedInDelivery>75</DefaultRowsDisplayedInDelivery>
    <!--This Configuration setting is managed by Oracle Business Intelligence Enterprise Manager-->
    <DefaultRowsDisplayedInDownload>2500</DefaultRowsDisplayedInDownload>
    <MaxVisiblePages>2500</MaxVisiblePages>
    <MaxVisibleRows>500000</MaxVisibleRows>
    <MaxVisibleSections>5000</MaxVisibleSections>
    </Table>
    </Table>
    </Views>
    3. Note the new elements added are the following to both <Pivot> and <Table>, the Pivot part controls Pivot view, and Table part controls Table View, my testing was done with Table View.
    <MaxVisiblePages>2500</MaxVisiblePages>
    <MaxVisibleRows>500000</MaxVisibleRows>
    <MaxVisibleSections>5000</MaxVisibleSections>
    4. Restart Presentation Server from EM, then run your request, do pdf export to verify.
    Note:
    When a table or pivot table includes a large number of rows, a set of buttons can be displayed under the view. You can use the following buttons to page through the rows in the view:
    •First 25 Rows — Displays the first 25 rows of data for the view. The number that is used for the First, Previous, and Next buttons is specified by the Rows per Page field in the "Table Properties dialog: Style tab".
    •Previous 25 Rows — Displays the previous 25 rows of data for the view.
    •Next 25 Rows — Displays the next 25 rows of data for the view.
    •Display maximum (500) rows per page — Allows you to display as many as the maximum number of rows per page at one time temporarily. The default is 500. The administrator can specify a different maximum value that is displayed on the tooltip for the button using the MaxVisibleRows element in the configuration file.
    For more Refer my blog post
    http://obieeelegant.blogspot.sg/2011/09/unable-to-export-all-rows-from-request.html
    Note: this same thing you can also configure your UAT/Prod Server. then its will automated so you no need to configure each report.its will affect all the pivot/table view
    also its noted as a bug in obiee11g(11.1.1.3/5) and its fixed in obiee11.1.1.6.0 and above version
    FYI:
    Thanks
    Deva

  • Is there a way to BULK COLLECT with FOR UPDATE and not lock ALL the rows?

    Currently, we fetch a cursor on a few million rows using BULK COLLECT.
    In a FORALL loop, we update the rows.
    What is happening now, is that we run this procedure at the same time, and there is another session running a MERGE statement on the same table, and a DEADLOCK is created between them.
    I'd like to add to the cursor the FOR UPDATE clause, but from what i've read,
    it seems that this will cause ALL the rows in the cursor to become locked.
    This is a problem, as the other session is running MERGE statements on the table every few seconds, and I don't want it to fail with ORA-0054 (resource busy).
    What I would like to know is if there is a way, that only the rows in the
    current bulk will be locked, and all the other rows will be free for updates.
    To reproduce this problem:
    1. Create test table:
    create table TEST_TAB
    ID1 VARCHAR2(20),
    ID2 VARCHAR2(30),
    LAST_MODIFIED DATE
    2. Add rows to test table:
    insert into TEST_TAB (ID1, ID2, LAST_MODIFIED)
    values ('416208000770698', '336015000385349', to_date('15-11-2009 07:14:56', 'dd-mm-yyyy hh24:mi:ss'));
    insert into TEST_TAB (ID1, ID2, LAST_MODIFIED)
    values ('208104922058401', '336015000385349', to_date('15-11-2009 07:11:15', 'dd-mm-yyyy hh24:mi:ss'));
    insert into TEST_TAB (ID1, ID2, LAST_MODIFIED)
    values ('208104000385349', '336015000385349', to_date('15-11-2009 07:15:13', 'dd-mm-yyyy hh24:mi:ss'));
    3. Create test procedure:
    CREATE OR REPLACE PROCEDURE TEST_PROC IS
    TYPE id1_typ is table of TEST_TAB.ID1%TYPE;
    TYPE id2_typ is table of TEST_TAB.ID2%TYPE;
    id1_arr id1_typ;
    id2_arr id2_typ;
    CURSOR My_Crs IS
    SELECT ID1, ID2
    FROM TEST_TAB
    WHERE ID2 = '336015000385349'
    FOR UPDATE;
    BEGIN
    OPEN My_Crs;
    LOOP
    FETCH My_Crs bulk collect
    INTO id1_arr, id2_arr LIMIT 1;
    Forall i in 1 .. id1_arr.COUNT
    UPDATE TEST_TAB
    SET LAST_MODIFIED = SYSDATE
    where ID2 = id2_arr(i)
    and ID1 = id1_arr(i);
    dbms_lock.sleep(15);
    EXIT WHEN My_Crs%NOTFOUND;
    END LOOP;
    CLOSE My_Crs;
    COMMIT;
    EXCEPTION
    WHEN OTHERS THEN
    RAISE_APPLICATION_ERROR(-20000,
    'Test Update ' || SQLCODE || ' ' || SQLERRM);
    END TEST_PROC;
    4. Create another procedure to check if table rows are locked:
    create or replace procedure check_record_locked(p_id in TEST_TAB.ID1%type) is
    cursor c is
    select 'dummy'
    from TEST_TAB
    WHERE ID2 = '336015000385349'
    and ID1 = p_id
    for update nowait;
    e_resource_busy exception;
    pragma exception_init(e_resource_busy, -54);
    begin
    open c;
    close c;
    dbms_output.put_line('Record ' || to_char(p_id) || ' is not locked.');
    rollback;
    exception
    when e_resource_busy then
    dbms_output.put_line('Record ' || to_char(p_id) || ' is locked.');
    end check_record_locked;
    5. in one session, run the procedure TEST_PROC.
    6. While it's running, in another session, run this block:
    begin
    check_record_locked('208104922058401');
    check_record_locked('416208000770698');
    check_record_locked('208104000385349');
    end;
    7. you will see that all records are identified as locked.
    Is there a way that only 1 row will be locked, and the other 2 will be unlocked?
    Thanks,
    Yoni.

    I don't have database access on weekends (look at it as a template)
    suppose you
    create table help_iot
    (bucket number,
    id1    varchar2(20),
    constraint help_iot_pk primary key (bucket,id1)
    organization index;not very sure about the create table syntax above.
    declare
      maximal_bucket number := 10000; -- will update few hundred rows at a time if you must update few million rows
      the_sysdate date := sysdate;
    begin
      truncate table help_iot;
      insert into help_iot
      select ntile(maximal_bucket) over (order by id1) bucket,id1
        from test_tab
       where id2 = '336015000385349';
      for i in 1 .. maximal_bucket
      loop
        select id1,id2,last_modified
          from test_tab
         where id2 = '336015000385349'
           and id1 in (select id1
                         from help_iot
                        where bucket = i
           for update of last_modified;
        update test_tab
           set last_modified = the_sysdate
         where id2 = '336015000385349'
           and id1 in (select id1
                         from help_iot
                        where bucket = i
        commit;
        dbms_lock.sleep(15);
      end loop;
    end;Regards
    Etbin
    introduced the_sysdate if last_modified must be the same for all updated rows
    Edited by: Etbin on 29.11.2009 16:48

  • Dynamic Action on tabular form: to auto set value for all changes rows

    Hi All:
    I am using APEX4.2.3 and I am not very familar with JQUERY or Javascript.
    I am having a tabular form to support Update and Delete action. The tabular form has 4 columns:
    Column A: ID                      (Number)     : Read-only column
    column B: Name                 (Varchar2)   : Editable
    Column C: Age                    (Number)     : Editable
    Column D: ChangeFlag      (Varchar2)   : Read-only column                             ==> however, I want this column been automatically upldated by my APEX application
    Here is the requirement: First user update Column B, or C or both for # of rows; then user click "Save Change" button. For ALL updated rows, I need to automatically update Column D with below logic:
    For a given row,
                   IF Column D IS NULL  THEN
                         set value = 'M'                           -- M means modified
                   ELSE --- column D has a value already
                        IF last character of Column D is 'M', THEN
                               don't do anything;
                        ELSE
                              set value of D = existing value + 'M'                       (here + means concatenate
                       END IF;
                END IF;
    I thought this can be done by creating dynamic action on tabular form ... I have researched this on this forum and can't find a good match example ..
    I know I can implement this using a DB trigger; however, I want to learn if this can be achived via Dynamic Action.
    Thanks!
    Kevin

    Hi Expert:
    Anyone can offer any direction or help on this?
    Thanks!
    Kevin

  • InfoPath form load rule is not checking all the rows in form library

    Hi,
    Requirement:
    We have a form library named "HR Annual Review". In the InfoPath form we have two buttons "Save" and "Submit". User is allowed to Save multiple times and only once using Submit button. The file name of form library "HR
    Annual Review" will be stored in the format “<username>+<mm>+<dd>+<yy>.xml”. Say for example, an user named Mike Walt submitted a form then the file name will be as “MikeWalt012314.xml”. If the same user (Mike Walt)
    submits the form and tries to open the form for subsequent edit, then we need to show a view which has an error info saying “The Appraisal is already submitted for the current appraisal cycle”.
    Solution we tried:
    To achieve the above requirement, we tried using InfoPath Form Load and add a rule to check whether the combination of current user name and the year already exists in the filename column of the form library. But the rule we applied is not checking all the
    rows in the form library. The rule is always checking the first row of the form library.
    What we need:
    We need the validation using InfoPath rule or some other way/solution to check whether the combination of current login username and current year file already exists in the form library.
    Thanks in advance.
    Srivignesh J

    Hi Srivignesh,
    Submit button Uses the Main Data connection to submit the data to the list. This is what you are using and naming the file in the format. You can create secondary data submit that will update the exiting item in the list. With this, you don't have to create
    any rules to check all the rows which is also not possible in OOB InfoPath.
    Once you have the two data connection, hide the toolbar from the form and display these two on the button. For The Submit button, apply the rule to hide the button if created by is not empty. For Save button, apply the rule to hide the button if Created
    By is empty. This way, when a new form is created, you will see the Submit button, and when the user have to update the form, they will see Save button. Hope it help.s
    Regards, Kapil ***Please mark answer as Helpful or Answered after consideration***

  • How can I search a word in a column and erase all the rows containing that word?

    How can I erase all the rows containing a certain word at once?
    Right now I do it manually : I search the word in a certain column with cmd+f, after that it points out where the word is in different rows. And then I manually erase every row but this takes a lot of time when you have 500 row! There must be a way to select all the rows concerned at once and erase them? Thks!

    assuming this is something you don't do very often you can simply use the search feature to identify instances of the search term, and select the row, delete the row then search again.
    The next level would be to add a new column where you identify that the search term exists in a cell of the row, then you sort by the new column:
    B1=IF(IFERROR(FIND("team", A1,1), 0)>0, "FOUND", "")
    my search term is "team" change yours as needed.
    select B1, copy,
    select Column B, paste
    Now sort:
    Inspect the rows to make sure the rows found are REALLY ones you want to remove.  select the ones you want to remove and delete those rows.

  • ALV to select more than one column by row using set_table_for_first_display

    Hello everyone,
    I am developing an application (ALV OO) to select more than 1 column by row ( one ). This is an a holiday application so the idea is:
    -One column will be the day, and the row will be the user.
    So I am trying to select more than one day by user (that would be the row).
    I am using the method set_table_for_first_display but when it shows the alv, doesn't let me to select more than one column with a click of the mouse.
    Does anybody know if I can do this (select more than one column, by row) in somehow?
    Please let me know if you need more clarification about this.
    Thanks in advance
    Diego

    Hi Diego,
    it's all in the documentation.
    set different selection modes through the value of the field u201CSEL_MODEu201D in the layout structure.
    SPACE
    same as 'B'
    see 'B'
    Default setting
    'A'
    Column and row selection
    Multiple columns
    Multiple rows
    The user selects the rows through pushbuttons at the left border of the grid control.
    'B'
    Simple selection, list box
    Multiple columns
    Multiple rows
    'C'
    Multiple selection, list box
    Multiple columns
    Multiple rows
    'D'
    Cell selection
    Multiple columns
    Multiple rows
    Any cells
    The user selects the rows through pushbuttons at the left border of the grid control
    Beyond setting this option, you can set u201CNO_ROWMARKu201D option to hide the mark column which is normally visible when the selection mode allows multiple row selection.
    One point to notice here is that if you set your ALV Grid as to be editable, it may override your selection mode regardless of your layout settings.
    This is from SDN Community Contribution "An Easy Reference for ALV Grid Control" By: Serdar ŞİMŞEKLER
    Sorry, no link,. it's on my disk.
    Regards,
    Clemens

  • Button to delete all empty rows

    I am in the process of creating an interactive form that has a button that add rows for the user to input issues and another button to add follow-ups to those instances. There are 3 different sets of these. However, we do not want to add a delete button to all rows, to allow for accidental deletion of already inputted data.  I would like to create a button that will delete all empty rows, including all subforms.  Either that, or upon saving the document, all empty rows would be deleted - whichever would be easier. Please help!  This seems like it will be a complicated task and I am not that well versed in LiveCycle to be able to figure this out on my own.
    Thank you!

    There is no doubt that looping through nested repeating objects is more complex:
    Here is the script for the first table with follow-up rows:
    // Technical
    var nCount3 = VitalsSubform.Technical._Instance1.count;
    for (var k=0; k<nCount3; k++)
         // this is script to remove the follow-up rows in the first table only
         var nCount6 = xfa.resolveNode("VitalsSubform.Technical.Instance1[" + k + "]").Table1._Row1.count;
         // loop through the rows in the follow-up table
         for (var i=0; i<nCount6; i++)
              if (xfa.resolveNode("VitalsSubform.Technical.Instance1[" + k + "].Table1.Row1[" + i + "]").Cell4.rawValue == null)
                   // remove null row
                   xfa.resolveNode("VitalsSubform.Technical.Instance1[" + k + "]").Table1._Row1.removeInstance(i);
                   // recount nCount in case a row has been deleted
                   nCount6 =xfa.resolveNode("VitalsSubform.Technical.Instance1[" + k + "]").Table1._Row1.count;
                   // account for the row that is now deleted
                   i = i-1;
         // now remove null statements
         if (xfa.resolveNode("VitalsSubform.Technical.Instance1[" + k + "]").Table1.Statement.Statement.rawValue == null)
              VitalsSubform.Technical._Instance1.removeInstance(k);
              var nCount3 = VitalsSubform.Technical._Instance1.count;
              k = k-1;
    It is by no means tested and could still be flaky.
    Have you considered a manual 'x'/delete button for the follow-up rows?
    Here is the form: https://acrobat.com/#d=JMGUKXNQ*qMD18S3W5VxSQ
    Niall

Maybe you are looking for

  • Escape special charter in WSDL url for calling a webservice

    I am trying to call a webservice which has "&" in the WSDL url. http://server:8080/asd?id=123gh3&wsdl=1 It is throwing "The refernece to entity must end with the ';' delimeter." error How can I excape it or encode this specail character in WSDL url T

  • How do groups work in iOS 6 contacts now?

    Hi, I used to pick contacts from my phone menu and then select the Group I wanted to quickly get to a short list of contacts. Now when I get to the groups menu and select "travel" for example, it just checks/unchecks the group... I cannot seem to dri

  • Motion 3  - motion tracking help

    I am rather new to Apple Motion, so I apologize in advance for any novice comments or inquiries. That being said, I have extensive experience with video shooting/editing/graphics withing the Adobe family products. In this instance however, I am requi

  • OSS hang up when shutting down

    Hi! Sometimes, when shutting down, OSS just hang up... and I have to hard switch power off... I think that that happens when the "server" nfs is down... but I have "linked" folders from it using the soft option, not hard... Is that related? any idea?

  • Formula bar does not appear in Numers on iPad

    Formula bar does not appear in numbers in iPad 1. Tapping twice only numerical keys appear. Search net and could not find solution. Deleted and then downloaded numbers to no avail. Works fine on iPhone.