change the functions or procedures under sqlplus

I have a problem to connect to the database of PL/SQL Developer, but I can connect to sqlplus to UNIX machine. How can I change a function of sqlplus?
Thank you.

Hello

It's a little easier to connect to SQL * as owner and request rather than all_source user_source fucntion.

To generate the file:

SET  PAGESIZE  0
SET  TRIMSPOOL ON

SPOOL  c:\some_path\func_x.sql

SELECT    text
FROM      user_source
WHERE     name = 'FUNC_X'     -- or whatever, case-sensitive
AND       type = 'FUNCTION'   -- or 'PROCEDURE', or 'PACKAGE', or 'PACKAGE BODY', or ...
ORDER BY  line;

SPOOL  OFF

Use any text editor to edit the file you created.

The first line of a function begins with "FUNCTION". This must change to say "CREATE or REPLACE the FUNCTION".
At the end, add these two lines:

/
SHOW ERRORS

When you have made any changes, save the file and return in SQL * Plus, say:

@c:\some_path\func_x.sql

In other words, after the sign @, and put the path of the file with the modified code.

Tags: Database

Similar Questions

  • ORA-00904 during execution of the functions and procedures (IDE version 4.1.0.19)

    Recently, I updated my Oracle SQL Developer to the latest version (see below) and now when I try to run the function or procedure of the IDE, I had an alert with the error: "ORA-00904:"OBJECT_ID": invalid identifier." Code provider 904 ". Previous version of IDE works pretty well. What is the problem?

    Oracle SQL Developer 4.1.0.19

    Version 4.1.0.19

    Build a HAND - 19.07

    It seems that OBJECT_ID added to ALL_PROCEDURES for the 10g DB version, but after the version you have (10.2.0.1.0).  I don't have a link to the documentation specific to hand Oracle, but see the last comment by Steven Feuerstein in the next blog...

    PL/SQL challenge: ALL_PROCEDURES changes over version (5980)

    Typically when generation SQL for a particular version of the DB with SQL Developer, only major (10) and (more rarely) secondary numbers (2) gets checked, if your problem is one of those borderline cases that are easy to miss and less likely to get fixed. Whenever a customer has a specific need to use an older version, Oracle expects usually only the last set of patch (for example, 10.2.0.5) would be used.

  • XPS 13 9343 change the function keys

    I would like to change/disable the function keys on my XPS 13.  All searches on Google I've seen indicate that you can do this via a setting in the BIOS, but the BIOS EFI in my laptop has no entry to change the function keys.  Is there another way?

    OK, finally figured this out... post here so I hope that it helps someone else.

    All my research on this indicated that I had to change a setting in BIOS under the section 'System Configuration '.  Obviously this option asked, at least on the A07 BIOS on my XPS 13 9343.  The option that you need to change is now 'Behaviour of PUBLICATION'.  Select "Options of the FN lock" and make sure that "FN lock is verified (it should be... is the default) then be sure to Lock Mode Enable/secondary is selected.»  It is he who turns off the "multimedia" keys  Enjoy.  :)

  • I want to change the name that appears under 'To' and the 'author '.

    I want to change the name that appears under 'To' and the 'author '.

    No matter what particular place, or simply everywhere where you happen to be at this time?

  • How can I change the function of the multimedia button in my keyboard?

    Hello

    I want to change the function of the media in my keyboard button, because if you press the button, the media Center launch, but the problem is, I can´t use the media center due to many reasons, so I want, when I press the media button, only Windows Media Player launches and not the Media Center?

    Who knows what I have to do?
    Thank you very much for your help!

    Hello Sailor

    Can you please write what model of phone you have?

    Anyway, check it please Toshiba controls tool. You can find it in the control panel.

  • Satellite L305 - how to change the function of the media player keys?

    How can I change the function of my buttons in Media Player on top of my laptop?
    I know that if you go to Toshiba Assist, optimize, Support Button, you can change the function of certain keys, but the only options I have are the keys Mute and the CD/DVD.
    [http://img52.imageshack.us/img52/4572/toshibabuttonsupport.jpg]
    I am trying to make the button media player opens iTunes, not WMP and even for play/pause, stop, fast forward and rewind.

    Even if I'm here, I have a problem with my Ctrl + 1 never work. I can't spend the first tab of firefox or aim. I can't do a group control 1 when you play. Anyone know why/how can I fix it?

    Hey,.

    If you press the button on the media player, only Windows Media Player or DVD Toshiba player can be started and not iTunes. This configuration is not possible. As you can read in the user's manual, only these programs can be started.
    Then the other multimedia keys work correctly, and you can use it with media player?

    Concerning your other question:
    I would try to clean the cooling system using a jet of compressed air. This can blow the dust cooling fans and, therefore, it of not necessary to disassemble the laptop.

  • How do I change the function to send to in Windows 7 to add to an email?

    How can I change the function: send to, when I do a right click on the mouse? I want to add... .for an e-mail.

    If you want to add a document to a new Message already opened (or a reply or forward), then you must use the "Attach a file" or the equivalent in your e-mail client (secret). the function "send to" will only send the file to a NEW e-mail message. AS FAR AS I KNOW.

  • Microsoft Sidewinder Gaming Mouse (not X 3, X 5 or X 8) change the function of the Quick Launch button?

    Dear Microsoft, I have a mouse Microsoft's Sidewinder, this one to be exact: http://www.microsoft.com/hardware/en-us/d/sidewinder-mouse

    I was wondering if there is absolutely anyway to change the function of the quick launch on the mouse button, it opens the folder of the game, but it is rather useless since the Games folder is in itself pointless. Tell me there must be something? The Intellipoint software allows me to change the functions of button on it EXCEPT only one darn button.

    If it's any help this quick launch button is ALSO present on all other iterations of the Sidewinder gaming mouse.

    Any information or advice welcome.

    Hello

    I suggest you to reschedule the thread for the possible answers and check if it helps.

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-hardware/question-about-SideWinder-x8-DPI-buttons/aef0ed98-cc3b-40Ca-8438-50c1b6392a66

  • How to move the functions and procedures of packages in a schema?

    Hello

    I have less than the needs for a work at home and my question is if anyone can point me in the right direction to find documentation that can help me solve below. Any information will be appreciated. Thank you.

    Write procedures and functions (included or not in packets) as .txt or .sql scripts. Once they have been launched in Developer SQL they should, in addition, the functions and procedures of packages in the current schema. If the current schema contains only 2 packages, pac1 (p11, p12 procedures and functions f11, f12, f13) and pac2 (contains the p21 following procedures, p22, p23 and f21 and functions f21 (case of overload), running the scripts produce the following effects:)

    • Procedures p11, p12, p21, p22, p23, and f11, f12 and f13 functions will be created in the current schema.
    • PAC2 will contain 2 instances of the function of overload-f21; they will be kept in the package, without be created in the current schema. If all overloaded procedures/functions will be kept in their original packaging
    • If pac1 contains variables, cursors, and public types, keep us only the details of the package (and remove the body); usually if the packages contain no overloaded functions or procedures the body will be removed and if no variable, cursors, types of public then we will remove the header.
    • If in the triggers, procedures and functions we will call procedures/functions packages (procedures and functions moved into the current schema) they reference will need to be updated (via editing the body or recompilation) for example if pa1.p12 will be replaced with p12.
    • Scripts must have numbers in the next series (01... n) and the characters that explain the content.

    My only advice would be to remember that these are public forums and if YOU can find them, therefore cannot your instructors.

    In addition, those are horrible procedure names and function

    This mission seems to be around to overload the pl/sql objects and... prioritize a research on Oracle documentation around overhead and legacy
    http://docs.Oracle.com/CD/B28359_01/AppDev.111/b28371/adobjplsql.htm#i21148

  • How can I change the function of a flash button?

    Hello

    You are not sure if this should go in the Flash forum or Captivate forum, but nobody knows how, where to find ActionScript 3 orders for Captivate?

    I downloaded a pre-made button Flash (source file) for Adobe Captivate, which was originally made to make a video go to the next slide when you press. He does it very well, but I wanted to know how use the ActionScript in Flash Professional CS5 to have the button JUMP to a specific slide in Captivate, rather than just go to the NEXT slide. I know that usually how the code works, but have never really used and do not know the specific command to get there. Currently, the relevant part of the code of the 'Flash' button reads:

    function clicked(e:MouseEvent):void {}

    var myRoot:MovieClip = MovieClip (root);

    var mainmov:MovieClip = MovieClip (myRoot.parent.root);

    mainmov.rdcmndNextSlide = 1;

    I think I should just change the last line to something else and it should work, but I need the command. Can someone tell me what needs to be changed in the code above to get there?

    The full code is below. Thank you.

    code.JPG

    Here is an answer for everyone out there trying to do the same thing.

    To change the function, simply change "rdcmndNextSlide = 1" to another command with its variable. Commands and variables can be found here:

    http://www.cpguru.com/2010/07/20/Adobe-Captivate-5-system-variables/

  • Pavilion x 2 10-n101nv: how to change the function keys

    Hello I have the hp pavilion x 2 10-n101nv, the F function keys selection key works it is light slight increase use and on but if I press the fn becomes F1 F2 F3 f4, how can I change

    Hello

    You can change the default action as follows.

    Shut down the laptop.  Tap away at the esc you key start Notepad to open the Start Menu.  Select the Bios ( f10 ) option, and then change the figure in the document at the following link.

    http://h20564.www2.HP.com/hpsc/doc/public/display?docid=emr_na-c02035108 & DocLang = in & docLocale = en_US &...

    Kind regards

    DP - K

  • Change the function of the shortcut key of media on the laptop itself player

    Hey everybody,

    I was wondering if anyone knew a way to change what is the shortcut key to player of media on the laptop itself? I have the power button / stop, Internet, Media Player, Play/Pause, Stop, Rewind and fast forward, but the Media Player shortcut key is pretty useless to me and I would like to change its function, to open Outlook instead, but nobody knows if it's even possible?

    I'm almost certain that there is a way, but I can't seem to find, if someone can help me, then I would be really happy,

    See you soon.

    Hello

    I remember that it was possible to attribute the different functions of the control buttons on several units.
    I put t know which unit you use, but you should check the application of Toshiba control buttons that could be installed on your laptop.
    You should find it in the control panel

    This application could allow lets you configure the control buttons.
    But if this software does not have this option, you will not be able to change the features

  • Is it possible to change the function of the buttons play/Pause on Satellite P100-347

    Hello.

    I would like to would like to know if there is a way to change the play / pause button on my phone to stop the opening of windows media Center. I like to use itunes to listen to my music and the other buttons (back, forward and stop), all work with other programs, but there is no way to use the play and pause function without opening of the Media Center.

    It seems that you can only change the internet and function of CD/DVD in the Panel.
    Thanks in advance.

    Hello

    Just reply: no, not possible to change playback / pause feature keys s

    The Toshiba control utility offers two options.
    It allows you to assign and select a program for the internet button and touch CD/DVD.

  • G8D94PA #ACJ: is it possible to change the function of the FN keys?

    Hello

    I sometimes use windows 7 32-bit due to my software dependency. in some software I have to use fn keys (F1 to F12) frequently with the combination of other keys. It is possible to enable the functionality of the fn keys as from now on if I have to use F5, so I use FN + F5 combination. So in this software I have to use F2 to F7 & I have to press CTRL + ALT + FN + F2 to F7.

    Please share any solution...

    Hello

    Shut down the laptop.  Tap away at the esc you key start Notepad to open the Start Menu.  Select the Bios ( f10 ) option, and then change the figure in the document at the following link.

    http://support.HP.com/us-en/document/c02035108

    Kind regards

    DP - K

  • Pavilion 15-P290NO: how to change the function of the buttons behavior in Windows 10

    I just received my new laptop (a Pavilion 15-P290NO) the other day and installed Windows 10 top immediately. Now I can't figure out how to change the behavior of the function keys so that I won't have to press the fn key if I want for example to use f2 for other functions that turn down the brightness of the screen. Instead, I want him out if I for some reason any really want to turn down the brightness, I hold the fn and f2. At this point, I am open to almost any suggestions.

    Hello

    Shut down the laptop.  Tap away at the esc you key start Notepad to open the Start Menu.  Select the Bios ( f10 ) option, and then change the figure in the document at the following link.

    http://support.HP.com/us-en/document/c02035108

    Kind regards

    DP - K

Maybe you are looking for