Tha same result after the third run ?

Hi everybody,
I have table with about 500 000 records. I typed followed SELECT and I receive the same result only after the third run (immediate after start of database). How is this possible?
SELECT DISTINCT
id_subject,
name AS subject_name,
id_state,
scale
FROM table1
WHERE id_state = 16
ORDER BY scale;
Table table1 contains something like that:
id_subject name id_state scale
1 first 16 8
1 first 16 8
2 second 16 8
2 second 16 8
3 third 16 7
3 third 16 7
4 four 5 7
There are another columns in the table1 which contain no duplicate data.
When I type
ALTER SYSTEM FLUSH SHARED_POOL
the situation repeats.
Regards
Matus

Hi,
these are examples of results:
The first
id_subject name id_state scale
506496 B-KONTAKT 31 11
505627 APS 31 11
514006 Kasaloq 31 11
518615 ROSTEQ 31 11
508037 POPCO 31 11
The second
id_subject name id_state scale
506422 ARCADE 31 11
505697 TVAR 31 11
514206 LITES 31 11
518715 SANELA 31 11
528037 AZP 31 11
OS MS Windows Vista Version 6.0.6000, and also MS Windows Server 2000
Oracle 10.2.0.3.0
client PL/SQL Developer.
but the same behaviour I have on the machine:
OS MS Windows Server 2000
Oracle 10.2.0.1.0
client PL/SQL Developer.
Regards,
Matus

