Invalid WSDL error using adapters-db-101-MasterDetail Sample

I'm exploring the use of the SOA samples provided at http://java.net/projects/oraclesoasuite11g/pages/DBAdapters.
I have downloaded and unzipped the subject sample, then opened the Application and Project in JDeveloper. I can see the composite, but when I attempt to edit the Service or Reference, I'm getting the following window popup:
Error while reading wsdl file
<mydirectory>/adapters-db-101-MasterDetail/adapters-db-101-MasterDetail/DB_MasterDetail/MasterDetail.
Exception:
WSDLException: faultcode=INVALID_WSDL: Invalid XML in document at:
<mydirectory>/adapters-db-101-MasterDetail/adapters-db-101-MasterDetail/DB_MasterDetail/MasterDetail/,
line: 1, column: 1: oracle.xml.parser.v2.XMLPParseException: Start of root element expected.
and the following messages:
Mar 22, 2012 9:10:21 AM oracle.tip.tools.ide.fabric.model.SCAWSDLManager
SEVERE: SCA WSDL Manager could not load : file:<mydirectory>/adapters-db-101-MasterDetail/adapters-db-101-MasterDetail/DB_MasterDetail/MasterDetail/
Mar 22, 2012 9:10:21 AM oracle.tip.tools.ide.fabric.model.SCAWSDLManager
SEVERE: SCA WSDL Manager could not load : file:<mydirectory>/adapters-db-101-MasterDetail/adapters-db-101-MasterDetail/DB_MasterDetail/MasterDetail/
Looks to me like it is not finding the defined InboundService.wsdl and OutboundService.wsdl.
I have done the same thing with the subsequent adapters-db-102-Select.zip, and have no problems.
Any ideas? Thank you.
Leon Swan

Sorry,
I was reading about DB adapter and tried to solve a problem with insert data from file into a table, but the order of data is not correct, so I then desided to
use insert of type instead.
That is the reason for post here.

