**URGENT**Second opinion needed

Hey,
Currently have Iphone 3g, want to get the new blackberry bold. Prefer blackberries. Just would like some feedback on why to switch or not to switch,advantages vs disadvantages that I may not be thinking about. Have done research just need a general second opinion to fully make up my mind.

In general when one reads peoples opinion of the iPhone you hear this:
From those that traded up from basic phone to their first smart phone, the iPhone kicks bu*t.
For those that have had a smart phone (particularly Blackberry) they find the iPhone lacks in some of the things they had access to via owning a smart phone (big one is email options and how it works).
You hear mixed reviews from those that have had Blackberrys and used them to their full potential (some people just had them to had them so find the iPhone fine).
So you said you like Blackberry...I am assuming you had one and are missing some features of it. Thus the choice is based on your needs.
Those that want a richer corp. email experience find the Blackberry better.

Similar Messages

  • Recovering cold backup - running in circles - part 2 -Second opinion needed

    Hello all,
    Here I'm again but this time not to ask for a complete solution where I have to do nothing but a second opinion and some help in solving.
    In the thread [Recovering cold backup - alter database open failing - running in circles |http://forums.oracle.com/forums/thread.jspa?messageID=9663720] , I was trying to recover a database (I still am) for one of our clients.
    Since then a few things have changed, from our client we have no received the installation media for their database software: Oracle 10.0.1.0.2.
    I have installed this on a Linux, an opensuse while they used a RHEL 4, placed the database files in the a similar map structure as theirs and made sure that all the ORACLE variables were correctly set, we have also received the pfile and I made the corresponding initfile from.
    I start sqlplus / as sysdba
    Mounting the database no problem.
    Trying to open the database I receive the following error ORA-01207: file is more recent than controlfile – old controlfile, the error refers to the Datafile 2: '/home/oracle/product/10.1.0/oradata/orcl/undotbs01.dbf'.
    Their is no corresponding error message in the alert log, well their is but it doesn't really give me the information I was looking for.
    Mon Jul 11 16:38:26 2011
    alter database open
    ORA-1122 signalled during: alter database open...
    Mon Jul 11 16:44:51 2011
    ALTER DATABASE RECOVER database
    Mon Jul 11 16:44:51 2011
    Media Recovery Start
    Media Recovery failed with error 1122
    ORA-283 signalled during: ALTER DATABASE RECOVER database ...
    I then attempted to do a media recovery using recover database using backup controlfile, which fails because it can not find a corresponding backup controlfile.
    The section generated in the alert log did however worry me more:
    ALTER DATABASE RECOVER database using backup controlfile
    Mon Jul 11 16:46:15 2011
    Media Recovery Start
    WARNING! Recovering data file 1 from a fuzzy file. If not the current file
    it might be an online backup taken without entering the begin backup command.
    WARNING! Recovering data file 2 from a fuzzy file. If not the current file
    it might be an online backup taken without entering the begin backup command.
    WARNING! Recovering data file 3 from a fuzzy file. If not the current file
    it might be an online backup taken without entering the begin backup command.
    WARNING! Recovering data file 4 from a fuzzy file. If not the current file
    it might be an online backup taken without entering the begin backup command.
    WARNING! Recovering data file 5 from a fuzzy file. If not the current file
    it might be an online backup taken without entering the begin backup command.
    Starting datafile 1 with incarnation depth 0 in thread 1 sequence 1818761
    Datafile 1: '/home/oracle/product/10.1.0/oradata/orcl/system01.dbf'
    Starting datafile 2 with incarnation depth 0 in thread 1 sequence 1818764
    Datafile 2: '/home/oracle/product/10.1.0/oradata/orcl/undotbs01.dbf'
    Starting datafile 3 with incarnation depth 0 in thread 1 sequence 1818761
    Datafile 3: '/home/oracle/product/10.1.0/oradata/orcl/sysaux01.dbf'
    Starting datafile 4 with incarnation depth 0 in thread 1 sequence 1818765
    Datafile 4: '/home/oracle/product/10.1.0/oradata/orcl/users01.dbf'
    Starting datafile 5 with incarnation depth 0 in thread 1 sequence 1818761
    Datafile 5: '/home/oracle/product/10.1.0/oradata/orcl/temp02.dbf'
    Media Recovery Log
    So that could mean that they've just taken a copy off the files without offlining the database first, anyway to confirm this.
    I've come to a point where I have not an immediately clue of what to do, some help even a little push could be helpful.

    I did
    SQL> recover database using backup controlfile until cancel;
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    /home/oracle/product/10.1.0/oradata/orcl/redo01.log
    Tue Jul 12 12:36:03 2011
    ALTER DATABASE RECOVER LOGFILE '/home/oracle/product/10.1.0/oradata/orcl/redo01.log'
    Tue Jul 12 12:36:03 2011
    Media Recovery Log /home/oracle/product/10.1.0/oradata/orcl/redo01.log
    Tue Jul 12 12:36:03 2011
    Incomplete recovery applied all redo ever generated.
    Recovery completed through change 996740226
    Tue Jul 12 12:36:03 2011
    orcl; Media Recovery Complete
    ARCH: Connecting to console port...
    Completed: ALTER DATABASE RECOVER LOGFILE '/home/oracle/pr
    Tue Jul 12 12:36:18 2011
    ALTER DATABASE RECOVER database using backup controlfile until cancel
    Tue Jul 12 12:36:18 2011
    Media Recovery Start
    Starting datafile 1 with incarnation depth 0 in thread 1 sequence 1
    Datafile 1: '/home/oracle/product/10.1.0/oradata/orcl/system01.dbf'
    Starting datafile 2 with incarnation depth 0 in thread 1 sequence 1
    Datafile 2: '/home/oracle/product/10.1.0/oradata/orcl/undotbs01.dbf'
    Starting datafile 3 with incarnation depth 0 in thread 1 sequence 1
    Datafile 3: '/home/oracle/product/10.1.0/oradata/orcl/sysaux01.dbf'
    Starting datafile 4 with incarnation depth 0 in thread 1 sequence 1
    Datafile 4: '/home/oracle/product/10.1.0/oradata/orcl/users01.dbf'
    Starting datafile 5 with incarnation depth 0 in thread 1 sequence 1
    Datafile 5: '/home/oracle/product/10.1.0/oradata/orcl/temp02.dbf'
    Media Recovery Log
    It said media recovery complete in sqlplus
    when I tried to open I got disconnection forced
    Tue Jul 12 12:37:18 2011
    alter database open resetlogs
    RESETLOGS after complete recovery through change 996740226
    Resetting resetlogs activation ID 1284019345 (0x4c889491)
    Online log /home/oracle/product/10.1.0/oradata/orcl/redo02.log: Thread 1 Group 2 was previously cleared
    Online log /home/oracle/product/10.1.0/oradata/orcl/redo03.log: Thread 1 Group 3 was previously cleared
    Setting recovery target incarnation to 4
    Tue Jul 12 12:37:18 2011
    Setting recovery target incarnation to 4
    Tue Jul 12 12:37:18 2011
    Flashback Database Disabled
    Tue Jul 12 12:37:18 2011
    Assigning activation ID 1284062526 (0x4c893d3e)
    Maximum redo generation record size = 120832 bytes
    Maximum redo generation change vector size = 116476 bytes
    Private_strands 7 at log switch
    Thread 1 opened at log sequence 1
    Current log# 1 seq# 1 mem# 0: /home/oracle/product/10.1.0/oradata/orcl/redo01.log
    Successful open of redo thread 1
    Tue Jul 12 12:37:18 2011
    MTTR advisory is disabled because FAST_START_MTTR_TARGET is not set
    Tue Jul 12 12:37:18 2011
    SMON: enabling cache recovery
    Tue Jul 12 12:37:18 2011
    Successfully onlined Undo Tablespace 1.
    Dictionary check beginning
    Dictionary check complete
    Tue Jul 12 12:37:18 2011
    SMON: enabling tx recovery
    Tue Jul 12 12:37:18 2011
    WARNING: The following temporary tablespaces contain no files.
    This condition can occur when a backup controlfile has
    been restored. It may be necessary to add files to these
    tablespaces. That can be done using the SQL statement:
    ALTER TABLESPACE <tablespace_name> ADD TEMPFILE
    Alternatively, if these temporary tablespaces are no longer
    needed, then they can be dropped.
    Empty temporary tablespace: TEMP
    Database Characterset is UTF8
    Tue Jul 12 12:37:18 2011
    Published database character set on system events channel
    Tue Jul 12 12:37:18 2011
    All processes have switched to database character set
    Tue Jul 12 12:37:18 2011
    Errors in file /home/oracle/product/10.1.0/db_1/admin/orcl/udump/orcl_ora_19084.trc:
    ORA-00600: internal error code, arguments: [4194], [21], [17], [], [], [], [], []
    Tue Jul 12 12:37:19 2011
    Errors in file /home/oracle/product/10.1.0/db_1/rdbms/log/orcl_smon_19072.trc:
    ORA-00600: internal error code, arguments: [4194], [75], [7], [], [], [], [], []
    Tue Jul 12 12:37:20 2011
    Doing block recovery for file 2 block 25323
    Block recovery range from rba 1.65.0 to scn 0.996740294
    Recovery of Online Redo Log: Thread 1 Group 1 Seq 1 Reading mem 0
    Mem# 0 errs 0: /home/oracle/product/10.1.0/oradata/orcl/redo01.log
    Block recovery stopped at EOT rba 1.67.16
    Block recovery completed at rba 1.67.16, scn 0.996740294
    Doing block recovery for file 2 block 25
    Block recovery range from rba 1.65.0 to scn 0.996740293
    Recovery of Online Redo Log: Thread 1 Group 1 Seq 1 Reading mem 0
    Mem# 0 errs 0: /home/oracle/product/10.1.0/oradata/orcl/redo01.log
    Block recovery completed at rba 1.67.16, scn 0.996740294
    Tue Jul 12 12:37:20 2011
    Errors in file /home/oracle/product/10.1.0/db_1/rdbms/log/orcl_smon_19072.trc:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-00607: Internal error occurred while making a change to a data block
    ORA-00600: internal error code, arguments: [4194], [75], [7], [], [], [], [], []
    Tue Jul 12 12:37:21 2011
    Doing block recovery for file 2 block 1295
    Block recovery range from rba 1.63.0 to scn 0.996740295
    Recovery of Online Redo Log: Thread 1 Group 1 Seq 1 Reading mem 0
    Mem# 0 errs 0: /home/oracle/product/10.1.0/oradata/orcl/redo01.log
    Block recovery stopped at EOT rba 1.67.16
    Block recovery completed at rba 1.67.16, scn 0.996740294
    Doing block recovery for file 2 block 41
    Block recovery range from rba 1.63.0 to scn 0.996740292
    Recovery of Online Redo Log: Thread 1 Group 1 Seq 1 Reading mem 0
    Mem# 0 errs 0: /home/oracle/product/10.1.0/oradata/orcl/redo01.log
    Block recovery completed at rba 1.65.16, scn 0.996740293
    Tue Jul 12 12:37:21 2011
    Errors in file /home/oracle/product/10.1.0/db_1/admin/orcl/udump/orcl_ora_19084.trc:
    ORA-00600: internal error code, arguments: [4193], [57818], [10145], [], [], [], [], []
    Doing block recovery for file 2 block 622
    Block recovery range from rba 1.67.0 to scn 0.996740298
    Recovery of Online Redo Log: Thread 1 Group 1 Seq 1 Reading mem 0
    Mem# 0 errs 0: /home/oracle/product/10.1.0/oradata/orcl/redo01.log
    Block recovery stopped at EOT rba 1.69.16
    Block recovery completed at rba 1.69.16, scn 0.996740298
    Doing block recovery for file 2 block 9
    Block recovery range from rba 1.67.0 to scn 0.996740297
    Recovery of Online Redo Log: Thread 1 Group 1 Seq 1 Reading mem 0
    Mem# 0 errs 0: /home/oracle/product/10.1.0/oradata/orcl/redo01.log
    Block recovery completed at rba 1.69.16, scn 0.996740298
    WARNING: Files may exists in db_recovery_file_dest
    that are not known to the database. Use the RMAN command
    CATALOG RECOVERY AREA to re-catalog any such files.
    One of the following events caused this:
    1. A backup controlfile was restored.
    2. A standby controlfile was restored.
    3. The controlfile was re-created.
    4. db_recovery_file_dest had previously been enabled and
    then disabled.
    Tue Jul 12 12:37:23 2011
    Errors in file /home/oracle/product/10.1.0/db_1/admin/orcl/udump/orcl_ora_19084.trc:
    ORA-00600: internal error code, arguments: [4194], [75], [7], [], [], [], [], []
    Doing block recovery for file 2 block 25323
    Block recovery range from rba 1.65.0 to scn 0.996740294
    Recovery of Online Redo Log: Thread 1 Group 1 Seq 1 Reading mem 0
    Mem# 0 errs 0: /home/oracle/product/10.1.0/oradata/orcl/redo01.log
    Block recovery completed at rba 1.67.16, scn 0.996740297
    Doing block recovery for file 2 block 25
    Block recovery range from rba 1.65.0 to scn 0.996740301
    Recovery of Online Redo Log: Thread 1 Group 1 Seq 1 Reading mem 0
    Mem# 0 errs 0: /home/oracle/product/10.1.0/oradata/orcl/redo01.log
    Block recovery completed at rba 1.71.16, scn 0.996740302
    Tue Jul 12 12:37:24 2011
    Errors in file /home/oracle/product/10.1.0/db_1/admin/orcl/udump/orcl_ora_19084.trc:
    ORA-00607: Internal error occurred while making a change to a data block
    ORA-00600: internal error code, arguments: [4194], [75], [7], [], [], [], [], []
    Error 607 happened during db open, shutting down database
    USER: terminating instance due to error 607
    Instance terminated by USER, pid = 19084
    ORA-1092 signalled during: alter database open resetlogs...
    ************************************************************************************************************************************************************************************************

  • Urgent!help needed!!Payment issue!!!

    Last day I updated my credit cart info to make the payment and on the screen comes up a hint as follows:
    I updated the info for 6 times to make sure it is OK.Every time I update I receive a hint from my bank about $1,which in total is about $6 for 6 times.
    And words from the bank said the money for the creative cloud still remain in my account and was not charged.
    later I check with the customer service support and I was told the payment was not successfully.
    And in my transaction record there was no record of October.
    What is exactly the situation????
    Another problem is that can I change my email address?
    My email address which used to register is yahoo china .Yahoo China email has been shut down and I cannot log in any more.
    Urgent help is needed!! Anyone especially customer support from adobe can help me???Thanks you very much!!

    Hi Prasad,
    if you have performance problems with your table because of lots of different controls in it, then maybe you could try instead of that to create two tables, one for display of rows  (only textviews), and the other table for editing only one row (currently selected row). The second (for edit) table can be shown only when you want to add a new row, or edit selected row and it can be hidden when you are finished with editing selected row.
    In that way you can have one big table with only textviews and no events, and one small - one row table for editing with dropdowns, datepickers etc.
    You can put EditTable(the one for editing) above ShowTable (the one in which you display rows as textviews).
    ie.
    EditTable
    ShowTable
    Hope that helps,
    Ladislav

  • Second opinion : Database events

    I'm probably a bit late but I found Database events and that seems to me something I have to use... Together with SQLlite / applescript...
    But I want a second opinion. Is this is the best way to store my data for free?
    Because when I start using database events I will get big databases with many records and fields,...
    Of course if you have a better suggestion I would like to know it..
    I prefer free / open source solutions. My software budget is zero this year.
    Many thanks.

    What is your primary goal here - to store lots of data, or to AppleScript your data?
    The reason I ask is that Database Events is your simplest path to using a database within AppleScript, however it has a few caveats.
    First is that I don't know anyone that's using it at scale. I've used it myself for small data sets but I don't know anyone storing gigabytes (or terabytes) of data with it. It might be fine - I just don't hear of it happening.
    The second is that, IIRC, Apple have changed their underlying database in the past, so you may need to consider what to do if they repeat that (and whether they'll provide seamless migration tools).
    So if your primary goal is to store lots of data, then there are other, free, solutions out there including MySQL, PostgreSQL and more. Of course, the downside to these is that there is little or no AppleScript integration, so you're limited to interacting with then via shell commands. AFAIK all the other databases that support AppleScript (either directly or via ODBC) are commercial.

  • KT6V LSR (MS 7021) SATA controller card second opinion, please

    I want to thank Fredrik Asenius for his reply to my previous post.
    However, due to the fact that the purchase of a SATA controller card and two SATA2 hard disks will be handled, of necessity, at a distance of 800 kilometers (involving courier expenses), the technician of the store has requested that I ask for a second opinion from another expert in the forum. An error, therefore, could be very costly. (No offense of any kind intended to Fredrik Asenius)
    My motherboard is the MSI KT6V LSR (MS 7021) Via KT600 Northbridge and Via 8237 Southbridge chipsets.
    Both SATA connections are currently taken up by two SATA hard drives (no striping, nor mirroring in use). The rest of the installation consists of IDE CDRW and DVDRW drives, as well as an MSI Nvidia NX6200AX (256 RAM) AGP video card and a Soundblaster Live Value PCI audio card. The other four PCI slots are not occupied. The system also has 1.5 gigabytes of RAM and a 520-watt PSU. I am running Windows XP SP2 Professional.
    My questions are the following:
    (1) Since the two SATA connectors on my motherboard are occupied, if I wish to add another SATA device I will have to install a SATA controller card. Does the SATA controller card have to be SATA 1 or can I also use a SATA 2 controller card?
    IMPORTANTLY, the technician questions whether the motherboard will accept a controller card adding more SATA devices. He says that you cannot add any more SATA devices to this motherboard. Is he correct?
    (2) If it is possible to add more SATA devices using a controller card, since the chipset on the motherboard is Via the SATA controller software is also from Via. Does the SATA controller card also have to be one that uses the Via SATA RAID software? (In other words, are there compatibility issues? Can all this all work together?)
    Once again, thanks for the help.

    Quote from: bjmcm on 14-December-06, 04:40:05
    (1) Since the two SATA connectors on my motherboard are occupied, if I wish to add another SATA device I will have to install a SATA controller card. Does the SATA controller card have to be SATA 1 or can I also use a SATA 2 controller card?
    IMPORTANTLY, the technician questions whether the motherboard will accept a controller card adding more SATA devices. He says that you cannot add any more SATA devices to this motherboard. Is he correct?
    (2) If it is possible to add more SATA devices using a controller card, since the chipset on the motherboard is Via the SATA controller software is also from Via. Does the SATA controller card also have to be one that uses the Via SATA RAID software? (In other words, are there compatibility issues? Can all this all work together?)
    Once again, thanks for the help.
    I have had a fair amount of experience with this kind of issue.
    1. No, the add in card does not need to be SATA I, it can be SATA II. I recommend a SATA II card and SATA II drives. Putting SATA II drives on a SATA I controller can fail to work.
    2. Is he wrong? Essentially, yes he is wrong. It depends on how literally you take his words. You can NOT add more SATA drives to the motherboard. You CAN add an add-in SATA card and then put the additional SATA drives on that new add-in card. The difference in wording the answer is critical.
    You ask about the Via chipset on the motherboard and also on the add-in card. Actually, it is probably LESS likely that the add-in card will work if the chipsets are the same. The issue is the computer being able to differentiate between the two controllers. I had this very problem with a machine.
    That computer had two add-in cards. Each was the same brand. The computer could not differentiate between the two cards and gave a hardware error. I replaced one of the cards with another brand and it works fine. The manufacturer suggested trying the cards in different PCI slots. I did not try that, I just got a new card because it was easier for me.
    The add-in card does NOT need to support RAID, that is optional. If you do not want to use RAID, the card does not have to support it. If you do want to use RAID, obviously the card does need to support it. RAID is part hardware and part software so if the card supports it and you do not to set it up as RAID, that is fine.
    One caution...If the add-in card has an external port that you want to use, be aware that there is something called e-SATA that might use an incompatable type of port connecter. I had a card with that connecter and I found that the cables are extremely expensive and also hard to find. Most external SATA connectors are the SATA I style that you are used to though.

  • Purchased a second iphone need to create an account, however the computer already has an itunes account...How do I create a second  account using one copy of itunes on a computer??

    Purchased a second iphone need to create an account, however the computer already has an itunes account for the first iphone...How do I create a second  account using one copy of itunes on single computer??

    Why do you need a new account?
    Use the same account on both.
    How to use multiple iPods, iPads, or iPhones with one computer

  • My BB9810 refuse to load OS7.1 software on my phone after the download has completed. My phone has freezed/stucked since morning. Pls urgent help/assistant needed as I can not access/use my phone for over 24hrs now.

    My BB9810 refuse to load OS7.1 software on my phone after the download has completed. My phone has freezed/stucked since morning. Pls  urgent help/assistant needed as I can not access/use my phone for over 24hrs now.

    Hi there,
    Use the method described in the link below to get back up and running:
    http://supportforums.blackberry.com/t5/Device-software-for-BlackBerry/How-To-Reload-Your-Operating-S...
    I hope this info helps!
    If you want to thank someone for their comment, do so by clicking the Thumbs Up icon.
    If your issue is resolved, don't forget to click the Solution button on the resolution!

  • I want to install my Adobe CC on my new second computer. My current second computer needs to be repa

    I want to install my Adobe CC on my NEW second computer.
    My current second computer needs to be repared and I will get this new one.
    How can I install my acount on this new computer without having issues.
    I tried to look for the answer, but the only thing I could find is that once I install the account on the 3th device, I can deactivate it on the second one.
    The problem is: My second computer will be gone already before I receive the third computer.
    Do I need to deactivate my account in advance before receiving my new computer?
    Please help
    Angelo

    Hi Di Totto,
    Welcome to Adobe Forum,
    When you install it on the third computer or for the third time & when you to activate it, if it installed & activated already twice, there will be an option of deactivating it from the previous computers, please click on that.
    Next it will allow you to activate on your new machine,
    Now you can go back to your first computer, log out & log back in of Desktopp CC App, launch any product, if there is any product to buy, in that prompt there will be an option to " license the software", please click on that & sign in.
    It will reactivate the CC on the first machine.
    You have already deactivated it from one machine, hence you can activate it on third computer.
    Regards,
    Rajshree

  • Using unicode in sms sending :)plz. urgent reply is needed.

    when i want to send a sms of string of unicode. is it necessary to encode it in UTF8 or UTF16 ???
    when i encode it then the length of the string comes larger.
    can i send sms as a string of unicode without changing its length????
    like this:
    String str="\u270F";
    // now str's length is 1
    str = new String(str.getBytes("UTF16"));
    //now str's length is 4!!!!!!!!
    plz. urgent reply is needed.
    best regards
    tanvir

    By default SMS has it's own text encoding and therefore you cannot use UTF8 nor UTF16. There is a special UCS2 encoding, alowing for 70 unicode characters to be send (per sms). See: http://www.dreamfabric.com/sms/

  • HT204291 When am watching live news on air play it shows only for  one minute 30 seconds I need some help?

    When am watching live news on air play it only shows for one minute 30 seconds ,, I need some help?

    First of all, Hunt--thanks for responding!
    "First, where are you playing the MPEG-2, that you see that jitter?"
    On both a MacBook Pro, an Acer laptop and my Mac Tower. I would love to think that it is a problem with the playback system, and that if I merely send the file off to the duplicator they won't have the same problem. Maybe that is the case...I don't know if I have a choice rather than sending it off to see. But it happens in the same spots, in the same way, on all three of the players so I'm a little reluctant to have faith.
    "Another thing that can cause jitter in an MPEG-2 is the Bit-Rate - higher the Bit-Rate, the better the quality, but the larger the file. For a DVD, one is limited by the total Bit-Rate (both Audio & Video), but with longer prodcutions, some users choose too low a Bit-Rate. If this is the issue, one would need to go back to the original Project and do a new Export/Share."
    Of course, but in the case there is no more 'original project.' It is gone like the wind, stolen along with his computer and backups.
    I think I am stuck using one of two files as my master: a DVD he burned where I only see the stutter/vibration/jitter once, or the mpeg2 file where I see it three times. Hopefully, the duplication house can rip if off of one of them and not see the jitter. I know that in audio, my personal filed, you can do a lot to enhance already existing sound--EQ, compression, tape saturation emulation software, etc. I guess I'm hoping there is some kind of analog to the video world that address jitter after a source has been printed--if indeed the source has been printed to be jittery.
    Thanks,
    Doug

  • Applet not quite working correctly, need second opinion

    I'm sure you guys are getting tired of seeing me post questions, but I have another one. The following code is a simple Card Bet game(High Low). The problem is the score is not accumulating correctly. Sometimes it add when with should subtract, and vice versa. I got tired of trying to figure out my problems with SecretPhrase so I figured I would try another part of my project, only to run into more problems.
    Code:
       import javax.swing.*;
       import java.awt.*;
       import java.awt.event.*;
       import java.util.*;
        public class JCardBet extends JApplet implements ActionListener
          JLabel title = new JLabel("** Bet the Card **");
          JLabel compCard = new JLabel("");
          JLabel playerCard = new JLabel("");
          int compRand, playerRand;
          int total = 10;
          JLabel totalMoney = new JLabel("");
          JLabel gameOver = new JLabel("");
          JButton fiveHigh = new JButton("$5 Higher");
          JButton tenHigh = new JButton("$10 Higher");
          JButton fiveLow = new JButton("$5 Lower");
          JButton tenLow = new JButton("$10 Lower");
          JButton ok = new JButton("OK");
          Font font1 = new Font("Helvetica", Font.BOLD, 34);
          Font font2 = new Font("Helvetica", Font.BOLD, 20);
          String[] deck = {"2 of Spades", "2 of Hearts", "2 of Diamonds", "2 of Clubs",
                                 "3 of Spades", "3 of Hearts", "3 of Diamonds", "3 of Clubs",
                            "4 of Spades", "4 of Hearts", "4 of Diamonds", "4 of Clubs",
                                 "5 of Spades", "5 of Hearts", "5 of Diamonds", "5 of Clubs",
                               "6 of Spades", "6 of Hearts", "6 of Diamonds", "6 of Clubs",
                            "7 of Spades", "7 of Hearts", "7 of Diamonds", "7 of Clubs",
                                 "8 of Spades", "8 of Hearts", "8 of Diamonds", "8 of Clubs",
                            "9 of Spades", "9 of Hearts", "9 of Diamonds", "9 of Clubs",
                            "10 of Spades", "10 of Hearts", "10 of Diamonds", "10 of Clubs",
                            "Jack of Spades","Jack of Hearts", "Jack of Diamonds", "Jack of Clubs",
                            "Queen of Spades", "Queen of Hearts", "Queen of Diamonds", "Queen of Clubs",
                            "King of Spades", "King of Hearts", "King of Diamonds", "King of Clubs",
                            "Ace of Spades", "Ace of Hearts", "Ace of Diamonds", "Ace of Clubs"};
           public void cardGenerator()
             Random generator = new Random();
             compRand = generator.nextInt(52);
             playerRand = generator.nextInt(52);
           public void cardSort()
             Arrays.sort(deck);
           public void init()
             Container con = getContentPane();
             setLayout(new FlowLayout());
             con.add(title);
             title.setFont(font1);
             cardGenerator();
             cardSort();
             con.add(compCard);
             compCard.setText("Computer: " + deck[compRand]);
             compCard.setFont(font2);
             con.add(fiveHigh);
             fiveHigh.addActionListener(this);
             con.add(tenHigh);
             tenHigh.addActionListener(this);
             con.add(fiveLow);
             fiveLow.addActionListener(this);
             con.add(tenLow);
             tenLow.addActionListener(this);
             con.add(playerCard);
             playerCard.setFont(font2);
             con.add(totalMoney);
             totalMoney.setText("Starting with $" + total);
             con.add(ok);
             ok.addActionListener(this);
             ok.setEnabled(false);
             con.add(gameOver);
           public void actionPerformed(ActionEvent e)
             Object source = e.getSource();
             if(source == fiveHigh)
                cardGenerator();
                playerCard.setText("Your card: " + deck[playerRand]);
                cardSort();
                ok.setEnabled(true);
                fiveHigh.setEnabled(false);
                tenHigh.setEnabled(false);
                fiveLow.setEnabled(false);
                tenLow.setEnabled(false);
                if(playerRand > compRand)
                   total = total + 5;
                   totalMoney.setText("Your new total is $" + total);
                else if(playerRand < compRand)
                   total = total - 5;
                   totalMoney.setText("Your new total is $" + total);
             else if(source == tenHigh)
                cardGenerator();
                playerCard.setText("Your card: " + deck[playerRand]);
                cardSort();
                ok.setEnabled(true);
                fiveHigh.setEnabled(false);
                tenHigh.setEnabled(false);
                fiveLow.setEnabled(false);
                tenLow.setEnabled(false);
                if(playerRand > compRand)
                   total = total + 10;
                   totalMoney.setText("Your new total is $" + total);
                else if(playerRand < compRand)
                   total = total - 10;
                   totalMoney.setText("Your new total is $" + total);
             else if(source == fiveLow)
                cardGenerator();
                playerCard.setText("Your card: " + deck[playerRand]);
                cardSort();
                ok.setEnabled(true);
                fiveHigh.setEnabled(false);
                tenHigh.setEnabled(false);
                fiveLow.setEnabled(false);
                tenLow.setEnabled(false);
                if(playerRand < compRand)
                   total = total + 5;
                   totalMoney.setText("Your new total is $" + total);
                else if(playerRand > compRand)
                   total = total - 5;
                   totalMoney.setText("Your new total is $" + total);
             else if(source == tenLow)
                cardGenerator();
                playerCard.setText("Your card: " + deck[playerRand]);
                cardSort();
                ok.setEnabled(true);
                fiveHigh.setEnabled(false);
                tenHigh.setEnabled(false);
                fiveLow.setEnabled(false);
                tenLow.setEnabled(false);
                if(playerRand < compRand)
                   total = total + 10;
                   totalMoney.setText("Your new total is $" + total);
                else if(playerRand > compRand)
                   total = total - 10;
                   totalMoney.setText("Your new total is $" + total);
             else if(source == ok)
                cardGenerator();
                compCard.setText("Next computer card :" + deck[compRand]);
                cardSort();
                ok.setEnabled(false);
                fiveHigh.setEnabled(true);
                tenHigh.setEnabled(true);
                fiveLow.setEnabled(true);
                tenLow.setEnabled(true);
             if(total <= 0 || total >= 100)
                gameOver.setText("Game Over!");
                gameOver.setFont(font1);
                ok.setEnabled(false);
                fiveHigh.setEnabled(false);
                tenHigh.setEnabled(false);
                fiveLow.setEnabled(false);
                tenLow.setEnabled(false);
       }

    See thats just the thing, I don't think my sort() is working correctly, because if it was thensort() is a library method. Whatever it is documented to do, you can rest assured it is doing it correctly.
    playerRand and compRand are ints. You assign to them in the cardGenerator() method with the lines
    compRand = generator.nextInt(52);
    playerRand = generator.nextInt(52);and there is no reason why they should not be equal.
    I don't know if this is the source of the problem or not - basically I don't know what "the score is not accumulating correctly" means.
    Since you have random numbers being generated it can be difficult both to reproduce and describe problems. One way to lessen this difficulty would be to make generator an instance variable and initialise it in the constructor. One of the Random constructors lets you provide a seed value. The effect of this that the numbers generated are still "random", but are also completely reproducible. This is a good thing for testing.
    Also you could split the huge actionPerformed() method - perhaps having a number of action listeners each with a more moderate sized actionPerformed() method whose intent can be documented and whose implemention can be tested.
    Edited by: pbrockway2 on Jul 20, 2008 2:13 PM
    Why do you sort the array of strings anyway? And why, having sorted it, do you periodically sort it again (since at that point it is already sorted)?

  • Re: Need a second opinion

    Quote from: snowsak on Today at 21:26:5729C right now and its 00:19 o clock
    Same temperature and time here  a bit more east though

    Quote from: snowsak on Today at 21:09:54But so far its all good right?
    Nothing is bad.
    The term "stable" is open to interpretations. e.g. I know my settings won&#39;t hold hours of OCCT small datset, however ...

  • How do i install mySQL on my macbook air,please i need the assistance urgently,because i need to use the program for my course.

    how do i install mySQL on my macbook air.please i need urgent assistance,as it would help me do my course work.
    regarde garabella.

    Call AppleCare and ask them to send you a replacement set. They will charge you a nominal fee for shipping and handling.
    Allan

  • Urgent help in needed for StorProc

    Hi All,
    How are you today?
    We have a package in which we have a SP called SERVICE_TO_PRNTMNGR.
    Database Version 11.2.0.2
    The issue now is-
    The store procedure checks if all print jobs which have the same Fulfillment id (which is kept in PrintJobQueueDI.sessionID) have finished or not;
    If not, it will throw exception. The error code is 20004.
    What we want as a fix is-
    The store procedure should check if all print jobs which have the same Fulfillment id (which is kept in PrintJobQueueDI.sessionID)
    and Service Request ID (it is ketp in PrintJobDataDI.docId) have finished or not;
    If not, it will throw exception. The error code is 20004.
    Here is the package which has sp(SERVICE_TO_PRNTMNGR):
    Create or Replace PACKAGE XSP_POPULATE_PRNTMNGR
    IS
      FUNCTION FULFILLMENT_TO_PRNTMNGR
                (P_FULFILLMENT_ID IN FULFILLMENT_REQUEST.FULFILLMENT_ID%TYPE,
                 P_MODE           IN VARCHAR2)
                RETURN SYS_REFCURSOR;
      FUNCTION SERVICE_TO_PRNTMNGR
                (P_SERVICE_ID     IN SERVICE_REQUEST.SERVICE_ID%TYPE)
                RETURN SYS_REFCURSOR;
    END;
    Create or Replace PACKAGE BODY XSP_POPULATE_PRNTMNGR
    IS
       l_package_name                       VARCHAR2(50) := 'XSP_POPULATE_PRNTMNGR';
       l_PrintJobQueueDI_REC            PrintJobQueueDI%ROWTYPE;
       l_PrintJobDataDI_REC             PrintJobDataDI%ROWTYPE;
       e_NOT_S_F_STATUS_IND_REQ         EXCEPTION;
       e_NO_SERVICES_FOR_THE_PRINTMGR   EXCEPTION;
       e_NOT_ALL_PREV_REQ_COMPLETED     EXCEPTION;
       e_ALREADY_INITIALLY_PRINTED      EXCEPTION;
       e_NOT_PRINTED_INITIALLY          EXCEPTION;
       l_NUM_REC_CREATED                NUMBER :=0;
       PROCEDURE *SERVICE_TO_PRNTMNGR*
                (P_SERVICE_ID     IN SERVICE_REQUEST.SERVICE_ID%TYPE,
                 P_FULFILLMENT_ID IN FULFILLMENT_REQUEST.FULFILLMENT_ID%TYPE,
                 P_MODE           IN VARCHAR2);
       PROCEDURE INSERT_PrintJobQueueDI
                (P_FULFILLMENT_ID IN FULFILLMENT_REQUEST.FULFILLMENT_ID%TYPE,
                 P_MODE           IN VARCHAR2);
           FUNCTION FULFILLMENT_TO_PRNTMNGR
           FUNCTION FULFILLMENT_TO_PRNTMNGR
                    (P_FULFILLMENT_ID IN FULFILLMENT_REQUEST.FULFILLMENT_ID%TYPE,
                     P_MODE           IN VARCHAR2)
                    RETURN SYS_REFCURSOR
              Name:  FULFILLMENT_TO_PRNTMNGR
            Params: P_FULFILLMENT_ID IN FULFILLMENT_REQUEST.FULFILLMENT_ID%TYPE,
                    P_MODE        IN  VARCHAR2
              Desc: The procedure loops through FULFILLMENT_SERVICE table
                    and calls xsp_service_to_printmanager for each serviceId.
            MGS -  legal aid  liens not printing or e-mail Do not insert RECEIPT
                   record into PrintJobDataDI if the RECEIPT is NULL
         IS
         l_errmsg                      VARCHAR2(1000):= '';
         l_module_name                 VARCHAR2(200) := l_package_name || '.' || 'FULFILLMENT_TO_PRNTMNGR';
         l_selcnt                      INTEGER;
         l_error                      INTEGER;
         l_rowcnt            INTEGER;
         l_sqlstatus                       INTEGER;
         l_wrong_parameter              VARCHAR2(50);
         l_TABLE_NAME                   VARCHAR2(30);
         l_EXISTS                       NUMBER(1);
         l_FULFILLMENT_ID               FULFILLMENT_REQUEST.FULFILLMENT_ID%TYPE;
         l_PrintJobQueueDI_populated    BOOLEAN:=FALSE;
         CURSOR_out                     SYS_REFCURSOR;
        BEGIN
          IF  P_FULFILLMENT_ID IS NULL OR
              P_MODE IS NULL
          THEN
              RAISE appl_error.e_missing_parameter;
          END IF;
          IF P_MODE NOT IN ('I','R')
          THEN
            l_wrong_parameter := 'P_MODE' || '=' || P_MODE;
            RAISE appl_error.e_wrong_parameter;
          END IF;
          -- Check if the Fulfillment Request
          -- completed successfully or failed
          l_NUM_REC_CREATED :=0;
          BEGIN
            SELECT 1 INTO l_EXISTS
             FROM FULFILLMENT_REQUEST
              WHERE FULFILLMENT_ID = P_FULFILLMENT_ID
               AND STATUS_IND IN ('S', 'F'); -- Successfull
          EXCEPTION
          WHEN NO_DATA_FOUND THEN
           RAISE e_NOT_S_F_STATUS_IND_REQ;
          END;
          IF P_MODE = 'I'
          THEN
              FOR l_SERVICE_REQ IN (SELECT sr.SERVICE_ID
                                      FROM FULFILLMENT_SERVICE fs,
                                           SERVICE_REQUEST sr,
                                           REQUEST_DESTINATION rd
                                      WHERE rd.SERVICE_ID = fs.SERVICE_ID
                                       AND sr.SERVICE_ID = fs.SERVICE_ID
                                        AND fs.FULFILLMENT_ID = P_FULFILLMENT_ID
                                         AND DELIVERY_METHOD_ID = 'P' -- Print
                                       AND sr.STATUS_IND = 'S')
              LOOP
                IF NOT l_PrintJobQueueDI_populated
                THEN
                    INSERT_PrintJobQueueDI (P_FULFILLMENT_ID,P_MODE);
                   l_PrintJobQueueDI_populated := TRUE;
                    -- The data in the l_PrintJobDataDI_REC is populated by INSERT_PrintJobQueueDI
                    IF l_PrintJobDataDI_REC.CONTENT IS NOT NULL THEN -- The Condition added on 01-APR-2011
                        INSERT INTO PrintJobDataDI VALUES l_PrintJobDataDI_REC; -- Receipt
                    END IF;
                    l_NUM_REC_CREATED := l_NUM_REC_CREATED + SQL%ROWCOUNT;
                END IF;
                *SERVICE_TO_PRNTMNGR*(l_SERVICE_REQ.SERVICE_ID,P_FULFILLMENT_ID,P_MODE);
              END LOOP;
              IF NOT l_PrintJobQueueDI_populated
              THEN
                RAISE e_NO_SERVICES_FOR_THE_PRINTMGR;
              END IF;
          ELSE -- P_MODE = 'R'
            INSERT_PrintJobQueueDI (P_FULFILLMENT_ID,'RF');
            l_PrintJobQueueDI_populated := TRUE;
          END IF;
          OPEN CURSOR_out FOR
           select l_NUM_REC_CREATED from dual;
           RETURN CURSOR_out;
          EXCEPTION
             WHEN appl_error.e_missing_parameter THEN
                  l_error := 20001;
                  l_errmsg:= appl_error.get_error_message(l_error,l_module_name,null,null);
                  raise_application_error(l_error*(-1), l_errmsg);
             WHEN appl_error.e_wrong_parameter THEN
                  l_error := 20003;
                  l_errmsg:= appl_error.get_error_message(l_error,l_wrong_parameter,l_module_name,null);
                  raise_application_error(l_error*(-1), l_errmsg);
             WHEN appl_error.e_no_records_retrieved THEN
                  l_error := 20122;
                  l_errmsg:= appl_error.get_error_message(l_error,l_module_name,l_TABLE_NAME,null);
                  raise_application_error(l_error*(-1), l_errmsg);
             WHEN e_NOT_S_F_STATUS_IND_REQ THEN
                  l_error := 20004;
                  l_errmsg:= appl_error.get_error_message(l_error,l_module_name,
                    'The Status_Ind of the Fulfillment_Id=' || P_FULFILLMENT_ID ||
                    ' is not S or F',null);
                  raise_application_error(l_error*(-1), l_errmsg);
             WHEN e_NO_SERVICES_FOR_THE_PRINTMGR THEN
                  l_error := 20004;
                  l_errmsg:= appl_error.get_error_message(l_error,l_module_name,
                    'No Successfully completed services w/Delivery Method=P for the Fulfillment_Id=' ||
                    P_FULFILLMENT_ID,null);
                  raise_application_error(l_error*(-1), l_errmsg);
           END FULFILLMENT_TO_PRNTMNGR;
           FUNCTION SERVICE_TO_PRNTMNGR
           FUNCTION SERVICE_TO_PRNTMNGR
                (P_SERVICE_ID     IN SERVICE_REQUEST.SERVICE_ID%TYPE)
                RETURN SYS_REFCURSOR
              Name:  SERVICE_TO_PRNTMNGR
            Params: P_SERVICE_ID  IN  SERVICE_REQUEST.SERVICE_ID%TYPE
              Desc: To be called from Application for the single Service_Id reprint.
        IS
           CURSOR_out                       SYS_REFCURSOR;
        BEGIN
           SERVICE_TO_PRNTMNGR(P_SERVICE_ID,NULL,'R');
           OPEN CURSOR_out FOR
           select l_NUM_REC_CREATED from dual;
           RETURN CURSOR_out;
        END SERVICE_TO_PRNTMNGR;
           *PROCEDURE SERVICE_TO_PRNTMNGR*
           PROCEDURE *SERVICE_TO_PRNTMNGR*           
                (P_SERVICE_ID     IN SERVICE_REQUEST.SERVICE_ID%TYPE,
                 P_FULFILLMENT_ID IN FULFILLMENT_REQUEST.FULFILLMENT_ID%TYPE,
                 P_MODE           IN VARCHAR2)
              Name:  SERVICE_TO_PRNTMNGR
              Params: P_SERVICE_ID  IN  SERVICE_REQUEST.SERVICE_ID%TYPE,
                      P_FULFILLMENT_ID IN FULFILLMENT_REQUEST.FULFILLMENT_ID%TYPE,
                      P_MODE        IN  VARCHAR2
              Desc: The procedure populates the PrintJobQueueDI and PrintJobDataDI
                    PrintManager tables.
                    It works in two modes (P_MODE parameter)
                    -I - Inital print request
                    -R - reprint
                    For the initial print request the P_FULFILLMENT_ID parameter
                    will be passed in.
                    For the Reprint mode the P_FULFILLMENT_ID will be NULL.
        IS
         l_errmsg                   VARCHAR2(1000):= '';
         l_module_name              VARCHAR2(200) := l_package_name || '.' || 'SERVICE_TO_PRNTMNGR';
         l_selcnt                   INTEGER;
         l_error                   INTEGER;
         l_rowcnt                   INTEGER;
         l_sqlstatus              INTEGER;
         l_wrong_parameter           VARCHAR2(50);
         l_TABLE_NAME                VARCHAR2(30);
         l_EXISTS                    NUMBER(1);
         l_FULFILLMENT_ID            FULFILLMENT_REQUEST.FULFILLMENT_ID%TYPE;
         e_NOT_PRINT_DELIVERY_METHOD EXCEPTION;
         e_NOT_SUCCESS_COMPL_SRV_REQ EXCEPTION;
        BEGIN
          IF  P_SERVICE_ID IS NULL OR
              P_MODE IS NULL OR
              (P_MODE = 'I' AND P_FULFILLMENT_ID IS NULL)
             THEN
              RAISE appl_error.e_missing_parameter;
          END IF;
          IF P_MODE NOT IN ('I','R')
          THEN
            l_wrong_parameter := 'P_MODE' || '=' || P_MODE;
            RAISE appl_error.e_wrong_parameter;
          END IF;
          -- Check if the Service Request
          -- successfully completed
          BEGIN
            SELECT 1
              INTO l_EXISTS
              FROM SERVICE_REQUEST
             WHERE SERVICE_ID = P_SERVICE_ID
               AND STATUS_IND = 'S'; -- Successfull
          EXCEPTION
          WHEN NO_DATA_FOUND THEN
            RAISE e_NOT_SUCCESS_COMPL_SRV_REQ;
          END;
          -- Check if the Service Request of the
          -- REQUEST_DESTINATION.DELIVERY_METHOD_ID=P
          BEGIN
            SELECT 1
              INTO l_EXISTS
              FROM REQUEST_DESTINATION
             WHERE SERVICE_ID = P_SERVICE_ID
               AND DELIVERY_METHOD_ID = 'P'; -- Print
          EXCEPTION
          WHEN NO_DATA_FOUND THEN
            RAISE e_NOT_PRINT_DELIVERY_METHOD;
          END;
          IF P_FULFILLMENT_ID IS NULL
          THEN
              SELECT FULFILLMENT_ID
                INTO l_FULFILLMENT_ID
                FROM FULFILLMENT_SERVICE
               WHERE SERVICE_ID = P_SERVICE_ID;
          ELSE
            l_FULFILLMENT_ID := P_FULFILLMENT_ID;
          END IF;
          IF P_MODE = 'R' -- Request to Repring single service
          THEN
            INSERT_PrintJobQueueDI (l_FULFILLMENT_ID,P_MODE);
          END IF;
          --dbms_output.put_line(P_FULFILLMENT_ID);
          FOR l_PrintJobDataDI_REC1 IN (SELECT l_PrintJobQueueDI_REC.PRINTJOBDIID PRINTJOBDIID,
                                              ri.SERVICE_ID DOCID,
                                              rownum+1 DOCORDER,
                                              l_PrintJobQueueDI_REC.QUEUEDIID,
                                              3,
                                              ri.NAME,
                                              1,
                                              ri.NUMBER_OF_PAGES,
                                              ri.RESPONSE_BLOB
                                         FROM RESPONSE_IMAGE ri
                                        WHERE ri.SERVICE_ID=P_SERVICE_ID)
          LOOP
            --dbms_output.put_line(l_PrintJobDataDI_REC1.PRINTJOBDIID);
            --dbms_output.put_line(l_PrintJobDataDI_REC1.DOCID);
            --dbms_output.put_line(l_PrintJobDataDI_REC1.DOCORDER);
            INSERT INTO PrintJobDataDI VALUES l_PrintJobDataDI_REC1;
            l_NUM_REC_CREATED := l_NUM_REC_CREATED + SQL%ROWCOUNT;
          END LOOP;
          EXCEPTION
             WHEN appl_error.e_missing_parameter THEN
                  l_error := 20001;
                  l_errmsg:= appl_error.get_error_message(l_error,l_module_name,null,null);
                  raise_application_error(l_error*(-1), l_errmsg);
             WHEN appl_error.e_wrong_parameter THEN
                  l_error := 20003;
                  l_errmsg:= appl_error.get_error_message(l_error,l_wrong_parameter,l_module_name,null);
                  raise_application_error(l_error*(-1), l_errmsg);
             WHEN appl_error.e_no_records_retrieved THEN
                  l_error := 20122;
                  l_errmsg:= appl_error.get_error_message(l_error,l_module_name,l_TABLE_NAME,null);
                  raise_application_error(l_error*(-1), l_errmsg);
             WHEN e_NOT_PRINT_DELIVERY_METHOD THEN
                  l_error := 20004;
                  l_errmsg:= appl_error.get_error_message(l_error,l_module_name,
                    'The Delivery Method for the Service_Id=' || P_SERVICE_ID ||
                    ' is not PRINT',null);
                  raise_application_error(l_error*(-1), l_errmsg);
             WHEN e_NOT_SUCCESS_COMPL_SRV_REQ THEN
                  l_error := 20004;
                  l_errmsg:= appl_error.get_error_message(l_error,l_module_name,
                    'The Status_Ind of the Service_Id=' || P_SERVICE_ID ||
                    ' is not S',null);
                  raise_application_error(l_error*(-1), l_errmsg);
        END SERVICE_TO_PRNTMNGR;
       PROCEDURE INSERT_PrintJobQueueDI
       PROCEDURE INSERT_PrintJobQueueDI
                (P_FULFILLMENT_ID IN FULFILLMENT_REQUEST.FULFILLMENT_ID%TYPE,
                 P_MODE           IN VARCHAR2)
        It works in two modes (P_MODE parameter)
                -I  - Inital print request
                -R  - reprint single SERVICE REQUEST
                -RF - reprint entire fulfillment
        IS
         l_errmsg                   VARCHAR2(1000):= '';
         l_module_name              VARCHAR2(200) := l_package_name || '.' || 'INSERT_PrintJobQueueDI';
         l_selcnt                   INTEGER;
         l_error                   INTEGER;
         l_rowcnt                   INTEGER;
         l_sqlstatus              INTEGER;
         l_wrong_parameter           VARCHAR2(50);
         l_TABLE_NAME                VARCHAR2(100);
         l_EXISTS                    NUMBER(1);
        BEGIN
          IF  P_FULFILLMENT_ID IS NULL OR
              P_MODE IS NULL
             THEN
              RAISE appl_error.e_missing_parameter;
          END IF;
          IF P_MODE NOT IN ('I','R','RF')
          THEN
            l_wrong_parameter := 'P_MODE' || '=' || P_MODE;
            RAISE appl_error.e_wrong_parameter;
          END IF;
          -- For reprint request confirm that
          -- all previouse print requests
          -- completed successfully.
          IF P_MODE IN ('R','RF')
          THEN
            SELECT count(*)
              INTO l_EXISTS
              FROM PrintJobQueueDI
             WHERE SESSIONID = P_FULFILLMENT_ID
               AND PRINTTYPE = 'REGULAR';
            IF l_EXISTS = 0
            THEN
              RAISE e_NOT_PRINTED_INITIALLY;
            END IF;
            SELECT count(*)
              INTO l_EXISTS
              FROM PrintJobQueueDI
             WHERE SESSIONID = P_FULFILLMENT_ID
               AND STATUS != 'STATUS_COMPLETED';
            IF l_EXISTS > 0
            THEN
              RAISE e_NOT_ALL_PREV_REQ_COMPLETED;
            END IF;
          ELSIF P_MODE = 'I'
          THEN
            SELECT count(*)
              INTO l_EXISTS
              FROM PrintJobQueueDI
             WHERE SESSIONID = P_FULFILLMENT_ID;
            IF l_EXISTS > 0
            THEN
              RAISE e_ALREADY_INITIALLY_PRINTED;
            END IF;
          END IF;
          IF P_MODE IN ('I','R')
          THEN
              l_TABLE_NAME := 'FULFILLMENT_REQUEST and more';
              SELECT SEQ_PrintJobQueueDI.NEXTVAL,
                     SEQ_PrintJobDIID.NEXTVAL,
                     us.KIOSK_ID,p.PRINTER_NAME,
                     fr.FULFILLMENT_ID,SYSDATE,
                     TO_DATE('1900/01/01','YYYY/MM/DD'),
                     DECODE(P_MODE,'I','REGULAR','REPRINT'),
                     'STATUS_SPOOLED',
                     DECODE(P_MODE,'I','ALL','COVER_AND_SEARCH'),
                     NULL,
                     -- Only for the initial printing
                     -- for the PrintJobDataDI for the Receipt
                     fr.FULFILLMENT_ID,
                     1,3,'RECEIPT',0,0,
                     fr.RECEIPT_BLOB
                INTO l_PrintJobQueueDI_REC.QUEUEDIID,
                     l_PrintJobQueueDI_REC.PRINTJOBDIID,
                     l_PrintJobQueueDI_REC.KIOSKID,
                     l_PrintJobQueueDI_REC.PRINTERNAME,
                     l_PrintJobQueueDI_REC.SESSIONID,
                     l_PrintJobQueueDI_REC.SPOOLTIME,
                     l_PrintJobQueueDI_REC.PRINTTIME,
                     l_PrintJobQueueDI_REC.PRINTTYPE,
                     l_PrintJobQueueDI_REC.STATUS,
                     l_PrintJobQueueDI_REC.PRINTOPTION,
                     l_PrintJobQueueDI_REC.PROCESSSTATEID,
                     l_PrintJobDataDI_REC.DOCID,
                     l_PrintJobDataDI_REC.DOCORDER,
                     l_PrintJobDataDI_REC.DOCTYPEID,
                     l_PrintJobDataDI_REC.DOCNAME,
                     l_PrintJobDataDI_REC.STARTPAGE,
                     l_PrintJobDataDI_REC.ENDPAGE,
                     l_PrintJobDataDI_REC.CONTENT
                FROM LRO_PRINTER p,
                     KIOSK k,
                     USER_SESSION us,
                     BUSINESS_AUDIT ba,
                     FULFILLMENT_REQUEST fr
               WHERE p.PRINTER_ID = k.PRINTER_ID
                 AND p.LRO_ID = k.LRO_ID
                 AND k.KIOSK_ID = us.KIOSK_ID
                 AND us.USER_SESSION_ID = ba.USER_SESSION_ID
                 --AND ba.BUSINESS_AUDIT_ID = fr.BUSINESS_AUDIT_ID
                 AND ba.BUSINESS_AUDIT_ID = (select min(BUSINESS_AUDIT_ID)
                                               from fulfillment_service fs,service_request sr
                                              where fs.FULFILLMENT_ID = fr.FULFILLMENT_ID
                                                and sr.SERVICE_ID = fs.SERVICE_ID)
                 AND fr.FULFILLMENT_ID = P_FULFILLMENT_ID;
          ELSE -- 'RF'
              l_TABLE_NAME := 'PrintJobQueueDI, KIOSK, LRO_PRINTER';
              SELECT SEQ_PrintJobQueueDI.NEXTVAL,
                     q.printJobDIID,
                     q.KIOSKID,
                     p.PRINTER_NAME,
                     q.SESSIONID,
                     SYSDATE,
                     TO_DATE('1900/01/01','YYYY/MM/DD'),
                     'REPRINT',
                     'STATUS_SPOOLED',
                     'ALL',
                     NULL
                INTO l_PrintJobQueueDI_REC.QUEUEDIID,
                     l_PrintJobQueueDI_REC.PRINTJOBDIID,
                     l_PrintJobQueueDI_REC.KIOSKID,
                     l_PrintJobQueueDI_REC.PRINTERNAME,
                     l_PrintJobQueueDI_REC.SESSIONID,
                     l_PrintJobQueueDI_REC.SPOOLTIME,
                     l_PrintJobQueueDI_REC.PRINTTIME,
                     l_PrintJobQueueDI_REC.PRINTTYPE,
                     l_PrintJobQueueDI_REC.STATUS,
                     l_PrintJobQueueDI_REC.PRINTOPTION,
                     l_PrintJobQueueDI_REC.PROCESSSTATEID
                FROM PrintJobQueueDI q,
                     KIOSK k,
                     LRO_PRINTER p
               WHERE q.SESSIONID = P_FULFILLMENT_ID
                 AND printType = 'REGULAR'
                 AND k.KIOSK_ID = q.KIOSKID
                 AND p.PRINTER_ID = k.PRINTER_ID
                 AND p.LRO_ID = k.LRO_ID;
          END IF;
          INSERT INTO PrintJobQueueDI VALUES l_PrintJobQueueDI_REC;
          l_NUM_REC_CREATED := l_NUM_REC_CREATED + SQL%ROWCOUNT;
          l_PrintJobDataDI_REC.PRINTJOBDIID := l_PrintJobQueueDI_REC.PRINTJOBDIID;
          l_PrintJobDataDI_REC.QUEUEDIID:= l_PrintJobQueueDI_REC.QUEUEDIID;
         EXCEPTION
         WHEN appl_error.e_missing_parameter THEN
              l_error := 20001;
              l_errmsg:= appl_error.get_error_message(l_error,l_module_name,null,null);
              raise_application_error(l_error*(-1), l_errmsg);
         WHEN appl_error.e_wrong_parameter THEN
              l_error := 20003;
              l_errmsg:= appl_error.get_error_message(l_error,l_wrong_parameter,l_module_name,null);
              raise_application_error(l_error*(-1), l_errmsg);
         WHEN e_NOT_ALL_PREV_REQ_COMPLETED THEN
              l_error := 20004;
              l_errmsg:= appl_error.get_error_message(l_error,l_module_name,
              'Not all print requests for the Fulfillment_Id=' || P_FULFILLMENT_ID ||
              ' were successfully completed',null);
              raise_application_error(l_error*(-1), l_errmsg);
         WHEN e_ALREADY_INITIALLY_PRINTED THEN
              l_error := 20004;
              l_errmsg:= appl_error.get_error_message(l_error,l_module_name,'Initial print request for the Fulfillment_Id=' || P_FULFILLMENT_ID ||
              ' has been already created',null);
              raise_application_error(l_error*(-1), l_errmsg);
         WHEN e_NOT_PRINTED_INITIALLY THEN
              l_error := 20004;
              l_errmsg:= appl_error.get_error_message(l_error,l_module_name,
                'Can''t reprint the print request for the Fulfillment_Id=' || P_FULFILLMENT_ID ||
                ' because it was not printed intially',null);
              raise_application_error(l_error*(-1), l_errmsg);
         WHEN NO_DATA_FOUND THEN
              l_error := 20122;
              l_errmsg:= appl_error.get_error_message(l_error,l_module_name,l_TABLE_NAME,null);
              raise_application_error(l_error*(-1), l_errmsg);
       END INSERT_PrintJobQueueDI;
    END XSP_POPULATE_PRNTMNGR;Please help in writing this piece of code.
    Would appreciate your help...
    Edited by: BluShadow on 04-Oct-2011 15:39
    added {noformat}{noformat} tags for readability.  See {message:id=9360002} to learn to do this yourself.
    Edited by: user548261 on Oct 4, 2011 7:46 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             

    rudi wrote:
    Hi sb92075,
    I'm absolutely newbie in this discussion forum, because I expected that this forum will be helpfull for all. I have found really so much perfect answers and advices.
    You have high number of posts, but I can't found any your answer for new programmers which have some issues. If you can't answer, ignore the query posted, I think that this is spamming, I have found your 10 negative posts within 5 minutes.
    I know, that all forums have rules, but review number of "posts with not correct subjects like URGENT, ASAP...." and the other, correct with absolutely same queries and requests for advise.
    Thanks for understanding
    rudisb92075's response was helpful. It was pointing out that we need to have tables and data to work with and not just a piece of unfamiliar code that we are told doesn't work in some way. Without the tables and example data and expected output we could only guess what the problem may be. The OP has also said their issue is urgent, which it isn't as I pointed out to them, but then their response to sb92065's request for tables and data was just to say that they want us to do their work for them and they'll test it. That's not only rude, but also wastes our time as we have to make a guess as to what the problem may be then wait for the OP to test it, to no doubt tell us that it still doesn't work, so we can make another guess.
    This is not the way a professional forum works. If the OP wants help with the issue they need to provide relevant information as requested. The fact they seem to keep asking questions and non of them are being marked as answered should be a good indication that they are not asking the questions correctly.
    So, before you criticize members as being unhelpful, it is perhaps better if you read what they have requested and understand what they've said.
    Therefore, we still await the OP's response providing some useful information to be able to help...

  • Opinion needed on best way to map multiple table joins (of the same table)

    Hi all
    I have a query of the format:
    select A.col1, B.col1,C.col1
    FROM
    MASTER_TABLE A, ATTRIBUTE_TABLE B, ATTRIBUTE_TABLE C
    WHERE
    A.key1 = B.key1 (+)
    AND
    A.key1 = C.key1(+)
    AND
    B.key2(+) = 100001
    AND
    C.key2(+) = 100002
    As you can see, I am joining the master table to the attribute table MANY times over, (over 30 attributes in my actual query) and I am struggling to find the best way to map this efficiently as the comparison for script vs. mapping is 1:10 in execution time.
    I would appreciate the opinion of experienced OWB users as to how they would tackle this in a mapping and to see if they use the same approach as I have done.
    Many thanks
    Adi

    SELECT external_reference, b.attribute_value AS req_date,
    c.attribute_value AS network, d.attribute_value AS spid,
    e.attribute_value AS username, f.attribute_value AS ctype,
    g.attribute_value AS airtimecredit, h.attribute_value AS simnum,
    i.attribute_value AS lrcredit, j.attribute_value AS airlimitbar,
    k.attribute_value AS simtype, l.attribute_value AS vt,
    m.attribute_value AS gt, n.attribute_value AS dt,
    o.attribute_value AS datanum, p.attribute_value AS srtype,
    q.attribute_value AS faxnum,
    R.ATTRIBUTE_VALUE AS FAXSRTYPE,
    s.attribute_value AS extno,
    t.attribute_value AS tb, u.attribute_value AS gb
    v.attribute_value AS mb, w.attribute_value AS stolenbar,
    x.attribute_value AS hcredit, y.attribute_value AS adminbar,
    z.attribute_value AS portdate
    FROM csi_item_instances a,
    csi_iea_values b,
    csi_iea_values c,
    csi_iea_values d,
    csi_iea_values e,
    csi_iea_values f,
    csi_iea_values g,
    csi_iea_values h,
    csi_iea_values i,
    csi_iea_values j,
    csi_iea_values k,
    csi_iea_values l,
    csi_iea_values m,
    csi_iea_values n,
    csi_iea_values o,
    csi_iea_values p,
    csi_iea_values q,
    CSI_IEA_VALUES R,
    csi_iea_values s,
    csi_iea_values t,
    csi_iea_values u,
    csi_iea_values v,
    csi_iea_values w,
    csi_iea_values x,
    csi_iea_values y,
    csi_iea_values z
    WHERE a.instance_id = b.instance_id(+)
    AND a.instance_id = c.instance_id(+)
    AND a.instance_id = d.instance_id(+)
    AND a.instance_id = e.instance_id(+)
    AND a.instance_id = f.instance_id(+)
    AND A.INSTANCE_ID = G.INSTANCE_ID(+)
    AND a.instance_id = h.instance_id(+)
    AND a.instance_id = i.instance_id(+)
    AND a.instance_id = j.instance_id(+)
    AND a.instance_id = k.instance_id(+)
    AND a.instance_id = l.instance_id(+)
    AND a.instance_id = m.instance_id(+)
    AND a.instance_id = n.instance_id(+)
    AND a.instance_id = o.instance_id(+)
    AND a.instance_id = p.instance_id(+)
    AND a.instance_id = q.instance_id(+)
    AND A.INSTANCE_ID = R.INSTANCE_ID(+)
    AND a.instance_id = s.instance_id(+)
    AND a.instance_id = t.instance_id(+)
    AND a.instance_id = u.instance_id(+)
    AND a.instance_id = v.instance_id(+)
    AND a.instance_id = w.instance_id(+)
    AND a.instance_id = x.instance_id(+)
    AND a.instance_id = y.instance_id(+)
    AND a.instance_id = z.instance_id(+)
    AND b.attribute_id(+) = 10000
    AND c.attribute_id(+) = 10214
    AND d.attribute_id(+) = 10132
    AND e.attribute_id(+) = 10148
    AND f.attribute_id(+) = 10019
    AND g.attribute_id(+) = 10010
    AND h.attribute_id(+) = 10129
    AND i.attribute_id(+) = 10198
    AND j.attribute_id(+) = 10009
    AND k.attribute_id(+) = 10267
    AND l.attribute_id(+) = 10171
    AND m.attribute_id(+) = 10184
    AND n.attribute_id(+) = 10060
    AND o.attribute_id(+) = 10027
    AND p.attribute_id(+) = 10049
    AND q.attribute_id(+) = 10066
    AND R.ATTRIBUTE_ID(+) = 10068
    AND s.attribute_id(+) = 10065
    AND t.attribute_id(+) = 10141
    AND u.attribute_id(+) = 10072
    AND v.attribute_id(+) = 10207
    AND w.attribute_id(+) = 10135
    AND x.attribute_id(+) = 10107
    AND y.attribute_id(+) = 10008
    AND z.attribute_id(+) = 10103
    AND external_reference ='07920490103'
    If I run this it takes less than a second in TOAD, when mapped in OWB it takes ages. 10:1 is a conservative estimate. In reality it takes 15-20 minutes. CSI_IEA_VALUES has 30 million rows CSI_ITEM_INSTANCES has 500,000 rows.
    Hope that helps. I would love to know how others would tackle this query.

