Sample package

Hi every body
I am learning plsql.I am new to this plsql programing.please kindly help me.I am trying to develop packages in plsql developer.But when i create package spec i am getting error oracle is not connected.in the help topic we need to give the html file path,
please kindly help me and let me know asap
Give me sample package cover all the functionalites pls.
thank Q

In the Error message doc you can find the error code you are getting and check what it means..
http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14219/toc.htm
if you're stuck, provide more info about your error message, and hopefully someone in this forum knows what to do!
PL/SQL samples:
http://www.oracle.com/technology/sample_code/tech/pl_sql/index.html
cheers
-per

Similar Messages

  • BPC 7.0 NW Load_Infoprovider sample package

    Hi Gurus,
    It is possible to load data with Load_Infoprovider sample package from a multicube?
    Thanks a lot,
    Raffi

    Yes it is possible to load data from multiprovider into BPc application using the DM package. Please make sure that you create the right transformation file and get it validated with the multiprovider from where you want to load the data.
    Regards
    Pravin

  • Default Username and Password for Sample Packages

    Hello,
    What is the default username and password for sample packages mentioned in this article for all the sample packaged applications?
    http://www.oracle.com/technology/products/database/application_express/packaged_apps/packaged_apps.html#PACKAGED
    Regards
    Edited by: user20090209 on May 19, 2010 1:37 PM

    Hi,
    Try same user name and password as you login to your workspace.
    Most of applications use Application Express authentication
    Br,Jari
    Edited by: jarola on May 19, 2010 9:06 AM
    And when you have downloaded and installed application to your workspace, you can always change authentication

  • When are sample packaged applications returning

    http://www.oracle.com/technetwork/developer-tools/apex/application-express/packaged-apps-090453.html
    Are they coming soon, does anyone know?
    Thanks
    Marc

    Hello Paul,
    >> It would be nice to know what these deficiencies are so that we can rectify them in any applications derived from old packaged applications
    I’m not a member of the development team, but from previous talks with both Joel and Marc I understand that the main changes will be with regards to utilizing the new Tabular Form features introduced in 4.1. Out of those, the main changes will be to forsake direct manipulations of the G_Fxx arrays in favor of using the “column name” with bind variable notation, both in Validations and Processes.
    Where security is concern, focus on the new ways to implement Authentication and Authorization using their new implementation (based on the Plug-In technology).
    As most of the packaged applications were developed for the 3.x environment, I believe that using more jQuery stuff is also something that will see in the new versions.
    Regards,
    Arie.
    ♦ Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    ♦ Author of Oracle Application Express 3.2 – The Essentials and More

  • Describing content of the package.

    Hello
    I'm trying to describe the content of the package from PL/SQL procedure. So far I have been using DBMS_DESCRIBE and ALL_ARGUMENTS VIEW. I have no problem with finding procedures/functions and their parameters.
    What I'm having problem with is finding types defined in the package and describing them. So if there is a type of record defined in the package, I would like to retrieve the structure of the record.
    Any help or suggestions will be much appreciated.
    Regards
    MJ

    Hello.
    The MichaelS's answer is brilliant, however I do use version 10g and this solution wouldn't work.
    I was trying different approach. Let's create sample package:
    Create Or Replace
    Package Sample_Test As
         Type My_Rec Is Record (      Rec_Val_1    Varchar2(50),
                                      Rec_Val_2    Number  );
         Type My_Other_Rec Is Record (Rec_Val_3    Date,
                                      Rec_Val_4    Number  );
         Type My_Tab Is Table Of My_Rec;
         Function My_Fun (P_Param_1 In Number) Return My_Tab Pipelined;
    End Sample_Test;I was able to get partial result by executing query below:
    Select * From User_Types Where Type_Name Like (
                   Select    'SYS_PLSQL_'||Object_Id||'%'
                   From      User_Objects
                   Where     Object_Type = 'PACKAGE'
                   And       Object_Name ='SAMPLE_TEST'
    );I was getting the three records in the output:
    SYS_PLSQL_102669_DUMMY_1
    SYS_PLSQL_102669_9_1
    SYS_PLSQL_102669_37_2
    From this I can get the list of a attributes/fields using User_Type_Attrs.
    There are few elements that I'm not yet sure about. Main one is how the type_name is actually build.
    For example in the list above what is the meaning of the part of the string after 102669 ?
    Another is how to link type_name with the name of the type that existst in the list of arguments. Like the one returned by following query:
    Select Aar.Type_Name||'.'||Aar.Type_Subname, Aar.*
    From   All_Arguments Aar
    Where  Aar.Package_Name = 'SAMPLE_TEST'
    And    Aar.Data_level = 1I have to admit that it is not critical issue for me, however I'd like to understand it fully.
    Regards,
    MJ

  • Master child Package Example package

    Hi Experts,
    Can any of you guys please send some sample packages for master - child packages (dtsx files) which includes all configuration from an xml file to [email protected]?
    XML conf --> Master --> Childs
    I am new to SSIS and i just wanted to have a look at the options in those packages.
    Regards
    mukejee

    Hi Mukejee,
    To setup the association between the parent package and child package, there are two approaches:
    Through passing variables. Specify the child package for the Execute Package Task in the parent package, and then add a Parent package variable type configurations in the child package.
    Through passing parameters. Specify the child package for the Execute Package Task in the parent package, and map the parent parameters and the child parameters. No additional actions are needed in the child package.
    Besides, the XML Configurations for a package is not affected by the factor that whether it is a parent/child package of another package or not.
    Here, I have created two SSIS 2012 packages with the parent-child relationship that you can download from my
    SkyDrive. In the parent package, I create a variable VarMaster with the value “This is a parent package variable.” In the child package, I create a variable VarChild with the value “This is a child package variable”, and use a Script Task to display the
    value of the VarChild variable. You can see that the Script Task returns different values when we run the parent package or run the child package. 
    Regards,
    Mike Yin
    TechNet Community Support

  • µpkg: Very simple package installer/remover

    I was recently looking at the documentation for Arch packages and thought "Holy crap, that looks like a pain!". Especially for something really small, like a brainf*** interpreter. So what did I do? I took it upon myself to create my own packaging utility and file format, of course!
    µpkg is written entirely in bash and is fairly small, about 115 lines total (although expect that number to increase as I implement more functionality).
    Also, a note on versioning. I'm not going to use the decimal/point system, but a revision-based one. So much cleaner, not to mention easier to type.
    Format
    Packages are [optionally compressed] tarballs that contain a number of scripts and some files (duh). They're laid out like so:
    * pre-install: Executed before installing.
    * post-install: Executed after installing.
    * pre-uninstall: Executed before uninstalling.
    * post-uninstall: Executed after uninstalling.
    * files/: A directory containing files, located such that they will be in the corresponding places in the root filesystem once installed.
    Sample Packages
    * sudo 1.7.1 x64
    * bfutils x64 — Brainf***-related utilities.
    To install, simply run "upkg install <package>" as root.
    Downloads
    * µpkg 1 — First release.
    * µpkg 2 — Adds removal functionality. Improvements to internal library.
    * µpkg 3 — Library fixed due to bugs.
    * µpkg 4 — Now runs appropriate scripts when uninstalling.
    Decompress the tarball and run the included installation script.
    Obligatory Disclaimer
    I cannot be held responsible if µpkg s**ts all over your system.
    To Do
    * Add package removal capabilities. [DONE]
    * Maybe add package management (possibly as separate utility).
    Last edited by Peasantoid (2009-05-03 03:24:06)

    Interesting idea! Like others have said I don't really have a use for this myself but that is irrelevant. If you are having fun and find the utility useful others might too. If not, it's all good coding experience. Keep working on it.
    Peasantoid wrote:Like I said, it seems like overkill to create an Arch package with all the metadata, dependencies, and so on if you're just distributing something small.
    Personally I like Arch's PKGBUILDS. Arch is the first distro where I made up or edited the existing packages. It's just so easy. I never looked into making my own packages when running Gentoo though I don't know why. Arch's PKGBUILDS just sort of sneak up on you. At first you just use pacman, then you find something in AUR and you install ABS, then you are rebuilding packages in the repos to customize them for yourself and before you know it you are making your own package builds.
    Peasantoid wrote:Platform specificity. µpkg doesn't have any ties with Arch (pacman, makepkg, and so on), so it's more or less cross-platform — it'll work with any distro, the BSDs, and even OS X. (But not Windows, obviously.)
    This would be an interesting nut to crack. Things like autopackage have been less than successful as far as I know. If someone came up with a cross platform package format that was accepted by the OSS comunity and actually used that would be cool.
    Last edited by mikesd (2009-05-03 02:04:31)

  • PLS-00801: Internal Error - Compiling Package in JDeveloper

    I am trying to compile a package in JDeveloper so that I will be able to debug it. The issue is that the whenever I compile it I get a back an PLS-00801: Internal Error.
    What is really strange is that when I compile it using sqlplus - the package comes back fine without any problems.
    The package is approximately 5400 lines, contains UTF8 characters (I turned on UTF8 encoding in order to get the package to show correctly [found that one on this site - thank you]). It contains approx 15 methods, lost of cursors, ...
    I am using the following version of JDeveloper.
    Version 9.0.4.0 (Build 1419)
    Oracle IDE: 9.0.4.13.2
    UML Modelers Vers: 9.0.4.12.69
    JMIG Framework: 9.0.4.3.75
    SCM Support Version: 9.0.4.12.69
    Business Components: 9.0.4.13.79
    Java Version: 1.4.2_03
    Java Home: c:\Programs\JDev9i\jdk\jre
    Any help would be greatly appreciated - even pointing me in the direction of the logs to see if I can track down why I am getting this error.
    Thank you
    Marc Padberg

    Okay -
    I broke down the PL/SQL package and figured out what was causing the internal error - it was a parameter that was based on ROWTYPE of a cursor.
    Whenever I have a CURSOR%ROWTYPE as a parameter I get an internal error in JDeveloper.
    Any help to resolve this would be greatly appreciated.
    I wrote a small sample package using dual that simulates this.
    CREATE OR REPLACE PACKAGE sample_problem IS
    PROCEDURE call_internal_method;
    END sample_problem;
    CREATE OR REPLACE PACKAGE BODY sample_problem IS
    CURSOR get_data IS
    SELECT 'Test' as NAME FROM dual;
    -- I have to comment this method out
    -- in order to compile in JDeveloper
    PROCEDURE internal_method_with(p_rec get_data%ROWTYPE)
    IS
    BEGIN
    DBMS_OUTPUT.put_line(p_rec.NAME);
    END internal_method_with;
    PROCEDURE internal_method_without
    IS
    BEGIN
    DBMS_OUTPUT.put_line('No Rowtype Passed');
    END internal_method_without;
    PROCEDURE call_internal_method
    IS
    lrec_get_data get_data%ROWTYPE;
    BEGIN
    OPEN get_data;
    FETCH get_data INTO lrec_get_data;
    CLOSE get_data;
    -- I have to comment this method out
    -- in order to compile in JDeveloper
    internal_method_with(lrec_get_data);
    internal_method_without;
    END call_internal_method;
    END sample_problem;
    /

  • Packaged Application installation error??

    Hi guys,
    I have downloaded sample packaged application from APEX product home page, and trying to download these application but continiously facing error, i have tried both to install (using application express and through sqlplus with FLOWS_020200 user) but unable to install it,
    Can anyone tell me how to install these sample applications supplied by Oracle corporation ???
    Your prompt reply will be appriciated .
    thanks & regards
    qamar

    Qamar,
    Can you give us more information? As in, what error do you get and when does it appear?
    The steps to install the packaged samples are:
    - Unzip the packaged application to a .sql file
    - In APEX, go to Home > Application Builder > Import and select the .sql file, then follow the steps in the wizard.
    Marco

  • ADT Packaging APK With Native .so Libs

    Greetings,
    I have 2 native libararies (.so) which I need to include in an apk.  It appears that they MUST exist in the following 2 directories:
    myAPK
    /lib
    /armeabi
    /armeabi-v7a
    My team has spent probably 72 hours ellapsed trying to figure out how to do this and we have yet to find a solution.  Thus far we have tried:
    Extracting an .apk archive, manually inserting the above /lib directory as needed, re-zipping the .apk, and then re-signing the apkThis approach was haulted by the fact that no matter what we did in terms of signing, when trying to run the APK on a device, logcat informed us that there were no certificates present.  This is almost certainly untrue, but it suggests that we simply do not understand the complexities of re-signing a previously signed APK after we have manually altered it.
    Including the /lib directory when calling the ADT packagerThis call successfully included the /lib directory, but the /lib directory was located within the APK's /assets directory like all of the other AIR files.  This seems to prevent the Android loader from locating the native libraries.
    A permanent solution to this problem would be great, but at this point I will even thank someone for a completely hacked solution because this impediment has crippled our entire project's foreword progress.
    Thanks.
    Matt

    Hi,
    Does the section "Including additional Android shared libraries in the ANE package" in this doc help? http://help.adobe.com/en_US/air/extensions/WSf268776665d7970d-2482335412ffea65006-8000.htm l#WSf268776665d7970d-6be13ace1308aaebeca-7fff
    Here is the sample package script snippet for your reference:
    echo "****** ANE *******"
    unzip -o ./source/$NESWC/bin/$NESWCNAME.swc -d ./Source_ANE/Android-ARM
    $AIRSDK/adt -package \
        -storetype PKCS12 \
              -keystore ./$CERT \
              -storepass $CERTPASS \
              -target ane ./Source_APK/$EXTID.ane \
              ./source/$NESWC/src/extension.xml \
              -swc ./source/$NESWC/bin/$NESWCNAME.swc \
              -platform Android-ARM \
              -C ./Source_ANE/Android-ARM/ \
    echo "****** APK *******"
    cp ./source/$NEAPP/bin-debug/$NEAPPNAME.swf ./Source_APK
    cp ./source/$NEAPP/bin-debug/$NEAPPNAME-app.xml ./Source_APK
    cd ./Source_APK
    $AIRSDK/adt -package \
        -XnoAneValidate \
              -target apk \
              -storetype PKCS12 \
              -keystore ../$CERT \
              -storepass $CERTPASS \
              ../$NEAPK.apk \
              ./$NEAPPNAME-app.xml \
              ./$NEAPPNAME.swf \
              -extdir .
    Thanks,
    Jian
    Adobe Flash Runtime team

  • How to get a called procedure/function name within package?

    Hi folks,
    is it possible to obtain a called procedure/function name within package?
    For a measuring and tracing purpose, I would like to store an info at the beginning of each procedure/function in package with timestamp + additional details if needed.
    For example:
    CREATE OR REPLACE PACKAGE BODY "TEST_PACKAGE" IS
       PROCEDURE proc_1 IS
       BEGIN
          api_log.trace_data(sysdate, 'START.' || ???????);
          api_log.trace_data(sysdate, 'END.' || ???????);
       END;
       PROCEDURE proc_2 IS
       BEGIN
          api_log.trace_data(sysdate, 'START.' || ???????);
          proc_1;
          api_log.trace_data(sysdate, 'END.' || ???????);
       END;
    END; I would like to replace "???????" with a function which would return a name of called procedure, so result of trace data after calling TEST_PACKAGE.proc_2 would be:
       11.1.2013 09:00:01    START.*TEST_PACKAGE.proc_2*
       11.1.2013 09:00:01    START.*TEST_PACKAGE.proc_1*
       11.1.2013 09:00:01    END.*TEST_PACKAGE.proc_1*
       11.1.2013 09:00:01    END.*TEST_PACKAGE.proc_2*I tried to use "dbms_utility.format_call_stack" but it did not return the name of procedure/function.
    Many thanks,
    Tomas
    PS: I don't want to use an hardcoding

    You've posted enough to know that you need to provide your 4 digit Oracle version (result of SELECT * FROM V$VERSION).
    >
    is it possible to obtain a called procedure/function name within package?
    For a measuring and tracing purpose, I would like to store an info at the beginning of each procedure/function in package with timestamp + additional details if needed.
    >
    I usually use this method
    1. Create a SQL type for logging information
    2. Put the package name into a constant in the package spec
    3. Add a line to each procedure/function for the name.
    Sample package spec
          * Constants and package variables
              gc_pk_name               CONSTANT VARCHAR2(30) := 'PK_TEST';Sample procedure code in package
          PROCEDURE P_TEST_INIT
          IS
            c_proc_name CONSTANT VARCHAR2(80)  := 'P_TEST_INIT';
            v_log_info  TYPE_LOG_INFO := TYPE_LOG_INFO(gc_pk_name, c_proc_name); -- create the log type instance
          BEGIN
              NULL; -- code goes here
          EXCEPTION
          WHEN ??? THEN
              v_log_info.log_code := SQLCODE;  -- add info to the log type
              v_log_info.log_message := SQLERRM;
              v_log_info.log_time    := SYSDATE;
              pk_log.p_log_error(v_log_info);
                                    raise;
          END P_PK_TEST_INIT;Sample SQL type
    DROP TYPE TYPE_LOG_INFO;
    CREATE OR REPLACE TYPE TYPE_LOG_INFO AUTHID DEFINER AS OBJECT (
    *  NAME:      TYPE_LOG_INFO
    *  PURPOSE:   Holds info used by PK_LOG package to log errors.
    *             Using a TYPE instance keeps the procedures and functions
    *             independent of the logging mechanism.
    *             If new logging features are needed a SUB TYPE can be derived
    *             from this base type to add the new functionality without
    *             breaking any existing code.
    *  REVISIONS:
    *  Ver        Date        Author           Description
    *   1.00      mm/dd/yyyy  me               Initial Version.
        PACKAGE_NAME  VARCHAR2(80),
        PROC_NAME     VARCHAR2(80),
        STEP_NUMBER   NUMBER,
        LOG_LEVEL   VARCHAR2(10),
        LOG_CODE    NUMBER,
        LOG_MESSAGE VARCHAR2(1024),
        LOG_TIME    TIMESTAMP,
        CONSTRUCTOR FUNCTION type_log_info (p_package_name IN VARCHAR2 DEFAULT 'Uninitialized',
                                            p_proc_name IN VARCHAR2 DEFAULT 'Uninitialized',
                                            p_step_number IN NUMBER DEFAULT 1,
                                            p_LOG_level IN VARCHAR2 DEFAULT 'Uninit',
                                            p_LOG_code IN NUMBER DEFAULT -1,
                                            p_LOG_message IN VARCHAR2 DEFAULT 'Uninitialized',
                                            p_LOG_time IN DATE DEFAULT SYSDATE)
                    RETURN SELF AS RESULT
      ) NOT FINAL;
    DROP TYPE BODY TYPE_LOG_INFO;
    CREATE OR REPLACE TYPE BODY TYPE_LOG_INFO IS
        CONSTRUCTOR FUNCTION type_log_info (p_package_name IN VARCHAR2 DEFAULT 'Uninitialized',
                                            p_proc_name IN VARCHAR2 DEFAULT 'Uninitialized',
                                            p_step_number IN NUMBER DEFAULT 1,
                                            p_LOG_level IN VARCHAR2 DEFAULT 'Uninit',
                                            p_LOG_code IN NUMBER DEFAULT -1,
                                            p_LOG_message IN VARCHAR2 DEFAULT 'Uninitialized',
                                            p_LOG_time IN DATE DEFAULT SYSDATE)
         RETURN SELF AS RESULT IS
        BEGIN
          self.package_name  := p_package_name;
          self.proc_name     := p_proc_name;
          self.step_number   := p_step_number;
          self.LOG_level   := p_LOG_level;
          self.LOG_code    := p_LOG_code;
          self.LOG_message := p_LOG_message;
          self.LOG_time    := p_LOG_time;
          RETURN;
        END;
    END;
    SHO ERREdited by: rp0428 on Jan 11, 2013 10:35 AM after 1st cup of coffee ;)

  • PL/SQL package using utl_file.fopen gets invalid_path error

    The init.ora file has utl_file_dir = * in it. When writing a package trying to utilize the utl_file.fopen the invalid_path error always occurs. What is the fix to resolve the path error?

    create or replace package body TEST_UTL_FILE is
    -- Purpose : Sample package that uses UTL_FILE procedure(s)
    -- ===========================================================================================================
    -- Process Request
    -- ===========================================================================================================
    procedure Process_Request is
    -- Local Variable(s)
    v_file_id sys.UTL_FILE.FILE_TYPE;
    v_buffer varchar2(32767);
    begin
    v_file_id := sys.utl_file.FOPEN('D:\Oracle\XMLFiles',
    'Sample1.xml',
    'R');
    sys.utl_file.GET_LINE(v_file_id, v_buffer);
    return;
    exception
    -- Error number -29280
    WHEN UTL_FILE.INVALID_PATH THEN
    RAISE_APPLICATION_ERROR(-20001, 'invalid_path');
    -- Error number -29281
    WHEN UTL_FILE.INVALID_MODE THEN
    RAISE_APPLICATION_ERROR(-20001, 'invalid_mode');
    -- Error number -29282
    WHEN UTL_FILE.INVALID_FILEHANDLE THEN
    RAISE_APPLICATION_ERROR(-20001, 'invalid_filehandle');
    -- Error number -29283
    WHEN UTL_FILE.INVALID_OPERATION THEN
    RAISE_APPLICATION_ERROR(-20001, 'invalid_operation');
    -- Error number -29284
    WHEN UTL_FILE.READ_ERROR THEN
    RAISE_APPLICATION_ERROR(-20001, 'read_error');
    -- Error number -29285
    WHEN UTL_FILE.WRITE_ERROR THEN
    RAISE_APPLICATION_ERROR(-20001, 'write_error');
    -- Error number -29286
    WHEN UTL_FILE.INTERNAL_ERROR THEN
    RAISE_APPLICATION_ERROR(-20001, 'internal_error');
    -- Error number -29287
    WHEN UTL_FILE.invalid_maxlinesize THEN
    RAISE_APPLICATION_ERROR(-20001, 'invalid_maxlinesize');
    -- Error number -29288
    WHEN UTL_FILE.invalid_filename THEN
    RAISE_APPLICATION_ERROR(-20001, 'invalid_filename');
    -- Error number -29289
    WHEN UTL_FILE.access_denied THEN
    RAISE_APPLICATION_ERROR(-20001, 'access_denied');
    -- Error number -29290
    WHEN UTL_FILE.invalid_offset THEN
    RAISE_APPLICATION_ERROR(-20001, 'invalid_offset');
    -- Error number -29291
    WHEN UTL_FILE.delete_failed THEN
    RAISE_APPLICATION_ERROR(-20001, 'delete_failed');
    -- Error number -29292
    WHEN UTL_FILE.rename_failed THEN
    RAISE_APPLICATION_ERROR(-20001, 'rename_failed');
    -- Error number unknown
    WHEN OTHERS THEN
    RAISE_APPLICATION_ERROR(-20001, 'other_error');
    end Process_Request;
    end TEST_UTL_FILE;
    Errors:
    ORA-20001: invalid_path
    ORA-06512: at "SYS.TEST_UTL_FILE", line 21
    ORA-06512: at line 3

  • Getting Packaged Application

    Hi Guys,
    Wow things have changed here in the forums since i was last here!!
    Anyway, just a quick one really...........does anyone know where i can still download the packaged applications which no longer appear on the APEX pages under the latest version?
    I've downloaded and installed the numerous current 'Sample' applications which are great for demonstrating specific features, but i really did like the older versions of the full applications.  I completely understand why they are perhaps no longer relevant given the changes and new functionality in APEX, but as someone who likes to play around in APEX and build apps for my own use, these packaged applications where a source of inspiration.  I often used the applications to help and better understand page layouts for example, or used them to build on my skills with workflow within my applications and navigation between pages etc.
    Anyway, would love to see them come back (I know Oracle say they are currently being updated) but the old ones in the mean time would really help some of us out i think.
    Cheers
    Glen

    Glen,
    You're right, the "sample" packaged applications are generally designed to demonstrate one specific aspect of APEX functionality, rather than serving as examples of fully-functional applications. But we do also have a suite of packaged applications (the ones that don't have "Sample" in the title) which are intended to be fully functional applications; if you're looking for inspiration, you can install those, unlock them, and then open them up in the builder to see how we've done things.
    A few things to note:
    Some of the applications are significantly more complicated than others. P-Track is one of the biggest; Checklist Manager is much smaller. Choose accordingly.
    Once you unlock an application, you cannot "re-lock" it, and will not be able to install any updates released in the future, since we have no way of identifying what changes you have made, and whether they should be kept or not. But if you're just looking to see how we built the application, this shouldn't be an issue.
    For the sample applications, we tried to keep the examples small and easy to follow/duplicate. For the "productivity" applications, our focus has been on creating fully functional, powerful, clean user interface experiences, so some parts of the applications are going to be significantly more complex--multiple cascading dynamic actions, etc.
    Hope that helps,
    -David

  • Flash.sampler question

    Has anyone had much experience with the flash.sampler package.  It looks interesting and potentially quite powerful but I have a few questions.
    Specifically I'm trying to figure out a way to get my application to dump counts for all of the active objects in memory at a given time.  So that it would display something like
    String 50
    Number 20
    CustomObject 10
    etc...
    Looking at flash.sampler startSampling and getSamples it initially looks like I would be able to startSampling and then when I want to do the dump I could call getSamples to get all objects that are in memory.  The problem of course with this approach is that getSamples will return all objects that were created during the sampling period, not just those that are still in memory.  So, it seems like I could create something that tracks all objects that get created but I don't see a way to keep track of those that get cleaned up.
    What would be ideal is a method that I could call that would give me all the live objects in memory.  However I don't see such that such a method exists.  So, is there some way that I would need to manage the results of multiple calls to getSamples and keep track myself of which are still live?  I don't see anyway to figure out when an object is GC'd so there is no obvious way to know which objects are still live.
    Any ideas?  If the flex profiler was really implemented using this API, any ideas how they implemented the ability to display live object counts?
    Thanks in advance.

    One Player for multiple files/folders and it's free!
    http://www.mediacollege.com/flash/media-player/
    --Nancy
    "rack22" <[email protected]> wrote in
    message
    news:esrrf2$3hd$[email protected]..
    > I have four old TV clips in four flash players on my
    page.
    > Those players use up lots of code!
    >
    > Is it possible to have ONE Flash Player, and a list of
    FLVs along side to
    load
    > into it when clicked?
    > Is there a better place for this question?
    >
    > I have flash 8 in this package. I loaded it once and
    boy, it looks too
    tough
    > for me.
    >
    >
    >

  • Changing Wave File Sampling rates

    Hello,
    I was wondering if there was a java class or package that can do this. I want to up sample a 8000 Hz wave file into a 44100 Hz one, and vice versa.
    Any info would be appreciated!
    Vicki

    Use the javax.sound.sampled package.
    Try this:
    // Suppose you got a file, or an url
    File file = new File("Blablablabla.wav");
    AudioInputStream oldstream = AudioSystem.getAudioInputStream(file);
    AudioInputStream newstream = AudioSystem.getAudioInputStream(
              new AudioFormat(44100.0f,16,2,true,false),
              oldstream
    // Use the following code if you want to write to file:
    AudioSystem.write(
      newstream,
      AudioFileFormat.Type.WAVE,
      new File("blabla.wav")
    );The variable oldstrea can also be obtained with an URL.
    Check the part where the AudioFormat is constructed, you may want to change something, but if im right, this is cd quality.
    The last method is for if you want to write the new stream in a file.
    Note that if you change the file extension where it says new File("blabla.wav") and change the AudioFileFormat.Type you can also convert between wav and aiff and au etc.
    R. Hollenstein

Maybe you are looking for