Question

How can I change the termination character from the usual semi-colon?

Rating9.2Excellent

I have written an Oracle function that is called as follows and all works fine when called from vb using rdo.

declare UNG VARCHAR2(200);    
BEGIN
UNG := CCFN_FASSTUPDV10(P_REPSTATKEY       => 'test');
END;

However, my problem arrises when attempting to call the same function from a different application that is executed from a language called SFDC. I believe the problem is due to the fact that SFDC insists on terminating each full SQL command request with a ';' and, because in this instance, I'm using a declare I need to also use a semicolon to seperate it from the BEGIN. The net effect is that SFDC only sends the first line of the above code to be executed and ignores everything from the 'BEGIN' onwards.

I've read that the command SET SQLT can change the default SQL termination character but although this works from a SQL*Plus session I can't seem to get SFDC to do likewise. I don't know whether SFDC is using PL/SQL or SQL*Plus.

Any advice or suggestions on how I can overcome this would be more than welcome.

Thanks

  1. Connecting to SQL Plus in Oracle 10G
    OK...really having a hard time on this... I setup an account that has local server administrator privledges. Created an Oracle DB under this account using the DB Configuration Tool. Set the master pw for all accounts to be the same (default) Created an account and granted 'all' privledges/roles that I could (could not figure out how to g…
  2. executing sql plus procedure in linux
    I want to execute sql plus procedure in linux: #!/bin/bash sqlplus usr/pwd@lyyy set serverout on exec proc; quit; I stored above lines in a.sh file then when run sh a.sh then it is not executing my procedure.
  3. need SQL plus for practicing
    Hello, I'm having an introductory DBMS course in oracle. I have only 3 tables for testing the SQL commands. In addition, we use SQL *Plus interface, the one we've created the tables with and applying the SQL commands in. commands can include create, select, alter, delete... My Question: I don't need to install the whole oracle…
  4. ORA-06502: PL/SQL: numeric or value …
    Trying to execute a function and getting this error: select getChildOrderIds('AB82888') from dual; ORA-06502: PL/SQL: numeric or value error: character string buffer too small ORA-06512: at "GETCHILDORDERIDS", line 13 Function: CREATE OR REPLACE FUNCTION getChildOrderIds(or…
  5. Simple SQL PLUS Question - Viewing Results o…
    I'm using SQL PLUS and producing output to a screen; SQL PLUS likes to stack the fields vertically (line size limitation) and I prefer horizontially (lengthen the line). How do you set this feature? Thx

Solution

Sign up now to view this solution! It's quick, easy, and secure to subscribe. We will return you to this solution, unlocked, when you’re done.

About this Solution
View This Solution - Start Your 30 Day Free Trial
Zone
General
Tags
oracle sql character termination semi
Participating Experts
4
Solution Grade
A

Replies

 
by:

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 
by: yerdaman

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 
by: DrJekyll

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 
by: anand_2000v

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 
by: Computer101

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

Stay Connected

Oracle Around the Web

The latest Oracle news, tips, and tricks

Oracle Unveils Netra SPARC T3 Servers

New Carrier-Grade Blade and Rackmount Servers Deliver Better Performance, Density and Power Efficiency for the Communications Industry ...

read more

Oracle fixes 21 flaws in Java SE, Java for Business

Oracle is fixing 21 flaws in its Java SE and Java for Business products in its February critical patch update issued this week ...

read more

Obama’s Silicon Valley “Tech Supper”

Why was he there? Who wasn’t invited and why? What did they talk about? Why was he really there? These are the questions being debated ...

read more

Featured Oracle Experts

slightwv

slightwv has answered more than 2,000 Oracle questions and oversees database management within the U.S. Government. Slightwv

sdstuber

A regular presenter at the Collaborate conference, Oracle developer sdstuber is a top expert in PL/SQL and Oracle 9, 10 and 11. sdstuber

Testimonials

What users are saying about our experts

"The Oracle gurus provide answers, solutions and valuable workarounds"

User: schwertner

"Wow! Excellent, valuable explanation. Hats off to you"

User: aseshu70

"Solution worked fantastic and performs excellent! Thanks heaps"

User: klausbrandlhuber

Top Experts

  1. slightwv

    2,000

    0 points yesterday

    Profile

BrowseBecome an Expert