Similar Messages

  • Getting Invalid WSDL error for every WSDL file

    hi
    I recently started to work on jdeveloper 10.1 3 and i am trying to develope client for google web api.
    but when i trying to create webservice using java web service form WSDL option.but when i am giving wsdl file it is giving me error like Invalid WSDL and when i click why not ? button it is saying that URL is malformed.
    here is URL
    jdev.uddi.bindingtemplate:http://uddi.xmethods.com/inquire/0B06E7E7-0F4D-BC86-4FFD-E2C8C0F43C2A
    this is generated by UDDI registrey browser by jdeveloper it self.
    this is happening with evety WSDL file. I think there is some problem with my Jdeveloper.
    Please help me.

    hi
    Could you help me on following error.
    I am trying to deploy webservice on Oracle Applicaiton server.
    But i am getting following message on Deployment message window of Jdeveloper
    ---- Deployment started. ---- Apr 27, 2006 5:40:38 PM
    Target platform is Oracle Application Server 10g 10.1.3 (KunalAppServer).
    Wrote WAR file to D:\users\kunal\sdk\oracel_ide\jdevstudio1013_JDK\jdev\mywork\WebService\heloservice\deploy\WebServices.war
    Wrote EAR file to D:\users\kunal\sdk\oracel_ide\jdevstudio1013_JDK\jdev\mywork\WebService\heloservice\deploy\WebService-heloservice-WS.ear
    Uploading file WebService-heloservice-WS.ear ...
    Application Deployer for WebService-heloservice-WS STARTS.
    Copy the archive to D:\product\10.1.3\OracleAS_1\j2ee\home\applications\WebService-heloservice-WS.ear
    Initialize D:\product\10.1.3\OracleAS_1\j2ee\home\applications\WebService-heloservice-WS.ear begins...
    Unpacking WebService-heloservice-WS.ear
    Done unpacking WebService-heloservice-WS.ear
    Unpacking WebServices.war
    Done unpacking WebServices.war
    Initialize D:\product\10.1.3\OracleAS_1\j2ee\home\applications\WebService-heloservice-WS.ear ends...
    Starting application : WebService-heloservice-WS
    Initializing ClassLoader(s)
    Initializing EJB container
    Loading connector(s)
    Starting up resource adapters
    Initializing EJB sessions
    Committing ClassLoader(s)
    Initialize WebServices begins...
    Initialize WebServices ends...
    Started application : WebService-heloservice-WS
    Binding web application(s) to site default-web-site begins...
    Binding WebServices web-module for application WebService-heloservice-WS to site default-web-site under context root WebService-heloservice-context-root
    Operation failed with error:
    org.apache.xerces.dom.DeferredElementNSImpl
    Deployment failed
    Elapsed time for deployment: 1 minute, 8 seconds
    #### Deployment incomplete. #### Apr 27, 2006 5:41:47 PM

  • Invalid InputSource Error using XML Parser V2

    I'm using the following code to read xml from
    a clob field in an Oracle database.
    try
    // Parse xsl and xml documents
    parser = new DOMParser();
    parser.setPreserveWhitespace(true);
    Statement sqlSel=conn.createStatement();
    ResultSet xmlDet=sqlSel.executeQuery("SELECT * FROM USER_XML WHERE IHC_USER_ID='123456789'");
    if (xmlDet.next())
    CLOB xmlCLOB= ((OracleResultSet)xmlDet).getCLOB(2);
    int index=0;
    Reader clobStream=xmlCLOB.getCharacterStream();
    parser.parse(clobStream);
    Everything seems to work fine, and I can
    create a String from the stream which contains the entire XML document. However, if I try to do the above and parse the Stream, or alternatively parse the String resulting from the stream, I get the following Error:
    nvalid InputSource.
    void oracle.xml.parser.v2.XMLError.flushErrors()
    void oracle.xml.parser.v2.XMLError.error(int, int, java.lang.String, java.lang.String, java.lang.String, int, java.lang.Exception, int, boolean)
    void oracle.xml.parser.v2.XMLError.error(oracle.xml.parser.v2.XMLReader, java.lang.String, int, java.lang.Exception, int, boolean)
    void oracle.xml.parser.v2.XMLReader.pushXMLReader(org.xml.sax.InputSource)
    void oracle.xml.parser.v2.XMLParser.parse(java.lang.String)
    void xmlquerydb.testParse()
    void xmlquerydb.main(java.lang.String[])
    Any ideas what could cause this?

    I'm quite sure the xml documents are valid.
    At present, I'm just using booklist.xml,
    which comes as an example with the XML SQL
    utility. The problem is not really with the
    parsing (If I convert the xml into a url then it parses fine).
    My real problem is pulling the document out
    of a CLOB field. Regardless of what I pass to the parser( a string or a stream), or which xml its parsing, I still get the Invalid inputsource error.

  • LPX-00217 invalid character error - Using reference characters in XML file

    Hi, I hope you will help me to understand and to fix the error I get during insert of an XML file into a table with XML Type field.
    I used Oracle documentation for this:
    1. Create table
    CREATE TABLE XMLDOC
    ( XMLCOLUMN xmltype);
    2. Create external directory
    CREATE OR REPLACE DIRECTORY FILESDIR AS 'E:\ora_xml_test\';
    3. Create function
    CREATE OR REPLACE function DSS.getClobDocument(
    filename in varchar2,
    charset in varchar2 default NULL)
    return CLOB deterministic
    is
    file bfile := bfilename('FILESDIR',filename);
    charContent CLOB := ' ';
    targetFile bfile;
    lang_ctx number := DBMS_LOB.default_lang_ctx;
    charset_id number := 0;
    src_offset number := 1 ;
    dst_offset number := 1 ;
    warning number;
    begin
    if charset is not null then
    charset_id := NLS_CHARSET_ID(charset);
    end if;
    targetFile := file;
    DBMS_LOB.fileopen(targetFile, DBMS_LOB.file_readonly);
    DBMS_LOB.LOADCLOBFROMFILE(charContent, targetFile,
    DBMS_LOB.getLength(targetFile), src_offset, dst_offset,
    charset_id, lang_ctx,warning);
    DBMS_LOB.fileclose(targetFile);
    return charContent;
    end;
    And now appears the problem when I use different character references - one of them are parsed by the XML parser and another -are not:
    test1.xml - Contains a charachter from Latin language -ă (&#x103)
    <?xml version="1.0" encoding="UTF-8"?>
    <ROWSET>
    <ROW
    <IDNO>1</IDNO>
    <NAME>aaa (&#x103)</NAME>
    </ROW>
    </ROWSET>
    --a semicolumn must be added after 103
    SQL> insert into XMLDOC values(xmltype(getClobDocument('test1.xml','UTF8')));
    1 row created.
    test2.xml - Contains a charachter from Cyrillic language -ш (&#x404)
    <?xml version="1.0" encoding="UTF-8"?>
    <ROWSET>
    <ROW>
    <IDNO>1</IDNO>
    <NAME>aaa (&#x404)</NAME>
    </ROW>
    </ROWSET>
    --a semicolumn must be added after 404
    SQL> insert into XMLDOC values(xmltype(getClobDocument('test2.xml','UTF8')));
    insert into XMLDOC values(xmltype(getClobDocument('test2.xml','UTF8')))
    ERROR at line 1:
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00217: invalid character 1028 (\u0404)
    Error at line 5
    ORA-06512: at "SYS.XMLTYPE", line 0
    ORA-06512: at line 1
    I am not familiar to Unicode and encoding maybe I ' missing something.
    Please help!!!

    Which database version are you using and what is the characterset used during its creation...?
    There is a lot on this forum which has been already answered / addressed but the database must support it, in other words the characterset must support it. Among others, see Re: XML-Document with special characters for instance.
    Conversion like you are doing (&#x103) is not needed.

  • Scan to Email not working - Invalid Credentials error (using gmail and 2-factor authentication)

    I configured the HP OfficeJet 8600 printer for scan to email using the Embedded Web Server interface. In the Web interface, I added/entered an email address for my gmail account, and set the correct SMTP server details, and entered 465 for the port number. I checked the "Always use secure connection" box, as well as the "SMTP requires authentication for outgoing email messages" box. I entered correct SMTP user ID and password. Yet when I did a test, I got an error "Invalid credentials" After a lot of frustration, and trying all sorts of things, I eventually got the idea to try another email account. This time I tried a different email account, a netzero email account, configured the smtp server details for it etc. And this time when I tested the netzero email address it worked. I tried the scan to email on the printer, and it worked for the Netzero email account. it just didnt work for the gmail account. I had a while back turned on 2-factor authentication. I went to gmail settings and requested an "App password" for my HP printer. Google/gmail displayed a 16 character password, which I then entered into the password box in the HP OfficeJet printer Embedded Web Server interface (instead of my usual password), for the gmail account. And this time when I tested the email account - it worked! Problem solved! .. I share this just in case anyone else is having the same problem I had, and is going through the same frustrating experience I endured!  

    Thank you. This helped TREMENDOUSLY! 

  • "Invalid number" error using Interactive Report search  on collection

    hi -- I have several interactive reports based on collections. In the IR reqion query definition,
    I cast the collection values as needed (number, date, etc). Everything's been working great.
    In both development and production, I can use the search feature of interactive reports
    and it finds rows containing the text I type in (as well as everything else working fine...)
    I just imported a new version of an application into our production database. Now, when I use the
    interactive report search, I always get "invalid number". This even happens on interactive reports
    that still work in the previous version of the production application... and these IRS
    have not been modified at all.
    If I create a filter and search for "elevation" in a string column, the filter works. If I create a filter
    searching for "elevation" in a number column, I get "invalid number". (In the development
    environment, I can do the latter -- it just doesn't find any rows.)
    Clearly it's choking on the types of the columns in the IR... but why now and not before, and why
    in the production database but not the development DB? Both are running 4.0.1.00.03.
    This is a pretty major loss of functionality... and it comes at a really bad time... Help?!
    Thanks,
    Carol

    hi Andy, Tony -- Completely understand about your email address. I've actually wondered at the fact that any
    of you gurus are willing to give them out.
    It's not tons of stuff, so here it is.
    1) The application process that creates the collection. This process that runs whenever an IR
    page is being rendered. The various DB names are application items. This application can affect data
    on multiple databases. You'll see see this in the process that builds the query.
    IF (apex_collection.collection_exists (      
        p_collection_name=>'IR_COLLECTION')) then
        apex_collection.delete_collection(p_collection_name=>'IR_COLLECTION');
    END IF;
    apex_collection.create_collection_from_query_b(p_collection_name=>'IR_COLLECTION', p_query=>meta_data_pkg.build_ir_collection_query(:TABLE_NAME, :MASTER_DB_NAME, :CZAR_DB_NAME, :DB_NAME));2) The database function that constructs the query. Called in the above create_collection statement.
    FUNCTION build_ir_collection_query (table_name varchar2, master_db_name varchar2, czar_db_name varchar2, ref_db_name varchar2)
    return varchar2
    IS
      query VARCHAR2(3000);
    BEGIN
      IF /* check for other table names here */ THEN
        -- build queries for other tables
       -- *** HDB_EXT_DATA_CODE
      ELSIF (upper(table_name) in ('HDB_EXT_DATA_CODE', 'HDB_EXT_DATA_CODE_SYN')) THEN
        query := 'SELECT /*+DRIVING_SITE(dcs)*/ dc.ext_data_code_sys_id, dcs.ext_data_code_sys_name, dcs.agen_id, a.agen_name, dc.primary_data_code,';
        query := query||' dc.secondary_data_code, dc.hdb_datatype_id, d.datatype_name, d.unit_id, u.unit_name, d.physical_quantity_name, to_char(dc.date_time_loaded,''DD-MON-YYYY HH24:MI:SS'')';
        query := query||' FROM hdb_ext_data_code_syn@'||master_db_name || ' dc, hdb_ext_data_code_sys_syn@'||master_db_name ||
                 ' dcs, hdb_agen_syn@'||master_db_name||' a, hdb_datatype_syn@'||master_db_name||' d, hdb_unit@'||czar_db_name||' u';
        query := query||' WHERE dc.ext_data_code_sys_id = dcs.ext_data_code_sys_id AND dcs.agen_id = a.agen_id(+) AND dc.hdb_datatype_id = d.datatype_id AND d.unit_id = u.unit_id';
       /* continue w/ other tables */
    END;3) The query that it builds for the table in question:
    SELECT /*+DRIVING_SITE(dcs)*/ dc.ext_data_code_sys_id, dcs.ext_data_code_sys_name, dcs.agen_id, a.agen_name,
    dc.primary_data_code, dc.secondary_data_code, dc.hdb_datatype_id, d.datatype_name, d.unit_id, u.unit_name,
    d.physical_quantity_name, to_char(dc.date_time_loaded,'DD-MON-YYYY HH24:MI:SS')
    FROM hdb_ext_data_code_syn@UCHDB2 dc,  hdb_ext_data_code_sys_syn@UCHDB2 dcs, hdb_agen_syn@UCHDB2 a,
    hdb_datatype_syn@UCHDB2 d, hdb_unit@UCHDB2 u
    WHERE dc.ext_data_code_sys_id = dcs.ext_data_code_sys_id AND dcs.agen_id = a.agen_id(+)
    AND dc.hdb_datatype_id = d.datatype_id AND d.unit_id = u.unit_id           4) The explain plan results on the development database
    PLAN_TABLE_OUTPUT                                                                                  
    Plan hash value: 583729845                                                                         
    | Id  | Operation                       | Name                  | Rows  | Bytes | Cost (%CPU)| Time
        | Inst   |                                                                                     
    |   0 | SELECT STATEMENT REMOTE         |                       |    97 | 16490 |    19  (16)| 00:00
    :01 |        |                                                                                     
    |*  1 |  HASH JOIN                      |                       |    97 | 16490 |    19  (16)| 00:00
    :01 |        |                                                                                     
    |   2 |   TABLE ACCESS FULL             | HDB_UNIT              |   177 |  3540 |     3   (0)| 00:00
    :01 | UCHDB2 |                                                                                     
    |*  3 |   HASH JOIN RIGHT OUTER         |                       |    95 | 14250 |    15  (14)| 00:00
    :01 |        |                                                                                     
    |   4 |    TABLE ACCESS FULL            | HDB_AGEN              |    54 |  1944 |     3   (0)| 00:00
    :01 | UCHDB2 |                                                                                     
    |*  5 |    HASH JOIN                    |                       |    95 | 10830 |    12  (17)| 00:00
    :01 |        |                                                                                     
    |   6 |     MERGE JOIN                  |                       |   112 |  5936 |     6  (17)| 00:00
    :01 |        |                                                                                     
    |   7 |      TABLE ACCESS BY INDEX ROWID| HDB_EXT_DATA_CODE_SYS |    15 |   405 |     2   (0)| 00:00
    :01 | UCHDB2 |                                                                                     
    |   8 |       INDEX FULL SCAN           | HDB_EXT_DATA_CODE_SYS |    15 |       |     1   (0)| 00:00
    :01 | UCHDB2 |                                                                                     
    |*  9 |      SORT JOIN                  |                       |   112 |  2912 |     4  (25)| 00:00
    :01 |        |                                                                                     
    |  10 |       TABLE ACCESS FULL         | HDB_EXT_DATA_CODE     |   112 |  2912 |     3   (0)| 00:00
    :01 | UCHDB2 |                                                                                     
    |  11 |     TABLE ACCESS FULL           | HDB_DATATYPE          |   711 | 43371 |     5   (0)| 00:00
    :01 | UCHDB2 |                                                                                     
    Predicate Information (identified by operation id):                                                
       1 - access("A2"."UNIT_ID"="A1"."UNIT_ID")                                                       
       3 - access("A4"."AGEN_ID"="A3"."AGEN_ID"(+))                                                    
       5 - access("A5"."HDB_DATATYPE_ID"="A2"."DATATYPE_ID")                                           
       9 - access("A5"."EXT_DATA_CODE_SYS_ID"="A4"."EXT_DATA_CODE_SYS_ID")                             
           filter("A5"."EXT_DATA_CODE_SYS_ID"="A4"."EXT_DATA_CODE_SYS_ID")                             
    Note                                                                                               
       - fully remote statement                                                                         5) The explain plan results on the production database
    PLAN_TABLE_OUTPUT                                                                                                                                                                  
    Plan hash value: 583729845                                                                                                                                                         
    | Id  | Operation                       | Name                  | Rows  | Bytes | Cost (%CPU)| Time     |                                                                          
    |   0 | SELECT STATEMENT                |                       |    97 | 16490 |    19  (16)| 00:00:01 |                                                                          
    |*  1 |  HASH JOIN                      |                       |    97 | 16490 |    19  (16)| 00:00:01 |                                                                          
    |   2 |   TABLE ACCESS FULL             | HDB_UNIT              |   177 |  3540 |     3   (0)| 00:00:01 |                                                                          
    |*  3 |   HASH JOIN RIGHT OUTER         |                       |    95 | 14250 |    15  (14)| 00:00:01 |                                                                          
    |   4 |    TABLE ACCESS FULL            | HDB_AGEN              |    54 |  1944 |     3   (0)| 00:00:01 |                                                                          
    |*  5 |    HASH JOIN                    |                       |    95 | 10830 |    12  (17)| 00:00:01 |                                                                          
    |   6 |     MERGE JOIN                  |                       |   112 |  5936 |     6  (17)| 00:00:01 |                                                                          
    |   7 |      TABLE ACCESS BY INDEX ROWID| HDB_EXT_DATA_CODE_SYS |    15 |   405 |     2   (0)| 00:00:01 |                                                                          
    |   8 |       INDEX FULL SCAN           | HDB_EXT_DATA_CODE_SYS |    15 |       |     1   (0)| 00:00:01 |                                                                          
    |*  9 |      SORT JOIN                  |                       |   112 |  2912 |     4  (25)| 00:00:01 |                                                                          
    |  10 |       TABLE ACCESS FULL         | HDB_EXT_DATA_CODE     |   112 |  2912 |     3   (0)| 00:00:01 |                                                                          
    |  11 |     TABLE ACCESS FULL           | HDB_DATATYPE          |   711 | 43371 |     5   (0)| 00:00:01 |                                                                          
    Predicate Information (identified by operation id):                                                                                                                                
       1 - access("D"."UNIT_ID"="U"."UNIT_ID")                                                                                                                                         
       3 - access("DCS"."AGEN_ID"="A"."AGEN_ID"(+))                                                                                                                                    
       5 - access("DC"."HDB_DATATYPE_ID"="D"."DATATYPE_ID")                                                                                                                            
       9 - access("DC"."EXT_DATA_CODE_SYS_ID"="DCS"."EXT_DATA_CODE_SYS_ID")                                                                                                            
           filter("DC"."EXT_DATA_CODE_SYS_ID"="DCS"."EXT_DATA_CODE_SYS_ID")                                                                                                             6) This is the source query for the interactive report in question. The application process that creates the
    collection runs before this region is rendered.
    Select /*+ NO_QUERY_TRANSFORMATION */
    to_number(C001) Ext_Data_Code_Sys_Id,
    C002 Ext_Data_Code_Sys_Name,
    to_number(C003) Agen_Id,
    C004 Agen_Name,
    C005 Primary_Data_Code,
    C006 Secondary_Data_Code,
    to_number(C007) Hdb_Datatype_Id,
    C008 Datatype_Name,
    to_number(C009) Unit_Id,
    C010 Unit_Name,
    C011 Physical_Quantity_Name,
    C012 Date_Time_Loaded
    from apex_collections
    where collection_name = 'IR_COLLECTION'
    order by 1,5,7Well, maybe it is alot... !
    Happy New Year!
    Carol

  • Signon page gives invalid OS error, using Firefox on Oracle Linux

    Installed PeopleSoft HCM 9.2 (PT 8.53.02) using Oracle Virtualbox VM template. Installed X Windows and GNOME Desktop and virtualbox guest additions. When I connect to the signin page using firefox (17.x) on this same VM which is running Oracle Linux, I get the unsupported OS errror. Checked browser.xml and that looks fine.
    Error: We've detected that your operating system is not supported by this website. For best results use one of the following operating systems ....
    Any help would be appreciated.
    Thanks
    DS.

    user13635748 wrote:
    Interesting, I didn't know that. But the error message does list "Oracle Enterprise Linux" as one of the supported options.Hmmm, that's right, rather embarrassing. However, according to the all certification matrix that I can read on My Oracle Support, Linux is no where supported for web browsing.
    Seems a bit paradoxal. It probably has to be reported to the support, I don't think that's a VM peculiar issue.
    But why not using the web browser from the host instead of the one from the guest VM ? Will 'solve' if that's a Windows host...
    Nicolas.
    Edited by: N Gasparotto on May 8, 2013 9:18 PM

  • Invalid Indentifier error using UNION ALL?

    Can someone tell me why this would give me the error: ORA-00904: "WAIT_TIME": invalid identifier.
    It must be something with the UNION ALL because it works fine if i run just one of the queries at a time.
    Thanks
    Deanna
    selecT WAIT_TIME||'Minutes.'||','||COUNT(WAIT_TIME)as "0-10Min,COUNT"
    froM MOTOR_ASSIST2
    WHERE WAIT_TIME BETWEEN 0 AND 10 and ((:p53_fiscal_yr IS NULL
    OR :p53_fiscal_yr = TO_CHAR (ADD_MONTHS (datetime, 6), 'YYYY'))
    OR (:p53_month IS NULL OR :P53_month = TO_CHAR(DATETIME,'MM')
    AND (:p53_year IS NULL OR :p53_year = TO_CHAR(DATETIME,'YYYY'))))
    UNION ALL
    select WAIT_TIME||'Minutes.'||','||COUNT(WAIT_TIME)as "11-30Min,COUNT"
    froM MOTOR_ASSIST2
    where WAIT_TIME BETWEEN 11 AND 30 and ((:p53_fiscal_yr IS NULL
    OR :p53_fiscal_yr = TO_CHAR (ADD_MONTHS (datetime, 6), 'YYYY'))
    OR (:p53_month IS NULL OR :P53_month = TO_CHAR(DATETIME,'MM')
    AND (:p53_year IS NULL OR :p53_year = TO_CHAR(DATETIME,'YYYY'))))
    UNION ALL
    select WAIT_TIME||'Minutes.'||','||COUNT(WAIT_TIME)as "31-60Min,COUNT"
    from MOTOR_ASSIST2
    where WAIT_TIME BETWEEN 31 AND 60 and ((:p53_fiscal_yr IS NULL
    OR :p53_fiscal_yr = TO_CHAR (ADD_MONTHS (datetime, 6), 'YYYY'))
    OR (:p53_month IS NULL OR :P53_month = TO_CHAR(DATETIME,'MM')
    AND (:p53_year IS NULL OR :p53_year = TO_CHAR(DATETIME,'YYYY'))))
    UNION ALL
    select WAIT_TIME||'Minutes.'||','||COUNT(WAIT_TIME) as "61Min+,COUNT"
    from MOTOR_ASSIST2
    where WAIT_TIME BETWEEN 61 AND 1000 and ((:p53_fiscal_yr IS NULL
    OR :p53_fiscal_yr = TO_CHAR (ADD_MONTHS (datetime, 6), 'YYYY'))
    OR (:p53_month IS NULL OR :P53_month = TO_CHAR(DATETIME,'MM')
    AND (:p53_year IS NULL OR :p53_year = TO_CHAR(DATETIME,'YYYY'))))
    GROUP BY WAIT_TIME
    ORDER BY WAIT_TIME;

    Data
    1(Min)
    1(Min)
    1(Min)
    2(Min)
    5(Min)               
    9(Min)
    9(Min)
    9(Min)               
    10(Min)               
    11(Min)               
    15(Min)     
    17(Min)
    20(Min)
    30(Min)
    60(Min)
    99(Min)
    999(Min)
    Output
                    _0-10MIN                     11-30MIN                     31-60MIN                     61+MIN_
         1(Min):Count:3     11(Min):Count:1     60(Min):Count:1     99(Min):Count:1
         9(Min):Count:3     20(Min):Count:1                          999(Min):Count:1
         2(Min):Count:1     15(Min):Count:1                         
         10(Min):Count:1     30(Min):Count:1          
         5(Min):Count:1     17(Min):Count:1
    Total:     Count: 9                     Count:5                     Count:1                     Count:2
    Query
    WITH c1 as (select row_number() over (order by wait_time)as rn
                          ,CASE WHEN wait_time BETWEEN 0 AND 10 THEN WAIT_TIME||'(Min):Count:'||COUNT(*) ELSE NULL END AS "0-10MIN"
                    from MOTOR_ASSIST2
                    where wait_time between 0 and 10 AND ((:p53_fiscal_yr IS NULL
    OR :p53_fiscal_yr = TO_CHAR (ADD_MONTHS (datetime, 6), 'YYYY'))
    OR (:p53_month IS NULL OR :P53_month = TO_CHAR(DATETIME,'MM')
    AND (:p53_year IS NULL OR :p53_year = TO_CHAR(DATETIME,'YYYY'))))
    group by wait_time
    ORDER BY WAIT_tIME)
            ,c2 as (select row_number() over (order by wait_time) as rn
                          ,CASE WHEN wait_time BETWEEN 11 AND 30 THEN wait_time||'(Min):Count:'||COUNT(*) ELSE NULL END AS "11-30MIN"
                    from MOTOR_ASSIST2
                   where wait_time between 11 and 30 AND ((:p53_fiscal_yr IS NULL
    OR :p53_fiscal_yr = TO_CHAR (ADD_MONTHS (datetime, 6), 'YYYY'))
    OR (:p53_month IS NULL OR :P53_month = TO_CHAR(DATETIME,'MM')
    AND (:p53_year IS NULL OR :p53_year = TO_CHAR(DATETIME,'YYYY'))))
    group by wait_time
    ORDER BY WAIT_TIME)
           ,c3 as (select row_number() over (order by wait_time) as rn
                         ,CASE WHEN wait_time BETWEEN 31 AND 60 THEN wait_time||'(Min):Count:'||COUNT(*) ELSE NULL END AS "31-60MIN"
                   from MOTOR_ASSIST2
                   where wait_time between 31 and 60 AND ((:p53_fiscal_yr IS NULL
    OR :p53_fiscal_yr = TO_CHAR (ADD_MONTHS (datetime, 6), 'YYYY'))
    OR (:p53_month IS NULL OR :P53_month = TO_CHAR(DATETIME,'MM')
    AND (:p53_year IS NULL OR :p53_year = TO_CHAR(DATETIME,'YYYY'))))
    group by wait_time
    ORDER BY WAIT_TIME)
           ,c4 as (select row_number() over (order by wait_time) as rn
                         ,CASE WHEN wait_time >= 61 THEN wait_time||'(Min):Count:'||COUNT(*) ELSE NULL END AS "61+MIN"
                   from MOTOR_ASSIST2
                   where wait_time >= 61 AND ((:p53_fiscal_yr IS NULL
    OR :p53_fiscal_yr = TO_CHAR (ADD_MONTHS (datetime, 6), 'YYYY'))
    OR (:p53_month IS NULL OR :P53_month = TO_CHAR(DATETIME,'MM')
    AND (:p53_year IS NULL OR :p53_year = TO_CHAR(DATETIME,'YYYY'))))
    group by wait_time
    ORDER BY WAIT_TIME)
    ,cgrand as (select row_number() over (order by wait_time) as rn,COUNT(WAIT_TIME)AS "TOTAL",wait_time||'(Min):Total:'||COUNT(*) as "TOTAL_WAIT_TIME"
                  from motor_assist2
                  where((:p53_fiscal_yr IS NULL
    OR :p53_fiscal_yr = TO_CHAR (ADD_MONTHS (datetime, 6), 'YYYY'))
    OR (:p53_month IS NULL OR :P53_month = TO_CHAR(DATETIME,'MM')
    AND (:p53_year IS NULL OR :p53_year = TO_CHAR(DATETIME,'YYYY'))))
    group by wait_time
    ORDER BY WAIT_TIME)
    select "0-10MIN","11-30MIN", "31-60MIN", "61+MIN","TOTAL_WAIT_TIME","TOTAL"
       from cgrand
          LEFT OUTER JOIN c1 ON  c1.rn = cgrand.rn
          LEFT OUTER JOIN c2 ON  c2.rn = cgrand.rn
          LEFT OUTER JOIN c3 ON  c3.rn = cgrand.rn
          LEFT OUTER JOIN c4 ON  c4.rn = cgrand.rn
           order by "TOTAL";                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Invalid SQL error using REF CURSOR

    I'm getting an "invalid SQL statement" in my function that is returning a REF CURSOR. I have tested this function in SQL*Plus and it works fine.
    -- package level variable
    TYPE t_cursor IS REF CURSOR;
    Function find_patient
         p_ssan IN varchar2,
         p_patient_details OUT t_cursor
         RETURN t_cursor
         IS
         v_cursor t_cursor;
         BEGIN
         OPEN v_cursor FOR
         SELECT name,sex,pay_grade,
              FLOOR(MONTHS_BETWEEN(sysdate,birthdate) / 12) AS age,
              patient_num
         FROM patient
         WHERE ssan = p_ssan;
         p_patient_details := v_cursor;
         RETURN p_patient_details;
         END find_patient;
    -- C# code
    OracleParameter ssan_in = new OracleParameter("p_ssan",OracleDbType.Varchar2);
    OracleParameter cursor_out = new OracleParameter("p_patient_details",OracleDbType.RefCursor);
    cmd.Parameters.Add(ssan_in).Direction = ParameterDirection.Input;
    cmd.Parameters.Add(cursor_out).Direction = ParameterDirection.Output;
    ssan_in.Value = "555555555";
    OracleRefCursor cur = (OracleRefCursor) cursor_out.Value;
    try
    dbconn.Open();
                        OracleDataReader dr = cmd.ExecuteReader();
                        while (dr.Read())
                             pat_name.Text = dr["NAME"].ToString();
                             age.Text = dr["AGE"].ToString();
                             rank.Text = dr["PAY_GRADE"].ToString();
                             gender.Text = dr["SEX"].ToString();
                             pat_num.Text = dr["PATIENT_NUM"].ToString();
    Any suggestions?

    First, you have an output parameter of type ref cursor and a return value. You shouldn't have both.
    Second, try CommandType.Text and a CommandText like:
    "begin :rc := find_patient(:ssan); end;"
    It's easier to see how to bind the parameters like that. Bind first a OracleRefCursor output parameter, then an ssan%type InputParameter.
    David

  • Invalid Number Error in IR search bar.

    Hi,
    I am getting an invalid number error when i put a value in search bar without selecting the column name.
    I followed ' "Invalid number" error using Interactive Report search on collection' thread and accordingly
    1) Purged User preferences and session state.
    2) Cleared browser settings and cache.
    3) Deleted old region and Created a new region on the page with the same query.
    If I select a column and search it works fine but when I just give an arrangement id which looks like 'ARR12345' directly in search bar it throws Invalid Number.
    This is working perfectly fine in other environments which is replica of this one.
    I also ran Apex util function to remove sort preferences.
    Also my report is a very simple report like select * from a,b where a.id = b.id.
    Please help me. This is a production issue.
    Thanks a lot in advance.
    Regards
    Garima
    Edited by: 860249 on Nov 4, 2011 11:40 AM

    UPDATE SET as = '1', ad = '1', co = '1', pr = '1', date = localtimestamp, lus = 'username'SELECT * FROM sys.v_$reserved_words;
    SQL> create table test1(as varchar2(10));
    create table test1(as varchar2(10))
    ERROR at line 1:
    ORA-00904: : invalid identifier
    SQL> create table test1(sno number, date date);
    create table test1(sno number, date date)
    ERROR at line 1:
    ORA-00904: : invalid identifier
    SQL> create table test1("as" varchar2(10));
    Table created.
    SQL>
    SQL> create table test2(sno number, "date" date);
    Table created.
    SQL> desc test1
    Name                                      Null?    Type
    as                                                 VARCHAR2(10)
    SQL> desc test2
    Name                                      Null?    Type
    SNO                                                NUMBER
    date                                               DATE
    SQL> 

  • Error while testing SOA sample adapters-db-101-File2StoredProcedure

    Dear all,
    I am testing SOA application adapters-db-101-File2StoredProcedure from SOA samples and I got the error:
    <messages>
    <input>
    <Invoke_API_AddCustomers_InputVariable>
    <part name="InputParameters">
    <InputParameters>
    <C>
    <C_ITEM>
    <FNAME>John</FNAME>
    <LNAME>Doe</LNAME>
    <LOC>
    <STREET>123 Main Street</STREET>
    <CITY>Anytown</CITY>
    <STATE>CA</STATE>
    <ZIP>12345</ZIP>
    </LOC>
    <EMAIL>[email protected]</EMAIL>
    <PHONE>567-123-9876</PHONE>
    </C_ITEM>
    <C_ITEM>
    <FNAME>Jane</FNAME>
    <LNAME>Doe</LNAME>
    <LOC>
    <STREET>987 Sunset Blvd</STREET>
    <CITY>Sometown</CITY>
    <STATE>CA</STATE>
    <ZIP>34567</ZIP>
    </LOC>
    <EMAIL>[email protected]</EMAIL>
    <PHONE>567-123-9876</PHONE>
    </C_ITEM>
    </C>
    </InputParameters>
    </part>
    </Invoke_API_AddCustomers_InputVariable>
    </input>
    <fault>
    <bpelFault>
    <faultType>0</faultType>
    <bindingFault>
    <part name="summary">
    <summary>Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'AddCustomers' failed due to: Stored procedure invocation error. Error while trying to prepare and execute the ADD_CUSTOMERS API. An error occurred while preparing and executing the ADD_CUSTOMERS API. Cause: java.sql.SQLSyntaxErrorException: ORA-00902: invalid datatype ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution. </summary>
    </part>
    <part name="detail">
    <detail>ORA-00902: invalid datatype </detail>
    </part>
    <part name="code">
    <code>902</code>
    </part>
    </bindingFault>
    Does anybody tried to execute this sample?
    Best regards

    Sorry,
    I was reading about DB adapter and tried to solve a problem with insert data from file into a table, but the order of data is not correct, so I then desided to
    use insert of type instead.
    That is the reason for post here.

  • Error:Invalid WSDL URL While Importing Internet WSDL In Webdynpro

    Hi Everyone,
    I Am Facing Error While Importing Webservices in Webdynpro.
    https://usint.skire.com/ws/services/mainservice?wsdl
    The above WSDL I tried in Both Webservice Model and Adaptice Webservice Model.
    I Am Geeting Invalid WSDL URL.
    is any configuration required for https [SSL Webservices]Under Visual Admin Level.
    I Am Able To Consume the http Webservices in Internet www.webservicex.net
    In that site i took three webservices and i am able to cosnume all these tings in Webdynpro.
    The above https services i am facing the problem.
    Thanks
    SubbaRao

    Hi,Thanks For Reply,
    I Am getting the Invalid WSDL URL After Importing into Webdynpro.
    When I CHecked Under Wsnavigator Of Portal.
    i am getting below error
    Cannot download WSDL from https://usint.skire.com/ws/services/mainservice?wsdl: ERROR : Trying to resolve qualified base : DataHandler, but the uri resolver is not able to resolve the relevant namespace.
    Thanks
    SubbaRao

  • Invalid Device Error when using Labview to comunicate with Jorway 73A

    I'm having a problem when trying to get Labview to communicate with the Jorway 73a CAMAC crate controller. Keep in mind while reading this that I'm still fairly new to both the CAMAC system and Labview. I've downloaded the drivers for the Jorway 73a off your site and run into a "Invalid device" error whenever I try to read or write from the CAMAC crate using the read or write VI's. Oddly, the initialize/clear/inhibit VI runs without error. When reading cmjwdll.c I can tell that this error occurs whenever "the device selected is not a JW 73A". Not sure why I'd be getting such an error, and only with the read/write VI's, not on the initialize/clear/inhibt one.
    Thank you for your time.

    Hi Caleb,
    You may want to contact [email protected] for this question. Looking at the driver (http://zone.ni.com/idnet97.nsf/9b2b33e1993d877786256436006ec498/398258c61da17663862568ab005fbcbc?OpenDocument) It states that these drivers use 32-bit dll's that only work on 95/NT and are provided by Jorway.
    Hope this helps out!
    Best Regards,
    Aaron K.
    Application Engineer
    National Instruments

  • Invalide identifier error, when use subselect

    Hi all,
    I got "ORA-0094: sp.spriden_pidm invalid identifier "error when runing the following query.
    select (select t.name from
    (select rownum row_number, s.spriden_last_name name
    from spriden s
    where s.spriden_pidm = sp.spriden_pidm) t
    where t.row_number = 1) last_name
    from spriden sp
    where sp.spriden_pidm = 70105;
    Any one has an idea why this is happening?
    Thanks

    Unless I am missing something here, this looks like a straight pivot query to me.
    SQL> with my_test AS (SELECT 1 id, 'June' contact_name FROM dual UNION ALL
      2                   SELECT 1, 'Email' FROM dual UNION ALL
      3                   SELECT 1, 'Mark' FROM dual UNION ALL
      4                   SELECT 2, 'Tom' FROM dual),
      5       my_test_2 AS (SELECT 1 id, trunc(sysdate) act_date FROM dual UNION ALL
      6                     SELECT 1, trunc(sysdate-1) FROM dual UNION ALL
      7                     SELECT 2, trunc(sysdate-1) FROM dual)
      8  SELECT id, act_date,
      9         MAX(DECODE(rn, 1, contact_name)) nc1,
    10         MAX(DECODE(rn, 2, contact_name)) nc2,
    11         MAX(DECODE(rn, 3, contact_name)) nc3
    12  FROM (SELECT m.id, contact_name, act_date,
    13               ROW_NUMBER() OVER (PARTITION BY m.id
    14                                  ORDER BY contact_name) rn
    15        FROM my_test m, my_test_2 m2
    16        WHERE m.id = m2.id and
    17              m2.act_date = trunc(sysdate-1))
    18  GROUP BY id, act_date;
            ID ACT_DATE    NC1   NC2   NC3
             1 11-Sep-2008 Email June  Mark
             2 11-Sep-2008 TomAssuming that you have a known maximum number of possible values in my_test for a given id this should work. You may need to use something other than the contact_name in the order by in the row_number function if you require the values in specific columns, but given your sample data, I have no idea what that might be.
    John

  • I've bought an Iphone 4S in the UK. Using the phone in Argentina, it displays the "No Service" and "Invalid SIM" errors sporadically. The only solution is to reset the phone (switching it ON/OFF). Any suggestions?

    I've bought an Iphone 4S in the UK. Using the phone in Argentina, it displays the "No Service" and "Invalid SIM" errors sporadically. The only solution is to reset the phone (switching it ON/OFF). Also most of the time, the SMS are not sent nor received...
    The phone was checked by my carrier (phone company, Movistar) and they replaced the micro SIM card. bear in mind that there's no Apple shop here and the Iphone 4S is NOT available in Argentina!!!
    Any suggestions?

    Dear all,
    (THIS CONCERNS MTC TOUCH CUSTOMERS IN LEBANON)
    I've received an email with a solution to the problem; you have to update to the new iOS 5.0.1 firmware (9A406)!! It's been 1Hour and so far my iPHone 4S is working just fine. Please follow carefully the below instructions:
    RUN A FULL BACK UP BEFORE DOING ANY OF THIS
    1. Download the new iOS 5.0.1 firmware (9A406) from the internet. (800MB)
    2. Connect your iPhone 4S to iTunes.
    3. Once connected, two options will show: ‘restore’ and ‘check for update’.
    4. Press down SHIFT and choose ‘check for update’. (if you click ‘check for update’ without pressing down SHIFT doesn’t work.)
    5. Select the new firmware (9A406). Note that the file should be renamed ‘iPhone4,1_5.0.1_9A406_Restore.ipsw’  (instead of ‘iPhone4,1_5.0.1_9A406_Restore.zip’), i.e. changing the file extension from ZIP to IPSW. iTunes will now work alone and update your iPhone 4S.
    A full back up is recommended before firmware upgrade.
    HOPE THIS HELPS

Maybe you are looking for