Solved

Compiling a demo program

Posted on 1998-06-18
4
1,390 Views
Last Modified: 2012-06-21
Hi,
    I have problem compiling a demo program called cv_demo.pc in $ORACLE_HOME/7.3.2/precomp/demo/proc
   I used "make -f proc.mk cv_demo" and got the following results :
   Semantic error at line 69, column 18, file cv_demo.pc:
        EXEC SQL EXECUTE
.................1
(1) PCC-S-02345, SQLCHECK=SEMANTICS must be given when embedded PL/SQL blocks are used
0
Comment
Question by:Rita060297
[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
  • 2
  • 2
4 Comments
 
LVL 3

Accepted Solution

by:
poncejua earned 50 total points
ID: 1083154
You will get this error if you have not run the "calldemo"  
script before precompiling your program.

You should try to execute the sample9 demo by logging into  
sqlplus as shown below:  
 
     % scott/tiger for sample9
 
     % @$ORACLE_HOME/proc/demo/calldemo.sql  
     
*** for 7.3.x
 
     % scott/tiger for sample9
 
     % @$ORACLE_HOME/precomp/demo/sql/calldemo.sql    
 
You can now compile and execute the sample9 demo program.

If everything works fine try with your program. BTW, if you need something else please don't hesitate to contact me to my e-mail address: jmponcemartinez@hotmail.com.

Best regards,

Juan Manuel Ponce Martinez
DBA - Buenos Aires - Argentina
 
0
 

Author Comment

by:Rita060297
ID: 1083155
I have done as accordingly and the results are the same for compiling sample9.pc
0
 
LVL 3

Expert Comment

by:poncejua
ID: 1083156
Try to execute the make command adding the sqlcheck=semantics at the end.
0
 

Author Comment

by:Rita060297
ID: 1083157
I tried "sqlcheck=semantics userid=scott/tiger" and it works!

Thanks!


0

Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
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.
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.

691 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