Really weird problem in Oracle

Hey,
I am using Oracle 11g (11.1.0.6.0)
I am having this view, called "vw_sales".
The definition is as below :-
select a.pr_id, a.tm_id, a.cust_id, sum(a.inv_value*b.cu_factor*c.nt_factor) inv_value
from sales a, adc_rate b, uknt_rate c
where a.pr_id = b.pr_id
and a.tm_id = b.tm_id
and b.stpi_id = c.stpi_id
group by a.pr_id, a.tm_id, a.cust_id -- Query 2
Now, in the sales table, for the following combination of keys :-
pr_id = '23453'
tm_id = 402
the inv_value is null -- Query 1
In the view, if I execute the query,
select * from vw_sales where pr_id = '23453' and tm_id = 402, then I get null as the inv_value, which is correct.
But, if I just do a :-
select * from vw_sales -
then for pr_id = '23453' and tm_id = 402, I have the value as 24.344!!!!
I have no idea how I am getting this.
I removed the view and just executed the select statement, even then I am getting the value as 24.344!!!
I included the rowid also into the query.
Both the queries (1 & 2) return the same row id
Please help

But, that is not the problem I am facing.
If I write the query,
select * from vw_sales
I get (among a lot of rows):-
pr_id    tm_id    cust_id    inv_value
23453 402 452 24.3444
But, if I execute the following query -
select * from vw_sales where pr_id = 23453
then I get (among a lot of rows)
pr_id    tm_id    cust_id    inv_value
23453 402 452 (null)

