How to copy procedures and packages from one server to another?

Hi,
I have 439 packages and 178 procedures located in one server called MAXWELL.
I need to copy these objects to another server called TITAN.
The schema names is SPCBR in both servers.
So both servers have an instance running with this schema SPCBR.
SPCBR in TITAN server has their tables with table data which was generated by an export/import process from MAXWELL server.
However, procedures and packages were not copied by the export/import because I used the clause 'tables'.
Now, what can I do in order to equalize procedures and packages in both databases? I can't risk in damaging or duplicating data in my database located in TITAN server, ok?
Thanks,

Another simple alternative, according to AskTom (http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:454220160386)
---------------- getcode.sql ----------------------------
set feedback off
set heading off
set termout off
set linesize 1000
set trimspool on
set verify off
spool &1..sql
prompt set define off
select decode( type||'-'||to_char(line,'fm99999'),
'PACKAGE BODY-1', '/'||chr(10),
null) ||
decode(line,1,'create or replace ', '' ) ||
text text
from user_source
where name = upper('&&1')
order by type, line;
prompt /
prompt set define on
spool off
set feedback on
set heading on
set termout on
set linesize 100
------------------- eof --------------------------------
it extracts one procedure, function or package to a file. Thats it. If you
wanted to get all of the procedures in a schema extracted to the current working
directory, you would run a script:
--------------- getallcode ---------------------------
set termout off
set heading off
set feedback off
set linesize 50
spool xtmpx.sql
select '@getcode ' || object_name
from user_objects
where object_type in ( 'PROCEDURE', 'FUNCTION', 'PACKAGE' )
spool off
spool getallcode_INSTALL.sql
select '@' || object_name
from user_objects
where object_type in ( 'PROCEDURE', 'FUNCTION', 'PACKAGE' )
spool off
set heading on
set feedback on
set linesize 130
set termout on
@xtmpx.sql
---------------- eof ---------------------------------
You can see how to filter on that one by adding to the where clause if you want.
Just run @getallcode_INSTALL to run all of the scripts...

