Temps deterministe rt

Bonjour,
Je voudrai savoir quand ***** termine une tache dans une application deterministe sur RT.
J'ai vu la fonction "get time stamp" celle ci retourne un tableau d'entier. Ici je veux juste une iteration, mais du coup, ces informations peuvent elle etre traduite en timestamp standard sans soucis, si oui quel "composant" utilisé. Cordialement

Re Noir Désir,
Il faudrait tester mais si vous ne faites qu'une itération, il n'y aura qu'une ligne de votre tableau qui ***** rempli. Vous pouvez ensuite récupérer ces informations grâce à la palette tableau et les convertir en Timestamp grâce au VIs présent sur la palette Timing.
Je vais essayer de faire le test dans l'après midi. Si vous avez le temps de le faire dans l'après midi, tenez nous au courant.
Cordialement.
Pierre_D
National Instruments France
#adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
LabVIEW Tour
Journées Techniques dans 10 villes en France, du 4 au 20 novembre 2014
Pièces jointes :
forum.zip ‏34 KB

Similar Messages

  • Copy and open files on local filesystem?

    Hello,
    For a change request, I have a rather tricky requirement. Suppose each user of the application always has a mapped network drive to a server, let's say drive "k:\", pointing to "\\servername\someDirectory\docs". This folder contains a lot of Word (.doc) files. What the customer wants is a button in the application that copies one or more documents from the "k:\" drive to a local folder, and opens them in Word. The reason the files have to be copied to the local file system is that opening them on the server would result in a read-only copy, whereas the users should be able to edit the opened version.
    So the user is in the adf application, clicks a button, and then one or more word documents should be opened. These documents should be local copies of the documents in the "k:\" drive. The location where to put the local copies can be easily determined, the path(s?) of the relevant document(s?) on the "k:\" drive is known, and the location of MS Word / Office can also be determined. So I have at my disposal for example following Strings:
    tmpDir = "C:\Documents and Settings\<user>\Local Settings\Temp\"
    serverDir = "\\servername\someDirectory\docs\"
    doc1 = "doc1.doc"
    doc2 = "doc2.doc"
    doc3 = "doc3.doc"
    wordLocation = c:\program files\microsoft office\office10In the current Forms application, there is a button that uses WebUtil to:
    <ul>
    <li>Creates an empty .bat file on the local file system (eg C:\Documents and Settings\<user>\Local Settings\Temp, determined by the tmpDir String)</li>
    <li>In this bat file, there are one ore more copy commands added, to copy the doc files from the server to the local Temp dir:
    copy \\servername\someDirectory\docs\doc1.doc C:\Documents and Settings\<user>\Local Settings\Temp
    copy \\servername\someDirectory\docs\doc2.doc C:\Documents and Settings\<user>\Local Settings\Temp
    copy \\servername\someDirectory\docs\doc3.doc C:\Documents and Settings\<user>\Local Settings\Tempor in other words:
    copy serverDir || doc1 tmpDir
    copy serverDir || doc2 tmpDir
    copy serverDir || doc3 tmpDir</li>
    <li>Next, the necessairy commands are added to the .bat file to open Word with the local copies:
    cd c:\program files\microsoft office\office10
    start WINWORD.EXE C:\Documents and Settings\<user>\Local Settings\Temp\doc1.doc C:\Documents and Settings\<user>\Local Settings\Temp\doc2.doc  C:\Documents and Settings\<user>\Local Settings\Temp\doc3.docor in other words:
    cd wordLocation
    start WINWORD.EXE  tmpDir || doc1 tmpDir || doc2 tmpDir || doc3</li>
    <li>Finally, an exit command is also added to the .bat file and the .bat file is executed on the client through WebUtil.</li>
    </ul>
    The resulting .bat file that is executed on the client would look like this as a whole:
    copy \\servername\someDirectory\docs\doc1.doc C:\Documents and Settings\<user>\Local Settings\Temp
    copy \\servername\someDirectory\docs\doc2.doc C:\Documents and Settings\<user>\Local Settings\Temp
    copy \\servername\someDirectory\docs\doc3.doc C:\Documents and Settings\<user>\Local Settings\Temp
    cd c:\program files\microsoft office\office10
    start WINWORD.EXE C:\Documents and Settings\<user>\Local Settings\Temp\doc1.doc C:\Documents and Settings\<user>\Local Settings\Temp\doc2.doc  C:\Documents and Settings\<user>\Local Settings\Temp\doc3.doc
    exitAny suggestions on how I can do this in the cleanest possible way in adf 10.1.3? I do realise that this is not something you want to do in a web application, but this is an important requirement for the customer...
    Help would be greatly appreciated!
    Chris
    Edited by: Chris Schryvers on 17-May-2010 23:55

    For now I'm looking into the (signed) Java Applet solution: this should make it possible.
    Only one problem: I can't get an applet to run from a jspx (or HTML) page... I keep getting following exception:
    load: class applet.view.TestApplet not found.
    java.lang.ClassNotFoundException: applet.view.TestApplet
         at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: open HTTP connection failed:http://172.22.42.87:8988/TestApplet3-ViewController-context-root/applet/view/TestApplet.class
         at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 7 more
    Exception: java.lang.ClassNotFoundException: applet.view.TestAppletEven if I do just the basic steps in JDev:
    <ul>
    <li>Create a new empty Application with a project</li>
    <li>Right click project, New..., Web Tier > Applet > Applet</li>
    <li>extends: java.applet.Applet, name: TestApplet, package: applet.view</li>
    <li>Add "System.out.println("Test");" to the init() method of the applet</li>
    <li>Right click project, New..., WebTier > Applet > Applet HTML Page</li>
    <li>Accept all defaults, run the Untitled1.html</li>
    </ul>
    When using the AppletViewer, the applet is executed correctly, but when I try to run it on the Embedded OC4J server, I always get the exception...
    Any ideas on how to make this work? Help! :-)

  • How to determine what's using data store temp space?

    How can one determine what's using data store temp space? We are interested to know what structures are occupying space in temp space and if possible what pid/process connected to TimesTen created them.
    Also, is there a procedure that will work if temp space is full?
    Recently one of our data stores ran of space. We we're unable to run commands like "monitor", "select * from monitor", "select count(*) from my_application_table", etc. These commands failed because they required temp space to run and temp space was full. We killed the application processes, this in turned freed up temp space, then we were able to run these queries.
    Ideally, we'd like to have a procedure to figure out what's using temp space when temp space is full.
    The other thing we could do is periodically monitor temp space prior to it filling to determine what's using temp space.

    That was my original thought, but once you click the slider track or thumb, and then enter a value in the text control, the clickTarget on the change event envoked by the change to the bound data (after entering a value in the text control) will be whatever slider element had last been clicked. If you've never clicked the slider, clickTarget=null. But once you've clicked the slider the clickTarget always has a value of "thumb" or "track", regardless of what triggered the change event.

  • Determining datafile size for temp tablespace

    Is there a rule of thumb for determining the size of the temporary tablespace, or at least a common starting value?
    -Thanks
    Chuck

    Rule of thumb ... trial and error.
    That is what your test environment is for.
    We have over 200 databases with TEMP ranging from 50Mb up to 56Gb. So go figure!!!

  • While syncing, I got this message: "iTunes cannot sync apps to the iPad "temp's iPad" because the apps installed on the iPad could not be determined" What does this mean and what should I do?

    While syncing, I got this message: "iTunes cannot sync apps to the iPad “temp’s iPad” because the apps installed on the iPad could not be determined" What does this mean and what should I do?

    Based on an online post, I tried the following and it worked for me:
    1. Windows 7: Control panel > Device Manager
    2. Right click my PC's name > "scan for hardware changes"
    3. Restart iTunes
    4. Restart IPad
    5. Connect IPad
    6. Still I got the same error
    7. Restart iTunes
    8. Restart IPad
    9. Connect IPad
    10. It worked and I was able to sync the apps!!
    Prior to this I had removed few apps, not sure that was a trigger.
    System: IPad 1, IOS 5.x

  • Multiple plugtmp-1 plugtmp-2 etc. in local\temp folder stay , crossdomain.xml and other files containing visited websitenames created while private browsing

    OS = Windows 7
    When I visit a site like youtube whith private browsing enabled and with the add-on named "shockwave flash" in firefox add-on list installed and activate the flashplayer by going to a video the following files are created in the folder C:\Users\MyUserName\AppData\Local\Temp\plugtmp-1
    plugin-crossdomain.xml
    plugin-strings-nl_NL-vflLqJ7vu.xlb
    The contents of plugin-crossdomain contain both the "youtube.com" adress as "s.ytimg.com" and is as follows:
    <?xml version="1.0"?>
    <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
    -<cross-domain-policy> <allow-access-from domain="s.ytimg.com"/> <allow-access-from domain="*.youtube.com"/> </cross-domain-policy>
    The contents of the other file I will spare you cause I think those are less common when I visit other sites but I certainly don't trust the file. The crossdomain.xml I see when I visit most other flashpayer sites as well.
    I've also noticed multiple plugin-crossdomain-1.xml and onwards in numbers, I just clicked a youtube video to test, got 6 of them in my temp plus a file named "plugin-read2" (no more NL file cause I changed my country, don't know how youtube knows where I'm from, but that's another subject, don't like that either). I just noticed one with a different code:
    <?xml version="1.0"?>
    -<cross-domain-policy> <allow-access-from domain="*"/> </cross-domain-policy>
    So I guess this one comprimises my browsing history a bit less since it doesn't contain a webadress. If these files are even meant to be deposited in my local\temp folder. The bigger problem occurs when they stay there even after using private browsing, after clearing history, after clearing internet temporary files, cache, whatever you can think of. Which they do in my case, got more than 50 plugtmp-# folders in the previous mentioned local\temp folder containing all website names I visited in the last months. There are a variety of files in them, mostly ASP and XML, some just say file. I have yet to witness such a duplicate folder creation since I started checking my temp (perhaps when firefox crashes? I'd say I've had about 50 crashes in recent months).
    I started checking my temp because of the following Microsoft Security Essential warnings I received on 23-4-12:
    Exploit:Java/CVE-2010-0840.HE
    containerfile:C:\Users\Username\AppData\Local\Temp\jar_cache2196625541034777730.tmp
    file:C:\Users\Username\AppData\Local\Temp\jar_cache2196625541034777730.tmp->pong/reversi.class
    and...
    Exploit:Java/CVE-2008-5353.ZT
    containerfile:C:\Users\Noname\AppData\Local\Temp\jar_cache1028270176376464057.tmp
    file:C:\Users\Noname\AppData\Local\Temp\jar_cache1028270176376464057.tmp->Testability.class
    Microsoft Security Essentials informed me that these files were quarantained and deleted but when going to my temp file they were still there, I deleted them manually and began the great quest of finding out what the multiple gigabytes of other files and folders were doing in that temp folder and not being deleted with the usual clearing options within firefox (and IE).
    Note that I have set my adobe flasplayer settings to the most private intense I could think of while doing these tests (don't allow data storage for all websites, disable peer-to peer stuff, don't remember exactly anymore, etc.). I found it highly suspicious that i needed to change these settings online on an adobe website, is that correct? When right-clicking a video only limited privacy options are available which is why I tried the website thing.
    After the inital discovery of the java exploit (which was discovered by MSE shortly after I installed and started my first scan with Malwarebytes, which in turn made me suspicious whether I had even downloaded the right malwarebytes, but no indication in the filename if I google it). Malwarebytes found nothing, MSE found nothing after it said it removed the files, yet it didn't remove them, manually scanning these jar_cache files with both malwarevytes and MSE resulted in nothing. Just to be sure, I deleted them anyways like I said earlier. No new jar_cache files have been created, no exploits detected since then. CCleaner has cleaned most of my temp folder, I did the rest, am blocking all cookies (except for now shortly), noscript add-on has been running a while on my firefox (V 3.6.26) to block most javascripts except from sites like youtube. I've had almost the same problem using similar manual solutions a couple of months ago, and a couple of months before that (clearing all the multiple tmp folders, removing or renaming jar_cache manually, running various antmalware software, full scan not finding a thing afterwards, installing extra add-ons to increase my security, this time it's BetterPrivacy which I found through a mozilla firefox https connection, I hope, which showed me nicely how adobe flash was still storing LSO's even after setting all storage settings to 0 kb and such on the adobe website, enabling private browsing in firefox crushed those little trolls, but still plugtmp trolls are being created, help me crush them please, they confuse me when I'm looking for a real threat but I still want to use flash, IE doesn't need those folders and files, or does it store them somewhere else?).
    I'm sorry for the long story and many questions, hope it doesn't scare you away from helping me fight this. I suspect it's people wanting to belong to the hackergroup Anonymous who are doing this to my system and repeating their tricks (or the virus is still there, but I've done many antivirus scans with different programs so no need to suggest that option to me, they don't find it or I run into it after a while again, so far, have not seen jar_cache show up). Obviously, you may focus on the questions pertaining firefox and plugtmp folders, but if you can help me with any information regarding those exploits I would be extremely grateful, I've read alot but there isn't much specific information for checking where it comes from when all the anti-virus scanners don't detect anything anymore and don't block it incoming. I also have downloaded and installed process monitor but it crashes when I try to run it. The first time I tried to run it it lasted the longest, now it crashes after a few seconds, I just saw the number of events run up to almost a million and lots of cpu usage. When it crashed everything returned back to normal, or at least that's what I'm supposed to think I guess. I'll follow up on that one on their forum, but you can tell me if the program is ligit or not (it has a microsoft digital signature, or the name micosoft is used in that signature).

    update:
    I haven't upgraded my firefox yet because of a "TVU Web Player" plugin that isn't supported in the new firefox and I'm using it occasionally, couldn't find an upgrade for it. Most of my other plugins are upgraded in the green (according to mozilla websitechecker):
    Java(TM) Platform SE 6 U31 (green)
    Shockwave for Director (green - from Adobe I think)
    Shockwave Flash (green - why do I even need 2 of these adobe add-ons? can I remove one? I removed everything else i could find except the reader i think, I found AdobeARM and Adobe Acrobat several versions, very confusing with names constantly switching around)
    Java Deployment Toolkit 6.0.310.5 (green, grrr, again a second java, why do they do this stuff, to annoy people who are plagued with java and flash exploits? make it more complicating?)
    Adobe Acrobat (green, great, it's still there, well I guess this is the reader then)
    TVU Web Player for FireFox (grey - mentioned it already)
    Silverlight Plug-In (yellow - hardly use it, I think, unless it's automatic without my knowing, perhaps I watched one stream with it once, I'd like to remove it, but just in case I need it, don't remember why I didn't update, perhaps a conflict, perhaps because I don't use it, or it didn't report a threat like java and doesn't create unwantend and history compromising temp files)
    Google Update (grey - can I remove? what will i lose? don't remember installing it, and if I didn't, why didn't firefox block it?)
    Veetle TV Core (grey)
    Veetle TV Player (grey - using this for watching streams on veetle.com, probably needs the Core, deleted the broadcaster that was there earlier, never chose to install that, can't firefox regulate that when installing different components? or did i just miss that option and assumed I needed when I was installing veetle add-on?)
    Well, that's the list i get when checking on your site, when i use my own browseroptions to check add-ons I get a slightly different and longer list including a few I have already turned off (which also doesn't seem very secure to me, what's the point in using your site then for anything other than updates?), here are the differences in MY list:
    I can see 2 versions of Java(TM) Platform SE 6 U31, (thanks firefox for not being able to copy-paste this)
    one "Classic Java plug-in for Netscape and Mozilla"
    the other is "next generation plug-in for Mozilla browsers".
    I think I'll just turn off the Netscape and Mozilla one, don't trust it, why would I need 2? There I did it, no crashes, screw java :P
    There's also a Mozilla Default plugin listed there, why does firefox list it there without any further information whether I need it or not or whether it really originates from Mozilla firefox? It doesn't even show up when I use your website plugin checker, so is there no easy way by watching this list for me to determin I can skip worrying about it?
    There's also some old ones that I recently deactivated still listed like windows live photo gallery, never remember adding that one either or needing it for anything and as usual, right-clicking and "visit homepage" is greyed out, just as it is for the many java crap add-ons I encountered so far.
    Doing a quick check, the only homepage I can visit is the veetle one. The rest are greyed out. I also have several "Java Console" in my extentions tab, I deactivated all but the one with the highest number. Still no Java Console visible though, even after going to start/search "java", clicking java file and changing the settings there to "show" console instead of "hide" (can't remember exact details).
    There's some other extentions from noscript, TVU webplayer again, ADblock Plus and now also BetterPrivacy (sidenote, a default.LSO remains after cleanup correct? How do I know that one isn't doing anything nasty if it's code has been changed or is being changed? To prevent other LSO's I need to use both private browsing and change all kinds of restrictions online for adobe flashplayer, can anyone say absurd!!! if you think you're infected and want to improve your security? Sorry that rant was against Adobe, but it's really against Anonymous, no offense).

  • ORA-01652: unable to extend temp segment by 128 in tablespace TEMP2

    Dear all,
    received this error when generate a report.
    check the TEMP1 and TEMP2 they all have lot of spaces.
    check the env $APPLLCSP return empty.
    Please advise how to correct this error.
    Regards,
    Payables: Version : 12.0.0
    APXSSIMP module: Supplier Sites Open Interface Import
    APPLLCSP Environment Variable set to :
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    American_America.UTF8
    Enter Password:
    REP-0069: Internal error
    REP-57054: In-process job terminated:Terminated with error:
    REP-300: MSG-00001: After SRWINIT
    MSG-00002: After Get_Company_Name
    MSG-00003: After Get_NLS_Strings
    MSG-00004: After Importing Suppliers
    MSG-00005: After Get_Header_Information
    ORA-01652: unable to extend temp segment by 128 in tablespace TEMP2
    ==> SELECT assi.org_id C_Rejected_Org_Id,
    MSG-00020: After SRWEXIT
    Report Builder: Release 10.1.2.0.2 - Production on Mon May 11 09:55:36 2009

    >
    check the TEMP1 and TEMP2 they all have lot of spaces.
    >
    How much is "lot" ? :-) How did you determine this "lot" ?
    Pl see MOS Doc 1025288.6 (How to Diagnose and Resolve UNABLE TO EXTEND Errors)
    HTH
    Srini

  • How Can I Determine the Size of the 'My Documents' Folder for every user on a local machine using VBScript?

    Hello,
    I am at my wits end into this. Either I am doing it the wrong way or it is not possible.
    Let me explain. I need a vb script for the following scenario:
    1. The script is to run on multiple Windows 7 machines (32-Bit & 64-Bit alike).
    2. These are shared workstation i.e. different users login to these machines from time to time.
    3. The objective of this script is to traverse through each User Profile folder and get the size of the 'My Documents' folder within each User Profile folder. This information is to be written to a
    .CSV file located at C:\Temp directory on the machine.
    4. This script would be pushed to all workstations from SCCM. It would be configured to execute with
    System Rights
    I tried the script detailed at:
    http://blogs.technet.com/b/heyscriptingguy/archive/2005/03/31/how-can-i-determine-the-size-of-the-my-documents-folder.aspx 
    Const MY_DOCUMENTS = &H5&
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    Set objShell = CreateObject("Shell.Application")
    Set objFolder = objShell.Namespace(MY_DOCUMENTS)
    Set objFolderItem = objFolder.Self
    strPath = objFolderItem.Path
    Set objFolder = objFSO.GetFolder(strPath)
    Wscript.Echo objFolder.Size
    The Wscript.Echo objFolder.Size command in the script at the above mentioned link returned the value as
    '0' (zero) for the current logged on user. Although the actual size was like 30 MB or so.
    I then tried the script at:
    http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_27869829.html
    This script returns the correct value but only for the current logged-on user.
    Const blnShowErrors = False
    ' Set up filesystem object for usage
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    Set objShell = CreateObject("WScript.Shell")
    ' Display desired folder sizes
    Wscript.Echo "MyDocuments : " & FormatSize(FindFiles(objFSO.GetFolder(objShell.SpecialFolders("MyDocuments"))))
    ' Recursively tally the size of all files under a folder
    ' Protect against folders or files that are not accessible
    Function FindFiles(objFolder)
    On Error Resume Next
    ' List files
    For Each objFile In objFolder.Files
    On Error Resume Next
    If Err.Number <> 0 Then ShowError "FindFiles:01", objFolder.Path
    On Error Resume Next
    FindFiles = FindFiles + objFile.Size
    If Err.Number <> 0 Then ShowError "FindFiles:02", objFile.Path
    Next
    If Err.Number = 0 Then
    ' Recursively drill down into subfolder
    For Each objSubFolder In objFolder.SubFolders
    On Error Resume Next
    If Err.Number <> 0 Then ShowError "FindFiles:04", objFolder.Path
    FindFiles = FindFiles + FindFiles(objSubFolder)
    If Err.Number <> 0 Then ShowError "FindFiles:05", objSubFolder.Path
    Next
    Else
    ShowError "FindFiles:03", objFolder.Path
    End If
    End Function
    ' Function to format a number into typical size scales
    Function FormatSize(iSize)
    aLabel = Array("bytes", "KB", "MB", "GB", "TB")
    For i = 0 to 4
    If iSize > 1024 Then iSize = iSize / 1024 Else Exit For End If
    Next
    FormatSize = Round(iSize, 2) & " " & aLabel(i)
    End Function
    Sub ShowError(strLocation, strMessage)
    If blnShowErrors Then
    WScript.StdErr.WriteLine "==> ERROR at [" & strLocation & "]"
    WScript.StdErr.WriteLine " Number:[" & Err.Number & "], Source:[" & Err.Source & "], Desc:[" & Err.Description & "]"
    WScript.StdErr.WriteLine " " & strMessage
    Err.Clear
    End If
    End Sub
    The only part pending, is to achieve this for the 'My Documents' folder within each User Profile folder.
    Is this possible?
    Please help.

    Here are a bunch of scripts to get folder size under all circumstances.  Take your pick.
    https://gallery.technet.microsoft.com/scriptcenter/site/search?query=get%20folder%20size&f%5B0%5D.Value=get%20folder%20size&f%5B0%5D.Type=SearchText&ac=2
    ¯\_(ツ)_/¯

  • Global Temp Table or Permanent Temp Tables

    I have been doing research for a few weeks and trying to comfirm theories with bench tests concerning which is more performant... GTTs or permanent temp tables. I was curious as to what others felt on this topic.
    I used FOR loops to test out the performance on inserting and at times with high number of rows the permanent temp table seemed to be much faster than the GTTs; contrary to many white papers and case studies that have read that GTTs are much faster.
    All I did was FOR loops which iterated INSERT/VALUES up to 10 million records. And for 10 mil records, the permanent temp table was over 500k milliseconds faster...
    Anyone have an useful tips or info that can help me determine which will be best in certain cases? The tables will be used for staging for ETL Batch processing into a Data Warehouse. Rows within my fact and detail tables can reach to the millions before being moved to archives. Thanks so much in advance.
    -Tim

    > Do you have any specific experiences you would like to share?
    I use both - GTTs and plain normal tables. The problem dictates the tools. :-)
    I do have an exception though that does not use GTTs and still support "restartability".
    I need to to continuously roll up (aggregate) data. Raw data collected for an hour gets aggregated into an hourly partition. Hourly partitions gets rolled up into a daily partition. Several billion rows are processed like this monthly.
    The eventual method I've implemented is a cross between materialised views and GTTs. Instead of dropping or truncating the source partition and running an insert to repopulate it with the latest aggregated data, I wrote an API that allows you to give it the name of the destination table, the name of the partition to "refresh", and a SQL (that does the aggregation - kind of like the select part of a MV).
    It creates a brand new staging table using a CTAS, inspects the partitioned table, slaps the same indexes on the staging table, and then performs a partition exchange to replace the stale contents of the partition with that of the freshly build staging table.
    No expensive delete. No truncate that results in an empty and query-useless partition for several minutes while the data is refreshed.
    And any number of these partition refreshes can run in parallel.
    Why not use a GTT? Because they cannot be used in a partition exchange. And the cost of writing data into a GTT has to be weighed against the cost of using that data by writing it (or some of it) into permanent tables. Ideally one wants to plough through a data set once.
    Oracle has a fairly rich feature set - and these can be employed in all kinds of ways to get the job done.

  • Global Temp Table or PL/SQL Table

    I am trying to determine if this can be done only using PL/SQL table. If not, will the usage of the global temp table affects the performance.
    Here is the situation,
    I have a data block that is based on a stored procedure. This stored procedure will return table of records from different database tables with join conditions. Some of the fields within the table of records will not have data returned from database tables. They will be the fields displayed on the form and the data will be entered by user.
    For example:
    Records will look like:
    Id          (will be populated by procedure)
    Hist_avg     (will be populated by procedure)
    My_avg     (will be used as field on the form so that user can enter their own avg)
    Cheked     (will be populated by procedure)
    My questions are:
    1.     Is this doable in form using a data block based on PL/SQL table?
    2.     Will users be able to manipulate (update) the data that based on the PL/SQL table in the memory as they wish and invoke the procedure to update the underlying table when clicking on a button (Update Avg)?
    3.     What is the advantage of using PL/SQL table and global temp table from database and form point of views?
    Any info is appreciated.

    Hi there...
    Here is the Reference...
    http://asktom.oracle.com/pls/ask/f?p=4950:8:2939484874961025998::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:604830985638
    Best Regards...
    Muhammad Waseem Haroon

  • How can I determine what is the minimum SCN number I need to restore up to.

    Say if I have a full database backup, I know I have file inconsistency, but I want to know what is the minimum time or SCN number a need to roll forward to in order to be able to open the database?
    For example: I do a database restore.
    restore database ;
    RMAN> sql 'alter database open read only';
    sql statement: alter database open read only
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of sql command on default channel at 03/16/2009 15:00:04
    RMAN-11003: failure during parse/execution of SQL statement: alter database open read only
    ORA-16004: backup database requires recovery
    ORA-01194: file 1 needs more recovery to be consistent
    ORA-01110: data file 1: '/u01/oradata/p1/system01.dbf'
    I need need to apply archive log files. All references I find for ORA-00194 state the solution is to "apply more logs until the file is consistent " But "HOW MANY LOGS", or more apporaite up to what time or SCN? How does one determine what TIME or SCN is required to get all file consistent?
    I thought this query might provide the answer, but it doesn't
    select max(checkpoint_change#)
    from v$datafile_header
    MAX(CHECKPOINT_CHANGE#)
    7985876903
    --It applies a bit more redo, but not enough to make my datafiles consistent.
    recover database until SCN=7985876903 ;
    Starting recover at 03/16/09 15:04:54
    using channel ORA_DISK_1
    using channel ORA_DISK_2
    using channel ORA_DISK_3
    using channel ORA_DISK_4
    using channel ORA_DISK_5
    using channel ORA_DISK_6
    using channel ORA_DISK_7
    using channel ORA_DISK_8
    starting media recovery
    channel ORA_DISK_1: starting archive log restore to default destination
    channel ORA_DISK_1: restoring archive log
    archive log thread=1 sequence=18436
    channel ORA_DISK_1: reading from backup piece /temp-oracle/backup/hot/p1/20090315/hourly.arch_P1_47353_681538638_1
    channel ORA_DISK_1: restored backup piece 1
    piece handle=/temp-oracle/backup/hot/p1/20090315/hourly.arch_P1_47353_681538638_1 tag=TAG20090315T041716
    channel ORA_DISK_1: restore complete, elapsed time: 00:02:26
    archive log filename=/u01/app/oracle/flash_recovery_area/P1/archivelog/2009_03_16/o1_mf_1_18436_4vxd81yc_.arc thread=1 se quence=18436
    Oracle Error:
    ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
    ORA-01194: file 1 needs more recovery to be consistent
    ORA-01110: data file 1: '/u01/oradata/p1/system01.dbf'
    I've discover I need to apply archive logs until this query reports all datafiles as FUZZY=NO , but this only works by guessing at some time periord to roll forward to, then checking the FUZZY column, and try again. Is there a way to know, I have to roll forward to a specific SNC in order for all my datafiles to be consistent?
    select file#
         , status
         , checkpoint_change#
         , checkpoint_time
         , FUZZY
         , RECOVER
    ,LAST_DEALLOC_SCN
    from v$datafile_header
    order by checkpoint_time
    Thanks,
    Jason

    The minimum point in time is the time when the last backup piece for datafiles in that backup was completed.
    Your alert.log should show the redo log sequence number at that time.
    You can query V$ARCHIVED_LOG and get the FIRST_CHANGE# of the first archivedlog generated after that backup piece completed.
    A
    LIST BACKUP;in RMAN should also show you the SCNs at the time of the backups.
    You can also query SCN_TO_TIMESTAMP -- eg
    select timestamp_to_scn(to_timestamp('15-MAR-09 09:24:01','DD-MON-RR HH24:MI:SS')) from dual;will return an approximation of the SCN.
    Hemant K Chitale
    http://hemantoracledba.blogspot.com
    Edited by: Hemant K Chitale on Mar 17, 2009 9:41 AM
    added the LIST BACKUP command from RMAN.

  • Error message from a thermotron set temp VI

    Hello,
       I am getting the following error code from the Load temp vi for a Thermotron temp chamber -1073807339. Does anyone know how to figure out what this error means? I am am to succesfully initalize the temp chamber, but when I try to set the chamber temp and get errors.
    Regards,
    Kaspar

    Hi Kaspar,
    You are correct, rrror 1073807339 refers to a timeout error. A timeout on the read is usually caused by sending an incorrect command. The instrument may not recognize the command and does not generate a response.
    I know this may be a silly question, but here goes:  How do you communicate to the chamber? ( eg: serial port - most likely)
    Since it is likely serial, here is some info.
    You can set the timeout by running the VISA Configure serial settings VI from the Instrument Control>>Serial palette. However, the default timeout is 10 seconds.  But without seing your application, it is difficult to give proper advice.
    It could be a simple matter of setting the correct parameters.  If serial, are you able to "talk to it" using somthing like HyperTerminal?  If so, duplicate the settings.  Also, try opening the Example Finder (Help>>Find Examples) and searching for "Serial".
    As for a solution - A timeout occures when the time passed and you don't get the number of bytes you asked for. How many bytes are you asking for? You can use the Bytes at Serial Port property node to determine how many bytes are waiting and wire that into the Read VI.
    Hopefully this is a start.. or it helped..
    RayR

  • How do I determine in Java if running local or deployed weblogic server

    Using JDeveloper 11.1.1.4.0
    I need to determine in my Java code, if I am running my application locally (JDeveloper/Weblogic) or if the application is running on a deployed Weblogic server. The code will be used to determine where to place files when testing on PC verses where to place files when deployed. For example (c:\temp or /usr2/upload).
    Thanks,
    Troy

    Hi,
    well one way is to identify using weblogic system properties here is the one example to get weblogic managed server name of application running in java http://www.baigzeeshan.com/2011/11/oracle-adf-how-to-get-managed-server.html
    check other properties as well http://docs.oracle.com/cd/E13222_01/wls/docs90/config_scripting/config_WLS.html#1019588
    Zeeshan

  • Temp File Name Schema in Receiver File adapter

    Hi,
    I have a scenario where i have to write the file in the temperaory location before writing it to the FTP loacation, I have selected the Processing Parameter as "Use Temperory File" but when the file gets created it is padded with the Message Id, is thr any option to get the file name as the temp file name without the Message Id or timestamp.
    Please let me know if any one has come across such scenario.
    thankx,
    shree

    Hi,
    Under Write Mode, specify whether the target file is to be written directly in the specified directory. If an additional step is to be added using a temporary file, choose Use Temporary File.
    You can specify a naming scheme for the temporary file under Temporary File Name Scheme.
    This schema is used to determine the prefix and extension of the temporary file; to ensure a unique file name, a time stamp is also added to the name during processing.
    The schema xitemp.tmp, for example, results in the file name xitemp<timestamp>.tmp
    So you have to customise the file name in schema.
    see below link
    http://help.sap.com/saphelp_nw2004s/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
    Regards
    Chilla

  • Problems working with Japanese characters found in filenames to determine invalid shortcuts

    Hi,
    I have written a script that uses test-path to query whether or not *.LNK shortcut files have valid Target Paths to determine whether or not the LNK files should be kept if invalid or contain temporary locations. This works perfectly for most shortcuts with
    the exception of those with filenames in Japanese/Chinese/Cyrillic fonts.
    The script is made up of the following action:-
    gci "$nextdrive\Users\$env:username\AppData\Roaming\microsoft\office\recent" -Filter *.lnk | % { $shell.CreateShortcut( $_.FullName ) } | ? { ( Test-Path ( $_.TargetPath )) -eq $false -or $_.TargetPath -like '*temporary internet files*' -or $_.TargetPath
    -like '*temp*'} | % { Remove-item -LiteralPath $_.FullName }
    If I run the script when a file name exists in the folder above such as : 1、目录.doc.LNK
    the Powershell script from the ISE returns the following error:-
    "Cannot bind argument to parameter 'Path' because it is an empty string.
    If I rename the .LNK file to something like 12345.doc.LNK, the powershell script successfully removes the file so I know that the issue is certainly related to the actual filename itself. Is there any sort of UTF, CJK or encoding option I need to configure
    here for this to work successfully?
    Thanks for taking the time to read this!
    Andrew

    The article Johan linked has some sample code which seems to address your issue (using Shell.Application instead of WScript.Shell). Here's a modification of your code that uses this technique:
    $shellApplication = New-Object -ComObject Shell.Application
    Get-ChildItem "$nextdrive\Users\$env:username\AppData\Roaming\microsoft\office\recent" -Filter *.lnk |
    ForEach-Object {
    try
    $shortcut = $shellApplication.Namespace(0).ParseName($_.FullName).GetLink
    if ((Test-Path -Path $shortcut.Path) -eq $false -or $shortcut.Path -like '*temporary internet files*' -or $shortcut.Path -like '*temp*')
    Remove-Item -LiteralPath $_.FullName
    catch
    Write-Error -ErrorRecord $_
    Alternatively, you can use the IShellLink COM class directly.  Looks like someone has already written a .NET wrapper for this: 
    http://www.vbaccelerator.com/home/NET/Code/Libraries/Shell_Projects/Creating_and_Modifying_Shortcuts/article.asp

Maybe you are looking for

  • AE Switch AND broadcasting wifi network?

    My current network is: router > homeplug... | Different part of house | ...homeplug with its own Wi-Fi network & 2 LAN ports as everything I have is Apple, and wanted to upgrade to more reliable equipment, would this work? router > homeplug... | Diff

  • KM Document iView and horizontal scrollbar

    I have a simple KM Doc Iview that displays a image. But I get this annoying hosrizontal scrollbar, it should rather display the whole image without the scrollbar. Have anybody experienced this? Any workarounds please? Thanks!

  • Playbook won't boot after upgrade to v2

    I did my OTA upgrade this morning, and it downloaded and appeared to apply successfully.  I hit the "restart" button and the playbook has been stuck at the shiny lights splash screen since.   I've even done a hard reset - still stuck.  I can't get it

  • Serialnumber could not be verified

    when i try to license my cs6 master collection i get this error: this serial number for cs6 master collection could not bei verified. please contact the support. i have a student version. please help!

  • Cisco CSS "arpt-lct http-100-reinsert" command equivalent on the ACE ?

    Hi Quote from the CSS configuration guide: [quote] Reinserting an Arrowpoint Cookie in an HTTP Server Response By default, the CSS always inserts an Arrowpoint (ARPT ) cookie in the first server response packet that begins with HTTP. More than likely