Cant create procedure over OracleCommand. any HELP?

Hi eweryone. This is my firs post here and i am new in oracle. I have a problem with .NET oracle commands. I want to create procedures or a package in run time. here is my simple c# code :
OracleConnection con = new OracleConnection();
Source=DBTEST_METUSSERVER";
con.ConnectionString = "User Id=SYSTEM;Password=orcl;" + "Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=metusserver)" + "(PORT=1521))(CONNECT_DATA=(SID=dbtest)));"; con.Open();
string sqlstr = "CREATE PROCEDURE SA.ACTIONDELETEALL2 IS \r\n";
sqlstr += "BEGIN \r\n";
sqlstr += "DELETE FROM ACTION_HISTORY; \r\n";
sqlstr += "END ACTIONDELETEALL2; \r\n/\r\n";
OracleCommand cmd = new OracleCommand(sqlstr, con);
cmd.ExecuteNonQuery();
this code works and stores my procedure with errors as INVALID.
the error is this :
//Line # = 1 Column # = 33 Error Text = PLS-00103:
Encountered the symbol "" when //expecting one of the following:
// begin function package pragma procedure subtype type use // <an identifier> form // current cursor external language
Also when I execute this code with sql plus it stores my procedure successfully and VALID.
Any ideas?

Also when I execute this code with sql plus it stores my procedure successfully and VALID.remove the use of \r and \n and also the last slash character that you are adding at the end. That is needed by the SQL*Plus to tell it to send the entire above string to the database. You do not need it when doing it via your program.

