Creating PL/SQL Package with all the types

CREATE OR REPLACE
TYPE rec_type AS OBJECT (
first_name VARCHAR2(20),
last_name VARCHAR2(20)
CREATE OR REPLACE
TYPE REC_TYPE_TAB AS TABLE OF rec_type
I am able to create the above types in oracle and used in PL/SQL packages. And like this I have somany types. I would like to if I can create a package with the types to make the life easier. Could you please tell me how to do it.
your help is greately appreciated..
--Krish                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

sb92075 wrote:
TYPE add only aggravation, complexity, & should be avoidedI disagree.
When used correctly types can be the simplest solution.
For example when passing multiple values to a stored procedure. Avoiding the type in the below example would lead to further complexity and aggravation not lessen it.
SQL> create or replace procedure p
  2      (
  3      p_object_list in sys.odcivarchar2list,
  4      p_result out sys_refcursor
  5      ) as
  6  begin
  7      open p_result for
  8          select owner, object_name, object_type
  9          from all_objects
10          where object_name in
11              (
12              select column_value from
13              table(p_object_list)
14              )
15          order by
16              owner, object_name, object_type;
17  end;
18  /
Procedure created.
SQL> exec p(sys.odcivarchar2list('DUAL','ALL_OBJECTS'),:c)
PL/SQL procedure successfully completed.
SQL> print c
OWNER                          OBJECT_NAME                    OBJECT_TYPE
PUBLIC                         ALL_OBJECTS                    SYNONYM
PUBLIC                         DUAL                           SYNONYM
SYS                            ALL_OBJECTS                    VIEW
SYS                            DUAL                           TABLE

Similar Messages

  • C3 did not work with all the types of routers

    Hi!
    My problem is with the C3 (Hungarian 03.36 Vodafone), that the e-mail program is not working with all the wlan routers. My home router is Asus WL-520GC and with it I get communication error, but with a Linksys or a Tplink router everything is good. How can it be?
    (I ve heard it from outhers too)
    (both WPA2personal and DHCP)
    I tried it with factory settings, but same problem: communication error.
    Pls help! 

    Solved: I had to upgrade the firmware of the router.
    It works

  • What way can I format my emails so iphone can create calendar events automatically with all the information?

    I use a website to send emails to myself. It already sorta creates the calendar event but requires a lot of editing. The link-back to the email makes it super easy to just go to the original. But I'm wondering if there's a specific format I can put the emails so that when creating the calendar event, it just has all the information, instead of parts of it?

    Please don't respond with useless comments.  I've already addressed the fact that my screen was broken a few months ago.  My phone may or may not be broken beyond repair either way, as I said before I can't afford a new phone.  It's a strange problem because from what I can tell no one else has posted the same problem anywhere I can find.  Don't be a dickhole.

  • How can we Create a Media with all the OS,Applications and drivers with cutomize settings in MDT to automate the deployment

    Hi,
    I need to Create a media along with all the packages (OS,Drivers, Applications and customized settings) through MDT for the windows 8.1 deployment.
    Can someone guide me?
    Shailendra Dev

    Hi,
    Here are 3 great links to get you started:
    http://technet.microsoft.com/nl-nl/windows/dn481547
    http://c-nergy.be/blog/?p=3968
    http://windowsitpro.com/windows/create-windows-7-media-deployment
    This should provide you enough information to do what you want.
    If this post is helpful please click "Mark for answer", thanks! Kind regards

  • How create LOV(select List) with all LDAP users

    Hello,
    I am trying to create a selected list with all the users in my LDAP, note my LDAP is synchronized with my OID.
    Any suggestions, I'm searching the the pl/sql statment?
    Thanks
    Hussam

    Hi Hussam,
    Take a look at my comments in the following two threads -
    Re: LDAP
    Re: Cookie And LDAP
    The two different threads discuss the methods I use to do what you want to do (so you really need to 'combine' the two different threads).
    Hope this helps

  • How to Download the Custom Package Created with all the objects

    Hi All,
    Could any body let me know how to download a custom package created in sap with all the objects including webdynpros and modulepool programs.
    Thanks.

    Hi,
    U can use open source programs available in net like Mass Download, ZAPLINK, SAPLINK.
    Mass Download --> Download the objects
    SAPLINK, ZAPLINK --> Used for downloading and also for importing the downloaded objects to other system.
    Regards,
    Arun

  • Creating Web service for PL/SQL Procedure with Complex Data Types

    I need to created web service for PL/SQL Procedure with Complex Data types like table of records as parameters, how do we map the pl/sql table type parameters with web service, how to go about these?

    Hello,
    When you are creating a service from a Stored Procedure, the OracleAS WS tools will create necessary Java and PL wrapper code to handle the complex types (table of record) properly and make them compatible with XML format for SOAP messages.
    So what you should do is to use JDeveloper or WSA command line, to create a service from your store procedure and you will see that most of the work will be done for you.
    You can find more information in the:
    - Developing Web Services that Expose Database Resources
    chapter of the Web Service Developer's guide.
    Regards
    Tugdual Grall

  • I am changing from Word to Pages. I have created my custom template with all my styles etc and that is what comes up when I go for a New Document. Fine. How do I get it to use the same Custom Template when I use Pages to open a Word document?

    I am changing from Word to Pages. I have created my custom template with all my styles etc and that is what comes up when I go for a New Document. Fine. How do I get it to use the same Custom Template when I use Pages to open a Word document?

    The template is a document in itself, it is not applied to an existing document whether it is a Pages document or a Word document converted to a Pages document.
    You would need to either copy and paste content, using existing styles, or apply the styles to the converted Word document.
    You can Import the Styles from an existing document and those imported Styles can be used to override the current document's styles:
    Menu > Format > Import Styles
    The process is simplified if the styles use the same names, otherwise you will need to delete the style you don't want and replace it with the one that you do want when asked, then the substitution is pretty straightforward.
    Peter

  • I want to go back to the previous 2014.2 version.  .3 is much too buggy and full of error messages. Creating problems as I am on a timeline with my client and I don't have time to fool around with all the problems.

    2014 .3 is much too buggy and full of error messages. Creating problems as I am on a timeline with my client and I don't have time to fool around with all the problems.

    You didn't mention what error(s) you've encountered? A workaround for the most commonly hit problem is here Re: error in Muse : Object UID:U6875 has two (or more) owners: U3633 and U3165
    If you have a copy of your .muse file that has not been saved using 2014.3, you can downgrade by uninstalling Muse and then choose Previous Version in the Filters drop down in the Apps panel of the Creative Cloud desktop app. There will be a popup next to Muse where you can select a prior version to install.

  • Remove packages and all the config files associated with it

    How can I remove a package and all the files folders hidden folders config files and examples which are installed with it.
    In short how can I revert the system back to the state when the package was not even there.
    When i remove a package i still see some folders which are associated with it in some weird directories.
    Is there a way to get rid of those.
    Thanks

    From the pacman man page:
    Remove Options
    -c, --cascade
        Remove all target packages, as well as all packages that depend on one or more target packages. This operation is recursive, and must be used with care since it can remove many potentially needed packages.
    -k, --keep
        Removes the database entry only. Leaves all files in place.
    -n, --nosave
        Instructs pacman to ignore file backup designations. Normally, when a file is removed from the system the database is checked to see if the file should be renamed with a ".pacsave" extension.
    -s, --recursive
        Remove each target specified including all of their dependencies, provided that (A) they are not required by other packages; and (B) they were not explicitly installed by the user. This operation is recursive and analogous to a backwards --sync operation, and helps keep a clean system without orphans.
    -n seems to be what you are looking for.

  • PL/SQL Package with only Constants

    We have created a PL/SQL package with a Spec and NO BODY with only constant values.
    When a user logs onto the Database for the first time, and runs a program the first time the "Constants" package is called you get a ORA-06502, but every time after the first there is no issues. This only happens the first the user logs onto the database ( Session based ).
    Cory

    You have a wrong declaration in your package, some like c2 in the following example.
    EDV@mtso> create or replace package xxx
      2  is
      3    c1 number := 1;
      4    c2 number := 'aa';
      5    c3 number := 3;
      6  end;
      7  /
    Package created.
    EDV@mtso> var t number
    EDV@mtso> exec :t := xxx.c1;
    BEGIN :t := xxx.c1; END;
    ERROR at line 1:
    ORA-06502: PL/SQL: numeric or value error: character to number conversion error
    ORA-06512: at "EDV.XXX", line 4
    ORA-06512: at line 1
    EDV@mtso> print t
             T
    EDV@mtso> exec :t := xxx.c1;
    PL/SQL procedure successfully completed.
    EDV@mtso> print t
             T
             1
    EDV@mtso> exec :t := xxx.c3;
    PL/SQL procedure successfully completed.
    EDV@mtso> print t
             T
    EDV@mtso> Note that constants declared before the errorous one have a value, constants declare after that one have no value.
    Anton
    Message was edited by:
    ascheffer

  • Identifying all the types that implements a particular type using roslyn syntax tree.

    I have a method that takes the syntax tree of a .cs file as an argument.This method has to find all the types that inherits or implements a  particular type e.g. finds occurrences of all instances of statements "SqlConn
    c = new SqlConn()" because it implements IDisposable. I am using Roslyn API.

    I had a system recently containing seven sequence files, approx 20 subsequences in each, and around 10-20 steps in each sub-sequence. Every step (except for the NI non-code module types) was an instance of a step type.
    Each one of these steps had an Edit sub-step and a code module called through the code module adapter.
    In order to make these into "wrapped up" step types it was decided to move the code module to a Post-Step substep (as also done in the NI-IVI step types) - so that developers cannot fiddle with the code prototype or module.
    In order to do this I had to open all 7 of the sequence files, make the changes and then ensure that "Apply changes in this dialog to a loaded instances" was checked. This seems to sort of work, but some steps started causing Error 17502 (System Error) when you configure them (call the Edit substep). Over the course of the past few months I have had to effectively check every instance of a type to see if it works (deleting the step and replacing it when it doesnt). Other strange things happened like some of the step type instances now have the "None" (adapter) icon associated with them - but both still work.
    The idea of creating a type-def of a step type is a good one, but frustrating that it doesnt seem to fully work. Why should the sequence file also store a version of the step-type - which is what is effectively causing this problem - why not make it so that if you dont have the step types installed in the type palette - TOUGH! Message Edited by RichM on 03-15-2005 06:55 AM

  • Itunes isnt recognising my iphone 4 after i restored my phone and updated it to ios7 on windows, but the computer recognises it...please help ppl..m done with all the recomendations given by apple

    itunes isnt recognising my iphone 4 after i restored my phone and updated it to ios7 on windows, but the computer recognises it...please help ppl..m done with all the recomendations given by apple

    if require the new itunes11.1.X
    if you already have that and it's windows then uninstall itunes
    use regEdit you can type that in run or the likes and search and delete all hits you get on itunes
    then reboot windows and install itunes again

  • If I put my I tunes library in my external hard disk can I still share it with all the accounts of my Mac?

    If I put my I tunes library in my external hard disk can I still share it with all the accounts of my Mac?

    Hello there, Gnorra.
    The following Knowledge Base article reviews how to share your music in iTunes with multiple users on the same computer:
    iTunes: How to share music between different user accounts on a single computer
    http://support.apple.com/kb/ht1203
    If you're using Mac OS X, follow these steps:
    Quit iTunes.
    Go to your iTunes Media folder. By default, it's in ~/Music/iTunes. (This folder may be named iTunes Music if you created your iTunes library in iTunes 9 or earlier.) 
    Note: "~" represents your Home folder. Other users on your computer can't access these locations.
    Drag the iTunes Media folder to a public location. For example, you could move it to the Public folder in your Home folder (~/Public) or to a location outside your Home folder that other users can access (/Users/Shared).
    Important: Don't move the iTunes folder, the iTunes library file, or the iTunes library.xml file.
    Open iTunes.
    Choose iTunes > Preferences.
    Click Advanced.
    Click the Change button.
    In the window that opens, go to your iTunes Media folder.
    Click Choose or Open.
    Repeat these steps for each user that you want to share music with. If multiple users on your computer are storing music in the same public folder, duplicate song files may appear if a user imports music from a CD that another user already imported.
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • Replicating SRM PO to ECC PO with all condition types

    Hi Friends,
    I want to Repliacte SRM to ECC PO with all condition types, can any one give me idea on this
    thnx
    Kumar Srini

    I think you meant "replicate SRM PO's condition set to ECC PO". If this is the case, there are a couple of options.
    Option 1. In ECC, implement BADI BBP_PO_INBOUND_BADI, method: BBP_MAP_BEFORE_BAPI
    In the method implementation, make a remote function call to SRM BBP_PD_PO_GETDETAIL. Get the condition information (E_PRIDOC). Then map it to the BADI interface parameter BBP_POCONDHEADER / BBP_POCOND
    Option 2. In SRM, copy your PO transfer driver FM, e.g. B46B_DPO_TRANSFER. In the copied FM, e.g. ZB46B_DPO_TRANSFER, get the PO condition information, insert two additional parameters, POCONDHEADER / POCOND when calling BBP_PO_INBOUND, and map the SRM PO condition to these two parameters accordingly. Then implement BADI BBP_DRIVER_DETERMINE to switch to your own FM driver.

Maybe you are looking for

  • Always have to log in again

    Hi, when working BC in Dreamweaver and Browser simultanously, I have to log in whenever changing the programm. Making a change in DW and going back to the Admins panel in the browser, have to re-log-in. When waiting oder resting for a few minutes, go

  • CAB-VGA-DVI-AUD25=

    Hi, I have a problem regarding the presentation cable Part ID: CAB-VGA-DVI-AUD25 This cable used to be this config DVI           ->       VGA RCA         ->       3.5 mm stereo But now (since this summer 2014) its seams to be this config on the cable

  • TS1702 Keynotes got hung up in updating and kept everything else from updating. I deleted it and now it doesn't show as an app I had purchased, so I can't try downloading it again. What's going on?

    Keynotes got hungup in updating and kept everything else from downloading. I deleted Keynotes and everything else downloaded. Then I tried to relad Keynotes and it didn't show up as something I've purchased. What's going on?

  • Still images become distorted

    When I add still images to a clip, they start out playing fine, but after maybe a minute or so they change to these distorted, weird lines...not even close to the original image. Can anyone give me any suggestions?

  • Preview won't open PICTs

    Preview will no longer open PICT files. This is since I dragged three of them simultaneously on to Preview's icon which resulted in one of them opening, but not the others. Now I can't open any, either by dragging and dropping or through File>Open, w