What is the main thing that behind the packages?

Hello guys, first of all it is my first post in this forum. I hope I will learn a lot of thing on your part. Before you start, I would just say that I'm the greatest lover of pl/sql in the world. I like Oracle :))

In any case, let's get down to bussiness. I would like to learn the basics behind the packages. I mean, when you declare a variable or the cursor under the package. Doesn't this variable or the cursor to the end of the session. In other words, whenever when you call procedure below in one sitting, it is always up to date (current).

For example, when you declare a variable or cursor under package (public or private, regardless), I wonder who where these variables, or cursors are stored? Because, until the closed session, they are up to date. How do the packages like that work?
create or replace
package deneme_pack
is
  v_pub number := 500;
  procedure do_stuff;
end;

create or replace
package body deneme_pack 
is
  v_num number :=100;
  procedure do_stuff
  is
  begin
    v_num := v_num + 100;
    dbms_output.put_line(v_num);
  end;
end;
After the declaration, I run the code below.
set serveroutput on;
begin
  deneme_pack.v_pub := deneme_pack.v_pub + 500;
  dbms_output.put_line(deneme_pack.v_pub);
  deneme_pack.do_stuff;
end;

anonymous block completed
1000
200

anonymous block completed
1500
300

anonymous block completed
2000
400

anonymous block completed
2500
500
Thanks a lot for your help.

Published by: 944258 on 12:20 03.Tem.2012

Welcome to the forum.

Package variables are stored in the UGA.
See: http://docs.oracle.com/cd/E11882_01/server.112/e25789/memory.htm#CNCPT1238

You can find a lot of information and knowledge, if you are looking for http://www.oracle.com/pls/db112/homepage
Start reading the Guide of the Concepts as well.

Be sure to read the SQL and PL/SQL FAQ @ https://forums.oracle.com/forums/ann.jspa?annID=1535

Tags: Database

