ORA-00932: inconsistent datatypes: expected string got string

I got ” ORA-00932: inconsistent datatypes: expected string got string ”  error in Oracle database.

 

ORA-00932: inconsistent datatypes: expected string got string

 

Details of error are as follows.

ORA-00932:  inconsistent datatypes: expected string got string

Cause: One of the following:

- An attempt was made to perform an operation on incompatible datatypes. For example, 
adding a character field to a date field (dates may only be added to numeric fields) or 
concatenating a character field with a long field.

- An attempt was made to perform an operation on a database object (such as a table or view) 
that is not intended for normal use. For example, system tables cannot be modified by a user.
 Note that on rare occasions this error occurs because a misspelled object name matched a 
restricted object's name.

- An attempt was made to use an undocumented view.

Action: If the cause is different datatypes, then use consistent datatypes. For example,
 convert the character field to a numeric field with the TO_NUMBER function before adding 
it to the date field. Functions may not be used with long fields.
an object not intended for normal use, then do not access the restricted object.


 

 

inconsistent datatypes: expected string got string

This ORA-00932 errors are related with the One of the following:

– An attempt was made to perform an operation on incompatible datatypes. For example, adding a character field to a date field (dates may only be added to numeric fields) or concatenating a character field with a long field.

– An attempt was made to perform an operation on a database object (such as a table or view) that is not intended for normal use. For example, system tables cannot be modified by a user.

Note that on rare occasions this error occurs because a misspelled object name matched a restricted object’s name.

 

To solve this error, If the cause is different datatypes, then use consistent datatypes. For example,convert the character field to a numeric field with the TO_NUMBER function before adding it to the date field. Functions may not be used with long fields. an object not intended for normal use, then do not access the restricted object.

If you use like operator in SQL or functions with long datatype, you will get this error.

You should convert long datatype column to varchar2 type.

 

If you use BLOB or CLOB data types in the table, you should execute the following sql files.

SQL> @?/rdbms/admin/catmetx.sql 
SQL> @?/rdbms/admin/utlrp.sql

 

Do you want to learn Oracle Database for Beginners, then read the following articles.

Oracle Tutorial | Oracle Database Tutorials for Beginners ( Junior Oracle DBA )

 

 1 views last month,  1 views today

About Mehmet Salih Deveci

I am Founder of SysDBASoft IT and IT Tutorial and Certified Expert about Oracle & SQL Server database, Goldengate, Exadata Machine, Oracle Database Appliance administrator with 10+years experience.I have OCA, OCP, OCE RAC Expert Certificates I have worked 100+ Banking, Insurance, Finance, Telco and etc. clients as a Consultant, Insource or Outsource.I have done 200+ Operations in this clients such as Exadata Installation & PoC & Migration & Upgrade, Oracle & SQL Server Database Upgrade, Oracle RAC Installation, SQL Server AlwaysOn Installation, Database Migration, Disaster Recovery, Backup Restore, Performance Tuning, Periodic Healthchecks.I have done 2000+ Table replication with Goldengate or SQL Server Replication tool for DWH Databases in many clients.If you need Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS Consultancy and Training you can send my email adress [email protected].-                                                                                                                                                                                                                                                 -Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS ve linux Danışmanlık ve Eğitim için  [email protected] a mail atabilirsiniz.

Leave a Reply

IT Tutorial