PLSQL warning

Hi All,
I have compiled a procedure which contains the below query, is giving the below warning...Can any one help me to get out of this issue...
Warning(6,3): PLW-07204: conversion away from column type may result in sub-optimal query plan
SELECT count(JOBAMTID) into l_cnt
FROM JOBAMT, JOBDETL
where JOBDETL.PLANTDATE= TO_NUMBER(TO_CHAR(JOBAMT.POSTINGDATE,'YYMMDD'));
Plantdate -- NUMBER(10,0)
Postingdate -- DATE
Even I converted to this number type...getting same error
Edited by: Raj Muthyala on Aug 2, 2012 3:20 PM

Something to play with (considering your plantdate is a number) ;)
with
dates(plantdate) as
(select 120802 from dual union all
select 121314 from dual union all
select 121100 from dual union all
select 121101.75 from dual union all
select 120229 from dual union all
select 20130229 from dual union all
select 201300.5 from dual union all
select 20120802 from dual
select plantdate,
       trunc(mod(trunc(plantdate),1000000)/10000) yy,
       mod(trunc(mod(trunc(plantdate),1000000)/100),100) mm,
       mod(mod(trunc(plantdate),1000000),100) dd,
       case when mod(trunc(mod(trunc(plantdate),1000000)/100),100)
                 between 1
                     and 12
            then case when mod(mod(trunc(plantdate),1000000),100)
                 between 1
                     and to_number(to_char(last_day(to_date(to_char(trunc(mod(trunc(plantdate),
                                                                              1000000
                                                                             ) / 10000
                                                                   ) ||
                                                            lpad(to_char(mod(trunc(mod(trunc(plantdate),
                                                                                       1000000
                                                                                      ) / 100
                                                                             100
                                                                 2,
                                                                 '0'
                                                            'yymm'
                                           'dd'
                      then to_date(to_char(trunc(mod(trunc(plantdate),
                                                     1000000
                                                    ) / 10000
                                          ) ||
                                   lpad(to_char(mod(trunc(mod(trunc(plantdate),
                                                              1000000
                                                             ) / 100
                                                    100
                                        2,
                                        '0'
                                       ) ||
                                   lpad(to_char(mod(mod(trunc(plantdate),
                                                        1000000
                                                    100
                                        2,
                                        '0'
                                   'yymmdd'
                 end
       end the_date
  from datesRegards
Etbin

Similar Messages

  • Warning while submitting XML Publisher Report..

    Hi All,
    I am getting warning status when i run a XML Publisher report..Its Working fine when i previewed in RTF template..
    The Concurrent Program is generating XML Tags..
    Can anyone help me..
    The following is the log file content..
    Arguments
    P_FROM_DATE='2008/09/01 00:00:00'
    P_TO_DATE='2009/01/01 00:00:00'
    P_ORGANIZATION_ID='4052'
    Environment will now switch to UTF-8 code-set.
    Parts of this log file may not display correctly
    as a result. This is an expected behavior.
    XML_REPORTS_XENVIRONMENT is :
    /app/oapps/11.5.5/opm6ora2/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
    XENVIRONMENT is set to /app/oapps/11.5.5/opm6ora2/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    AMERICAN_AMERICA.UTF8
    '.,'

    Check OPP log file for any reported errors.
    If you could not find any details in the log file, enable debug on the Output Post Processor, and submit the report again.
    Note: 364547.1 - Troubleshooting Oracle XML Publisher For The Oracle E-Business Suite
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=364547.1

  • Error "REP-0788: Warning" on registering custom report to e-Business Suite

    Hi
    I done the register of custom report to Oracle e-Business Suite 11i got the below error
    +-----------------------------
    | Starting concurrent program execution...
    +-----------------------------
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    American_America.AR8MSWIN1256
    Spawned Process 4579
    REP-3000: Internal error starting Oracle Toolkit.
    REP-0788: Warning: The value of restricted LOV parameter P_1 is not among the selectable values.
    Report Builder: Release 6.0.8.24.0 - Production on Tue Apr 14 10:25:34 2009
    (c) Copyright 1999 Oracle Corporation. All rights reserved.
    Enter Username:
    Program exited with status 1
    Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 715975.
    Review your concurrent request log and/or report output file for more detailed information.
    Executing request completion options...
    Finished executing request completion options.
    please anyone help on this.
    regards,
    sva

    Hi,
    What is the type of the report? Is it bitmap? If yes, please make sure that the DISPLAY is set properly. Also, change the report type to text and see if you can submit the request successfully.
    Here are some additional troubleshooting documents to look at:
    Note: 200474.1 - Comprehensive REP-3000 Troubleshooting and Overview Guide
    http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=200474.1
    Note: 364838.1 - Quick Checks for REP-3000: Internal Error Starting Oracle Toolkit.
    http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=364838.1
    Regards,
    Hussein

  • Receive warning on Concurrent request

    Hi All,
    I am running the preliminary payment register while creating a payment batch but receive a warning message.
    APP-FND-00500: AFPPRN received a return code of failure from routine FDUPRN. An error occurred while AOL tried to spawn the print process
    Cause: AFPPRN received a return code of failure from the OSD routine FDUPRN. An error occurred while AOL tried to spawn the print process.
    Please give me any suggestions to how to fix this.
    Thanks in advance,

    Hi,
    What is the application release?
    Do you get this warning with all concurrent requests or just with this specific one?
    Please go through the following documents and see if it helps in resolving the issue.
    Note: 1018291.102 - APP-00500 Or APP-FND-00500 Error When Printing A Report
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=1018291.102
    Note: 156570.1 - APP-FND-00500 When Running a Concurrent Request
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=156570.1
    Note: 371350.1 - Some Concurrent Requests Error Out With Fduprn App-Fnd-500
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=371350.1
    Regards,
    Hussein

  • URGENT: XML Report with warning(java.lang.StackOverflowError)

    Hello,
    I have created a custom report using XML Publisher(with PDF output). The report runs fine for limited data. But when more than 3 Lakh records are retrieved, the report gets completed with Warning.
    The log details show the following error message:
    ------------- 1) PUBLISH -------------
    Beginning post-processing of request 18175653 on node PWXS3Q-E at 25-JUL-2008 06:56:22.
    Post-processing of request 18175653 failed at 25-JUL-2008 06:58:01 with the error message:
    One or more post-processing actions failed. Consult the OPP service log for details.
    The OPP log shows the following message:
    [7/24/08 10:37:04 PM] [main] Starting GSF service with concurrent process id = 297839.
    [7/24/08 10:37:04 PM] [main] Initialization Parameters:
    oracle.apps.fnd.cp.opp.OPPServiceThread:2:0:max_threads=5
    [7/24/08 10:37:05 PM] [Thread-25] Service thread starting up.
    [7/24/08 10:37:05 PM] [Thread-26] Service thread starting up.
    [7/25/08 6:56:23 AM] [OPPServiceThread1] Post-processing request 18175653.
    [7/25/08 6:56:23 AM] [297839:RT18175653] Executing post-processing actions for request 18175653.
    [7/25/08 6:56:24 AM] [297839:RT18175653] Starting XML Publisher post-processing action.
    [7/25/08 6:56:24 AM] [297839:RT18175653]
    Template code: PFOA249P
    Template app: XXPOP
    Language: nl
    Territory: NL
    Output type: PDF
    [7/25/08 6:58:00 AM] [UNEXPECTED] [297839:RT18175653] java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at oracle.apps.xdo.common.xml.XSLT10gR1.invokeProcessXSL(XSLT10gR1.java:580)
    at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:378)
    at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:197)
    at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:156)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:916)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:869)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:204)
    at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1497)
    at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:913)
    at
    oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:1816)
    at
    oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:1278)
    at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:247)
    at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:153)
    Caused by: java.lang.StackOverflowError
    [7/25/08 6:58:01 AM] [297839:RT18175653] Completed post-processing actions for request 18175653.
    Any help would be greatly appreciated

    Note:315477.1 : XML Report Publisher Fails With java.lang.OutOfMemoryError.
    Could any one point me to the right place where i can find this note. I searched in Oracle metalink and google but no success.Here you go ..
    Note: 315477.1 - XML Report Publisher Fails With java.lang.OutOfMemoryError
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=315477.1

  • Unable to Create PLSQL Webservice in JDeveloper 11g

    Hi,
    i have created webservice for PL/SQL for functions with out TYPE data types as parameter..
    but i am unable to create a webservice for procedure having
    Freight_Pkg.PROCEDURE get_freight(
    p_sbl_source_line_tab IN OUT SYK_SBL_SOURCE_LINE_TAB_TYPE
    ,l_total_freight OUT NUMBER
    ,l_err_code OUT NUMBER
    ,l_err_mesg OUT VARCHAR2
    and when i try to create web service it generates below Warning
    =========================================
    Log Message of WebService
    ========================================
    Generating PL/SQL Web Service
    Generating WSDL and mapping file
    WARNING: OWS-00077 The Value Type class: SykSblSourceLineBase does not have a valid Java Bean pattern.
    Adding service files to deployment profile
    Service generation finished
    Generation complete.
    Please let me know the procedure for creating Webservice for PLSQL of Table Type Parameters passing as IN parameter in Procedure.
    Thanks,
    Vijay

    Vijay,
    Is this configured with Oracle E-Business Suite? If yes, please note that JDeveloper 11g is not certified with Oracle Apps 11i/R12.
    How to find the correct version of JDeveloper to use with eBusiness Suite 11i or Release 12.x [ID 416708.1]
    Configuring JDeveloper For Use With Oracle Applications 11i and R12 [ID 330236.1]
    If this is not related to EBS, post your question in the appropriate forum for a better/faster response.
    JDeveloper and ADF
    JDeveloper and ADF
    Thanks,
    Hussein

  • Error in PLSQL Procedure...

    Hi Guys,
    I have the following functions inside a package...
    I was trying to create directories dynamically in the runtime in side a plsql...
    FUNCTION Get_Site_Dir_Name (
       site_     IN VARCHAR2,
       dir_type_ IN VARCHAR2 ) RETURN VARCHAR2
    IS
    BEGIN
       RETURN (REPLACE(site_, ' ', NULL) || UPPER(dir_type_));
    END Get_Site_Dir_Name;
    PROCEDURE Set_Dir_Path (
       dir_path_ IN VARCHAR2,
       site_ IN VARCHAR2,
       dir_type_ IN VARCHAR2 )
    IS
    BEGIN
       CREATE OR REPLACE DIRECTORY Get_Site_Dir_Name(site_, dir_type_) AS dir_path_;
    END Set_Dir_Path;But this gives me an error when deploying...
    Warning: Package Body created with compilation errors.
    Errors for PACKAGE BODY SITE_API:
    LINE/COL ERROR
    1354/4 PLS-00103: Encountered the symbol "CREATE" when expecting one of
    the following:
    begin case declare exit for goto if loop mod null pragma
    raise return select update while with <an identifier>
    <a double-quoted delimited-identifier> <a bind variable> <<
    close current delete fetch lock insert open rollback
    savepoint set sql execute commit forall merge pipe
    Can some one help me with this?
    Many Thanks....

    dir_name_ := 'TESTDIR';
    stmt_ := 'EXECUTE IMMEDIATE CREATE OR REPLACE DIRECTORY :dir_name AS :dir_path;';
    EXECUTE IMMEDIATE stmt_
    USING IN dir_name_,
    IN dir_path_;Remove ;
    stmt_ := CREATE OR REPLACE DIRECTORY :dir_name AS :dir_path';or
    SQL> Declare
      2  dir_name varchar2(20) := 'TESTDIR';
      3  dir_path varchar2(20) := 'C:\';
      4  stmt varchar2(100);
      5  Begin
      6  EXECUTE IMMEDIATE 'CREATE DIRECTORY '||dir_name||' AS '''||dir_path||'''';
      7  Dbms_output.put_line('Directory is created');
      8  end;
      9  /
    Directory is created
    PL/SQL procedure successfully completed.Twinkle
    Edited by: Twinkle on Nov 18, 2009 4:39 PM

  • XML Reprorts were warning out, Thease were working earlier.

    Hi All,
    We are on 11.5.10.1 on Solaris 9.
    In our instance some xml reports are working fine and some which taking time to execute the output is warning out (these reportswere workingfine earlier)
    ================================================concurrent Logfile:
    Executing request completion options...
    ------------- 1) PUBLISH -------------
    Beginning post-processing of request 599009 on node ABHRPROD at 27-DEC-2008 12:09:04.
    Post-processing of request 599009 failed at 27-DEC-2008 12:16:05 with the error message:
    The concurrent manager has timed out waiting for the Output Post-processor to finish this request.
    Check that there are enough Output Post-processor service processes running.
    More information may be found in the service process logfile.
    ------------- 2) PRINT   -------------
    Finished executing request completion options.
    Concurrent request completed
    Current system time is 27-DEC-2008 12:16:05
    ====================================================
    The opp logfile is showing the below logfile:
    [12/27/08 10:10:12 PM] [OPPServiceThread1] Post-processing request 599010.
    [12/27/08 10:10:12 PM] [32925:RT599010] Executing post-processing actions for request 599010.
    [12/27/08 10:10:12 PM] [32925:RT599010] Starting XML Publisher post-processing action.
    [12/27/08 10:10:12 PM] [32925:RT599010]
    Template code: XXOTA_NOMINATIONS
    Template app: XXAB
    Language: en
    Territory: US
    Output type: PDF
    [12/27/08 10:10:16 PM] [32925:RT599010] XML Publisher post-processing action complete.
    [12/27/08 10:10:16 PM] [32925:RT599010] Completed post-processing actions for request 599010.
    [12/27/08 10:16:05 PM] [ERROR] [OPPAQMON:32925] Class not found: oracle.apps.fnd.cp.opp.OPPTerminateRequestCommand
    ====================================================
    I have gone through the Metalink doc: 352518.1, But we didn't get the profile options, as we are on 11.5.10.1
    We have executed Solution:B and increased the value of
    TIMEOUT2 constant number := 600 (earlier it was 300).
    And bounced the aplication, Even we have done cmclean.sql. But the long runing xmlreports are warning out, Pl suggest something to overcome this.
    Regards
    Vasu

    Vasu,
    Please review Note: 428536.1 - Concurrent Manager Has Timed Out Waiting For The Output Post-Processor
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=428536.1
    You may also review:
    Note: 364547.1 - Troubleshooting Oracle XML Publisher For The Oracle E-Business Suite
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=364547.1

  • Problem configuring SSO: "Oracle SSO Warning - Unable to process request"

    I'm having difficulty getting a sample application to work with SSO, and I was hoping someone could point me in to the right direction.
    We've got 2 separate systems, call them ASserver and SSOserver. ASserver is running Oracle 9i AS, SSOserver is the infrastructure server (e.g. OID and SSO).
    The application runs just fine on ASserver without SSO.
    I made the change to mod_osso.conf so that the URL for the application is now protected, and added a partner application entry to the application (more on that in a moment).
    When I go to the URL for the partner application, the browser is properly redirected to the SSO server and I am prompted to log in. After logging in, I get an error page with the error "Oracle SSO Warning - Unable to process request" (the URL is something like http://<ASserver>/osso_login_success?urlc=... etc).
    Several questions:
    - can my servlet just be a plain servlet, or does it need to do the various things described in the "SSO Application Developer's Guide"?
    - when configuring the partner application on the SSO server, are success url and logout url supposed to be the osso_login_success and osso_logout_success URLs? Should they be on the ASserver or the SSOserver?
    Any other recommendations?
    Thanks,
    dwh

    Okay, solved. I am pretty sure I was suffering from the condition described in metalink Note:227221.1, "Oracle SSO Warning Logging On to Midtier Using Mozilla Based Browser" (http://metalink.oracle.com/metalink/plsql/ml2_documents.showNOT?p_id=227221.1)
    although it was happening in IE as well.
    Essentially, I modified the entry for the partner application to change the port numbers from 7778 to 7777, and now it works.
    I think I also had several entries for the app server in the SSO server, and I don't know which one it was using. I got rid of all of them except the one named <oraclehome>.<restofdomain>, e.g. oas.foobar.com, where "oas" is the name of my app server's Oracle home.

  • 9.0.3 plsql web service bug?

    I've been building plsql web services for several days, and everything has been fine. I've been adding new functions on the database side, and editing my web services using the JDev wizard.
    Now it's all stopped working, and I'm getting an "unexpected error" every time I try to generate the service. The "details" for the error looks like the stuff at the end of this message.
    Before this happened, I did two potentially problematic things. I was (I thought) done with my testing, so I was cleaning up. So, I removed some functions on the plsql side. And I also did "remove from IDE" for my existing web service project, so I could start building a clean version that had just what I needed. It was when creating the fresh web service in the new project that things exploded.
    As far as I can tell from the IDE, it generates the various serialization/deserialization files and the main web service class but fails before it can create the WSDL, web.xml, and deployment stuff.
    -- jim
    java.io.FileNotFoundException: /C:/Data/jdev9i/NEIEN1/Project1/src/__temp_java_wrappers/factlocal/Pk_web_service_test1.java (The system cannot find the file specified.
         void java.io.FileInputStream.open(java.lang.String)
              native code
         void java.io.FileInputStream.<init>(java.lang.String)
              FileInputStream.java:64
         java.io.InputStream oracle.ide.net.FileURLFileSystemHelper.openInputStream.java.net.URL)
              FileURLFileSystemHelper.java:415
         java.io.InputStream oracle.ide.net.URLFileSystem.openInputStream(java.net.URL)
              URLFileSystem.java:955
         void oracle.jdevimpl.webservices.generator.WrapperClassGenerator$1.run()
              WrapperClassGenerator.java:315
         void oracle.jdevimpl.webservices.util.ThreadUtil$NonThrowingRunnable.run()
              ThreadUtil.java:106
         void java.awt.event.InvocationEvent.dispatch()
              InvocationEvent.java:147
         void java.awt.EventQueue.dispatchEvent(java.awt.AWTEvent)
              EventQueue.java:337
         boolean java.awt.EventDispatchThread.pumpOneEventForHierarchy(java.awt.Component)
              EventDispatchThread.java:131
         void java.awt.EventDispatchThread.pumpEventsForHierarchy(java.awt.Conditional, java.awt.Component)
              EventDispatchThread.java:98
         void java.awt.Dialog.show()
              Dialog.java:380
         void java.awt.Component.show(boolean)
              Component.java:946
         void java.awt.Component.setVisible(boolean)
              Component.java:903
         boolean oracle.bali.ewt.dialog.JEWTDialog.runDialog()
         void oracle.ide.dialogs.ProgressBar.start(java.lang.String, java.lang.String)
              ProgressBar.java:274
         void oracle.jdevimpl.webservices.generator.SPWebServiceGenerator.generate(oracle.jdevimpl.webservices.wizard.publish.SPPublishModel, oracle.jdevimpl.webservices.util.JavaXSDTypeMap)
              SPWebServiceGenerator.java:187
         void oracle.jdevimpl.webservices.wizard.SPWebServicePublishWizard.wizardFinished(oracle.bali.ewt.wizard.WizardEvent)
              SPWebServicePublishWizard.java:391
         void oracle.bali.ewt.wizard.BaseWizard.processWizardEvent(oracle.bali.ewt.wizard.WizardEvent)
         void oracle.bali.ewt.wizard.BaseWizard.processEventImpl(java.awt.AWTEvent)
         void oracle.bali.ewt.LWComponent.processEvent(java.awt.AWTEvent)
         void oracle.bali.ewt.wizard.BaseWizard.doFinish()
         void oracle.bali.ewt.wizard.BaseWizard$Action.actionPerformed(java.awt.event.ActionEvent)
         void javax.swing.AbstractButton.fireActionPerformed(java.awt.event.ActionEvent)
              AbstractButton.java:1450
         void javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(java.awt.event.ActionEvent)
              AbstractButton.java:1504
         void javax.swing.DefaultButtonModel.fireActionPerformed(java.awt.event.ActionEvent)
              DefaultButtonModel.java:378
         void javax.swing.DefaultButtonModel.setPressed(boolean)
              DefaultButtonModel.java:250
         void javax.swing.plaf.basic.BasicButtonListener.mouseReleased(java.awt.event.MouseEvent)
              BasicButtonListener.java:216
         void java.awt.Component.processMouseEvent(java.awt.event.MouseEvent)
              Component.java:3715
         void java.awt.Component.processEvent(java.awt.AWTEvent)
              Component.java:3544
         void java.awt.Container.processEvent(java.awt.AWTEvent)
              Container.java:1164
         void java.awt.Component.dispatchEventImpl(java.awt.AWTEvent)
              Component.java:2593
         void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
              Container.java:1213
         void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
              Component.java:2497
         void java.awt.LightweightDispatcher.retargetMouseEvent(java.awt.Component, int, java.awt.event.MouseEvent)
              Container.java:2451
         boolean java.awt.LightweightDispatcher.processMouseEvent(java.awt.event.MouseEvent)
              Container.java:2216
         boolean java.awt.LightweightDispatcher.dispatchEvent(java.awt.AWTEvent)
              Container.java:2125
         void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
              Container.java:1200
         void java.awt.Window.dispatchEventImpl(java.awt.AWTEvent)
              Window.java:922
         void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
              Component.java:2497
         void java.awt.EventQueue.dispatchEvent(java.awt.AWTEvent)
              EventQueue.java:339
         boolean java.awt.EventDispatchThread.pumpOneEventForHierarchy(java.awt.Component)
              EventDispatchThread.java:131
         void java.awt.EventDispatchThread.pumpEventsForHierarchy(java.awt.Conditional, java.awt.Component)
              EventDispatchThread.java:98
         void java.awt.Dialog.show()
              Dialog.java:380
         void java.awt.Component.show(boolean)
              Component.java:946
         void java.awt.Component.setVisible(boolean)
              Component.java:903
         boolean oracle.bali.ewt.wizard.WizardDialog.runDialog()
         boolean oracle.ide.wizard.TitledWizardDialog.runDialog()
              TitledWizardDialog.java:147
         boolean oracle.jdevimpl.webservices.wizard.SPWebServicePublishWizard.runWizard()
              SPWebServicePublishWizard.java:404
         boolean oracle.jdevimpl.webservices.wizard.SPWebServicePublish.invoke(oracle.ide.addin.Context, java.lang.String[])
              SPWebServicePublish.java:221
         void oracle.ide.WizardManager$1.run()
              WizardManager.java:450
         void java.awt.event.InvocationEvent.dispatch()
              InvocationEvent.java:154
         void java.awt.EventQueue.dispatchEvent(java.awt.AWTEvent)
              EventQueue.java:337
         boolean java.awt.EventDispatchThread.pumpOneEventForHierarchy(java.awt.Component)
              EventDispatchThread.java:131
         void java.awt.EventDispatchThread.pumpEventsForHierarchy(java.awt.Conditional, java.awt.Component)
              EventDispatchThread.java:98
         void java.awt.EventDispatchThread.pumpEvents(java.awt.Conditional)
              EventDispatchThread.java:93
         void java.awt.EventDispatchThread.run()
              EventDispatchThread.java:85

    Could be. Here's what the console has on it. Of course, contrary to the message, it is an Oracle database. Good luck!
    Invoking JPublisher with command line:
    -user=w19572/w19572
    -driver=oracle.jdbc.driver.OracleDriver
    -url=jdbc:oracle:thin:@localhost:1521:HUDSOJ
    -numbertypes=objectjdbc
    -lobtypes=jdbc
    -usertypes=oracle
    -builtintypes=jdbc
    -case=mixed
    -encoding=Cp1252
    -methods=named
    -plsqlmap=true
    -transitive=true
    -omit_schema_names
    -dir=C:\Data\jdev9i\NEIEN1\Project1\src\__temp_java_wrappers
    -package=factlocal
    -input=C:\TEMP\input59112.jpub
    C:\Data\jdev9i\NEIEN1\Project1\src\__temp_java_wrappers\factlocal\Pk_web_service
    _test2.sqlj:43.5-44.17: Warning: You are using an Oracle JDBC driver, but connec
    ting to an non-Oracle database. SQLJ will perform JDBC-generic SQL checking.
    C:\Data\jdev9i\NEIEN1\Project1\src\__temp_java_wrappers\factlocal\Pk_web_service
    test2.sqlj:43.5-44.17: Error: Not found: PKWEB_SERVICE_TEST2.FID_TO_NAME. Ther
    e is no stored procedure or function of this name.
    C:\Data\jdev9i\NEIEN1\Project1\src\__temp_java_wrappers\factlocal\Pk_web_service
    test2.sqlj:53.5-54.17: Error: Not found: PKWEB_SERVICE_TEST2.FID_TO_SIC. There
    is no stored procedure or function of this name.
    C:\Data\jdev9i\NEIEN1\Project1\src\__temp_java_wrappers\factlocal\Pk_web_service
    test2.sqlj:63.5-64.17: Error: Not found: PKWEB_SERVICE_TEST2.FID_TO_SICLIST. T
    here is no stored procedure or function of this name.
    C:\Data\jdev9i\NEIEN1\Project1\src\__temp_java_wrappers\factlocal\Pk_web_service
    test2.sqlj:73.5-74.17: Error: Not found: PKWEB_SERVICE_TEST2.FID_TO_SIC_TABLE.
    There is no stored procedure or function of this name.
    C:\Data\jdev9i\NEIEN1\Project1\src\__temp_java_wrappers\factlocal\Pk_web_service
    test2.sqlj:83.5-84.15: Error: Not found: PKWEB_SERVICE_TEST2.FID_TO_WHEREDATA.
    There is no stored procedure or function of this name.
    C:\Data\jdev9i\NEIEN1\Project1\src\__temp_java_wrappers\factlocal\Pk_web_service
    test2.sqlj:94.5-96.21: Error: Not found: PKWEB_SERVICE_TEST2.UPDATE_NAME. Ther
    e is no stored procedure or function of this name.
    Total 6 errors and 1 warning.

  • Can't create WS from PLSQL package (Jdeveloper 11g 4) (Exception occured)

    Hello,
    I'am using JDeveloper 11g preview 4.
    On database i have a package with 2 procedures.
    When I like to create a WS from database package I get the Exception:
    java.lang.ClassCastException: oracle.jdeveloper.webservices.model.plsql.PLSQLPortType
         at oracle.jdeveloper.webservices.model.generator.AddToDeploymentProfiles.getJarFiles(AddToDeploymentProfiles.java:592)
         at oracle.jdeveloper.webservices.model.generator.AddToDeploymentProfiles.action(AddToDeploymentProfiles.java:292)
         at oracle.jdeveloper.webservices.model.generator.GeneratorAction.run(GeneratorAction.java:147)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
         at java.awt.Dialog$1.run(Dialog.java:525)
         at java.awt.Dialog$2.run(Dialog.java:553)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.awt.Dialog.show(Dialog.java:551)
         at java.awt.Component.show(Component.java:1300)
         at java.awt.Component.setVisible(Component.java:1253)
         at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
         at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
         at oracle.ide.dialogs.ProgressBar.start(ProgressBar.java:361)
         at oracle.ide.dialogs.ProgressBar.start(ProgressBar.java:222)
         at oracle.ide.dialogs.ProgressBar.start(ProgressBar.java:194)
         at oracle.jdeveloper.webservices.model.Model.saveEditSync(Model.java:242)
         at oracle.jdevimpl.webservices.wizard.jaxrpc.PLSQLWizard.runWizard(PLSQLWizard.java:366)
         at oracle.jdevimpl.webservices.wizard.jaxrpc.PLSQLWizard.runWizard(PLSQLWizard.java:137)
         at oracle.jdevimpl.webservices.WebServicesAddin.fastCreatePlSqlService(WebServicesAddin.java:1503)
         at oracle.jdevimpl.webservices.WebServicesAddin.handleEvent(WebServicesAddin.java:870)
         at oracle.ide.controller.IdeAction.performAction(IdeAction.java:513)
         at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:843)
         at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:486)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
         at javax.swing.plaf.basic.BasicMenuItemUI$Handler.menuDragMouseReleased(BasicMenuItemUI.java:1104)
         at javax.swing.JMenuItem.fireMenuDragMouseReleased(JMenuItem.java:578)
         at javax.swing.JMenuItem.processMenuDragMouseEvent(JMenuItem.java:475)
         at javax.swing.JMenuItem.processMouseEvent(JMenuItem.java:422)
         at javax.swing.MenuSelectionManager.processMouseEvent(MenuSelectionManager.java:283)
         at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1043)
         at java.awt.Component.processMouseEvent(Component.java:5501)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
         at java.awt.Component.processEvent(Component.java:5266)
         at java.awt.Container.processEvent(Container.java:1966)
         at java.awt.Component.dispatchEventImpl(Component.java:3968)
         at java.awt.Container.dispatchEventImpl(Container.java:2024)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
         at java.awt.Container.dispatchEventImpl(Container.java:2010)
         at java.awt.Window.dispatchEventImpl(Window.java:1778)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    Exception from Jdeveloper console
    Validating XML...
    Validating C:\Generali\WsGenerali\public_html\WEB-INF\web.xml
    Validate XML: 0 errors, 0 warnings.
    Aug 13, 2008 1:20:20 PM oracle.javatools.logging.LogUtils log
    WARNING: Exception in task oracle.jdeveloper.webservices.model.generator.FixLocationAttribute$1@1fa522d on model oracle.jdevimpl.webservices.wsdl.WSDLXmlModel@129271e; txn name=null
    java.lang.NullPointerException
         at oracle.jdeveloper.webservices.model.generator.FixLocationAttribute$1.performTask(FixLocationAttribute.java:72)
         at oracle.bali.xml.model.task.StandardTransactionTask.runThrowingXCE(StandardTransactionTask.java:172)
         at oracle.bali.xml.model.task.StandardTransactionTask.run(StandardTransactionTask.java:103)
         at oracle.jdeveloper.webservices.model.generator.FixLocationAttribute.action(FixLocationAttribute.java:51)
         at oracle.jdeveloper.webservices.model.generator.GeneratorAction.run(GeneratorAction.java:147)
         at java.lang.Thread.run(Thread.java:595)
    Aug 13, 2008 1:20:20 PM oracle.j2ee.xml.XMLMessages warningException
    WARNING: Exception Encountered
    Aug 13, 2008 1:20:20 PM oracle.j2ee.xml.XMLMessages warningException
    WARNING: Exception Encountered
    Aug 13, 2008 1:20:20 PM oracle.j2ee.xml.XMLMessages warningException
    my procedures are:
    type r_sifrant is record
    ( id number,
    nadrejeni_id number,
    opis varchar2(100),
    privzeto varchar2(1)
    type r_cursor is ref cursor return r_sifrant;
    function f_sel_sifrant(p_naziv in varchar2) return r_cursor;
    procedure gen_polica(p_username in varchar2, p_polica_xml in clob, p_stevilka_police out number);
    Here I have posted a video of generating ws from plsql package (screen capture):
    http://shrani.si/f/x/P6/m5GSF8c/in2.avi
    Thank you for any help
    best regards
    Peterv
    Message was edited by:
    user651799

    Hello,
    I'am using JDeveloper 11g preview 4.
    On database i have a package with 2 procedures.
    When I like to create a WS from database package I get the Exception:
    java.lang.ClassCastException: oracle.jdeveloper.webservices.model.plsql.PLSQLPortType
         at oracle.jdeveloper.webservices.model.generator.AddToDeploymentProfiles.getJarFiles(AddToDeploymentProfiles.java:592)
         at oracle.jdeveloper.webservices.model.generator.AddToDeploymentProfiles.action(AddToDeploymentProfiles.java:292)
         at oracle.jdeveloper.webservices.model.generator.GeneratorAction.run(GeneratorAction.java:147)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
         at java.awt.Dialog$1.run(Dialog.java:525)
         at java.awt.Dialog$2.run(Dialog.java:553)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.awt.Dialog.show(Dialog.java:551)
         at java.awt.Component.show(Component.java:1300)
         at java.awt.Component.setVisible(Component.java:1253)
         at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
         at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
         at oracle.ide.dialogs.ProgressBar.start(ProgressBar.java:361)
         at oracle.ide.dialogs.ProgressBar.start(ProgressBar.java:222)
         at oracle.ide.dialogs.ProgressBar.start(ProgressBar.java:194)
         at oracle.jdeveloper.webservices.model.Model.saveEditSync(Model.java:242)
         at oracle.jdevimpl.webservices.wizard.jaxrpc.PLSQLWizard.runWizard(PLSQLWizard.java:366)
         at oracle.jdevimpl.webservices.wizard.jaxrpc.PLSQLWizard.runWizard(PLSQLWizard.java:137)
         at oracle.jdevimpl.webservices.WebServicesAddin.fastCreatePlSqlService(WebServicesAddin.java:1503)
         at oracle.jdevimpl.webservices.WebServicesAddin.handleEvent(WebServicesAddin.java:870)
         at oracle.ide.controller.IdeAction.performAction(IdeAction.java:513)
         at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:843)
         at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:486)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
         at javax.swing.plaf.basic.BasicMenuItemUI$Handler.menuDragMouseReleased(BasicMenuItemUI.java:1104)
         at javax.swing.JMenuItem.fireMenuDragMouseReleased(JMenuItem.java:578)
         at javax.swing.JMenuItem.processMenuDragMouseEvent(JMenuItem.java:475)
         at javax.swing.JMenuItem.processMouseEvent(JMenuItem.java:422)
         at javax.swing.MenuSelectionManager.processMouseEvent(MenuSelectionManager.java:283)
         at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1043)
         at java.awt.Component.processMouseEvent(Component.java:5501)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
         at java.awt.Component.processEvent(Component.java:5266)
         at java.awt.Container.processEvent(Container.java:1966)
         at java.awt.Component.dispatchEventImpl(Component.java:3968)
         at java.awt.Container.dispatchEventImpl(Container.java:2024)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
         at java.awt.Container.dispatchEventImpl(Container.java:2010)
         at java.awt.Window.dispatchEventImpl(Window.java:1778)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    Exception from Jdeveloper console
    Validating XML...
    Validating C:\Generali\WsGenerali\public_html\WEB-INF\web.xml
    Validate XML: 0 errors, 0 warnings.
    Aug 13, 2008 1:20:20 PM oracle.javatools.logging.LogUtils log
    WARNING: Exception in task oracle.jdeveloper.webservices.model.generator.FixLocationAttribute$1@1fa522d on model oracle.jdevimpl.webservices.wsdl.WSDLXmlModel@129271e; txn name=null
    java.lang.NullPointerException
         at oracle.jdeveloper.webservices.model.generator.FixLocationAttribute$1.performTask(FixLocationAttribute.java:72)
         at oracle.bali.xml.model.task.StandardTransactionTask.runThrowingXCE(StandardTransactionTask.java:172)
         at oracle.bali.xml.model.task.StandardTransactionTask.run(StandardTransactionTask.java:103)
         at oracle.jdeveloper.webservices.model.generator.FixLocationAttribute.action(FixLocationAttribute.java:51)
         at oracle.jdeveloper.webservices.model.generator.GeneratorAction.run(GeneratorAction.java:147)
         at java.lang.Thread.run(Thread.java:595)
    Aug 13, 2008 1:20:20 PM oracle.j2ee.xml.XMLMessages warningException
    WARNING: Exception Encountered
    Aug 13, 2008 1:20:20 PM oracle.j2ee.xml.XMLMessages warningException
    WARNING: Exception Encountered
    Aug 13, 2008 1:20:20 PM oracle.j2ee.xml.XMLMessages warningException
    my procedures are:
    type r_sifrant is record
    ( id number,
    nadrejeni_id number,
    opis varchar2(100),
    privzeto varchar2(1)
    type r_cursor is ref cursor return r_sifrant;
    function f_sel_sifrant(p_naziv in varchar2) return r_cursor;
    procedure gen_polica(p_username in varchar2, p_polica_xml in clob, p_stevilka_police out number);
    Here I have posted a video of generating ws from plsql package (screen capture):
    http://shrani.si/f/x/P6/m5GSF8c/in2.avi
    Thank you for any help
    best regards
    Peterv
    Message was edited by:
    user651799

  • Oracle BI 11.1.1.7.1: Calling BI webservices from Plsql Procedure: ORA-29532: Java call terminated by uncaught Java exception: java.lang.NoClassDefFoundError

    Hi,
         I have a requirement of calling BI webservices from Plsql stored procedure. I generated all my wsdl java classes and loaded them into the database. However, when I tried to call one of my java class using stored procedure, it is giving me"ORA-29532: Java call terminated by uncaught Java exception: java.lang.NoClassDefFoundError".
    *Cause:    A Java exception or error was signaled and could not be
               resolved by the Java code.
    *Action:   Modify Java code, if this behavior is not intended.
    But all my dependency classes are present in database as java class objects and are valid. Can some one help me out of this?

    Stiphane,
    You can look in USER_ERRORS to see if there's anything more specific reported by the compiler. But, it could also be the case that everything's OK (oddly enough). I loaded the JavaMail API in an 8.1.6 database and also got bytecode verifier errors, but it ran fine. Here are the errors I got when loading Sun's activation.jar, which ended up not being a problem:
    ORA-29552: verification warning: at offset 12 of <init> void (java.lang.String, java.lang.String) cannot access class$java$io$InputStream
    verifier is replacing bytecode at <init> void (java.lang.String, java.lang.String):12 by a throw at offset 18 of <init> void (java.lang.String, java.lang.String) cannot access class$java$io$InputStream
    verifier is replacing bytecode at <init> void (java.lang.String, java.lang.String):18 by a throw at offset 30 of <init> void (java.lang.String, java.lang.String) cannot access class$java$io$InputStream
    verifier is replacing bytecode at <init> void (java.lang.String, java.lang.String):30 by a throw
    Hope this helps,
    -Dan
    http://www.compuware.com/products/devpartner/db/oracle_debug.htm
    Debug PL/SQL and Java in the Oracle Database

  • Execute Custom code to do a warning message on SSHR Manager Appraisal form

    Hello - I do not know much about Java/OAF, but I'm really trying to learn! Here is my requirement,
    please help me in getting this done.
    Requirement : On Employee appraisal form, they will have their yearly objectives and their weight percentages.
    These objectives weight percentage is in per_appraisal table attribute1 field(DFF).
    The total weight percentage of an employess all objectives should be equal 100.
    When manager will login to give them a final rating, the total of all weights percentages should be equal to 100,
    if not I have to through a warning message on the Manager's appraisal form(CompFinalRatingsCO).
    To calculate the total weight, we can certainly write a small pl/sql function or a procedure.
    But how can I execute that code and show a warning message on SelfService HR Manager Appraisal form?
    Thanks in advance for your help.
    Thanks
    - Srini

    1) extend the CO attached to your page.
    2) Capture the Button in Processformrequest of your extended CO.
    3) Call a plsql function or procedure with OUT param which will return whether 100% weightage has been entered or not.
    If Not, then throw warning message.
    Here is the way to call Plsql proc with OUT param.
    String sql =
    "BEGIN bcr12_mapping_tool_procs_pkg.XXBCR12_HAS_MANDATORY(:1,:2); END;";
    OracleCallableStatement cs =
    (OracleCallableStatement)am.getOADBTransaction().createCallableStatement(sql,
    1);
    try {
    cs.registerOutParameter(2, 1, 0, 2000);
    cs.setString(1, int_name);
    cs.execute();
    String new_status = cs.getString(2);
    cs.close();
    if ("Y".equals(new_status.trim())) {
    throw new OAException("Please enter all mandatory column highlighted.",
    (byte)0);
    } catch (Exception ex) {
    throw new OAException(ex.getMessage());
    }

  • PLSQL changing XML file content

    Hello Experts,
    I have a task to do.
    I have to replace special characters from an XML file placed on the server through PLSQL.
    So that i created a plsql procedure.
    PROCEDURE REMOVE_SPECIAL_CHARS (p_file_name IN VARCHAR2)
    AS
    l_tmp_clob       CLOB                             DEFAULT EMPTY_CLOB();
    l_bfile          BFILE NULL;
    l_dest_offset    INTEGER            := 1;
    l_src_offset     INTEGER            := 1;
    l_outfile        UTL_FILE.file_type;
    lang_ctx         NUMBER             := DBMS_LOB.default_lang_ctx;
    warning          NUMBER NULL;
    l_dest_file      VARCHAR2(300) NULL;
    BEGIN
    mob_util_pck.log_write ('I','Inside REMOVE_SPECIAL_CHARS procedure(+)');
    l_dest_file:=SUBSTR (p_file_name, (INSTR (p_file_name, '/', -1, 1))+1);
    mob_util_pck.log_write ('I','Following File will be modified: '||l_dest_file);  
       l_bfile := BFILENAME ('MOBSEPAOUT', l_dest_file);
       DBMS_LOB.OPEN (l_bfile, DBMS_LOB.file_readonly);
       DBMS_LOB.createtemporary (l_tmp_clob, TRUE);
       DBMS_LOB.loadclobfromfile (dest_lob          => l_tmp_clob
                                , src_bfile         => l_bfile
                                , amount            => DBMS_LOB.getlength (l_bfile)
                                , dest_offset       => l_dest_offset
                                , src_offset        => l_src_offset
                                , bfile_csid        => DBMS_LOB.default_csid
                                , lang_context      => lang_ctx
                                , warning           => warning
       DBMS_LOB.CLOSE (l_bfile);
    mob_util_pck.log_write ('I','Deleting Old File');
       BEGIN
          mob_util_pck.delete_files ('MOBSEPAOUT'
                                   , l_dest_file
       END;
    mob_util_pck.log_write ('I','Before Replacing Characters');
       l_tmp_clob := REPLACE (l_tmp_clob, '€', 'E');
       l_tmp_clob := REPLACE (l_tmp_clob, '@', '(at)');
       l_tmp_clob := REPLACE (l_tmp_clob, '&', '+');
       l_tmp_clob := REPLACE (l_tmp_clob, 'à', 'a');
       l_tmp_clob := REPLACE (l_tmp_clob, 'é', 'e');
       l_tmp_clob := REPLACE (l_tmp_clob, 'è', 'e');
       l_tmp_clob := REPLACE (l_tmp_clob, 'ç', 'c');
       l_tmp_clob := REPLACE (l_tmp_clob, 'ù', 'u');
       l_tmp_clob := REPLACE (l_tmp_clob, 'ï', 'i');
       l_tmp_clob := REPLACE (l_tmp_clob, 'ù', 'u');
       l_tmp_clob := REPLACE (l_tmp_clob, '[', '(');
       l_tmp_clob := REPLACE (l_tmp_clob, ']', ')');
       l_tmp_clob := REPLACE (l_tmp_clob, '\', '/');
       l_tmp_clob := REPLACE (l_tmp_clob, '^', '.');
       l_tmp_clob := REPLACE (l_tmp_clob, 'ù', 'u');
       --l_tmp_clob := REPLACE (l_tmp_clob, '_', '-');
       l_tmp_clob := REPLACE (l_tmp_clob, '`', '''');
       l_tmp_clob := REPLACE (l_tmp_clob, '{', '(');
       l_tmp_clob := REPLACE (l_tmp_clob, '|', '/');
       l_tmp_clob := REPLACE (l_tmp_clob, '}', ')');
       l_tmp_clob := REPLACE (l_tmp_clob, '~', '-');
       l_tmp_clob := REPLACE (l_tmp_clob, 'À', 'A');
       l_tmp_clob := REPLACE (l_tmp_clob, 'Á', 'A');
       l_tmp_clob := REPLACE (l_tmp_clob, 'Â', 'A');
       l_tmp_clob := REPLACE (l_tmp_clob, 'Ã', 'A');
       l_tmp_clob := REPLACE (l_tmp_clob, 'Ä', 'A');
       l_tmp_clob := REPLACE (l_tmp_clob, 'Å', 'A');
       l_tmp_clob := REPLACE (l_tmp_clob, 'Ç', 'C');
       l_tmp_clob := REPLACE (l_tmp_clob, 'È', 'E');
       l_tmp_clob := REPLACE (l_tmp_clob, 'É', 'E');
       l_tmp_clob := REPLACE (l_tmp_clob, 'Ê', 'E');
       l_tmp_clob := REPLACE (l_tmp_clob, 'Ë', 'E');
       l_tmp_clob := REPLACE (l_tmp_clob, 'Ì', 'I');
       l_tmp_clob := REPLACE (l_tmp_clob, 'Í', 'I');
       l_tmp_clob := REPLACE (l_tmp_clob, 'Î', 'I');
       l_tmp_clob := REPLACE (l_tmp_clob, 'Ï', 'I');
       l_tmp_clob := REPLACE (l_tmp_clob, 'Ñ', 'N');
       l_tmp_clob := REPLACE (l_tmp_clob, 'Ò', 'O');
       l_tmp_clob := REPLACE (l_tmp_clob, 'Ó', 'O');
       l_tmp_clob := REPLACE (l_tmp_clob, 'Ô', 'O');
       l_tmp_clob := REPLACE (l_tmp_clob, 'Õ', 'O');
       l_tmp_clob := REPLACE (l_tmp_clob, 'Ö', 'O');
       l_tmp_clob := REPLACE (l_tmp_clob, 'Ù', 'U');
       l_tmp_clob := REPLACE (l_tmp_clob, 'Ú', 'U');
       l_tmp_clob := REPLACE (l_tmp_clob, 'Û', 'U');
       l_tmp_clob := REPLACE (l_tmp_clob, 'Ü', 'U');
       l_tmp_clob := REPLACE (l_tmp_clob, 'Ý', 'Y');
       mob_util_pck.log_write ('I','After Replacing Special Characters');
       mob_util_pck.log_write ('I','Before Creating New File '||l_dest_file);
       DBMS_XSLPROCESSOR.clob2file(l_tmp_clob, 'MOBSEPAOUT', l_dest_file);
       mob_util_pck.log_write ('I','After Creating New File '||l_dest_file);
       mob_util_pck.log_write ('I','Inside REMOVE_SPECIAL_CHARS procedure(-)');
    END REMOVE_SPECIAL_CHARS;
    This procedure is working fine for some special characters. But some special characters are getting replaced by different characters before performing the replace so it is causing wrong replacement of characters.
    eg- i need to replace & by +
    but it is changing it to +amp which is incorrect.
    Is it something related to characters encoding?
    Please help.
    Regards-
    Vikrant

    eg- i need to replace & by +
    but it is changing it to +amp which is incorrect.
    Is it something related to characters encoding?
    Due to its special meaning in the XML language, occurrences of the ampersand character '&' have be escaped to &amp; as well as '<', '>' and '"' respectively to &lt;, &gt; and &quot;.
    So in short, do not replace the ampersand character.

  • Why does plsql give compilation error for select statement?

    When I run following plsql program, it gives compilation error. Could somebody please point me out what could be wrong here? I am running it from system user.
    create or replace procedure drop_user_proc (iname in varchar2) is
    uname varchar2(100);
    begin
    select username into uname from dba_users where username = upper(iname);
    end drop_user_proc;
    select username from dba_users where username = upper('newuser');
    When I run it, I get following error. dba_users is there that is the reason it works outside plsql block, but it doesn't from inside block.
    SQL> @t4
    Warning: Procedure created with compilation errors.
    USERNAME
    NEWUSER
    SQL> show err
    Errors for PROCEDURE DROP_USER_PROC:
    LINE/COL ERROR
    4/3 PL/SQL: SQL Statement ignored
    4/35 PL/SQL: ORA-00942: table or view does not exist

    Role based grants are not available within the stored procedures.
    Only explicit grants are recognized when compiling stored code.
    You need to grant select on that table to the user where you are creating this procedure.

Maybe you are looking for

  • Is there a patch to help Dreamweaver work without problems in vista?

    Please let me know if there is a patch I can download to make Dreamweaver compatible with Vista. The problems are numerous and are driving me nuts at the moment. Can you upgrade to DW CS3 from the website? Nick.

  • 11g on SLES 10 x86_64 problem

    Hi I'm trying to install Oracle 11g Database (linux.x64_11gR1_database.zip) on SLES 10 x86_64 SP1 (2.6.16.46-0.12-smp) And I've got error while linking: Exception Name: MakefileException Exception String: Error in invoking target 'ioracle client_shar

  • Virtual machine Size issue

    Hello, i need to update/reseed the exchange database. if i reseed/update the database, the virtual machine size will be increase? i have limited physical HDD size. Please suggest.

  • Upgrade from iPhoto '08

    Can I upgrade directly to iPhoto '11 from iPhoto '08? Secondly, I am considering purchasing it through the App Store - do you know if the App Store offers the iPhoto '11 app as a Family copy? If the upgrade can be done, what actions would be prudent

  • Recording usage time for equipment in CATS

    Hi all, We have the following scenario that we would like to implement: We have machinery that is used in several projects. We use equipment master records for the machines and WBS elements for the projects. We want to record how many hours a piece o