Maybe you are looking for

  • How do I remove songs from an ipod touch (that we never put on there)?

    My daughter has a 5th gen ipod touch. When she opened it tonight, there are songs on there that we never put on it. I plugged her ipod in and opened itunes and the songs showing on the ipod are not showing up as being on the ipod when we are looking

  • Node removed from the cluster and cannot joined to clustr again

    Hi I have problem with 2 node cluster. we are running windows 2008 R2 enterprise edition. Suddenly one node had some issue with network connnectivity and it was removed from the cluster. on the console its shows node1 offline. connectivity between th

  • Has anyone seen the below error before? Does anyone have any ideas on how to

    go about troubleshooting it? I am using a PCI-GPIB card on a WIN95 machine in an attempt to communicate with an ESP300 Universal Motion Controller ver 3.03. which reponds to ASCII commands. As a basic first step (using LabVIEW 6.0.2) I first attempte

  • Panasonic HD P2 cards and 5.0.4 - can i get an upgrade or "crossgrade"??

    A friend shot a film for me with a panasonic HD cam, shooting to P2 cards, i now have the files on a hard-drive. I can get to the point where i see the thumbnails in the window (file-import-panasonic P2...) but when i try to import them it tells me i

  • Genarate BADI Reports

    Hi All, Can any one pls explain on Genarating BADI Reports. Thanks. Moderator message - Welcome to SCN. But please make sure you ask a specific question and search both the forum and the internet for answers. Please also make sure you read Please rea