Similar Questions

  • OK, where the oil paintings went.  It is the main thing that I use on photoshop and now he's gone.  I'm really disappointed

    It is the main thing that I use on photoshop and now he's gone.  I'm really disappointed

    Kathy, if you go back to the previous version of Photoshop CC, who still has the oil paint filter.  If you have not installed, open the application manager, click on the drop down filter and choose previous versions.

  • What is the package?

    Hello

    can u describe to me what is the package?

    How to check?

    Hello

    A package is a schema object which includes subroutines, the elements and the logically related PL/SQL types. Packages have two parts: a specification and a body, although sometimes the body is not necessary. The specification (spec for short) is the interface to your applications; It declares the types, variables, constants, exceptions, cursors, and available for use of subprogrammes. The body fully defines cursors and subprograms, and so implements the specification.

    see the link below:

    http://docs.Oracle.com/CD/B10501_01/AppDev.920/a96624/09_packs.htm

  • IMAC being run on 10.6.8. but what are the upgrade options

    I have growing issues with 10.6.8 running for example music controller Sonos, Safari with Google browser compatibility, etc.

    My iMAC10.1 has Intel Core 2 Duo processor running at 3.06 GHz with 3 MB of L2 Cache and 2 * 2 GB of DDR3 memory

    So I need to upgrade but at what level and what make the difference in the system configuration required, functionality and compatibility with other software?  Where can you get the software from and how is this - I recall a quote from Apple for a free upgrade to one of the most recent operating system, but at the time was not interested.

    I use Microsoft Office 2008 and wish to continue

    I use extensively in molding and iPhoto iTunes

    I sync my Apple iCal and address book with Google

    I use Eye TV 3 (worm 3.6.8)

    I use Automator to synchronize my mobile photos in iPhoto via Dropbox

    I use (worm 6.0.6) iSyncr to sync my music Galaxy S6

    I have a few other apps, but I could live without them if necessary.

    I guess what never updated, I do, I'll have to do a system back up but how do I do that - I have a 1 TB external harddrive but formatted it my laptop, so I guess I should change it, whether I use it or is it possible this partition so I can use it with windows and MAC OS.  Spare my MAC HDD built in 1 TB and currently using 411 GB

    Advice on options to upgrade and save very welcome process.

    It's a long question with a long answer, so here are the main things that you should consider before the update...

    1. all power PC based applications is more run in OS X 10.7 Lion or later version. The most often affected app (launching Lion) was Quicken. To find out exactly what apps do not work anymore,  > about this Mac > system information. On the software tab, click Applications. This should show what 'type' of applications you have. Whatever it is based on Intel will work while Power PC don't either not working or require an update, as is the case with Microsoft Office.

    2. you can upgrade your RAM. I think that your computer comes with two 2 GB sticks, for a total of 4 GB. It is usually more than enough because each OS X updated as the Lion needs only 2 GB. Remember that RAM can age just like car tires and sometimes it is better to replace the RAM you have. You can always install a more recent OS and see how it works and then decide to install RAM later. You can use sites such as RAM Crucial or you can buy directly from Apple. Crucial is much cheaper and delivered their RAM quickly. They guarantee also the RAM will work and provide a computer "scan", you can download and it will tell you what RAM to buy. I have used this site for 3 different Apple computers and don't have any problems so far. A computer is a MacBook in 2006 that still works!

    3. do your research. Contact the manufacturer of the software that you are concerned about. Office 2009 should work fine as long as it is installed on the computer before update you. Once the update of the BONE occurs, you will have a relatively large update for all Microsoft Office applications to make them compatible with the new operating system software. The Adobe Suite (Photoshop, Bridge, etc.) has had some problems in the past, but I think it works fine now.

    All the built in Apple apps update automatically and ask you to "update your library." This may take some time, but is a matter of time. Automator and Dropbox still work as well, but drop-down list will need updates. I would check the Web site of the manufacturer for your other software as I am not familiar with all of your programs.

    Note that iPhoto turns Photos if you update to Yosemite 10.10.3. This is a brand new application and some people don't like him because he is different than iPhoto. Personally, I think it has the same features, it's just different. Also iDVD can no longer be installed on a computer that is updated to OS X Lion. If iDVD is installed before the update, it will continue to work as expected

    4 Time Machine backup. Yes, you want to back up, and Yes, you can use your drive current external hard to to do. But there are a few hiccups that you need to treat it first. In order to use your external hard drive for Mac and Windows, you will need to format the external hard drive to FAT32 using disk utility. THIS ERASES ALL CONTENT ON THE EXTERNAL DRIVE. So, if you want to format the drive, you'll want to play everything on the hard drive first.

    If you want to know formatting the external drive for use with Time Machine, see this articleand follow the steps for a volume of start fail.

    Note the types of format: Mac OS extended (journaled) should be used with Macs isn't FAT 32 for Mac and PC and MSDOS FAT is for PC only.

    To start initial Time Machine backup, see this article.

    5. Finally, your computer has a 1 TB hard drive and your external drive is 1 TB. In theory, you want to use a disk backup that is twice the size of your hard drive, or at least twice the size of current data on your computer (in your Go 411 cases). Use an external 1 TB drive for backup of 411 GB of data should be good for awhile, but eventually, it will fill the external drive. If you partition the external to work with Windows and Mac OS X, it fills up even faster since there will be less space dedicated to the Mac. Honestly, I would erase the external drive set up using Mac OS extended (journaled) and use it exclusively for Mac backups and then buy a second external for use between computers. It is better to have a single external drive for Time Machine, and it is preferable to use the Mac on FAT 32 format when using Time Machine.

    I hope this helps. You have many options on your plate. Ultimately the decision to upgrade is yours. I've always updated because I like having the latest and greatest and I have not had too many snags, but you will get a different answer from different people.

    Good luck

  • What are the relationships between the logging and IKM?

    What is the best method to use in the following scenario:
    I have about 20 tables with the large amount of data sources.
    I need to create interfaces that join the source tables in target tables.
    The tables are inserted every few seconds with about hundreds of thousands lines.
    There may be a gap of a few seconds between the insertion of different tables that could be attached.
    The source and target tables are on the same Oracle instance and schema.
    I want to understand the role of: 'Logging CDC' and "IKM - incremental" and
    How can I use it in my script?
    In general, what are the relationships between "Logging" and 'IKM '?
    Use both? Or maybe it's better deelte and insert the target tables?

    I want to understand what is the role of "Logging CDC"?
    Can 'IKM - incremental' work without "logging"?
    Must 'Logging' have PK on the tables?
    What should I do if I can't say PK (there may be several identical lines)?

    Yael thanks in advance

    user604062 wrote:
    Hello
    Thanks for your quick response!

    No probs - its still fresh in memory I did a major project on this topic last year (400 tables, millions of lines per day (inserts, updates, deletes), sup-5 minute latency). The problem is it isn't that well written on the web, that you have read the blog of the example I linked to in my first answer? See also here: http://odiexperts.com/changed-data-capture-cdc/

    Always on logging:
    My source table is inserted all the time.
    The interface to join the source table in the target table.

    In ODI, the correct term would be your source table "fits" in the table target, unless you mean literally that want to join the the source with the taget table table? My question if you want to do with the result of the join?

    What exactly the "journaling" CDC updates?
    It updates the model of ODI? interfaces? The source of data in the model of ODI? The target table?

    Logging CDC configures and deploys the data capture mechanism (Triggers or log based capture, IE Logminer/streams/Goldengate) - it is not updated the model as such, she pointed out the metadata of the model of ODI repositoty as a CDC data store, allowing you, the developer say ODI to use log data if you wish (reported in the interface) There is no change in the target table, you get an indicator of metadata (IND_UPD) against a line during the integration (in C$ and I have tables$) that tells you if its insertion (I) and update (U) or deletion (D). It had ' lines allow you to synchronize the deletions, but yoy say its inserts only then you probably used use this option. "
    So the only changes are the source table to your interface, another diary data (if you use logging) or the table of the actual source (if not using the logging).

    This is the main thing that I don't understand!

    I hope I made a little clearer.

    Try the following as a quick test:

    Reverse a source table an engineer and the target (at least) table.
    Import the update incremental LKM and IKM.
    Import of the JKM you want to use.

    Create an interface between the source and the target without any deployed JKM.
    Configure the options of JKM on the model, the "Start log" to start the process of capture - this is quite a complex stage and a lot of things to understand what is happening in the source database, better to check code ODI sends to the database and to review the documentation of Oracle database for a description of what his weight (instantiate Tables (, sets of creating change, creation of subscribers etc. establishment of newspaper groups, creating views Journalising etc.) -you will need to consult your Source DBA database initially as ODI wants to make many changes to the source DB (in mode Archivelog process max, parallelism, size, Java etc.)

    Now, edit your interface and mark the table source for use "Journalized data bank.
    Restart your interface
    Compare the difference in the generated code in the journal of the operator, see the differences of the operator.

    >

    Thank you, Yael

  • During the closure after a browsing session I find several windows behind the window of the main browser I have not opened and they must be closed individually. What is the cause and how can I stop it?

    During the closure after a browsing session I find several windows behind the window of the main browser I have not opened and they must be closed individually. What is the cause and how can I stop it? Edit

    These windows display ads? They could be 'pop-under' designed to show when you are finished with your main window. Orbitz has these, for example. Irritating. I'm not sure of the best solution, i.e., advertising blocker blocker vs.

    If they are not ads, can you think anyway that they are related to the sites you visit?

    In addition, to close a tab (or window, if there is only one tab), you can press Ctrl + w. could speed up the process of their release until you find a real solution.

  • What are the main characteristics that vCAC does not activate the standard license?

    I am trying to understand what standard features vCAC key does not?

    The vCAC edition comparison page is not very detailed.

    I would like to be able to:

    • Create the endpoint of vSphere
    • Create a VM (no customization application) plan
    • Create a virtual machine approval Workflow
    • Have portals for different groups manage their virtual machines

    VCAC Standard edition will allow me to do?

    Thank you

    -MattG

    Hey MattG,.

    You will be able to all the things that you said except the approval workflow. Approval is something that comes by default with vCAC but its not available with standard edition. You will be able to add infrastructure, create a reserve on it, creating plans and machines.

    vCAC has a self-service portal that comes along with other features, so you can reach the last point.

  • If known, what are the main components, or variables that make unnecessary Netflix streaming when Silverlight is to work on other Web sites?

    I uninstalled it, reinstalled, reset all default values, bought new equipment, contacted Netflix, Microsoft, sampled through Silverlight video other sites sampled through my laptop and pc turn to my roommate, but to enjoy.

    What are the other options to get Silverlight to work on my Tower, despite the fact that the application works well on it and for a long time before the current state?

    Hello

    Check in the SilverLight Forums:

    SilverLight - Forums
    http://forums.Silverlight.NET/

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • What is the meaning of the OPA session tables in Siebel for OPA? That is to say why they were created when they should be used? and what was the first thought behind the creation of tables of session?

    Hi all

    I wanted to know best practices regarding the use of the tables of session OPA? that is, what was the initial logic of creating tables of session? where we should use them and why? also can you please argue for and against about two approaches mentioned below

    Method 1: Save and reterieve OPA session data tables using session ID and case ID?

    Approach 2: Save data in Siebel database tables and just use reterieve case Id Siebel data and save the back.

    Thanks for your replies.

    Session tables are there to allow easy storage of the results of an interview of the OPA. It can be used to extract data from an interview, but probably more useful as an archive of past interviews. Is it possible to load a previous interview in the determinations of the Web from this table.

    1. This can be very useful to resume a partially completed interview.

    2. it can be used as verification of de facto mechanism to see what has been entered in an interview.

    In general I prefer to approach 2 where there are intercepted the incoming data to an interview in a before handler registration and then save the data you need from the interview in the location that you must save it.

  • Apple Extreme, Time Capsule and Express on the same system, what is the best way to set it up so that all devices smoothly from one end of the House to another?

    Apple Extreme, Time Capsule and Express on the same system, what is the best way to set it up so that all devices smoothly from one end of the House to another?

    I'm going to assume that you plan to have wireless devices.

    Let's say that the Capsule is your "main" router  If this is the case, then it must be located in the House, so that the distance between the time Capsule is the same for the outside walls of the House.

    Then, on the 'left' side of the House, looking for an airport to midway between the Capsule and time of the outer wall of the House. Do the same thing the 'right' side of the House.

    In other words, each of the two airports that "extend" the wireless signal are located at equal distance from the Capsule of time... but they are in opposite ends of the House.

    If you intend to interconnect all the airports and Time Capsule using a permanent, Ethernet wired... which by far is the 'best' way to put in place a network in terms of performance and reliability... then you can locate one of the devices anywhere you want.

  • What is the best way to make a second copy of a series of photos on a hard drive after that I imported and made changes?

    What is the best way to replace the second copies of photos created during import with revised versions? Export, seems to be an option, but is there a method named? I use Lightroom CC/6

    I don't think you understand the concept of Lightroom. The settings are stored in the catalog. They are not applied to the images. The catalog is the key. If the images in the main location are damaged or lost, then you can copy the backup images at that location and any adjustments that have been made will be implemented. The main thing you want to be sure to do is have a backup of your catalog, as well as a backup of your images. You can export copies of your images as JPEG, PSD or TIF images, and these copies will have all the adjustments included.

  • What is the relationship between the main timeline and timelines of symbol in Adobe Flash Professional CC?

    I am new to Adobe flash and tried to create an E-card for a class. My teacher said that it is better just to have a keyframe for each layer in the main timeline and do all the clips of animation and film on the deadlines of each symbol. I'm having a hard time to understand how it works. To illustrate my confusion, let's start with an example.  I have a kite I want to start flying to frame 20. The kite is a symbol, so I create movement to 20 image interpolation in chronology of the wing. 20 on the symbol Timeline frame occurs at the same time as frame 20 of the MAIN scenario, or are they completely separate instances of time?

    Part of my mission, is should I use code snippets to add an element of interactivity to the Ecard. My confusion about the timeline affects my ability to do so. My teacher said that you need a stop on the first keyframe code to make sure that things will not start before you click the play button. Can I put the stop action on the main timeline or in the timeline of each symbol, or both?  Let's say I want to create a button that makes the kite flies when I click it. Where to play action 'go to and play', in the Assembly of the wing?

    I would greatly appreciate any help from the community. I'm the kind of person who needs to understand how things work. I searched for days, watch videos and read articles, but I still need to find a resource that effectively dissolved my confusion on this subject. So if anyone knows of any tutorials that explain how the main timeline and symbol timelines coincide, please share them with me. Thank you very much for your time.

    (P.S. are CC Animate Adobe and Adobe Flash Professional CC the same?)

    Thank you both for responding. Yes, your answers were useful, but a bit Advanced. I hope that you don't mind me asking a few follow-up questions.

    For Pete47-

    So I put my stop() in the main timeline. How the actionscript in the main timeline code works on the chronology of the wing if the two are separate?  Why not put the ActionScript on chronology of the wing? Clearly, there must be an interaction between the main timeline and symbols, right?  When you say "you can drag the symbol on the main timeline and it will run when you start", what do you mean by that? Like GETTING started, in the main timeline or in the scenario of the symbol? As you can see I am very confused by there!

    For Colin.

    I thought that Pete said you want to only have a keyframe in the main timeline. Then, when you said... "you can do it with an interpolation of the main timeline... from the beginning to the final position," why would you animate the motion on the main timeline? Why not in the chronology of the wing, can create another symbol of the tail in this period?

    And if the schedules of chronology and main symbol are separated, how SYNCHRONIZE you together different symbols to their movement to work together? And why should it be like that anyway?

    I am new to the community here, the last thing I want to say because you two sounds very knowledgeable on the Flash. How did you get your start? Did you start by watching the tutorials, read the manual, or something else?

    Once more, you have my abundant thanks for taking the time to help.

  • What are the limits it in code that is running in a SIO

    Hello

    I wonder if any of you good people out there can tell me if there are limits on what the code can be executed (or accessed memory) by a method of object of shareable Interface (SIO) server-side?

    I have a server applet that implements a SIO which includes a single method - IncNumber(). It simply increments a field on a single byte which is one of the many areas in an array of nonvolatile memory. BUT before the number can be incremented IncNumber() must verify a seal THAT protects the entire table. If the seal is OK then the field can be incremented and a new seal is created the entire table. The server cmdlet has an APDU that calls IncNumber and I can make these units APDU to my heart's content and see incrementing number always protected by properly trained seals. So when running the applet Server everything works fine.

    The problem comes when I create a Client applet which tries to call the Principal agent. IncNumber() method, because it always returns an error 6F00. I found that the problem comes when the applet Server runs the following command (in trying to check the certificate FOR):

    cipherDES.init (keyTest [0], Cipher.MODE_ENCRYPT);

    cipherDES is declared in a non-volatile memory and is initialized in the constructor of the server. keyTest is an array of possible keys (also resident in non-volatile memory), but for the moment only [0] is already used. The server must go through an initialization phase which initializes keyTest [0] so I'm fairly certain that all objects exist. Don't forget that I can issue an APDU to the server cmdlet that runs this code yourself without problem.

    My understanding of the functioning of the WIS system is that when the customer calls that the SIO customer method gets hunted in memory to be replaced by the server, as if the server had been selected himself, so I don't see why it will fail on this line of code. This interpretation is correct?

    So my QUESTION is this. He knows that this will not work? If so, can you please explain why and give me ideas on how I could get around it (if possible). If you think that this should can work you give me ideas why it isn't (or things that I could try to find out). Would it be a limitation on the card that I use (AFAIK, the map I use this on is a map of NXP JCop 2.4.1 running Javacard 2.2.2 and global platform 2.1.1)?

    Any ideas gratefully will welcome.

    Hello

    The problem is with the creation of the object of encryption. You must define externalAccess to true in the call to getInstance(). The javadoc says:

    externalAccess true indicates that the instance will be shared between applet multiple instances and that the instance of the encryption algorithm is also available (via a shared interface) when the owner of the instance of the encryption algorithm is not the currently selected applet. If true the implementation doesn't have to allocate internal data CLEAR_ON_DESELECT transitional space.

    In addition, when the main agent is called, the caller is not deleted from the memory, there is a change of context internally in the JCRE. The SIO server may not necessarily be currently selected. It is covered in a bit more detail in the JCRE plug.

    Shane

  • What is the latest version of Safari for OX 10.8.5 I Safari 6.0.5 that it work well

    What is the latest version of Safari for OX 10.8.5 I Safari 6.0.5 and it does not work well, but I DO NOT update my OS for good reasons. When updated with the latest system all going nuts with the software. Apple always wants us to be updated, but it messes things and then we have all the new software. Is Safari 6.0.5 later that I can run with my 10.8.5 OX? My Firefox works very well and I prefer it to Google Chrome, but what other browsers could I use better than the Safai I if I can't get a later version of Safari? Thank YOU if you reply

    Safari 6.2.8. Open the Mac App Store, click the updates tab and install Safari or security updates that appear.

    (143364)

  • How do I do to get the slide to set up to go to the right and continue? I was up half the night and is not wrong. The only thing that I just did is plugged into the wall outlet and now I'm right back where I had problems. Why keep this product?

    How do I do to get the slide to set up to go to the right and continue? I was up half the night and is not wrong. The only thing that I just did is plugged into the wall outlet and now I'm right back where I had problems. Why keep this product?

    What do you exactly mean by "get the slide to set up go to the right and continue"? Can you give us a little more context and detail?

Maybe you are looking for