Packages  in  confusion

Hello Experts/ Gurus
I am planning to finish  PL/SQL concept  very soon.  Now i am learning PL/SQL packages.
i dont understand clearly folkowing term.
Any subprogram not in the package specification but coded in the package body is called a private object.
         what i understood ,  package body having  logical code  for any one procedure  but  it's not mentioned in  "package specification"  area
         Can anyone provide  small example for  above comment ?
                I tried as much as possible , no code found like  above mentioned.
Thanks  in advance ..

@ FRANKLUSH
SCOTT>CREATE OR REPLACE PACKAGE  test_pk
  2  AS
  3  FUNCTION hello
  4  RETURN   VARCHAR2;
  5  END  test_pk;
  6  /
Package created.
SCOTT>CREATE OR REPLACE PACKAGE BODY  test_pk
  2  AS
  3  FUNCTION  who
  4  RETURN    VARCHAR2
  5  IS
  6  BEGIN
  7  RETURN  'World';
  8  END  who;
  9  FUNCTION  hello
10  RETURN    VARCHAR2
11  IS
12  BEGIN
13  RETURN  'Hello, ' || who
14  || '!';
15  END  hello;
16  END  test_pk;
17  /
Package body created.
SCOTT>sELECT test_pk.hello   AS test_pk_hello FROM dual;
TEST_PK_HELLO
Hello, World!
SCOTT>SELECT test_pk.who     AS test_pk_who from dual;
SELECT test_pk.who     AS test_pk_who from dual
* ERROR at line 1:
ORA-00904: "TEST_PK"."WHO": invalid identifier
Thanks !  This works well !

