Begginers Problems - Servlet does not get the "Request property".

I'm just beginning to learn about Servlet because fo my work. I have to do a servlet and a simple java file to interact with the servlet.
The only problem i have is that when i'm trying to send some Request property to the servlet does not get that property.
Thank in advancing to anyone who can help.
/** The Servlet code */
package com.sigmatao.gde;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.lang.String;
public class test extends HttpServlet
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException
PrintWriter out = response.getWriter();
//ServletInputStream in = request.getInputStream();
response.setContentType("text/html");
out.println("<html>");
out.println("<body>");
out.println("Hello World via get!!!");
out.println("</body>");
out.println("</html>");
out.flush();
out.close();
public void doPost(HttpServletRequest req, HttpServletResponse res)throws IOException, ServletException {
String men = req.getParameter("Valor");
res.setContentType("text/html");
// ServletInputStream in = request.getInputStream();
PrintWriter out = res.getWriter();
out.println("<html>");
out.println("<body>");
out.println("Hello World via post!!!");
out.println(men);
out.println("</body>");
out.println("</html>");
out.flush();
out.close();
/** The java file */
import java.net.*;
import java.io.*;
import java.net.HttpURLConnection.*;
import java.lang.String;
public class testpost{
public static void main(String[] args) throws Exception {
// create instance of url
URL url = new URL(args[0]);
HttpURLConnection con = (HttpURLConnection)(url.openConnection());
// set a request property with it�s value
con.setRequestProperty("Valor","Recibi Parametro");
// specify that the default request method is post
con.setRequestMethod("POST");
con.connect();
// get an input stream for reading
InputStream in = con.getInputStream();
// create a buffered input stream for efficency
BufferedInputStream bufIn = new BufferedInputStream(in);
// repeat until end of file
for (;;){
int data = bufIn.read();
// check for EOF
if (data == -1)
break;
else
System.out.print((char)data);
/* The result of execution **/
C:\Temp\URL>java testpost http://localhost:8080/gde/test.do
<html>
<body>
Hello World via post!!!
null
</body>
</html>

Thanks for the advice, but unfortunalety I need to do it with a java file because it is a specific requirement for the project I am working in.
Thanks for your time.

Similar Messages

  • Native error code -214721788​7 0x80040e21 Microsoft OLE DB Provider for ODBC Drivers: ODBC driver does not support the requested properties​.

    I configured MySQL in TestStand and making a query in TestStand like this:
    Command :=> "SELECT *  FROM crc_table ; " or  "SELECT CRC_Value  FROM crc_table ; " returns the total number of records without any errors.
    But when I add the "where" clause
    "SELECT crc_table.CRC_Value  FROM crc_table where crc_table.File_ID= Locals.File_ID and crc_table.Version_ID = Locals.Version_ID and crc_table.Link_ID = Locals.Link_ID; "
    I get the error as:
    Error, The following SQL command failed: 'SELECT crc_table.CRC_Value FROM crc_table where crc_table.File_ID= Locals.File_ID and crc_table.Version_ID = Locals.Version_ID and crc_table.Link_ID = Locals.Link_ID; ...' Native error code -2147217887 0x80040e21 Microsoft OLE DB Provider for ODBC Drivers: ODBC driver does not support the requested properties. [Error Code: -10, User-defined error code.]
    I tried the same syntax in MySQL Query Browser and got the correct result:
    SELECT crc_table.CRC_Value  FROM crc_table where crc_table.File_ID= "FID1" and crc_table.Version_ID = "VID1" and crc_table.Link_ID = "L1";
    I would appreciate your help.
    Thank you,
    Vidula

    Vidula,
    I am not completely sure if this is the cause of the error but it is something that will cause problems if it is not fixed.  In your SQL statement you must properly concatenate your strings with your variables.  In the statement you posted you were simply putting the variable names in the string, not actually pulling their values.  To do so properly your query should look something like this:
    "SELECT crc_table.CRC_Value  FROM crc_table where crc_table.File_ID='"+Locals.File_ID+"' and crc_table.Version_ID = '"+ Locals.Version_ID+"' and crc_table.Link_ID = '"+Locals.Link_ID+"' ;"
    This way we are using the values of the variables in conjunction with the text strings.  In this case the usage of single quotes (') casts the variables as strings so you may need to change this character sequence, but from the second example you gave I think that your variables are of type string so this should work fine.
    Message Edited by herosphro on 04-01-2008 03:52 PM
    John B.
    Applications Engineer
    National Instruments

  • The network does not support the requested encryption method

    Prior to last night, I had connected to several wireless networks without issue, so I know my computer can do it. The issue started after I reinstalled the operating system. I connected to my friends wireless network last night with no problems, using the password. My system was having other unrelated problems so I decided to reinstall the operating system since the computer had just had a new hard drive put in anyway. Then when I tried to get online after everything was up and running, I couldn't.
    Wireless networks show up fine, but when I go to log in, enter the password and hit connect, after a second I get the error message : "The network "name" does not support the requested encryption method". I've scoured the help topics, searched high and low, and tried everything. Please help
    Message was edited by: Eden51086

    After you reinstalled the OS, you may need to download install any Airport Updates as well.

  • CreateAuthenticatedSessionToken: The signature of the request does not match the request parameters

    I'm creating an app using the SODA Architecture. 
    I could successfully create an app and make the client to authorize it. 
    Result of newApplicationCreationInfo:
    <?xml version="1.0" encoding="UTF-8"?>
    <response>
    <status>
    <code>0</code>
    </status>
    <wc:info xmlns:wc="urn:com.microsoft.wc.methods.response.NewApplicationCreationInfo">
    <app-id>4417587e-46d1-49ee-a0fa-50dbfdcf932c</app-id>
    <shared-secret>gBksYDAqcuAUXK+zyvfFW9F0sy8nchwnplJ6K7aKmAM=</shared-secret>
    <app-token>AiAAANDl....A5b9fxVIlXEloouci6jGhY/A==</app-token>
    </wc:info>
    </response>
    I'm using the app-token to build the redirect url, and I get to authorize the new app. 
    then, using the new child app id and the shared-secret I built the 
    CreateAuthenticatedSessionToken:
    <?xml version="1.0" encoding="UTF-8"?>
    <wc-request:request xmlns:wc-request="urn:com.microsoft.wc.request">
    <header>
    <method>CreateAuthenticatedSessionToken</method>
    <method-version>2</method-version>
    <app-id>4417587e-46d1-49ee-a0fa-50dbfdcf932c</app-id>
    <language>en</language>
    <country>US</country>
    <msg-time>2013-01-01T00:00:00Z</msg-time>
    <msg-ttl>1800</msg-ttl>
    <version>2.0.0.0</version>
    </header>
    <info>
    <auth-info>
    <app-id>4417587e-46d1-49ee-a0fa-50dbfdcf932c</app-id>
    <credential>
    <appserver2>
    <hmacSig algName="HMACSHA256">PcW4f9krD1O43O4JGBGEkqDlpatFIUUQY9JejHji0XA=</hmacSig>
    <content>
    <app-id>4417587e-46d1-49ee-a0fa-50dbfdcf932c</app-id>
    <hmac>HMACSHA256</hmac>
    <signing-time>2013-12-17T14:19:58.623Z</signing-time>
    </content>
    </appserver2>
    </credential>
    </auth-info>
    </info>
    </wc-request:request>
    Being hmacSig value the encryption of "<content>....</content>" using shared-secret value as private key:
    hmacSig = Encodingutil.base64Encode(Crypto.generateMac('hmacSHA256', Blob.valueOf(body), Blob.valueOf(sharedSecret)))
    this returns an error code 11: The signature of the request does not match the request parameters.
    I'm using the following endpoint: https://platform.healthvault-ppe.com/platform/wildcat.ashx
    Also the redirection url I received after authorizing the app contains the following: 
    https://<MY_URL>/?gws_rd=cr&ei=h5ewUuKLJa7IsASc4YHIAw I'm not using this parameters, if that helps.
    Any hint will be greatly appreciated.
    UPDATE: I already checked the HMAC encoding using a third party service and it returned the same as my app

    I figured this out (God bless Pair Programming):
    I was signing incorrectly: 
    On the newApplicationCreationInfo:
    My Shared Secret is : gBksYDAqcuAUXK+zyvfFW9F0sy8nchwnplJ6K7aKmAM=
    But BEFORE hashing the "<content>...</content>" i need to decode my secret that is:
    hmacsig = calculateHMAC256(content, sharedSecret.decodeBase64())
     

  • The server does not support the requested critical extension (0x8007202c)

    Hello guys,
    The sympton is the same as the one in "The
    server does not support the requested critical extension." Exception.
    I got the error in calling IDirectorySearch::GetNextRow. As I observe, the error is trigger when retrieving the another page of records. The LDAP path to connect is "GC://<FQDN_of_GC>". The search filter is (&(|(objectClass=group)(objectClass=msExchDynamicDistributionList))(mailnickname=*)).
    There are about 100 thousands of group objects in the forest. So the answer in that thread does not help.
    Any thoughts?
    Thanks.
    [email protected]

    Hi Michael,
    Thanks for your remind of the server is Windows 2008 R2. 
    After deep research on this topic, there were a couple of possible causes. One was based on asking AD to do sorting on the results of the query. Our calls to AD do not do any sorting at all. The other I came to was a couple of pages that may help alleviate
    the problem of groups in large AD environments. It has to deal with the temporary table size that Active Directory uses, with the tunable parameter MaxTempTableSize.
    The articles as below are for your reference:
    http://social.technet.microsoft.com/Forums/en-US/exchangesvradmin/thread/95bfb95f-4e43-4dd8-ac3a-0c89d2cf528e
    http://support.microsoft.com/kb/315071
    http://msdn.microsoft.com/en-us/library/ms677927(VS.85).aspx
    Besides, if the above is not the cause of our issue, there may be something wrong in the C# code. Since I just an AD engineer and not familiar with the C# code, I suggest you should involve one C# code engineer to work with us about this issue. After doing
    many research, please add the class of the object when searching. For example, “DirectorySearcher ds = new DirectorySearcher(de, filter,class)”. I’m not sure if it’s correct, just a suggestion.
    Hope to hear good news from you soon. Happy X'MAS day!
    Best regards,
    Bryan

  • When i press sync in iTunes my iPhone 4s does not get the my music how do i fix this

    when i press sync in iTunes my iPhone 4s does not get the my music how do i fix this

    no, and i have spent my entire spring break with a dead iphone 4s, no access to my iphone mail accounts, can't get into my text service app, and can't get into notes. oh yeah, all of my music is gone. thanks a bunch for this wonderful upgrade.
    i am never upgrading again until i am sure all the bugs are out. this is a waste of my time and what's the use of having a cellphone if it only stays charged for two hours?
    one of the apple forums said that iox is "expanvie" and gave us tips on how to lengthen battery life. i was already doing all that stuff. so it seemed to me that apple was just taking the stand that  ios is just more "expansive." this is lipservice hogwash. if that is the case, then we need to get new phones with batteries strong enough to accommodate running these power apps and updates.
    my iphone makes a **** good coaster though. right now i am just ready to start sending smoke signals!

  • Adobe Photoshop 12 -- Adobe asking for request code in order to register online -- where does one get the request code?

    Where does one get the request code in order to register online?

    If you have a redemption code you can redeem it here to get the serial number:
    https://redeem.licenses.adobe.com/getserial

  • My new iPod nano does not get the battery life that is advertised

    Help me my iPod nano does not get the battery life that is advertised

    Which battery life are you referring to? Apple's website states the iPod Nano 6th Gen will get "up to 24 hours of music playback when fully charged". There are going to be a lot of things that can change that. Are you using the stopwatch or the count down timer a lot? Are you using the FM radio a lot? Any accessories that you are using with the iPod? These will all have an effect on your battery life.

  • My iphone 4 does not get the sms

    my iphone 4 does not get the sms , help me please , im chilean

    the company is CLARO 
    I have already called several times for help but give me solutions that do not work, I andrestored and all, do not do: /

  • Af:html does not expose the dir property !!!

    Hi,
    After working with ADF faces for sometime, I found that the af:html component does not have the dir property.(eg. <html dir="rtl">).This is very important for developers working on Arabic,Farsi,Urdu web sites.
    Is there a workaround for this !!!!
    Thanks
    Madani

    I already found the solution:
    open the file adf-faces-config.xml and add the this line
    <right-to-left>true</right-to-left>
    Madani

  • My itunes does not get the names of all tracks which i import.

    When i import a cd into itunes, it does not get any track names. Why is this.
    Also, itunes does not connect to the music store. It tells me that i should check my connection etc etc. Are these problems related, and what can i do to fix it?

    Let me guess, did you just install/upgrade iTunes?
    If so, then it's surely your security software (firewall, web accelerator, privacy filters, etc) that is blocking iTunes.
    The iTunes "upgrade" is actually an uninstall, then total new install, of iTunes and QuickTime. Many security packages such as Norton, Zone Alarm, Google Web accelerator, McAfee, PCillin (...the list is long) see this new iTunes install as a malicious threat, and block out the previous settings without telling you.
    Go to your security software vendor's website and see if they have directions for allowing iTunes & QT back in the list of programs allowed to access the internet.

  • RFC does not get the updated data

    Hi Experts,
    I am not getting the updated data via RFCs.
    The scenario is like this.
    Step 1: I open the Application running on System "B".
    Step 2: I add a record in second  Application which is on  system "A".
    Now I want the same data to be reflected on Application running on System "B" on some event.
    I observed the data is never reflected in Application running on System "B", but when I refresh the page of this Application, I get the updatred data. Do you have any clues why this is happening.
    Best Regards,
    Arti.

    Hi,
    Can you be bit more clear about the requirement. It is logical that without refresh updated data wont be shown.
    Thanks,
    Vinod.

  • Embedded BI Publisher 5.6.2 / Long report / OPP does not pickup the request

    Hi,
    We are trying to use the embedded version of BI Publisher to produce simple PDF or Excel listings. The SQL is simple and runs quickly; it returns about 40000 rows.
    The problem is that after 10 minutes (it used to be shorter be we increased the OPP timeout) of being "running" in the concurrent manager, the report sometimes completes fine but sometimes ends with a warning (and no output file) and the following error in the log file:
    Executing request completion options...
    ------------- 1) PUBLISH -------------
    Beginning post-processing of request 765364 on node AUSGEDEVAP06 at 17-MAY-2007 08:54:43.
    Post-processing of request 765364 failed at 17-MAY-2007 09:04:43 with the error message:
    The Output Post-processor is running but has not picked up this request.
    No further attempts will be made to post-process this request, and the request will be marked
    with Warning status.
    Setting the profile option Concurrent: OPP Response Timeout to a higher value may be necessary.
    After conducting some tests on a development server, it appears that for a very basic report (simple SQL and report only containing a table with 4 columns listing 4 fields extracted from the database) and with a 10 minutes timeout we are not able to produce a report that has more than about 100000 lines.
    My questions are:
    - is it normal to have such delays to produce the output? (for a simple 5000 reports it can take 30 seconds)
    - What does this message mean and how could we try to correct it?
    - I can see that we have one Output Post Processor running, would it make sense to have more? (does the fact that the OPP is not picking up the request means that there is no process available?)
    Thanks in advance.
    Boris

    Hi Tim,
    Thanks for that - the 7487412 readme doesn't say anything about the RTF header bug fix being included, but the Bugs Resolved by this Patch lists 6270261 (ER: RTF Output to support set Table Header Report, Table Row Keep-Together).
    Patch # 7487412 is only available in R12, but with the specific ER number, I was able to find Note # 861915.1 (I couldn't it find with my keyword search) and this note indicates that 11i patch # 7702372 should resolve the problem for me in 11i (and it's readme explicitly documents 6270261 as being fixed by the patch).
    Thanks again,
    theFurryOne

  • Preformance problem - Oracle does not choose the Materialized view

    Hi,
    Version 10204
    I have the following Materialized view :
    CREATE MATERIALIZED VIEW CRM.MV2_TUDWH_CRM_1201
    TABLESPACE DW_LARGE
    NOCACHE
    NOLOGGING
    COMPRESS
    PARALLEL ( DEGREE DEFAULT INSTANCES DEFAULT )
    BUILD IMMEDIATE
    REFRESH COMPLETE ON DEMAND
    WITH PRIMARY KEY
    ENABLE QUERY REWRITE        <<<<<<<======
    AS
    SELECT DISTINCT CRM.CI_CUST_INFO.NAP_INT_CUST_NUM
      FROM (   CRM.CI_CUST_INFO
            LEFT OUTER JOIN
               CRM.CM_CASE_DIM
            ON (CRM.CI_CUST_INFO.BO_ID = CRM.CM_CASE_DIM.BO_ID_CUST));When running the following statment , the MV is used as you can see from 10053 trace file:
    Current SQL statement for this session:                                                                                            
    EXPLAIN PLAN FOR                                                                                                                   
    SELECT DISTINCT CRM.CI_CUST_INFO.NAP_INT_CUST_NUM                                                                                  
      FROM (   CRM.CI_CUST_INFO                                                                                                        
            LEFT OUTER JOIN                                                                                                            
               CRM.CM_CASE_DIM                                                                                                         
            ON (CRM.CI_CUST_INFO.BO_ID = CRM.CM_CASE_DIM.BO_ID_CUST))                                                                  
    ============                                                                                                                       
    Plan Table                                                                                                                         
    ============                                                                                                                       
    ----------------------------------------------------------------+-----------------------------------+-------------------------+    
    | Id  | Operation                           | Name              | Rows  | Bytes | Cost  | Time      |  TQ  |IN-OUT|PQ Distrib |    
    ----------------------------------------------------------------+-----------------------------------+-------------------------+    
    | 0   | SELECT STATEMENT                    |                   |       |       |    64 |           |      |      |           |    
    | 1   |  PX COORDINATOR                     |                   |       |       |       |           |      |      |           |    
    | 2   |   PX SEND QC (RANDOM)               | :TQ10001          | 4694K |   28M |    64 |  00:00:01 |:Q1001| P->S |QC (RANDOM)|    
    | 3   |    HASH UNIQUE                      |                   | 4694K |   28M |    64 |  00:00:01 |:Q1001| PCWP |           |    
    | 4   |     PX RECEIVE                      |                   | 4694K |   28M |    48 |  00:00:01 |:Q1001| PCWP |           |    
    | 5   |      PX SEND HASH                   | :TQ10000          | 4694K |   28M |    48 |  00:00:01 |:Q1000| P->P |HASH       |    
    | 6   |       PX BLOCK ITERATOR             |                   | 4694K |   28M |    48 |  00:00:01 |:Q1000| PCWC |           |    
    | 7   |        MAT_VIEW REWRITE ACCESS FULL | MV2_TUDWH_CRM_1201| 4694K |   28M |    48 |  00:00:01 |:Q1000| PCWP |           |    
    ----------------------------------------------------------------+-----------------------------------+-------------------------+    
    Predicate Information:                                                                                                             
    7 - access(:Z>=:Z AND :Z<=:Z)                                                                                                      
    Content of other_xml column                                                                                                        
    ===========================                                                                                                        
      db_version     : 10.2.0.4                                                                                                        
      parse_schema   : SYS                                                                                                             
      plan_hash      : 4066877073                                                                                                      
      Outline Data:                                                                                                                    
      /*+                                                                                                                              
        BEGIN_OUTLINE_DATA                                                                                                             
          IGNORE_OPTIM_EMBEDDED_HINTS                                                                                                  
          OPTIMIZER_FEATURES_ENABLE('10.2.0.4')                                                                                        
          OPT_PARAM('optimizer_dynamic_sampling' 3)                                                                                    
          OPT_PARAM('star_transformation_enabled' 'true')                                                                              
          ALL_ROWS                                                                                                                     
          OUTLINE_LEAF(@"SEL$C0C89B4D")                                                                                                
          REWRITE(@"SEL$9E43CB6E" "MV2_TUDWH_CRM_1201")                                                                                
          OUTLINE(@"SEL$9E43CB6E")                                                                                                     
          MERGE(@"SEL$58A6D7F6")                                                                                                       
          OUTLINE(@"SEL$3")                                                                                                            
          OUTLINE(@"SEL$58A6D7F6")                                                                                                     
          MERGE(@"SEL$1")                                                                                                              
          OUTLINE(@"SEL$2")                                                                                                            
          OUTLINE(@"SEL$1")                                                                                                            
          FULL(@"SEL$C0C89B4D" "MV2_TUDWH_CRM_1201"@"SEL$030DBFD9")                                                                    
        END_OUTLINE_DATA                                                                                                               
                            But when running more complex statment - the MV does not even considered by the optimizer as an option , and does not exists in the 10053 trace file:
    Current SQL statement for this session:
    EXPLAIN PLAN FOR
      SELECT CRM.CI_CUST_INFO.NAP_INT_CUST_NUM
        FROM (   CRM.CI_CUST_INFO
              LEFT OUTER JOIN
                 CRM.CM_CASE_DIM
              ON (CRM.CI_CUST_INFO.BO_ID = CRM.CM_CASE_DIM.BO_ID_CUST))
       WHERE (CRM.CM_CASE_DIM.FIRST_PROVIDER_GRP_ID IN
                 ('2565', '2611', '1190', '2610', '2612')
              AND (CRM.CM_CASE_DIM.ROW_ADDED_DTTM >= (SYSDATE - 60)))
    ORDER BY CRM.CI_CUST_INFO.NAP_INT_CUST_NUM
    ============
    Plan Table
    ============
    --------------------------------------------------+-----------------------------------+-------------------------+---------------+
    | Id  | Operation                   | Name        | Rows  | Bytes | Cost  | Time      |  TQ  |IN-OUT|PQ Distrib | Pstart| Pstop |
    --------------------------------------------------+-----------------------------------+-------------------------+---------------+
    | 0   | SELECT STATEMENT            |             |       |       |   13K |           |      |      |           |       |       |
    | 1   |  PX COORDINATOR             |             |       |       |       |           |      |      |           |       |       |
    | 2   |   PX SEND QC (ORDER)        | :TQ10002    |     1 |    56 |   13K |  00:01:26 |:Q1002| P->S |QC (ORDER) |       |       |
    | 3   |    SORT ORDER BY            |             |     1 |    56 |   13K |  00:01:26 |:Q1002| PCWP |           |       |       |
    | 4   |     PX RECEIVE              |             |     1 |    56 |   13K |  00:01:26 |:Q1002| PCWP |           |       |       |
    | 5   |      PX SEND RANGE          | :TQ10001    |     1 |    56 |   13K |  00:01:26 |:Q1001| P->P |RANGE      |       |       |
    | 6   |       HASH JOIN             |             |     1 |    56 |   13K |  00:01:26 |:Q1001| PCWP |           |       |       |
    | 7   |        PX RECEIVE           |             |     1 |    31 |   11K |  00:01:12 |:Q1001| PCWP |           |       |       |
    | 8   |         PX SEND BROADCAST   | :TQ10000    |     1 |    31 |   11K |  00:01:12 |:Q1000| P->P |BROADCAST  |       |       |
    | 9   |          PX BLOCK ITERATOR  |             |     1 |    31 |   11K |  00:01:12 |:Q1000| PCWC |           | 1     | 8     |
    | 10  |           TABLE ACCESS FULL | CM_CASE_DIM |     1 |    31 |   11K |  00:01:12 |:Q1000| PCWP |           | 1     | 8     |
    | 11  |        PX BLOCK ITERATOR    |             | 4694K |  115M |  2121 |  00:00:14 |:Q1001| PCWC |           | 1     | 6     |
    | 12  |         TABLE ACCESS FULL   | CI_CUST_INFO| 4694K |  115M |  2121 |  00:00:14 |:Q1001| PCWP |           | 1     | 6     |
    --------------------------------------------------+-----------------------------------+-------------------------+---------------+
    Predicate Information:
    6 - access("CI_CUST_INFO"."BO_ID"="CM_CASE_DIM"."BO_ID_CUST")
    10 - access(:Z>=:Z AND :Z<=:Z)
    10 - filter((INTERNAL_FUNCTION("CM_CASE_DIM"."FIRST_PROVIDER_GRP_ID") AND "CM_CASE_DIM"."ROW_ADDED_DTTM">=SYSDATE@!-60))
    12 - access(:Z>=:Z AND :Z<=:Z)Can one suggested a reason why the optimized did not choose the m.v ?
    After all as you can see the only change is adding more predicate to the statment , e.g:
    WHERE (CRM.CM_CASE_DIM.FIRST_PROVIDER_GRP_ID IN
    ('2565', '2611', '1190', '2610', '2612')
    AND (CRM.CM_CASE_DIM.ROW_ADDED_DTTM >= (SYSDATE - 60)))
    ORDER BY CRM.CI_CUST_INFO.NAP_INT_CUST_NUM
    Thanks

    Hello Bob,
    Thanks for your replay.
    I just recreacted the MV and this time i REMOVED the DISTINCT and ADD two columns :
    CREATE MATERIALIZED VIEW CRM.MV2_TUDWH_CRM_1201
    TABLESPACE DW_LARGE
    NOCACHE
    NOLOGGING
    COMPRESS
    NOPARALLEL
    BUILD IMMEDIATE
    REFRESH COMPLETE ON DEMAND
    WITH PRIMARY KEY
    ENABLE QUERY REWRITE
    AS
    SELECT CRM.CI_CUST_INFO.NAP_INT_CUST_NUM,
           CRM.CM_CASE_DIM.FIRST_PROVIDER_GRP_ID,
           CRM.CM_CASE_DIM.ROW_ADDED_DTTM
      FROM (   CRM.CI_CUST_INFO
            LEFT OUTER JOIN
               CRM.CM_CASE_DIM
            ON (CRM.CI_CUST_INFO.BO_ID = CRM.CM_CASE_DIM.BO_ID_CUST));I rerun the first sql statment that in my first post.
    What happen now is as followed :
    - Optimizer choose to use MV , ONLY if i remove the DISTICT from the select statment.
    - If add the DISTINCT to the select statment , oracle choose a diffrent plan.
    Why ?
    sql_id=ffr3mkc6z8rsv.
    Current SQL statement for this session:
    EXPLAIN PLAN FOR
    SELECT DISTINCT CRM.CI_CUST_INFO.NAP_INT_CUST_NUM
      FROM (   CRM.CI_CUST_INFO
            LEFT OUTER JOIN
               CRM.CM_CASE_DIM
            ON (CRM.CI_CUST_INFO.BO_ID = CRM.CM_CASE_DIM.BO_ID_CUST))
    ============
    Plan Table
    ============
    ---------------------------------------------------------+-----------------------------------+-------------------------+---------------+
    | Id  | Operation                      | Name            | Rows  | Bytes | Cost  | Time      |  TQ  |IN-OUT|PQ Distrib | Pstart| Pstop |
    ---------------------------------------------------------+-----------------------------------+-------------------------+---------------+
    | 0   | SELECT STATEMENT               |                 |       |       |   12K |           |      |      |           |       |       |
    | 1   |  PX COORDINATOR                |                 |       |       |       |           |      |      |           |       |       |
    | 2   |   PX SEND QC (RANDOM)          | :TQ10003        | 4691K |  197M |   12K |  00:01:19 |:Q1003| P->S |QC (RANDOM)|       |       |
    | 3   |    HASH UNIQUE                 |                 | 4691K |  197M |   12K |  00:01:19 |:Q1003| PCWP |           |       |       |
    | 4   |     PX RECEIVE                 |                 |   24M | 1030M |   12K |  00:01:18 |:Q1003| PCWP |           |       |       |
    | 5   |      PX SEND HASH              | :TQ10002        |   24M | 1030M |   12K |  00:01:18 |:Q1002| P->P |HASH       |       |       |
    | 6   |       HASH JOIN OUTER          |                 |   24M | 1030M |   12K |  00:01:18 |:Q1002| PCWP |           |       |       |
    | 7   |        PX RECEIVE              |                 | 4694K |  115M |  2121 |  00:00:14 |:Q1002| PCWP |           |       |       |
    | 8   |         PX SEND HASH           | :TQ10001        | 4694K |  115M |  2121 |  00:00:14 |:Q1001| P->P |HASH       |       |       |
    | 9   |          PX BLOCK ITERATOR     |                 | 4694K |  115M |  2121 |  00:00:14 |:Q1001| PCWC |           | 1     | 6     |
    | 10  |           TABLE ACCESS FULL    | CI_CUST_INFO    | 4694K |  115M |  2121 |  00:00:14 |:Q1001| PCWP |           | 1     | 6     |
    | 11  |        BUFFER SORT             |                 |       |       |       |           |:Q1002| PCWC |           |       |       |
    | 12  |         PX RECEIVE             |                 |   24M |  431M |   10K |  00:01:05 |:Q1002| PCWP |           |       |       |
    | 13  |          PX SEND HASH          | :TQ10000        |   24M |  431M |   10K |  00:01:05 |      | S->P |HASH       |       |       |
    | 14  |           INDEX FAST FULL SCAN | CM_CASE_DIM_IX_3|   24M |  431M |   10K |  00:01:05 |      |      |           |       |       |
    ---------------------------------------------------------+-----------------------------------+-------------------------+---------------+
    Predicate Information:
    6 - access("CI_CUST_INFO"."BO_ID"="CM_CASE_DIM"."BO_ID_CUST")
    10 - access(:Z>=:Z AND :Z<=:Z)

  • TS2846 after reset settings of 3gs it asking countery and after thatchoose a network but it does not getting the signall in this step.pls help

    after reset settings it asking language after country then it does not catching signal & it also not conneted to i tunes. pls help

    Resolve iOS update and restore errors - Apple Support

Maybe you are looking for

  • Formating imported  XML Data

    I am importing xml from a xml attribute and storing it as a string. I am then loading it into a dynamic text box with render as html on. The problem is formating only part of the data in the dynamic text field as Italics or bold. I'm unable to put an

  • Embed font as cff error

    Is there a way to get around an embed conflict with a spark Label components and mx.Alert component? I have embedded the Arial font in to my application: @font-face {    src:url("c:/windows/fonts/arial.ttf");    fontFamily: Arial;    embedAsCFF: true

  • FTP Adapter staging_dir

    Anyone know exactly how the staging directory works? I've added a directory as per directions in user docs but nothing ever seems to appear in the directory I specify. file.sender.staging_dir=c:/dfmsftp/stage

  • How to parse json files

    Hi Can anyone help with some In depth tutorials on how to parse json files locally (in the project folder) and online (webservice) in WP8 development Thank you in advance Jayjay john

  • EPMA File generator

    Hi all, I want to export the EPMA dimensions, ie, want to reverse engineering the profilefile using EPMA file generator(.ads profile files). Is the file generator exports all dimensions at a time,if so.How can i export only one dimension at a time. t