GPIB read gel when running vi without light debugging... (it works with light)
I have a gpib read that spits out two values to an offset. It is in a loop which is defined by the initial report final and the size of the stage settings. My question is, why don't him freezes reading gpib (or don't disable; whenever I turn on the light of debugging (once it's been run), it "lights" only until the gpib read and nothing else). I replaced the gpib read with visa read, it freezes over, but it saves only zeros (when I can clearly see my system out certain values). Any help would be appreciated.
* There is a similar topic on the light of debugging and reasoning has been designed to be a race condition. but I don't see how my situation is a race condition.
Thank you
Ko.
It is resolved. It has nothing to do with the program. There was a problem of interference with another parallel machine. Once I got rid of this connection, everything worked like a charm.
Thank you all for your valuable contributions.
-Ko.
Tags: NI Software
Similar Questions
-
InDesign extension is not displayed when run via the option "Debug as".
InDesign extension is not displayed when run via the option "Debug as".
Hi all
I worked on an application InDesign Extension for a few months now. I am Member creative cloud. I FlashBuilder 4.6 + Extension Builder 2.1 (both licensed versions) and InDesign CS6 and CC installed on my machine. The application is targeted for InDesign CS 5.x and 6 CS and CC versions. So far, I've tested it via "run as" and "Debug as" options of the FB; and in time, I "export as" ZXP for internal versions.
I'm having two problems, do not know if they are related.
1. when I try to bundle manifest, it fails with the following error: (at first, I thought it was an installation problem, but I did another test project and bundle manifest works on that one)
Could not open the Editor: an unexpected exception was thrown.
Details:
java.lang.NullPointerException
at com.adobe.cside.ui.editors.pages.MainBundlePage.isPointProductSupported (unknown Source)
at com.adobe.cside.ui.editors.pages.MainBundlePage.createTargetAppSection (unknown Source)
at com.adobe.cside.ui.editors.pages.MainBundlePage.createFormContent (unknown Source)
to org.eclipse.ui.forms.editor.FormPage$ 1.run(FormPage.java:152)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.forms.editor.FormPage.createPartControl(FormPage.java:150)
at org.eclipse.ui.forms.editor.FormEditor.pageChange(FormEditor.java:471)
at com.adobe.cside.ui.editors.BundleManifestEditor.pageChange (unknown Source)
at org.eclipse.ui.part.MultiPageEditorPart.setActivePage(MultiPageEditorPart.java:1067)
at org.eclipse.ui.forms.editor.FormEditor.setActivePage(FormEditor.java:603)
at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:352)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:670)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:289)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2945)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2850)
to org.eclipse.ui.internal.WorkbenchPage.access$ 11 (WorkbenchPage.java:2842)
to org.eclipse.ui.internal.WorkbenchPage$ 10.run(WorkbenchPage.java:2793)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2789)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2773)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2756)
at com.adobe.cside.ui.popup.actions.CSIDEBundleEditorAction.run (unknown Source)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionI tem.java:584)
to org.eclipse.jface.action.ActionContributionItem.access$ 2 (ActionContributionItem.java:501)
to org.eclipse.jface.action.ActionContributionItem$ 5.handleEvent (ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4128)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1457)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1480)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1465)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1270)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3974)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3613)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
to org.eclipse.ui.internal.Workbench.access$ 4 (Workbench.java:2494)
to org.eclipse.ui.internal.Workbench$ 7.run(Workbench.java:674)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at com.adobe.flexbuilder.standalone.FlashBuilderApplication.start (FlashBuilderApplication.ja goes: 108)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication (EclipseAppLau ncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start (EclipseAppLauncher.jav one: 79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
Here is my manifest file:
<? XML version = "1.0" encoding = "UTF-8"? >
< ExtensionManifest Version = "2.0" ExtensionBundleId = "ConnectXPress".
" ExtensionBundleVersion ="1.0.0"xmlns: xsi =" http://www.w3.org/2001/XMLSchema-instance ">
< author >
<! [CDATA [Swati Sisodia]] >
< / author >
< ExtensionList >
< extension Id = "com.pubpress.CXP.extension1" Version = "1.0" / > "
< / ExtensionList >
< ExecutionEnvironment >
< parameter Listehotes >
< host name = "IDSN" Version = "7.0" / >
< host name = "Clement POUPARD" Version = "7.0" / >
< / parameter Listehotes >
< LocaleList >
< Locale code = 'All' / >
< / LocaleList >
< RequiredRuntimeList >
< RequiredRuntime Name = "CSXS" Version = "2.0" / >
< / RequiredRuntimeList >
< / ExecutionEnvironment >
< DispatchInfoList >
< Id = "com.pubpress.CXP.extension1 extension" >
< DispatchInfo >
< resources >
< SwfPath >./ConnectXPress.swf < / SwfPath >
< / resource >
life cycle of the <>
< AutoVisible > true < / AutoVisible >
< / life cycle >
< UI >
Panel < type > < / Type >
ConnectXPress < menu > < / Menu >
< geometry >
< size >
< height > 520 < / height >
< width > 350 < / width >
< / size >
< / geometry >
< icons >
< Type icon = 'Normal' >./icons/normal_icon.png < / icon >
< Type icon = "RollOver" >./icons/rollover_icon.png < / icon >
< Type icon = "Disabled" >./icons/disabled_icon.png < / icon >
< Type icon = "DarkNormal" >./icons/dark_icon.png < / icon >
< Type icon = "DarkRollOver" >./icons/dark_icon.png < / icon >
< / icons >
< /UI >
< / DispatchInfo >
< / extension >
< / DispatchInfoList >
< / ExtensionManifest >
2. my other problem is, I recently changed the name of the project and the name of the application in the Menu, and since I did that, my extension is not displayed when I perform "run as" or "Debug as" Flash Builder. To enforce as / debug as, the code compiles and appears in the folder "bin-debug", the application is triggered, but when I navigate to Windows > Extensions, my extension is not present here. Although when I export as ZXP and install via Extension Manager CS 6 or CC, it shows my last extension in Windows > Extensions with the correct name.
Any help is very appreciated. Please let me know if I need to provide more information.
Kind regards
Swati.
I've solved both of my problems. And I thought I'll post for others.
First problem, where the manifest failed Bundle of FlashBuilder, was resolved by a change in the manifest.xml (who lives at
/.staged-extension/CSXS). The change I made was tag. Earlier it was (generated by FlashBuilder 4.5): I changed it to:
I did a bit of hit and trial and it seems that FlashBuilder generated 4.5 tag host with the Version with only the specialties of the minimum version while FlashBuilder 4.6 requires that all versions of specialties listed in the Version attribute.
The second problem of debug/run as not to install the extension properly in InDesign, has been set as a result of the software update of FlashBuilder.
This is what brought me to do:
I retraced my steps and realized last thing I did before the "Debug as Adobe InDesign Extension" of in FlashBuilder broke on my machine has been updated InDesign CS6 to the latest available version, which probably ended up with flash/flex versions of InDesign and FlashBuilder. Therefore, perform a fixed update debugging.
-
T61 gel when running on battery - no problem when it is plugged
Got a new T61 2 weeks: 6459-CTO, Vista 32, T9300 2.5 GHz, 4 GB of RAM, Intel Turbo Memory. Everything is fine except the following problem: when running on battery only (not connected) the system hangs intermittently, programs stop responding, ctrl alt del does not work, only solution is a hard closed down. Lenovo sent me a replacement battery but same problem persists. Very annoying! System has never frozen when connected to the AC. All PC Doctor diagnostics OK. Insatalled latest drivers etc. Is update system, including Windows update. I have read that some versions of Intel Turbo Memory has had this problem when running on battery alone, but apparently this has been corrected with the later driver versions of Inter Turbo Memory - I later. Any help would be appreciated. No problem other than that - I can't use the laptop on battery with confidence.
All is well so far - no freeze no more! Now I can use my laptop because it was intended to be used - in battery mode - in the yard! I wonder when Lenovo makes available this driver for their production. This problem of gel certainly did me a lot of grief.
-
Extension Builder and CS6 - read version when running
I want to check the version of my CS extension to time init main .mxml.
How can I find this version since the manifest.xml info?
Thank you
pjb
As much as I know there is no API exposed by CSXS to get the bundle version. You can read the XML of the manifest and pull the version if:
private void getExtensionVersion(manifestFile:File):String
{
var fileStream:FileStream = new FileStream();
fileStream.open (manifestFile, FileMode.READ);
var manifestXml:XML = XML (fileStream.readUTFBytes (fileStream.bytesAvailable));
fileStream.close ();
Return manifestXml.@ExtensionBundleVersion;
}
...
Version string: var getExtensionVersion(basePath.resolvePath('CSXS/manifest.xml ='));
Note that basePath is a property of CSExtension.
Hope that helps,
-Louis
-
I was doing some photo editing and to my surprise some of my images are copied into the file of hundreds of times. How should I do
I was doing some photo editing and to my surprise some of my images are copied into the file of hundreds of times. How should I do
==============================================
Unwanted copies have file names with
copy "prefix of"?Example: Copy of IMG_1455.JPG
If_yes_maybe the following tutorial, I wrote
for XP offers a few ideas:Also... There is a link to another method
at the end of this tutorial.Here's how to reproduce the unwanted
copy of...Hold down your CTRL key and select multiple files...
Place your pointer over the selected group
(holding the key ctrl) and left click / drag
the group even just the slightest bit... now
release the mouse button.Oooops... multiple copies...
Maybe the following will help:
Sometimes most of the person who
trying to select multiple by holding the CTRL
or the SHIFT key down while clicking on the left to select the
image files.Copies are created when you are unable to
completely release the mouse button before
you move the pointer to another file. When a group
the selected file is dragged... even the slightest
release the mouse button will produce a bit...
copies of all the files previously highlighted.It's a little easier if you have your folder
Options set at single click... that way you can
select/deselect a file with just a mouse more
and you don't have to click. For multiples you
I have to keep... CTRL or Shift.Do not click on... no slip... no copy... maybe that of
your solution. To adjust the click...
Open a folder and go... Tools / folder
Options / General tab... Check... 'single click '.
To open an item"/ apply / OK.If you want to delete all the files in a folder
You can try the following:Reach... Edition / select all... or type... CTRL / has...
With all of the files selected... go... Drop / delete...
or press your delete key... or... click on the
Group and choose 'delete '.How do I find and remove unwanted 'copies '.
of your image files.Open the folder that the images are saved in and
on the left, click on the button 'Search' in your toolbar.(If you view the files from a montage
program and do not know where the record is... right
Click on one of the image files and the menu...
choose... Properties. The path to the folder will be
in the tab 'General' to 'Place').In the research pane select... "All files and folders".
In the "All or part of the file name" field. Come in...
a copy of
Now... on the left, click on the search"" button.
When the search is complete... go to... Edition / select all...
Then go to... Remove / delete.
You will see a dialog box asking if you are sure
you want to delete the files, click Yes.Now... on the left, click on the 'Back' button in your toolbar.
Now the remaining files should be your originals.
If you delete the wrong files... recover from
your basket now.Also see the following article:
Trouble fixing: stop Windows copy
Files accidentally when Ctrl-click selecting
http://www.howtogeek.com/HOWTO/Windows-Vista/fixing-annoyances-stop-Windows-from-copying-files-accidentally-when-CTRL-click-selecting/ -
Just as the topic says I can't activate my windows after I reformatted my dell to get all the * off of it that I don't need.
Skip entering your product key Windows 7 and complete the installation.
When you reach the desktop, click Start, right-click on computer
Click on properties
Scroll down to the Windows Activation
Click the link x days before activation.
Click on the link that says: "show me other ways to activate.
Enter the product key
Click next
Select the Activation of the phone
Click Next when you enter your key page
Select your country
Click Next, call the number listed
Be sure to explain your situation to the Appeals Officer.
Provide the installation generated when ID requested by the call agent
They give a confirmation ID in return, enter it
Click next to complete the activation.
or
How to activate Windows 7 manually (activate by phone)
1) click Start and in the search for box type: slui.exe 4
(2) press the ENTER"" key.
(3) select your "country" in the list.
(4) choose the option "activate phone".
(5) stay on the phone (do not select/press all options) and wait for a person to help you with the activation.
(6) explain your problem clearly to the support person.
http://support.Microsoft.com/kb/950929/en-us -
When will an update of lightning that works with Thunderbird v31.0 beta come out?
I used Thunderbird beta v 30 with 3.2b1 of lightning and it was working fine. V31 Thunderbird has been released and updated automatically. Add-ons - are set to "auto update". All calendar is now grayed out, and nothing works. I searched downloads of lightning and concluded that Lightning 3.2b1 is the most recent version was available, and it's lightning 3.2b1 States for "Thunderbird 30.0 and later. Obviously, lightning 3.2b1 does not work with Thunderbird v31.
Two things:
1. I recommend that updates of lightning will come out before the publication of beta of Thunderbird updates so that your testers who use the Lightning extension have the capacity they had before updates Thunderbird, and
2. a) be a notice sent with beta versions updated to Thunderbird, that States will they interface properly with the currently installed version of lightning, and/or b) the update should not automatically update if it detects an add-on installed lightning with which it is incompatible and require the user to decide if the user wants to proceed with the update and lose functionality.According to this site, you'll need lightning 3.3b1, which you can find here:
FTP://FTP.Mozilla.org/pub/calendar/lightning/candidates/3.3B1-candidates/
-
Digest the lag when running during the generation of the ant script
I'm tying all libraries referenced by my Flex as RSL project. When I do this through Flex Builder seems to work. When I try to do it via an Ant build script to the mxmlc task the build succeeds (everything compiles) but when running, I get error #1001 Flex: mismatch with RSL Digest for datavisualization.swc. Not sure why I make this especially since I specify datavisualization.swf in the rsl url not a swz file. Both methods give the same set of swf, SWC, and swz files in the deployment folder. I can't understand what is different between the two build processes after comparing the .actionScriptProperties with the ant script. Can anyone help to shed light on this or help me understand how push wrong with that? Thank you.
My task as mxmlx:
< mxmlc
file = "${Flex.main.file}" "
output = "${Flex.output.swf}" "
ActionScript-file-encoding = 'UTF-8 '.
Keep-generated-actionscript = "false".
link-TIME-shared-library static = "false".
local = "en_US."
MaxMemory = "256 m" >
< path-element source-path = "${PROJECT_FRAMEWORKS}" / >
< dir external-library-path = "${PROJECT_FRAMEWORKS} / libs/player" includes = "playerglobal.swc" / >"< path-element="${PROJECT_FRAMEWORKS}/libs/framework.swc DURATION-shared-library-path ">
< url rsl - url = ' framework_$ {FLEX_BUILD} .swf ".
< url rsl - url = ' framework_$ {FLEX_BUILD} .swz "/ >
< / DURATION-shared-library-path >
"< path-element="${PROJECT_FRAMEWORKS}/libs/rpc.swc DURATION-shared-library-path ">
< url rsl - url = "rpc_$ {FLEX_BUILD} .swf" / >
< url rsl - url = "rpc_$ {FLEX_BUILD} .swz" / >
< / DURATION-shared-library-path >
< runtime-shared-library-path
Path-Element="${PROJECT_FRAMEWORKS}/libs/Automation.swc" >
< url rsl - url = "automation.swf" / >
< / DURATION-shared-library-path >
< runtime-shared-library-path
Path-Element="${PROJECT_FRAMEWORKS}/libs/automation_agent.swc" >
< url rsl - url = "automation_agent.swf" / >
< / DURATION-shared-library-path >
< runtime-shared-library-path
Path-Element="${PROJECT_FRAMEWORKS}/libs/automation_dmv.swc" >
< url rsl - url = "automation_dmv.swf" / >
< / DURATION-shared-library-path >
< runtime-shared-library-path
Path-Element="${PROJECT_FRAMEWORKS}/libs/automation_flashflexkit.swc" >
< url rsl - url = "automation_flashflexkit.swf" / >
< / DURATION-shared-library-path >
< runtime-shared-library-path
Path-Element="${PROJECT_FRAMEWORKS}/libs/DataVisualization.swc" >
< url rsl - url = "datavisualization.swf" / >
< / DURATION-shared-library-path >
< runtime-shared-library-path
Path-Element="${PROJECT_FRAMEWORKS}/libs/Flex.swc" >
< url rsl - url = "flex.swf" / >
< / DURATION-shared-library-path >< runtime-shared-library-path
Path-Element="${PROJECT_FRAMEWORKS}/libs/qtp.swc" >
< url rsl - url = "qtp.swf" / >
< / DURATION-shared-library-path >
< runtime-shared-library-path
Path-Element="${PROJECT_FRAMEWORKS}/libs/Utilities.swc" >
< url rsl - url = "utilities.swf" / >
< / DURATION-shared-library-path >
< compile .library-path dir = "${PROJECT_FRAMEWORKS}" / locale ' append = "true" > "
< name = "{local}" / >
< / compile .library-path >
...
< default width = "500" height = "600" / >
< / mxmlc >I didn't write the patch, but I just took a quick glance. I think that the "url" element has been renamed to "rsl - url" and new elements have been added as "failover-url". You can try to match this new syntax, but I don't think that this patch will be agreed due to rename it.
-Darrell
-
error 7: when running EXE
Hello
I am getting below error when running exe. But when running in the development environment, it works fine. Help, please
Reference VI opened in PRJA2871_Firmware_LoadVI.vi:70002-> PRJA2871_Firmware_Parameter Download.vi-> PRJA2871_MCRL main Screen.vi
Path of the VI: test\EXE\MCRL_VCR\MCRL C:\LabVIEW new Code\Code VCR.exe\Ethernet\PRJA2871_Download_Ethernet.vi V2.1Built Application or shared library (DLL): ensure that all loaded screws dynamically were correctly included in the specification for the application or a shared library build.
LabVIEW Real-time: screw built into executables are not accessible via VI Server calls. Use the Source Distributions dynamically call screws on real-time targets.
Hi James,
In fact, it was my mistake. I used a VI for the purpose of debugging. But that VI was not within the project. That's why he was throwing the error
-
Why no sound when running in safe mode?
When running safe mode there is no sound with any video on...
Most of the drivers / services does not work in safe mode. His Inc.
-
Procedure failed when using bulk collect clause and works with the cursor
Hi all
I use "BULK collect into" clause in my procedure and it is a failure after 21 minutes and gives the error "end of file communication channel.
After that this error comes when I tried to connect the database it gives following error.
ORA-01034 - Oracle is not available.
ORA - 27101-shared memory realm does not exist.
SVR4 error: 2: no such file or directory.
When I use the cursor instead of the COLLECTION in BULK IN the clause, it runs successfully.
Following the code works with the slider.
procedure work_kiosk_full (an_jobid in number, ac_sqlcode out varchar2, ac_sqlerrm out varchar2) is
ld_curr_time Date;
cursor cur_work_kiosk is
Select distinct jt.jt_id AS jt_id,
NVL ((ROUND ((jt_date_completed-jt_date_requested) * 24, 2)))
),
0
) AS actual_hrs_to_complete,
NVL ((ROUND ((jt_date_responded-jt_date_requested) * 24, 2)))
),
0
) AS actual_hrs_to_respond,
peo1.peo_name AS agent_name,
peo1.peo_user_name AS asagent_soe_id,
Le.lglent_desc AS ap_system,
"" AS assign_work_request_comment,
DECODE (jt.jt_bill_id,
138802, 'BILLABLE CLIENT. "
138803, "CONTRACTED"
"138804, ' BILLABLE IN-HOUSE."
NULL, ' '
) Billable.
BL.bldg_name_cc BUILDING, bl.bldg_id_ls AS building_id,
DECODE (bl.bldg_active_cc,
'Y', 'ACTIVE',
'INACTIVE '.
) AS building_status,
DECODE (jt.jt_wrk_cause_id,
141521, "STANDARD WEAR."
141522, "NEGLIGENCE."
141523, "ACCIDENTAL."
141524, "MECHANICAL FAILURE."
141525, "CONTROL."
141526, "VANDAL."
141527, 'STANDARD ',.
141528, "WORK PROJECT",.
6058229, "TEST."
NULL, ' '
) AS cause_type,
' ' AS comments, peo3.peo_name AS completed_by,
JT.jt_requestor_email AS contact_email,
JT.jt_requestor_name_first
|| ' '
|| JT.jt_requestor_name_last AS contact_name,
JT.jt_requestor_phone AS contact_phone,
CC.cstctrcd_apcode AS corp_code,
CC.cstctrcd_code AS cost_center,
JT.jt_date_closed AS date_closed,
JT.jt_date_completed AS date_completed,
JT.jt_date_requested AS date_requested,
JT.jt_date_responded AS date_responded,
JT.jt_date_response_ecd AS date_response_ecd,
JT.jt_date_scheduled AS date_scheduled,
DECODE (jt.jt_def_id,
139949, "WTG VENDOR RESPONSE."
139950, "WAITING ON PARTS."
139951, "AVAILABILITY OF THE HAND ŒUVRE."
139952, "WORK DEFERRED-HI PRI."
139953, "APPROVAL OF WIND TURBINES."
139954, "FUNDING."
139955, "ACCESS DENIED."
139956, "WTG MATERIAL."
NULL, ' '
) AS deferral_reason,
JT.jt_description as description,
JT.jt_date_resched_ecd IN the development of the young child,
FMG.facility_manager AS facility_manager,
FL.floors_text AS FLOOR, gl.genled_desc AS general_ledger,
'' AS kiosk_date_requested,' ' AS kiosk_dispatch_confirmed.
"" AS kiosk_dispatched,
EQP.equip_customer_code AS linked_equipment_alias,
EQP.equip_id AS linked_equipment_id,
EQP.equip_text AS linked_equipment_name,
DECODE (jt_originator_type_id,
1000, "PROJECT MOVE REQUEST."
138834, "CUSTOMER OPEN CORRECTION."
138835, "OPEN REQUEST CUSTOMER."
138836, "CORRECTIVE MAINTENANCE",.
138837, "BOOKING CONFERENCE ROOM."
138838, "PROJECT INITIATED REQUEST."
138839, "PLANNED PREVENTATIVE MAINTENANCE."
138840, "COULD START FREE APPLICATION."
NULL, ' '
) AS originator_type,
"" AS payment_terms, priority_text AS priority_code,
swoty.sworktype_text AS problem_type,
Prop.property_name_cc as a property,
JT.jt_cost_quote_total AS quote_total,
par.levels_name IN the region,
DECODE (jt.jt_repdef_id,
141534, 'ADJUSTED SETTING. "
141535, "THE TRAINING OF THE END,"
141536, "NEW REQUEST"
141537, "NO INVESTIGATION OF REPAIR."
141538 "REPLACED PARTS."
141539, 'REPLACE EQUIPMEN.
1000699, "NEW REQUEST"
NULL, ' '
) AS repair_definitions,
JT.jt_repairdesc AS MARKED_COR,
JT.jt_requestor AS applicant, ' ' AS requestor_cost_center.
JT.jt_requestor_email AS requestor_email,
JT.jt_requestor_name_first AS requestor_name,
JT.jt_requestor_phone AS requestor_phone,
"" LIKE response_time, rm.room_name_cc ROOM,
P1.peo_provider_code1 AS service_provider,
P1.peo_address_1 AS service_provider_address,
peocity.city_text service_provider_city,
P1.peo_provider_code1 AS service_provider_code,
peocity.city_country_name AS service_provider_country,
peocur.currency_text AS service_provider_currency,
P1.peo_name AS service_provider_description,
P1.peo_dispatch_method AS serv_prov_dispatc_hmethod,
P1.peo_rate_double AS serv_prov_double_time_rate,
P1.peo_email AS service_provider_email,
P1.peo_emergency_phone AS serv_prov_emergency_phone,
P1.peo_fax AS service_provider_fax_number,
P1.peo_home_phone AS service_provider_home_phone,
P1.peo_rate_hourly AS service_provider_hourly_rate,
P1.peo_title AS service_provider_job_title,
P1.peo_method_id AS service_provider_method,
P1.peo_cell_phone AS service_provider_mobile_phone,
P1.peo_pager AS service_provider_pager,
P1.peo_rate_differential AS service_provider_rates,
P1.peo_rate_differential AS ser_prov_shift_differential,
peocity.city_state_prov_text AS serv_prov_state_province,
DECODE (p1.peo_active,
'Y', 'ACTIVE',
'INACTIVE '.
) AS service_provider_status,
P1.peo_url AS serv_prov_web_site_address,
P1.peo_phone AS service_provider_work_phone,
P1.peo_postal_code AS serv_prov_zip_postal_code, ' ' shift, as.
' ' AS skill,.
DECODE (jt.jt_bigstatus_id,
138813, «NEWS»,
138814 "PENDING."
138815, 'OPEN ',.
138816, "END."
138817, 'CLOSED ',.
138818, "CANCELLED."
NULL, ' '
) The STATUS,
Lev.levels_name IN the subregion, ' ' IN the trade.
P1.peo_ls_interface_code1 AS vendor_id,
P1.peo_fax AS vendor_purchasing_fax,
P1.peo_vendor_site_code AS vendor_sitecode,
JT.jt_id AS vendor_ticket, p1.peo_name AS vendor_companyname,
JT.jt_requestor_vip AS vip, wo.wo_id AS work_order_no,
JT.jt_id AS work_request,
JT.jt_class_id AS work_request_class,
woty.worktype_text AS work_type, ' ' AS wr_cost.
JT.jt_description AS wr_description,
"" AS wr_dispatch_method,
DECODE (jt.jt_bigstatus_id,
138813, «NEWS»,
138814 "PENDING."
138815, 'OPEN ',.
138816, "END."
138817, 'CLOSED ',.
138818, "CANCELLED."
NULL, ' '
) AS wr_status,
ctrY.country_name as a country
OF citi.jobticket jt,.
Citi.Property prop,
Citi.Bldg bl,
Citi.bldg_levels bldglvl,
civil LEVEL lev,
civil by LEVELS.
(SELECT crstools.stragg (peo_name) facility_manager,
bldgcon_bldg_id
OF citi.bldg_contacts, citi.people
WHERE bldgcon_peo_id = peo_id
AND IN bldgcon_contype_id (40181, 10142)
FMG GROUP BY bldgcon_bldg_id),
Citi.floors, fl,
Citi.Room rm,
Citi.general_ledger gl,
the Citi.legal_entity
Citi.cost_center_codes cc,
Citi.Equipment eqp,
Citi.workType woty,
Citi.subworktype swoty,
Citi.work_order wo,
Jtwo Citi.jt_workers,
Citi.Priority,
Ctry Citi.Country,
Citi.People p1,
Citi.People peo3,
Citi.People peo1,
Citi.City peocity,
Citi.Currency peocur
WHERE jt.jt_bldg_id = bl.bldg_id
AND bl.bldg_id = bldglvl.bldg_levels_bldg_id
AND bldglvl.bldg_levels_levels_id = lev.levels_id
AND lev.levels_parent = par.levels_id (+)
AND prop.property_id = bl.bldg_property_id
AND bl.bldg_active_ls <>' n
AND jt.jt_floors_id = fl.floors_id (+)
AND jt.jt_room_id = rm.room_id (+)
AND jt.jt_bldg_id = fmg.bldgcon_bldg_id (+)
AND jt.jt_genled_id = gl.genled_id (+)
AND gl.genled_lglent_id = le.lglent_id (+)
AND jt.jt_cstctrcd_id = cc.cstctrcd_id (+)
AND jt.jt_equip_id = eqp.equip_id (+)
AND jt.jt_id = jtwo.jtw_jt_id (+)
AND jt.jt_worktype_id = woty.worktype_id (+)
AND jt.jt_sworktype_id = swoty.sworktype_id (+)
AND jt.jt_wo_id = wo.wo_id
AND jt.jt_priority_id = priority_id (+)
- AND jt.jt_date_requested > = ADD_MONTHS (SYSDATE,-12)
AND jt.jt_last_update > = ADD_MONTHS (ld_curr_time-12)
AND bl.bldg_country_id = ctry.country_id
AND jtwo.jtw_peo_id = p1.peo_id (+)
AND p1.peo_city_id = peocity.city_id (+)
AND jt.jt_completed_by_peo_id = peo3.peo_id (+)
AND p1.peo_rate_currency_id = peocur.currency_id (+)
AND jt.jt_agent_peo_id = peo1.peo_id (+);
BEGIN
run immediately 'truncate table crstools.drt_bom_work_kiosk;
Select sysdate in double ld_curr_time;
FOR cur_rec in cur_work_kiosk LOOP
IF MOD (cur_work_kiosk % rowcount, 10000) = 0 then
COMMIT;
END IF;
INSERT INTO crstools.drt_bom_work_kiosk
(JT_ID
ACTUAL_HRS_TO_COMPLETE
ACTUAL_HRS_TO_RESPOND
AGENT_NAME
ASAGENT_SOE_ID
AP_SYSTEM
ASSIGN_WORK_REQUEST_COMMENT
BILLABLE
BUILDING
BUILDING_ID
BUILDING_STATUS
CAUSE_TYPE
COMMENTS
COMPLETED_BY
CONTACT_EMAIL
CONTACT_NAME
CONTACT_PHONE
CORP_CODE
COST_CENTER
DATE_CLOSED
DATE_COMPLETED
DATE_REQUESTED
DATE_RESPONDED
DATE_RESPONSE_ECD
DATE_SCHEDULED
DEFERRAL_REASON
DESCRIPTION
DPE
FACILITY_MANAGER
FLOOR
GENERAL_LEDGER
KIOSK_DATE_REQUESTED
KIOSK_DISPATCH_CONFIRMED
KIOSK_DISPATCHED
LINKED_EQUIPMENT_ALIAS
LINKED_EQUIPMENT_ID
LINKED_EQUIPMENT_NAME
ORIGINATOR_TYPE
PAYMENT_TERMS
PRIORITY_CODE
PROBLEM_TYPE
PROPERTY
QUOTE_TOTAL
REGION
REPAIR_DEFINITIONS
MARKED_COR
APPLICANT
REQUESTOR_COST_CENTER
REQUESTOR_EMAIL
REQUESTOR_NAME
REQUESTOR_PHONE
RESPONSE_TIME
ROOM
SERVICE_PROVIDER
SERVICE_PROVIDER_ADDRESS
SERVICE_PROVIDER_CITY
SERVICE_PROVIDER_CODE
SERVICE_PROVIDER_COUNTRY
SERVICE_PROVIDER_CURRENCY
SERVICE_PROVIDER_DESCRIPTION
SERV_PROV_DISPATC_HMETHOD
SERV_PROV_DOUBLE_TIME_RATE
SERVICE_PROVIDER_EMAIL
SERV_PROV_EMERGENCY_PHONE
SERVICE_PROVIDER_FAX_NUMBER
SERVICE_PROVIDER_HOME_PHONE
SERVICE_PROVIDER_HOURLY_RATE
SERVICE_PROVIDER_JOB_TITLE
SERVICE_PROVIDER_METHOD
SERVICE_PROVIDER_MOBILE_PHONE
SERVICE_PROVIDER_PAGER
SERVICE_PROVIDER_RATES
SER_PROV_SHIFT_DIFFERENTIAL
SERV_PROV_STATE_PROVINCE
SERVICE_PROVIDER_STATUS
SERV_PROV_WEB_SITE_ADDRESS
SERVICE_PROVIDER_WORK_PHONE
SERV_PROV_ZIP_POSTAL_CODE
MAJ
SKILLS
STATUS
SUBREGION
TRADE
VENDOR_ID
VENDOR_PURCHASING_FAX
VENDOR_SITECODE
VENDOR_TICKET
VENDOR_COMPANYNAME
VIP
WORK_ORDER_NO
WORK_REQUEST
WORK_REQUEST_CLASS
WORK_TYPE
WR_COST
WR_DESCRIPTION
WR_DISPATCH_METHOD
WR_STATUS
COUNTRY
CREATE_DATE
)
VALUES
(cur_rec.jt_id
cur_rec, ACTUAL_HRS_TO_COMPLETE
cur_rec, ACTUAL_HRS_TO_RESPOND
cur_rec, AGENT_NAME
cur_rec, ASAGENT_SOE_ID
cur_rec, AP_SYSTEM
cur_rec, ASSIGN_WORK_REQUEST_COMMENT
BILLABLE cur_rec.
cur_rec, BUILDING
cur_rec, BUILDING_ID
cur_rec, BUILDING_STATUS
cur_rec, CAUSE_TYPE
cur_rec.COMMENTS
cur_rec.COMPLETED_BY
cur_rec, CONTACT_EMAIL
cur_rec, CONTACT_NAME
cur_rec, CONTACT_PHONE
cur_rec, CORP_CODE
cur_rec, COST_CENTER
cur_rec, DATE_CLOSED
cur_rec, DATE_COMPLETED
cur_rec, DATE_REQUESTED
cur_rec, DATE_RESPONDED
cur_rec, DATE_RESPONSE_ECD
cur_rec, DATE_SCHEDULED
cur_rec, DEFERRAL_REASON
cur_rec, DESCRIPTION
cur_rec, DEVELOPMENT OF THE YOUNG CHILD
cur_rec, FACILITY_MANAGER
cur_rec, FLOOR
cur_rec, GENERAL_LEDGER
cur_rec, KIOSK_DATE_REQUESTED
cur_rec, KIOSK_DISPATCH_CONFIRMED
cur_rec, KIOSK_DISPATCHED
cur_rec, LINKED_EQUIPMENT_ALIAS
cur_rec, LINKED_EQUIPMENT_ID
cur_rec, LINKED_EQUIPMENT_NAME
cur_rec, ORIGINATOR_TYPE
cur_rec, PAYMENT_TERMS
cur_rec, PRIORITY_CODE
cur_rec, PROBLEM_TYPE
cur_rec, PROPERTY
cur_rec, QUOTE_TOTAL
cur_rec, REGION
cur_rec, REPAIR_DEFINITIONS
cur_rec, MARKED_COR
cur_rec, APPLICANT
cur_rec, REQUESTOR_COST_CENTER
cur_rec, REQUESTOR_EMAIL
cur_rec, REQUESTOR_NAME
cur_rec, REQUESTOR_PHONE
cur_rec, RESPONSE_TIME
cur_rec, ROOM
cur_rec, SERVICE_PROVIDER
cur_rec, SERVICE_PROVIDER_ADDRESS
cur_rec, SERVICE_PROVIDER_CITY
cur_rec, SERVICE_PROVIDER_CODE
cur_rec, SERVICE_PROVIDER_COUNTRY
cur_rec, SERVICE_PROVIDER_CURRENCY
cur_rec, SERVICE_PROVIDER_DESCRIPTION
cur_rec, SERV_PROV_DISPATC_HMETHOD
cur_rec, SERV_PROV_DOUBLE_TIME_RATE
cur_rec, SERVICE_PROVIDER_EMAIL
cur_rec, SERV_PROV_EMERGENCY_PHONE
cur_rec, SERVICE_PROVIDER_FAX_NUMBER
cur_rec, SERVICE_PROVIDER_HOME_PHONE
cur_rec, SERVICE_PROVIDER_HOURLY_RATE
cur_rec, SERVICE_PROVIDER_JOB_TITLE
cur_rec, SERVICE_PROVIDER_METHOD
cur_rec, SERVICE_PROVIDER_MOBILE_PHONE
cur_rec, SERVICE_PROVIDER_PAGER
cur_rec, SERVICE_PROVIDER_RATES
cur_rec, SER_PROV_SHIFT_DIFFERENTIAL
cur_rec, SERV_PROV_STATE_PROVINCE
cur_rec, SERVICE_PROVIDER_STATUS
cur_rec, SERV_PROV_WEB_SITE_ADDRESS
cur_rec, SERVICE_PROVIDER_WORK_PHONE
cur_rec, SERV_PROV_ZIP_POSTAL_CODE
cur_rec, UPDATE
cur_rec SKILL.
cur_rec, STATUS
cur_rec subregion.
cur_rec, TRADE
cur_rec, VENDOR_ID
cur_rec, VENDOR_PURCHASING_FAX
cur_rec, VENDOR_SITECODE
cur_rec, VENDOR_TICKET
cur_rec, VENDOR_COMPANYNAME
cur_rec, VIP
cur_rec, WORK_ORDER_NO
cur_rec, WORK_REQUEST
cur_rec, WORK_REQUEST_CLASS
cur_rec, WORK_TYPE
cur_rec, WR_COST
cur_rec, WR_DESCRIPTION
cur_rec, WR_DISPATCH_METHOD
cur_rec, WR_STATUS
cur_rec, COUNTRY
ld_curr_time
);
END LOOP;
COMMIT;
exception
while others then
Rollback;
dbms_output.put_line('SQLCODE:'||) SQLCODE. "Error :'|| SQLERRM);
end work_kiosk_full;
Note: total record inserted 849000.
The same code does not work with big collect in would adopt.
Please help me why this is happening.
Thanks and greetings
Shyam ~.Shyam,
I agree with Billy.
Why are you not using an INSERT..SELECT ? Also, what are you trying to achieve by - incremental commits? - copying data from one table to another (using expensive I/O)? - using dynamic DML? Most of these approaches are typically wrong - and not recommended for scalable and performant Oracle applications.
I could see you using a CURSOR for LOOP if you change the data inserted so that you could not encapsulate the changes in a query, but you do an insert in right in the table of your cursor. A much more effective way would be to use the following changes I made to your code sample:
PROCEDURE WORK_KIOSK_FULL(AN_JOBID IN NUMBER, AC_SQLCODE OUT VARCHAR2, AC_SQLERRM OUT VARCHAR2) IS BEGIN EXECUTE IMMEDIATE 'truncate table crstools.drt_bom_work_kiosk'; /* Note: The APPEND hint forces a Direct Path INSERT (see Link below code sample) and is combined with the NOLOGGING Hint */ /* To dramtically increase performance. The Direct Path INSERT inserts records above the High-Water Mark on the table. */ INSERT /*+ APPEND NOLOGGING */ INTO CRSTOOLS.DRT_BOM_WORK_KIOSK (JT_ID ,ACTUAL_HRS_TO_COMPLETE ,ACTUAL_HRS_TO_RESPOND ,AGENT_NAME ,ASAGENT_SOE_ID ,AP_SYSTEM -- ,ASSIGN_WORK_REQUEST_COMMENT /* I commented out this COLUMN because it doesn't make sense to me to insert */ ,BILLABLE /* a couple of space characters into a table. If the intent is to leave the column NULL */ ,BUILDING /* don't include it in your INSERT statement and it will be NULL. If there is a valid reason */ ,BUILDING_ID /* for inserting the spaces, then remove the "line comments" from the insert and select statments */ ,BUILDING_STATUS ,CAUSE_TYPE -- ,COMMENTS ,COMPLETED_BY ,CONTACT_EMAIL ,CONTACT_NAME ,CONTACT_PHONE ,CORP_CODE ,COST_CENTER ,DATE_CLOSED ,DATE_COMPLETED ,DATE_REQUESTED ,DATE_RESPONDED ,DATE_RESPONSE_ECD ,DATE_SCHEDULED ,DEFERRAL_REASON ,DESCRIPTION ,ECD ,FACILITY_MANAGER ,FLOOR ,GENERAL_LEDGER -- ,KIOSK_DATE_REQUESTED -- ,KIOSK_DISPATCH_CONFIRMED -- ,KIOSK_DISPATCHED ,LINKED_EQUIPMENT_ALIAS ,LINKED_EQUIPMENT_ID ,LINKED_EQUIPMENT_NAME ,ORIGINATOR_TYPE -- ,PAYMENT_TERMS ,PRIORITY_CODE ,PROBLEM_TYPE ,PROPERTY ,QUOTE_TOTAL ,REGION ,REPAIR_DEFINITIONS ,REPAIR_DESCRIPTION ,REQUESTOR -- ,REQUESTOR_COST_CENTER ,REQUESTOR_EMAIL ,REQUESTOR_NAME ,REQUESTOR_PHONE -- ,RESPONSE_TIME ,ROOM ,SERVICE_PROVIDER ,SERVICE_PROVIDER_ADDRESS ,SERVICE_PROVIDER_CITY ,SERVICE_PROVIDER_CODE ,SERVICE_PROVIDER_COUNTRY ,SERVICE_PROVIDER_CURRENCY ,SERVICE_PROVIDER_DESCRIPTION ,SERV_PROV_DISPATC_HMETHOD ,SERV_PROV_DOUBLE_TIME_RATE ,SERVICE_PROVIDER_EMAIL ,SERV_PROV_EMERGENCY_PHONE ,SERVICE_PROVIDER_FAX_NUMBER ,SERVICE_PROVIDER_HOME_PHONE ,SERVICE_PROVIDER_HOURLY_RATE ,SERVICE_PROVIDER_JOB_TITLE ,SERVICE_PROVIDER_METHOD ,SERVICE_PROVIDER_MOBILE_PHONE ,SERVICE_PROVIDER_PAGER ,SERVICE_PROVIDER_RATES ,SER_PROV_SHIFT_DIFFERENTIAL ,SERV_PROV_STATE_PROVINCE ,SERVICE_PROVIDER_STATUS ,SERV_PROV_WEB_SITE_ADDRESS ,SERVICE_PROVIDER_WORK_PHONE ,SERV_PROV_ZIP_POSTAL_CODE -- ,SHIFT -- ,SKILL ,STATUS ,SUBREGION -- ,TRADE ,VENDOR_ID ,VENDOR_PURCHASING_FAX ,VENDOR_SITECODE ,VENDOR_TICKET ,VENDOR_COMPANYNAME ,VIP ,WORK_ORDER_NO ,WORK_REQUEST ,WORK_REQUEST_CLASS ,WORK_TYPE -- ,WR_COST ,WR_DESCRIPTION -- ,WR_DISPATCH_METHOD ,WR_STATUS ,COUNTRY ,CREATE_DATE ) VALUES (SELECT DISTINCT JT.JT_ID AS JT_ID ,NVL((ROUND((JT_DATE_COMPLETED - JT_DATE_REQUESTED) * 24,2)),0) AS ACTUAL_HRS_TO_COMPLETE ,NVL((ROUND((JT_DATE_RESPONDED - JT_DATE_REQUESTED) * 24,2)),0) AS ACTUAL_HRS_TO_RESPOND ,PEO1.PEO_NAME AS AGENT_NAME ,PEO1.PEO_USER_NAME AS ASAGENT_SOE_ID ,LE.LGLENT_DESC AS AP_SYSTEM -- ,' ' AS ASSIGN_WORK_REQUEST_COMMENT ,DECODE(JT.JT_BILL_ID,138802,'CLIENT BILLABLE' ,138803,'CONTRACTED' ,138804,'INTERNAL BILLABLE',NULL,' ') AS BILLABLE ,BL.BLDG_NAME_CC AS BUILDING ,BL.BLDG_ID_LS AS BUILDING_ID ,DECODE(BL.BLDG_ACTIVE_CC, 'Y', 'ACTIVE', 'INACTIVE') AS BUILDING_STATUS ,DECODE(JT.JT_WRK_CAUSE_ID,141521,'STANDARD WEAR AND TEAR' ,141522,'NEGLIGENCE' ,141523,'ACCIDENTAL' ,141524,'MECHANICAL MALFUNCTION' ,141525,'OVERSIGHT' ,141526,'VANDAL' ,141527,'STANDARD' ,141528,'PROJECT WORK' ,6058229,'TEST',NULL,' ') AS CAUSE_TYPE -- ,' ' AS COMMENTS ,PEO3.PEO_NAME AS COMPLETED_BY ,JT.JT_REQUESTOR_EMAIL AS CONTACT_EMAIL ,JT.JT_REQUESTOR_NAME_FIRST || ' ' ||JT.JT_REQUESTOR_NAME_LAST AS CONTACT_NAME ,JT.JT_REQUESTOR_PHONE AS CONTACT_PHONE ,CC.CSTCTRCD_APCODE AS CORP_CODE ,CC.CSTCTRCD_CODE AS COST_CENTER ,JT.JT_DATE_CLOSED AS DATE_CLOSED ,JT.JT_DATE_COMPLETED AS DATE_COMPLETED ,JT.JT_DATE_REQUESTED AS DATE_REQUESTED ,JT.JT_DATE_RESPONDED AS DATE_RESPONDED ,JT.JT_DATE_RESPONSE_ECD AS DATE_RESPONSE_ECD ,JT.JT_DATE_SCHEDULED AS DATE_SCHEDULED ,DECODE(JT.JT_DEF_ID,139949,'WTG VENDOR RESPONSE' ,139950,'WAITING ON PARTS' ,139951,'LABOR AVAILABILITY' ,139952,'DEFERRED- HI PRI WORK' ,139953,'WTG APPROVAL' ,139954,'FUNDING REQUIRED' ,139955,'ACCESS DENIED' ,139956,'WTG MATERIAL',NULL,' ') AS DEFERRAL_REASON ,JT.JT_DESCRIPTION AS DESCRIPTION ,JT.JT_DATE_RESCHED_ECD AS ECD ,FMG.FACILITY_MANAGER AS FACILITY_MANAGER ,FL.FLOORS_TEXT AS FLOOR ,GL.GENLED_DESC AS GENERAL_LEDGER -- ,' ' AS KIOSK_DATE_REQUESTED -- ,' ' AS KIOSK_DISPATCH_CONFIRMED -- ,' ' AS KIOSK_DISPATCHED ,EQP.EQUIP_CUSTOMER_CODE AS LINKED_EQUIPMENT_ALIAS ,EQP.EQUIP_ID AS LINKED_EQUIPMENT_ID ,EQP.EQUIP_TEXT AS LINKED_EQUIPMENT_NAME ,DECODE(JT_ORIGINATOR_TYPE_ID,1000,'PROJECT MOVE REQUEST' ,138834,'CUSTOMER INITIATED CORRECTION' ,138835,'CUSTOMER INITIATED REQUEST' ,138836,'CORRECTIVE MAINTENANCE' ,138837,'CONFERENCE ROOM BOOKING' ,138838,'PROJECT INITIATED REQUEST' ,138839,'PLANNED PREVENTIVE MAINTENANCE' ,138840,'SELF INITATED REQUEST',NULL,' ') AS ORIGINATOR_TYPE -- ,' ' AS PAYMENT_TERMS ,PRIORITY_TEXT AS PRIORITY_CODE ,SWOTY.SWORKTYPE_TEXT AS PROBLEM_TYPE ,PROP.PROPERTY_NAME_CC AS PROPERTY ,JT.JT_COST_QUOTE_TOTAL AS QUOTE_TOTAL ,PAR.LEVELS_NAME AS REGION ,DECODE(JT.JT_REPDEF_ID,141534,'ADJUSTED SETTING' ,141535,'TRAINING FOR END' ,141536,'NEW REQUEST' ,141537,'NO REPAIR REQUIR' ,141538,'REPLACED PARTS' ,141539,'REPLACE EQUIPMEN' ,1000699,'NEW REQUEST',NULL,' ') AS REPAIR_DEFINITIONS ,JT.JT_REPAIRDESC AS REPAIR_DESCRIPTION ,JT.JT_REQUESTOR AS REQUESTOR -- ,' ' AS REQUESTOR_COST_CENTER ,JT.JT_REQUESTOR_EMAIL AS REQUESTOR_EMAIL ,JT.JT_REQUESTOR_NAME_FIRST AS REQUESTOR_NAME ,JT.JT_REQUESTOR_PHONE AS REQUESTOR_PHONE -- ,' ' AS RESPONSE_TIME ,RM.ROOM_NAME_CC AS ROOM ,P1.PEO_PROVIDER_CODE1 AS SERVICE_PROVIDER ,P1.PEO_ADDRESS_1 AS SERVICE_PROVIDER_ADDRESS ,PEOCITY.CITY_TEXT SERVICE_PROVIDER_CITY ,P1.PEO_PROVIDER_CODE1 AS SERVICE_PROVIDER_CODE ,PEOCITY.CITY_COUNTRY_NAME AS SERVICE_PROVIDER_COUNTRY ,PEOCUR.CURRENCY_TEXT AS SERVICE_PROVIDER_CURRENCY ,P1.PEO_NAME AS SERVICE_PROVIDER_DESCRIPTION ,P1.PEO_DISPATCH_METHOD AS SERV_PROV_DISPATC_HMETHOD ,P1.PEO_RATE_DOUBLE AS SERV_PROV_DOUBLE_TIME_RATE ,P1.PEO_EMAIL AS SERVICE_PROVIDER_EMAIL ,P1.PEO_EMERGENCY_PHONE AS SERV_PROV_EMERGENCY_PHONE ,P1.PEO_FAX AS SERVICE_PROVIDER_FAX_NUMBER ,P1.PEO_HOME_PHONE AS SERVICE_PROVIDER_HOME_PHONE ,P1.PEO_RATE_HOURLY AS SERVICE_PROVIDER_HOURLY_RATE ,P1.PEO_TITLE AS SERVICE_PROVIDER_JOB_TITLE ,P1.PEO_METHOD_ID AS SERVICE_PROVIDER_METHOD ,P1.PEO_CELL_PHONE AS SERVICE_PROVIDER_MOBILE_PHONE ,P1.PEO_PAGER AS SERVICE_PROVIDER_PAGER ,P1.PEO_RATE_DIFFERENTIAL AS SERVICE_PROVIDER_RATES ,P1.PEO_RATE_DIFFERENTIAL AS SER_PROV_SHIFT_DIFFERENTIAL ,PEOCITY.CITY_STATE_PROV_TEXT AS SERV_PROV_STATE_PROVINCE ,DECODE(P1.PEO_ACTIVE, 'Y', 'ACTIVE', 'INACTIVE') AS SERVICE_PROVIDER_STATUS ,P1.PEO_URL AS SERV_PROV_WEB_SITE_ADDRESS ,P1.PEO_PHONE AS SERVICE_PROVIDER_WORK_PHONE ,P1.PEO_POSTAL_CODE AS SERV_PROV_ZIP_POSTAL_CODE -- ,' ' AS SHIFT -- ,' ' AS SKILL ,DECODE(JT.JT_BIGSTATUS_ID,138813,'NEW' ,138814,'PENDING' ,138815,'OPEN' ,138816,'COMPLETED' ,138817,'CLOSED' ,138818,'CANCELLED',NULL,' ') AS STATUS ,LEV.LEVELS_NAME AS SUBREGION -- ,' ' AS TRADE ,P1.PEO_LS_INTERFACE_CODE1 AS VENDOR_ID ,P1.PEO_FAX AS VENDOR_PURCHASING_FAX ,P1.PEO_VENDOR_SITE_CODE AS VENDOR_SITECODE ,JT.JT_ID AS VENDOR_TICKET ,P1.PEO_NAME AS VENDOR_COMPANYNAME ,JT.JT_REQUESTOR_VIP AS VIP ,WO.WO_ID AS WORK_ORDER_NO ,JT.JT_ID AS WORK_REQUEST ,JT.JT_CLASS_ID AS WORK_REQUEST_CLASS ,WOTY.WORKTYPE_TEXT AS WORK_TYPE -- ,' ' AS WR_COST ,JT.JT_DESCRIPTION AS WR_DESCRIPTION -- ,' ' AS WR_DISPATCH_METHOD ,DECODE(JT.JT_BIGSTATUS_ID,138813,'NEW' ,138814,'PENDING' ,138815,'OPEN' ,138816,'COMPLETED' ,138817,'CLOSED' ,138818,'CANCELLED',NULL,' ') AS WR_STATUS ,CTRY.COUNTRY_NAME AS COUNTRY ,SYSDATE --LD_CURR_TIME FROM CITI.JOBTICKET JT, CITI.PROPERTY PROP, CITI.BLDG BL, CITI.BLDG_LEVELS BLDGLVL, CITI.LEVELS LEV, CITI.LEVELS PAR, (SELECT CRSTOOLS.STRAGG(PEO_NAME) FACILITY_MANAGER, BLDGCON_BLDG_ID FROM CITI.BLDG_CONTACTS, CITI.PEOPLE WHERE BLDGCON_PEO_ID = PEO_ID AND BLDGCON_CONTYPE_ID IN (40181, 10142) GROUP BY BLDGCON_BLDG_ID) FMG, CITI.FLOORS FL, CITI.ROOM RM, CITI.GENERAL_LEDGER GL, CITI.LEGAL_ENTITY LE, CITI.COST_CENTER_CODES CC, CITI.EQUIPMENT EQP, CITI.WORKTYPE WOTY, CITI.SUBWORKTYPE SWOTY, CITI.WORK_ORDER WO, CITI.JT_WORKERS JTWO, CITI.PRIORITY, CITI.COUNTRY CTRY, CITI.PEOPLE P1, CITI.PEOPLE PEO3, CITI.PEOPLE PEO1, CITI.CITY PEOCITY, CITI.CURRENCY PEOCUR WHERE JT.JT_BLDG_ID = BL.BLDG_ID AND BL.BLDG_ID = BLDGLVL.BLDG_LEVELS_BLDG_ID AND BLDGLVL.BLDG_LEVELS_LEVELS_ID = LEV.LEVELS_ID AND LEV.LEVELS_PARENT = PAR.LEVELS_ID(+) AND PROP.PROPERTY_ID = BL.BLDG_PROPERTY_ID AND BL.BLDG_ACTIVE_LS = 'N' AND JT.JT_FLOORS_ID = FL.FLOORS_ID(+) AND JT.JT_ROOM_ID = RM.ROOM_ID(+) AND JT.JT_BLDG_ID = FMG.BLDGCON_BLDG_ID(+) AND JT.JT_GENLED_ID = GL.GENLED_ID(+) AND GL.GENLED_LGLENT_ID = LE.LGLENT_ID(+) AND JT.JT_CSTCTRCD_ID = CC.CSTCTRCD_ID(+) AND JT.JT_EQUIP_ID = EQP.EQUIP_ID(+) AND JT.JT_ID = JTWO.JTW_JT_ID(+) AND JT.JT_WORKTYPE_ID = WOTY.WORKTYPE_ID(+) AND JT.JT_SWORKTYPE_ID = SWOTY.SWORKTYPE_ID(+) AND JT.JT_WO_ID = WO.WO_ID AND JT.JT_PRIORITY_ID = PRIORITY_ID(+) --AND jt.jt_date_requested >= ADD_MONTHS (SYSDATE, -12) AND JT.JT_LAST_UPDATE >= ADD_MONTHS(LD_CURR_TIME, -12) AND BL.BLDG_COUNTRY_ID = CTRY.COUNTRY_ID AND JTWO.JTW_PEO_ID = P1.PEO_ID(+) AND P1.PEO_CITY_ID = PEOCITY.CITY_ID(+) AND JT.JT_COMPLETED_BY_PEO_ID = PEO3.PEO_ID(+) AND P1.PEO_RATE_CURRENCY_ID = PEOCUR.CURRENCY_ID(+) AND JT.JT_AGENT_PEO_ID = PEO1.PEO_ID(+) ); COMMIT; EXCEPTION WHEN OTHERS THEN ROLLBACK; DBMS_OUTPUT.PUT_LINE('SQLCODE :' || SQLCODE || ' Error :' || SQLERRM); END WORK_KIOSK_FULL;
Here is the link for infor the [Oracle Direct - Path INSERT | http://download.oracle.com/docs/cd/B10501_01/server.920/a96524/c21dlins.htm#10778].
Also, if you are really wanting to use a CURSOR for LOOP COLLECTION in BULK, I suggest you read the article by Steven Feuerstein [PL/SQL practices: GEM VRAC | http://www.oracle.com/technology/oramag/oracle/08-mar/o28plsql.html].
I hope this helps.
Craig...If my response or response from another person was helpful, please mark accordingly
-
Go to sky
When using Sky go and try to watch movies or programs how do I get to run continuously without interruption and catch every few seconds.
The usual cause of this is that your broadband connection is not fast enough or you have multiple computers, try to use it at the same time.
This allows to check your speed broadband http://www.bbc.co.uk/iplayer/diagnostics#results
If the broadband speed does not seem to be the problem, please contact Sky
-
Hello
Try to re - install ZoneAlarm on laptop, BUT it tells me that I must upgrade to the Microsoft Windows Service Pack 1 (SP1) to do this... I am running Windows Vista and when I click on windows update it works for literally hours without anything happeneing.
Zone Alarm has a key valid license - but for some strange reason, he will not have, so I had to uninstall and reinstall ZoneAlarm - he tells me that I need this update - who will not come?
Note: Windows Firewall is turned on right now and when I look at 'exceptions' does not offer updates of windows as part of the selection list.
Please, any advice on this will be greatly appreciated.
Alan
Windows Update Forum:
It comes with Vista, upgrade install and activate Forum.
You will get the best help for any problem of Update/Service Pack in the Windows Update Forum; the link below:
http://social.answers.Microsoft.com/forums/en-us/vistawu/threads
You will receive the best help here.
See you soon.
Mick Murphy - Microsoft partner
-
Try to download the latest version of Adobe Reader. When I press 'install' and run the download, it tells me to close Internet Explorer. However, I have closed internet Explorer and have no other open programs
Restart your computer and download & install Reader using this link Adobe - Adobe Acrobat Reader DC Distribution.
Let me know if the problem persists.
Kind regards
Nicos
-
Problems syncing with GPIB Read on a SR400
I'm using LabView to control a meter of photons SR400 of Stanford research systems. Can control the box easily, I'm having problems with reading the correct data in the box of. I get incorrect values of 0 ', 6 and 134' rather than real account numbers. I see the correct values on the display screen, but GPIB reads bad.
It's what I've tried and what I've learned:
- At first, I was getting random 6 error LabVIEW (from reading GPIB) which would prevent my program to run. To resolve this problem, I put a case Error statement after she and simply write the word ERR in my data file and move on to my next point data. This stopped my cessation program, but started badly reading the values using reading GPIB.
- The SR400 takes data for N periods on two channels, A & B. The first column of the channel A every 6 seconds and the rest of the columns on both channels would be regular values. However, the problem got worse and my first column of the channel began to write 0s, the second column of the channel A would be 6 s with some 134 s and the rest of the columns would be nice. But, if I had only 1 time for each column, I now have data lost on two channels A and B. A channel would be of 0 s and channel B 6s and 134 s.
- This problem is sporadic. I can't control when it arrives. Today he works. Yesterday's didn't.
- It seems to be a timing issue, but I don't know what I can do about it.
My questions for you are:
- Is it better to use GPIB or VISA to communicate? I use GPIB cabling, so be it.
- How can you correct problems of timing in GPIB?
- Any suggestions on how to improve this?
I joined code of 8.2 and 2011. I'm trying to convert our code in 2011 to see if it solves the problems. The VI with GPIB Read is CollectData/TakeData and it is called by a VI, where he gets called frequently, but the reading and writing of all MTP recharge time is done by data files CollectData/Take.
Thank you all in advance for your help. I'm a grad student and still learn from these electronic and LabVIEW.
Start by lowering of the busspeed. I think that 1 uS is more fast enough for the handshake and then I would disable autopolling.
You can do it in Max settings for your gpib card.
Low level visa uses gpib, but never use it directly. In any case the speed is completely determined by the slowest device on the bus, complaining the sr400
Maybe you are looking for
-
Some pictures in my Photo preview does not match the actual image. How do I re - generate all previews? Y at - there no shortcut startup keyboard or any command in picture? Command-Option at the start of the picture don't re - generate previews. If I
-
Compaq CQ57: password clear bios (Compaq CQ-57)
Hi I can not access my laptop because of a bios administrator password has locked me, I need help to clear the bios password... It says code system off: 72782783 has soon ezpzpc
-
Questions about the synchronization between output and analog input
Hi all I now have a simple task which head a signal voltage (from PXI ao0) on a circuit and then your comments a voltage at the terminals of a component, for example, that one of the resistors in the circuit, through ai0 on PXI. So in this case, the
-
Readycache slow SSD (firmware 2.0.0)
SanDisk announces SSD Readycache for having a rate of 480 MB/s Tests like hardocp.com seem to confirm this. I ordered two Readycache SSDs from two different suppliers and tried in two different (AMD and Intel) PC. There was a gain of performance but
-
Can't go back to the classic view EA2700
Whenever I run the update of the firmware manually, the rear roll fails when it's about 90% of the way through. I have reset the router to the conditions of the factory several times, he keeps failing. Something prevents the installation of the comp