Similar Messages

  • Really weird problem -- won't download mail from one sender

    I'm having a really weird problem. Apple Mail won't retrieve mail from my Gmail account via POP3 from one sender only. All other mail is downloaded normally, except from a particular sender. What could be causing this? Thanks.

    I am trying to remember and research something about the Junk filter and Gmail accounts. Have you checked in your Junk mailbox, if Junk in enabled and there is a separate Junk mailbox?
    If you click on my name to the left, and look in the bio line of the resulting Profile, you will find an email address you can reach me with. If you email me at that address, I will send you a Gmail address that your sender can test sending a message to me at my Gmail account.
    Ernie

  • Weird problem with Oracle thin driver

    I wrote a little app that uses the (Classes12.zip) thin driver to connect to an instance of Oracle 8.1. I wanted to test the app�s ability to deal with the database going offline and thought the easiest way to do this would be to yank the network cable out of the PC. Cool! If, after starting the app, I allow it to successfully connect to Oracle (Before yanking the network cable) everything works 100%. If I yank the cable after the 1st successful connection I manage to catch an exception and deal with the situation quite intelligently. When I stick the network cable back into the PC, my app see that Oracle is once more available and reconnects... So far life is good!
    The problem - If I yank the network cable BEFORE the app manages to make it�s first successful connection (Obviously) I catch an exception but even after I stick the network cable back in, the exception persists!
    The weird bit � I�ve tried everything (that I can think of) to make this problem go away. I�ve tried DriverManager.deregisterDriver(Driver), hoping that registering a new instance of the driver (For the next connection attempt) would make the persisting exception go away... No luck! I tried forcing a finalize() and a gc() (Assuming that the exception was persisting through an object resurrected from garbage heap), still no luck!
    The REALLY weird bit � I checked network traffic during my apps attempts to connect! On the first attempt to connect (Which fails because the cable isn�t plugged in) I can see the client trying to reach the host but once the persisting exception condition occurs, the client doesn�t generate another single byte of network traffic! So... Errr... Maybe I�m just stooopid or something, but how is the client supposed to establish a connection if it doesn�t even try to use the network?
    OK... I already have a hair-loss problem and I�m losing the last little bit quite rapidly (Because I�m pulling my hair out over this one)! Can anyone help before I go completely bald?

    OK, so I've had to post a solution to my own question. This is the ONLY way that I can find to get around this problem:- Use TNSPING to establish if the database is online BEFORE trying to make your first connection.
    Connection conn = null;
    boolean DBFlag = false;
    try {
    Process Proc = Runtime.getRuntime().exec("tnsping host.name.as.it.appears.in.tnsnames.ora");
    BufferedReader reader = new BufferedReader(new InputStreamReader(Proc.getInputStream()));
    String line;
    while ((line = reader.readLine()) != null) {
    if(line.indexOf("OK") != -1)
    DBFlag = true;
    if (DBFlag) {
    oracle.jdbc.driver.OracleDriver Driver = new oracle.jdbc.driver.OracleDriver();
    try {
    DriverManager.registerDriver(Driver);
    conn = DriverManager.getConnection (...
    blah;
    blah;
    blah;
    conn.close();
    conn = null;
    DriverManager.deregisterDriver(Driver);
    } catch (Exception e) {
    if (conn != null) {
    conn.clearWarnings();
    conn.close();
    conn = null;
    DriverManager.deregisterDriver(Driver);
    } catch (Exception e) {}

  • Really weird problem with Usage Tracking!

    Hi guys
    We are running OBIEE 11.1.1.6.5 on Exalytics and allmost all is fine and dandy. We have though one weird problem. When we first enabled usage tracking, we sudddenly got some errors on some of our dashboards, saying that we didn't have the privilegies to create temporary tables. Allright we got our user (which is a shared user) the privilegies to create temporary tables, and the reports with the problems started working again! Awesome! But low and behold - then Usage Tracking stopped working, not a single mentioning in the logfiles about it. Maybe an error or, the acknowledgement that Usage Tracking has started, which is the normal.
    So basically we are running without Usage Tracking because the reports that gives us the problems are deemed more important... which they might be, but thats different story...
    Any ideas to what is going on here? We have collected Usage Tracking data, while the reports were broke, so im quite confident that the setup is correct. But why would it stop, when giving "create table" privilege to our shared user?
    Best regards, Jacob

    What is the setting for UsageTrackingDirectInsert?
    Have you tried chaging the output to file instead of database?
    Please see:
    http://docs.oracle.com/cd/E23943_01/bi.1111/e10541/usage_track.htm#i1017237
    Section 9.3, "Setting Up a Log File to Collect Information for Usage Tracking"
    Michael
    PS:
    Hi Christian! :)

  • Really, really weird problem involving iPhone and Exposé

    Hey Mac users, try to figure this one out, this started happening to me today:
    My iPhone is rarely near my Mac Pro, but today I set it on top of my Mac Pro to let it charge. When it's connected to the Edge network, and there's network activity, I get the usual "beepbeepbeep" through my system's speakers, except now there's a twist. Whenever I hear the network activity interference, Exposé on my Mac Pro flips out, and acts as if I pushed the "Show/Hide Desktop" button a whole bunch of times. It stops when the activity stops.
    It's not reproducible all the time, and only happens every once in a while. But it definitely only happens during Edge network activity. I've never gotten it while in 3G or Wifi modes.
    I am guessing that the Edge signal is interfering with my Apple Bluetooth Keyboard, or something. I don't have any keys mapped to "Show Desktop," though.
    If anyone has any thoughts on this, I'd love to hear it. This isn't a really big problem, I just keep my phone away from my Mac Pro now.

    If you go into settings - general - about it will give you the version, the latest one is 2.0.1. Updating your phone may solve the problems. Failing that, take it to your nearest Apple store for advice.

  • I am having some really weird problems with my Iphone with photos and music!

    I am having some really strange problems with my Iphone with photos and music. In my photos icon I have a bunch of albums but the pictures are all synced to the wrong albums. The pictures are just all mixed up and in the wrong albums. As far as my music problem. In my playlists for my music I am trying to rearrange my songs in a particular order of listening. It lets me do it but when I hit done it randomely changes them in puts them in all different orders. Can anyone help?

    This indicates a corrupt file(s).  A restore should resolve.

  • Really Really Weird Problem

    Hi All,
    I have the following query:
    SELECT *
    FROM
    fin_payment,
    s1_name_and_address s1_name_and_address_b,
    s1_currency
    WHERE (fin_payment.internal_flag = 'N' or fin_payment.internal_flag is null )
    AND fin_payment.bank_id = s1_name_and_address_b.name_and_address_id
    AND fin_payment.currency_code = s1_currency.currency_code
    AND (('P' = 'C' and fin_payment.check_reference is not null )
    OR
    ('P' = 'P' and fin_payment.advice_nbr is not null )
    AND fin_payment.financial_source = 'A/P'
    AND fin_payment.payment_type = 'L'
    AND ('P' is null or 'P' = 'A' );
    It shouldn't return any rows because of that condition which is bold: ('P' is null or 'P' = 'A' ), because it's always false. The problem is if I remove that condition and paste it in the middle of where cluse like this:
    SELECT
    NULL,
    NULL,
    fin_payment.bank_id,
    s1_name_and_address_b.full_name,
    fin_payment.check_reference,
    fin_payment.payment_date,
    fin_payment.bank_amount,
    fin_payment.currency_code,
    s1_currency.description,
    fin_payment.payment_nbr,
    fin_payment.payment_type,
    fin_payment.invoice_nbr,
    fin_payment.ap_check_reference_nbr ,
    fin_payment.reconciliation_status ,
    fin_payment.replacement_payment_nbr ,
    fin_payment.advice_nbr
    FROM
    fin_payment,
    s1_name_and_address s1_name_and_address_b,
    s1_currency
    WHERE (fin_payment.internal_flag = 'N' or fin_payment.internal_flag is null )
    AND fin_payment.bank_id = s1_name_and_address_b.name_and_address_id
    AND fin_payment.currency_code = s1_currency.currency_code
    AND (('P' = 'C' and fin_payment.check_reference is not null )
    OR
    ('P' = 'P' and fin_payment.advice_nbr is not null )
    AND ('P' is null or 'P' = 'A' )
    AND fin_payment.financial_source = 'A/P'
    AND fin_payment.payment_type = 'L'
    it will return some rows which is wrong. I don't know how it generate those rows. Because if you remove that condition, I mean ('P' is null or 'P' = 'A' ), it doesn't retrieve any rows.
    And another thing is, it just happen in Oracle 9.0.1 not in other versions like 8.0.5, 8.1.5,8.1.6...
    any help is greatly appreciated,
    Arash

    No Justin. For making the query easier I wrote that condition (P is null or ....) like that. and s1_name_and_address is an alias.
    I thought the data or tabel is corrupted, so I created a new table as
    "create table test select * from fin_payment"
    no for the same query, I get two diference result on table Test & fin_payment !?
    I really don't have any idea !

  • Really weird problem while Print to Video

    Hi.
    I've tried to fix this problem by searching this forum but I couldn't find any solution so I have no choice but to ask for help.
    Basically when I'm trying to Print my NTSC DV project to tape through firewire enabled camcorder, I can see video with weird gray block all over with no sound. Same thing happens when I'm trying to preview the project through my camcorder.
    I even exported my project and imported it into imovie hd 6 and tried to export to tape but same result.
    My camcorder is Sony HDR-HC5 (HDV) and the setting in both my camera and Final cut pro 6.0.2 is correctly set up.
    Strange thing is, when I'm using HDV1080i60 preset in Final cut pro, log and capture works flawlessly, but somehow I can't even choose HDV device under video playback. I can see all the HDV settings but they are all gray and can't select any of them.
    I remember being able to print DV project to my camcorder with same settings using Final Cut 5.1.4 so I really can't figure out what is wrong with all these.
    Any kind of input would be appreciated.

    Just curious. How do you get your computer too see the HVR. I am using I movie HD and it does not see anything. Is there a camera setup procedure? I looked at the vague manual which was no help.
    Thanks in Advance
    Thom

  • Really Weird Problem

    Just a few days ago, I realized I couldn't drag files anywhere. On the desktop, I couldn't drag files around or into any folder. I also can't reorganize anything in the dock. I can't even copy and paste files from one location to another. I never changed any settings and this is the administrator account. I don't know if it's related, but some applications also won't open. They appear bouncing in the dock for about a second but then stop and nothing happens. I really need this to work since I edit (in Final Cut Pro an iMovie) and can't drag clips or anything anywhere, although I can once they're in the timeline. In case it matters, this is an iMac 20" from early 2006. Thanks.

    ok the dragging and moving now works suddenly but I found another problem. When I start up the computer and try to go into windows (boot camp) nothing happens when i press alt/option, it just starts into OS X. I don't know if this is related or if it is new since I just tried doing that for the first time since all this happened.

  • Really weird problem with msi 815ep pro

    hi all i have searious problem with my sweety motherboard everything should be ok but its not .. the leds are showing that all simm to be fine (4x green) but i cant install any os (linx,windows) its funny cause when i had hdd 850mb windows98 installed perfectly or when i repair a disk everything goes ok i changed disk for known reason (capaticity) to seagate 2,5gb also tried with 120gb and 4,3gb but nothing after starting the instalation its hang up i tried everything i changed processor, ram, hdd connectors, graphics card, cd-rom also switched off integrated audio and others like midi, usb... and still nothing i do not have any more ideas i dont know what to do    i've noticed that few capacitors have minimal belly on top could it be this or what else maybe hdd controller is broken ? how do you think i also cant flash bios to older version dont know why... please help me   

    i've got it those were capacitors !!    i wouldn't expect that but it was my last chance i changed 4 capacitors and really they weren't soo much belly on the top now my motherboard my sweet honey yelly works perfect      hehe greetings for everyone
    love rules !

  • Really Weird Problem AIM account won't let me video

    Here is the weird situation I'm dealing with. Hope this makes sense.
    I have an iMac, three MacBooks and a MacBook Pro.
    For...each member of our family.
    So, we are enjoying video chatting. Everything fine, but....my son can't video chat. He can log in with AIM and we can text chat, but no video.
    Hardware problem?
    Nope. I logged him with his AIM account to another computer under guest mode. No dice.
    AIM issue?
    Maybe? I created a new AOL screen name and password for him! Still no dice, from any computer.
    He doesn't even show up in iChat's buddy list when we add him.
    Everyone else in the family is just fine. And we are video chatting back and forth across all of our computers.
    My son however does not show up when we add him as a buddy. His name comes up, fades in and out, then just disappears.
    So....what could it be? I set him up in .Mac and....of course...no problems! Video chatting works like a breeze.
    Does anyone have any clue what could be going on???
    I'm about to go nuts.

    Five computers EACH ??!! Now that is just greedy.
    However on you Son's Mac User Account (Users/(his account)/Library/Preferences get him to delete com.apple.ichat.AIM.plist and com.apple.ichatAgent.plist and restart iChat.
    We need him to get a full login before looking at the rest of you.
    This is the first post that suggests nthat a Buddy not staying in the list is a problem at their end.
    He should also check the View Menu of iChat and see that he has Show Video Status active (ticked).
    5:20 PM Friday; December 28, 2007

  • Can I get some help for a really weird problem? Song always skips to beginning.

    I have a song on my iPod that always plays the beginning part of the song, no matter where I am in the song. If the song is 3 minutes long and I go to 1:50 on the time meter it will still play the beginning part of the song, even though the time meter says it's at 1:50. I've tried playing the song the whole way through without skipping but it still hasn't fixed the problem. The song works fine in iTunes, it's just affected when I play it on my iPod.

    I'm fairly certain this is a Lion issue, but I'll post in the MacBook forum as well.
    here's that post:
    https://discussions.apple.com/message/17766275#17766275
    In that one I suggested updating to OS X 10.7.3. It fixes a lot of problems, admittedly none of yours specifically.
    I understand your frustration but you should decide upon one thread or another. Since this one has more interest I suggest you stick with this one. Tracking two of them will only add to your headaches.

  • Really weird problem setting up FTP in Dreamweaver MX 2004 for Mac.

    I'm new to Dreamweaver for all that I've had it for years. Been using GoLive. Using Dreamweaver that is part of Studio MX 2004. I'm trying to set up FTP. Tell Dreamweaver to Create New Dreamweaver Site. Name the site. Don't use server technology. Pick the folder where I want my files. Tell it I want to use FTP to connect to my server. Give it the name of the host server. Tell it which folder I want to use for my files on the server. Here's where it gets interesting:
    When I type the url for the folder in the field, as I type "html" it draws a strike through the "l" in "html".
    I've tried typing the url in Text Edit, then copy and paste into the field. I get the same result as if I had just typed it in the field.
    Deleted and re-installed Dreamweaver by itself. No difference.
    Deleted and re-installed everything associated with Studio MX 2004. No difference.
    Ran TechTool to see if there might be a disk problem but that came back fine. Have not run my anti-virus, ClamXav, yet. Don't have any anti-spyware software.
    Running Mac OS 10.4.11 on an iMac G5 iSight.
    I know just how oddball this problem sounds and I realize that I could use Fetch or Cyberduck but I would like my software to work. Anybody have any ideas?

    Wiped and re-installed my computer. Now that part of Dreamweaver works. Some bug somewhere that's now been eliminated. Now it has a new problem that I will ask about in a new thread.

  • REALLY weird problem launching pcsx2-svn

    hi there, new here.
    so this is what happens,
    installed pcsx2-svn from AUR last night, no issue there, played a bit and all was going great. Today i'm trying to launch it (from apps menu) and nothing happens, and command line throws:
    $ pcsx2
    bash: /usr/bin/pcsx2: No such file or directory
    hell, i even navigated there (via both nautilus and terminal) and IT IS THERE,
    [felipe@cfsantacruza-00R bin]$ ./pcsx2
    bash: ./pcsx2: No such file or directory
    nothing else is shown from those commands.
    so i'm totally lost, anyone has the slightest idea on what's going on?
    edit: also tried reinstalling already, btw.
    Last edited by Megarock90 (2012-01-19 00:01:54)

    Heyho,
    I have the same problem here /usr/bin/pcsx2 is there, but he says it's not. When I use tab to autocomplete it works as well. I had the same problem with gens-gs and reinstalling fixed that problem, but in this case it is not helping. I'm using pcsx2-svn.  I had the exact same issue with Wine yesterday too! Reinstalling helped also. This seems to be a problem not only related to PCSX2.
    There isn't much of an output to analyze sadly !

  • Really weird problem drawing lines..

    I have an application that during each frame draws a couple of Graphic2D lines. The program has worked great, and still does, except for when it runs on a new computer of mine. I just put togther a AMD XP 2000 with a Radeon 8500 (just in case this matters) and for some reason when I run my application, the lines drawn do not show up. I am positive they are being drawn, just not displaying, and yet the lines are drawn properly on my two other computers with the same exact java sdk package (1.4.0). Any ideas?!?!?

    Thanks if you took a ponder to my question, but it appeared to only be a Radeon driver problem, as the newest drivers weren't functioning properly for me..

Maybe you are looking for

  • Multiple Desktops when remote login?

    Hi, is there a way that I can remotly login with two different users and have each one an own GUI desktop?

  • Can't  open canon EOS utility program

    Hi every one I have problem when i open canon EOS utility program it works perfictly until i connect my canon DSLR camera to my mac the program crush down immediatly. i downloaded this program for the CD which came with my camera and this problem acc

  • JSF/Spring integration - managed-property problem

    I am using JSF 1.1_01 (MyFaces 1.1), Spring 1.2, Ajax4Jsf. The JSF application has h:selectOneMenu . On change event of h:selectOneMenu sets "selectedValue" into backing bean as shown below: page.jsp <h:selectOneMenu value="#{test.selectedDevice}" >

  • Setting window size

    Is there any way to set what size windows will open in an application? I can do it in terminal but when I open a file in another app, like text edit, the window size is the same and I have to resize it, even when I close the window or file and re ope

  • Adobe Acrobat 11.0.07 not recognizing Default Email Client

    My adobe acrobat isn't recognizing my Outlook 2013 installed from Office 365 as a default email client. All other applications are able to detect that outlook is my default client and opens it up immediately.