Invalid symbol displayed in select query result

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bluesathish
    New Member
    • Mar 2010
    • 22

    Invalid symbol displayed in select query result

    hi all,
    The following is my select query,

    Code:
    select substr(trim(to_char(AMOUNT, '00000000000.00')),1,11) 
    from mytable 
    where status_code='V';
    I got the right result while I ran this query in Oracle 10g (windows Server), but while i run this same query in Oracle 11g (Linux Server) i got the result as like this
    ##########. I don't know why this invalid '#' symbol occurs instead of the values. Kindly give your suggestion.

    Thanks,
    BlueSathish
    Last edited by Rabbit; Dec 28 '12, 07:37 AM. Reason: Please use code tags when posting code.
  • rski
    Recognized Expert Contributor
    • Dec 2006
    • 700

    #2
    What tool do you use to execute this query? Does it work in sqlplus?

    Comment

    • bluesathish
      New Member
      • Mar 2010
      • 22

      #3
      Sorry for the delay response, I've used Oracle SQL Developer 3.5, PL/SQL Developer and SQLPlus itself. Everywhere I got this same problem. Kindly help me.

      Comment

      • bluesathish
        New Member
        • Mar 2010
        • 22

        #4
        I've solved with myself, My oracle data connectivity provider causes this problem. Check out my solution in the below link.

        Comment

        Working...