Backup of database packages

Hello

Is there anyway to backup all the custom of packets of data to our local system? Just to make sure that all custom packages are somewhere safe.

Thank you

With the help of the coil you can enter the text of the package in a directory specific to unix as it->

satyaki>
satyaki>select * from v$version;

BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
PL/SQL Release 10.2.0.3.0 - Production
CORE    10.2.0.3.0      Production
TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
NLSRTL Version 10.2.0.3.0 - Production

Elapsed: 00:00:00.55
satyaki>
satyaki>set longc 100000
satyaki>
satyaki>select text
  2  from user_source
  3  where type IN ('PACKAGE','PACKAGE BODY')
  4  and   name = upper('SP_SPECIAL');

TEXT
--------------------------------------------------------------------------------------
package sp_special
is
 procedure gg_test(choice int,rc in out sys_refcursor);
end;
package body sp_special
is
  procedure gg_test(choice int,rc in out sys_refcursor)
  is
    str varchar2(100);
  begin
    if choice = 1 then

TEXT
--------------------------------------------------------------------------------------
       str:= 'select * from emp';
    elsif choice = 2 then
       str := 'select * from dept';
    end if;

    open rc for str;
  exception
    when others then
      dbms_output.put_line(sqlerrm);
  end;
end;

22 rows selected.

Elapsed: 00:00:00.15

And, finally, those above as well as unix command to put it in a file of shell and run. You have a great version control tool. ;)

Kind regards.

LOULOU.

Tags: Database

