How to copy/clone/backup plsql-package (another name)

I have the package (and package body) called P. Now, I want to create the script that clones/copies this package under the new name of 'P_COPY '. How to do?
Package 'P_COPY' must have the same source code package 'P'.
Package 'P_COPY' should be ready to run.

--

I use Version 10 g.

Published by: CharlesRoos on August 10, 2010 06:49

Use the DBMS_METADATA. Function GET_DDL, then you will get a CLOB returns with the source code in it. Change this code source (using DBMS_LOB or other) as needed, and then submit it back to the database to create your new object. If it is low)<32K) or="" you're="" using="" 11g="" you="" can="" use="" execute="" immediate,="" but="" if="" it's="" larger="" than="" 32k="" or="" you're="" using="" 10g,="" you'll="" have="" to="" use="" the="" dbms_sql="" package="" to="" split="" the="" clob="" up="" into="" pieces="" and="" submit="" it="" to="" be="">

Tags: Database

Similar Questions

  • How to copy a flash drive to another?

    Original title: copy the USB

    How to copy a flash drive to another. It contains just ordinary excel data files only, no files or libraries

    Thank you

    Which removes the 1 Player files? (move rather that copy?

    Only one query: currently I more than 640 excel files on my USB key, I want to do it all in a single operation.

    None of the files or libraries currently in use on this USB key

    To avoid covering your desktop with files 640 +, make a folder for them, and copy them into it.

    When you drag files from one drive to another in Windows, it makes a copy of them. If you drag files from a folder to one another on the same drive he moves.

    If you actually want to move the files, you can use the right mouse button to drag and when let you go, it will give you a small menu of options such as move or copy.

    So, no, it will not erase the files from the first hard drive.

    HTH,

    Andrew

  • How to copy effects from object to another object?

    Hey,.

    I can't find anywhere how to copy the effects applied to the object (for example, drop shadow, inner glow, etc.) to another object.

    Is this possible?

    See the small fx icon in the effects Panel when you select the object that has already been applied effects? Drag the object you want to apply the same effect to.

    Bob

  • How to copy and paste it into another file to send by email?

    HOW TO COPY OR CUT AND PASTE, SEND AND EMAIL?

    either unique or overall.

    to highlight point left click and drag right click-copy-or select right click Copy-go to the mail and right click - click on paste.

  • How to copy / clone the parental controls on another account

    Is there a way to copy or clone parental control settings of an account limited for a new account?
    I'm going to set up individual accounts for my children and I find it very embarrassing repeatedly authorized programs list. It would also be useful to have the settings for synchronization if the settings for an account (if the settings have been changed) could be copied to another account.
    Any advice or pointers will be greatly appreciated!

    Toweri,

    Thanks for the reply. You can copy a user profile, however, you must enable the family settings again. Unfortunately, there is not a way to clone.

    Lisa
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How to copy a hard drive to another mac

    I took the hard drive of my dead book mac pro and you want to put in my new mac pro book using an adapter cable. How di do this?

    If the hard drive was part of the failure in a computer, it is not possible to extract data

    of one and use it in another. The old disk, when in a box or by using a USB

    Kit (universal wiring kit, such as the televised macsales.com) wire usually appear on the desktop of

    the computer as a storage drive. You may be able to use "migration assistant" or other methods

    to try and get your old files on this disc for use in another computer.

    If you have a universal car adapter such as the Epsonexpression model at macsales, they

    a manual for download on the page where the product is offered for sale; I don't see a free

    video, but one may exist. https://eShop.MacSales.com/item/NewerTech/U3NVSPATA/

    Their mode of adapter:

    If you configure a replacement or a new computer, with the new system, which may require other

    efforts; but you don't say. If Yes...

    You can consider if the computers are identical, you can instead

    migrate only the items that could work in the new computer, the old HDD.

    • Move your content to a new Mac - Apple Support

    • How to migrate all of your important data to your new Mac:

    a-to-your-new-Mac--Mac-46 http://Computers.tutsplus.com/tutorials/How-to-migrate-all-of-your-important-dat

    The migration wizard can be used after the new computer has already been defined

    up and running; otherwise you can do the old hard disk available

    on the new computer, when first implemented, since the new State.

    • OS X: manually migrating the data from another Mac - Apple Support

    • Apple OS X and Time Machine advice (see clones, OS X Recovery and other tricks)

    http://pondini.org/OSX/home.html

    Sometimes, a bunch of junk of old in the other drive, during migration on a first

    Base (from new State) or a bunch of stuff that has nothing to do with a new Mac,.

    randomly allowed to be included in the news reader, can cause several

    problems because incompatible software (including applications, utility, etc.)

    can be a lot of trouble; It is best to avoid this kind of migration.

    There may be a method to try to migrate using files of Time Machine on the other computer.

    Or use an old Mac clones, as a source to get copies of the old user-created

    content that you can access your new Mac. There are several possible

    things and they do not need to be moved to the new hard drive to the computer.

    • Use Time Machine to back up or restore your Mac - Apple Support

    • Time Machine: How to transfer backups from a current backup disk to a new backup drive - Apple Support

    Other than the old 3rd party software & passwords associated to allow licensed one that runs

    There is little reason to copy anything over an old computer to a new drive.

    In fact, those who can not work, update or upgrade may be required.

    A problem can occur with software under license (non-Apple) and passwords from that indicated on the

    When you try to use a new OS X older versions. You may need to purchase an upgrade

    for her third-party software to run in OS X 10.11.4; or in another computer that what he

    has been initially installed. What is written in a vague sense, because you don't say

    Why you try to do. I hope that I did not write too much, trying to cover

    any possibility where none was specified exactly. Too many possibilities...

    Good luck & happy computing!

    Edition 2 x

  • How to copy a hard drive to another removable disk?

    I keep all my files on a USB key.  I want to make a copy or a backup of this USB using another USB key.

    I keep all my files on a USB key.  I want to make a copy or a backup of this USB using another USB key.

    =========================
    If you have two USB ports...
    place a USB stick in each of them.

    If open windows... Close them.

    Reach... Start / computer...

    Each USB drive should be recognized
    with a drive letter...

    Example:

    Removable (e :)) drive
    Removable disk (e :))

    On the left, click on the drive letters to display a
    Directory of readers.

    Now you can copy and paste or drag and drop
    the files from one disk to another.

    If you have only a USB port... copy all
    the files in a folder on your desktop and
    Then copy them to the other thumb
    drive.

  • How to COPY a BACKUP as the... CONTROLFILE can be used for the OPEN database

    I create a document such as a "How To" to move a position for a Junior DBA controlfile.

    But it seems that I'm the Junior because I am facing the following...

    Action plan:

    Move/rename a Controlfile

    Version of the database: 11.2.0.3

    Controlfiles moving of:

    / goldengate/ORCL/ORADATA /.

    TO:

    / GoldenGate/ORCL/controlfile

    Step 1: Set up environment variables

    $> export ORACLE_SID = ORCL1

    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    $> echo $ORACLE_SID

    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    ORCL1

    $> export ORACLE_BASE = / u01/app/oracle

    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    $> echo $ORACLE_BASE

    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    / u01/app/Oracle

    $> export ORACLE_HOME=$ORACLE_BASE/product/11.2.0.3/dbhome_1

    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    $ echo $ORACLE_HOME

    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    /U01/app/Oracle/product/11.2.0.3/dbhome_1

    Step 2: Check control_files parameter

    $> echo "see THE PARAMETER control_files | sqlplus-s "virtue sysdba".

    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    VALUE OF TYPE NAME

    ------------------------------------ ----------- ------------------------------

    control_files string/goldengate/ORCL/ORADATA/control

    ol01. CTL, / goldengate/ORCL/ORA

    DATA/control02.ctl

    Step 3: Closing the open database

    $> echo 'SHUTDOWN IMMEDIATE'; | sqlplus-s "virtue sysdba".

    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    The database is closed.

    The database is dismounted.

    ORACLE instance stops.

    Step 4: Editing of the database

    $> echo "STARTUP MOUNT"; | sqlplus-s "virtue sysdba".

    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    ORACLE instance started.

    Total System Global Area 4275781632 bytes

    Bytes of size 2235208 fixed

    822084792 variable size bytes

    3439329280 of database buffers bytes

    Redo buffers 12132352 bytes

    Mounted database.

    Step 5: Creating a copy of the current controlfile

    $> echo "AS BACKUP COPY CURRENT CONTROLFILE FORMAT ' / goldengate/ORCL/CONTROLFILE/control01.copy.ctl'; ' | RMAN target / nocatalog

    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Recovery Manager: release 11.2.0.3.0 - Production Fri Oct 22 17:03:27 2015

    Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.

    connected to target database: ORCL (DBID = 1420762587, is not open)

    using the control file of the target instead of recovery catalog database

    RMAN >

    From 22 October 15 backup

    allocated channel: ORA_DISK_1

    channel ORA_DISK_1: SID = 58 type of device = DISK

    channel ORA_DISK_1: from data file copy

    copy the current control file

    tag name=/goldengate/ORCL/CONTROLFILE/control01.copy.ctl output file = RECID = 1 STAMP = 893783011 TAG20151022T170329

    channel ORA_DISK_1: datafile copy complete, duration: 00:00:03

    Backup finished at 22 October 15

    RMAN >

    Complete recovery manager.

    Step 6: Change of parameter control_files

    $> echo "ALTER SYSTEM SET control_files='/goldengate/ORCL/CONTROLFILE/control01.copy.ctl' SCOPE = SPFILE;" | sqlplus-s "virtue sysdba".

    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Modified system.

    Step 7: Closing of the mounted database

    $> echo 'SHUTDOWN IMMEDIATE'; | sqlplus-s "virtue sysdba".

    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    ORA-01109: database is not open

    The database is dismounted.

    ORACLE instance stops.

    Step 8: Installation of the database

    $> echo "STARTUP MOUNT"; | sqlplus-s "virtue sysdba".

    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    ORACLE instance started.

    Total System Global Area 4275781632 bytes

    Bytes of size 2235208 fixed

    822084792 variable size bytes

    3439329280 of database buffers bytes

    Redo buffers 12132352 bytes

    Mounted database.

    Step 9: Check control_files parameter

    $> echo "see THE PARAMETER control_files | sqlplus-s "virtue sysdba".

    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    VALUE OF TYPE NAME

    ------------------------------------ ----------- ------------------------------

    control_files string/goldengate/ORCL/CONTROLFILE/c

    ontrol01. Copy.CTL

    Step 10: Open the mounted database

    $> echo "ALTER DATABASE OPEN"; | sqlplus-s "virtue sysdba".

    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    ALTER DATABASE OPEN

    *

    ERROR on line 1:

    ORA-01589: must use RESETLOGS or NORESETLOGS option of database open

    $> echo "ALTER DATABASE OPEN NORESETLOGS"; | sqlplus-s "virtue sysdba".

    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    ALTER DATABASE OPEN NORESETLOGS

    *

    ERROR on line 1:

    ORA-01610: recovery using BACKUP CONTROLFILE option must be

    Then...

    $> sqlplus/nolog

    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    SQL * more: Production release 11.2.0.3.0 the game Oct 22 17:14:43 2015

    Copyright (c) 1982, 2011, Oracle.  All rights reserved.

    SQL > CONNECT sysdba virtue

    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Connected.

    SQL > RECOVER DATABASE with the HELP of BACKUP CONTROLFILE until CANCEL;

    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    ORA-00279: change 621941 September at 22/10/2015 16:57:33 needed to screw 1

    ORA-00289: suggestion:

    /U01/app/Oracle/product/11.2.0.3/dbhome_1/DBS/arch1_11_892981851.dbf

    ORA-00280: change 621941 thread 1 is in sequence #11

    Specify the log: {< RET > = suggested |} Filename | AUTO | CANCEL}

    Cancel

    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Cancelled media recovery.

    SQL > ALTER DATABASE OPEN;

    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    ALTER DATABASE OPEN

    *

    ERROR on line 1:

    ORA-01589: must use RESETLOGS or NORESETLOGS option of database open

    Issues related to the:

    What am I misunderstanding? BACKUP COPY THAT isn't really a COPY.

    Why I can't use the 'copy' of the controlfile created by RMAN?

    Note:

    If I just copy the controlfile to the new location when the database shuts down everything works fine.

    Thanks in advance.

    Juan M


    Recovery Manager (RMAN)

    It is also mentioned in https://docs.oracle.com/cd/E11882_01/server.112/e25494/control.htm#ADMIN11288

    Create additional Copies, rename and move the control files

  • How to copy from one Application to another custom Page template

    Hello

    12.1.3 Jdev

    How can I copy a created exculpatory to one application to another?

    I don't want to create the existing application as a jar and add a library to the following. I want to copy an existing template and begin to change in the next request.

    See you soon

    AJ

    Each application that uses the model page, have the file called pagetemplate - metadata.xml, which is basically a repository of page template.

    When you create a page template, some entries are added to this file automatically for you.

    That's why I said lets you create a new model.

    Well, next to the source code of the template page, if the original model have pageDef, you need this pageDef too, so do the same - create Def page for your new template and just copy - paste the contents of the original.

  • How to copy - paste to put in another document

    I used to be able to respond to an email and it show up under the box. Then I could add my comments to this announcement with the original mail in it. Now it don't.

    Also, I used to be able to go on a site a cut-and - paste or copy - paste to put in my document.

    Now I can not do. Can you please give me some advice because it's totally frustrating.

    See also:

  • How to copy the message filters for an email to another account email account

    have a filter of msg in a single email counts with many entries - how to copy this msg filter to another account

    If you want to duplicate a filters of accounts to another account, you don't need to create them again. Output of Thunderbird and copy the file "msgFilterRules.dat" instead. If the account is in a different profile and it uses custom headers, you will also need to copy the parameter mailnews.customHeaders to prefs.js.

  • How to copy the database using rman file from another location.

    You can clone data base using the files of rman backup from somewhere else (on the server to clone).

    I have two server db source and clone db server.
    I normally copy the files of RMAN backup to clone server (under the same folder structure, as it was on the source server).

    The purpose of the test, IE I don't have same partition and free space on the source server and the clone.

    I usually use under notes to the clone.
    http://trysellit.com/hosting/Ttrail/Fajr.php?doc=wtrail & ND = 0556200

    I would try to explain for example again.
    In source server, my rman backup are stored in / U01 and clone server, I copied the files of rman /u04. What step I should take to clone to work anywhere else?

    Using Oracle 10 g on Linux RedHat.

    sape007 wrote:
    Thanks Ken & PrafullaNath.

    BUT my question is: how to transport .dbf files in another place on the clone (I already do).

    Rather:
    The clone is on another server. How to restore by copying the RMAN files from another location on the clone. Please read description above in its entirety.

    Sorry for not being clear.

    Please see my video tutorial. In this tutorial that I take backup of the database, copy the backup to the different server and perform a recovery disaster

  • How to copy photos from one HD to another

    Noticed that my 10 000 entire iPhoto library is stored only on one of the three external HD that I have - and not on my Mac itself.  How can I copy / duplicate the library on another HD so that I have a backup?  Thanks in advance.

    Click the source, use the command + C to copy, select the destination, and then command + V to paste. However if you back up your computer using Time Machine you probably already have at least 1 backup. It's a good idea to have redundant backups, but you can use the copy and paste the solution in addition to using Time Machine.

  • I want to know how to copy information on one CD to another CD. I am not very computer so please be as simple and complete as possible.

    Copy information to a CD to another CD

    You need 3rd Party Software to do what you want to do.

    http://www.SnapFiles.com/get/burningstudiofree.html

    Ashampoo Burning Studio Free is a full CD/DVD/Blu-Ray suite which allows you to create data disks, music, video and audio burning. You can also create backups that span multiple discs, rip music from an Audio CD and create or burn disc in ISO or BIN/CUE format images. The task-oriented interface makes it easy to get started and will spare you most of the technical details. Other features include the conversion of files to WAV, MP3, FLAC, WMA and Ogg audio automatic, disk copy compressed backup file and restore, erasing the disc, VCD/SVCD, burning project and support more. Free registration required after 10 days.

    You should get something like the above program (which is free and very good) and learn how to use it by reading the software Instructions that appear on the front of the Programt open.

    The above program copy of CD, DVD, Bluerays.
    Make sure that the CD are NOT protected by copyright.

    See you soon. Mick Murphy - Microsoft partner

  • How to copy contact from another list? No traveling.

    How to copy contact from another list? No traveling.

    Same way you do in most of the applications when you use slide it / move. You hold down the CTRL key while dragging the file or contact. You will see a sign more seem to indicate a copy and not move. Hold the control key until releasing the contact in the new location.

