Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7557373
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T12:06:52+00:00 2026-05-30T12:06:52+00:00

So I would like to execute an oracle plsql script from Visual Studio. I

  • 0

So I would like to execute an oracle plsql script from Visual Studio. I installed Oracle’s visual studio tools and opened up a new query window in VS2010 connected to an oracle db instance. Here’s a sample script that I’m trying to run:

DECLARE
BEGIN
DBMS_OUTPUT.put_line ('Hello World!'); --tried various types of statements here
END;

and no matter what I try to put into the body of the begin/end block I get the following:

ERROR
ORA-06550: line 4, column 3:
PLS-00103: Encountered the symbol "end-of-file" when expecting one of the following:

   ; <an identifier> <a double-quoted delimited-identifier>
The symbol ";" was substituted for "end-of-file" to continue.

I don’t get the same issue when running from other tools like sql developer or toad. What gives?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T12:06:53+00:00Added an answer on May 30, 2026 at 12:06 pm

    Make sure you’ve added the new line character after END;, i.e. line no. 4 must not be the last one:

    DECLARE
    BEGIN
        DBMS_OUTPUT.put_line ('Hello World!'); --tried various types of statements here
    END; -- press Enter here
    

    Oracle data client (Oracle.DataAccess.Client) is really picky about that.

    Update: As I suspected, the problem had to do with line endings. It turns out that Oracle does not accept the \r (0x0d) characters within PL/SQL script blocks (but seems to ignore them when processing normal SQL), yet the Query window uses standard Windows line endings \r\n (0x0d 0x0a), and this is exactly what causes the problem.

    I used Wireshark to see what’s transferred over the wire when I hit Execute Query toolbar button and when I select Menu -> Tools -> Execute SQL *Plus Script menu item. The result is strange, but predictable: Execute Query sends the query text as-is (and I got PLS-00103), while Execute SQL *Plus Script does translate \r\n to \n (The command(s) successfully completed.)

    So it seems you’ve got these options:

    1. Execute your script blocks via Menu -> Tools -> Execute SQL *Plus Script
    2. Save your script to a disk drive using any editor capable of using Unix-style line endings, then open it from the Query window (it preserves the line endings in existing files, I checked)
    3. Use something a bit more intelligent than Oracle Developer Tools for Visual Studio (I prefer this option myself)

    Hope this helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to execute an OS command from my ruby script but I
I would like to execute a MySQL command in a shell script/cron job that
I would like to execute a frame redirect in C# from my managed module
I would like to execute some program through ssh and redirect its input from
I would like to execute opcodes directly against the running Dalvik VM instance from
I would like to execute a LINQ query with a dynamic where clause depending
I would like to execute a simple sql line each time a new connection
i would like to execute the script below only if the url doesn't contains
I would like to execute some script only for http://win-23ookphjfn0/Previsions/Pages/default.aspx and not for http://win-23ookphjfn0/abc/Pages/Les_Previsions.aspx
I would like to execute ls in a Perl program as part of a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.