Works with the type as a parameter

CREATE TABLE "SCOTT"."DEPT" 
   ( "DEPTNO" NUMBER(2,0), 
  "DNAME" VARCHAR2(14 BYTE), 
  "LOC" VARCHAR2(13 BYTE) ;


create or replace package p1 
is
type dep_rec  is table of dept%rowtype;
FUNCTION f1 (p_rec in out dep_rec) 
RETURN boolean;
end p1;


create or replace package body p1 
is
 FUNCTION f1 (p_rec  in out dep_rec) 
return boolean
is
begin

if 1=1 then
--some manipulation of in parameters 
--DBMS_OUTPUT.PUT_line(p_rec.deptno);
return true;


end if;
end f1;


end p1;

I use the Scott schema. Oracle 11g. How to call the function f1 and print the values that I'm passing

Don't know what you want, but what you have is a PAINTING, not a single record. You need a loop to access this table line by line.

create or replace package body p1

is

FUNCTION f1 (p_rec in the dep_rec)

return a Boolean value

is

Start

I'm IN 1.p_rec. LOOP OF COUNTING

-some manipulation of settings

DBMS_OUTPUT. PUT_line (p_rec (i). DEPTNO);

END LOOP;

Returns true;

end f1;

end p1;

Tags: Database

Similar Questions

  • Work with the types of different units and measures

    When you work with objects such as cells in a table, you sometimes have to combine measurements of different unit types. For example, if I wanted to calculate the width of a cell whose cell line I might try to combine the width in millimetres of the points race.

    I could change users viewPreferences to a single unit type and then change them back later, but this seems very awkward and if there are problems with the script it leaves users InDesign settings in a bit of a mess.

    What is the best way to work with measures in this way?

    Then you should take a look at:

    CS3 JS: UnitValue

    Uwe

  • LabVIEW:EXE generates the error 1003 calling plugin with the type definition

    Hi all

    I am running LV 2012 on a Win 7 machine. I had this same problem with LV 2011, so I'm sure that's not associated with version/upgrade.

    Go to a LV-built EXE, I try to call a dynamically loaded Subvi. I did it several times with success before, so I think I know how. I prefer to use the call by reference, but I get the error 1003 Open Ref VI (with the type specifier). If I use the type specifier, can I open the Subvi, but the State is listed as 'bad '. Then, I went to recursively through all the subVIs (~ 25 in total) and concluded that the only item with a status of 'Bad' was a type definition.

    I checked several times, several different, that all ways the subVIs (and the definition of Type 'bad') are available to the Subvi dynamics. I did that the type definition is correct. I have also made sure the subVIs are stored as .VI files in the same directory and not within an EXE file. When I try to run the VI run call node, I still get the error 1003. I checked the path that displays in the error dialog box is the exact path for the Subvi (it would be for other VI properties and methods working properly).

    Why can't I run a sub - VI loaded dynamically from an executable if it has a type (a group of 3 trails) as output parameter definition?

    I just tested an idea: rename the library from project to project A create script. Now when it loads, it does not disturb what he must internally with externally called Subvi (dynamic). It worked the first time!

  • problem with the type of local and global

    Hi the gems...

    I have a plsql package. In the package, I defined a proc that takes two input parameters of type simple number and a parameter of a type of output collection.

    create or replace package pack_1 as body
    procedure proc_1 (p_number1 in number, p_number2 number, p_tt_table to tt_table) as
    v_tt_table tt_table:=tt_table();
    type c_ref_cursor is ref_cursor;
    v_c_ref_cursor c_ref_cursor;
    v_sql varchar2 (20000): = < a large sql using bind variables p_number1 and p_number2 >

    Start
    Open the v_c_ref_cursor for v_sql using p_number1, p_number2;
    loop
    extract the v_c_ref_cursor in v_tt_table;
    When the output v_tt_table.count = 0;
    for idx in 1.v_tt_table.count
    loop
    < business logic >
    end of loop
    end loop;
    close v_c_ref_cursor;
    < excpetion_block >;
    end;

    < several codes for the rest of the package >



    When I execute the proc_1 then he throws me error of data type incosistent while to fetch the v_c_ref_cursor of cursor in the v_tt_table variable.
    ORA-00932: inconsistent data types: expected - was -.
    But I have checked that the output of the query is similar with the type of variable.

    Now, a few facts: the tt_table of the user-defined table type is made from ot_table (create or replace tt_table to ot_table Board).
    The parent type i.e. ot_table has the same columns of this query in v_sql my proc.
    The ot_table and the tt_table are global types.

    But when I did these two types as local types, then the proc works very well. But I need them as global types only according to the condition in java.

    Please help me. The database is 11 GR 2.

    Thanks in advance.

    user12780416 wrote:

    I'm trying to keep it in the simplest form... Please take a look...

    Ah... Easy to solve.

    The projection of SQL must be an object of type ot_test_type for extraction in bulk work.

    Your projection of SQL look like this:
    cursor c1 is select object_name from user_objects;

    object_name is a string - it is not of type ot_test_type.

    You must change the projection to return ot_test_type. This is done by using the default constructor for that type of object.

    For example
    cursor c1 is ot_test_type (object_name) select as the user_objects OBJECT;

    He may now be in bulk recovered in tt_test_type.

  • Anyone who works with the CAF (Caltech intermediate Format) files in LabVIEW?

    Hey everybody,

    Anyone who works with the CAF (Caltech intermediate Format) files? These are files that are generated by IC layout programs, such as TannerEDA L-Edit, that define the layers and arrangement of the masks used in VLSI (Photolithography) of processing semiconductor device.

    I would like to analyse these CIF files to generate a map of wafer of devices for use in the-plate test. Currently, a plan of shooting is made and then I manually switch and define coordinates of line and column for the edge of a plate and various places of drop-in. I would like to automate this process, and I don't know if it is possible by playback of these files from the CAF. However, I don't really know how to read them, and I can get as much information from the Wikipedia page and the original article.

    So I ask: anyone has an easier set of screws that make reading CIF file? Or someone working with them can help me with my problem? I can describe it in much better detail once someone comes...

    Here is one of my notebooks CIF of Mathematica (remove the .txt extension obviously).  I used it to create a new CIF file with four instances of the object in a file.

    You can load a file with the following text:

    symName = loadCIF;

    You can see the layers:

    CIFlayers [symName]

    You can view layers:

    Show [{viewCIFlayer [symName, #, color of layer]}]

    (if you wish, add multiple layers to the list)

    If you have a file of type CIF I can also test to see that it recognizes the objects you use, I am generally to polygons and boxes.

  • I had a computer repair man replace my hard drive and restore my laptop and now my orginal key does not work with the copy of vista it has installed and it won't validate.

    I had a computer repair man replace my hard drive and restore my laptop and now my orginal key does not work with the copy of vista it has installed and it won't validate how can I solve this
    I have an acer

    Diagnostic report (1.9.0027.0):
    -----------------------------------------
    Validation of Windows data-->
    Validation status: invalid license
    Validation code: 50
    Validation caching Code online: n/a, hr = 0xc004f012
    Windows product key: *-* - XY9X3 - JDXYP-6CJ97
    The Windows Product Key hash: xFQJU8srKsovk6p1Lk1yW93in4E =
    Windows product ID: 89583-OEM-7332157-00211
    Windows product ID type: 2
    Windows license Type: OEM SLP
    The Windows OS version: 6.0.6002.2.00010300.2.0.003
    ID: {F20B4B72-1308-45BE-8F90-95E91A3F0AAF} (1)
    Admin: Yes
    TestCab: 0x0
    LegitcheckControl ActiveX: N/a, hr = 0 x 80070002
    Signed by: n/a, hr = 0 x 80070002
    Product name: Windows Vista (TM) Home Premium
    Architecture: 0 x 00000009
    Build lab: 6002.vistasp2_gdr.110617 - 0336
    TTS error:
    Validation of diagnosis:
    Resolution state: n/a

    Given Vista WgaER-->
    ThreatID (s): n/a, hr = 0 x 80070002
    Version: N/a, hr = 0 x 80070002

    Windows XP Notifications data-->
    Cached result: n/a, hr = 0 x 80070002
    File: No.
    Version: N/a, hr = 0 x 80070002
    WgaTray.exe signed by: n/a, hr = 0 x 80070002
    WgaLogon.dll signed by: n/a, hr = 0 x 80070002

    OGA Notifications data-->
    Cached result: n/a, hr = 0 x 80070002
    Version: N/a, hr = 0 x 80070002
    OGAExec.exe signed by: n/a, hr = 0 x 80070002
    OGAAddin.dll signed by: n/a, hr = 0 x 80070002

    OGA data-->
    Office status: 109 n/a
    OGA Version: N/a, 0 x 80070002
    Signed by: n/a, hr = 0 x 80070002
    Office Diagnostics: 025D1FF3-364-80041010_025D1FF3-229-80041010_025D1FF3-230-1_025D1FF3-517-80040154_025D1FF3-237-80040154_025D1FF3-238-2_025D1FF3-244-80070002_025D1FF3-258-3

    Data browser-->
    Proxy settings: N/A
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Win32)
    Default browser: C:\Program Files (x 86) \Mozilla Firefox\firefox.exe
    Download signed ActiveX controls: fast
    Download unsigned ActiveX controls: disabled
    Run ActiveX controls and plug-ins: allowed
    Initialize and script ActiveX controls not marked as safe: disabled
    Allow the Internet Explorer Webbrowser control scripts: disabled
    Active scripting: allowed
    Recognized ActiveX controls safe for scripting: allowed

    Analysis of file data-->

    Other data-->
    Office details: {F20B4B72-1308-45BE-8F90-95E91A3F0AAF}1.9.0027.06.0.6002.2.00010300.2.0.003x 64*-*-*-*-6CJ9789583-OEM-7332157-002112S-1-5-21-923204104-223683984-168055983Acer Extensa 5630 Phoenix Technologies LTD.V1.30 20090319000000.000000 + 00070333507018400FA04090409US Mountain Standard Time(GMT-07:00)03ACRSYSACRPRDCT109

    Content Spsys.log: 0 x 80070002

    License data-->
    The software licensing service version: 6.0.6002.18005
    Name: Windows Vista, HomePremium edition
    Description: operating system Windows - Vista, channel OEM_SLP
    Activation ID: bffdc375-bbd5-499d-8ef1-4f37b61c895f
    ID of the application: 55c92734-d682-4d71-983e-d6ec3f16059f
    Extended PID: 89583-00146-321-500211-02-1033-6002.0000-0042012
    Installation ID: 004511331255365043724851364501374781338933223323713385
    Processor certificate URL: http://go.microsoft.com/fwlink/?LinkID=43473
    The machine certificate URL: http://go.microsoft.com/fwlink/?LinkID=43474
    Use license URL: http://go.microsoft.com/fwlink/?LinkID=43476
    Product key certificate URL: http://go.microsoft.com/fwlink/?LinkID=43475
    Partial product key: 6CJ97
    License status: Notification
    Notification reason: 0xC004F063.

    Windows Activation Technologies-->
    N/A

    --> HWID data
    Current HWID of Hash: OgAAAAEAAgABAAIAAwACAAAAAwABAAEAeqjWy6pVxGJ6f0DXhgfkNoBBsJzy9ErM1F/eG4QdrFYqhQ is

    Activation 1.0 data OEM-->
    N/A

    Activation 2.0 data OEM-->
    BIOS valid for OA 2.0: Yes
    Windows marker version: 0 x 20000
    OEMID and OEMTableID consistent: Yes
    BIOS information:
    ACPI Table name OEMID value OEMTableID value
    APIC APIC PTLTD
    FACP INTEL CRESTLNE
    HPET INTEL CRESTLNE
    START PTLTD $SBFTBL$
    MCFG INTEL CRESTLNE
    SLIC ACRSYS ACRPRDCT
    ASF!            OEMID OEMTBL
    SSDT BrtRef DD01BRT
    SSDT BrtRef DD01BRT

    Ah! -in this case, it is not necessary.

    I see from my records that a similar case has been solved by uninstalling and reinstalling the update WAT - KB971033

    Open the Windows Update - click the link view updates installed on the left of the page

    in the list, find the WAT update KB971033, and then uninstall it.

    Then restart and reinstall the update from here - http://support.microsoft.com/kb/971033

    redemarrer restart again, then try to change your product key to the one on the sticker - what is happening this time?

  • Is there a driver for Windows 7 available for this printer? One user in our office was able to make it work with the Vista driver.

    Is there a driver for Windows 7 available for this printer?  One user in our office was able to make it work with the Vista driver.

    According to the website of Epson here

    http://www.Microsoft.com/Windows/compatibility/Windows-7/en-us/search.aspx?l=en-us&type=hardware&s=Epson%20fx-980&OS=32-bit

    the latest drivers are for Windows XP 32-Bit.

    This Epson Web page says drivers

    http://eSupport.Epson-Europe.com/ViewArticle.aspx?LNG=en-GB&kbid=324521

    are available via Windows Update.

    Microsoft Windows 7 Compatibility Center:

    http://www.Microsoft.com/Windows/compatibility/Windows-7/en-us/details.aspx?type=hardware&p=Epson%20FX-980%20Impact%20Printer&v=Epson&UID=C276001&l=en-us&pf=0&PI=0&s=Epson%20fx-980&OS=32-bit

    says it's not compatible.

    Clearly, there is an inconsistency in the tips above. I would try the road to Windows Update to see if his list - I would test it myself to see if its listed, but my connection to Windows Update seems to be suspended.

  • Challenges, working with the Blues in vco vcac plugin

    Hello

    Work with the latest plugin VCAC release VCO (5.2 and 5.5 respectively), I intending me to put a simple set of wrapper script element before the workflow 'Configure a virtual machine for an action plan', such that (to start) entries and group plan Director supply could be sent in the form of simple name strings, rather than expecting to complex objects (as expected) to allow for easier consumption REST API (not through the layer of presentation btw, who used the inventory tree to search for and provide said interactive input objects).  I couldn't find any provided action let me do the recoveries of simple object by name and decided to start by entering a complete picture of the objects and don't string correspondent against her...

    This proved be simple enough for the provision of groups and works very well - namely due to the provided method "host.findAllChildProvisioningGroups ()", you were using it directly or through the action "getAvailableProvisioningGroups".

    Blue are becoming another story.  I found the 'getBlueprints' action, which appears to be operated by the presentation layer when the workflow is run interactively, holding an object provisioningGroup in entry (which I had already recovered above).  It did not work when used in a script element, however.  After reviewing the support action, I found that it relied on a property of the object group configuration, rather than a method (it is not a useful method available).  Adding that debugging confirmed that the table was never fill when referenced (group.virtualMachineTemplates).  I don't know if it's broken or if I should wait only it works through presentation, or if I was just incorrect use - but I started looking for alternatives.

    I have looked around in the browser of the API and other samples, including the set of extensibility and reviewed all the activities planned, but they always seem to wait for the entry of VCAC:Blueprint type.  I found getBlueprintsForProperty and it is close to what I need, if it is running too slow when you pull a list of close-up (nearly one second per object).  I don't know linqpad can empty all the plans into VCAC (via ODATA) much faster.

    In the end, I'm looking for a way to get easily all plans for a commissioning Group (or even a host if it is fast enough), returned in an array of type VCAC:Blueprint can I browse - or even more simply, to retrieve the object model directly based on a property displayName known and gets my object.  I am aware of the VCAC entity the full mechanism added in the last plugin, but concerned that I'll be back will not match the input type... It seems that some properties do not match the type VCO and others do not part of an entity to plan at all.  Frankly I was hoping to not who become familiar with the innards of the existing API VCAC and wouldn't not rather recreate a plan object of its parts of the requested Party.

    If you're still with me, thank you! - and, ideas?  I'd like to hear missing me something simple here...

    -Milson

    OK spent more time on it with begins to implement a piece of javascript to directly get an object in the inventory of its entity vCAC. Instead of an iteration all objects of the same type, it is the object directly by ID.

    var entityKeyProperties = entity.entityKey;
    var entityIdKey = entityKeyProperties.keys[0];
    var entityIdValue = entityKeyProperties.get(entityIdKey);
    System.log("Found key " + entityIdKey + " : " + entityIdValue);
    
    switch(entity.entitySetName) {
    
        case "VirtualMachines" :
            inventoryObject = Server.findForType("vCAC:VirtualMachine", entity.hostId + "/" + entityIdValue);
            break;
    
        case "VirtualMachineTemplates" :
            inventoryObject = Server.findForType("vCAC:BluePrint", entity.hostId + "/" + entityIdValue);
            break;
    
        default : throw "No inventory object for entity type " + entity.entitySetName;
    }  
    

    I worked with the old version of the plug-in and then decided to test with the last version of the plugin (5.2) and made a great discovery.

    Engineering simplified our life with the implementation of entity.getInventoryObject ();

    So basically:

    var entity = vCACinventoryObject.getEntity(); // convert an inventory object to an entity
    inventoryObject = entity.getInventoryObject(); // convert an entity to an inventory object
    

    So in your case the code to quickly find a blueprint by name would be:

    if (vcacHost == null) return null;
    var model = "ManagementModelEntities.svc";
    var entitySetName = "VirtualMachineTemplates";
    
    var property = new Properties();
    property.put("VirtualMachineTemplateName",name);
    
    var entities = vCACEntityManager.readModelEntitiesByCustomFilter(vcacHost.id, model, entitySetName, property, null);
    
    var blueprints = new Array();
    for each (var entity in entities) {
        blueprints.push(entity.getInventoryObject());
    }
    
    return blueprints;
    
  • B2B - BAM integration does not work with the Oracle XE database

    Hello

    Can someone explain the reasons in detail, 'the B2B - BAM integration does not work with the database Oracle XE'?

    Can't we use XE POC simple to demonstrate BAM?

    Published by: 975946 on December 27, 2012 04:14

    Hi Nithin,

    The main reason for this Oracle XE database can't handle such a huge process. Same Oracle XE is not supported in production.
    Note that SOA requires 300 process and BAM more than 100 processes (400 total), which is in addition to any other requirement its 500 to parameter.but process during the installation of Oracle SOA RCU, I hope you gave 300 single right.so his can't handle as much load if use B2B BAM integration.

    The ultimate goal is to have need to display active data in the right BAM reports? so, if you are using Oracle XE DB its may be not possible to show the active data.that the reason Oracle recommended use / works with Oracle 10 g Oracle 11 g versions EE and EE.

    Best regards
    Siva San.

  • Graphic/image field that works with the drive

    Acrobat allows you to set up a button to display a graphic/image and allows the buttonImportIcon field of JavaScript method to allow a user to select the icon of the button. This allows you to work with the player, but was taken away for some reason any. Create forms with LiveCycle Designer to an image field that can work with the player, but Acrobat is no longer made. There is no good reason to not allow for this type of functionality.

    I agree!! This feature is needed and necessary! Especially for us Mac users who cannot use LiveCycle!

  • A HP Officejet H470wl will work with the MacBook Air

    A HP Officejet H470wl will work with the MacBook Air? The driver is still supported? I'll buy an Air.

    Hello..

    New Mac come with v10.11.x El Capitan pre installed.

    I checked for compatible drivers (software) for pinter them HP > http://support.hp.com/us-en/product/HP-Officejet-H470-Mobile-Printer-series/3434 453/model/3434454/document/c04510394 /

    Fact on the Mac, you would use Software Update to install the drivers according to the HP website.

    Printer and scanner software available for download for your Mac

  • SQLite Manager does not work with the v11. Until make you it easier to go back to older versions or newer versions stop, breaking most of the modules I won't use Firefox

    SQLite Manager does not work with the v11. Until that make it easier to return to older versions or newer versions stop, breaking most of the modules I use FirefoxHow to come back at 10 Firefox?

    Update Firefox 23.0 which published yesterday afternoon.

  • I'm a software tester for an internal application to my company. version 10.0.2 is not cmopatible with a few controls within our software. I need the download v9.0.1 whatever works with the controls. Where can I get?

    I'm a software tester for an internal application to my company. version 10.0.2 is not cmopatible with a few controls within our software. I need the download v9.0.1 whatever works with the controls. Where can I get?

    Well, if you need older versions of firefox you can find them on this site:
    - http://www.oldapps.com/firefox.php

    Best regards, G-Cloud.

  • To work with the text to the assignment by the cursor of the large fragment of page it is necessary to change all the time down, 'against the judgment", but the page automatically does not start to rise upward, as happens in other browsers. I ask you for

    After the transition to Windows 7, there was a problem with Firefox. To work with the text to the award by the cursor of the large fragment of page it is necessary to change all the time down, 'against the judgment", but the page automatically does not ascend to the top as it was earlier, and like that occurs in other browsers. It is necessary to press the other key "down" which is him very troublesome. Resettlement on an earlier version (8.0) earlier irreproachably working, gave nothing. I ask you to help

    You must activate the module bar (Firefox > Options or view > toolbars;) CTRL + /) or find bar to make Firefox scroll the page while selecting the text (Ctrl + F).

  • Portege M200 - pen does not work with the screen

    So I bought a pen for M200 and reinstalled the operating system.
    Now I M200 with Windows XP Tablet PC edition, a utility Screen Rotation and usefulness of the stylus button. Now Pen buttons work fine with my new pen, but the screen itself does not work. I mean, the stylus does not work with the screen.

    I have a mouse, and another menu pointing devices in Device Manager and it includes the following submenus:

    HID compatible mouse (I use the random DELL mouse)
    Mouse PS/2 Cimpatible (?)
    --------

    I think there must be something else...
    Please tell me, forum, what drivers should I download to get the pen to work?

    Stand by. Are you using the original image of recovery Toshiba (operating system) or you have installed your version?

Maybe you are looking for