Terminology question

DB version : 11.2
SQL> desc test123
Name              Null?    Type
MYDATECOL                  DATE
SQL> select * from test123;
MYDATECOL
15-08-2012
16-08-2012
18-08-2012
19-08-2012The following anonymous block is erroring out because the declared variable can hold only 1 value at a time but the SELECT is returning a list of 4 dates. What is the word for these kind of variables (which can hold only one value) in English language ?
declare
myvariable date;
begin
     select MYDATECOL into myvariable from test123;
     dbms_output.put_line ('The date is --> : '||myvariable);
end;
ERROR at line 1:
ORA-01422: exact fetch returns more than requested number of rows
ORA-06512: at line 5

One more question. Why I am getting error for the below code despite creating the right collection type ?
declare
TYPE mytabtype IS TABLE OF date INDEX BY BINARY_INTEGER;
myvariable mytabtype;
begin
        select MYDATECOL into myvariable from test123;
        for i in 1..myvariable.count
        loop
             --dbms_output.put_line ('The date is --> : '||myvariable(i));
             dbms_output.put_line (to_char(myvariable(i)));
        end loop;
end;
ERROR at line 6:
ORA-06550: line 6, column 31:
PLS-00597: expression 'MYVARIABLE' in the INTO list is of wrong type
ORA-06550: line 6, column 42:
PL/SQL: ORA-00904: : invalid identifier
ORA-06550: line 6, column 9:
PL/SQL: SQL Statement ignored