Similar Messages

  • I have purchased my first smart phone. iphone 5. I want to use sounds sent to me in text messages as ringtones but don't know how to move them over. Any help would be appreciated.

    I have purchased my first smart phone, an iphone 5.  I would like to use some of the sounds from text messages for ringtones but don't know how to move them over.   Any help would be appericated.

    I'm sorry, had you already pointed out the rules which stated that lines from 2 separate accounts were eligible??? I don't see anywhere in the advertisement specifically stating that lines from 2 separate accounts would be eligible, so THAT is not what's advertised, either.
    As far as I know Verizon's BOGO offers have ALWAYS been for lines on the same account. Possibly someone could chime in where they have received this offer on 2 separate accounts? The ONLY exception to this was someone getting the offer with 2 eligible lines on their account, reactivating the old phone on one of the lines and then giving one of the new phones to someone on another account.
    Sorry if you think simply because someone disagrees with you, they are being condescending. That is certainly not the case. Good luck.

  • Trying to get my fcp project to burn to dvd at the highest quality? Ive used compressor and then tried to put it in dvdsp put its not working. I am having problems with the audio or when i burn it , i cant play the dvd? any help would be appreciated

    Ive used compressor and then tried to put it in dvdsp put its not working. I am having problems with the audio or when i burn it , i cant play the dvd? any help would be appreciated

    I suspect you are attempting to burn an HD DVD, which will not play on a DVD player...
    But if you provide more details such as the settings you are applying in Compressor, then we would be able to provide you more accurate information.
    How are you adding the files to Compressor?
    In FCP, what are your footage properties (command-9) and sequence settings (command-0)

  • Upon updating to higher available ios 5, my 3gs iphone got stuck showing cant activate,no SIM installed, any help ?

    Upon updating to higher available ios 5, my 3gs iphone got stuck showing cant activate,no SIM installed, any help ?

    Sounds like your phone was jailbroken.

  • Hi im trying to make an in-app purchase but after i enter my password it says it cant complete the purchase. Any help?

    Hi im trying to make an in-app purchase but after i enter my password it says it cant complete the purchase. Any help?

    Just make sure if it wifi is connected. if this doesn't work reboot your iPhone. If it's still doesn't work contact the game service center or something. lastly, make sure u have your credit card sign in. hope this help.

  • I have these black boxes around my active pages, but I have voice-over disabled, any help?

    I have these black boxes around my active pages, I looked online for pointers but they all pointed to me disabling my voice-over in the universal access option on system preferences. My voice-over wasn't enabled and the boxes are still here, any help?

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. For instructions, launch the System Preferences application, select Help from the menu bar, and enter “Set up a guest account” (without the quotes) in the search box.
    While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem(s)?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault in Mac OS X 10.7 or later, then you can’t enable the Guest account. The Guest login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode* and log in to the account with the problem. The instructions provided by Apple are as follows:
    Be sure your Mac is shut down.
    Press the power button.
    Immediately after you hear the startup tone, hold the Shift key. The Shift key should be held as soon as possible after the startup tone, but not before the tone.
    Release the Shift key when you see the gray Apple icon and the progress indicator (looks like a spinning gear).
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    *Note: If FileVault is enabled under Mac OS X 10.7 or later, you can’t boot in safe mode.
    Test while in safe mode. Same problem(s)?
    After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of steps 1 and 2.

  • ***?! Cant create Page!!! HELP!

    Hi everybody,
    I have a problem with my iWeb which i can`t get away.
    If I start my iWeb, I just can`t create a new page with or with "new page"... I cant`even click it!... How can I make that it works?!
    I have just bought it and was happy to have it, and now this fu**ing... growl
    (original + registered iLife '06, no cracked ****...!)
    please help...
    wfg. leegin
    MacBook Pro 17"   Mac OS X (10.4.8)  

    Hi leegin, and welcome to Apple Discussions in general and the iWeb discussions in particular.
    This is a common problem, but one usually easily fixed. The simplest approach (which often--but not always--works) is to open iPhoto, select an album, and click on the iWeb button at the bottom of the iPhoto window (or go to the Share Menu and choose iWeb). If it doesn't work the first time, it may work the second or third time.
    The other approach is to update iWeb from the Apple downloads page.
    A more complete description of the various fixes for this problem can be found here
    Please post back to let us know how it goes.

  • Audio input is gone. What plug/adapter do I need to plug in a rode mic for fcpx voice overs? Any help will be much appreciated.

    Hi,
    First time user.... Bare with me.
    My old imac had an audio input and I could simply plug in my rode mic and perform voice overs etc.... Now the new imac has no audio input.
    I gather I need an adapter, but am I really stuck buying the iRig Pro at $219? Will this even work for voice overs in FCPX or is there a much cheaper and cheerful option for this problem that apple could have avoided in the first place...
    Any advice will be welcomed and appreciated.

    Thanks Very much A Brody!
    None of the research I did came up with this option. Really appreciate it.

  • Cannot open mail or system preferences they both have a ? mark over them any help

    can you help me on opening my mac book i have found a question mark over my mail and system preferences and i cannot open them

    Try a restart.
    Do a backup, using either Time Machine or a cloning program, to ensure files/data can be recovered. Two backups are better than one.
    Try setting up another admin user account to see if the same problem continues. If Back-to-My Mac is selected in System Preferences, the Guest account will not work. The intent is to see if it is specific to one account or a system wide problem. This account can be deleted later.
    Isolating an issue by using another user account
    If the problem is still there, try booting into the Safe Mode using your normal account.  Disconnect all peripherals except those needed for the test. Shut down the computer and then power it back up after waiting 10 seconds. Immediately after hearing the startup chime, hold down the shift key and continue to hold it until the gray Apple icon and a progress bar appear. The boot up is significantly slower than normal. This will reset some caches, forces a directory check, and disables all startup and login items, among other things. When you reboot normally, the initial reboot may be slower than normal. If the system operates normally, there may be 3rd party applications which are causing a problem. Try deleting/disabling the third party applications after a restart by using the application un-installer. For each disable/delete, you will need to restart if you don't do them all at once.
    Safe Mode

  • Cannot activate iCloud on mini iPad created apple I.d.any help out there?

    iCloud doesn't activate on mini iPad. I created apple I.d. And email. Any ideas?

    I am having the exact same problem, it's driving me nuts!  Did you manage to fix it and if so how?

  • Cant open itunes...any help???

    Okay so yesterday i tried to open my itunes normally and it had worked well all this time before now...it said runtime error or something (windows visual C++) and that something was downloaded incorrectly...something about some C library and i have no idea what that means but it told me to reinstall itunes which i did...i deleted itunes totally and installed it again and nothing changed...it hits the same notifications all over again...switched my computer off and back on and still no difference So here i am hopelessly asking for help. If you know anything that could help me with this please reply. Thanks.

    Try the following user tip:
    Troubleshooting issues with iTunes for Windows updates

  • I changed country in my settings and now i cant access my purchased songs any help please

    Changed countrys in my settings and now cant see my purchased songs in my account any more why is
    this

    Hi,
    You need to revert to your original country and sign into iTunes.
    Jim

  • Just installed latest Itunes, and system now grinds to a halt, caused by apsdaemon.exe and apple mobile using 99% processing. Have stopped these processes, but each time I start Itunes I have to do it all over again, any help would be appreciated

    Having just installed the latest iTunes update, I find my system grinds to a complete standstill. I've checked and found two apple processes, apsdaemon.exe and applemobiledeviceservice.exe use 90% plus of my processor, so have stopped these. However, each time I start iTunes the same situation occurs. Is there anyway I can remove these exes from my system or is apple aware of this stupid update and what are they doing about it. Any guidance would be very much appreciated

    What version of itunes were you using before you updates?
    Have you checked other related post?
    iTtune will require applemobiledeviceservices.exe and others to run.  What you are experencing is usually caused by a conflict with other software on you system.  Everybodys system is set up differently, so there is not a "one fix all".  Most commonly associated with Firefox addons, video accelerator software, podcasts on the backup, anivirus software, parential control software, take you pick!
    I found my fix here.
    https://support.apple.com/kb/TS4123

  • After updating my iphone 4 to ios 5 i cant send or recieve text any help?

    sdg

    Go to settings - general. - cellular  my iPhone can't stop it from searching and I m sure it is using up my battery life

  • How do i get my dvds onto my ipad 2 for free and easy i just can get it atall any help would be great.

    does anyone know how i put my dvds onto my ipad for free. i have tried a few things but cant get them to work any help would be great.

    If the digital copies are compatible with iTunes and iOS devices, there will be some sort of redemption code or other link that will obtain the movie from the iTunes Store, at which point it will automatically be in iTunes.
    Note, though, that there are digital copies that are not compatible with iTunes (ones that use the Ultraviolet protection scheme, for instance). Also, many DVDs and Blu-Ray disks offer digital copies only for a limited time after the movie is first released, so the offer may have expired by now.
    Regards.

Maybe you are looking for