Getting no data when it got changed from Oracle Database 10g to 11G

Hi All,
Below decode column is not working in Oracle database 11G but it is working in 10g. Please advise.
{DECODE('Y',DECODE(cr.segment4,DECODE(cr.segment5,'007','32020','N'),'Y','N')
,DECODE(SIGN(DECODE(pacd.line_num_reversed,NULL,pae.raw_cost,( -1*pae.raw_cost ))),-1,DECODE(INSTR(pae.expenditure_type,'Accrual'),0
,pae.project_exchange_rate*DECODE(pacd.line_num_reversed,NULL,pae.raw_cost,( -1*pae.raw_cost )),pae.project_exchange_rate*DECODE(pacd.line_num_reversed,NULL,pae.raw_cost,( -1*pae.raw_cost ))*-1),( -1*pae.project_exchange_rate*DECODE(pacd.line_num_reversed,NULL,pae.raw_cost,( -1*pae.raw_cost )) ))
,DECODE(dr.segment4,DECODE(dr.segment5,'007','32020','N'),'Y','N'),DECODE(SIGN(DECODE(pacd.line_num_reversed,NULL,pae.raw_cost,( -1*pae.raw_cost ))),1
,pae.project_exchange_rate*DECODE(pacd.line_num_reversed,NULL,pae.raw_cost,( -1*pae.raw_cost )),( pae.project_exchange_rate*DECODE(pacd.line_num_reversed,NULL,pae.raw_cost,( -1*pae.raw_cost)) ))) "Amount"
Regards,

WRONG FORUM!
This forum is for sql developer questions only.
Since this is not a SQL Developer question it should be posted in the SQL and PL/SQL forum
PL/SQL
Please mark this question ANSWERED and repost it in the other forum.

Similar Messages

  • How to call web services from oracle database 10g

    Hi all ,
    How can i call web services from oracle database 10g ?
    thanks ...

    abdou123 wrote:
    but how can i get complex result
    for example
    i pass input parameter like National Id Number
    and get the person details ( name , age , date of birth , ............ ) .Basic approach to web services using UTL_HTTP explained in {message:id=10448611}.
    An example of using a pipeline table function as a data transformation process (turning web data into rows and columns) in {message:id=10158148}.

  • Disconnected from Oracle Database 10g Release 10.2.0.1.0 - Production

    Can anyone tell me why my Database is not starting, I have been getting this error for quite some time now
    Total System Global Area 532676608 bytes
    Fixed Size          1249992 bytes
    Variable Size          167775544 bytes
    Database Buffers     360710144 bytes
    Redo Buffers          2940928 bytes
    Database mounted.
    Database opened.
    SQL> Disconnected from Oracle Database 10g Release 10.2.0.1.0 - Production
    Thank you in advance

    Your Database has started. It only disconnected the session that started the database. For instance, if you are using a startuo script or dbstart.
    Why do you think it is not started?

  • Send mail from oracle database 10g

    Hi ,
    I need to send a test mail from oracle database 10g to my gmail account through a stored procedure .
    I will pass the list of recipents , subject and text of the mail through parameters .
    Can anyone give me the code of the storerd procedure please ,
    Thank you .

    hi, for example
    DECLARE
    mail_conn UTL_SMTP.connection;
    smtp_relay VARCHAR2(32) := '172.16.x.x';
    recipient_address VARCHAR2(64) := '[email protected]';
    sender_address VARCHAR2(64) := '[email protected]';
    mail_port NUMBER := 25;
    msg VARCHAR2(200);
    BEGIN
    mail_conn := UTL_SMTP.open_connection(smtp_relay,mail_port);
    UTL_SMTP.HELO(mail_conn, smtp_relay);
    UTL_SMTP.MAIL(mail_conn, sender_address);
    UTL_SMTP.RCPT(mail_conn, recipient_address);
    UTL_SMTP.DATA(mail_conn, 'Payment request iniated');
    UTL_SMTP.QUIT(mail_conn);
    end;

  • Database upgradation steps from Oracle Database 10g EE to 11g R2

    If any document/Steps available for the upgradation of database from Oracle Database 10g EE to 11g R2 please provide us.
    Thank you.

    Please refer to this document for a step by step guide:
    http://www.oracleflash.com/34/Upgrade-Oracle-10g-Release-2-to-Oracle-11g-Release-2.html

  • How to upgrade from oracle database 10g 10.1.0.3 to 10.1.0.5 or 10.2.0.4

    I have a oracle database 10g version 10.1.0.3 on solaris 10 x86. I can't find the recent patches suitable to my database.
    How can I upgrade it to 10.1.0.5 or higher (10.2.0.4)?
    Thanks.

    take a looks at this metalink doc for all upgrade needs...
    sub: Complete checklist for manual upgrades of Oracle databases from anyversion to any version on any platform (documents only from 7.3.x>>8.0.x>>8.1.x>>9.0.x>>9.2.x>>10.1.x>>10.2.x>>11.1.x)
    Doc ID:      421191.1

  • Exception when calling web service from Oracle forms 10g

    Hi All,
    I am trying to integrate Oracle Forms 10g(V 10.1.2.0.2.) with Web Services.
    There is a java class named 'authenticate' which is generated using Oracle JDeveloper.
    This class is included in the forms application by using "Import Java Class" feature.
    Forms built the following funtion based on that class:
    -- Method: authenticate (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    FUNCTION authenticate(
    obj ORA_JAVA.JOBJECT,
    a0 VARCHAR2,
    a1 VARCHAR2) RETURN VARCHAR2 IS
    BEGIN
    args := JNI.CREATE_ARG_LIST(2);
    JNI.ADD_STRING_ARG(args, a0);
    JNI.ADD_STRING_ARG(args, a1);
    message('here1');
    RETURN JNI.CALL_STRING_METHOD(FALSE, obj, 'mypackage/AuthenticatorWebServiceServiceStub',
    'authenticate', '(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;', args);
    message('here2');
    END;
    However when the above code is invoked it shows the message 'here1' on the form and then throws the following exception: java.lang.Exception: java.lang.ClassCastException
    Please suggest me what's wrong with the code. I appreciate your time and help.
    Thanks,
    Scott.

    My primary skill is PL/SQL but the only information I found on Oracle's site to call a web service from a 10g Form was creating a jar file and importing the java class. Since I don't want to ask our corporate IT to make changes on the UNIX box for the jar files I went a different route.
    I use UTL_HTTP.BEGIN_REQUEST to call a URL then load I load the data to a table as a CLOB since we have more than 4000 characters. Now I need to parse the XML and load it into a form. I have never done this so if there is a helpful site please let me know. I have looked at several sites but none do what I want.
    Thanks

  • Data Transfer from Oracle database 10g to Oracle database 9i

    Hi Experts,
    We need to insert records at the speed of min 10,000 records per sec in the following condition.
    Source : Oracle 10 g and Oracle 9i
    We need to select the data from Oracle 10g and insert into Oracle 9i database.
    Here we not allowing to create database link and also not allowing to create view or materialized view
    because this two database is not on same network.
    So we developing the small java application on intermediate server where we write process to get the connection of this two database servers.
    From java application we call the procedure for selecting data from Oracle 10g and insert into oracle 9i database.
    What is the best way to achieve?
    Or You also suggest any other way to achieve
    ( As per this scenario materialized view is working ? )

    Thanks freiser,
    But it create another problem as per my business logic, There will be two database server , one is online server where online user fill the form which is generated by java, spring , hibernate and using database 10 g.
    at day end i need to execute a process that transferring data from online server to offline server that is in oracle database 9i. This process is scheduled. Some security reason client do not kept this two database on same network.
    My challenge is that transfer data from online server to offline server with applying client security norms.
    I have option like
    1) Using Oracle replication method, creating materialized view on remote server , refreshing it at regular interval. but database connectivity is not contineous, should i go for that ?
    2) Write java application on intermediate server where we write process to get the connection of this two database servers. From java application we call the procedure for selecting data from Oracle 10g and insert into oracle 9i database and using flag on both data to identified how many rows are transfered and how many remaining for trasfer.
    Please tell me what is best way to acheive this ?

  • Trying to get prior error when using deferred constaint on Oracle database

     

    Hi Greg,
    There is no direct way to retrieve a error as an original exception
    is wrapped. Also, it's problematic to report constraint violations
    in general as different DB vendors use different ways to report them.
    You may try to correct problem by extracting text of the exception
    and looking for certain string patterns using direct string parsing
    or regexps.
    Regards,
    Slava Imeshev
    "Sanjeev Chopra" <[email protected]> wrote in message
    news:3d5aa128$[email protected]..
    posting to ejb newsgroup
    "Greg James" <[email protected]> wrote in message
    news:[email protected]..
    I'm using an Oracle database which has deferred constraints enabled. I'musing
    Weblogic 5.1 and Java. The problem is that the deferred constraints
    don't
    report
    errors until a commit. This makes all errors report back to the java EJBcode
    as error code 2091: Transaction Rolled Back. Both errors show up in theWeblogic
    log file so there must be some way for my EJB to access it. How can I
    get
    the
    error code of the actual cause?

  • Problem migrating ear from Oracle AS 10g to 11g.

    Hi
    I need to deploy an ear file in Oracle AS 11g. The ear has war in it.
    The ear file has uix pages and the supporting files (EOs and VOs).
    Using Oracle AS 10g:
    Here, i used to create a OC4J container and deploy the ear in this container.
    Using Oracle AS 11g:
    As there is no OC4J container support here, I have to deploy the ear in the
    weblogic server. I am facing problems doing so.
    In weblogic console,
    1) I have created a server and got it running.
    2) Went to 'Deployments' page and clicked on 'Install'.
    3) Entered the path for the ear file and pressed 'Next'
    I am getting the following error:
    X - Error Unable to access the selected application.
    X - Message icon - Error Exception in AppMerge flows' progression
    X - Message icon - Error Exception in AppMerge flows' progression
    X - Message icon - Error Bean already exists: "weblogic.j2ee.descriptor.ParamValueBeanImpl@bdc14d68(/[uix] /InitParams[oracle.cabo.ui.UIExtensions])"
    X - Message icon - Error Bean already exists: "weblogic.j2ee.descriptor.ParamValueBeanImpl@bdc14d68(/[uix]/InitParams[oracle.cabo.ui.UIExtensions])"
    Can someone tell me if how this can be done or point me to an appropriate tutorial.
    It will be of great help.
    Thanks
    Kamal.

    Hi
    I could resolve the previous issue.
    But now i am facing the following error while trying to 'run' the application.
    Jan 9, 2010 4:35:55 PM oracle.mds.internal.lcm.logging.MDSLCMLogger info
    INFO: Application ID : OSNUIxProjec
    Jan 9, 2010 4:35:55 PM oracle.mds.internal.lcm.logging.MDSLCMLogger info
    INFO: "Metadata Services: Metadata archive (MAR) not found."
    Jan 9, 2010 4:35:55 PM JpsApplicationLifecycleListener Migrate Application Credential Store
    WARNING: Overwriting credentials is allowed in application credential store migration with Weblogic server running in Development Mode and system property 'jps.app.credential.overwrite.allowed' set to true
    Jan 9, 2010 4:36:22 PM oracle.mds.internal.lcm.logging.MDSLCMLogger info
    INFO: Application ID : wsm-pm
    Jan 9, 2010 4:36:22 PM oracle.mds.internal.lcm.logging.MDSLCMLogger info
    INFO: "Metadata Services: Metadata archive (MAR) not found."
    [2010-01-09 16:36:34] [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [ERROR] [LogWriter] getInstance() failed
    [2010-01-09 16:36:34] [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [ERROR] [LogWriter] null
    [2010-01-09 16:36:34] [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [ERROR] [LogWriter] getInstance() failed
    Any idea why this is happening?
    Thanks
    Kamal

  • Consume webservice from oracle database 10g

    Hi,
    I have installed jpublisher 10.2, Webservice Callout utility 10.1.3.1. My database version is 10.2.0.1.0. Jdk is 1.4. My classpath in jpub is as follows. TMPCLASSPATH=$ORACLE_HOME/jdk14/lib/dt.jar:$ORACLE_HOME/jdk14/lib/tools.jar:$ORACLE_HOME/jlib/javax-ssl-1_2.jar:$ORACLE_HOME/jlib/jssl-1_2.jar:$ORACLE_HOME/jdbc/lib/classes12_g.jar:$ORACLE_HOME/sqlj/lib/runtime12.jar:$ORACLE_HOME/jdbc/lib/nls_charset12.jar:$ORACLE_HOME/sqlj/lib/translator.jar:$ORACLE_HOME/javavm/lib/aurora.zip:$ORACLE_HOME/sqlj/lib/dbwsa.jar:$ORACLE_HOME/rdbms/jlib/xdb.jar:$ORACLE_HOME/lib/xsu12.jar:$ORACLE_HOME/rdbms/jlib/jndi.jar:$ORACLE_HOME/rdbms/jlib/aqapi.jar:$ORACLE_HOME/rdbms/jlib/jmscommon.jar:$ORACLE_HOME/lib/xmlparserv2.jar:$CLASSPATH
    the loadjava script is using classes12.jar. I published a wsdl using jpub. It went fine. When i tried to run select JPUB_PLSQL_WRAPPER.GETWEATHERBYzipcode('abc') from dual it's throwing exception ORA-29541: class schema.genproxy/WeatherForecastSoapClientJpub could not be resolved. By the way I used the following usdl. http://www.webservicex.net/WeatherForecast.asmx?WSDL. I appreciate any help in this matter.
    Thank you

    Please refer to this document for a step by step guide:
    http://www.oracleflash.com/34/Upgrade-Oracle-10g-Release-2-to-Oracle-11g-Release-2.html

  • How to export an XML file from oracle database?

    plz help me its urgent requirement....could u pls tell me the step by step procedure for following questions...?how to export a data as an XML file from oracle database?
    thanks in advance,
    Bala.
    Edited by: user3523292 on Nov 14, 2008 5:43 AM

    user3523292 wrote:
    plz help me its urgent requirement....could u pls tell me the step by step procedure for following questions...?how to export a data as an XML file from oracle database?
    thanks in advance,
    Bala.
    Edited by: user3523292 on Nov 14, 2008 5:43 AMThis is a forum of volunteers. There is no "urgent" here. Nevertheless, a google search of 'xml oracle export' quickly lead me to this Oracle site:
    otn.oracle.com/sample_code/tech/xml/index.html
    I also see lots of hits when I search the documentation library at tahiti.oracle.com for 'xml'. This one in particular may be what you are looking for:
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14252/adx_j_xsu.htm#ADXDK070

  • Export an XML file from oracle database

    plz help me its urgent requirement....could u pls tell me the step by step procedure for following questions...?how to export a data as an XML file from oracle database? is it possible..?
    thanks in advance,
    Bala. is it possible?
    Edited by: user3523292 on Nov 14, 2008 5:45 AM

    Here's the quick and dirty method using SQL*Plus...
    SQL> select * from emp where deptno = 10;
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO
          7782 CLARK      MANAGER         7839 09-JUN-81       2450                    10
          7839 KING       PRESIDENT            17-NOV-81       5000                    10
          7934 MILLER     CLERK           7782 23-JAN-82       1300                    10
    SQL> set markup html on
    SQL&gt; select * from emp where deptno = 10;
    <br>
    <p>
    <table border='1' width='90%' align='center' summary='Script output'>
    <tr>
    <th scope="col">
    EMPNO
    </th>
    <th scope="col">
    ENAME
    </th>
    <th scope="col">
    JOB
    </th>
    <th scope="col">
    MGR
    </th>
    <th scope="col">
    HIREDATE
    </th>
    <th scope="col">
    SAL
    </th>
    <th scope="col">
    COMM
    </th>
    <th scope="col">
    DEPTNO
    </th>
    </tr>
    <tr>
    <td align="right">
          7782
    </td>
    <td>
    CLARK
    </td>
    <td>
    MANAGER
    </td>
    <td align="right">
          7839
    </td>
    <td>
    09-JUN-81
    </td>
    <td align="right">
          2450
    </td>
    <td align="right">
    </td>
    <td align="right">
            10
    </td>
    </tr>
    <tr>
    <td align="right">
          7839
    </td>
    <td>
    KING
    </td>
    <td>
    PRESIDENT
    </td>
    <td align="right">
    </td>
    <td>
    17-NOV-81
    </td>
    <td align="right">
          5000
    </td>
    <td align="right">
    </td>
    <td align="right">
            10
    </td>
    </tr>
    <tr>
    <td align="right">
          7934
    </td>
    <td>
    MILLER
    </td>
    <td>
    CLERK
    </td>
    <td align="right">
          7782
    </td>
    <td>
    23-JAN-82
    </td>
    <td align="right">
          1300
    </td>
    <td align="right">
    </td>
    <td align="right">
            10
    </td>
    </tr>
    </table>
    <p>
    SQL&gt;which you can spool to a file.

  • Text getting cut off when printing to PDF from Excel

    Hello,
         I've seen a lot related to this subject but nothing that shows a real solution.
         Using Excel 2003-sp3 and Adobe Acrobat v.9 Standard, the right half of the last character in the string gets cut off. It prints from excel fine.
         It's not always the text that is the right-most on the page either. An affected PDF file is attached - note the cut off "S" on the last line (NET ASSETS OF GOVERNMENTAL ACTIVITIES).
         Any assistance is appreciated.
    Thanks,
    Kevin Murphy

    please delete me from your mailing list.  tks.
    Date: Wed, 10 Feb 2010 11:20:28 -0700
    From: [email protected]
    To: [email protected]
    Subject: Text getting cut off when printing to PDF from Excel
    Hello,
         I've seen a lot related to this subject but nothing that shows a real solution.
         Using Excel 2003-sp3 and Adobe Acrobat v.9 Standard, the right half of the last character in the string gets cut off. It prints from excel fine.
         It's not always the text that is the right-most on the page either. An affected PDF file is attached - note the cut off "S" on the last line (NET ASSETS OF GOVERNMENTAL ACTIVITIES).
         Any assistance is appreciated.
    Thanks,
    Kevin Murphy
    >

  • How do i get the date when enter a week number

    Hi, can anyone tell me how do i get the date when enter a week number??
    let say, i enter week number 4 and year 2008
    result=26-01-2008
    thanks..

    import java.util.Calendar;
    public class testCalendar {
         public static void main(String args[]){              
              int year=2008;
              int week =5;
              Calendar now=Calendar.getInstance();
              now.set(Calendar.YEAR,year);
    now.set(Calendar.WEEK_OF_YEAR,week);
              System.out.println(now.getTime());          
    hai, anyone know why i can't get the result:27-01-2008
    i always get two day later. That is 29-01-2008
    no wonder how i change the week number and year.
    for example: week=7, year=2007
    expected result:11-02-2007
    but the result is 13-02-2007
    thanks..
    Edited by: Angel_Wei on Sep 1, 2008 11:58 PM

Maybe you are looking for

  • How can I import an ics calendar file to my iPAd2

    I want to import my Windows calendar into my iPad2. I've tried using the ics file which is mentioned in the manual but no joy. What can I do?

  • Performance impact using nested tables and object

    Hi, Iam using oracle 11g. While creating a package, iam using lot of nested tables created based on objects which will be passed between multiple functions in the package.. Will it have any performance impact since all the data is stored in the memor

  • Highlight text in pdf file

    Has anyone worked on "Regenerate the PDF appearance stream and draw a box behind the text highlighted. 3rd point of this link - http://incubator.apache.org/pdfbox/userguide/highlighting.html. I have one pdf file and I know the X, Y cordinated and hei

  • How to view change documentation for settlement variants in CJ8G

    One of my settlement jobs did not run and I am trying to see what was populated in it...I have already changed the variant and I am currently settling new projects using that variant.  Is there any way to look at what was populated in the variant dur

  • Technical help needed  for button click

    Hi All, Im new to abap, just  now started working in my first project. I need some help and start from you. In my webdynpro component FPM_OIF_COMPONENT  : CNR_VIEW, Participate button  is there, so by default u201CCreate Responseu201C button is graye