Need a clarification about the initialization of the

Hello

Created and object type EMAIL_TYPE and then created the nested table of this type of object email_array, after that the initialization which according to the number of line 6. and replaced the value according to the number of line 10, want to know is there any other way to initialize the array of objects of type Email_array and can also extend this using the email_obj.extend command and add new values to it at run time. E

Create or replace TYPE EMAIL_TYPE AS OBJECT (EMAIL VARCHAR2(80));
CREATE or replace type EMAIL_ARRAY AS TABLE OF EMAIL_TYPE;

declare
      vemail       VARCHAR2(80)    DEFAULT NULL;
       email_obj    email_array := 
                         email_array( email_type('x'), email_type('y') );
   begin
           for i in 1 .. email_obj.count loop
           email_obj(i).email:='[email protected]';
           end loop;
   end;

This:

declare

addresses of ADR: = (); - initialization addresses

Start

for j in (select * from (select rownum rn, a.* t_address one)) loop

ADR.extend;

ADR (j.rn) .street: = "HJK";

ADR (j.rn) .city: = 'H ';

ADR (j.rn) .state: = 'H ';

ADR (j.rn) .postal_code: = "HJK";

-adr (j.rn): = addresstyp (j.street, j.city, j.state, j.postal_code);

end loop;

might work if your table exceeded a record of pl/sql using the street, city, State, zip_code items but you have an array of objects, so there is only one thing in each element of array and this 'thing' is an object. To create an object, you must call the manufacturer (you don't have an object in the front element), once you've done so that you can access the attributes of the object.

so (not tested) If you put a

ADR (ADR. (Count()): = adresstyp (null, null, null, null);

After your expand your code must work... but it would be smarter to call the constructor with the values you want to memorize rather than with a list of NULL values...

and stop using this thing of rn for address, you simply add an order by in the outer circle choose or decide somehow do not use one of the lines in your loop and your logic will fail.

HTH

Tags: Database

Similar Questions

  • Need a clarification about the Installation

    Hi all
    I install in OBIEE 11 g on Oracle database 10g for the first time, so I would like to know if we need new schema of database Oracle or a new Instance.

    Please do not answer...


    Kind regards
    Arun

    Published by: 32956 on 5 April 2012 09:43

    Hello

    You can continue the installation of the oracle 10g database. Before that, make sure that you have downloaded all the files correctly and unzipped into one folder, including the installation of the regional coordinating unit files.

    It inludes two steps
    1. create patterns of Support using the remote control
    Refer to this link: http://allaboutobiee.blogspot.in/2012/03/obiee-111160-rcu-installation.html
    2. installation of OBIEE 11 g.
    Refer to this link: http://allaboutobiee.blogspot.in/2012/04/obiee-111160-step-by-step-installation.html

    It may be useful

    Published by: Nila on April 5, 2012 10:04

  • Need complete information about the construction of interactive forms in IDCS6

    Need complete information about the construction of interactive forms in IDCS6

    Where could I get the most thorough training for the creation of interactive forms in IDCS6?

    I need a tutorial that covers all the basics of the beginning to the end and the rules that cannot be broken. I thought I learned enough today to write one, but it appears there are holes in my methods I discovered tonight.

    In fact prices of Claudia on Lynda.com is about creating forms with Acrobat X Pro, and she finished before InDesign CS6 was available.

    Anne-Marie Concepcion discussed creation of forms in his new functions in InDesign CS6 video Lynda.com.

    But Sandee Cohen wrote an article dynamite in the current issue of InDesign Magazine on creating forms in InDesign CS6 which is very comprehensive.  The magazine is not available for free.

    www.indesignmag.com/Purchase.php

    The FRIEND coupon code to save $20 on a 1 year subscription.

  • Poker: need to know about the subject and how to play the game

    need to know the subject and how to play the game

    Hi young,
     
    Thank you for visiting the website of Microsoft Windows Vista Community.
     
    I noted that you want to know how to play the game of Poker in vista.
     
    What is Hold em Poker: The Hold em Poker game is a Windows Ultimate Extra that is available for users of Windows Vista Ultimate Edition. You can download the Hold 'em game from the Microsoft Windows Update Web site.

    Hold em Poker is a poker game on computer in which you compete against the computer. The hold 'em game uses the technology Microsoft DirectX to deliver smooth, animated play and rich graphics. You can configure the Hold em option set to perform the following operations:
    Play against up to five computer players
    Set the skill level of opponents
    Customize the appearance of the game cards and game table
     
    For more, see: http://support.Microsoft.com/default.aspx/KB/932925
     
    How to play: When you open the Poker game window, press F1 and it will open the Help window. The help section you have all instructions and details on how you can play the game.
     
    You can visit the link http://forums.gamesforwindows.com/ to find other members of the community have to say. You can search the Internet for more links learn more about the game of poker.

    Kind regards
     
    Srinivas
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • Need to know about the background application

    Test Simulator with JDE version 5.0. I work at the request of the alarm. So I created a background application, where I look in the database and perform the necessary task vibrant just the phone. I have another point with nongui param. Its works fine. Now the problem is, I set an alarm for once, now is the time and the alarm goes off and the user he repeated for 10 minutes, average while I just still run my application in the menu of the eclipse without closing the Simulator, I was expecting that the alarm that was repeated should get fired, but it won't. the problem always occurs when I run the application without closing the Simulator. So what can be the reason for this, and if I just closed Simulator and run it from the eclipse menu its new working fine means repeated when time comes it vibrates the Simulator can someone explain me what are the problem here.

    Do not disable not either sorry here...

    Your code looks fine.

    You can run this code too early.  You probably need to wait until the device is completely upward before you check this:

    http://supportforums.BlackBerry.com/T5/Java-development/write-safe-initialization-code/Ta-p/444795

  • Need a clarification on the reservation of memory

    I created my first virtual machine and see that the memory allocated to the virtual machine appears to be limited.

    The host computer has 16 GB of memory, but I am only allowed to 384 from reserve to this machine. The tab for the allocation of resources to the virtual machine shows he uses 353/384 MB of memory of comments. Is this ok or y at - it something wrong? It is recommended that I have at least 4 GB of memory for this installation. The memory of comments will expand because it requires more resources?

    Here are some pictures:

    ScreenHunter_02 May. 19 15.50.gif

    ScreenHunter_03 May. 19 15.50.gif

    ScreenHunter_04 May. 19 15.50.gif

    ScreenHunter_05 May. 19 15.57.gif

    35 x is your memroy active and the number of 38 x is your overhead + active. As mentioned above, you can increase the memory allocated to the virtual machine. Simply turn off the virtual machine, do a right click go to change settings and change the memory. Your guest will be the new amount of memory allocated. However, this will not affect the active memory of your comments. Who will probably still low if the prompt is not widely used. If you want you can book memeroy for her. But that won't be necessary. Your guest will be asked just more memory when he needs it (i.e. the amount that you have alloccated at the prompt max). Not setting reserves, you will not sign memory to a virtual machine that can't even use... Hope that makes sense...

    Follow me @ Cloud - Buddy.com

  • Need for clarification about Webcenter and Jdeveloper Total confused.

    Hi guys,.

    IAM new product oracle and my self very fresh to the world of tools and oracle, when I did a little research on the package tools, I found Webcenter as an interesting tool and liked to hear. With the support of Mr YannicK Ongena I learn some concept and through some possible configuration but once all the setup I have query below, and mistook them... Now am not able to satisfy the Webcenter.

    I have a query, the developer should be installed the requirements.
    JDeveloper and database or something there.

    In the current configuration * I installed.
    WebLogic
    Database
    RCU
    JVM
    WebCenter Suite.

    As mentioned above this two configurations are different methods or should I install Jdeveloper with the current configuration?

    I'm confused a lot with the current configuration.

    If the Jdeveloper and adjustment of the current methods are to different then the one who will be recommended by the guide of environment pl in time real me on this.

    If possible help me with a better discription learn how Webcenter.

    Thank you and best regards,
    Naveen

    Best place to discuss these things on my blog :)

    First of all, you should look at the requirements. Depending on whether you need to decide what to use:
    (1) Portal of the WebCenter which is a completely customizable to environment in place your portal from scratch. This is done by using JDeveloper. If you want a WebCenter portal, you need not install the suite WebCenter full with the data base and the UCR and so on. You should only install WebLogic with Webcenter libraries. However, if you want to use services such as blog, wiki, documents, debates and so on, you will need to install the suite with an oracle DB and run the RCU to create repositories.

    (2) WebCenter spaces. This environment is installed when you install webcenter suite. This is the managed server WC_Spaces. It is a collaborative environment that requires no JDeveloper. You should only use JDeveloper to extend the spaces by adding your custom taskflows and portlets.

    If in short to the requirements:
    (1) WebCenter Portal:
    -JDeveloper
    -WebLogic + libraries WebCenter
    -Database at least the MDS repository (which can be created by the UCR)

    (2) the WebCenter spaces
    -WebLogic + WebCenter suite
    -Database at least the schema MDS and WebCenter (can be created by the regional coordination unit)

    If you want to learn how WebCenter, I recommend to learn early on. You don't need to go through the complete installation, process that can be difficult is you again for Oracle products.
    Just download JDeveloper studio edition: http://www.oracle.com/technetwork/developer-tools/jdev/downloads/jdev11115-405165.html and install extensions WebCenter. If you do this, you can't even install a database and so on.
    With this configuration, you can easily create your own portal without coding a lot. An ideal way to learn the basics of the webcenter.

    Hope this helps :)

  • Need a Clarification on the installed component and run Simulator Configuration

    Help!

    I need clarification on what the plugin Eclipse is telling me. There are two parameters that are confusing me. For components installed (found under preferences/Window/BlackBerry JDE/Installed Components), I have a choice of 5.0.0 4.7.0,4.6.1, 4.6.0 4.5.0 and 4.3.0.

    Depending on which component I select when I go in the tab Configurations.../Simulator/course walk, I see a different mix of devices.  In all cases, there is a default Simulator.

    Initially, I assumed that each JDE component supports a mixture of different devices, and that is it compiled correctly, I would be assured that the app would work for all devices on the tab run Simulator Configuration.  In my tests, I found theopposite.  I also assume that, for each component of the JDE, there is a 'default' Simulator that was representative of all devices in the drop-down list run Configuration Simulator.  In my tests, am not sure what actually represents the Simulator 'by default'.

    Can someone clarify how to JDE and Configuration simulators run installed interact and a developer show how to ensure that their application is running on a mix of devices?

    When I finally get to the point where I am ready to deliver, what are the points of decision of installation?  Is it enough to simply require a specific version of an operating system (for example 4.7?) or do I have to create a grid and check the two model number and version of the operating system?

    Thanks for your help.

    "currentT shipping Curve 8330 come with OS 4.5" - they must be, as far as the carrier released a version 4.5.

    "Your statement that most consumers do not upgrade surprised me too" - only I support!  You might get a different opinion of someone else.  But the question is why would?  And our world app downloads indicate that he is did not upgraded phones out there.

    "I guess you are right in this assumption of statementI you are right in this statement"

    What is - an appropriate version of the BlackBerry JDE
    Article number: DB-00537
    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800738/800901/What_Is...

    "If there is some Curve 8330 there running 4.5 OS, it's a configuration supported." - correct

    "Construction of the 4.3 OS will be one where the menu appears in the upper right and the built 4.5 OS will be one where the menu is out."  Sounds good

  • I need a clarification on the username more license

    OK, here's the deal. We're going to get a permit for oracle database 11g standard edition one. We have to s/1 n and 2 developers working on a web application with php. Let's put the database on windows server 2003 and we use apache to host the web application (on the same machine). There will be about 10-15 users using the web application. Users License how do I need?

    I think that we need only 5. users are:
    -L' apache/PHP hosted on the same machine.
    -S/n (which will also help to develop).
    -2 developers.
    -Maybe the head of IT, I don't know. There is 1 left and we need to buy at least 5.

    Users (who will be the people in the Department of purchase, sales, marketing and warehouse) don't know anything about oracle and they connect to the oracle server. They are connected to the Apache Server (that connects to the oracle server). They do not get the data directly from Oracle. Apache/PHP is obtaining the data and display it on the users web browser.

    I think this right? Or I have to buy a license for 20 users?

    You don't think this right. The number of simultaneous connections, as well as in web applications generally licensed in the universal power supplies is cheaper. Apache is not considered to be 1 connection, end users are counted as connection.
    But then again your friendly salesrep can provide an answer that is binding for Oracle, and nobody here can.

    ------------
    Sybrand Bakker
    Senior Oracle DBA

  • Do I need to worry about the update of the firmware on Micron RealSSD C400?

    Hello. The SSD drive my EliteBook 8560p is a MTFDDAK128MAM-1J1, which is a series of C400 of Micron. I was recently informed of the bug in the firmware in the Micron C400/Crucial M4 devices with firmware Rev. 0009. the bug causes the reader to crash after it hits 5184 hours of operation time and the only way to correct or prevent this error is to upgrade to the reverend firmware 0309 Micron / Crucial, released in January 2012. However, this firmware is, according to Micron / Crucial, not apply to devices which is bought as original equipment in a computer system. MTFDDAK128MAM-1J1 in my computer said that its firmware was 0809, which I can't find any information on. So my question is: anyone knows it if the Apocalypse 0809 firmware is based on the official firmware 0009 and will therefore be affected by the mentioned previous bug? If so, when and where I'll be able to download a firmware updated for the reader in my EliteBook?

    Thanks for your help. I was also in touch with Micron about this, and I received a confirmation from them that shipped for HP SSD drives is NOT affected by this bug in the firmware.

  • Need some clarification on the operation of H323 with VCS-C/E

    We have our points of endpoints connected to the VCS - C with a VCS-E. When an end point called another unit through IP H323 the VCS - C does anything with the video/audio? He plays the intermediaries? Or is the VCS - C just let both units communicate DIRECTLY with each other (even when I see the appeal in calls in course VCS-C)?

    I try to debug problems with call and need some explanation on how it works.

    Thank you

    RB

    By default, call Routed mode should be on.  This means that the installation & signalling through the VCS, but all media streams are direct between endpoints.

    See you soon,.

    Paul R

  • Clarification about the office pool (Type, assignment of the user,...)

    Hello

    It is extract from ViewPlannerRules_3.0.1_.2014 - 02-05 is creation of desktop VMs.

    Use the view to set up a Pool of Clones related Office

    Follow the documentation view to provide as many clones of the virtual machine of model office like you

    you want to test.

    I'm puzzled what type of pool exactly what I need to create?

    Type-> automated pool (more likely)?

    The assignment of the user-> dedicated or floating?

    Best regards

    Automated with floating assignment pool

  • Need a clarification on the where the share of cpu/memory really matter

    Get these values to 'share' relative cpu/memory used by the layer host physical, right? and no layer of Resource Pool?

    In other words, each physical host is running, say, 20 virtual machines and of those 20 there are various actions assigned to virtual machines (some is 'High' of other 'Normal' and other 'Low') due to the fact that these 20 are divided into different Pools of resources and we have committed 'High', 'Normal' and 'Weak' to different Pools of resources.  What are reservations guaranteed with a particular resource Pool, if VM1 on VMHOST1 is 'High' actions and VM2 on this same VMHOST1 is 'Weak' actions then VM2 will spend more time in "CPU Ready" than VM1 land, right?  While the actions of cpu/memory can get configured at the level of the Resource Pool, it seems to me they are really IMPORTANT to the physical host level (they relate VMs on ESX host specific, NOT the Pool of resources that they are a part of).

    (my examples assume that all other things being equal, for example, that all VMs example are 1vCPU VMs)

    Why this matter for me, in case you care, is because I have a provision described here and using the examples that I used in this thread, I think to increase shares of the resource 'FinanceProduction' to 'High' list and the list of resources of the 'FinanceTest' to 'Normal' better ensures that VMS in those Resource Pools can actually make the cpu/memory reservations and limits that I have assigned to them.  We see essentially performance degrade as we grow, but they are not approaching their reservation of cpu/memory.



    Benny Hauk, VCP4
    Systems administrator
    Geraldine LifeWay resources

    REF: How to better make sure if there is a loser in a race to claim that it will always be a "non-prod" VM?

    This is apparently a common misconception about resource pools (which I fell too), that assign three pools with low, normal and high action would divide the resources available in accordance with these rules, but they do only if you have the same amount of VM in each resource pool, which tend to not be the case.

    Duncan Epping has written some good blog posts on it and yesterday posted a PowerShell script that should effectively deal with actions in your resource pools according to their content: http://www.yellow-bricks.com/2010/02/24/custom-shares-on-a-resource-pools-scripted/ (links to his previous duties are on the text). It would be nice if Vmware could implement a way to achieve in vCenter without the use of scripts since for me it makes the most sense for the management of resources quick and easy.

    ===

    If you find this information useful, please give points to "correct" or "useful".

  • Need some clarification on the reservations of memory

    After running our VMware environment a pretty ' hands-off "path, so far (based on PROD/DEV resource pools with High/Low shares but no other reservations/limits of CPU/MEM), it seems that we will have to start getting more accurate when it comes to our important VMs (problems of memory the other day affected some Windows VMs of prestige).

    I'm pretty happy with memory and CPU reserves, but I want to say...

    1. If the assignment of a reserve of 3 GB memory to a 3 GB Windows VM, it will be none of this 3 GB available to other virtual machines when the virtual machine is not actively using all booking / 3GB.

    2. If the virtual machine requires all of a sudden all the 3 GB, but there is a conflict of memory on the host computer, how does ESX ensure that the / 3GB is available when virtual machine he needs?  Is the memory still allocated to the VM, but all simply not used?  Is the inflated/shared memory of guests without reservations to satisfy the requirements of the virtual machine with a reservation?  Are vmotioned VM on the host to provide the required RAM

    3. Admission control is called only when the virtual machine is running (as opposed to being rebooted)?

    In short, bookings of memory will allow me to say to the owner of the application that their virtual machines are guaranteed memory resources that they need, when they need it.  I don't want to offer that and then have the roles reversed on me when it turns out that is not to be true.

    Any help appreciated and I'm ready to attribute points to a helpful soul...

    Jon

    (1) only a reboot of the VC restarts the virtual machine world.

    (2) although very unlikely - Ppossibly, sound must be incredibly bad timing, and the 2nd VM would have to have its own reserves.

    The concerns you have are EXTREMELY likely if get you into such a situation, it is easy enough to temporarily disable the admission control, move the surroundings of things you must do and turn it back on.

    We use bookings, while we do not encounter this.

    -Matt

    VCP, vExpert, Unix Geek

  • Need a clarification regarding the application of blocking replicated Cache

    Hello
    I need to know what will happen when the locking of the caches replicated when we have configured configuration lease-granularity member or a thread?

    Suppose in my set of 2 members of replicated caches and it extend customers who writes the cached data and another extended which data in caches for its calculation.

    Assume that my setup of the granularity of the lease is a member.
    My definition:
    1. when I say lock on a special touch in all two replicated caches that record with the special key will be locked and no other thread can update this key until I released the lock.
    2. in the course of my number blocking any readers can read the record to the above key.
    3. even if I update the record (while another player reading this record) by consistency it itself will take care of the update data without corrupting the file and give damaged data to the reader.

    Suppose that my setup is thread in granularity of lease
    1 when I say lock it will act as a lock on the thread that is running but not a lock for all replicated nodes.
    2. This is why when two writers say lock they will get the lock but they can update the same record at the same time, and it could make simultaneous update exception
    3 Eventhought writer has acquired the lock and while doing the update any reader can read the data relevant to this record.
    4. the update of data relevant to the particular key will be coherense handle (unless the simultaneous update exception doesnot appear) it self and any player can use data not currupted.


    Please correct me if I'm wrong. I need to know when we have configured member or thread in rental-granularity under implementation of this lock. According to the documentation I've seen replicated caceh supports the feature LOCK_ALL. hope this function means it locks all cache as a global lock.

    Hope you guys can show me a way to add/update records in line while some readers read the same cache.

    Kind regards
    Sura

    Published by: Sura August 3, 2011 20:25

    Published by: Sura August 4, 2011 00:26

    Hi Sura,

    If you use Clients range from updating the replicated Cache, it is recommended to have the following:

    (1) specify the granularity lease = "thread" for the replicated cache,
    (2) prohibit, by convention, explicit locks in any client of the replicated cache, and
    (3) allow customers to extend update the replicated cache via EntryProcessors (http://download.oracle.com/docs/cd/E14526_01/coh.350/e14509/appbestextend.htm#CIHCJHFA)

    If the granularity "Member" value, once any thread in this member acquires a lock, another thread running in this node will have access to the lock (and any thread in this member can unlock the key). Having said this, lease-granularity = "thread" restricted access to a key to a single thread within the cluster.

    I hope this helps!

    See you soon,.
    NJ

Maybe you are looking for