[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4118
  • Last Modified:

Getting OCI-22303: type "MDSYS

Hi,

I am trying to execute the following query

select * from wsh.wsh_locations

I am getting the following error in toad

OCI-22303: type "MDSYS


I tried executing the same query in sqlplus and I do not get any error. Could anyone please help me in determining whats causing this issue and how it can be corrected.

Thanks in advance
-Raghu
0
ThummalaRaghuveer
Asked:
ThummalaRaghuveer
  • 3
2 Solutions
 
ThummalaRaghuveerAuthor Commented:
this is in oracle  9.2.0.7.0
0
 
ThummalaRaghuveerAuthor Commented:
sqlplus version using which i can run it is  8.0.6.0.0
0
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
this is usually a version difference problem. probably the toad version you have does not know the data type needed for the query, while your sql plus does.
solution: upgrade the toad
0
 
Naveen KumarProduction Manager / Application Support ManagerCommented:
one way to get rid of this issue is to use the latest version of toad if you are not having latest version.

i have faced the same issue with latest toad version but in my case, we login into toad thru a different user but the types got created by another user. The toad user can access the table and so we altered this table to have a new field based on the type we wanted. After this we got errors whenever we try to select data from this table.

So we had to give 'grant execute on my_calendar_type to toad_user;' to get rid of the issue.

Thanks
0
 
ThummalaRaghuveerAuthor Commented:
problem is because of sdo_geometry datatype for one of the columns. I guess the version of toad I am using might not support it. thanks a lot for the support
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now