Similar Messages

  • Package naming confusion

    I created a subfolder in my source folder called "library"
    where I want to put a bunch of package files, each file named the
    same as the package it contains. However, Flex keeps insisting that
    the file be named the same as the folder containing it, or it
    complains...so this means I can have only ONE file per folder,
    named the same as the folder. For example, the one file in folder
    "library" must be called "library". I have to import
    "library.library" or "package2.package2" etc...
    I must be missing something obvious. Can someone explain
    this?

    "ohseegee" <[email protected]> wrote in
    message
    news:god0lr$p5e$[email protected]..
    >I created a subfolder in my source folder called
    "library" where I want to
    >put
    > a bunch of package files, each file named the same as
    the package it
    > contains.
    > However, Flex keeps insisting that the file be named the
    same as the
    > folder
    > containing it, or it complains...so this means I can
    have only ONE file
    > per
    > folder, named the same as the folder. For example, the
    one file in folder
    > "library" must be called "library". I have to import
    "library.library" or
    > "package2.package2" etc...
    >
    > I must be missing something obvious. Can someone explain
    this?
    http://flexdiary.blogspot.com/2007/08/as3-basics.html

  • What version of NWDS to use / NW 7.3 Support Package Version confusion

    Hi all,
    what is the recomendation for the NWDS version to use. Shall it be equal to the version of the server (in our case it is 7.3SP5) or does the NWDS have its own versioning and one should use always the highest available- at the moment this would be SP7: https://nwds.sap.com/swdc/downloads/updates/netweaver/nwds/nw/730/doc/auto_com.sap.netweaver.developerstudio.distribution.complete.extsoa_versions.html.
    The current information of the SP versions for NW 7.3 makes it more confusing. The SP-stack schedule says the next SP is No. 7 and will be available in April (the fact that there is already a SP7 NWDS raises the first question)
    And in the maintenance guide section of SMP there is a SPS-Guide NW 7.3 SP6:
    https://websmp109.sap-ag.de/~sapidb/011000358700001406382011E.PDF
    Can somebody shed some light what NWDS version to use and what is the next SP version for NW 7.3?
    Thanks
    Chris

    Hi,
    The SP Stack 05 will be followed by SP Stack 07. It is just renumbered from SP Stack 06 and follows the original
    planning,  It is not recommended to implement SP06 without applying SP Stack 07. And use of NWDS sp07 with
    NW 7.3 sp07.is recommended.
    Regards,
    Vipin

  • Sender "Mail" adapter - CSV file attachment

    Hi there
    I'm looking for some help in configuring a sender mail adapter that receives ".csv" files. I did read some blogs that mention using the "PayloadSwapBean" module to read the mail attachment instead of the mail content. My problem is to now convert the ".csv" file into a message. Is there a module that I can use ( is it the "MessageTransfomBean" ) and how. Any help would be appreciated.
    Thanks
    Salil

    Hi Salil,
    If you want to send a mail with a body and attachments, the message sender HAS to provide an XI message with attachments. I doubt a CSV file does justice.
    As Renjith said you need to convert CSV to XmL.
    A short description about the Standard Modules:
    MessageTransformationBean is a standard module used to apply the XSLT mapping to the adapter module by using <i>Transform.class</i> ( This xslt mapping is done to create a mail package, Dont confuse with the actual mapping in your case this is NOT for converting csv to xml).
    Also this module can be used to change the name and type of payloads by using <i>Transform.contentType</i>, <i>Transform.contentDisposition</i>, <i>Transform.contentDescription</i>.
    PayloadSwapbean is a standard module for replacing payloads with other payloads (SWAP)
    If you want to give each attachment a certain name use Parameters, <i>swap.keyname</i> for name of the payload and <i>swap.keyvalue</i>.
    I Hope the use of standard modules is understood.

  • HELP I keep getting an error message on my IPHONE 4 that says Unable to connect to Cellular Data. How do I fix this?

    HELP I keep getting an error message on my IPHONE 4 that says Unable to connect to Cellular Data and I have tried to reset network settings and factory reset but nothing helping so far. Took it to Verizon and they couldn't fix it either, said it's a problem with the phone itself and to contact Apple. My warranty is expired so Apple isn't much help either. How do I fix this? I have a data package so confused and I have had my phone for over a year but never had this issue before.

    I am getting this message also.... mine cant update too...

  • Excel file processing in jsp

    Hello friends
    I want to read Excel files jsp(or java).I used sql driver,but it does'nt reads the file properly.I want to read file in jsp.I went thr many sites and found many ways like apache poi,JExcel api etc
    I found JExcel api is not free.I am getting errors with poi.I found no proper documentation on it.On apache site there are many versions to download poi packages.I confused about which to download.
    If any one has used poi successfully,please let me know

    related to POI
    **POI**
    Site
    http://poi.apache.org/Api
    http://poi.apache.org/apidocs/index.htmlExamples
    http://www.google.co.in/search?hl=en&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&hs=7WV&q=POI+examples&btnG=Search&meta=

  • Sony Surround Sound Query

    Hello People,
    I've read a few posts already submitted on here, but cannot fathom out the answer, so I'll reinvent the wheel with my question now...
    I have a Sony Surround sound 5.1 system with floor speakers, base tube and under tv speaker (not sure that's totally relevent). At the rear of the surround sound unit there are the audio cables, white, yellow and red. These were plugged into the respective three ports in the Sony DVd Recorder which I also have.
    So.... I've unplugged the white and red cables from the dvd recorder and plugged into the back of the BTV Box. I have surround sound, but I cannot get a digital picture.
    It all seems a little clunky and cumbersome, kind of wished I'd kept my original set up of the Sony system as it was easy, although I wanted the Vision packages.
    Confused??? I am!!!
    Ta for your help

    Guilobo is correct, the yellow is the video out. You need a scart to composite audio phono cable or adaptor such as these examples:
    http://goo.gl/8c6YE
    http://goo.gl/RtTNW
    I've seen them in pound shops and they come with XBoxes etc.

  • Setting up developer's environment

    Hi everyone.
    Sorry if I sound slightly annoyed (it took me an hour to get to this point of posting this question -- after looking for answers, not finding any, then trying to register, activating my account, and then the forums telling me my account isn't active. Took awhile to figure out I had to log out and log back in after the forums automatically logged me after activating. Really doesn't make any sense).
    OKAY
    I need direction.
    I have a few questions:
    - How do I setup my developer's environment for java. I've spent all of yesterday evening trying and failing in every possible way. I've downloaded and installed probably 4 different things and none of which is what I need. Let me expand. I was told to get JDK 1.5.0. So I searched for it on sun and found Java SE 5 and Java EE 5 (both of which I downloaded and installed). Both of which tell me I can't compile - I/O Error: Cannot run program "javac". I've double triple and quadruple checked my environment paths ensuring that - C:\sun\java\jdk\bin is in there. I've loaded up cmd, and javac works off the bat. Still can't compile, same error. Then downloaded Java SE 6, Java SE 6, of which had the same problem. Why isn't any of this working? I just want jdk 1.5.0 and nothing else. Perhaps I should download and install Java ME? or is that bad? I don't have any previous versions of the jdk, (except for ones built into the IDE), so I don't need updates. Also, I'm aware that EE is for servlets, but what other options do I have when SE did not work?
    Essentially: How do I download and install jdk 1.5.0 and only jdk 1.5.0?
    - Why isn't there an official resource on information regarding the different types of developer sdk resources and what is needed? Would be nice to also have information regarding what EE, SE and ME is meant for what apps. I'm probably not looking at the right place, but when I click details, I kind of expect to get details on the package and what it comes with. Installing is nothing short of surprises on what I'm getting
    Essentially: Where do I find official information about Java SDKs? Why is all the information I need in the forums under thousands of posts?
    - Is it possible to customize installs? Select options on what I want, and not installed as a giant ugly bundle?
    Essentially: Probably no, but would be nice for install customizations.
    - Where can I provide feedback or suggestions to Sun? I'd like to let them know to provide human readable titles to the software descriptions. Their download packages are confusing. i.e.:
    Java Development Kit 5.0 for Web Applications
    JDK 5.0 with Java EE
    This distribution of the Java SE Development Kit (JDK) is included in the Java EE 5 SDK, which contains the GlassFish application server and provides web services, component-model, management, and communications APIs that make it the industry standard for implementing enterprise-class service-oriented architecture (SOA) and Web 2.0 applications.
    Please just reply with links directing me to resources. I'd rather not have ppl reply with flames, obvious answers, and the such.
    I almost give up. Very likely this thread will be banned or trashed for duplicate posts somewhere in the last 5 years.
    Kenneth

    kennethkl wrote:
    - How do I setup my developer's environment for java. I've spent all of yesterday evening trying and failing in every possible way. I've downloaded and installed probably 4 different things and none of which is what I need. Let me expand. I was told to get JDK 1.5.0. So I searched for it on sun and found Java SE 5 and Java EE 5 (both of which I downloaded and installed). Both of which tell me I can't compile - I/O Error: Cannot run program "javac". I've double triple and quadruple checked my environment paths ensuring that - C:\sun\java\jdk\bin is in there. I've loaded up cmd, and javac works off the bat. Still can't compile, same error. Then downloaded Java SE 6, Java SE 6, of which had the same problem. Why isn't any of this working? I just want jdk 1.5.0 and nothing else. Perhaps I should download and install Java ME? or is that bad? I don't have any previous versions of the jdk, (except for ones built into the IDE), so I don't need updates. Also, I'm aware that EE is for servlets, but what other options do I have when SE did not work?
    Essentially: How do I download and install jdk 1.5.0 and only jdk 1.5.0?Knowing your IDE is an important piece of information. For example, when you say "can't compile" we default to assuming that means you can't compile from the command line. But you later say Javac works fine from the command line. So where is compilation failing? In your IDE? what IDE?
    You don't need Java EE or Java ME (they're for enterprise and mobile developers respectively; if and when you need it, you'll know). You also probably want the JDK 6, not JDK 5 (might as well learn on the latest and greatest; it's backwards compatible anyway). The place you should have gotten it from is: [http://java.sun.com/javase/downloads/index.jsp]. Look for JDK 6 Update 17 (not with EE, not with ME, and definitely not "JRE 6 Update 17").
    - Why isn't there an official resource on information regarding the different types of developer sdk resources and what is needed? Would be nice to also have information regarding what EE, SE and ME is meant for what apps. I'm probably not looking at the right place, but when I click details, I kind of expect to get details on the package and what it comes with. Installing is nothing short of surprises on what I'm getting
    Essentially: Where do I find official information about Java SDKs? Why is all the information I need in the forums under thousands of posts?I would start here: [http://java.sun.com/docs/books/tutorial/getStarted/index.html]. That will take you through how to set up your environment, up to giving you tutorials about the language and platform itself.
    Also, it will teach you how to develop without an IDE to start with. That's an important first step to make, and you've bypassed it.
    - Where can I provide feedback or suggestions to Sun? I'd like to let them know to provide human readable titles to the software descriptions. Their download packages are confusing. i.e.:
    Java Development Kit 5.0 for Web Applications
    JDK 5.0 with Java EE
    This distribution of the Java SE Development Kit (JDK) is included in the Java EE 5 SDK, which contains the GlassFish application server and provides web services, component-model, management, and communications APIs that make it the industry standard for implementing enterprise-class service-oriented architecture (SOA) and Web 2.0 applications.Well, clicking on Learn More would give you information more at your level. Giving completely indepth and plain-english information for somebody brand-new to Java in that little description area would just make it more difficult for intermediate or senior developers (who know these terms already) to quickly find what they're looking for. Some documentation is bound to assume something about the level of developer. That's why you should stick to the Getting Started tutorial; it's written knowing you know nothing :-).
    I almost give up. Very likely this thread will be banned or trashed for duplicate posts somewhere in the last 5 years.No, we'll get you sorted out.

  • No SIM message and Cellular Data grayed and unresponsive, what is going on?   My cellular data quit working as I sat on the Mexican border.  Took to ATT store and they said this is common problem near the border.  They fixed, but it failed in Mexico.

    I purchased a domestic and international cellular package from ATT.  Domestic worked for two days as I drove toward Mexico.  As I sat two miles from border I tried to us cellular data again, but got No SIM message and cellular data switch greyed,.  I called ATT and they told me to move away from border and try again.  Didn't work.  Called ATT back and they said go to ATT store in Sierra Vista, AZ.  Lady there fixed and told me, "You are good to go."  But she cautioned not to use until well into Mexico as sometimes domestic and international packages get confused near the border.  I waited until I was about a hundred miles below the border and tried.  Same message and same greying of cellular.  Took to ATT when I returned.  They changed SIM card and said problem is with Apple.  Took to Apple and they say problem is with ATT.  The fact that the ATT rep in Sierra Vista fixed makes me think it  is software.  I see that similar problems are common but solutions are vague and varied.  Help please.

    Has any had you try a reset yet? Sometimes the WiFi &amp; Cellular anntennas get wacky.
    Hold Sleep/Wak &amp; Home buttons until the screen goes dark and you see the Apple logo

  • Keylogger ? Spyware detection before a Wipe / Re-Install

    Hi
    I read this conversation string - I believe that I have a keylogger or some sort of spyware installed on my mac, please help! - which is a useful read.
    To initiate my own one I have similar concerns and have been told to do a system wipe / re-install. Before going to such lengths (and having run Kapsersky,Little Snitch) I was looking to get some expert community advice. The mac was used (unauthorised) by a 3rd party.
    Linc provided some great feedback to the string above. If I can ask for similar advice?
    Thank you,

    If you don't trust the third-party that had access and they're not known to be particularly hostile to you and not likely to have attempted to compromise your security, and yet you're asking this and are obviously still concerned, then it's safest to assume at least a software compromise.   That means you can't trust anything on this disk.  Make a full backup of the disk to external storage, then — preferably using a separate OS X installation, freshly downloaded from Apple, and generated onto a USB key disk using another and trusted Mac — wipe your untrusted disk, repartition and reinstall OS X and your applications from known-good backups or from known-good distributions, roll in everything from your most current backup, and select only data files and not executables from the existing disk contents.  This is the typical case.
    If you really don't trust the third-party that had access, and if the third-party may have the inclination to or does have the skills or the budget to perform a more advanced security attack — and I am not kidding here — then scrap the Mac, and get another one.  You will not be able to find some of the more advanced malware that's around.  If you are the target of an attacker with sufficient access and sufficient resources, then you can't trust your software or your hardware and you need to start over.  Malware can be loaded into the firmware of the system or the keyboard, or into USB cables, or all sorts of nasty and hard-to-find places; into components and mechanisms that we all would prefer to be able to "just trust", unfortunately.  This is a much less common case, and/or you're a higher-profile target.
    More than a little of the antivirus and anti-malware tools and much of that industry in general feed on the insecurity that obviously arises here, and various of these packages to confusion and clutter and sometimes to system instability and crashes, and not necessarily to actual detection of malware.   Even some of the anti-virus folks have indicated that the common signature-based tools just don't work in the current climate.  This is before discussions involving the more capable, or well-financed, and more serious attackers.
    If you're a potential target of more advanced attackers — if you've somehow made some rich and powerful people unhappy, or if you're involved with the sorts of things that are better off not discussed in general, much less around here — then you will really want and need some more advanced help around establishing and maintaining operational security than is easily provided here.

  • IWork 06

    I purchased the iWork program at an Apple store. When installing, the screen displays a "BUY NOW" button but says that if you have a serial # to enter it in the space provided. I do so but the continue button stays dark and only the Buy button is active which takes one into a buy program. Yes I did register the program. What am I doing wrong to activate this program?

    Welcome to Apple Discussions!
    iWork may have been previously installed as part of a demo package thus confusing the installer of the full retail edition. You may need to remove the demo first, and then install iWork. If you have trouble removing the Demo, someone on the iWork forum may be able to help.

  • [SOLVED] Confused about development packages

    To build an embedded linux image using minifs utility, I need to install some development packages. The packages listed in the tutorial are named for Debian based distros, with the "-dev" suffix. Some of the listed packages are: libz-dev, libelf-dev, libelfg0-dev, libncurses-dev, etc.
    I can't find these packages, and I'm a bit confused. I have read that these packages in Arch Linux have different suffixes denpending on the origin (-cvs, -git, etc.), but I can't find any packages with that suffixes. For example for ncurses:
    $ pacman -Ss ncurses
    core/ncurses 5.9-3 [instalado]
    System V Release 4.0 curses emulation library
    extra/cmus 2.4.3-1
    A very feature-rich ncurses-based music player
    extra/finch 2.10.1-1
    A ncurses-based messaging client
    extra/moc 20110528-5
    An ncurses console audio player with support for the mp3, ogg, and wave
    formats
    extra/naim 0.11.8.3.2-2
    An ncurses AOL Instant Messenger and IRC client.
    extra/ncmpc 0.20-1
    A ncurses (command line) interface for MPD
    community/echat 0.04beta1-3
    vypress compatible ncurses chat (can work without server)
    community/ekg2 0.3.1-2
    ncurses based Jabber, Gadu-Gadu, Tlen and IRC client
    community/ncdu 1.8-1
    Disk usage analyzer with an ncurses interface
    community/rtorrent 0.8.9-2
    Ncurses BitTorrent client based on libTorrent
    community/ruby-ncurses 1.3.1-3
    Module for interactive text console applications (ncurses)
    community/sniffit 0.3.7.beta-11
    very good packet sniffer for unix with ncurses interactive mode.
    community/vifm 0.7.2-1
    Ncurses based file manager with vi like keybindings
    community/yacpi 3.0.1-3
    ncurses-based acpi monitor.
    No ncurses-cvs, ncurses-git, ncurses-svn or the like is found. How can I find development packages?
    Last edited by doragasu (2012-03-09 22:38:03)

    doragasu wrote:So in Arch, packages include not only binaries + resources, they also include header files? If I install for example ncurses, also header files for ncurses get installed?
    headers, pkg-config, everything in one package, that is required for a compilation. we keep stuff simple
    Last edited by wonder (2012-03-09 22:37:46)

  • I uploaded the upgrade to Photoshop Elements 12 today.  I got a "dispatching error" for Photoshop Elements, but was able to download Premier elements!  I did not order Premier Elements, so I'm confused (unless this was a package that I did not know about)

    I uploaded the upgrade to Photoshop Elements 12 today.  I got a "dispatching error" for Photoshop Elements, but was able to download Premier elements!  I did not order Premier Elements, so I'm confused (unless this was a package that I did not know about).  I really want the Photoshop Elements upgrade - not Premier Elements.  I do hope I did not pay for both - I only want one.  Help!

    Maryrhire910 I am sorry that you are facing difficulty downloading and installing Photoshop Elements 12.  Are you downloading the installation files from Download Photoshop Elements products | 13, 12, 11, 10?  If so what specific error are you receiving?

  • Pan Newsreader AUR Packages Confusion...

    Hi,
    not sure of this is the right group for this, but i just built a new Arch box and was installing my standard newsreader, Pan (v.0135) from files in the AUR, a process I've completed successfully a couple of times on other machines.  Odd thing was, the version I installed kept segfaulting when I tried to delete article headers, a basic app function.   I tried recompiling, checked the dependencies individually, etc., but nothing worked. 
    Then, I carefully scanned the AUR package list again and noticed that the package I had compiled, "pan-git," was not the only AUR package listed for Pan.  I uninstalled pan-git then built and installed the correct pan-gtk3, which also gave me a functioning Pan v. 0.135, but this one doesn't constantly segfault--yay! 
    Maybe I missed something in the documentation that explains why package pan-git exists, but for now, it's confusing to anyone wanting to build a functioning instance of Pan on their system.
    The package that actually compiled to a properly functioning application is this one, pan-gtk3:
    https://aur.archlinux.org/packages.php?ID=50009
    thanks

    -git packages may be providing a more up to date software as it uses git instead of formal releases as the source.
    I can't access AUR atm, I'll have a look later. Fixed itself.
    Edit: You can just check the PKGBUILDS and see the differences
    https://aur.archlinux.org/packages.php?ID=43523
    https://aur.archlinux.org/packages.php?ID=31228 includes "Temporary bugfix version by K. Haley. With nzb gui patch by Heinrich Mueller." - as mentioned in the description
    https://aur.archlinux.org/packages.php?ID=43523 - uses gtk2
    Last edited by karol (2011-10-11 17:32:51)

  • Confusion with JDBC Optional Package for CDC.

    I am somewhat confused as to where this optional package fits.
    1. Is the implementation of this optional package to be COMPLETELY supplied by the database vendor(e.g. hsqdb, Oracle)?
    OR
    2. Is there an implementation available from Sun?
    OR
    3. Has Sun simply not released an implementation yet?
    OR
    4. Am I completely missing something here and losing my mind :)
    OR
    Is the JVM supposed to supply the implementation?
    Thanks for any enlightenment.
    J

    The actual specification can be written without actually talking to a database (the spec is mostly interfaces). However, you are write in that along with these classes (which must pass the TCK) the database vendor must provide the rest. Unlike normal java.sql where there is a DriverManager class, that is not the case in JSR-169.

Maybe you are looking for

  • Can I change the Apple ID on my iPhone without losing the songs I've purchased under my current user I'd?

    I currently have an apple ID on my iPhone which I've been sharing with my husband.   I had to turn iCloud off so that my info wouldn't get downloaded on his devices too.  I purchased an IPad and created a new user ID and would like to sync my iphone

  • Page item (date picker)

    I have added a date picker to my report . and in the report source I've added a where clause to filter the report as per the selected date(which is one of the columns in the table) but there is nothing shown. where DATE =:P23_DATE when I remove the w

  • Button to add member to collection

    Hi, I created the following collection in the before-header page process and also created an updatable report region. How can I create a "ADD ROW" button in that region in order to add a member to the collection. That is, I want to be able to click t

  • Types of IP layouts

    Hello friends , Are there more implementations using web frontend than Excel frontend for IP? Please advise. Thanks! P.Rexiproca

  • Oracle Coherence*Web and BlazeDS: Multiple FlexSessions created for the same HttpSession

    Hi all, I have searched this forum and found a lot of good information from Alex Glosband and others about the infamous "Detected duplicate HTTP - based FlexSessions, generally due to the remote host disabling session cookies. Session coolkies must b