New to PL\SQL from Sybase and need an answer to a question please

Hi,
I want to read a row on table 'One' and caputure the values of 6 columns. So I will have values "A", "B","C", "D", "E" & "F". Then I want to use these 6 key values in a sub query to select rows from Table 'Two'. From table 'Two' I want want to splilt a varchar column that has multiple values that are delimited by '|'.
In Sybase I would of stuck the 6 values into variables from Table 'One'. Then inserted them into a temp table and used that temp table in the join to get the rows from table 'Two' that I wanted. Then stuck those results in a temp table and lopped around the rows and split the data out into another temp table. Then just selected the temp table to uotput the results. Now that may seem long winded but very simple to build.
So can someone give me some help in how to structure this in Oracle. Also I cannot created global temp tables in my session.
Thanks in Advance

912982 wrote:
In Sybase I would of stuck the 6 values into variables from Table 'One'. Then inserted them into a temp table and used that temp table in the join to get the rows from table 'Two' that I wanted. Then stuck those results in a temp table and lopped around the rows and split the data out into another temp table. Then just selected the temp table to uotput the results. Now that may seem long winded but very simple to build.The reason for that in Sybase/SQL-Server is to minimise locking. So grab data as quickly as possible (minimise the time needed for the read or write lock) and stuff it into a temp table that is session local and cannot cause lock contention with other sessions.
A monolithic lock manager is used. This means means that every single lock requires memory to manager. That is why lock escalation exists. Memory starts getting low and a bunch of row locks are changed into fewer page locks, thus freeing memory. Or a bunch of page locks are changed into a table lock, thus freeing memory.
Locks are expensive.
In Oracle that is not the case. A single lock cost as much as a billion locks. Nothing. Not a single byte of memory is required as there is no monolithic lock manager in memory (Oracle has transaction slots in data blocks). In Oracle, a reader (with read locks) does not block another reader or another writer. Even to the same rows. A writer does not block a reader - even to the same rows (and the reader does a consistent and not dirty read). The only times there is a block is when writers attempt to lock the same rows.
Thus in Oracle, there is no need for the long winded temp table work-around of Sybase. It is not only unnecessary, but you will seriously impact Oracle performance and scalability by doing that.
Oracle is not Sybase. So be careful of using your Sybase technical expertise and approaches to Oracle. It will be wrong most of the time.

