Ignore Empty Parameter

I am trying to create a form that searches through a recordset. I am wondering, if several of the fields within the search form are left blank when submitted by the "GET" method, how I can have the query string ignore those empty parameters in the URL. I posted a similar question a little earlier and got no responses. I'm a newbie so let me now if I'm not phrasing my question correctly or something.

I've attempted to use the longer version of the code to make my select statement work. This is the code that I've got now:
$query_rs_results = "SELECT dogid, b_email, b_fname, b_lname, b_phone, b_url, dob, dod, reg_name, reg_no, o_email, o_fname, o_lname, o_phone, o_url, registry, semen_l, semen_f, semen_fc, semen_fr, photo FROM dog_main";
// Set a flag to indicate whether the query has a WHERE clause
// Set a variable to indicate if the select statement has a color value selected
$where = false;
$color = 0;
if (isset($_GET['arm']) && !empty($_GET['arm'])) {
  $query_rs_results .= ' WHERE arm = '. GetSQLValueString($_GET['arm'], 'text');
  $where = true;
if (isset($_GET['bite']) && !empty($_GET['bite'])) {
  if ($where) {
    $query_rs_results .= ' AND ';
  } else {
    $query_rs_results .= ' WHERE ';
    $where = true;
  $query_rs_results .= 'bite = ' . GetSQLValueString($_GET['bite'], 'text');
if (isset($_GET['body']) && !empty($_GET['body'])) {
    if ($where) {
    $query_rs_results .= ' AND ';
  } else {
    $query_rs_results .= ' WHERE ';
    $where = true;
  $query_rs_results .= 'body1 = ' . GetSQLValueString($_GET['body'], 'text');
if (isset($_GET['breadth']) && !empty($_GET['breadth'])) {
    if ($where) {
    $query_rs_results .= ' AND ';
  } else {
    $query_rs_results .= ' WHERE ';
    $where = true;
  $query_rs_results .= 'breadth = ' . GetSQLValueString($_GET['breadth'], 'text');
if (isset($_GET['brisket']) && !empty($_GET['brisket'])) {
    if ($where) {
    $query_rs_results .= ' AND ';
  } else {
    $query_rs_results .= ' WHERE ';
    $where = true;
  $query_rs_results .= 'brisket = ' . GetSQLValueString($_GET['brisket'], 'text');
if (isset($_GET['dentition']) && !empty($_GET['dentition'])) {
    if ($where) {
    $query_rs_results .= ' AND ';
  } else {
    $query_rs_results .= ' WHERE ';
    $where = true;
  $query_rs_results .= 'dentition = ' . GetSQLValueString($_GET['dentition'], 'text');
if (isset($_GET['color_b']) && !empty($_GET['color_b'])) {
$color = $color + 1;
    if ($where) {
    $query_rs_results .= ' AND ';
  } else {
    $query_rs_results .= ' WHERE ';
  $query_rs_results .= '(color = ' . GetSQLValueString($_GET['color_b'], 'text');
if (isset($_GET['color_bl']) && !empty($_GET['color_bl'])) {
$color = $color + 1;
If ($color > 1) {
  $query_rs_results .= ' OR ';
     } else {
            if ($where) {
               $query_rs_results .= ' AND ';
            } else {
               $query_rs_results .= ' WHERE ';
  $query_rs_results .= 'color = ' . GetSQLValueString($_GET['color_bl'], 'text');
if (isset($_GET['color_br']) && !empty($_GET['color_br'])) {
$color = $color + 1;
If ($color > 1) {
  $query_rs_results .= ' OR ';
     } else {
            if ($where) {
               $query_rs_results .= ' AND ';
            } else {
               $query_rs_results .= ' WHERE ';
  $query_rs_results .= 'color = ' . GetSQLValueString($_GET['color_br'], 'text');
if (isset($_GET['color_f']) && !empty($_GET['color_f'])) {
$color = $color + 1;
If ($color > 1) {
  $query_rs_results .= ' OR ';
     } else {
            if ($where) {
               $query_rs_results .= ' AND ';
            } else {
               $query_rs_results .= ' WHERE ';
  $query_rs_results .= 'color = ' . GetSQLValueString($_GET['color_f'], 'text');
if (isset($_GET['color_h']) && !empty($_GET['color_h'])) {
$color = $color + 1;
If ($color > 1) {
  $query_rs_results .= ' OR ';
     } else {
            if ($where) {
               $query_rs_results .= ' AND ';
            } else {
               $query_rs_results .= ' WHERE ';
  $query_rs_results .= 'color = ' . GetSQLValueString($_GET['color_h'], 'text');
if (isset($_GET['color_m']) && !empty($_GET['color_m'])) {
$color = $color + 1;
If ($color > 1) {
  $query_rs_results .= ' OR ';
     } else {
            if ($where) {
               $query_rs_results .= ' AND ';
            } else {
               $query_rs_results .= ' WHERE ';
  $query_rs_results .= 'color = ' . GetSQLValueString($_GET['color_m'], 'text');
if (isset($_GET['color_o']) && !empty($_GET['color_o'])) {
$color = $color + 1;
If ($color > 1) {
  $query_rs_results .= ' OR ';
     } else {
            if ($where) {
               $query_rs_results .= ' AND ';
            } else {
               $query_rs_results .= ' WHERE ';
  $query_rs_results .= 'color = ' . GetSQLValueString($_GET['color_o'], 'text');
if ($color > 0) {
$query_rs_results .= ') ';
if (isset($_GET['ears']) && !empty($_GET['ears'])) {
    if ($where) {
    $query_rs_results .= ' AND ';
  } else {
    $query_rs_results .= ' WHERE ';
    $where = true;
  $query_rs_results .= 'ears = ' . GetSQLValueString($_GET['ears'], 'text');
if (isset($_GET['eye_color']) && !empty($_GET['eye_color'])) {
    if ($where) {
    $query_rs_results .= ' AND ';
  } else {
    $query_rs_results .= ' WHERE ';
    $where = true;
  $query_rs_results .= 'eye_color = ' . GetSQLValueString($_GET['eye_color'], 'text');
if (isset($_GET['eye_shape']) && !empty($_GET['eye_shape'])) {
    if ($where) {
    $query_rs_results .= ' AND ';
  } else {
    $query_rs_results .= ' WHERE ';
    $where = true;
  $query_rs_results .= 'eye_shape = ' . GetSQLValueString($_GET['eye_shape'], 'text');
if (isset($_GET['eye_tight']) && !empty($_GET['eye_tight'])) {
    if ($where) {
    $query_rs_results .= ' AND ';
  } else {
    $query_rs_results .= ' WHERE ';
    $where = true;
  $query_rs_results .= 'eye_tight = ' . GetSQLValueString($_GET['eye_tight'], 'text');
if (isset($_GET['f_feet']) && !empty($_GET['f_feet'])) {
    if ($where) {
    $query_rs_results .= ' AND ';
  } else {
    $query_rs_results .= ' WHERE ';
    $where = true;
  $query_rs_results .= 'f_feet = ' . GetSQLValueString($_GET['f_feet'], 'text');
if (isset($_GET['head']) && !empty($_GET['head'])) {
    if ($where) {
    $query_rs_results .= ' AND ';
  } else {
    $query_rs_results .= ' WHERE ';
    $where = true;
  $query_rs_results .= 'head = ' . GetSQLValueString($_GET['head'], 'text');
if (isset($_GET['hocks']) && !empty($_GET['hocks'])) {
    if ($where) {
    $query_rs_results .= ' AND ';
  } else {
    $query_rs_results .= ' WHERE ';
    $where = true;
  $query_rs_results .= 'hocks = ' . GetSQLValueString($_GET['hocks'], 'text');
if (isset($_GET['lip']) && !empty($_GET['lip'])) {
    if ($where) {
    $query_rs_results .= ' AND ';
  } else {
    $query_rs_results .= ' WHERE ';
    $where = true;
  $query_rs_results .= 'lip = ' . GetSQLValueString($_GET['lip'], 'text');
if (isset($_GET['longevity']) && !empty($_GET['longevity'])) {
    if ($where) {
    $query_rs_results .= ' AND ';
  } else {
    $query_rs_results .= ' WHERE ';
    $where = true;
  $query_rs_results .= 'longevity = ' . GetSQLValueString($_GET['longevity'], 'text');
if (isset($_GET['neck_length']) && !empty($_GET['neck_length'])) {
    if ($where) {
    $query_rs_results .= ' AND ';
  } else {
    $query_rs_results .= ' WHERE ';
    $where = true;
  $query_rs_results .= 'neck_length = ' . GetSQLValueString($_GET['neck_length'], 'text');
if (isset($_GET['neck_set']) && !empty($_GET['neck_set'])) {
    if ($where) {
    $query_rs_results .= ' AND ';
  } else {
    $query_rs_results .= ' WHERE ';
    $where = true;
  $query_rs_results .= 'neck_set = ' . GetSQLValueString($_GET['neck_set'], 'text');
if (isset($_GET['r_angulation']) && !empty($_GET['r_angulation'])) {
    if ($where) {
    $query_rs_results .= ' AND ';
  } else {
    $query_rs_results .= ' WHERE ';
    $where = true;
  $query_rs_results .= 'r_angulation = ' . GetSQLValueString($_GET['r_angulation'], 'text');
if (isset($_GET['r_feet']) && !empty($_GET['r_feet'])) {
    if ($where) {
    $query_rs_results .= ' AND ';
  } else {
    $query_rs_results .= ' WHERE ';
    $where = true;
  $query_rs_results .= 'r_feet = ' . GetSQLValueString($_GET['r_feet'], 'text');
if (isset($_GET['semen_f']) && !empty($_GET['semen_f'])) {
    if ($where) {
    $query_rs_results .= ' AND ';
  } else {
    $query_rs_results .= ' WHERE ';
    $where = true;
  $query_rs_results .= 'semen_f = ' . GetSQLValueString($_GET['semen_f'], 'text');
if (isset($_GET['semen_fc']) && !empty($_GET['semen_fc'])) {
    if ($where) {
    $query_rs_results .= ' AND ';
  } else {
    $query_rs_results .= ' WHERE ';
    $where = true;
  $query_rs_results .= 'semen_fc = ' . GetSQLValueString($_GET['semen_fc'], 'text');
if (isset($_GET['semen_fr']) && !empty($_GET['semen_fr'])) {
    if ($where) {
    $query_rs_results .= ' AND ';
  } else {
    $query_rs_results .= ' WHERE ';
    $where = true;
  $query_rs_results .= 'semen_fr = ' . GetSQLValueString($_GET['semen_fr'], 'text');
if (isset($_GET['semen_l']) && !empty($_GET['semen_l'])) {
    if ($where) {
    $query_rs_results .= ' AND ';
  } else {
    $query_rs_results .= ' WHERE ';
    $where = true;
  $query_rs_results .= 'semen_l = ' . GetSQLValueString($_GET['semen_l'], 'text');
if (isset($_GET['shoulders']) && !empty($_GET['shoulders'])) {
    if ($where) {
    $query_rs_results .= ' AND ';
  } else {
    $query_rs_results .= ' WHERE ';
    $where = true;
  $query_rs_results .= 'shoulders = ' . GetSQLValueString($_GET['shoulders'], 'text');
if (isset($_GET['tail_length']) && !empty($_GET['tail_length'])) {
    if ($where) {
    $query_rs_results .= ' AND ';
  } else {
    $query_rs_results .= ' WHERE ';
    $where = true;
  $query_rs_results .= 'tail_length = ' . GetSQLValueString($_GET['tail_length'], 'text');
if (isset($_GET['tail_set']) && !empty($_GET['tail_set'])) {
    if ($where) {
    $query_rs_results .= ' AND ';
  } else {
    $query_rs_results .= ' WHERE ';
    $where = true;
  $query_rs_results .= 'tail_set = ' . GetSQLValueString($_GET['tail_set'], 'text');
if (isset($_GET['temperament']) && !empty($_GET['temperament'])) {
    if ($where) {
    $query_rs_results .= ' AND ';
  } else {
    $query_rs_results .= ' WHERE ';
    $where = true;
  $query_rs_results .= 'temperament = ' . GetSQLValueString($_GET['temperament'], 'text');
if (isset($_GET['topline']) && !empty($_GET['topline'])) {
    if ($where) {
    $query_rs_results .= ' AND ';
  } else {
    $query_rs_results .= ' WHERE ';
    $where = true;
  $query_rs_results .= 'topline = ' . GetSQLValueString($_GET['topline'], 'text');
if (isset($_GET['withers']) && !empty($_GET['withers'])) {
    if ($where) {
    $query_rs_results .= ' AND ';
  } else {
    $query_rs_results .= ' WHERE ';
    $where = true;
  $query_rs_results .= 'withers = ' . GetSQLValueString($_GET['withers'], 'text');
echo "Query search = ".$query_rs_results;
$query_limit_rs_results = sprintf("%s LIMIT %d, %d", $query_rs_results, $startRow_rs_results, $maxRows_rs_results);
$rs_results = mysql_query($query_limit_rs_results, $dqdb) or die(mysql_error());
$row_rs_results = mysql_fetch_assoc($rs_results);
if (isset($_POST['totalRows_rs_results'])) {
  $totalRows_rs_results = $_POST['totalRows_rs_results'];
} else {
  $all_rs_results = mysql_query($query_rs_results);
  $totalRows_rs_results = mysql_num_rows($all_rs_results);
$totalPages_rs_results = ceil($totalRows_rs_results/$maxRows_rs_results)-1;
I'm echoing $query_rs_results to verify that it is building the select statement correctly, but it is not.  The select statement being echoed is:
SELECT dogid, b_email, b_fname, b_lname, b_phone, b_url, dob, dod, reg_name, reg_no, o_email, o_fname, o_lname, o_phone, o_url, registry, semen_l, semen_f, semen_fc, semen_fr, photo FROM dog_main
The results page is displaying every dog in the database.
What am I missing here?
TIA,
Laura

Similar Messages

  • How to ignore empty text element while using DOM to parse xml??

    hi everyone,
    i am using DOM to parse an xml file. But i dont know how to cinfig the DocumentBuilderFactory to ignore empty text elements.
    For example, i have an xml file like this:
    <?xml version="1.0" encoding="UTF-8" ?>
    <root>
        <child>Tom</child>
        <child>Jerry</child>
    </root>I used the following codes to parse:
    String fname = "Tom-and-Jerry.xml";
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    factory.setIgnoringElementContentWhitespace(true);
    factory.setIgnoringComments(true);
    DocumentBuilder builder = domFactory.newDocumentBuilder();
    // Generate a DOM tree from the DOM builder.
    org.w3c.dom.Document dom = builder.parse(new File(fname));
    org.w3c.dom.NodeList list = dom.getChildNodes();
    for (int i=0; i<list.getLength(); i++) {
        System.out.println("Child No."+i);
        System.out.println("NodeName="+list.item(i).getNodeName());
        System.out.println("NodeType="+getType(list.item(i).getNodeType()));
        System.out.println("NodeValue="+list.item(i).getNodeValue());
        System.out.println();
    }The result is not exactly what i want ---- there are 5 children in list!! The 1st, 3rd and 5th are #text and their values are all empty. Only the 2nd and the 4th are the child that i expect.
    It is really troublesome to get all these silly empty texts as sub elements. I tried to get rid of them, but i failed. I just dont understand why factory.setIgnoringElementContentWhitespace(true) did not work.
    Anyone can help me? thanks.
    Heavy ZHENG

    I just dont understand why factory.setIgnoringElementContentWhitespace(true) did not work.That only does something if the XML has a DTD that enables it to know what whitespace can be ignored and what is significant. The API documentation for the method refers you to this document:
    http://www.w3.org/TR/REC-xml#sec-white-space

  • I need a method for ignoring empty lines

    Hi to all,
    i need a method for ignoring empty lines when my program reades a file like that
    start of file
    print "xoxox"
    //ignore this line
    println"xaxaxa"
    //ignore this line
    end of file
    cheers

    Are you having trouble detecting these empty lines? Or are you having trouble not processing them once you've detected them?
    For the first case, you neeed to define "empty." I assumed it meant "containing no characters," and that's what the first solution shows. Your example looks like "empty" means "starts with comment characters."
    For the second case, you ignore them by just not doing anything: read a line
    if (it is not empty) { // by whatever criteria you define for "empty"
       do something with it
    }

  • How to fill empty parameter (selection-option)

    Hi!
    On selection screen I have two parameters (s_egrid and s_empid). If user enter something in first (but not in second) one, second one should be filled from database.
    The problem is that I don't know how to fill the empty parameter.
    Let's say that i have an internal table i_zemployee with list of all necessary employee Id's (stored in field empid)
    if I Ioop like this
    loop at i_zemployee into wa_zemployee.
        insert wa_zemployee-empid into s_empid.
      endloop.
    ... I did something stupid but i hope that you understand what i need:
    s_emipd[1] = 'u1'.
    s_emipd[2] = 'u7'.
    s_emipd[3] = 'u9'.
    ... like array of user id's.
    and this s_empid I need in my next SELECT statement like
    SELECT * FROM ...
        WHERE empid in s_empid.
    if someone knows the solution thanks in advance!
    T.

    HI try something like this...
    tables: mara, makt.
    data: begin of itab occurs 0,
    matnr like mara-matnr,
    end of itab.
    data : begin of btab occurs 0,
    maktx like makt-maktx,
    end of btab.
    ata mak like makt-maktx.
    DATA : return like ddshretval occurs 0 with header line.
      data: begin of dynpfields occurs 3.
              include structure dynpread.
      data: end of dynpfields.
    select-options: p_matnr for mara-matnr.
    select matnr from mara into table itab where matnr IN p_matnr.
    loop at itab.
    write: / itab-matnr.
    endloop.
    Initialization.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_matnr.
    REFRESH ITAB.
    SELECT matnr FROM mara INTO TABLE ITAB.
    call function 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
    retfield = 'MATNR '
    dynprofield = 'P_MATNR '
    dynpprog = sy-REPID
    dynpnr = sy-dynnr
    value_org = 'S'
    TABLES
    value_tab = ITAB
    return_tab = return.
    select single maktx from makt into  mak where matnr = return-fieldval.
    p_matnr = return-fieldval.
    refresh return.
    clear return.
    move 'P_MAKTX' to dynpfields-fieldname.
    move mak to dynpfields-fieldvalue.
    append dynpfields.
    CALL FUNCTION 'DYNP_VALUES_UPDATE'
      EXPORTING
        dyname                     = 'SY-REPID'
        dynumb                     = '1000'
      tables
        dynpfields                 = dynpfields
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    refresh return.
    clear return.
    validate according to ur requirement.
    Regards
    Syed A

  • Ignore Empty Artboards?

    I am using a slightly modified version of this script to export icons.
    http://www.ericson.net/content/2011/06/export-illustrator-layers-andor-artboards-as-pngs-a nd-pdfs/
    Say I have a document with three artboards named @1x, @2x, @3x, I am using the script to export each layer * each artboard to create my different size icons. Now the problem is that not every layer has artwork on every artboard. Is there a way to ignore empty artboards per layer? or At least how can I tell if an artboard is blank when a specific layer is selected?

    I am using a slightly modified version of this script to export icons.
    http://www.ericson.net/content/2011/06/export-illustrator-layers-andor-artboards-as-pngs-a nd-pdfs/
    Say I have a document with three artboards named @1x, @2x, @3x, I am using the script to export each layer * each artboard to create my different size icons. Now the problem is that not every layer has artwork on every artboard. Is there a way to ignore empty artboards per layer? or At least how can I tell if an artboard is blank when a specific layer is selected?

  • Export-CMTaskSequence exports content of dependencies and is ignoring WithContent parameter

    I'm try to build a script to export my task sequence with dependencies without the content.
    But when I use this command line
    get-CMTaskSequence
    -Name
    "$Tsname"
    |
    Export-CMTaskSequence
    -WithDependence
    $true
    -WithContent
    $false -ExportFilePath
    "$rootExportPath$TSName.zip"
    The folder "$rootExportPath$TSName_files"
    is still created. How can I really export the task sequence and the package/application information only. Does anyone know how these parameters really work, or is this by design?
    Note: I have created a seperate script to copy all content to the
    $rootExportPath$TSName
    folder in a way that the structure remains.

    Hi,
    I recommend asking ConfigMgr questions over in the ConfigMgr PowerShell forum:
    https://social.technet.microsoft.com/Forums/en-US/home?forum=configmanagersdk
    EDIT: If future people find this thread, the new thread is here:
    https://social.technet.microsoft.com/Forums/en-US/6cab77db-9003-448e-9fde-a2548027bbe9/exportcmtasksequence-exports-content-of-dependencies-and-is-ignoring-withcontent-parameter?forum=configmanagersdk
    Don't retire TechNet! -
    (Don't give up yet - 13,085+ strong and growing)

  • How do I have Adobe Acrobat 9.0 calculate the minimum of 10 fields BUT ignore empty fields?

    How do I have Adobe Acrobat 9.0 calculate the minimum of 10 fields BUT ignore the field if it is empty? Currently it counts blanks as 0 so when it comes up with the minimum it will always show 0 unless all 10 fields have values in them.

    You could loop through the fields and add the non-blank values to an array, and use the Math.min method to get the minimum. Here's an example custom Calculate script:
    // Custom calculate script
    (function () {
        // Array to hold non-blank field values
        var fa = [];
        // Loop through the fields...
        for (var i = 1; i < 11; i += 1) {
            // ...get the current field value, as string...
            var v = getField("text1." + i).valueAsString;
            // ...if not blank, add value to the array, as a number
            if (v) fa.push(+v);
        // Set this field's value to the minimum value in the array, otherwise blank
        event.value = fa.length > 0 ? Math.min.apply(null, fa) : "";
    This assumes the fields are named "text1.1", "text1.2", ..."text1.10" and that they're numeric. This type of field naming simplifies the code, so it would be good to use something similar and adjust the getField statement to match.

  • Ignore empty Payload

    Hello All,
    I have a Proxy-PI-SOAP scenario. There are situations when proxy generates messages with no payload. In that situation, it throws an error in PI (RWB -> Message Monitoring -> AE) as there is no node getting generated.
    I can apply the rule in Proxy code not to send the message to PI in case there is no payload, but business won't allow that.
    So, I have to handle this in PI.
    I can't use the dummy receiver, as it will again throw an error in case it is unable to find the receiver (I can't create a dummy receiver on the Prod box as per my Client).
    I would like to know what other option I am left with? I don't want to encounter any errors in the MONI or elsewhere. How I can "stop" the processing of those messages which are having empty payload?
    Just to add - I am using XSLT mapping.
    Any suggestions will be highly appreciated. Thanks for your time.
    --Abhi
    Edited by: Abhi_1516 on Jan 4, 2010 7:34 PM

    Hi Abhi,
    You can use the "Ignore" option in the Receiver Determination. Put a condition for the root node existence, if found send the message to the desired target else use the option "If no receiver is found" and check the radio button "Ignore".
    Just to let you know that with Ignore option, the messages will still show successful in RWB.
    Hope this helps.
    Regards,
    Neetesh

  • Ignore empty rows at end

    I have a csv file, which has empty lines at the end.
    My controlfile has a default sequence, due to which it is uploading all the empty lines at the end.
    How can i tell sql*loader to ignore these lines ?
    load data append into table Test_Data_staging
    fields terminated by "," optionally enclosed by '"' trailing nullcols          
    SERIAL_NUMBER SEQUENCE(COUNT,1),
    TEST_DATA_VERSION,
    ENVIRONMENT,
    TEST_DATA_OWNER
    )

    Hi,
    you can add a when clause (WHEN firstcolumn != BLANKS), here is an example:
    LOAD DATA
    INFILE 'C:\Temp\Book1.csv'
    BADFILE 'C:\Temp\Book1.bad'
    DISCARDFILE 'C:\Temp\Book1.dsc'
    TRUNCATE
    INTO TABLE "XTEST"
    WHEN (col1 != BLANKS)
    FIELDS TERMINATED BY ','
    OPTIONALLY ENCLOSED BY '"' AND '"'
    TRAILING NULLCOLS
    (COL1,
    COL2,
    COL3)or if you want:
    LOAD DATA APPEND INTO TABLE TEST_DATA_STAGING
    WHEN (TEST_DATA_VERSION != BLANKS)
    FIELDS TERMINATED BY ","
    OPTIONALLY ENCLOSED BY '"'
    TRAILING NULLCOLS
    SERIAL_NUMBER SEQUENCE(COUNT,1),
    TEST_DATA_VERSION,
    ENVIRONMENT,
    TEST_DATA_OWNER
    {code}
    Edited by: user11268895 on Aug 30, 2010 1:56 PM
    Edited by: user11268895 on Aug 30, 2010 1:56 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Oracle ignores max_dispatchers parameter

    Hello,
    Does anyone know why Oracle would ignore the max_dispatchers parameter?
    [root@prod1 ~]# sps d00
    oracle 1507 1 0 16:34 ? 00:00:04 ora_d000_prod1
    oracle 1509 1 0 16:34 ? 00:00:03 ora_d001_prod1
    You can see the two above. I can see in the alert log that the database starts two up:
    [root@diag1 bdump]# less alert_prod1.log
    db_file_multiblock_read_count= 16
    db_create_file_dest = +DISKGROUP1
    db_recovery_file_dest = +DISKGROUP1
    db_recovery_file_dest_size= 51539607552
    standby_file_management = AUTO
    db_flashback_retention_target= 2880
    undo_management = AUTO
    undo_tablespace = UNDOTBS1
    undo_retention = 1800
    remote_login_passwordfile= EXCLUSIVE
    db_domain =
    service_names = prod,prod1
    dispatchers = (protocol=TCP), (DESCRIPTION=(SDU=32768) (ADDRESS=(PROTOCOL=TCP)))
    shared_servers = 1
    max_shared_servers = 8
    max_dispatchers = 1
    local_listener = LISTENER_PROD1
    session_cached_cursors = 128
    job_queue_processes = 10
    cursor_sharing = SIMILAR
    background_dump_dest = /oracle/admin/prod1/bdump
    user_dump_dest = /oracle/admin/prod1/udump
    core_dump_dest = /oracle/admin/prod1/cdump
    audit_file_dest = /oracle/admin/prod1/adump
    db_name = prod
    db_unique_name = prod1
    open_cursors = 4096
    optimizer_mode = FIRST_ROWS_10
    pga_aggregate_target = 1881145344
    optimizer_dynamic_sampling= 4
    dg_broker_start = TRUE
    PMON started with pid=2, OS id=1485
    PSP0 started with pid=3, OS id=1487
    MMAN started with pid=4, OS id=1489
    DBW0 started with pid=5, OS id=1491
    LGWR started with pid=6, OS id=1493
    CKPT started with pid=7, OS id=1495
    SMON started with pid=8, OS id=1497
    RECO started with pid=9, OS id=1499
    CJQ0 started with pid=10, OS id=1501
    MMON started with pid=11, OS id=1503
    Tue May 11 16:34:08 2010
    starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
    MMNL started with pid=12, OS id=1505
    Tue May 11 16:34:08 2010
    starting up 1 dispatcher(s) for network address '(DESCRIPTION=(SDU=32768)(ADDRESS=(PROTOCOL=TCP)))'...
    starting up 1 shared server(s) ...
    DMON started with pid=16, OS id=1513
    Tue May 11 16:34:08 2010
    ALTER DATABASE MOUNT
    Now this is a Dataguard configuration. Would there be a dispatcher for the Dataguard as well by default? Irrespective of my parameters?
    The version of the Oracle Database is:
    10.2.0.4.0
    Thanks for your time.

    # listener.ora Network Configuration File: /oracle/product/10g/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    LISTENER_DG =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = prod1)(PORT = 1949))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /oracle/product/10g)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = prod1_DGMGRL)
    (SERVICE_NAME = prod1)
    (SID_NAME = prod1)
    (ORACLE_HOME = /oracle/product/10g)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = prod1)(PORT = 1948))
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    )

  • Username prompt and empty parameter

    Hi All,
        I am installing the Business Object on Linux machine. There are two issues that comes up at times even after the successful installation of the BO. The problems are:
    1) User name and password is provided during the installation but the report prompts for the same at times. Mostly the prompt is not being displayed after the installation of BO but when again a fresh installation is done it might prompt also.
    2) Parameter and their values are given in the report files but sometimes the parameter values is being displayed "Empty" when the report parameters are expanded for scheduling due to which scheduling of reports also fails. In this case too parameters values are displayed correctly in most of the case, but there are instances when after the successful installation of the BO(Business Object) again on another instance this problem occurs.
    The log for the business object rpm installation does not shows an error even the above stated problem comes up.
    Can anyone suggest how can the installation be made successful so that the issues as stated above does not occur again. If you need any more information in regard to this problem do let me know.

    Please re-post if this is still an issue to the Business Objects Forum or purchase a case
    and have a dedicated support engineer work with your directly

  • Query on MultiProvider by ignoring empty columns

    Hi Experts,
    I have a MultiProvider which contains 2 InfoCubes. InfoCube 1 (IC 1) contains Transport Request (TR) Status information, IC 2 contains Transport Request Object List information. Both ICs are related by the TR IDs. Not every TR has a Object List (better: Objects). Therefore, in IC 1 TRs exist that are not listed in IC 2.
    This leads to empty columns in the MultiProvider due to the union operation which is processed on both ICs. In particular the object related columns (object name, type, etc) are empty, if the TR does have a status information but at the same time without having any object listing, e. g. :
    TR ID - Status - Object Name - Object Type
    T123 - Successfull - # - #
    (# = Empty)
    When executing a query on this MultiProvider which counts the number of Objects I get the correct result, when NOT reporting on the TR ID level. However, if I execute a query which counts the number of Objects per Transport Request (TR ID), I get at least a "1" for EVERY transport request even if there does not exist ANY object within that TR ID (see example above).
    So my question: is there any way to ignore TR IDs when no object information exist for this Transport Request? Thus, the query would only report an object count > 0 if at least one object is associated to a certain TR ID.
    Many thanks for your help!
    Best regards
    Tobias

    I chose
    Exception Agg: Counter for All Detailed Values That Are Not Zero, NUll, or Error
    Ref Char: Object Name
    Activated Calc after Aggr.
    Did not change anything. I still get a table which shows the TR ID (eg T123), Object Name (Empty = #) and Object Count = 1
    I don't get why empty cells are part of the calculation even if the excep. aggr. is configured as described above...
    Any further ideas on that?
    Many thanks!

  • Sumproduct and ignoring empty cells

    Hi there!
    I am working on creating a grade book with Numbers. And I would need help to find my way around a problem.
    To calculate the general grades in the "I" column, I used the following formula to assign coefficients (weight of each assignement on line 2) to a range of cells containing a grade (result of a formula calculating the average grade for each assignment).
    *I3 =SUMPRODUCT(B3:H3,$B$2:$H$2)*
    (Line 3 is for a specific student, columns B-H for the average grades of students on 7 types of assignments that need to be shown).
    I need to be able to give a general grade at any time during the semester, before all assignments taken.
    Problem:
    I cannot get a general grade (I3) until all the averages of all the assignments(B3:H3) are calculated (I guess because they contain references to cells with formulas: red arrow displayed until grades are entered).
    Question:
    Is there a way to calculate the general grades, respecting the assigned coefficients while ignoring the cells that don't have a numbered result.
    The idea would be =SUMPRODUCT(cells with numbered result (B3:H3), $B$2:$H$2 only match when corresponding line 3 cell has numbered result)
    I AM REALLY SORRY, I am new at this and it's hard for me to explain the problem in a more concise manner. I hope I made some sense!
    THANK YOU FOR YOUR PATIENCE!

    You were right, the reason why I was getting a red arrow is because AVERAGE cannot handle empty values.
    Using =IF(COUNT(B2:D2)=0,0,SUM(B2:D2)/COUNT(B2:D2)) will return 0 as a grade...which would lower the actual final grade of a student.
    That is why I was wondering if cells with no numbered value (or now with 0% as a value) could be ignored.
    To have an average of the cells with an actual grade, respecting their Weight, I would need to have a (group of) function(s) doing the following:
    1-Select each cell with value > 0% and multiply it by the assigned WEIGHT.
    2-Sum of the individual products obtained.
    3-(multiplied by 100%)divided by sum of all used assigned Weights
    In the following picture you will see the actual grades for Interro and Participation, the 0% grades that should be ignored, the Total (20%) that is wrong because these cells were not ignored ...and the (hopefully) Real Total (78.8%) that I obtained typing:
    =(Interrogations 'Student'*'Interrogations ' WEIGHT+Participation 'Student'*Participation WEIGHT)*Total WEIGHT/('Interrogations ' WEIGHT+Participation WEIGHT)
    !http://i249.photobucket.com/albums/gg221/KathyFR/RealAverage.jpg!
    Can you think of formula that would select the cells and make the calculations on its own (and that I could then drag to calculate the current total grade of all students throughout the semester)?
    (Now, I don't want to waste too much of your time...I can understand if you want to give up on me! Thanks for all you've done already! Hope you have some fun thinking about the problem).

  • Ignoring Optional parameter during OLE method calling

    Hi guys,
    I got a problem:
    Application.Workbooks.OpenXML(Filename, Stylesheets, LoadOption) here's a defination from Microsoft help.
    Stylesheets and LoadOption are optional parameters.
    ABAP calling:
      CALL METHOD OF workbooks 'OpenXML'
        EXPORTING #1 = filename
                           #2 = '3'
                           #3 = 2 .
    How can ignore parameter #2(Stylesheets) in the calling statement? I found no documentation about  calling functions ignoring some optional parameters. Normaly there's posibility to explicitely define passing parameter, for example:
        Application.Workbooks.OpenXML _
            Filename:="customers.xml", _
            LoadOption:=xlXmlLoadImportToList
    With kind regards
    Long.

    UP

  • Ignore empty rows

    I have the following table structure
    AccountTable
    ...accountID
    ...RegionID
    ...CategoryID
    ...subtypeID
    CategoryTable
    ...CategoryID
    ...accountID
    RegionTable
    ...RegionID
    ...accountID
    SubtypeTable
    ...SubtypeID
    ...accountID
    I want to form a query which will select all accounts belonging to a category,region & subtype(all AND).suppose if any of this table doesnt have data then the query should ignore that table and get data for the other two conditions. is there any way to do that in PL/SQL??(no procedures/functions)

    Hi,
    My problem is a bit different. in the tables i've included the wrong attribute.
    CategoryTable
    categoryID
    criteriaID
    RegionTable
    regionID
    criteriaID
    I want to get all the accounts belonging to particular category/region with a particular criteria ID(All AND).so i have to have a query like
    select accountID from accountstable acc where
    acc.regionID in (select regionID from regiontable where criteriaID = 34)
    and
    acc.categoryID in (select categoryID from categorytable where criteriaID = 34)
    but the problem is if any one of category/region is not having record it wont get me rows for the other condition
    I cameup with a solution like this
    select accountID from accountstable acc where
    acc.regionID in (select regionID from regiontable where criteriaID = 34)
    or
    (select count(regionID) from regiontable where criteriaID = 34) = 0)
    and
    acc.categoryID in
    select categoryID from categorytable where criteriaID = 34)
    or
    (select count(categoryID ) from categorytable where criteriaID = 34) = 0)
    This works fine as it negates the condition when no row is found. the pblm is it is taking more time
    any suggestion??

Maybe you are looking for