Script for copy and compile objects from one schema to another

Hi,
I have 2 schemas like schema1 and schema2 in both schemas i have same procedures/function like p_test1 .If i modify a procedure in schema1 i want same modifications in schema2 so i want a script to apply these changes to schema 2.
except bellow process  any alternative
  SET PAGESIZE 10000
  SET feedback OFF
  SET heading OFF
  SET echo OFF
  spool d:\SQL.OUT
   SELECT TEXT
    FROM USER_SOURCE
    WHERE NAME = 'MY_PROCEDURE';
  spool OFF
  SET echo ON
  SET feedback ON
  SET heading ON
CONNECT OTHER_USER/OTHER_PASSWORD@OTHER_DATABASE;
@d:\SQL.OUT

All what you have to know about that function :
http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_metada.htm#sthref3536
Nicolas.

Similar Messages

  • Can I Copy and Paste text from one Contact to Another on iPhone 3G?

    Can I Copy and Paste text from one Contact to Another on iPhone 3G?
    Or even better while the iPhone is connected to my PC can I view the address book on the iPhone and make changes using my PC keyboard?
    I had a challenge importing from my outlook as it created dual entries for people I had with multiple email addresses or telephone numbers so I need to copy and paste contact info from one to antoher.
    Can anyone help?

    MCWEB wrote:
    Can I Copy and Paste text from one Contact to Another on iPhone 3G?
    You will be able to do copy & paste when 3.0 comes out this summer.
    Or even better while the iPhone is connected to my PC can I view the address book on the iPhone and make changes using my PC keyboard?
    No. You would make changes to the address book on your PC and then sync via iTunes.

  • How do I copy an art object from one document to another using illustrator API(C  )

    Hi, I'm trying to copy text and graphic elements from one document into another, does anybody has an idea how to do it using Illustrator SDK(C++)?
    Thanks in advance.

    If you call AIArtSuite::ReorderArt() giving the layer group handle from the target document and using art from the source document, it will move art between documents. That said, there are all sorts of caveats that come along with that -- some things move over automatically (graphic styles, symbols) while others cause problems. E.g. copying art that contains a swatch can cause a crash when you shut down the source document because it may keep the style reference to the swatch in the source document -- which goes away when the document is closed. Gradients in particular are a problem I believe. Straight up colours are (I think) fine. I've had to write a lot of workarounds for various headaches caused by moving art between documents.
    Bottom line: its very doable, but there are a lot of edge cases. This was clearly not an intended use of the SDK, though it is possible.

  • I want to copy all the objects from one user to another... Please help

    Hii Experts.... I have a problem here. Please give me solution for this...
    I am using Oracle 11g on my windows XP system.
    I created a new user named "some"
    I want to copy all the objects from scott user to some user... Please help me
    Please Explain me in detailed way
    Thank you

    SowmyRaj wrote:
    Hii Experts.... I have a problem here. Please give me solution for this...
    I am using Oracle 11g on my windows XP system.
    I created a new user named "some"
    I want to copy all the objects from scott user to some user... Please help me
    If all what you are interested is Scott schema than no need to use the datapump or CTAS. Run demobld.sql in your schema and it would have all the objects of Scott.
    http://www.oracle.com/technology/sample_code/tech/sql_plus/htdocs/demobld.html
    HTH
    Aman....

  • Moving objects from one schema to another

    Hi,
    again as part of my learning exercise, I was trying to move objects from a schema in 10GR2 to 11GR2 database.
    I am able to use exp and imp commands to achieve this objective -
    On source database -
    $> exp userid=scott/tiger owner=(schemaname) file=data.dmp statistics=none
    Copied the dump file on target server and then
    $> imp userid=scott/tiger file=data.dmp fromuser=uname touser=scott
    And this works fine.
    What I am not able to understand is how I can achieve this by using datapump instead?
    Your help is much appreciated.
    Thanks.

    Thanks.
    Worked perfectly.
    This is what I did (in case someone is in my position)-
    On source database-
    expdp scott/tiger schemas=<source schema>directory=DATA_PUMP_DIR dumpfile=data.dmp job_name=some_job
    Copied dump file to target server.
    On target database-
    $> impdp scott/tiger directory=DATA_PUMP_DIR dumpfile=data.dmp remap_schema=<source schema>:<target schema> job_name=imp_kob

  • Script for copying or moving files from windows server to another remote windows server

    Copy below 2 line into notepad and save as movescript.vbs
    execute in command prompt
    c:\cscript movescript.vbs  (Press ENTER)
    Files will move to remote location.
    =========================================
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    objFSO.MoveFile "C:\scripts\*.txt","\\servername\c$\share"
    =========================================
    for copy files to remote location
    =========================================
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    objFSO.CopyFile "C:\scripts\*.txt","\\servername\c$\share"
    =========================================
    Lets us know if you face any error. reply back to me on [email protected]
    Thank you.....
    Regards Ravikiran MCITP

    What is your question?  Are you asking how to do this?  Can you post the errors?
    ¯\_(ツ)_/¯

  • How do I copy and paste pics from one event to another in iPhoto?

    I'm trying to copy and paste in iPhoto, but every time I get to the paste part nothing happens.  The word "paste" even appears on the screen, but it's grayed out. Any suggestions?

    Hi Mel,
    From the picture in your post, it seems that you are using SharePoint 2010 workflow platform.
    If that is the case, I recommend to use Copy List Item action to copy the current item to other lists instead.
    If you still want to use Create List Item action, could you please provide more details about the two steps in your workflow:
    I am not sure why you need to set the workflow variable to get the ID in the Checklist2.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Can I copy and past iPhoto from one computer to another?

    I just bought a used Mac Mini to give to my in-laws. I used the original boot disks to reinstall the software. I then upgraded to Leopard. When all was said and done, everything was wonderful except that iPhoto was nowhere to be found. Going back to the original install disks in Tiger I tried to install via the 'bundled software' but got a 'failed install' because disk 2 apparently is faulty.
    Can I copy my iPhoto application from my iMac Intel Core 2 to the MacMini? I have tried several other strategies involving install disks, etc. It's iPhoto 6.06. I'm stymied.

    Thanks, Terence. I thought probably that was the case. I guess my only choice is to go back to the beginning with the Tiger install and see if it comes out right.

  • Copy and paste clips from one project to another

    i have made highlight film of my kids playing sports over the months. i would like to make one that had bits and pieces of all the previous. how do i see all the frames like you can in the events section?

    Hi
    NO ! - and when iMovie moved from the 1 to HD6 series (in last versions this worked greatly) - to iMovie'08 or 09 or 11
    This basic and very vital function was lost (among lot's of Important functions)
    There is a cumbersome way around (most probably more than one way to do it - this is mine)
    • Duplicate the project with needed clips (ctrl-click on its title in Project Library list)
    • In Copy - Delete what You don't need
    • Share it as a full Quality QuickTime .mov
    • Import this into Your New Project
    Cons: Effects and texts and so on can not be further edited as the clip-movie is flatted to one piece - If You need to do this I suggest You to re-build from scratch.
    Yours Bengt W

  • Copy and past files from one place to another

    HI i am trying to back up few files from java program plz some one help me out. i am new to programming field.
    can i have a sample code so i can do my work easyli
    thanx yokivo.

    run this code and see:
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.*;
    import java.io.*;
    public class CopyPasteFiles extends JFileChooser {
    boolean directoryOnly = false;
    public CopyPasteFiles(String who) {
    if (who == "directoryOnly")
    directoryOnly = true;
    else
    directoryOnly = false;
    try {
    jbInit();
    catch(Exception e) {
    e.printStackTrace();
    private void jbInit() throws Exception {
    this.setBounds(new Rectangle(8, 8, 583, 482));
    this.setDialogTitle("Select a file");
    if (directoryOnly == false) {
    this.setFileSelectionMode(JFileChooser.FILES_ONLY);
    this.setApproveButtonText("Backup it!");
    else {
    this.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
    this.setApproveButtonText("Select it!");
    public boolean implementBackup(File origin, File destination) {
    boolean backup = false;
    if (origin != null && destination != null) {
    String path = origin.getPath();
    try {
    FileInputStream origin1 = new FileInputStream(origin);
    File back1 = new File(destination.getPath() + File.separator + path.substring(path.lastIndexOf(File.separator)+1));
    back1.createNewFile();
    FileOutputStream back2 = new FileOutputStream(back1);
    byte[] bytes = new byte[origin1.available()];
    origin1.read(bytes);
    back2.write(bytes);
    origin1.close();
    back2.close();
    back1 = null;
    catch (Exception err) {
    System.out.println("File Error: " + err.getMessage());
    backup = true;
    return backup;
    public static void main(String[] args) {
    try {
    UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
    catch(Exception err) {
    System.out.println("General Error: " + err.getMessage());
    err.printStackTrace();
    CopyPasteFiles copyPasteFiles1 = new CopyPasteFiles("fileOnly");
    int returnValue1 = copyPasteFiles1.showOpenDialog(copyPasteFiles1);
    File directorySelected = null;
    File fileSelected = null;
    if (returnValue1 == JFileChooser.APPROVE_OPTION) {
    fileSelected = copyPasteFiles1.getSelectedFile();
    boolean isDirectory = false;
    while (isDirectory == false) {
    CopyPasteFiles copyPasteFiles2 = new CopyPasteFiles("directoryOnly");
    int returnValue2 = copyPasteFiles2.showOpenDialog(copyPasteFiles2);
    if (returnValue2 == JFileChooser.APPROVE_OPTION) {
    directorySelected = copyPasteFiles2.getSelectedFile();
    if (directorySelected.isDirectory())
    isDirectory = true;
    else
    isDirectory = true;
    boolean isBackup = copyPasteFiles1.implementBackup(fileSelected, directorySelected);
    int messagebox = 0;
    if (isBackup == true)
    messagebox = JOptionPane.showConfirmDialog(null, "Backup: YES.", "Caution!", JOptionPane.OK_CANCEL_OPTION, JOptionPane.WARNING_MESSAGE);
    else
    messagebox = JOptionPane.showConfirmDialog(null, "Backup: NO.", "Caution!", JOptionPane.OK_CANCEL_OPTION, JOptionPane.WARNING_MESSAGE);
    System.exit(0);

  • Moving procedures and sequences from one schema to another

    Hi all,
    Is there any way to export the procedures and sequences alone from one schema to another? If not is there any way to generate the procedure creating scripts from the source schema.
    I used the following script SET HEADING OFF
    SET PAGESIZE 999
    SET LINESIZE 100
    SELECT DBMS_METADATA.GET_DDL('PROCEDURE', NAME, owner) || '/' FROM ALL_SOURCE WHERE
    OWNER='SCOTT' AND TYPE='PROCEDURE'
    SPOOL C:\A.SQL
    SPOOL OFF
    [/CODE]
    But the problem is in the out put script it is cutting the line .. for egCREATE OR REPLACE PROCEDURE "QC_PFIZER_REL5"."SPGETNEXTDS
    S_ID"
    ( V_ID OUT NUMBER )
    IS
    BEGIN
    SELECT SEQUENCE_DSS_Id.NEXTVAL INTO V_ID FROM DUAL;
    END ;
    i experimented with increasing linesize but it is not helping. I am using 9.2.0.5 on windows 2003.
    Thanks
    Muneer

    Similar to getting the code from user_source, you could get sequences from user_sequences.
    SQL> select dbms_metadata.get_ddl('SEQUENCE', sequence_name) from user_sequences ;
    DBMS_METADATA.GET_DDL('SEQUENCE',SEQUENCE_NAME)
       CREATE SEQUENCE  "SCOTT"."SEQ"  MINVALUE 1 MAXVALUE 1.00000000000000E+27 INCR
    EMENT BY 1 START WITH 1 CACHE 20 NOORDER  NOCYCLE
    1 row selected.
    SQL>

  • Using Command Line to move objects from one environment to another enviroment

    Can the Command Line (sacmd) be used to move Job Groups/Jobs and other object from one environment to another environment? If so, how?

    Moving jobs and objects can only be accomplished by using the Transporter application. There is a document called "Transporter User Guide" with a chapter called "Running Transporter in Batch Mode" that details how to send commands to transporter from the command line. It also details how to setup jobs in Tidal to use this command line. Once you have jobs in Tidal using the Transporter command line, you can then use sacmd to run these jobs.
    Does this make sense?

  • How do I move an object from one photo to another and then change the scene, i.e.  winter to sum?

    How do I move an object from one photo to another and then change the scene, i.e.  winter to summer?

    OK.
    Open the picture with the new scene. This will be your canvas.
    Open the picture with object A, select it with one of the selection tools, go to Edit>copy
    Go back to the new scene/canvas, Go to Edit>paste
    Repeat for object B
    Use the move tool to position A & B, each on its own layer. Use the corner handles of the bounding box to resize, if necessary
    You should have 3 layers: Background layer, and the 2 layers with A & B
    Note: It's best if the resolution of the 3 picture files is the same value.

  • I would like to copy all the songs from one Ipod into another. All the songs are into my Itunes account, I tried to drag and drop the songs from the old Ipod to the new one but it doesn't work. Is there a way to do it ?

    Hello everybody,
    I would like to copy all the songs from one Ipod into another. All the songs are into my Itunes account, I tried to drag and drop the songs from the old Ipod to the new one but it doesn't work. Is there a way to do it ?
    I share one Itunes account with other people from my family and one person would like to keep the same songs on the new Ipod as the ones which were on the old one.
    Thanks in advance for your answer.
    Yan

    Hello Chris,
    Thanks for your answer. I was hoping for an easier answer. Too bad there is no drag and drop solution, it would have been much easier.
    Thanks for answering so fast.
    Bye.
    Yan

  • How to copy and paste text from one photo book page to another.

    hello,i downloaded this software 2days ago,and i've been having so much fun with it. pls i need help on how to copy and paste text from one photo book page to another. Secondly how to copy my completed photo book pages project to another laptop for printing. thanks
    This question was solved.
    View Solution.

    Hi DG.
    The easiest way to copy an HP Photo Creations project to another computer is to click the Share button. That will upload the project to the Web and give you a link you can paste into an email. Clicking the link on the other computer allows you to download the project and personalize it. This quick video shows the process. (The screen looks slightly different now, but the concept is the same.)
    Another way to share a project is copy the project folder to a thumb drive. Look in Documents/HP Photo Creations/My Things to find your saved projects.
    Our customer support team would be happy to walk you through the process. Contact them at [email protected]
    Hope this helps,
    RocketLife 
    RocketLife, developer of HP Photo Creations
    » Visit the HP Photo Creations Facebook page — news, tips, and inspiration
    » See the HP Photo Creations video tours — cool tips in under 2 minutes
    » Contact Customer Support — get answers from the experts

Maybe you are looking for

  • Nexus 7009 bandwidth allocation per port in shared and dedicated mode:

    We have 7009 with following I/O modules: N7K-F248XP-25E -- N7K-C7009-FAB-2 - qty 3 N7K-SUP2 I would like to know that each port of N7K-F248XP-25E will get how much bandwidth in shared mode. if we are using only one port group with 4 ports each port w

  • Layout and Pagination

    Hi, I am using sql based report... my issue is that report only shows 15 records... how can I change the number of rows from 15 to ALL... Please advice Thanks

  • IMAPS handshake failure

    I am trying to configure e-mail on NSD 7.0.3 appliance. Our mail server is Lotus Domino 9.0.1 and it supports imaps protocol. A mailbox has been created for NSD and I can successfully connect to it using Thunderbird. I can also connect by using "open

  • H.264 in Safari 6.0 displayed off centre

    I've just upgraded my computer (Black MacBook, late 2006, Core 2 Duo) to Lion. After updating Safari to 6.0, H.264 videos are displayed off-centre. The frame will appear in the right location, but the actual content is displayed only in the top right

  • Asking for some help.

    Hey guys, I'm not that smart with computers but I know more than the average person. But that is not the deal here. Recently, well, last night, I downloaded a theme for Windoes 7 (x86) and I though Windows 7 32bit and 86 were the same thing until i r