SqlPlus or PL/SQL -- how to copy one procedure with one command?

Hello,
In this scenario, I have 11g on server1 and server2.
Using SqlPlus or a PL/SQL procedure, I want to issue a command to copy a procedure now on server1 over to a new identical server and tablespace called server2.
Would someone please help me with the syntax of this copy command?
On server2 I tried something like this:
create procedure tablespace1.procname from tablespace1.procname@dblink_server1
Note that I want to avoid using imp or datapump, etc. I want this to be a simple copy of one procedure by name from another server.
Any suggestions are greatly appreciated. Thank you.

Thank you.
Below, line 1 method returns a 'create table...' statement:
1> select dbms_metadata.get_ddl ('TABLE','table_name','schema_name') FROM dual
This works well, especially for tables, but I still cannot figure out how to do it across a database link.
The next method, line 2, works well for procedures, but not for tables:
2> select name, type, line, text from user_source where type='PROCEDURE' ORDER BY NAME,LINE
One way or another, I am trying to get the source from selected remote servers and then use it to create the same objects on other remote servers.
Any suggestions are greatly appreciated.
Live long and prosper.

Similar Messages

  • How to copy OVD configuration from one machine to another?

    We have two machines with OVD servers on them. The configurations should be identical from one machine to the other. We suspect there is a problem with the configuration on one of them. We need to know how to copy OVD configuration from one machine to another.
    Can you tell us how to do that?

    well i have this in mind which may help you.
    You would need to have a public ip address to the machine you have consoled to and on internet.
    Download the tftp software from below link.
    http://tftpd32.jounin.net/
    This software does not only act as the tftp server but also you can select the interface of you ethernet card as tftp server ip address.
    For ex if you are connected to a console and have a wireless card which is connected to internet also you connect you eth lan card to the eth or fast eth of the router.
    you can select which ever interface you want to act as the tftp server.
    you will need to add ip addres for you lan card and also config the router port as same if needed.

  • How to copy a folder from one document library to another document library ?

    How to copy a folder from one document library to another document library by programmtically?
    Samarendra Swain
    Team Sharepoint
    www.manuhsolutions.com

    You can use the SPFolder.CopyTo method.
    public static void CopyFolder()
    SPFolder folder = null;
    using (SPSite site = new SPSite("http://basesmcdev2/sites/tester1"))
    using (SPWeb web = site.OpenWeb())
    folder = web.GetFolder("shared%20documents/newfolder");
    folder.CopyTo("tester4/newfolder");
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfolder.copyto.aspx
    certdev.com

  • How to copy List item from one list to another using SPD workflow using HTTP call web service

    Hi,
    How to copy List item from one list to another using SPD workflow using HTTP call web service.
    Both the Lists are in different Web applications.
    Regards, Shreyas R S

    Hi Shreyas,
    From your post, it seems that you are using SharePoint 2013 workflow platform in SPD.
    If that is the case, we can use Call HTTP web service action to get the item data, but we cannot use Call HTTP web service to create a new item in the list in another web application with these data.
    As my test, we would get Unauthorized error when using Call HTTP web service action to create a new item in a list in another web application.
    So I recommend to achieve this goal programmatically.
    More references:
    https://msdn.microsoft.com/en-us/library/office/jj164022.aspx
    https://msdn.microsoft.com/en-us/library/office/dn292552.aspx?f=255&MSPPError=-2147217396
    Thanks,
    Victoria
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • HOW TO COPY A FORM FROM ONE TO ANOTHER CLIENT

    HOW TO COPY A FORM FROM ONE TO ANOTHER CLIENT

    Hi Tina,
    To copy either a Script or a Smartform fron one client to another client i.e from reference client 000 to any client say 010  follow instructions as given below:
    Go to Tcode SE71->Give Form name MEDRUCK then go to Menu path Utilities->Copy From Client, give
    Form Name: MEDRUCK
    SOURCE:000 (it will be already there)
    Target Form: Zmedruck(here give ur form zname)
    Execute
    It will be copied into all languages.
    Then come back to SE71
    Give your form name Zmedruck
    Language:: de then goto change mode
    then menu path->utilities->convert original languge to En and enter you will get a message original language of form zmedruck converted from de to en,
    now  change language de to en in se71 main screen and then do what ever changes you want to do , this is how you can copy a script or smartform from one client to another client.
    If this answer is useful reward points any queries revert me back.

  • How to copy pf-status from one program to another program

    Hi Gurus,
    Can any one tell me the procedure how to  copy pf-status of one program to another program .if i want to copy pf-status which is in production server to development server how can i do this.pls help me out.
    Regards.

    Hi,
    GO TO  SE41,
    Select Status,
    In from u can give  ur old pgm and staus name
    In To u can ur new one .
    Save and activate.
    Regards,
    S.nehru.

  • How to copy the photo with file name at window 7 and search specific one in iphone 4s?

    How to copy the photo with file name at window 7 and search specific one in iphone 4s?

    Clendenen02 wrote:
    2) It would be equally helpful if there was something that would take the name of the picture file and spotlight comment, copy and paste it to a movie file's comments with the same name but obviously has different extention. For an example
    In a Pictures folder
    Name: Dark Knight, The.jpeg       Comment: (2008) Genre: Action...             <- copy comment
    In a Movie Folder
    Name: Dark Knight, The.m4v       Comment:                                               <- paste 
    and do this for all 700 files
    This Bash script will do it.
    Edit "PicDir" and "MovDir" to the location of your Folders
    (Note: The comment is written to the m4v file using xattr, so the Spotlight comment field appears blank in Finder, but the comment metadata is still indexed by Spotlight (If you add a Spotlight comment from Finder, it is stored both as an extended attribute and in a .DS_Store file)
    #!/bin/bash
    PicDir=$HOME/Desktop/Pictures
    MovDir=$HOME/Desktop/Movies
    for f in $PicDir/*
    do
         if [ ! -d "$f" -a "${f##*.}" == "jpeg" ]; then
              comment=$(mdls -raw -name kMDItemFinderComment "$f")
              if [[ $comment != "(null)" ]]; then
                   picname=${f##*/}
                   movname=${picname%.*}.m4v
                   if [ -e "$MovDir"/$movname ]; then
                         xattr -w com.apple.metadata:kMDItemFinderComment "\"$comment\"" "$MovDir"/$movname
                   fi
              fi
         fi
    done

  • How to copy Partner Procedure from Downstream Template to all other clients

    Hello,
    My problem is SAP std Partner procedures (e.g. OTR) is not available in our freshly installed IS Oil Client. I found out SAP note no. "100151 - TD Partner procedures in IS-Oil bulk shipment" which is identical to my problem. However the said note does not contain how to copy Partner Procedure-OTR from Downstream Template to all other clients.
    Can any one guide me in this area?
    Thanks & Regards,
    Aniruddha

    Hello Aniruddha,
    Partner determination configuration must be transported by creating a
    manual transport.
    Please refer to note 69385 and also notes listed in the "Related Notes" section for more details.
    Best Regards,
    Soumya

  • How to delete all mails with one klick?

    It's annoying to delete every single mail.
    How to delete all mails with one klick, like in the paperbasket?
    Thanks

    If the emails have been previously deleted (I.e. in the trash folder), tap Edit at the top of the list. You should see a delete all button at the bottom. If the messages are in a standard folder, they need to be handled one at a time.

  • How to sync two IPhone with one PC , but with different applications

    How to sync two IPhone with one PC , but with different applications ?
    We have two IPhones , but one PC , we want to sync separately , is that possible ?

    Absolutely, connect each phone, select what content you want on each phone, then hit the sync button. iTunes will keep everything straight, by device, upon subsequent syncs, including separate backups.

  • How to copy Log text (with Date, Time stamp ) User IDfrom BP to Transaction

    Hi Experts,
                     Can someone guide us how  to copy Log text (with Date ,Time & User ID) fron Business partner  (Prospect) to transactions by text detrmination procedure.
    Regards,
    Basavaraj Patil

    save text
    Fill out following parameters of SAVE_TEXT function module:
    HEADER
    TDOBJECT C 10 BUT000
    TDNAME C 70 10 digit BP number
    TDID C 4 Z001
    TDSPRAS C 1 Language
    INSERT = ’X’
    LINES
    TDFORMAT TDLINE
    |
    |testtttttttttttttttttttttttt( Your text)
    I would suggest you to use some other BAPI that would attach your text to BP than SAVE_TEXT.
    If you still wanted to use SAVE_TEXT then first make sure how the TDNAME is generated. It depends on the text determination procedure. For examples, it can be guid of BP, GUID followed by date or time or else the BP number itself.
    Just go to BP transaction, double click on the text pad, it will open you the SAP Script editor. Click on menu GOTO and select Header which will give you info about your TDID, TDOBJECT, TDNAME....
    Hope this helps.

  • How to copy tax procedure TAXINJ from Client 000 to Dev client in ECC 6.0

    Hi,
    We are facing a problem for TAXINJ and TAXINN procedure, which are not available in our development client, but available in client 000.
    Please advice how to copy those procedures from client 000 to development client.
    (In client 000, we can not create a trabnsport request).

    Hello ravi,
    first  check  whether there request being generated at the time og customization in the server where the standard procedures exist.
    if yes,then you just need to change a little bit of description of these procedures and save system will ask for the development request or customization request.,you can then ask the basis guy to transport it.
    remember it is only a work around solution.
    nevertheless you can also create it manually
    revert if helpful
    Mohit Singh

  • How to synchronise 2 iPhones with one laptop

    How to synchronise 2 iPhones with one laptop.

    Open itunes, connect iphone, select what you want to sync, sync.
    Do the same for the other.

  • How to create editable table with one empty row ?

    I'm looking for solution how to create editable table with one empty row using ADF BC. I have seen this solution in application that was created in JHeadstart and it's very well idea to use it insead of creation form.

    hammm, i do it this:
    drop the VO on the page, select Table->ADF Table....
    so, drop the botton create, from de VO->operations->create (the firts), and right botton (mouse) Edit binding....
    in Data collection select the VO, in Select an action select CreateInsert
    luck

  • How to authorize second computer with one id

    How to authorize second computer with one id in digital edition

    Dear Dominic,
    When I try to authorize my laptop, after writing my username and password, I get the message  "You can only authorize this computer with an ADOBE ID that hasn't been previously used to authorize any other computer or mobile devices. Please try again"
    That means it doesn't PERMIT me to aythorize my second computer (a laptop) with the same adobe ID (that was used for my first computer, a PC)...
    Thank you in advance for your help...
    Nikolas

Maybe you are looking for

  • Apex application registered as an external application to Portal 10.2

    I am having trouble doing this. I have followed this document http://www.oracle.com/technology/products/database/application_express/howtos/htmldb_as_external_app.html And when I click on the link I end up with a blank page. Any advise?

  • How to disable the selection screen element?

    Hello Colleague, I have a report which has a checkbox in the selection screen. Currently I need to create two transaction codes for the report. When Tcode1 is executed, the program will execute in normal way. When Tcode2 is executed, the checkbox sho

  • Video and audio delay

    For the last few weeks, we've notice a delay on HD channels and regular channels with the audio and video on DVR shows AND live shows.  Anyone know why this is happening?  TIA

  • On a PC Control+F brings up a Find dialog box. How to do that on a Mac?

    With a PC, you can hit control+F, and a dialog box will appear that allows you to search a page for certain text. Is there a way to do this on a Mac?

  • Excise rate for other movements

    Hi to all i have created a script for the other movement of goods. And the excise department enters excise rate of 3 % for some vendor and 2 % for some    They like to have 3% rate split up into 2% and 1%(i.e. cess and sec.hr cess) and for the 2% rat