Maybe you are looking for

  • The new Firefox 4 close all my tabs without giving me the option to keep them as Firefox 3. Why can't we keep this feature?

    I installed Firefox 4 on my laptop but not on my PC because of 2 problems: -.(1) Firefox 3 would always ask me if I wanted to keep the tabs open, what I almost always do. Firefox 4 is no longer offers this option and closes all tabs. Why? (2) Firefox

  • Satellite A210 - bios update gone bad

    Hi all I was updating of the Bios on my A210 when the laptop stopped yourself during the upgrade (possible overheating problem) and now it wont start at all as bios is lost.Any ideas how to get back there to wake up? There the reset on the M/B bios?

  • HP 15 Touchh: Smart AC adapter / CC

    I mixed up to the top of my power adapter with one to a school that happens to have hundreeds of hp computers. I had a chat with someone at HP session who said that my cpomputer using a 45W adapter. However, when I got back to school to get my adapte

  • Mac mini humming, overheating

    My Mac Mini (2012) tends to produce a very loud snoring and overheating.  This worsens because I use it for simple tasks (email, FB, drafting documents solitaire). Here are the specs: OS X Yosemite 10.10.5 Model name: Mini Mac Model identifier: Macmi

  • Change number of positive to negative

    HelloI use the SUM function in a calculated field to add and subtract values and display the results in a 'Total'.  Subtraction requires the user to enter a negative number in the field of "losses".  I would like to create a user just enter a number