Similar Messages

  • Is it possible to copy formats and styles from one document to another?

    Is it possible to copy formats and styles from one document to another?
    Or use a commen styledocument as a masterdocument?

    Only by creating a template with what you want.
    Apple has removed the ability to import styles inPAges 5 along with almost 100 other features.
    Peter

  • How can you move the objects from one server to another?

    how can you move the objects from one server to another?

    Hi,
    Collecting objects for Transporting
    1. rsa1->transport connection
    2. left panel choose 'object type', middle panel choose 'infocube' and 'select objects'
    3. then choose your infocube and 'transfer'
    4. will go to right panel, choose collection mode 'manual' and grouping only 'necessary objects'
    5. after objects collection finished, create request
    6. If they are $TMP, then change the package.
    7. When you click the Save on the change package, it will prompt for transport. Here you can provide an existing open transport request number, or if you like here itself you can create a new one.
    8. You can check the request in SE09 to confirm.
    Releasing Transport Request  
    Lets say you are transporting from BWD to BWQ
    Step 1: In BWD go to TCode SE10
    Step 2: Find the request and release it (Truck Icon or option can be found by right click on request #)
    Note: First release the child request and then the parent request
    Steps below are to import transport (generally done by basis )
    Step 1: In BWQ go to Tcode STMS
    Step 2: Click on Import queue button
    Step 3: Double Click on the line which says BWQ (or the system into which transport has to be imported)
    Step 4: Click on refresh button
    Step 5: High light the trasnport request and import it (using the truck icon)
    Transport
    http://help.sap.com/saphelp_nw2004s/helpdata/en/b5/1d733b73a8f706e10000000a11402f/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/0b/5ee7377a98c17fe10000009b38f842/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/224381ad-0701-0010-dcb5-d74236082bff
    Hope this helps.
    thanks,
    JituK

  • How to copy/move Portal database from one machine to another?

    I am receiving a ORA-22973 error (size of object identifier exceeds maxmum size allowed) on the wwsec_enabler_config_info$ table when attempting to import my entire "portal30" schema from one database to another on different Windows NT Servers.
    Background: I had Portal 3.0.9.8 installed, configured, and running with the following setup:
    Machine 1: Windows NT 4.0 SP 6, Oracle 9iAS 1.0.2.2, Oracle Portal 3.0.9.8
    Machine 2: Windows NT 4.0 SP 6, Oracle 8i Database 8.1.7.0.0
    We no longer have use of Machine 2 and needed to move the database over to Machine 1.
    I performed the following steps:
    1. Installed Oracle 8i database 8.1.7.0.0 on Machine 1.
    2. Set up the tablespaces in the database on Machine 1 to match the same names and sizes of the tablespaces in the database on Machine 2.
    3. Used the Oracle "exp" command to export the entire database that resided on Machine 2.
    4. Copied the ".dmp" file to Machine 1.
    5. Used the Oracle "imp" command to import the entire database on Machine 1.
    6. The import completed successfully with warnings. But I had received the ORA-22973 error during the import process.
    7. After it completed I compared the list of tables and packages in the "portal30" schema between the two databases. The wwsec_enabler_config_info$ table is missing.
    8. I tried to export and import only the wwsec_enabler_config_info$ table between the two databases, but continue to receive the ORA-22973 error.
    Without the table being created, access to the portal cannot be achieved.
    Here are my questions:
    1. Is there anyway to create the wwsec_enabler_config_info$ table without receiving the noted error?
    2. Is there any other workable way to get the portal database from Machine 2 to Machine 1?
    I am aware of the portal import/export utilities but that would require me to run through the 2 hour install of Portal 3.0.9.8 on the database on Machine 1 and then individually export and import all the portal components (security, pages, applications, content library, etc). I merely wanted to transfer the entire database from one machine to another, so I felt the Oracle exp/imp utilities would be quicker and less work.

    Hi,
    I've been hitting problems with Portal 3.0.9.8.1 against 8.1.7.2.1 on NT - i.e., Intermedia not working at all, and have been advised by support to move back to 8.1.7.1.1.
    I don't want to lose any of my content in the Portal since the db upgrade and am wondering on what is the best way to do this.
    The version of the Portal will be the same so I am hoping I can just use the Portal export and import utilities, as afterall, it is just data and the schema structures are the same between db versions. I'm also hoping that the Portal export doesn't use the standard Oracle EXP tool as it doesn't work anymore on 8.1.7.2.1 on NT!!
    Regards,
    John

  • 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>

  • How do i Drag and drop From one tree to another and vise versa?

    I have two tree structures and i'm trying to drag a leaf of a branch from one tree to another and vise versa. i'm using flex 3 to code it. I'm also trying to put a prevention on dropping a leaf of one tree from being dropped inside a branch of another tree. Anything that is dragged over to another tree should be placed as a dangling node in that tree. Please share this code and help me find a solution.
    <?xml version="1.0" encoding="utf-8"?><mx:Application 
    xmlns:mx="
    http://www.adobe.com/2006/mxml" xmlns:comp="
    com.adobe.flex.extras.controls.*" initialize="data2
    new
    ArrayCollection(countries);"layout="
    absolute"verticalAlign="
    middle" backgroundColor="white" height="
    551">
    <mx:Script>
    <![CDATA[
    importmx.events.FlexEvent; 
    importmx.collections.ArrayCollection; 
    importmx.controls.Alert; 
    importmx.events.DragEvent; 
    importmx.managers.DragManager;  
    importmx.core.DragSource;  
    importmx.core.UIComponent;  
    importmx.controls.Tree;  
    // data provider for role name[
    Bindable] private vardata2: ArrayCollection; 
    // variable to store the node that is dragged from a tree 
    private var draggedItemOfAccessTree:XML = null;  
    private var draggedItemOfExclusionTree:XML = null; 
    private var dragItemAccess:DisplayObject =null; 
    private var dragItemExclusion:DisplayObject =null; 
    // Array to store the Role list[
    Bindable]public varcountries: Array = [{id: 0, name:
    "Role 1"},{id: 1, name:
    "Role 2"},{id: 2, name:
    "Role 3"},{id: 3, name:
    "Role 4"},{id: 4, name:
    "Role 5"},{id: 5, name:
    "Role 6"},{id: 6, name:
    "Role 7"},{id: 7, name:
    "Role 8"},{id: 8, name:
    "Role 9"},{id: 9, name:
    "Role 10"},{id: 10,name:
    "Role 11"} 
    // this event is called when we begin dragging a node in a tree 
    private function onAccessListDragEnter( event:DragEvent ) : void{
    event.preventDefault();
    vards1:DragSource = event.dragSource;  
    var items1:Array = ds1.dataForFormat("treeItems") asArray; 
    if (items1 != null && items1.length > 0 && (items1[0] isXML)){
    draggedItemOfAccessTree = items1[0];
    dragItemAccess = items1[0]
    asDisplayObject;}
    DragManager.acceptDragDrop(UIComponent(event.currentTarget));
    private function onExclusionListDragEnter( event:DragEvent ) : void{
    event.preventDefault();
    vards2:DragSource = event.dragSource;  
    var items2:Array = ds2.dataForFormat("treeItems") asArray; 
    if (items2 != null && items2.length > 0 && (items2[0] isXML)){
    draggedItemOfExclusionTree = items2[0];
    dragItemExclusion =items2[0]
    asDisplayObject;}
    DragManager.acceptDragDrop(UIComponent(event.currentTarget));
    private function onAccessListDragOver( event:DragEvent ) : void{
    event.preventDefault();
    varvar1:Number = AccessTree.selectedIndex; 
    varvar2:Number = ExclusionTree.calculateDropIndex(event);  
    var node1:XML = AccessTree.selectedItem asXML;  
    var node2:XML = ExclusionTree.calculateDropIndex(event) asXML;  
    //restrict drag & drop to nodes within same parent  
    if(draggedItemOfAccessTree.parent() == node1.parent() || draggedItemOfAccessTree.parent() != node1.parent()){
    DragManager.showFeedback(DragManager.NONE);
    //return; }
    elseDragManager.showFeedback(DragManager.MOVE);
    private function onExclusionListDragOver( event:DragEvent ) : void{
    event.preventDefault();
    varvar1:Number = ExclusionTree.selectedIndex;  
    varvar2:Number = AccessTree.calculateDropIndex(event); 
    var node1:XML = AccessTree.calculateDropIndex(event) asXML;  
    var node2:XML = ExclusionTree.selectedItem asXML;  
    //restrict drag & drop to nodes within same parent  
    if( draggedItemOfExclusionTree.parent() == node2.parent() || draggedItemOfExclusionTree.parent() != node2.parent()){
    DragManager.showFeedback(DragManager.NONE);
    // return; }
    elseDragManager.showFeedback(DragManager.MOVE);
    private function onAccessListDragDrop( event:DragEvent ) : void{
    event.preventDefault();
    varSindex:Number = AccessTree.selectedIndex; 
    varEindex:Number= ExclusionTree.calculateDropIndex(event);  
    var Enode:XML = ExclusionTree.selectedItem asXML;  
    var Anode:XML = AccessTree.selectedItem asXML; 
    if((draggedItemOfAccessTree.parent() != Anode.parent()) ){
    AccessTree.removeChildAt(Sindex);
    ExclusionTree.addChildAt(dragItemAccess , Eindex);
    // AccessTree.rdataDescriptor.removeChildAt(Anode.parent(),draggedItemOfAccessTree,Sindex);  
    //ExclusionTree.dataDescriptor.addChildAt(Enode.parent(),draggedItemOfAccessTree,Eindex); }
    private function onExclusionListDragDrop( event:DragEvent ) : void{
    event.preventDefault();
    varEindex:Number = ExclusionTree.selectedIndex; 
    varSindex:Number = AccessTree.calculateDropIndex(event);  
    var Anode:XML = AccessTree.selectedItem asXML;  
    var Enode:XML = ExclusionTree.selectedItem asXML; 
    if((draggedItemOfExclusionTree.parent() != Enode.parent()) ){
    ExclusionTree.removeChildAt(Eindex);
    AccessTree.addChildAt(dragItemExclusion, Sindex);
    // ExclusionTree.dataDescriptor.removeChildAt(Enode.parent(),draggedItemOfExclusionTree,Eind ex);  
    // AccessTree.dataDescriptor.addChildAt(Anode.parent(),draggedItemOfExclusionTree,Eindex); }
    private function onDragComplete( event:DragEvent ) : void

    Yes, I have set dragEnabled and dropEnabled to true. I trying to put restriction on dropping the node(aka leaf) of 1st free tree inside the branch(aka folder) of the 2nd tree. If something is dragged from tree1, it should be dropped only on tree2  i.e., dragged node should be appended at the end of tree2 and not inside nay of the branches of tree2. This functionality should work on both the trees. I'll be glad if u can provide the solution.

  • How to transfer/ copy data and setting from one iPhone to another

    Hi,
    I recently cracked the screen on my 3G iPhone and a have fortunately managed to convince the insurance company to pay for a new one.
    I'd like to be able to transfer all my contacts, apps aand setting to the new phone. Only problem is I have to give back the old phone to get the new one.
    Any advice much appreciated, and thanks in advance to anyone who spend time to help

    The iPhone is designed to be synced with the supported applications on your computer for contact info, calendar events, and bookmarks. To transfer iTunes content and photos from your computer to your iPhone requires syncing with iTunes. Photos captured by your iPhone should be imported by your computer as with any other camera. The imported photos can be transferred back to your iPhone via the iTunes sync process.
    iTunes also creates and maintains a backup of your iPhone that includes data such as most iPhone settings, email account settings, SMS messages, notes, recent calls, call favorites, 3rd party app settings and data created and stored by 3rd party apps, contact info, and photos captured by your iPhone - but not a good idea to depend on the backup only for the last 2. Sync contact info with a supported application on your computer and import photos that were captured by your iPhone before giving up your iPhone. You can restore your new iPhone from your existing iPhone's backup followed by a sync.

  • How to copy a user account from one Mac to another

    If I have a main user (admin) account on one Mac, and want to copy its Home Folder over to another Mac that already has user accounts on it, what is the best way to do it?
    For example, if I boot the source Mac in Target Disk Mode then connect it to the other Mac, can I just drag and drop from its Users folder into the Users folder on the other Mac? And would that then appear in SysPref/Accounts, complete with names and passwords etc, or is it not that simple?
    (Actually, I just checked by launching Migration Assistant, and it seems to indicate I can use it to copy User Accounts from a different Mac - is this all I need? How would I connect the two Macs for this to work?)

    Slightly confusing, that article - it talks about using Migration Assistant in Lion or Mountain Lion, but in my case both computers have used Snow Leopard. Does it still apply?
    (One other observation - don't you find it confusing the way Apple defines "Target Disk Mode"? It's pretty much always the case that a computer booted in this way becomes the Source computer, while the Target computer is the one it's connected to!!)

  • Copy SQL Express DB from one server to another

    backup, copy to new machine and restore; fix up user securities on new machine; set up maintenance plans; set up applications to point to new database (or if use DNS, no change..) step and repeat - of course during non-use time frame - my 2 cents

    Looking for a good way to move a SQL express DB from an instance on one server to a SQL express instance on another server.  I have the ability to connect to both through SSMS.  Because these are express instances, I don't have the option to just copy the DB.  Any help is appreciated.
    This topic first appeared in the Spiceworks Community

  • Migrating CMSA Assets and Data from one server to another

    Hello,
    Is there an official way to migrate the data from one CMSA installation to another one?  In the near future we're going to need to move from our development machine into the production environment, and it would be great if there was a way to get all the assets we've created in dev over to production without the need to manually re-create them all.
    Is this possible?
    Cheers,
    Kristian

    Check out http://help.adobe.com/en_US/LiveCycle/9.5/AssetComposerTechGuide/WS2bacbdf8d487e5824fb272 0612b944351b6-8000.html for this.

  • Procedure Data Export and Import from One server to another server

    Dear all,
    I want to transfer my all Production Server data into Quality Server or Development Server. So how can i transfer my all data in this and please tell me procedure for transfer data into different server. and also tell me which server u preferred for store production data. Please help me out as soon as possible.
    Thanks in Advance
    Keyur chauhan.

    That is possible throgh Remote Client copy or Client Export Import depends on the size of data which you want to transfer.
    http://www.sap-basis-abap.com/bc/client-copy-from-production-to-quality-server-to.htm.
    http://help.sap.com/saphelp_erp2004/helpdata/en/69/c24c4e4ba111d189750000e8322d00/content.htm
    Please go through these links.
    I would prefer to transfer the data in QA system so that all the user testing can be done easily.
    Regards,
    Subhash

  • Help with copying permissions and roles from one user to another. Issue with RoleDefinitions

    I need help please. 
    I’m trying to copy a role definition/name in SharePoint 2010 Powershell. 
    The below is only a piece of my script, but I have to find '$SearchUser" and wherever it lives (webs, lists, groups), I need to add "$account" and copy permissions
    from '$SearchUser" . We are doing this to limit certain users from access our farm (by adding a new AD domain that does not contain these users, then deleting the old domain). 
    Every time I run it, it seems to mess up on this line: 
    $role = $web.RoleDefinitions.[$newRoleDef].
     It is acting like the $newRoleDef is null, but it is not. 
    When I outputfile the $newRoleDef, it has values, such as Read, Contribute.
    foreach($Web in $Site.AllWebs)
    if($Web.HasUniqueRoleAssignments -eq $True)
    foreach($WebRoleAssignment in $Web.RoleAssignments )
    if($WebRoleAssignment.Member.userlogin)
    if($WebRoleAssignment.Member.LoginName -eq $SearchUser)
    $WebUserPermissions=@()
    foreach ($RoleDefinition in $WebRoleAssignment.RoleDefinitionBindings)
    $newRoleDef = $RoleDefinition.Name
    $assignment = New-Object Microsoft.SharePoint.SPRoleAssignment($account)
    $role = $web.RoleDefinitions.[$newRoleDef]
    $assignment.RoleDefinitionBindings.Add($role)
    $_.RoleAssignments.Add($assignment)

    Hi,
    Glad to hear that you solve this issue, thanks for your sharing.
    Thanks,
    Linda Li
    Linda Li
    TechNet Community Support

  • Steps in migrating Web and mailman from one server to another

    I am minimally skilled so am taking this slowly
    I currently have a server set to manage several websites all on the same IP forwarded from a DSL modem. Also Mailman provides list distribution for several of the websites. That box also serves as a primary DNS within my subnet behind the modem. My question is what services to I transfer first to make sure I have it right. Shooting from the hip, I would say I do it in this order:
    ~ Set up the multiple web sites on the new server.
    ~ Set up mail services on the new server
    ~ Set up the mailman services on the new server.
    ~ Change the port forwarding on the modem from the old box to the new one so the outside world now gets sent to the new server
    ~ Change DNS services for the intranet
    Does this sequence make sense or am I missing something?

    Actually, I migrated using a process in this thread:
    http://discussions.apple.com/message.jspa?messageID=6390958#6390958
    and it worked very well. Had to do a lot of clean-up to get Apache to work correctly but now it does.

  • How to migrate a suspended domain from one server to another?

    I am using oracle vm server 2.2.2 and i am trying to create the disaster recovery strategy for my environment
    Initially i have successfully paused the vm VM1 using the "xm save VM1 suspended_file " command and save the memory to a file named suspended_file
    then i backed up the directory under OVS/runnning_pool on the magnetic tape includind the suspended file
    when i tried to restore the vm1 to a new server i was not able to restore the vm using the xm restore command.I have import the virtual machine from vm manager and therefore the paths in configuration file contains the correct paths pointing to the images in the new server pool.
    however the following error appears when run the xm restore suspended_file
    Error :disk image does not exit /old_path_to_the_image
    For unknown reason the suspended file contains the old path to the disk image.Is there any way to alter the suspended file in order to point to the new directory
    If i start the vm ignoring the suspend file could cause any problems ?
    thanks in advance.
    i am waiting for your responses

    If all of the database files, including the binaries, are on a SAN you might be able to...
    1. Cold backup of everything - database files and binaries.
    2. Dismount the SAN volumes from the old server.
    3. Mount the SAN volumes to the new server - using the same mount points.
    4. Start up the database on the new server.
    If the OS version/release are the same between new and old, that should be about all you need to do.
    If the OS is same but upgraded to new version/release you will want to relink the Oracle executables before starting up.

  • HOW TO TRANSPORT THE STANDARD TEXT FROM ONE SERVER TO ANOTHER?

    After creating the standard text in SO10 transaction
    it will not ask for any transport request no while saving ,
    i want to transport the standard text from development to test server.
    how can we do that?

    Hi Riaz,
    To transport a Standard Text through a transport request , you need to attach the standard text through the transaction RSTXTRAN.
    After executing the report RSTXTRAN , you can enter first the task name then the Object as TEXT , then the name of the standard text , ID as ST, then the language as EN or something else .then execute.
    you cannot attach a standard text to an unassigned task.Firat you have to either activate a smartform or a script with that task then only you have to attach a standard text.
    I think your query is almost answered .
    Reward if you please.
    Thanks & regards,
    Ram

Maybe you are looking for

  • HT6389 How do family members in Family Sharing download a Not Shareable App for their own account?

    I have downloaded an app (Uber) in the past, but my wife has not.  I set up Family Sharing with my wife.  Uber is set as a Not Shareable app, and the problem is that my wife can't download the app even when she goes to it in the app store.  It shows

  • Custom Identity Service configuration in SOA Suite 11g

    Has anyone been successfull in using custom identity service (available in 10.1.3.X) as a identity store in soa suite 11g human workflow component? If yes, please guide me.

  • How to display data in text file in column format

    hi i am acquiring data from an oscilloscope. wen i save the data in a text file using wite to speadsheet string, all the voltage values r displayed first and then the time values... besides its tab delimited how can i display it such that the time va

  • REGARDING CONTENT CONVERSION IN SENDER SIDE

    Hi I have a flat file like this column names NO NAME AGE FLAT FILE IS   1#KIRAN#27                        2###28                        3#RAVI#28 in the second record the name field is also filled with # so please tell me how can we handle this thank

  • OS completely stalls for 1-2 minutes about every 5-10 minutes

    Hi there, I find that my OS completely stalls for 1-2 minutes about every 5-10 minutes and not clear why. I am running "top -o cpu" from the shell and dont see a process that is hogging the CPU. One issue is that top even stalls with the entire machi