Similar Questions

  • "Backup of database error" message blackBerry Smartphones

    Hello

    I have the version "BOLD" 4.6.0.162 and Desktop Manager version 4.7 working with XP SP3.  In the past, I got my phone from backup.  Until several weeks ago, I am unable to back up my phone and received the message "backup of databases error."  It happens at different stages during the progress of the transfer.

    I followed the suggestions posted by françoys, http://supportforums.blackberry.com/rim/board/message?board.id=Bold&message.id=3676&query.id=57237#M3676, but still no go.

    My questions are:

    1 has any who found the solution yet?

    2. can I still perform the update (System, critical applications software, etc. via Desktop Manager) without losing files data base and music and picture my contact?

    3. is the advanced option in the backup and recovery solution?

    Thank you.

    Ok.  I solved the problem.

    I have 'forward' option of backup and moved the point by point.  There were a few elements indicated errors then I "cleaned" them.  Once all items have been moved, I did regularly back up again.  It worked fine now.

    Hope this might help other who is facing a similar problem.

  • I'm unable to take backup of database MS SQL clustered, while it uses in the live production server.

    Hi all

    I use my database cluster for my running app that sits on MS SQL.

    who uses many users both on the live production by many users at a time server.

    BUT I'm unable to perform an online backup of database and offline backup, I can't take as it uses on the live production server

    If anyone can help me for you even

    Thanking you

    Concerning

    Tarun Kaushik

    Hello

    The question you posted would be better suited in the TechNet Forums. I would recommend posting your query in the Windows SQL Server Forums.

    http://social.technet.Microsoft.com/forums/en-us/category/SQLServer

  • Is make Journal required for backup of database hot and cold water?

    Hi Experts,

    Please explain--again it takes to backup of database hot and cold water?

    Thank you

    Did you backup managed user or RMAN backup. In RMAN backup, you only need logs archived. But in the cold backup managed user, you don't need the redolog also if the PB was properly arrested. Jut copy the DBF and controlfile and put it there to the target server and during the recovery of redolog files will be created automatically.

    Please note that the database must be correctly stopped before cold backup is taken.

  • Difference between the backup of database to copy and backup of database

    Hi all

    Kindly differentiate between backup database copy and backup of database.

    Thanks in advance.

    Hello

    With image backups, you have the option of two things:

    1. use these as rman backup and ask to restore them to the desired location (the same that we do in restoration of backupsets).

    2. tell the database to use these files.  This is possible by ' switch database copy. This is useful when the recovery will take a long time.  This allows you to move the users directly to the backup that you restore to the original location.  In other words, your database remains open with the users who access the copy.

    in both cases, you would:

    1 restore a controlfile

    2. the backup catalog

    RMAN > catalogue start with noprompt "/ backup location, in this case copy data files."

    3A. If you want to restore the database, so you might as same as usual:

    run

    {

    Set up until...

    newname Set...

    restore the database...

    recover the database...

    }

    ALTER database open resetlogs;

    3B. If you want to "switch" to the backup, you must run:

    switch database to copy;

    recover the database up to the...

    ALTER database open resetlogs;

    NOTE: before open resetlogs, remember that your online log file location is valid for the server on which you are restoring.  See:

    Select Member from v$ logfile;

    Thank you

    Renu

  • Can we take a backup of database pending?

    Hello

    Can we take backup of database pending when the don't use no DataGuard? If Yes, can I restore that backup of my primary database?

    Oracle 11.2.0.3 Standard

    Kind regards

    Melo.

    Rafael Melo says:

    Jhon,

    Thank you for your quick response. I just did not understand clearly what that means "not being able to depend on RMAN to follow...» ». Please, can you explain that?

    OBS.: the first time that you intend to use on the eve of the database.

    Kind regards

    Melo - Br

    Think of the RMAN Repository. How one will distinguish between files that are part of the primary and which are part of the manual standby? In a Data Guard environment, he can, because you can save all db_unique_names. You do not have this feature with an old manual.

  • Backup of database

    Hello

    I take the backup of database using Oracle SQL Developer in windows, but I want a script that will backup and can copy to a different database? Please help me

    I take the backup of database using Oracle SQL Developer in windows, but I want a script that will backup and can copy to a different database?

    Use RMAN to take the backup of the database - so you can copy the backup to a different database.

    If you "want a script" then you must write the script yourself.

    What kind of help did you expect a person to provide?

  • Backup SQL database for vcenter

    Hello

    I recently installed a version of vcenter 4.  It comes for free with SQL server 2005.  I want to backup my database.  Can I use 2008 Management Studio Express to back up the database?  Here is the link I'm talking about:

    http://www.Microsoft.com/download/en/details.aspx?ID=22985

    Thank you

    I usually install Management Studio in the same edition as the database. However, I'm pretty sure that a new Management Studio supports the old databases to 100%.

    André

  • Cold backup of database primary affect DR sync

    Hello

    We have some 10gr 2 DR of installation,

    We are planning for the cold primary database backup on every Sunday.

    It's going to affect DR sync if the primary database is not available at the time of the cold backup.

    Thank you

    No Impact

    Check
    Cold RMAN copy backup of database primary Data Guard

  • Map deployed but do not see the database package

    Hello

    I have been a card having a flat file as a source and a target table.
    But I do not see the database package. Which object this kind of card would be in the database?

    Thank you
    Sozy

    Hello

    When you move the data from the flat file to oracle table, OWB will create the type mapping SQL LOADER in which it will generate the .ctl file and submit the same to Oracle SQLLDR, which in turn make the load.
    It doesn't generate PL/SQL package.

    Thank you
    Fati

  • Backup full database, backuing's up controlfile?

    Hello
    I'm on 8174
    is that enough to cold back up the database?


    stop immediately;
    bootable media;
    Run {}
    allocate channel t1 type 'SBT_TAPE ';
    Send "NB_ORA_POLICY =...";
    full backup in format "bk_ %%t U_" (data base);
    }

    or do I
    backup current controlfile;?

    I can see here http://download-west.oracle.com/docs/cd/A87860_01/doc/server.817/a76990/rmanconc.htm#436070

    This statement "a full backup is different from a full database backup, which is a backup copy of all the data files and the current control file."
    is this means
    full backup of database, backuing's up controlfile? (I think so) and restoring it requires any archivelogs? (I think not)


    Thank you very much

    Published by: user9145417 on August 25, 2010 16:42

    Yes, you will need to take backup of the backup control file.

  • Overall reading series variable in the database package

    Hello.

    I'm having problems using interactive report. The problem lies in the view that serves as a data source in this interactive report. The view has some where clause that references previously defined package global variable. The first time the page is rendered to the query works well. It's because I've created processes of "on the load - before the header" which defines global variables in the data package. The problem is when I type just report interactive button 'Go' of the "no data found" is triggered. I nailed the problem until I know that after hitting the "Go" button the apex using a new database connection and logically it the value of database package global variables have the value NULL. My first idea was to change the Point of 'process' (so the process would fire whenever you press the "Go" button), but I could not find the corresponding point.

    So my question is if there is a way to overcome this problem.

    Best regards

    Can you try to set the context by using the attribute MEV of demand? Just put an anonymous block in there.

    Scott

  • BlackBerry 8900 smartphones save error - "Error in backup of databases - [profile] 5 of 6 retrieved entries"

    Hi ppl,

    Hope you can help.

    Get the above message when I save my 8900 then when I click OK it says successful backup.

    He said that I have to enter the Advanced section in back-up/restore and delete the offending database but how do you know who I'm supposed to eliminate, because I have not the slightest idea what [profile] 5 6 retrieved entries means.

    Backups are always successful but that pop up to getting on my nerves now.

    I know that the answer to that is probably here somewhere but I can't find it and don't really want what it is done wrong and mess up my BB or data. Had three other freeze in a short period of time, and it of a pain charging apps and set it as was each time.

    It is also a BB staff comes to connect to my home wifi and hotmail (not work) e-mail

    Any suggestions?

    Thank you

    Billy

    Is not a user BeBuzz, everything I say is a guess. But since BeBuzz seems to do something with the profiles, I assume that it is indeed somehow interfering with the ability to back up this database.

    See you soon!

  • Create backup of database existing standby database

    I have a scenario where in I need to create a database of Eve from an existing database in standby.

    Version of database is 11.2.0.2.0 on Linux. I'm looking for the RMAN duplicate 'of database' to create the new of the day before. But the copy fails with the error below.

    From backup Aug 14, 15

    using channel ORA_DISK_1

    channel ORA_DISK_1: from data file copy

    copy of the control file ensures

    RMAN-00571: ===========================================================

    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.

    RMAN-00571: ===========================================================

    RMAN-03002: failure of Db in dual at 14/08/2015 10:13:31

    RMAN-05501: abandonment of duplicate target database

    RMAN-03015: an error has occurred in the script stored memory Script

    RMAN-03009: failure of the backup command on the channel ORA_DISK_1 at 14/08/2015 10:13:31

    ORA-01671: control file is a backup, can't make a standby control file

    Anyone have an idea on this?

    This happens as a lock. If I try to apply the 11715084 patch now, it will roll back patch 11815753 and I would get the error related to start not mounted.

    Anyone has an idea on how to fix this?

    Please re-read my previous posts. Apply the last PSU for 11.2.0.2.0, on the other, you may need to upgrade.

    Take a look at this

    Bug 11815753 is fixed at 11.2.0.2.5 and bug 11715084 is fixed at 11.2.0.2.9 power supply. I suggest you apply 11.2.0.2.9 PSU that it would contain the bug fixed in the preceding the PSU as well.

    HTH

    11.2.0.2 updates set to update Patch - list patches in each power supply (Doc ID 1340011.1)

    -Shivananda

  • RMAN asking newspapers to archive old (deleted) after a backup full database

    Hello guys,.

    Am a little lost here. Is there something I'm missing. Would be great if you guys can report to help me learn.

    We are 11 GR 2. I tried to restore a database to a new machine. I have a RMAN backup with the archive logs.

    The current sequence number is 272.html but when I 'Recover databse' RMAN is asking me for sequence 3. 3 of the sequence, I guess has been deleted manually and we do not have a backup of it. I ran cross-check to clear in the RMAN Repository. He said that validation succeeded for all available logs.

    The sequence 3-119 number are missing (accidentally deleted). We have backups only from sequence number 134 - 272.When I throw summary restoring a complete database of backup it complains about missing archives. Did not really understand what is happening. Would be great if someone can help out me.

    Thank you

    It seems that one or several or all the data in the backup files are older than the SEQUENCE # 3.  Make a BACKUP of the LIST and view details of control point for each of the data files.

    Another alternative is that one or several areas of storage is / was in BACKUP STARTED at the RMAN backup mode.

    Hemant K Collette

Maybe you are looking for