Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

ORA-00995

Posted on 2006-06-25
9
Medium Priority
?
792 Views
Last Modified: 2012-06-27
select NAME into str11
  from gis.period_info
  where name='SP500TR88I' and
sdate='21-JUN-06' and deleted='N';


ERR:  missing keyword

why i am getting this error .
0
Comment
Question by:avi_ny
  • 2
  • 2
  • 2
  • +3
9 Comments
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 16979779
select [NAME] into str11
  from gis.period_info
  where [name]='SP500TR88I' and
sdate='21-JUN-06' and [deleted]='N';
0
 

Author Comment

by:avi_ny
ID: 16979796
This code is a part of PL/SQL.
I made your suggested changes it is not working that way.
Thanks for help.
0
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 16979978
>This code is a part of PL/SQL.
can you post a bit more of that pl/sql. if it's large, only some lines above and below yours...

also: ORA-00995:      missing or invalid synonym identifier

it looks to me that it's not THAT statement issing the error, but rather a CREATE or DROP SYNONYM.
0
Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

 
LVL 8

Expert Comment

by:sapnam
ID: 16981100
If you give desc gis.period_info in SQL, do you get the description.  
0
 
LVL 16

Expert Comment

by:MohanKNair
ID: 16981430
One option is to query the data dictionary views and generate the DDL scripts.

See the link below
http://www.dbasupport.com/oracle/scripts/Detailed/279.shtml

orafaq
http://www.orafaq.com/scripts/sql/cre8like.txt
0
 
LVL 16

Expert Comment

by:MohanKNair
ID: 16981431
Please ignore the above comments
0
 
LVL 3

Accepted Solution

by:
cdemir earned 150 total points
ID: 16982154
can you try this :

sdate = to_date('21-JUN-06','DD-MMM-YY')

OR

to_char(sdate,'DD-MMM-YY') = '21-JUN-06'
0
 
LVL 32

Expert Comment

by:awking00
ID: 16992659
cdemir has a point, although if sdate has a time element, you need
trunc(sdate) = to_date('21-JUN-06','DD-MMM-YY')
0
 

Author Comment

by:avi_ny
ID: 16995936
Thanks
0

Featured Post

Configuration Guide and Best Practices

Read the guide to learn how to orchestrate Data ONTAP, create application-consistent backups and enable fast recovery from NetApp storage snapshots. Version 9.5 also contains performance and scalability enhancements to meet the needs of the largest enterprise environments.

Question has a verified solution.

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

Configuring and using Oracle Database Gateway for ODBC Introduction First, a brief summary of what a Database Gateway is.  A Gateway is a set of driver agents and configurations that allow an Oracle database to communicate with other platforms…
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

926 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