Similar Messages

  • Terminology question: "booting as root" vs. "booting in single user mode"

    Terminology question: "booting as root" vs. "booting in single user mode".  Are these terms interchangeable, or is there a subtle or not-so-subtle difference?  (Obviously something I don't do often.)
    Thanks in advance.

    Boot to Single user allows root access.
    It isn't "booting to root" as in Linux, but I think is as close as it gets.
    You can enable root from a normal boot:
    http://www.youtube.com/watch?v=Y-JEpDi-cME
    Interesting read:
    http://www.securemac.com/macosxsingleuser.php
    This is fun:
    http://osxdaily.com/2007/01/22/what-happens-in-the-mac-os-x-boot-process/

  • Disk Utility, common terminology question?

    I'm reading a guide on learning how to use Disk Utility. It says several times Disk Utility can erase and format a disk. I thought the 2 meant the same thing? I thought format meant to completely erase everything...Everything I read about disk utility they use these two words like they both do something different to the disk? Is there a difference?

    Yup, my Maxtor 300GB FireWire is Partitioned into three Volumes, the first Leopard 1 is a bootable clone, the second is Music and a third for Photos.
    +OneTouch III SBP-LUN:+
    +Capacity: 279.48 GB+
    +Removable Media: Yes+
    +BSD Name: disk2+
    +Mac OS 9 Drivers: No+
    +Partition Map Type: GPT (GUID Partition Table)+
    +S.M.A.R.T. status: Not Supported+
    Volumes:
    +*Leopard 1*:+
    +Capacity: 140.57 GB+
    +Available: 13.16 GB+
    +Writable: Yes+
    +File System: Journaled HFS++
    +BSD Name: disk2s2+
    +Mount Point: /Volumes/Leopard 1+
    Music:
    +Capacity: 99.74 GB+
    +Available: 24.47 GB+
    +Writable: Yes+
    +File System: Journaled HFS++
    +BSD Name: disk2s3+
    +Mount Point: /Volumes/Music+
    Photos:
    +Capacity: 38.6 GB+
    +Available: 25.4 GB+
    +Writable: Yes+
    +File System: Journaled HFS++
    +BSD Name: disk2s4+
    +Mount Point: /Volumes/Photos+
    My other Maxtor a 320GB FireWire, is Partitioned into two Volumes Time Machine, Tunes & Photos.
    +OneTouch III SBP-LUN:+
    +Capacity: 298.09 GB+
    +Removable Media: Yes+
    +BSD Name: disk1+
    +Mac OS 9 Drivers: No+
    +Partition Map Type: GPT (GUID Partition Table)+
    +S.M.A.R.T. status: Not Supported+
    Volumes:
    +*Time Machine:*+
    +Capacity: 201.01 GB+
    +Available: 62.22 GB+
    +Writable: Yes+
    +File System: Journaled HFS++
    +BSD Name: disk1s2+
    +Mount Point: /Volumes/Time Machine+
    +*Tunes & Photos:*+
    +Capacity: 96.63 GB+
    +Available: 21.64 GB+
    +Writable: Yes+
    +File System: Journaled HFS++
    +BSD Name: disk1s3+
    +Mount Point: /Volumes/Tunes & Photos+

  • SOA 11g terminology question

    Is there any reason why Oracle no longer using "BPEL" name in SOA 11g neither in WLS console nor in OEM? but rather use composite or composer......
    Thanks.

    Hi,
    BPEL exists in 11g also.But the difference is that it doesn't exist as an independent entity.Its packaged inside a composite.Unlike 10g where you develop bpel sperately 11g has come up with SCA architecture where you package all you SOA components into your composite and deploy them as one application.The composite.xml forms the core here.

  • Do I want a wireless bridge? Terminology question

    Hi I'm not entirely sure of the correct term so here goes. I have wireless internet access and I would like to access it and share it via the airport wirelessly.
    At the moment the airport is connected via the ethernet cable but I would like to change the location of the airport as it has my printer and hhd's attached and it's getting a little cluttered beside the phone table!
    So do I need to follow the instructions to set up a wireless bridge?
    thanks
    R

    Hello Soaringmonkeyfish. Welcome to the Apple Discussions!
    To create a wireless bridge with the AirPorts you would configure them in a Wireless Distribution System (WDS). In a WDS, you would typically have one base station connected to the Internet (this would be the main station) and another connected wirelessly to extend it (this would be the remote station). What are the models of AirPorts that you will be using for this? If both are the newer 802.11n version, will all the wireless clients be "n" capable as well?

  • Tagging and Untagging VLANS

    Hi all. I think this is a terminology question more than anything, but I have a co worker that says I should configure switch with "untagging" vlans. Im not sure what he means, does he mean a access port? I would thing a trunk port "tags" vlans, but does an access port not do that? Can someone help explain this to me please? Thank you.

    To tag or not to tag?
    This type of question is constantly returning in this forum. A search would bring up quite some usefull info but I will make a final attempt anyway:
    A switch-port can be configured as access or trunk. In access mode, incoming frames are tagged with the vlan-id that the port belongs to. An access port expects untagged frames.
    In trunk mode, the port is expecting tagged frames. As you know, trunks are used to interconnect switches.
    In the outgoing direction, an access port removes all tagging, a trunk preserves it.
    With all this, there is one special case: the native vlan. Each port has one vlan (vlan1 by default) that is used as the native vlan. For compatability with non-vlan capable equipment, this vlan is sent & received untagged. This is hardly used as most trunks are point-to-point between vlan-capable devices. Make sure that the native vlan is set the same on both sides of the link.
    Ports that connect IP phones have a mix between trunk and access. The data from the PC is forwarded on the access-vlan, the voice traffic utilizes the voice vlan as specified with the comand: switchport voice vlan, and this vlan must be tagged to preserve the 802.1p field that is part of a dot1Q tag and contains the priority info. voice is prio 5.
    Hope this solves your question about to tag or not to tag.
    Regards,
    Leo

  • Model Terminology --  What Firmware to Download? (simple question)

    I own the 15 inch MacBookPro 2 Ghz Intel Core Duo.
    Is this the same model as "MacBookPro 15 inch Core 2 Duo"?
    This terminology is confusing!
    I am posing this question because new firmware (EFL 1.4) is available for the latter model. My EFI Firmware Update Utility tells me that Version 1.2 is the most up to date for my model. I have some doubts.
    Thanks to whoever answers..
    Michael.

    Templeton,
    Thank you for your response.
    Apple Computer: Please start using model names which are less cryptic.

  • Question re: Editing Terminology

    I had a short phone interview earlier today for a job I applied for like half a year ago lol. I had a great conversation with the interviewer up until he used a few terms that i wasn't familiar with. I BSed my way through and setup a second interview . I'm wondering if anybody would be kind enough to explain the following terms to me:
    "Assemble Leica's" (somewhat doubt it relates to the camera brand.... but who knows?)
    "Conform finished Leica"
    "Compile pick-up lists" (list of reshoot needs? a list of items to pick-up from companies?)
    Thanks to anybody who can help (or tries)!

    I don't recognize the terms either, but I worked at several television stations throughout my career and found that each place had their own "pet" terminology for things.
    For example an over-the-shoulder graphic for news in one place was an ESS--named after the machine we used to store and play the graphics back. Some places just called it a "box" Some of us older "analogue" geeks might remember "ADO-ing" something. A verb created that means to move video around the screen in usually obnoxious methods. This was done using an AMPEX ADO--very popular in the late 80's and early 90's.
    Now a lot of people want to know if you can operative an ELVIS. I'm not sure where that comes from, but it's a machine used for video playback in live trucks--usually sporting events.
    Good luck. I would just ask. Or ask you friend.
    G4 Dual Processor   Mac OS X (10.4.1)  

  • Question About Table Style Terminology

    I am curious about what other people might call the following two styles of table construction.
    Style 1:
    create table cust_trans_a (
        cust_nbr                varchar2(6),
        trans_date             date,
        sales                      number(11, 2)
    Style 2:
    create table cust_trans_2 (
        cust_nbr                varchar2(6),
        sales_in_2004,
        sales_in_2005,
        sales_in_2006,
        sales_in_2007   
    );I have been using the terms vertical and horizontal respectively for these two construction styles, but I would like to know if other DB professionals have another, more descriptive set of terms for them.
    Thanks,
    Gregory

    How about normalized and denormalized?
    Generally, denormalized data models (Style 2) are a pain to deal with because you're constantly having to add columns (i.e. you'll eventually want to store 2008 sales) and because you have to maintain the same information in both summary and detail tables. In Oracle, if you think you need a denormalized table, you're generally better off creating a materialized view instead.
    Justin

  • An idle question about terminology

    Hi,
    I'm just curious to know exactly what the phrase "repair permissions" actually means. I know why it's done, (sort of), but I've never quite understood the actual meaning of the phrase. Not that I'll be any the wiser for knowing, but dang, I'm curious.
    So, if anyone has a spare moment...
    Thanks.

    Thanks, Mike. I guess I should have checked Wikipedia first.
    That site is like the computer in the first Rollerball movie. There's nothing it doesn't know!

  • Questions: SAP Procurement terminology

    Need clarifications regarding below SAP terms with respect to Procurement.
    What is meant by Standard Product Classifications and what’s the use of this in procurement?
    What is meant by Master categories and what is the use of Master categories? Is the Standard Product Classifications and Master Categories are same?
    In SLM, SAP ask us to do s Master category assignments, what use of this with respect to Business?

    Hi,
    See these links:
    [http://help.sap.com/saphelp_srm70/helpdata/EN/4b/9c8014dfed4f409c3ef6528663ba46/frameset.htm ]
    [http://help.sap.com/saphelp_srm70/helpdata/EN/8a/a20663dfd64fc1b6d790547839e1e5/frameset.htm]
    [http://wiki.sdn.sap.com/wiki/display/SRM/PPS-ProcurementforPublicSector-+enhancements]
    You may also want to have a look at the SRM Forum:
    [Supplier Relationship Management (SAP SRM);
    Kind regards
    Mar

  • Question about terminology

    Is "Solution Manager" a seperate product from a "Central Monitoring System (CEN)" or os CEN a part of SM? 
    Thanks

    All NetWeaver can be a 'CEN' of types (Central Monitoring System) on which Solution Manager has a number of products that filter and re-display these objects in a more meaningfull way.  The core of most of the functions (excluding Root-Cause-Analysis) are based on CCMS architecture which is inherient to all SAP Systems to include the ability to centralize these alerts.  When Solution Manager is configured through SMSY and RFC Connections, this architecture is configured for you but can also be displayed in RZ21, Technical Infrastructure and Display Topology.  CCMS Agents can also register to the CEN which allows it to 'Centrally Auto-React' to remote CCMS Alerts.
    Hope that clears-up some of the confusion.

  • DNS configuration for webhosting - follow-up question

    In regard to my previous inquiry I want to add another question affiliated with that.
    We want to use our own DNS servers for domain registration. For this purpose, I need two DNS servers - ns1.domain.com and ns2.domain.com.
    domain.com is a domain owned by us that should get also managed at the Xserve's DNS service.
    For that reason I would need to add two sub-domain records to the DNS entry for the zone domain.com, wouldn't ?
    But how do I achieve this ?
    When trying to add another "machine" (comparable to "CNAME" ?), server admin requires me to use a different IP address (it won't let me save two machines for one zone with the same IP; see my previous inquiry, I created a machine for "www"). And I see no other way to do this (therefore it also seems not to be possible to create a sub-domain like meat.domain.com).
    Maybe someone can direct me to the right solution.
    It appears to me that Apple uses different terminology in their DNS system; at least although I'm a bit experienced with DNS, I totally hang here.
    I look forward your assistance
      Mac OS X (10.4.8)  

    Hi there,
    Have you seen or thought about using Tenon iTools?
    http://www.tenon.com/products/itools-osx/
    Seems like the way to go for virtual hosting on a mac.
    Aloha,
    Tony

  • I have question on Oracle 9i space management.

    When I create a table.
    Table A
    field1 INTEGER
    field2 Date
    field3 Double
    field4 VARCHAR2(30)
    field5 Number(8).
    The question is, when field3 and field5 is NULL/Blank. Does Oracle allocated the space for the record even when field3 and field5 is blank or null?
    Thanks so much.

    But you had used the term when asking about the space taken to store columns. I just wanted to make sure people understood the true question was space to hold null column values and not the row.
    When discussing tables Tuples and rows are correct terminology but the use of records is poor terminolgy. You have rows in your tables and records in your program files though attention to terminology isn't what it once was.
    -- Mark D Powell --

  • New to Java and I guess a scope question.

    Hello and thank you for taking the time to read this. I am not a real programmer, everything I have ever done was a total hack, or written without a full understanding of how I was doing it. One thing about Java is that you might have like 20 classes (or interfaces or whatever), and that code is "all over" (which means to me not on one big page). My comment statements may look odd to others, but the program is for me alone and well, only I need to understand them.
    Through some hacking, I wrote/copied/altered the following code:
    import java.io.*;
    import java.util.*;
    public class readDataTest
         public static void main(String[] args)
              /* get filename from user, will accept and work with drive name
              e.g. c:\java\data.txt, if it is the same drive as the compiler
              does not need the directory. however, it always needs the extension.
              userInput is created by me, File, StringBuffer, BufferReader
              are part of java.io */
              userInput fileinput = new userInput();
              String filename = fileinput.getUserInput("What is the file's name");
              File file = new File(filename);
              StringBuffer contents = new StringBuffer();
              BufferedReader reader = null;
              //try to read the data into reader
              try
                   reader = new BufferedReader(new FileReader(file));
                   String text = null;
                   while((text = reader.readLine()) !=null)
                        //create a really big string, seems inefficient
                        contents.append(text).append(System.getProperty("line.separator"));
                   //close the reader
                   reader.close();
              catch (IOException e)
                   System.out.println(e);
              //take the huge string and parse out all the carriage returns
              String[] stringtext = contents.toString().split("\\r");
              //create mmm to get take the individual string elements of stringtext
              String mmm;
              //create ccc to create the individual parsed array for the ArrayList
              String[] ccc = new String[2];
              //create the arraylist to store the data
              ArrayList<prices> data = new ArrayList<prices>();
              /*go through the carriage returned parsed array and feed the data elements
              into appropriate type into the arraylist, note the parse takes the eof as an
              empty cell*/
              //prices pricestamp = new prices();
              for(int c=0; c < stringtext.length-1; c++)
                   prices pricestamp = new prices();
                   mmm=stringtext[c];
                   /*trims the extra text created by the carriage return, if it is not
                   trimmed, the array thinks its got an element that is "" */
                   mmm=mmm.trim();
                   //whitespace split the array
                   ccc=mmm.split("\\s");
                   pricestamp.time=Integer.parseInt(ccc[0]);
                   pricestamp.price=Double.parseDouble(ccc[1]);
                   //System.out.println(ccc[1]);
                   data.add(pricestamp);
                   //System.out.println(data.get(c).price);
                   //pricestamp.time=0;
                   //pricestamp.price=0;
                   pricestamp=null;
              //pricestamp=null;
              //System.out.println(pricestamp.price);
              System.out.println(data.size());
              double totalprice=0;
              for(int c=0; c<data.size(); c++)
                   //System.out.println(data.get(c).price);
                   totalprice+=data.get(c).price;
              System.out.println("This is the total price: " + totalprice);
    public class prices
         int time;
         double price;
    public class evenOdd
         public int isEven(double number)
              int evenodd;
              double half = number/2;
              int half2 = (int) half;
              if(half == half2)
                   evenodd = 1;
              else
                   evenodd = 0;
              return evenodd;
    So the program works and does what I want it to do. I am very sure there are better ways to parse the data, but thats not my question. (For argument's sake lets assume the data that feeds this is pre-cleaned and is as perfect as baby in its mother's eyes). My question is actually something else. What I originally tried to do was the following:
    prices pricestamp = new prices();
              for(int c=0; c < stringtext.length-1; c++)
                   mmm=stringtext[c];
                   mmm=mmm.trim();
                   ccc=mmm.split("\\s");
                   pricestamp.time=Integer.parseInt(ccc[0]);
                   pricestamp.price=Double.parseDouble(ccc[1]);
                   data.add(pricestamp);
    however, when I did this, this part:
    for(int c=0; c<data.size(); c++)
                   //System.out.println(data.get(c).price);
                   totalprice+=data.get(c).price;
              System.out.println("This is the total price: " + totalprice);
    would only use the last price recorded in data. So each iteration was just the last price added to totalprice. I spent hours trying to figure out why and trying different ways of doing it to get it to work (as you probably can tell from random commented out lines). I am completely dumbfounded why it doesn't work the other way. Seems inefficient to me to keep creating an object (I think thats the right terminology, i equate this to dim in VB) and then clearing it, instead of just opening it once and then just overwriting it). I really would appreciate an explanation of what I am missing.
    Thank you.
    Rich

    prices pricestamp = new prices();
    for(int c=0; c < stringtext.length-1; c+)
    mmm=stringtext[c];
    mmm=mmm.trim();
    ccc=mmm.split("\\s");
    pricestamp.time=Integer.parseInt(ccc[0]);
    pricestamp.price=Double.parseDouble(ccc[1]);
    data.add(pricestamp);
    }This is definitely wrong. You have only created one instance of pricestamp and you just keep overwriting it with new values. You need to put the new inside the loop to create a new instance for each row.
    Also I doubt you really mean .length - 1, that doesn't include the last row.
    Style wise:
    Class names should always start with capital letters, fields and variable always with lower case letters. These conventions aren't imposed by the compiler but are established practice, and make your code a lot easier to follow. Use "camel case" to divide you names into words e.g. priceStamp
    When using single letter names for integer indices people tend to expect i through n. This is a historical thing, dating back to FORTRAN.

Maybe you are looking for

  • Hack (I think)

    Hi Today at work we were using apple laptops running tiger. My friend said do you want to see something cool I said yeah he presses like 2 buttons and everything changes color like everything the look the icons and when u open photo-booth your face l

  • ClassCastException while creating sendstream

    Hi, I'm trying to establish an unicast rtp session and play an url to the remote client. DataSource[] sources = new DataSource[urls.length];           for(int i = 0; i < urls.length; i++) {                sources[i] = Manager.createDataSource(urls);

  • Error message ellements 11

    I am having problems installing ellents 11 I get an error message about shared technologies which I do not understand

  • Problema con formulario php museCC

    Hola tengo un problema, Hice un formulario en el adobe museCC, con un widget de formualrio, la web esta en un servidor propio, no está en el adobe catalyst y tengo problemas: No funciona, me hace un error, cuando se envía el formularío, me sale una v

  • Every time I drag a clip into the events library Final Cut Pro X crashes.

    Every time I drag a clip into the events library Final Cut Pro X crashes.  The import appears to have occured successfully despite the crash as it is in the folder when I reopen FCPX.  But having to restart the program every time I import is annoying