Hidden query

hi,
one of my query in my database taking too much time when compared with uat server,when i checked the query,its status seem active but i couldnt get exact query from v$sql,i used sql_id .but it shows empty row.but still query is active and still running.i couldnt the exact query even if i have sql_id pls suggest me.
regards
faruk

how do you known the query of you said is take too much time?
the process alse use much sessions to process the sql.
so .make a 10046 trace for this session to known what it to do?

Similar Messages

  • How can I use a single query panel with two view criteria?

    Hi all,
    I have a requirement to allow users to change the "display mode" on a search results tree table for an advanced search page. What this will do is change the structure of how the data is laid out. In one case the tree table is 3 levels deep, in the other case it's only 2 with different data being at the root node.
    What I've done so far:
    1) I exposed the data relationship for these two ways of viewing the data in the application module's data model.
    2)  I created a view criteria in the two view objects that are at the root of the relationships, where (for simplicity sake) I'm only comparing a single field.
    This is in one view object:
    <ViewCriteria
        Name="PartsVOCriteria"
        ViewObjectName="gov.nasa.jpl.ocio.qars.model.views.PartsVO"
        Conjunction="AND">
        <Properties>... </Properties>
        <ViewCriteriaRow
          Name="vcrow23"
          UpperColumns="1">
          <ViewCriteriaItem
            Name="PartDiscrepantItemsWithIRVO"
            ViewAttribute="PartDiscrepantItemsWithIRVO"
            Operator="EXISTS"
            Conjunction="AND"
            IsNestedCriteria="true"
            Required="Optional">
            <ViewCriteria
              Name="PartDiscrepantItemsWithIRVONestedCriteria"
              ViewObjectName="gov.nasa.jpl.ocio.qars.model.views.PartDiscrepantItemsWithIRVO"
              Conjunction="AND">
              <ViewCriteriaRow
                Name="vcrow26"
                UpperColumns="1">
                <ViewCriteriaItem
                  Name="InspectionRecordNumber"
                  ViewAttribute="InspectionRecordNumber"
                  Operator="="
                  Conjunction="AND"
                  Value=""
                  Required="Optional"/>
              </ViewCriteriaRow>
            </ViewCriteria>
          </ViewCriteriaItem>
        </ViewCriteriaRow>
      </ViewCriteria>
    and this is in the other view object:
    <ViewCriteria
          Name="IRSearchCriteria"
          ViewObjectName="gov.nasa.jpl.ocio.qars.model.views.InspectionRecordVO"
          Conjunction="AND">
          <Properties>... </Properties>
          <ViewCriteriaRow
             Name="vcrow7"
             UpperColumns="1">
             <ViewCriteriaItem
                Name="InspectionRecordNumber"
                ViewAttribute="InspectionRecordNumber"
                Operator="="
                Conjunction="AND"
                Required="Optional"/>
          </ViewCriteriaRow>
       </ViewCriteria>
    3) I had a query panel and tree table auto-generated by dragging the data control for ONE of the view object data relationship that's exposed in the app module. Then I created a second query panel and tree table the same way but using the data control for the other. I'm hiding one of the query panels permanently and toggling the visibility of the tree tables based on the display mode the user chooses. Both tables have separate bindings and iterators.
    This is a portion of the page definition:
    <executables>
        <variableIterator id="variables"/>
        <searchRegion Criteria="IRSearchCriteria"
                      Customizer="oracle.jbo.uicli.binding.JUSearchBindingCustomizer"
                      Binds="InspectionRecordVOIterator"
                      id="IRSearchCriteriaQuery"/>
        <iterator Binds="InspectionRecordVO" RangeSize="25"
                  DataControl="QARS_AppModuleDataControl"
                  id="InspectionRecordVOIterator" ChangeEventPolicy="ppr"/>
        <iterator Binds="Root.QARS_AppModule.PartsVO1"
                  DataControl="QarsMasterAppModuleDataControl" RangeSize="25"
                  id="PartsVO1Iterator"/>
        <searchRegion Criteria="PartsVOCriteria"
                      Customizer="oracle.jbo.uicli.binding.JUSearchBindingCustomizer"
                      Binds="PartsVO1Iterator" id="PartsVOCriteriaQuery"/>
      </executables>
    4) I've created a custom queryListener to delegate the query event.
    This is in my advanced search jsp page:
    <af:query id="qryId1" headerText="Search" disclosed="true"
                      value="#{bindings.IRSearchCriteriaQuery.queryDescriptor}"
                      model="#{bindings.IRSearchCriteriaQuery.queryModel}"
                      queryListener="#{pageFlowScope.SearchBean.doSearch}"
                      queryOperationListener="#{bindings.IRSearchCriteriaQuery.processQueryOperation}"
                      resultComponentId="::resId2" maxColumns="1"
                      displayMode="compact" type="stretch"/>
    This is in my backing bean:
    public void doSearch(QueryEvent queryEvent) {
          String bindingName = flag
             ? "#{bindings.IRSearchCriteriaQuery.processQuery}"
             : "#{bindings.PartsVOCriteriaQuery.processQuery}";
          invokeMethodExpression(bindingName, queryEvent);
       private void invokeMethodExpression(String expr, QueryEvent queryEvent) {
          FacesContext fctx = FacesContext.getCurrentInstance();
          ELContext elContext = fctx.getELContext();
          ExpressionFactory eFactory = fctx.getApplication().getExpressionFactory();
          MethodExpression mexpr =
             eFactory.createMethodExpression(elContext, expr, Object.class, new Class[] { QueryEvent.class });
          mexpr.invoke(elContext, new Object[] { queryEvent });
    When no inspection record number (the only search field so far)  is supplied in the query panel, then it behaves correctly. Namely, the tree tables shows all search results. However, when an inspection record number is supplied the tree table that was created with the query panel in use (remember there are two query panels, one of them is hidden) shows a single result (this is correct) while the other tree table (the one with the hidden query panel that isn't in use) shows all results (this is NOT correct).
    Is what I'm trying to accomplish even doable? If so, what am I missing?
    I'm using JDeveloper 11.1.1.7
    Thanks,
    Bill

    I ended up keeping one query panel permanently visible and the other permanently hidden. When performing a search using the table that has the hidden query panel, I seed the query descriptor for the hidden query panel using the visible query panel's query descriptor and then delegate the request:
       public void doSearch(QueryEvent queryEvent) {
          String bindingName = null;
          if(isIrTableRendered()) {
             bindingName = "#{bindings.IRSearchCriteriaQuery.processQuery}";
          } else {
             seedPartsQueryDescriptor();
             bindingName = "#{bindings.PartsVOCriteriaQuery.processQuery}";
             queryEvent = new QueryEvent(partsQuery, partsQuery.getValue());
          invokeMethodExpression(bindingName, queryEvent);
       private void seedPartsQueryDescriptor() {
          ConjunctionCriterion criterion = irQuery.getValue().getConjunctionCriterion(); 
          for(Criterion criteria : criterion.getCriterionList()) {
             AttributeCriterion attributeCriteria = (AttributeCriterion)criteria;
             List values = attributeCriteria.getValues();
             String qualifiedName = attributeCriteria.getAttribute().getName();
             int indexOfDot = qualifiedName.lastIndexOf(".");
             String name = indexOfDot < 0
                ? qualifiedName
                : qualifiedName.substring(indexOfDot + 1);
             ConjunctionCriterion partsCriterion =
                partsQuery.getValue().getConjunctionCriterion();
             for (Criterion partsCriteria : partsCriterion.getCriterionList()) {
                AttributeCriterion partsAttributeCriteria =
                   (AttributeCriterion) partsCriteria;
                String partsQualifiedName =
                   partsAttributeCriteria.getAttribute().getName();
                if (partsQualifiedName.endsWith(name)) {
                   partsAttributeCriteria.setOperator(attributeCriteria.getOperator());
                   List partsValues = partsAttributeCriteria.getValues();
                   partsValues.clear();
                   for (int i = 0, count = values.size(); i < count; i++) {
                      partsValues.set(i, values.get(i));
       private void invokeMethodExpression(String expr, QueryEvent queryEvent) {
          FacesContext facesContext = FacesContext.getCurrentInstance();
          ELContext elContext = facesContext.getELContext();
          ExpressionFactory expressionFactory =
             facesContext.getApplication().getExpressionFactory();
          MethodExpression methodExpression =
             expressionFactory.createMethodExpression(elContext, expr, Object.class, new Class[] { QueryEvent.class });
          methodExpression.invoke(elContext, new Object[] { queryEvent });
    Then when the advanced/basic button is pressed for the visible query panel, I programmatically set the same mode for the hidden query panel:
       public void handleQueryModeChange(QueryOperationEvent queryOperationEvent) {
          if(queryOperationEvent.getOperation() == QueryOperationEvent.Operation.MODE_CHANGE) {
             QueryMode queryMode = (QueryMode) irQuery.getValue().getUIHints().get(QueryDescriptor.UIHINT_MODE);
             QueryDescriptor queryDescriptor = partsQuery.getValue();
             queryDescriptor.changeMode(queryMode);
             AdfFacesContext.getCurrentInstance().addPartialTarget(partsQuery);

  • Using DATA_CELL and multiple queries into one table

    Hi WAD experts,
    I have been trying to work out how to combine multiple hidden query result sets in their own tables in the template, into one table displayed as if the data originated from one query.
    I have been looking at using the DATA_CELL method of "modify table" class.
    Has anyone had to do this before - and if so do you have any clues as to how best to do this ?
    Thanks
    Chris

    Here is what I want:
    Say I have a query that tells me about how many items were sold at a hardware store for each week. Then the output would look something like this:
    Week,Item,Num_Sold
    13,Hammer,15
    13,Nail,594
    13,Screw,398
    14,Hammer,16
    14,Nail,382
    14,Screw,331
    But I want my output to look like this:
    <space>,13,14 <-- these would be the week numbers
    Hammer,15,16
    Nail,594,382
    Screw,398,331
    I asked this same question in a SQL-only forum and one person responded that they did not know how to do that. But I figure that this is done often enough that there must be some Open Source program that can transform the output data into a table. As you can see, it's not a pure transform. It's more like I take one column, make that the x-axis, another column, make that the y-axis, and "plot" the data based on the two columns. It's kinda like taking 1D data and making it 2D. There's no existing open source program which does this? I figure that I could just give the program my SQL queries, specify some rule such as "Make the first column of the resultset the row, make the second column the column and create a table with the 3rd row, using the first two rows to map the 3rd row into the table". Note that I think this only works with 3 columns.
    Anyway, if there is no simple program that already does this, I can make a program to do what I just described. I just asked the question here because I figure that there are a lot of people knowledgeable about SQL and Java on this forum and that someone would know of a tool which already does what I want if one exists.

  • Webi_plugin.properties is not being used

    Hi,
    I would like to strip some functions of the WebI Java Report Viewer. This should be possible since XI 3.1 (I installed XI 3.1 SP3). I don't want to add own java classes to the WebI UI, I must remove some standard ui elements.
    The modification (s. below) doesn't work - the file will be ignored - the applet didn't load it (trace inside the Java Console of the Browser).
    I try to create the webi_plugin.properties file and place the file under
    <XIR31InstallPath>/BusinessOb
    jects/<YourAppServerName>/webapps/Analytical  Reporting/webiAp
    plet/
    Here the content of the file
    #    Extension Point     
    # Determines visibility of "Edit Query Panel" button
    JavaReportPanel.query.panel=hidden
    # Reporting toolbars
    JavaReportPanel.reporting.toolbar.main=enable
    JavaReportPanel.reporting.toolbar.reporting=hidden
    JavaReportPanel.reporting.toolbar.formatting=hidden
    JavaReportPanel.reporting.toolbar.navigation=enable
    # Reporting Frames
    JavaReportPanel.reporting.frame.data=enable
    JavaReportPanel.reporting.frame.reportmap=hidden
    JavaReportPanel.reporting.frame.templates=hidden
    JavaReportPanel.reporting.frame.properties=hidden
    # Reporting actions (contextual menus, drag and drop, report element resizing,formula edition)
    JavaReportPanel.reporting.actions=hidden
    # Query toolbars
    JavaReportPanel.query.toolbar.main=enable
    JavaReportPanel.query.toolbar.query=hidden
    Has anybody an idea / advice for me?

    Did you ever get past this?  I suspect maybe the webiviewer.properties ALLOW_CUSTOMIZATION setting was not set to YES.  What became of this.  I am doing similar things, which is why I ask.

  • Why one user can not see plan output for some orgs while other users can?

    We have several inventory/planning orgs. Suddenly one of the users is not seeing any plan output for some organizations. While other users are able to see plan out (planner workbench) for all org.
    All users use the same responsibility.
    Deleted all the folders to eliminate hidden query in default folder.
    Any other thoughts?
    Edited by: 918894 on May 5, 2013 10:22 PM

    The issue is resolved.
    In the user preferences, one user has Inventory Category Set and other user has Planning Category Set as the default. Items belonging to one Org were not assigned Planning Category Set. Thus they were not showing for the other user.
    Thanks for the response.

  • Assign one characterstic to Chart in WAD

    Hello Experts
    I am developing a web report in WAD 7.0.
    In my query, I have 3 characteristics and 1 KF.
    Is it possible to have the chart show values only for 1 characteristic and the key figure?
    Eg - I have sales person, field office, manager and sales amount
    I want the chart to only show values for sales person and sales amount.
    Thank you
    Kashka.

    Thanks Raj.
    I can create another query - but the thing is, I need to display the main query on the web with all 3 characteristics. But the chart should show just the values for Sales person and sales amount. I'm guessing from your answer that it is not possible to just pick one characteristic.
    If the user filters on a Sales person, the chart should dynamically change to display the values only for that sales person.
    Is it possible for me to create a new query, add it to the web template, hide that analysis web item, pass on the value of the selection made on the first query to the hidden query, and assign it to the chart? (eg - if on the first query the user filters on Sales person A, it should also change the value of my hidden query accordingly, and the chart should also change).
    Hope I'm clear!
    Thanks
    Kashka.

  • Using Extensions Points WebI by webi_plugin.properties

    Hi,
    I would like to strip some functions of the WebI Java Report Viewer. This should be possible since XI 3.1 (I installed XI 3.1 SP3). I don't want to add own java classes to the WebI UI, I must remove some standard ui elements.
    The modification (s. below) doesn't work - the file will be ignored - the applet didn't load it (trace inside the Java Console of the Browser).
    I try to create the webi_plugin.properties file and place the file under
    <XIR31InstallPath>/BusinessObjects/<YourAppServerName>/webapps/Analytical  Reporting/webiApplet/
    Here the content of the file
    #    Extension Point     
    # Determines visibility of "Edit Query Panel" button
    JavaReportPanel.query.panel=hidden
    # Reporting toolbars
    JavaReportPanel.reporting.toolbar.main=enable
    JavaReportPanel.reporting.toolbar.reporting=hidden
    JavaReportPanel.reporting.toolbar.formatting=hidden
    JavaReportPanel.reporting.toolbar.navigation=enable
    # Reporting Frames
    JavaReportPanel.reporting.frame.data=enable
    JavaReportPanel.reporting.frame.reportmap=hidden
    JavaReportPanel.reporting.frame.templates=hidden
    JavaReportPanel.reporting.frame.properties=hidden
    # Reporting actions (contextual menus, drag and drop, report element resizing,formula edition)
    JavaReportPanel.reporting.actions=hidden
    # Query toolbars
    JavaReportPanel.query.toolbar.main=enable
    JavaReportPanel.query.toolbar.query=hidden
    Has anybody an idea / advice for me?

    Hello Ofir,
    You simply need to use the webi_plugin.properties file parameter WebI.classpath to specify the list of jar files you need to use with your extension point
    For instance you may write :
    WebI.classpath=d:/Business Objects/plugin;jide-grids.jar;biws-langpack-resource_en.jar;biws-langpack-
    resource_fr.jar;activation-1.1.jar;axiom-api-1.2.5.jar;axiom-impl-1.2.5.jar;axis2-kernel-1.3.jar;axis2-
    saaj-1.3.jar;axis2-xmlbeans-1.3.jar;backport-util-concurrent-2.2.jar;commons-codec-1.3.jar
    Hope that helps,
    David.

  • Passing sql report query field value to hidden item in javascript

    I have sql report which has in each row one html button. Let us say that query SHOULD look like (two columns, to be easy to get the point):
    select 1 SECURITY_ID
      , '<input type="BUTTON" value="Top10" onClick="javascript:Top10Click ('||SECURITY_ID||');" >' BTN
    FROM DUAL;
    function Top10Click (vValue) {
      html_GetElement('P31_PROCESS_VALUE').value = vValue;
      doSubmit('GO_BACK');
    } <br><br>
    where P31_PROCESS_VALUE is hidden item where i want to store value of row where click happened.
    <br><br>
    In every button i want to pass row value "SECURITY_ID" to Top10Click function for each row differently.
    <br><br>
    Problem is that when I place double qoute then js is not working, else js is ok but "SECURITY_ID" is passed as constant not as live SQL value.
    <br><br>
    Any help...THX!
    <br>
    Demo is on oracle:
    http://htmldb.oracle.com/pls/otn/f?p=26216:1
    Workspace entry:
    WK: FUNKY
    UN: [email protected]
    PW: qwertz

    I have tried to unify the solution, so it looks like:
    select 1 SECURITY_ID
      , '<input type="BUTTON" value="Top10" onClick="javascript:Top10Click ('||'&quot_X;'||SECURITY_ID||'&quot_X;'||');"  >' BTN
    FROM DUAL;change '&quot_X;' (remove "_X" part ... so it can be seen in HTML properly!
    THX Denes for great ideas...

  • How To Use a Hidden Page Item within an SQL Report Query without Submitting

    Hi,
    Using: Oracle ApEx 3.0.1
    I have an sql report region that contains a hidden page item as part of the "where clause". My problem is, based on a value entered by the user, I need to assign this value enetered to my hidden item, so that it can be used within the where condition of my sql but this would need to be done without actually submitting the form.
    At the moment, I can set the value via an on-demand process but my SQL is still not returing any values as the hidden page item within the query is not set (as page has not been submitted).
    Can anybody please assist as I am not sure how to do this and whether in actual fact, this is possible to do, without having submitted the page.
    Thanks.
    Tony.
    Edited by: Tony F. on Nov 12, 2011 1:39 AM

    You can set a session value using a dummy ajax call e.g:
    Add the following to the 'Function and Global Variable Declaration' region
    function f_set_item(pThis){
      var get = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=dummy',1);
      get.add('P1_ID',pThis.value)
      gReturn = get.get();
      get = null;
    }Where P1_ID is the session value to be set. Then call the function in the usual way e.g.
    javascript:f_set_item(this);
    I hope that helps
    Shunt

  • Query with a hidden key figure

    I would like to build a query which will include just one key figure which will be hidden is this possible?  Thanks

    Hi akreddy,
    There will be no results if the query has only one key figure and it is hidden.
    Such query makes no sense to me.
    The only logical way I can think of having this query is:  have this only key figure properties as Hidden (Can be Seen).
    so users can change the local setting of the query when they want to see the report results.
    Feng

  • Business Objects 6.5 SP2 Query Panel hidden and can not maximize BO Frozen

    Hi,
    I am using BO 6.5 SP2 and have had this problem once before and a colleague had it also. But time no one could fix it without a full format. Uninstall doesn't not work.
    I believe it happens when you run a report then return to the Query Panel to edit it then click the "restore Down" button (the one in between _ (minimize) and X (close). I can see the page using alt tab but i can't restore it at all. When i open a new report i get a blank white screen with every button (file, edit etc) disabled as the active window on top of what i am seeing is the Query Panel but it's hidden off screen.
    This really ban as i can use BO until it fixed but i really don't want to have to format my PC as it take days to get every think bank and working.
    Please help
    Thanks
    P.S Can a user upgrade from SP2 to SP4 or does it need to be done on servers etc ? If i can is it free and if so where can i get the download.
    Thanks again

    Hi Tom,
    Do you get any error message?
    Normally, when there is no data to return, you should get the message "No data to fetch".
    Please perform the following test:  
    - Place the object <Field 1> in the Results Objects and click on Run.  Do not put anything in Conditions.
    What do you get?
    Please check/provide the following details:
    - Do you have this issue with any object/universe or it's a specific one?
    - make sure you set the defined and assigned the connection to the universe in Designer
    Can you test with our demo universe and see if you get the same behaviour?
    Regards,
    Jeff

  • HELP INPUT TYPE = hidden  values SEEN IN URL QUERY STRING!!!

    Trying to do session management using hidden fields.
    The fields that are suppose to be hidden show up in the query string of the URL.
    I have included the code, the output to the web page
    and the URL with the "hidden" fields please help.
    HIDDEN FIELDS IN URL QUESRY STRING
    http://localhost:8080/myApp/servlet/Servlet077?firstName=Sandra&item=Michael
    WEB PAGE OUTPUT
    Enter a name and press the button
    Name:
    Your list of names is:
    Michael
    Sandra
    JAVA SOURCE CODE
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class Servlet077 extends HttpServlet{
    public void doGet(HttpServletRequest req,
    HttpServletResponse res)
    throws ServletException, IOException{
    //An array for getting and saving the values contained
    // in the hidden fields named item.
    String[] items = req.getParameterValues("item");
    //Get the submitted name for the current GET request
    String name = req.getParameter("firstName");
    //Establish the type of output
    res.setContentType("text/html");
    //Get an output stream
    PrintWriter out = res.getWriter();
    //Construct an HTML form and send it back to the client
    out.println("<HTML>");
    out.println("<HEAD><TITLE>Servlet07</title></head>");
    out.println("<BODY>");
    //Substitute the name of your server or localhost in
    // place of baldwin in the following statement.
    out.println("<FORM METHOD=GET ACTION="
    + "\"http://localhost:8080/myApp/servlet/Servlet077\">");
    out.println("Enter a name and press the button<P>");
    out.println("Name: <INPUT TYPE=TEXT NAME="
    + "\"firstName\"><P>");
    out.println("<INPUT TYPE=submit VALUE="
    + "\"Submit Name\">");
    out.println("<BR><BR>Your list of names is:<BR>");
    if(name == null){
    out.println("Empty<BR>");
    }//end if
    if(items != null){
    for(int i = 0; i < items.length; i++){
    //Display names previously saved in hidden fields
    out.println(items[i] + "<BR>");
    //Save the names in hidden fields on form currently
    // under construction.
    out.println("<INPUT TYPE = hidden NAME=item "
    + "VALUE=" + items[i] + ">");
    }//end for loop
    }//end if
    if(name != null){
    //Display name submitted with current GET request
    out.println(name + "<BR>");
    //Save name submitted with current GET request in a
    // hidden field on the form currently under
    // construction
    out.println("<INPUT TYPE = hidden NAME=item "
    + "VALUE=" + name + ">");
    }//end if
    out.println("</body></html>");
    }//end doGet()
    }//end class Servlet07

    1. Change <form name=xxx action="your_servlet" mathod="Get"> to
    <form name=xxx action="your_servlet" mathod="POST">
    2. Add the following lines of code to your servlet.
    public void doPost(HttpServletRequest req, HttpServletResponse res)
            throws ServletException, IOException {
            doGet(req,res);
            return;
    }Sudha

  • Progressive Profiling - Lead Source Most Recent Hidden Field - Query String

    I've just finished setting up my first progressive profile form and landing page. Caveat: I have not tested it out yet. On my other forms, I'm using a query string to capture lead source most recent as a hidden field. Is it also possible, using the same javascript, to capture that information on the form? I have added the source field to each of my three rule sets - but have no idea if it will work.
    Does anyone have any experience in using hidden fields with a query string and javascript in progressive profiling? Wow, that's a mouthful, and I can't even believe I know enough to be able to ask that question.
    thank you in advance for any guidance!

    Hi Leah,
    Great news! Nothing better than solving an Eloqua issue on a Monday!
    When you're using the cloud connector the HTML form name in the page code is "CCPPForm" instead of the HTML form name you used in the original form. If you take a look at the code of the page you're working on you'll see a div that includes your form. It should say "id="CCPPForm" name="CCPPForm"  in the form tag. Your instance might use something different, but I found using the progressive profile HTML name instead of my form HTML name did the trick. Also just double check to make sure your hidden field is showing for every rule in your progressive profile form rule settings.
    If this isn't making sense I'll grab some screen shots for you!
    Danielle

  • Hidden only one charakteristic in a Input Query !!! How ?

    hello Gururs
    I want to hidden, or define a constante for one characterisic in a Input Query and not Input Ready for only one.
    How can I solve this Problem ?
    THNX

    Hi,
    you can use the single value filter for the characteristic you want to hide. In addition, you can hide the characteristic in the Query Designer (check the options on the property tab 'Display').
    Regards,
    Gregor

  • How to Query for Hidden Chars

    Hello -
    I have a large number of E-mail addresses that were corrupted with hidden characters. I have a bunch of question marks, squares, etc. mixed in with the E-mail addresses. Is there a way to query for these values?
    Thanks in advance for guidance.

    Assuming you can identify the numeric range of the invalid characters (i.e. ASCII 0-31) and the numeric range of the valid characters, you have some options. There is an example of replacing all the invalid characters in a string using the TRANSLATE command here
    http://www.ddbcinc.com/askDDBC/topic.asp?TOPIC_ID=216
    (note that you have to be able to define functions that return the invalid characters and the valid characters). You can find out where there are invalid characters by comparing the length of the raw column to the length of the translated column
    SELECT *
      FROM <<table>>
    WHERE LENGTH(email) != LENGTH( TRANSLATE( email, safeCharacters || nonPrintingCharacters, safeCharacters ) )Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

Maybe you are looking for

  • How to configure and tweak Safari settings on iPad Mini?

    Using my wife's iPad mini, it seems there are no setttings or ability to tweak or change the look and feel and especially the font size for the browser. I am not talking about the website text that shows up on any site visited but the text at the top

  • Error while Adding Discoverer OLAP to Porlet

    Hi there, I having this unspecified error. It during "Worksheet" step, when i try to select a worksheet it show a small error icon (x) on the workbook. What does it means? Anyone encounter this? pls help.. PS: i didn't encounter this problem while co

  • Inventory Org Security R12

    Hi Could anyone confirm, how we could restrict the List of Values in the "Change Organisation Window", so that access to Inventory Orgs can be restricted. The idea is to restrict access to Organizations basing on the role. So, we cannot use Organizat

  • HR Configuration for BI Apps

    We are lookng for feedback on how other people have dealt with configuration changes to HR spreadsheets. For example, we had to make configuration changes to event types and it appears we have to reprocess that table. We make a special subject area a

  • Loop an MP4 with the movie controller

    It seems there should be an option to loop an MP4 movie in the FLV Playback but I don't see it any where. So what to do if I want a movie clip to loop indefinitely?