Package and type declaratrion in 10g

Hi forum,
1) Any difference is threre in ora 10g for declaration of plsql types'
Eg : type temp_x_tab is a table of x%rowtype index by binary integer;
here x is a pre-defined table in schema.
Is thr anything wronmg with this declaration in 10g?
2) Similarly package declration and specification has got any diference in 10g ,compared to previous releases of oracle?
Thanks,
Aneesh

The docs are at http://tahiti.oracle.com

Similar Messages

  • PL/SQL Packages and Types Reference

    I need information about the owa_ packages. It should be in PL/SQL Packages and Types Reference, but in the 9i Documentation there is nothing about these packages and i cant find this Documentation for 10g on OTN.
    Who can help me???

    Here is the 9.2 doc:
    http://download-east.oracle.com/docs/cd/B10501_01/appdev.920/a96590/adgweb.htm#1005885
    Tom Best

  • Oracle9i Supplied PL/SQL Packages and Types Reference  can't be found

    I've tried lots of things to try to find information on DBMS_STATS without success. There was a supposed link to it but I got the message that the linked page could not be found. I have spent a lot of time getting not very far and would appreciate it very much if you could advise me of the URL which will give me good documentation!
    I came across DBMS_STATS in the "SearchOracle" newsletter.
    Regards, WB

    The documentation you are looking for is here:
    http://download-west.oracle.com/docs/cd/B13789_01/appdev.101/b10802/d_stats.htm#ARPLS059
    (among other places). Can you please give us the specifics on the dead link so that we can fix that?
    Regards, OTN Content Team

  • Need ant script to compile, package, and deploy to Oracle AS 10.3.1

    I have a test app with ADF faces/jsf for front-end and EJB 3.0 Session Facade/Entity beans for back-end. The project structure/layout is similar to the SRDEMO app in JDeveloper. I was able to compile, package, and deploy within JDeveloper 10g to Oracle AS 10g successfully. Is there a sample ant script to compile, package, and deploy to Oracle AS 10g that I can run from command line? The build.xml that came with SRDEMO only do the compilation, not packaging and deployment. I was able to modify the SRDEMO's build.xml to compile my test app though. I still need the script to package and deploy it.
    Thanks,

    Hi,
    How are you referring to the class path. I have created my custom build file and I refer like this.
    <path id="classpath">
      <pathelement location="${oracle.home}/lib/aia.jar"/>
      <pathelement location="${oracle.common.home}/modules/org.apache.commons.logging_1.0.4.jar"/>
    </path> oracle.home is the location where my aia.jar resides.
    In the compile-classes target I have
    <!--Target for Class path details -->
    <target name="compile-classes">
      <mkdir dir="${sca-inf.classes.dir}"/>
      <javac destdir="${sca-inf.classes.dir}"   classpathref="classpath"
             debug="on"                         nowarn="${javac.nowarn}"
             deprecation="${javac.deprecation}" encoding="Cp1252"
             source="1.6"                       target="1.6">
        <src path="${src.dir}"/>
      </javac> 
    </target> Regards,
    Neeraj Sehgal

  • Packaging material type and packaging materials

    Hello all,
    I would like to know how to generate specific means of transport based on packaging material type and packaging materials.
    Thanks,
    Maxx

    can we know answer for your qtn?

  • BPM 10g: configuration name [ ProjectName ] and type [SQL] is not defined.

    Hi There,
    I try to help a colleague with his BPM10g project. When I start the engine in BPM Studio with his project I eventually get this error in a popup:
    "The configuration name [<ProjectName>] and type [SQL] is not defined.
    Detail: The connector must be configured in the appropriate context."
    I upgraded from 10.3.1 to 10.3.2, but did not help. Still my own project and another svn-branch of his project do work.
    Anybody any ideas on where to look?
    Thanks in advance.
    Regards,
    Martien

    I found out that the folder must be the same as in the project file.

  • Extracting package and procedure name in code

    In my exception processing I need to log the package and procedure name that got the exception. How do I obtain these two names without manually coding the names?
    Thanks in anticipiation

    A better option is to get the package name and the line numberA still better option is to utilize pl/scope (when you are in 11g (not sure about 10g)):
    SQL> alter session set plscope_settings='identifiers:all'
    Session altered.
    SQL> set serverout on
    SQL> create or replace package pkg
    as
       procedure p1;
       procedure p2;
    end pkg;
    Package created.
    SQL> create or replace package body pkg
    as
       procedure get_scope (obj varchar2, line int)
       as
       begin
          for c in (select rpad (lpad (' ', 2 * (level - 1)) || name, 20, '.') || ' ' || rpad (type, 20) || rpad (usage, 20) identifier_usage_contexts
                    from user_identifiers t
                    where level != 1
                    start with line = get_scope.line and object_name = obj
                    connect by usage_id = prior usage_context_id)
          loop
             dbms_output.put_line (c.identifier_usage_contexts);
          end loop;
       end get_scope;
       procedure p1
       as
       begin
          null;
       end p1;
       procedure p2
       as
       begin
          get_scope ($$plsql_unit, $$plsql_line);
       end p2;
    end pkg;
    Package body created.
    SQL> exec pkg.p2
      P2................ PROCEDURE           DEFINITION         
        PKG............. PACKAGE             DEFINITION         
        PKG............. PACKAGE             DECLARATION        
    PL/SQL procedure successfully completed.

  • Accessing package and procedure using dblink

    How can I access my package and function using a dblink.
    my query is like this
    select id from tablel(pck_prod.fetchid('p107'))
    union select pck_prod.pid('p107') from dual
    my package pck_prod is on remote machine and I have dblink to that machine.
    fetchid and pid are my functions in the package.
    Thanks

    Does it look anything like this?
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    SQL> CREATE OR REPLACE TYPE varchar2_table AS
      2     TABLE OF VARCHAR2 (4000);
      3  /
    Type created.
    SQL> CREATE OR REPLACE FUNCTION function_name
      2     RETURN varchar2_table
      3  IS
      4  BEGIN
      5     RETURN varchar2_table ('Banana');
      6  END;
      7  /
    Function created.
    SQL> SELECT column_value
      2  FROM   TABLE (function_name);
    COLUMN_VALUE
    Banana
    SQL> CREATE DATABASE LINK scott
      2     CONNECT TO scott
      3     IDENTIFIED BY tiger
      4     USING 'XE';
    Database link created.
    SQL> SELECT column_value
      2  FROM   TABLE (function_name@scott);
    SELECT column_value
    ERROR at line 1:
    ORA-30626: function/procedure parameters of remote object types are not
    supported
    SQL> If so then the key phrase here is 'remote object types'.

  • How to create package and import from jar file?

    Hi all,
    I am writing a software and I am not sure how to create a package for the classes.
    Say I have two classes in the same directory as follows:
    testA.java
    ==========
    package AB;
    public class testA
    public static void main(String[] args){
         testB myB = new testB();
         System.out.println("A test");
    testB.java
    ===========
    package AB;
    public class testB
    public testB(){
         System.out.println("B constructor");
    both file compile without the package heading;
    both file compile using: javac -classpath .\ *.java
    Question 1:
    I cannot run testA by: java -classpath .\ testA
    I think it is a syntax error. What is the correct one?
    If I run testA by: java testA
    The only output I get is: A test
    But I am expecting: B constructor /n A test
    What went wrong?
    Question 2:
    I need to use APIs of another software. I have downloaded a .jar file (xxx.jar) with all the classes in it. And I have put "import xxx.*;" in my source file. But the compiler complains about the importing. What is the right way to copmile it?
    I have read a couple of tutorials but they don't answer my question.
    (I am using windows2000 and don't have the classpath variable.)
    Hope some one can help.
    Thanks a lot

    Try moving testA out of the package and importing 'AB.*;'
    If you have:
    ./testA.class
    ./AB/testb.class
    Then to execute testA from ./ type: java -cp . testA

  • Will dynamic Excel commands in a C# Edit Script run ok as a SSISDB Package and a SQL Server Agent Job?

    I've seen some conflicting things in terms of dynamic Excel commands running in a SSISDB Package and a scheduled SQL Server Agent Job...things like that it's not supported...that it won't work...etc...
    It's a pretty simple script...to open up a .xlsx file and save it as a .xls file. I am trying to be proactive here and the reason I did it this way is because I could not source the .xlsx file and then I couldn't use OLE DB sourcing because I think the .xlsx
    file wants you to use Microsoft.ACE.OLEDB.12.0 and that entails installing the 64-bit Microsoft Access Database Engine and I cannot do that because our network version of Microsoft Office 2010 is 32-bit and in order to install the 64-bit Microsoft Access Database
    Engine 2010 it's prompting me to uninstall Microsoft Office 2010 and that is not possible.
    Ugh!
    So I'm hoping that I can promote and deploy this current SSIS Package to Production and create a SQL Server Agent Job that will successfully run this and its dynamic Excel commands.
    Do you know of any hurdles with this? Any anomalies...struggles...
    Thanks for your review and am hopeful for a reply.
    Here's the C# Script...which works perfectly client side...
    string StrFileName = (Dts.Variables["User::FileName"].Value.ToString());
    StrFileName = Path.GetFileNameWithoutExtension(StrFileName);
    string StringSourceFile = (Dts.Variables["User::FilePath"].Value.ToString()) + StrFileName + ".xlsx";
    string StringDestinationFile = (Dts.Variables["User::FilePath"].Value.ToString()) + StrFileName + ".xls";
    // This initiates the Excel Application
    Microsoft.Office.Interop.Excel.Application excelApplication = new Microsoft.Office.Interop.Excel.Application();
    // This Opens the Source .xlsx File from Emdeon ePaySmart
    Workbook workbook = excelApplication.Workbooks.Open(StringSourceFile, XlUpdateLinks.xlUpdateLinksNever, true, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing);
    // This will Save the Source .xlsx Emdeon ePaySmart File as a .xls File...note xlFileFormat.xlExcel5
    workbook.SaveAs(StringDestinationFile, XlFileFormat.xlExcel8, Type.Missing, Type.Missing, Type.Missing, Type.Missing, XlSaveAsAccessMode.xlExclusive, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing);
    // This will Close the Source
    workbook.Close(false, Type.Missing, Type.Missing);
    // This shuts down the Excel Application
    excelApplication.Quit();

    This should work if you use a proxy to run this package in the Agent; see:
    http://www.mssqltips.com/sqlservertip/2163/running-a-ssis-package-from-sql-server-agent-using-a-proxy-account/
    Arthur
    MyBlog
    Twitter

  • Package and Directory Structure

    Hello --
    I work in a group that supports 3 web sites. (b2b, b2c, b2e)
    We're just beginning to develop Java in-house and
    currently using Solaris and JDK 1.2.x.
    I need to propose a package and directory structure strategy.
    The "reverse the domain name" guideline makes sense to me.
    My first thoughts are: ("classes" dir could be created anywhere)
    classes/com/ppco/b2X/ <--- for .java and .class files (development)
    lib/ <--- for b2X JAR files (ready for test or production)
    util/ <--- for our utility classes like DBAccessor
    lib/ <--- for our JAR files
    sun/ <--- for classes like com.sun.mail pkg
    lib/ <--- for JAR files like mail.jar
    org/ <--- for classes in org.omg.CORBA pkg
    lib/ <--- for JAR files
    We need to handle 3rd party classes.
    Development would be done in the b2X tree and JAR files would
    be installed the lib/ dir for testing and release to production.
    Does anyone have recommendations or experiences to share ?
    Are there some things to avoid ?
    Thanks !
    Al

    Hello Al,
    you are on the right track. A typical convention I follow is:
    <project>
          bin - for startup scripts, etc. to run your application
          build - for build scripts (not necessary if you build using your IDE. See below.)
          classes - for my compiled classes
          lib - for my 3rd party libraries
          src - for my source code
          test - for my test code (see http://junit.org/ )
    That's the project hierarchy. The src (i.e. the package heirarchy) structure is another story.
    As you say, you start with the reverse domain name. This is to give your packages a unique namespace. After that, your best guide is practice. Packages can be larger or smaller, depending on your coding practices. Usually you would have these (exact names may differ), plus others:
          com/ppco/client
          com/ppco/server
          com/ppco/common
          com/ppco/db
    I think your break down of sun, org, etc. is a bit too much. If you would like to do so, however, I recommend you do the separation under /lib. This way, the top level project directory is not polluted by the different types of libraries in use.
    Regards,
    Manuel Amago.
    From build above: I would suggest you always build your release distribution directly with the JDK, not using any IDE compiler. This is because Sun's JDK is the reference implementation, thus, any compatibility issues are not yours.
    An easy way to achieve this is by using ANT (see http://jakarta.apache.ort/ant/ ).

  • What are best practice for packaging and deploying j2EE apps to iAS?

    We've been running a set of J2EE applications on a pair of iAS SP1b for about a year and it has been quite stable.
    Recently however we have had a number of LDAP issues, particularly when registering and unregistering applications (registering ear files sometimes fails 1st time but may work 2nd time). Also We've noticed very occasionally that old versions of classes sometimes find their way onto our machines.
    What is considered to be best practice in terms of packaging and deployment, specifically:
    1) Packaging - using the deployTool that comes with iAS6 SP1b to package is a big manual task, especially when you have 200+ jsp files. Are people out there using this or are they scripting it with a build tool such as Ant?
    2) Deploying an existing application to multiple iAS's. Are you guys unregistering old application then reregistering new application? Are you shutting down iAS whilst doing the deployment?
    3) Deploying ear files can take 5 to 10 mins, is this normal?
    4) In a clustered scenario where HTTPSession is shared what are the consequences of doing deployments to data stored in session?
    thanks in asvance for your replies
    Owen

    You may want to consider upgrading your application server environment to a newer service pack. There are numerous enhancements involving the deployment tool and run time layout of your application that make clear where you're application is loading its files from.
    If you've at a long running application server environment, with lots of deployments under your belt, you might start to notice slow downs in deployment and kjs start time. Generally this is due to garbage collecting in your iAS registry.
    You can do several things to resolve this. The most complete solution is to reinstall the application server. This will guarantee a clean ldap registry. Of course you've got to restablish your configurations and redeploy your applications. When done, backup your application server install space with the application server and directory server off. You can use this backup to return to a known configuation at some future time.
    For the second method: <B>BE CAREFUL - BACKUP FIRST</B>
    There is a more exhaustive solution that involves examining your deployed components to determine the active GUIDS. You then search the NameTrans section of the registry searching for Applogic Servlet *, and Bean * entries that represent your previously deployed components but are represented in the set of deployed GUIDs. Record these older GUIDs, remove them from ClassImp and ClassDef. Finally remove the older entries from NameTrans.
    Best practices for deployment depend on your particular environmental needs. Many people utilize ANT as a build tool. In later versions of the application server, complete ANT scripts are included that address compiling, assembly and deployment. Ant 1.4 includes iAS specific targets and general J2EE targets. There are iAS specific targets that can be utilized with the 1.3 version. Specialized build targets are not required however to deploy to iAS.
    Newer versions of the deployment tool allow you to specify that JSPs are not to be registered automatically. This can be significant if deployment times lag. Registered JSP's however benefit more fully from the services that iAS offers.
    2) In general it is better to undeploy then redeploy. However, if you know that you're not changing GUIDs, recreating an existing application with new GUIDs, or removing registered components, you may avoid the undeploy phase.
    If you shut down the KJS processes during deployment you can eliminate some addition workload on the LDAP server which really gets pounded during deployment. This is because the KJS processes detect changes and do registry loads to repopulate their caches. This can happen many times during a deployment and does not provide any benefit.
    3) Deploying can be a lengthy process. There have been improvements in that performance from service pack to service pack but unfortunately you wont see dramatic drops in deployment times.
    One thing you can do to reduce deployment times is to understand the type of deployment. If you have not manipulated your deployment descriptors in any way, then there is no need to deploy. Simply drop your newer bits in to the run time space of the application server. In later service packs this means exploding the package (ear,war, or jar) in to the appropriate subdirectory of the APPS directory.
    4) If you've changed the classes of objects that have been placed in HTTPSession, you may find that you can no longer utilize those objects. For that reason, it is suggested that objects placed in session be kept as simple as possible in order to minimize this effect. In general however, is not a good idea to change a web application during the life span of a session.

  • Problem with Packaging Material Type

    Hello all Gurus,
    I have a problem with a packaging material type that I have created copying the standrad Packaging material type LEIH. I created a new packing material type ZPAC - Packaging Material copying LEIH.
    I then created a new material master record using this new material type ZPAC.
    When I am using this material for packing in outbound delivery document - VL01N, I am getting the following strange error message:
    20333 does not have packaging material type and is therefore not a pack.mat.
    Please suggest me why this error is coming and how I can rectify this error. Is there any further configuration that I need to do for packaging material types??? Kindly suggest.
    Thanks and Regards,
    Umakanth.

    Hi,
    Material type is not enough, you have to maintain proper master data as well as config.
    At least please maintain value in MARA-VHART for the packaging material. Please also check these links how HUM works:
    http://www.sap-img.com/sap-hu.htm
    http://help.sap.com/saphelp_crm40/helpdata/en/c8/a44b779f3211d2858d0000e81ddea0/frameset.htm
    Regards,
    Csaba

  • Trying to create package and do not understand error message

    What is wrong with this statement. Its say ASH411APPROVALEMAIL_PKG is not declared. I am trying to create it. Whats wrong?
    ERROR MESSAGE
    I get the following error.
    Error at line 1: PLS-00201: IDENTIFIER 'ASH411APPROVALEMAIL_PKG' must be declared1. CREATE OR REPLACE PACKAGE BODY ASH411APPROVALEMAIL_PKG
    2. AS
    3. PROCEDURE ASH411APPROVALEMAIL_async (P_ATS_NO NUMBER
    CODE
    CREATE OR REPLACE PACKAGE BODY ASH411APPROVALEMAIL_PKG
    AS
    PROCEDURE ASH411APPROVALEMAIL_async (P_ATS_NO NUMBER)
    AS
    BEGIN
    DBMS_SCHEDULER.define_program_argument (program_name => 'ASH411APPROVALEMAIL',
    argument_position => 1,
    argument_name => 'P_ATS_NO',
    argument_type => 'NUMBER'
    --,DEFAULT_VALUE => whatever_value
    DBMS_SCHEDULER.ENABLE (NAME => 'ASH411APPROVALEMAIL');
    DBMS_SCHEDULER.create_job (job_name => 'ASH411APPROVALEMAIL_JOBNAME'
    || P_ATS_NO,
    program_name => 'ASH411APPROVALEMAIL',
    enabled => TRUE,
    comments => 'Comments'
    EXCEPTION
         WHEN NO_DATA_FOUND THEN
         null;
    END ASH411APPROVALEMAIL_async;
    end ASH411APPROVALEMAIL_PKG;

    Hi, Howard,
    csphard wrote:
    Now when I go back and create the package again with the procedures it say package body created but does not
    display anything."Package body created" is all it ever says (unless there's an error message).
    How do I see the procedures I just created when I ran the package again with the procedures?If you want to see the source code, look at the CREATE PACKAGE BODY command in the script you just ran, or query the data dictionary view user_source:
    SELECT       text
    FROM       user_source
    WHERE       name     = 'ASH411APPROVALEMAIL_PKG'
    AND       type     = 'PACKAGE BODY'
    ORDER BY  line
    ;

  • Package and deploy Photoshop presets with Configurator panels ?

    Hi,
    is there any functionality available in either Configurator or the Extension Manager that might allow me to package and install some Photoshop presets (brushes, shapes, scripts etc) when I create a ZXP file ?.
    I work as an educator, and really like the idea that the Panels can be deployed so easily by novice users. It would be particularly useful if I could also add some content to the presets folder at the same time as installing a Panel.
    Thanks

    An example on how to configure the mxi file for installing  your personal items ( as an example i use burshes) :
    1-Create a new folder inside the directory :   Adobe Extension Manager/Samples/  and call it Photoshop
    2-go to Adobe Extension Manager/Samples/Dreamweaver/
    copy the DreamweaverBlank.mxi file, past it in the Photoshop folder you Have created and rename it PhotoshopBlank.mxi
    You will keep this file as a template.
    3-open the file you renamed with a text editor
    make the modifications  you see below and save it with a nameyoulike.mxi   (without spaces)
    <macromedia-extension
    name="name you want"
    version="number you want"
    The description above will appear in extension manager
    type="command">
    <!-- Describe the author -->
    <author name="your name" />
    <!-- List the required/compatible products -->
    <products>
    <product name="Photoshop" version="version" primary="true" />
    </products>
    instead of dreamweaver write Photoshop, and change also the version
    ( for example Photoshop CS4 is version 11.0,  CS5 is version 12.0)
    That will  target photoshop as program where to install your brush
    <!-- Describe the extension -->
    <description>
    <![CDATA[
    write a description  of the presets you are installing, this will appear in Extension Manager.
    ]]>
    </description>
    <!-- Describe where the extension shows in the UI of the product -->
    <ui-access>
    <![CDATA[
    write a description  of where the  presets you are delivering will be installed in PS.
    ]]>
    </ui-access>
    <!-- Describe the files that comprise the extension -->
    <files>
    <file name="Your brushes' name.abr" destination="$presetsfolder/brushes" />
    <file name="Your brushes' name2.abr" destination="$presetsfolder/brushes" />
    <file name="Your brushes' name3.abr" destination="$presetsfolder/brushes" />
    </files>
    describe the file that will be packaged and the path destination folder
    <!-- Describe the changes to the configuration -->
    <configuration-changes>
    </configuration-changes>
    </macromedia-extension>
    4- place your Your brushes' name.abr /Your brushes' name2.abr /Your brushes' name3.abr
    near the mxi file you have edited and personalized with the same brushes'name
    5- launch Extension Manager CSxx , go to File>Package Extension and go to  Adobe Extension Manager/Samples/ Photoshop and choose your nameyoulike.mxi
    If you want to target a different folder than Presets where to install your item see attribute in the pdf link 
    NOTE:
    if you want to install your items  (  the brushes in this example)   toghether the the installation of your panel  you have to edit   the  .mxi panel file and adding only the part that " Describe the files that comprise the extension":
    <file name="Your brushes' name.abr" destination="$presetsfolder/brushes" />
    May be you can now deploy your panel and items  immediately and have time to read more in the pdf when you'll have time

Maybe you are looking for