Hi Hanuman_2000,
Let me give a try to answer your question, although I am not a tech. guy. It is common that the actual meaning of a word would be used differently in a programming language. Since your statement relates to Oracle, let me give an example using Oracle SQL statements.
Syntax:
The common meaning of the word ‘syntax’ is ’sentence structure' or 'language rules’; however, in a programming language, the word 'syntax' means rules or patterns used to form a statement or key word.
For example,
If we write a statement like ‘JELECT * from Employee’, the oracle system would say there is a syntax error with 'JELECT' because the correct syntax or pattern is 'SELECT'
Semantics:
The common meaning of the word 'Semantics' is 'meaning’; nonetheless, when used in a programming language, especially in Oracle, the 'semantic check' can mean several things:
(1) Verify the validity of the objects being referred in a statement
(2) Verify the access rights and permissions..etc.
For example,
When we execute a SQL statement--SELECT * from Employee-, the Oracle system would do a semantic check to see if the table Employee is really present in database.
I hope this will give you some idea about syntax and semantics.