Similar Messages

  • Search for records in the event viewer after the last run (not the entire event log), remove duplicate - Output Logon type for a specific OU users

    Hi,
    The following code works perfectly for me and give me a list of users for a specific OU and their respective logon types :-
    $logFile = 'c:\test\test.txt'
    $_myOU = "OU=ABC,dc=contosso,DC=com"
    # LogonType as per technet
    $_logontype = @{
        2 = "Interactive" 
        3 = "Network"
        4 = "Batch"
        5 = "Service"
        7 = "Unlock"
        8 = "NetworkCleartext"
        9 = "NewCredentials"
        10 = "RemoteInteractive"
        11 = "CachedInteractive"
    Get-WinEvent -FilterXml "<QueryList><Query Id=""0"" Path=""Security""><Select Path=""Security"">*[System[(EventID=4624)]]</Select><Suppress Path=""Security"">*[EventData[Data[@Name=""SubjectLogonId""]=""0x0""
    or Data[@Name=""TargetDomainName""]=""NT AUTHORITY"" or Data[@Name=""TargetDomainName""]=""Window Manager""]]</Suppress></Query></QueryList>" -ComputerName
    "XYZ" | ForEach-Object {
        #TargetUserSid
        $_cur_OU = ([ADSI]"LDAP://<SID=$(($_.Properties[4]).Value.Value)>").distinguishedName
        If ( $_cur_OU -like "*$_myOU" ) {
            $_cur_OU
            #LogonType
            $_logontype[ [int] $_.Properties[8].Value ]
    #Time-created
    $_.TimeCreated
        $_.Properties[18].Value
    } >> $logFile
    I am able to pipe the results to a file however, I would like to convert it to CSV/HTML When i try "convertto-HTML"
    function it converts certain values . Also,
    a) I would like to remove duplicate entries when the script runs only for that execution. 
    b) When the script is run, we may be able to search for records after the last run and not search in the same
    records that we have looked into before.
    PLEASE HELP ! 

    If you just want to look for the new events since the last run, I suggest to record the EventRecordID of the last event you parsed and use it as a reference in your filter. For example:
    <QueryList>
      <Query Id="0" Path="Security">
        <Select Path="Security">*[System[(EventID=4624 and
    EventRecordID>46452302)]]</Select>
        <Suppress Path="Security">*[EventData[Data[@Name="SubjectLogonId"]="0x0" or Data[@Name="TargetDomainName"]="NT AUTHORITY" or Data[@Name="TargetDomainName"]="Window Manager"]]</Suppress>
      </Query>
    </QueryList>
    That's this logic that the Server Manager of Windows Serve 2012 is using to save time, CPU and bandwidth. The problem is how to get that number and provide it to your next run. You can store in a file and read it at the beginning. If not found, you
    can go through the all event list.
    Let's say you store it in a simple text file, ref.txt
    1234
    At the beginning just read it.
    Try {
    $_intMyRef = [int] (Get-Content .\ref.txt)
    Catch {
    Write-Host "The reference EventRecordID cannot be found." -ForegroundColor Red
    $_intMyRef = 0
    This is very lazy check. You can do a proper parsing etc... That's a quick dirty way. If I can read
    it and parse it as an integer, I use it. Else, I just set it to 0 meaning I'll collect all info.
    Then include it in your filter. You Get-WinEvent becomes:
    Get-WinEvent -FilterXml "<QueryList><Query Id=""0"" Path=""Security""><Select Path=""Security"">*[System[(EventID=4624 and EventRecordID&gt;$_intMyRef)]]</Select><Suppress Path=""Security"">*[EventData[Data[@Name=""SubjectLogonId""]=""0x0"" or Data[@Name=""TargetDomainName""]=""NT AUTHORITY"" or Data[@Name=""TargetDomainName""]=""Window Manager""]]</Suppress></Query></QueryList>"
    At the end of your script, store the last value you got into your ref.txt file. So you can for example get that info in the loop. Like:
    $Result += $LogonRecord
    $_intLastId = $Event.RecordId
    And at the end:
    Write-Output $_intLastId | Out-File .\ref.txt
    Then next time you run it, it is just scanning the delta. Note that I prefer this versus the date filter in case of the machine wasn't active for long or in case of time sync issue which can sometimes mess up with the date based filters.
    If you want to go for a date filtering, do it at the Get-WinEvent level, not in the Where-Object. If the query is local, it doesn't change much. But in remote system, it does the filter on the remote side therefore you're saving time and resources on your
    side. So for example for the last 30 days, and if you want to use the XMLFilter parameter, you can use:
    <QueryList>
    <Query Id="0" Path="Security">
    <Select Path="Security">*[System[TimeCreated[timediff(@SystemTime) &lt;= 2592000000]]]</Select>
    </Query>
    </QueryList>
    Then you can combine it, etc...
    PS, I used the confusing underscores because I like it ;)
    Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

  • Need to know of a method / process that can be used to send the same msg to all those appearing in my email listings with the same extension after the "@" sign in their address(es) on my macbook [e.g., with "@gov.ca"; Snow Leopard].

    Need to know of a method / process that can be used to send the same msg to all those appearing in my email listings with the same extension after the "@" sign in their address(es) on my macbook [Snow Leopard].

    If you simply want to send the exact same message to everyone in your address book with emails ending in "@whatever.com", you can do the following:
    Create an email with subject, message and attachments but no addresses
    Open Address Book, All Contacts
    Search in Address Book for @whatever.com
    Select the results and drag them into the To: or Bcc: field of the email. If Bcc: then put your email address in the To: field.
    Send the email
    This will not personalize the emails (such as with "Dear firstname:" at the top of the message) but it will let you send an idential message to everyone who meets your criteria.

  • Trigger a program immediately after the Payment Run F110

    Hi All,
    How to trigger a program immediately after the Payment Run F110.
    Thanks.

    Hi,
    In general payment media programs are executed immediately after the payment run.
    You can execute payment media programs using transaction code SA38 or you can enter appropriate variants for payment media programs in printout/date medium tab while executing payment run in F110 so that they are run automatically along with payment run.
    Thanks!
    Raju
    Edited by: M V Narayana Raju on Sep 18, 2010 2:40 AM

  • After the Payment Run F110

    Hi All,
    I want to trigger a program immediately after the payment run F110, and this program should create a spool file with some output.
    can any one suggest me how to trigger this program after the payment run F110.
    Thanks.

    use F110 - printout/data medium - lists
    A.

  • FM after the Payment run is executed

    Hello All,
    Please can anyone let me know, which event can be used for follow up activity after the payment run (FPY1) is executed.
    Regards
    Charvi
    Edited by: CharviS on Jan 23, 2012 8:39 AM

    Hi Charvi,
    If your only requirement to post a Dr\Cr line item  to customer account whose payment run has been successful, then you can use event 0032.
    Event 0032 can create additional line items for a document in Contract Accounts Receivable and Payable.
    So, if you only want to post the incentive after a payment run, place a check initially for the origin key (i_fkkko-herkf), if i_fkkko-herkf =06, i.e a payment run, then only proceed with the posting of the Dr\Cr line item.
    You can use FM FKK_COMPLETE_CHARGE_DOCUMENT for the purpose.
    Hope it helps.
    Thanks,
    Amlan

  • How to stop remittance advice to vendor after the app run

    Dear All,
                 Our vendors don't want to receive remittance advice after the APP run.
    Is there any option where i can block the remittance advice for certain vendors after the run.
    Please let me know
    Thanks & Regards
    Balaji Dhanavel

    Hi Neeraj,
    I appreciate your efforts. But just a small doubt.
    Actually i dont want to send the remittance advice Only
    If i take the email address out of vendor master record , would it make any impact in other communication.
    Please tell me where i give the email address in the vendor master.
    Your reply would be much appreciated.
    Cheers
    Balaji Dhanavel

  • "fpsane.cpp" in line 269 appears when trying to save ma VI after the 1st run!

    Hi LV-users,
    this is a problem some of you may had before. But I still don't know how to solve this problem.
    LV crashes when I try to save my VI after the 1st run telling me about the fpsane.cpp-error. It also tells about "INSANE object at FPHP+3EE4 in my VI" and it says
    "{sub } (0x10)wave chart" and so on.
    I wonder if their is a mistake in a sub VI, maybe because I'm working with references for my wave charts and their histograms which have to be saved if the acquired datapoints are not within tolerance.
    I already upgrades my LV-Version to 6.02 and so on...I read about this solution in the Discussion Forum.
    I added my VI and Sub VIs using references.
    Can anybo
    dy give me some advice?
    Thanks, Kathrine
    Attachments:
    2405_D_Kurven_in_Cluster.vi ‏199 KB
    Kurven_Sichtbar.vi ‏38 KB
    3_Historie_speichern_B.vi ‏51 KB

    Insane error are not due to your programming. There are several good pages on our site that discuss solving these errors. Goto www.ni.com >> support >> advanced search (it is at the bottom--click on the words). This lauches the best way to search our site because under option 2, you can limit your search to resources of interests. Enter insane in the all the words field and search everything. One of the first hits is a knowlegbase that discusses solving this issue.
    Jeremy Braden
    National Instruments

  • My headphones have broke for the third time will apple replace them after the third time (my warranty is still active)

    my headphones have broke for the third time will apple replace them after the third time (my warranty is still active)

    So i am likely to get new headphones? &amp; yeah personally i think i do handle them with care, i have no idea how they keep messing up. Btw thank you for the reply.

  • How to stop a process chain after the current running process

    Hi experts,
    I try to stop a running process chain, but only at the end of the current process load.
    I try to unscheduled process chain : the job of the current process is killed and the process stop
    I try to execute the programm rspc_process_finsh : same result.
    Actually, I aim at waiting of the current process completion and stop the chain.
    Thanks and regards,
    Bobby

    Hi all,
    Thanks for answer.
    If I resume the situation :
    - Click on Unschedule process chain stop the current process. We have to change the status of the process in Yellow to Red.
    - Go to sm37 to kill the job change the statut in red.
    So there is no way to stop the running of a process chain only after the good or bad end of the last runnning process ?
    Example :
    My chain is running. The process which is running is a DTP loading process. There are 50 packages to load. I decide to click on Unschedule process chain when the package 18 is running.
    If I do that, the loading of package 19 will not start right ?
    So is there a way to wait that the 50 packages are loaded before that the system stop the chain ?
    Thanks in advance,
    Bobby.

  • Spool Deleted  After the Payment Run

    Hello SAP Guru,
    My client is having one issue quite often; the problem is after running the payment run via F110 the printing spool is getting deleted specifically for one company code; however, for rest of the company codes spools don't get deleted automatically. Interestingly, the payment run is run by the same user id so why the spool gets deleted for one company code but not for others?
    I've checked sp01 and there is no spool exist for that company code. 
    Here is the problem: Lets say when they run a payment run for over 200 checks and printer doesn't print out the checks they can't go back to locate the spool for this specific payment run. Due to this problem they have to delete each check individual and reprint via FCH7 which is really a time consuming.
    Could you please let me know why the spool getting deleted or how I can print out the 200 checks again without voiding them recreating new check numbers?
    Please advise,

    Go to SP01 or SP02 select the request and go to properties and you will get a check box - "Do not delete the spool" deselct the same and your issue will get resolve.
    This you have to do before printing the spool.
    Uttam.
    Edited by: Uttam Agarwala on Jul 18, 2011 10:09 AM
    Edited by: Uttam Agarwala on Jul 18, 2011 10:12 AM

  • My iMac freezes up after the screensaver runs for a few minutes

    My 30inch iMac freezes up after the screensave has been running for a few minutes.  This happens about every other day.  I leave my system running all the time.  nothing will unfreeze things so I have to do a hard button reset.  I am running all the latest system updates etc.

    Reinstall  Safari 5.0.6 for Leopard
    Then restart your Mac, try Safari.
    If it crashes again, third party plugins could still be at fault even though they do not show up in the report.
    Follow the troubleshooting help here >  Safari: Unsupported third-party add-ons may cause Safari to unexpectedly quit or have performance issues

  • Difference forecast results between the Batch run and interactive run in DP

    Hi Guru's,
    I am running the forecast in DP with interactive and batch run (with same selection id and same univariate profile) but  i am getting the difference results not both are equal???
    Is it we will not get the same results?? If i tried with only one product and only one location combination then i am getting the same results, But if i took n-n combination then results are wrong.
    Please help me in this regards?
    Thanks,
    Sree

    Hello,
    Thanks for your quick reply, I have checked all the settings and confiring the same - i have maintained the same selection ans same parameters.
    I think so we will not get the same results for batch and interactive run.
    May be batch job it will run by each one by one combination, But in interactive run it will considering the grouping, Please correct me??
    Regards,
    Kotesh.

  • Safari won't start on Windows XP after the first run

    OK, Safari used to work on my work PC. Now when I install it, Safari launches and seems to work. But after I close it, it won't start again - just dies and does nothing.
    I noticed in another thread that .net framework may be the culprit and I have 1,2,3 installed. I have removed safari and re-added and the same thing happens. iTunes seems to work with no issues.

    OK, Safari used to work on my work PC. Now when I install it, Safari launches and seems to work. But after I close it, it won't start again - just dies and does nothing.
    Some basic principle troubleshooting thoughts here.
    Are you able to launch Safari (after that first run) if you restart the PC and then try launching again?
    I'm wondering here if the Safari.exe process is still running even though Safari looks like it has quit correctly. If that's what is going on, the running Safari.exe can "suppress" attempts to relaunch Safari. If that's afoot, restarting the PC should shut down the process, and we might be able to get Safari to launch then.

  • Report (summary) to print in the same order as the PAYCHECK run.

    Hi,
    I have a requirement where an incentive pay summary by salesperson, will need to print in the same order as the checks that print for those salespersons.
    Is this possible and if so, what is required to accomplish the above requirement?
    Thank You,
    John

    You can't change them once they are in the Photos app. On iOS 5 the photos will be sorted by the photo's 'date modified' field (from here) - so you will need to modify that field on your photos before syncing to get them into your required order. Or you could consider using a third-party photo management app instead of the Photos app e.g. Photo Manager Pro which allows you to re-order photos directly within the app.

Maybe you are looking for

  • Session Login and Logout in jsp page

    hi i am developing jsp page i completed except logout.jsp page my login page is in Jsp format and then business Logic in servlet and then get method & set method in bean.java i have login and then it sucess page there i have singout button if i sign

  • How can I drag multiple photos from iPhoto into a Word Document

    I'm creating a collage of photos for a friend and in order to get the photos to the right size and print them without trouble I need to drag all of the photos from a certain album in iPhoto into an empty word document. Is there a way to do this? If n

  • My secondary monitor flashes and blacks out after the 10.7 install.  Any ideas on how to fix this?

    I have installed 10.7 and the secondary monitor flashes and blacks out.  I downgraded back to 10.6 and the problem went away.  I reinstalled 10.7 and the same problem happened again.  The monitor blacks in and out especially when the pointer is place

  • Can't connect to itunes with my iPod (touch).

    My IPod is disabled (I haven't used it in quite awhile, don't know why it's disabled) and is asking me to connect to itunes. When I try to, I get an error on itunes saying "iTunes could not connect to the iPod "Nathan's IPod" because it is locked wit

  • CREATE DATA TYPE TABLE

    Hi Colleagues, regarding my IDOC viewer project I'm facing a question regarding the SAP release. I started with some success on Release 471, now I tried to continue on 46C. CREATE DATA gr_ref   TYPE lvc_t_fcat."STANDARD TABLE OF LVC_S_FCAT. works in