Regarding packages

Hi guys
what is the difference of is/as keyword in package body declaration.....

There isn't any.
You are in the wrong forum. This is for the SQL Developer tool, not for general PL/SQL questions. The clue is in the title.

Similar Messages

  • Regarding Packaged function...!

    Hi,
    i have a packaged function which i am trying to use in my
    report query....
    i am passing 2 params for this function.....
    one is report parameter and the other one is a col in the select query....
    so i need to get rows returned based on the conditon satisfying in the query...!
    i have a select stat for each condition which will return one column value to the
    local variable which i am trying to check in the condition....
    My problem is whenever i am running it it's get hanged or it takes a lot of time..
    if iam hard coding the parameter value it's fetching records...
    plz do the needful....
    select
    a.latest_version_no,
    a.custom_ref_no,
    d.customer_name1,
    etc.....
    etc.....
    from
    cstbs_contract a,
    fxtbs_contract_master b,
    cstbs_contractis c,
    sttms_customer d
    where
    a.contract_ref_no=b.contract_ref_no
    and
    a.latest_version_no=b.version_no
    and
    b.contract_ref_no = c.contract_ref_no
    and
    d.customer_no=b.counterparty
    and
    NVL(b.netting_status,'N') ='N'
    AND
    b.VERSION_NO = (SELECT MAX(M1.VERSION_NO) FROM FXtbs_contract_master M1 WHERE M1.CONTRACT_REF_NO = B.CONTRACT_REF_NO)
    AND
    B.CONTRACT_REF_NO IN(SELECT PK_RET_ROWS.FN_RET_ROWS(:P_INST_CHANGE,'FXWFWXP023290102') FROM DUAL)

    Ravi
    For one thing you could avoid the unnecessary select from dual:
    AND B.CONTRACT_REF_NO IN(SELECT PK_RET_ROWS.FN_RET_ROWS(:P_INST_CHANGE,'FXWFWXP023290102') FROM DUAL)can be changed to:
    AND B.CONTRACT_REF_NO = PK_RET_ROWS.FN_RET_ROWS(:P_INST_CHANGE,'FXWFWXP023290102')You could simplify further, to make sure you only evaluate the function once, and definitely drive off M1, then B:
    AND (B.CONTRACT_REF_NO, B.VERSION_NO) = (
    SELECT M1.CONTRACT_REF_NO, M1.VERSION_NO
    FROM FXtbs_contract_master M1
    WHERE M1.CONTRACT_REF_NO = PK_RET_ROWS.FN_RET_ROWS(:P_INST_CHANGE,'FXWFWXP023290102')
    )As for the speed: if you still have a problem, check you have the right indexes (eg on CONTRACT_REF_NO and (LATEST_)VERSION_NO for M1, A, B, C and on D.CUSTOMER_NO)?
    HTH
    Regards Nigel

  • Regarding package creation

    hi all,
    I tried executing this program....its showing Noclassdeffound error....
    ***//this file i ve named it as demos.java***
    package pack1;
    import pack2.demo2;
    public class demos
         int x,y;
         public demos(){
         demo2 obj=new demo2(2,3);
              this.x=obj.x;
    public static void main(String args[])
    //int i=8;i++;
    //System.out.println("i++="+ i++ +"++i ="+ ++i +"i++=" + i++);
    demos o=new demos();
    System.out.println("x="+o.x/*+"y="+demo2.y*/);
    *//this file i ve named as demo2.java*
    package pack2;
    public class demo2{
         public int x;
         public int y;
    public demo2(int p,int q){
              this.x=p;
              this.y=q;
    Here i am trying to create two packages pack1 and pack2.....but its not executing plz help????

    hi ,
    I have named the .java file containing main() method as demos.java and i want that .java file to under a package and the package name is "pack1".
    So ,if i want to the program to execute correctly --i ve to change the package name to "pack1.demos;" is it?
    This is my question?
    Also post a code sample on package(apart from java packages).One created on own.
    regards...
    arjun

  • Help is needed regarding PACKAGE -- Transport Layer

    Dear,
    I am working on CRM upgrade ,where i found one z-package
    in their production system.but if i look into it one z transport layer was defined and if i search for F4 i am not able to find that Trasport layer. how can it be possible to That package without existing Trasport layer.
    Please treat as urgent.
    Thanks in advance.
    with  regards,
    Rajesh c

    Dear,
    problem is regarding SAP SPI provided  by HP .
    i  am working on CRM 2007 upgrade project .in CRM 4.0 SPI package is present.
    but in this i am confused.
    as All dictionary objects , FM are starting with customer name space i.e Z---
    even package they are using is ZSPI for which Transport layer is ZLPO.
    but if i search for F4 i am not able to find ZLPO.
    and comment in FM is
    Copyright(c) 1998 by Hewlett-Packard Company.                       *
    All rights reserved.                      
    so shall i go for manual creation of these object .
    Please treate it as urgent.
    Thanks in advance.
    with  regards,
    Rajesh c

  • Query regarding Packages??

    Hi All,
    My database is updated after every 15 days. I am creating a package that will use Ref Cursor , including procedures and functions. So Shuld i Execute that procedures every time after 15 days or the new rows will be populated directly into the bind variables. We are calling the values in JSP that will inturn affect our website.
    Reply
    Regards.

    I guess this statement explains a lot
    We are calling the values in JSP that will inturn affect our website.but the rest of your question is not very clear.
    What I think you are asking is this: you have some procedures which return ref cusrors to an application. Do need to rerun your procedures to get the data which has been inserted into the database since the last time you ran those procedures? To which teh answer is yes.
    If I have misinterpreted the question you will need to have another crack at explaining your scenario.
    Cheers, APC

  • Best practice regarding package-private or public classes

    Hello,
    If I was, for example, developing a library that client code would use and rely on, then I can see how I would design the library as a "module" contained in its own package,
    and I would certainly want to think carefully about what classes to expose to outside packages (using "public" as the class access modifier), as such classes would represent the
    exposed API. Any classes that are not part of the API would be made package-private (no access modifier). The package in which my library resides would thereby create an
    additional layer of encapsulation.
    However, thus far I've only developed small applications that reside in their own packages. There does not exist any "client code" in other packages that relies on the code I've
    written. In such a case, what is the best practice when I choose to make my classes public or package-private? Is it relevant?
    Thanks in advance!

    Jujubi wrote:
    ...However, thus far I've only developed small applications that reside in their own packages. There does not exist any "client code" in other packages that relies on the code I've
    written. In such a case, what is the best practice when I choose to make my classes public or package-private? Is it relevant?I've always gone by this rule of thumb: Do I want others using or is it appropriate for others to use my methodes. Are my methods "pure" and not containing package speicific coding. Can I guarentee that everything will be initialized correctly if the package is included in other projects.
    Basically--If I can be sure that the code will do what it is supposed to do and I've not "corrupted" the obvious meaning of the method, then I usually make it public--otherwise, the outside world, other packages, does not need to see it.

  • Error regarding package concept and classpath

    Dear All,
    I am just compiling two java classes which is part of struts frame work.
    Register Form.java:
    package app;
    import org.apache.struts.action.*;
    public class RegisterForm extends ActionForm
    protected String username;
    protected String password1;
    protected String password2;
    public String getUsername(){return username;}
    public String getPassword1(){return password1;}
    public String getPassword2(){return password2;}
    public void setUsername(String username){this.username=username;}
    public void setPassword1(String password){this.password1=password;}
    public void setPassword2(String password){this.password2=password;}
    I am compiling this file its compiling and i put this class file in app folder and the i am compiling the second java file.
    package app;
    import org.apache.struts.action.*;
    import javax.servlet.http.*;
    import java.io.*;
    public class RegisterAction extends Action
    public ActionForward perform(ActionMapping mapping,ActionForm form,HttpServletRequest req,HttpServletResponse res)
    RegisterForm rf = (RegisterForm) form;
    String username=rf.getUsername();
    String password1=rf.getPassword1();
    String password2=rf.getPassword2();
    if(password1.equals(password2))
    return mapping.findForward("success");
    else
    return mapping.findForward("failure");
    when i am compiling i got error as
    package app;
    import org.apache.struts.action.*;
    import javax.servlet.http.*;
    import java.io.*;
    public class RegisterAction extends Action
    public ActionForward perform(ActionMapping mapping,ActionForm form,HttpServletRequest req,HttpServletResponse res)
    RegisterForm rf = (RegisterForm) form;
    String username=rf.getUsername();
    String password1=rf.getPassword1();
    String password2=rf.getPassword2();
    if(password1.equals(password2))
    return mapping.findForward("success");
    else
    return mapping.findForward("failure");
    C:\j2sdk1.4.1_04\bin>javac RegisterAction.java
    RegisterAction.java:10: cannot resolve symbol
    symbol : class RegisterForm
    location: class app.RegisterAction
    RegisterForm rf = (RegisterForm) form;
    ^
    RegisterAction.java:10: cannot resolve symbol
    symbol : class RegisterForm
    location: class app.RegisterAction
    RegisterForm rf = (RegisterForm) form;
    no problem in struts jar and servlet jar file i set classpath correctly for this but i cant resolve thsi error.
    can any one help on this issue.
    i need urgently.
    Thanks
    Balaji.A.U.

    i need urgently.Oh. In that case, I'm probably too late. What a bummer.

  • Regarding packages,help please

    Hi,
    As I have understood it for example,
    What is the difference in putting the/source class files in the
    package package1;
    and
    package my.own.package1
    Its the same right,why do we have to put the extra my.own
    and setting the class path accordingly
    Hope that I conveyed my question correctly.
    Help appreciated
    Thanks
    AS

    You can use a single named package just fine.
    Packages are typically used for ogranization as well
    as reduced name collisions.
    The normal naming convention for packages is as
    follows:
    domain.company.package;
    So if your domain is org and you're developing a gui
    project for apache then it would look like:
    org.apache.gui;
    Just think if everyone started using single name
    packages how many more collisions there would be. For
    example, if you and I were developing web components
    and we both decided to use the package name web then
    it would be tough to intermingle our code as the
    potential for conflicts is higher. For example, if we
    both had an upload object in our package that did
    different things then they couldn't co-exist. See
    below:
    package web
    //My servlet to receive uploads
    class Upload extends Servlet
    package web
    //Your component to help POST uploads
    class Upload extends URLStreamHandler
    }However if we prepend our domains and company names to
    the package then we could share code:
    package com.ics.web
    //My servlet to receive uploads
    class Upload extends Servlet
    package org.apache.web
    //Your component to help POST uploads
    class Upload extends URLStreamHandler
    }Furthermore you'd most likely want some organization
    to your code. you wouldn't just want one package with
    all of your classes in it. It would be hard to
    decipher which is which. So you'd create sub-packages
    under your main package. You get something like
    org.apache.web.servlets and org.apache.web.client. Why
    do this? because you want to treat your client
    classes differently than your servlets. It makes it
    easier at build time as well when the classes need to
    deploy in different places. It's just easier to say
    grab everything from the servlets package and put them
    in my web archive (war). Also grab everything from
    client and put them in the root of my Enterprise
    archive (EAR). There are other uses for this as well,
    I'm sure.
    CliffThanks Cliff for the comprehensive introduction for using packages.Will understand it programatically now.Any doubts will keep posting.
    AS

  • Regarding package

    how to make a plsql procedure, which can call http url using post method. ???

    Welcome to the forum.
    Sounds like UTL_HTTP.
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/u_http.htm#sthref11939
    http://www.oracle-base.com/articles/misc/RetrievingHTMLandBinariesIntoTablesOverHTTP.php
    http://technology.amis.nl/blog/358/consuming-web-services-from-plsql-part-ii-a-pure-plsql-solution-using-utl_http-oracle-9i-or-10g
    But it would be helpful to know a bit more regarding your requirement.

  • Regarding package...help me

    I declared one procdure in package specification but not defined in body
    I did not declared procedure in package spec but defined in body
    Whis is correct.
    asp

    Another case (albeit an unusual one) for having a SPEC without a body is when th eapplication is being beployed incrementally.
    Release 1 has a program P1 that depends upon two packages A and B. We need to release the first tranche of the application, that actually only implements the logic for package A. However, to minimise subsequent disruption we would like to release P1 in its final state.
    So in the first release we deploy:
    P1 - whatever
    A - package spec
    A - package body
    B - package spec
    So P1 compiles and can call functionality relating to A. It will fail if it calls functionality relating to B.
    The second release is much simpler:
    B - package body
    Note that this is a risky strategy. We have to be certain that P1 will not execute B calls before the B package body has been deployed. In the example of which I'm thinking, P1 was a consumer of data files, so it was a matter of tweaking the data load configuration file as part of the second release.
    So it is true to say that we can have a package spec without a body, but we cannot execute its public procedures. And, as Asish points out, we can reference any public variables it declares.
    Cheers, APC

  • Regarding packageing in sharepoint

    I have created a small solution for practice. 
    Soulution Name : Sample
    Class Library : Sample.ClassDB (Data Layer)
    Class Library : Sample.ClassLib (Business Layer)
    UI : Sample.UI (Which has webpart code)
    In Sample.ClassLib project have refrence of "Sample.ClassDB" and "Sample.UI" has reference of "Sample.ClassLib".
    In sharepoint package i added both assembly to make the safe control entry by clicking on Advance tab in package designer.
    When tried to deploy the solution i received the below error.
    The type or namespace name 'ClassDB' does not exist in the namespace 'Sample' (are you missing an assembly reference?)
    Please suggest.
    Akhilesh Rao

    Since you haven't provided the full details of the assemby definitions, I can't say for certain, but my guess is that you've made a mistake in the Safe Controls section of the ClassDB assembly. But here are some specific observations that may help:
    First, why are you declaring Safe Controls in either Sample.ClassDB.dll or Sample.Classlib.dll at all? Are there web controls or web parts in either of those assemblies? This seems inconsistent with your layered architecture — I would expect all the UI controls
    to be in Sample.UI.dll. If you don't have any ASP.net controls in those assemblies, you should remove any Safe Control items (which will likely fix the deployment error, assuming there's something wrong with them)
    Conversely, if you have web parts (or other ASP.net controls) in Sample.UI.dll, you need to provide safe control declarations for those classes (otherwise they will fail with a security error when you try to add one to a page). Since Sample.UI.dll isn't
    listed in your screenshot, I'm guessing that it's because that's the default target assembly for your SharePoint solution project. To declare safe controls in the default assembly, you need to do the following:
    Add the Sample.UI.dll assembly to the list of additional assemblies. The definition should look something like the following:
    This is assuming all your web parts are in the namespace 'Sample.UI.WebParts'; change as necessary. If your controls are in multiple namespaces, include a safe control entry for each one.
    View the Project Properties and change Include Assembly In Package to
    False, otherwise MSVS will try to include the target assembly twice.
    Hope this helps.

  • Problem with long filenames in packaging processes

    Hi,
    I have a quick question regarding packaging processes of Thinapps. I'm sure others have the same issues too, but it is not much info on it on the interweb.
    certain application have alot of subfolders in program files etc. when the developers made the application they did not go over the 255 NTFS filename limit. but when working with the virtual filesystem we get additional subfolders. This makes it difficult to move project folders etc.
    Does any have some fix on this issue other than using subst command everytime for each folder?

    We use Thinapp 5.1.
    We already change the location but, but when storing the project folder on a share we cant avoid getting additional sub directories. The developers for all applications take this into account when they get the same problem in their development environments.
    If Thinapp had not used ANSI codes that has a limit of 260 path length. then I dont think that it would an issue. Support case?
    https://social.technet.microsoft.com/Forums/windowsserver/en-US/fbad33ee-b10b-4ab8-9370-a2af017ca46b/maximum-folders-in-a-folder-in-ntfs

  • Upgrade of 700MB fails due to Package signing

    Downloaded much but received error message regarding package signing.  Nothing was installed...........
    My pacman.conf has ...SigLevel = Never... so am wondering how I can be in error for package signing?
    Is it now mandatory?

    Sorry my oops.  Will try again.....
    # /etc/pacman.conf
    # See the pacman.conf(5) manpage for option and repository directives
    # GENERAL OPTIONS
    [options]
    # The following paths are commented out with their default values listed.
    # If you wish to use different paths, uncomment and update the paths.
    #RootDir = /
    #DBPath = /var/lib/pacman/
    #CacheDir = /var/cache/pacman/pkg/
    #LogFile = /var/log/pacman.log
    #GPGDir = /etc/pacman.d/gnupg/
    HoldPkg = pacman glibc
    # If upgrades are available for these packages they will be asked for first
    SyncFirst = pacman
    #XferCommand = /usr/bin/curl -C - -f %u > %o
    #XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
    #CleanMethod = KeepInstalled
    Architecture = auto
    # Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
    #IgnorePkg =
    #IgnoreGroup =
    #NoUpgrade =
    #NoExtract =
    # Misc options
    #UseSyslog
    #UseDelta
    #TotalDownload
    CheckSpace
    #VerbosePkgLists
    # PGP signature checking
    # NOTE: None of this will work without running `pacman-key --init` first.
    # The compiled in default is equivalent to the following line. This requires
    # you to locally sign and trust packager keys using `pacman-key` for them to be
    # considered valid.
    #SigLevel = Optional TrustedOnly
    # If you wish to check signatures but avoid local sign and trust issues, use
    # the following line. This will treat any key imported into pacman's keyring as
    # trusted.
    #SigLevel = Optional TrustAll
    # For now, off by default unless you read the above.
    SigLevel = Never
    # REPOSITORIES
    # - can be defined here or included from another file
    # - pacman will search repositories in the order defined here
    # - local/custom mirrors can be added here or in separate files
    # - repositories listed first will take precedence when packages
    # have identical names, regardless of version number
    # - URLs will have $repo replaced by the name of the current repo
    # - URLs will have $arch replaced by the name of the architecture
    # Repository entries are of the format:
    # [repo-name]
    # Server = ServerName
    # Include = IncludePath
    # The header [repo-name] is crucial - it must be present and
    # uncommented to enable the repo.
    # The testing repositories are disabled by default. To enable, uncomment the
    # repo name header and Include lines. You can add preferred servers immediately
    # after the header, and they will be used before the default mirrors.
    #[testing]
    #SigLevel = PackageRequired
    #Include = /etc/pacman.d/mirrorlist
    [core]
    #SigLevel = PackageRequired
    Include = /etc/pacman.d/mirrorlist
    [extra]
    #SigLevel = PackageOptional
    Include = /etc/pacman.d/mirrorlist
    #[community-testing]
    #SigLevel = PackageRequired
    #Include = /etc/pacman.d/mirrorlist
    [community]
    #SigLevel = PackageOptional
    Include = /etc/pacman.d/mirrorlist
    # If you want to run 32 bit applications on your x86_64 system,
    # enable the multilib repositories as required here.
    #[multilib-testing]
    #SigLevel = PackageRequired
    #Include = /etc/pacman.d/mirrorlist
    #[multilib]
    SigLevel = PackageOptional
    Include = /etc/pacman.d/mirrorlist
    # An example of a custom package repository. See the pacman manpage for
    # tips on creating your own repositories.
    #[custom]
    #SigLevel = Optional TrustAll
    #Server = file:///home/custompkgs

  • Creating a package for proxy scenario?

    Hi friends,
    Can you give me some info regarding package creation while generating proxy? In which system we need to create package?
    Thanks in advance
    Bala

    Hi Bala,
    You can try this.
    How to create a Package For Proxy Generation in R/3
    For proxies you need to create a four level package. Goto the Transaction SPACKAGE and Give your own package name starting with Z and choose create.
    Then create SAI_SXMS and SAI_TOOLS Package interfaces in the use access tab page. Now include a new package name in Package included tab page.
    Double click on your new packge name continue the same steps 2 more times,
    now the four level package has been created, you can use 
    the first given pakage name as a package name for creating packages
    Regards
    Seshagiri

  • Handling unit/ Packaging material

    Hello,
    I have a question in <b>handling/packing</b> materials.
    I have configured packaging materials and groups right, and assigned it properly to my warehouse.
    But when I provide the information regarding packaging material in HU02, it says
    "XXX (Packaging material) does not have packaging material type and is therefore  not a pack.mat."
    Can anyone suggest what to do now ?
    Thanks & Regards,
    Srini

    Hello Srinivas,
    <b>Hello Mr. Adrift,</b>
    Firstly, I like my original name ;-).
    Thanks for udpates.
    <b>Can you brief me various interactions of RF in warehouse management</b>
    Benefits of the Integrated RF Solution
    By integrating RF devices into the SAP System, users can realize significant cost savings and productivity gains in many areas of information processing. The following are just a few of the benefits that RF computing with the SAP System has to offer:
    <b>Extended Usability</b>
    With the integrated RF connection, previously unreachable users can now take advantage of the Logistics Execution functions. This new access expands the availability of SAP applications throughout the warehouses, distribution centers, and shipping and receiving docks.
    <b>Increased Accuracy</b>
    Each data entry error is recognized immediately by the SAP System. RF computing devices thus enhance the quality of data in the system.
    <b>Data Availability</b>
    Timely entry of information into the SAP System and direct access to accurate business data lead to more efficient operational decisions. This increases the information value and speeds up the decision-making process through the continuous link between front-line and back-office applications.
    <b>Reduced Training Requirement</b>
    RF-enabling applications minimize the need for training. RF devices are front-end devices, that is, automated data-entry devices linked to the SAP System. Consequently, the user can become productive in a short period of time and with minimal training. This is especially important for warehouses that frequently use temporary staff during peak periods.
    <b>how screens are management</b>
    please provide your email ID.
    Regards
    Arif Mansuri

Maybe you are looking for

  • Checkboxec on selection-screen

    hi frens, i have 3 checkboxes on selection-screen. 1st one-should be already checked and grey 2- unchecked 3-checked so when i check the 2nd one. 1st-checked and ungrey 2-checked 3-ckecked and ungrey

  • Is it possible to sort / group movies by video quality?

    I'd like to sort or group my movies by video quality.  I am not sure if it's possible in iTunes -- if it is, I certainly can't figure it out. I can certainly see the info when I click "Get Info" on individual films, but I don't see a way to sort or c

  • Document server

    Hi folks,   Is there doucment server in SAP apart from application server. If so what is the purpose of the document server. Thanks in advance, Ravi

  • Inlist iterator

    what is an inlist iterator? From performance point of view is it better to write a query using OR , IN operator, if the column being referred has an index on to it.

  • What happens if I reset cache on iTunes?

    I have iTunes 10.3.1 I want to know What happens if I reset cache on iTunes? also, I have deleted every photo on my iPhone, and iTunes says that I still have 1.22 GB of photos, is it wrong?, or there can be hidden photos some were in my iPhone?