Solved

ORA-1722

Posted on 2011-02-21
6
908 Views
Last Modified: 2012-05-11
I insert or update  table this error message generated.

Example


SQL> select to_number('34,33') from dual;

TO_NUMBER('34,33')
------------------
             34,33

Bu update this column x number(7,2) value is 3433.

update y
set x=to_number('34,33');

after this statement

x=3433



0
Comment
Question by:venomx_
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 28

Expert Comment

by:Naveen Kumar
ID: 34941068
is update or insert or select giving the error for you ?
0
 
LVL 12

Expert Comment

by:enachemc
ID: 34941181
decimal point is, as the name implies, the point
0
 
LVL 28

Expert Comment

by:Naveen Kumar
ID: 34941199
i am yet to understand what is your issue with the update or select ?
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 total points
ID: 34941971
please check your setting of NLS_NUMERIC_CHARACTERS:
http://www.cs.umbc.edu/portal/help/oracle8/server.815/a67789/ch2.htm#95402

it is likely defining the "." as decimal, and "," as thousand separator.

0
 
LVL 5

Expert Comment

by:jaiminpsoni
ID: 34941979
Check the session parameters NLS_NUMERIC_CHARACTERS.

It may be the case that you are using ',' as a group seperator.

What is the output of following? (Need to to login with sysdba privilege)

select * from nls_database_parameters where parameter like '%NUMERIC%';
select * from nls_session_parameters where parameter like '%NUMERIC%';
select * from nls_instance_parameters where parameter like '%NUMERIC%';

Are you running both the statements in different sessions? Please confirm.

Thanks,
Jaimin Soni
0
 
LVL 5

Expert Comment

by:jaiminpsoni
ID: 34942038
Also, are you getting error ORA-1722 when you update?

In that case update will fail anyways.

What is the value of x before the update? Is it 3433?

Please confirm...
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
Introduction A previously published article on Experts Exchange ("Joins in Oracle", http://www.experts-exchange.com/Database/Oracle/A_8249-Joins-in-Oracle.html) makes a statement about "Oracle proprietary" joins and mixes the join syntax with gen…
This video shows how to recover a database from a user managed backup
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.
Suggested Courses

630 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question