Similar Messages

  • HT1918 What about the verification questions? the ones like "way was your first job?" or "your favorite teacher?" I just got a new iPod and forgot the answers to those questions, and need to change them..

    What about the verification questions? the ones like "way was your first job?" or "your favorite teacher?" I just got a new iPod and forgot the answers to those questions, and need to change them.. not sure how, but I need to do that in order to download new stuff on my new ipod

    Funds cannot be transferred from one Apple ID account to another.
    Try here > Rescue email address and how to reset Apple ID security questions
    If that doesn't help, contact Apple for assistance with your security questions > Contacting Apple for support and service

  • Just got new hard drive installed from apple and my old password doesn't work and it won't let me change it

    just got new hard drive installed from apple and my old password doesn't work and it won't let me change it.cant install anything ,pls help,thx

    Camera works. Now gotta find out about this mic thing

  • HT4489 Hi all, I have .vcf contact file exported from yahoo and need to import it to cloud. When I try to import it I get an eror "53 contacts not imported, eror reading vCards". Pls help ty

    Hi all, I have .vcf contact file exported from yahoo and need to import it to cloud. When I try to import it I get an eror "53 contacts not imported, eror reading vCards". Pls help ty

    1 - Select  the thumbnail of one of the problem photos and use the File ➙ Reveal in Finder ➙ Original menu option.  This will take you to the folder containing the original file with that file selected by the Finder. 
    You can also use Find Any File to search for that file (get the file name from the Info pane in iPhoto). You will find the thumbnail version and maybe an edited version also.  Made sure what is found is the large, original version and note were it's located.  Search all of your drives with FAF just in case.
    If you don't fine the full sized version then the only recourse is to use a file recovery application like   SubrosaSoft FileSalvage on your drives to see if any of your full sized photos can be recovered.   If you find enough files to make the purchase of the software worthwhile buy it and recover the files.  However, since it may have been quite a while since you discovered the missing originals it seems unlikely you'll be able to recover any due to being overwritten.
    2 - book projects are just entries in the library databases and can't be exported to another library. 

  • I got the new iPod for christmas and to buy an app it says i need to answer the security questions however i do not remember the answers....what should i do?

    i got the new iPod for christmas and to buy an app it says i need to answer the security questions however i do not remember the answers....what should i do?

    You need to use your "emergency email" that you used to set up your iPod to change the security questions and answers.

  • Am reinstalling creative suite 3 on new windows 7 install from XP and won't activate

    I Am reinstalling creative suite 3 on new windows 7 install from XP and it won't activate.  Phone number for activation no longer works just directs to website. Any ideas on getting it activated?

    Hi management-2,
    Welcome to the Adobe Forums,
    The best option would be upgarde to the present version as CS3 is not supported by Windows 7
    http://www.adobe.com/store/en_us/popup/software/creativesuite/mastercollection/systemreqs. html
    Regards
    Rajshree

  • I have a calculation in a5 and need the answer rounding up to the next whole number

    I have a calculation in cell a5 and need the answer rounding up to the next whole number

    Hi,
    I am using numbers
    A1 x A2 = A3       A4 is A3 divided by 2.88.  Indeed to round up the answer in A4 to the next whole number
    Eg 4.5 x 3.7 = 16.6 sq meters as an area , divided by 2.88 ( area of 1 board) = 5.78 boards so I need to buy 6 and quote for 6
    Cheers

  • I have a mac OS X version 10.5.8  and need adobe flash to installed..please  help

    i have a mac  OS X  version   10.5.8   and  need  adobe flash player to install   please  help

    Hello, likely you can, but...
    So we know more about it...
    At the Apple Icon at top left>About this Mac, then click on More Info, then click on Hardware> and report this upto but not including the Serial#...
    Hardware Overview:
    Model Name: iMac
    Model Identifier: iMac7,1
    Processor Name: Intel Core 2 Duo
    Processor Speed: 2.4 GHz
    Number Of Processors: 1
    Total Number Of Cores: 2
    L2 Cache: 4 MB
    Memory: 6 GB
    Bus Speed: 800 MHz
    Boot ROM Version: IM71.007A.B03
    SMC Version (system): 1.21f4
    Snow Leopard/10.6.x Requirements...
    General requirements
       * Mac computer with an Intel processor
        * 1GB of memory (I say 4GB at least, more if you can afford it)
        * 5GB of available disk space (I say 30GB at least)
        * DVD drive for installation
        * Some features require a compatible Internet service provider; fees may apply.
        * Some features require Apple’s MobileMe service; fees and terms apply.
    Which apps work with Mac OS X 10.6?...
    http://snowleopard.wikidot.com/
    Buy Snow Leopard > http://store.apple.com/us/product/MC573/mac-os-x-106-snow-leopard
    Call Apple Sales...in the US: 1-800-MY-APPLE. Or Support... 1-800-275-2273
    Other countries...
    http://support.apple.com/kb/HE57

  • I tried to buy a song on my account, and it told me I need to answer my security questions, and I don't remember them, and it ******* me off, because this is seriously so dumb man

    I tried to buy a song on my account, and it told me I need to answer my security questions, and I don't remember them, and it ******* me off, because this is seriously so dumb man

    Summer7633 wrote:
    I tried to buy a song on my account, and it told me I need to answer my security questions, ...
    1)  Apple ID: All about Apple ID security questions
    If necessary...
    2)  See Here... ask to speak with the Account Security Team...
    Apple ID: Contacting Apple for help with Apple ID account security
    3)  Or Email Here  >  Apple  Support  iTunes Store  Contact

  • HT204053 I forgot my answers to my questions. I am trying to buy an app and it says i need to answer my security questions but i forgot my answers. Can i change them or somehow find out what my answers were?

    Please someone help
    I forgot my answers to my questions. I am trying to buy an app and it says i need to answer my security questions but i forgot my answers. Can i change them or somehow find out what my answers were?

    You'll have to reset them.  Go to https://appleid.apple.com, click on manage your account on the right, sign in, click on Password and Security on the left, look for the link to reset your security questions to the right.  This will send a reset email to your rescue email address.
    If you don't see this link, contact iTunes store support for help: http://www.apple.com/emea/support/itunes/contact.html.

  • I just transfer the new software to my iphone 4 and now it has no network. Please help me

    I just transfer the new software to my iphone 4 and now it has no network. Please help me

    I don't know what really happened and why and how it 'came back to normal again' but thank you so much you guys. I'm new at this, as you may seen, and i'm portuguese, and my english is terrible. you reallyyyyy helped me, i has just almost having an heart attack. This was my b-day gift and here in portugal apple stuff are very expensive (at least for me)

  • HT1491 I am trying to buy a song on iTunes but it won't let me because I need to answer my security questions? But I don't remember the answers how can I change the questions?

    I am trying to buy a song on iTunes but it won't let me because I need to answer my security questions? But I don't remember the answers how can I change the questions?

    Click here and search the article for '2 out of 3' without the quotes; this generally involves either a message being sent to your rescue email address or contacting the iTunes Store staff directly.
    (74487)

  • HT5621 I have recently just bought an iPad but before I purchase anything I need to answer my security questions, I don't remember the answers, I went to  forgotten my security questions answers but them email was sent to my old email address

    I have recently just bought an iPad but before I purchase anything I need to answer my security questions, I don't remember the answers, I went to  forgotten my security questions answers but them email was sent to my old email address

    If the email hasn't arrived after a few hours and isn't in a spam filter, you need to ask Apple to reset your security questions; this can be done by phoning AppleCare and asking for the Account Security team, or clicking here and picking a method, or if your country isn't listed in either article, filling out and submitting this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (106007)

  • HT5622 Every time I try and change my answers the security questions it says an email has been sent to reset them but I still haven't gotten the email?

    Every time I try and change my answers the security questions it says an email has been sent to reset them but I still haven't gotten the email?

    If it's not in a spam filter, you need to contact Apple. Click here, phone them, and ask for the Account Security team, or fill out and submit this form.
    (92653)

  • New to Java and need help with this program..please!

    I'd really appreciate any helpful comments about this program assignment that I have to turn in a week from Friday. I'm taking a class one night a week and completely new to Java. I'd ask my professor for help, but we can't call him during the week and he never answers e-mails. He didn't tell us how to call from other classes yet, and I just can't get the darn thing to do what I want it to do!
    The assignment requirements are:
    1. Change a card game application that draws two cards
    and the higher card wins, to a Blackjack application
    2. Include a new class called Hand
    3. The Hand class should record the number of draws
    4. The application should prompt for a number of draws
    5. The game is played against the Dealer
    6. The dealer always draws a card if the dealer's hand total is <= 17
    7. Prompt the player after each hand if he wants to quit
    8. Display the total games won by the dealer and total and the total games wond by the player after each hand
    9. Display all of the dealer's and player's cards at the
    end of each hand
    10. Player has the option of drawing an additional card after the first two cards
    11. The Ace can have a value of 11 or 1
    (Even though it's not called for in the requirements, I would like to be able to let the Ace have a value of 1 or an 11)
    The following is my code with some comments about a few things that are driving me nuts:
    import java.util.*;
    import javax.swing.*;
    import java.text.*;
    public class CardDeck
    public CardDeck()
    deck = new Card[52];
    fill();
    shuffle();
    public void fill()
    int i;
    int j;
    for (i = 1; i <= 13; i++)
    for (j = 1; j <= 4; j++)
    deck[4 * (i - 1) + j - 1] = new Card(i, j);
    cards = 52;
    public void shuffle()
    int next;
    for (next = 0; next < cards - 1; next++)
    int rand = (int)(Math.random()*(next+1));
    Card temp = deck[next];
    deck[next] = deck[rand];
    deck[rand] = temp;
    public final Card draw()
    if (cards == 0)
    return null;
    cards--;
    return deck[cards];
    public int changeValue()
    int val = 0;
    boolean ace = false;
    int cds;
    for (int i = 0; i < cards; i++)
    if (cardValue > 10)
    cardValue = 10;
    if (cardValue ==1)     {
    ace = true;
    val = val + cardValue;
    if ( ace = true && val + 10 <= 21 )
    val = val + 10;
    return val;
    public static void main(String[] args)
    CardDeck d = new CardDeck();
    int x = 3;
    int i;
    int wins = 1;
    int playerTotal = 1;
    do {
    Card dealer = (d.draw());
    /**I've tried everything I can think of to call the ChangeValue() method after I draw the card, but nothing is working for me.**/
    System.out.println("Dealer draws: " + dealer);
    do {
    dealer = (d.draw());
    System.out.println(" " + dealer);
    }while (dealer.rank() <= 17);
    Card mine = d.draw();
    System.out.println("\t\t\t\t Player draws: "
    + mine);
    mine = d.draw();
    System.out.println("\t\t\t\t\t\t" + mine);
    do{
    String input = JOptionPane.showInputDialog
    ("Would you like a card? ");
    if(input.equalsIgnoreCase("yes"))
         mine = d.draw();
    System.out.println("\t\t\t\t\t\t" + mine);
         playerTotal++;
         else if(input.equalsIgnoreCase("no"))
    System.out.println("\t\t\t\t Player stands");
         else
    System.out.println("\t\tInvalid input.
    Please try again.");
    I don't know how to go about making and calling a method or class that will combine the total cards delt to the player and the total cards delt to the dealer. The rank() method only seems to give me the last cards drawn to compare with when I try to do the tests.**/
    if ((dealer.rank() > mine.rank())
    && (dealer.rank() <= 21)
    || (mine.rank() > 21)
    && (dealer.rank() < 22)
    || ((dealer.rank() == 21)
    && (mine.rank() == 21))
    || ((mine.rank() > 21)
    && (dealer.rank() <= 21)))
    System.out.println("Dealer wins");
    wins++;
         else
    System.out.println("I win!");
    break;
    } while (playerTotal <= 1);
    String stop = JOptionPane.showInputDialog
    ("Would you like to play again? ");
    if (stop.equalsIgnoreCase("no"))
    break;
    if (rounds == 5)
    System.out.println("Player wins " +
    (CardDeck.rounds - wins) + "rounds");
    } while (rounds <= 5);
    private Card[] deck;
    private int cards;
    public static int rounds = 1;
    public int cardValue;
    /**When I try to compile this nested class, I get an error message saying I need a brace here and at the end of the program. I don't know if any of this code would work because I've tried adding braces and still can't compile it.**/
    class Hand()
    static int r = 1;
    public Hand() { CardDeck.rounds = r; }
    public int getRounds() { return r++; }
    final class Card
    public static final int ACE = 1;
    public static final int JACK = 11;
    public static final int QUEEN = 12;
    public static final int KING = 13;
    public static final int CLUBS = 1;
    public static final int DIAMONDS = 2;
    public static final int HEARTS = 3;
    public static final int SPADES = 4;
    public Card(int v, int s)
    value = v;
    suit = s;
    public int getValue() { return value; }
    public int getSuit() { return suit;  }
    public int rank()
    if (value == 1)
    return 4 * 13 + suit;
    else
    return 4 * (value - 1) + suit;
    /**This works, but I'm confused. How is this method called? Does it call itself?**/
    public String toString()
    String v;
    String s;
    if (value == ACE)
    v = "Ace";
    else if (value == JACK)
    v = "Jack";
    else if (value == QUEEN)
    v = "Queen";
    else if (value == KING)
    v = "King";
    else
    v = String.valueOf(value);
    if (suit == DIAMONDS)
    s = "Diamonds";
    else if (suit == HEARTS)
    s = "Hearts";
    else if (suit == SPADES)
    s = "Spades";
    else
    s = "Clubs";
    return v + " of " + s;
    private int value; //Value is an integer, so how can a
    private int suit; //string be assigned to an integer?
    }

    Thank you so much for offering to help me with this Jamie! When I tried to call change value using:
    Card dealer = (d.changeValue());
    I get an error message saying:
    Incompatible types found: int
    required: Card
    I had my weekly class last night and the professor cleared up a few things for me, but I've not had time to make all of the necessary changes. I did find out how toString worked, so that's one question out of the way, and he gave us a lot of information for adding another class to generate random numbers.
    Again, thank you so much. I really want to learn this but I'm feeling so stupid right now. Any help you can give me about the above error message would be appreciated.

Maybe you are looking for

  • 790FX-GD70 LAN Problems

    Hello all; I recently purchased a bunch of components on NCIX, and assembled the computer together, and everything is working extremely well - minus the LAN connections. I've never seen the LEDs light up, and all I'm ever getting in the windows prope

  • Unable to see my Generation 2 Apple TV under iTunes 10.6.1

    I would like to download photos from my new iMac but I am unable to see my Generation 2 Apple TV under the left-hand tab column in iTunes 10.6.1.  There is no mention of Apple TV under the iTunes Preferences.  I am unable to download movies to my App

  • How to use HTML tags inside JSF pages

    I am creating a Menu using dataTable and outputLink in a JSF page. <div class="bodyarea"> <div id="location"> <ol> <h:dataTable value="#{menuItem.breadCrumb}" var="bread" > <h:column> <li> <h:outputLink id="crumbID" value="#{bread.menuLink}"> <h:outp

  • SimpleFormItem Tags on the same line

    I am developing a JSP that shows a form for a user to enter simple information about the size of a product. For example: height: [20] [cm] width: [10] [cm] Where I have indicated square brackets [] is where I need to have text fields. I have used <Si

  • Variables for proposal data

    I have requirement like this in Cust  Lamp  ActualCost   Selliing Price  Revenue  No.ofSupplied  Sales  Revenue Maruti  xyz        100              150              50               1lakh          150    50 This data I will be getting from Co Now Mar