No output when using CFTHREAD for parallel queries

Hello

I want to run some queries at the same time using cfthread.

But when I attach the wires and try to generate the query results I get following error:

"The value of the query of the attribute, which is currently q_emp, is not valid."

Here is my sample code:

< cfthread name = "t1" >

< cfquery name = "q_emp" datasource = 'test' >

SELECT EmpNo, ename

WCP

< / cfquery >

< / cfthread >

< cfthread name = "t2" >

< cfquery name = "q_dept" datasource = 'test' >

SELECT DeptNo, name

OF THE Department

< / cfquery >

< / cfthread >

< cfthread action = 'join' name = "t1, t2" / >

< cfoutput >

< cfloop query = "q_emp" >

#empno # #ename # < here >

< / cfloop >

< cfloop query = "q_dept" >

#deptno # #name # < here >

< / cfloop >

< / cfoutput >

What is the problem in my code?

I use ColdFusion 9 Standard Edition and Oracle 11 g.

cordially Claudia

I suspect the variables q_emp and q_dept are available in their scope respective local thread . In other words, within tags respective cfthread in which they are defined.

I would like to redefine q_emp and q_dept within the scope of the thread, in order to extend their context to the entire page, as follows:

SELECT EmpNo, ename

WCP

CFThread name = "t2" >

SELECT DeptNo, name

OF THE Department

CFThread action = 'join' name = "t1, t2" / >

cfoutput >

#empno # #ename #.

CFLOOP query = "t2.q_dept" > "

#deptno # #name #.

Tags: ColdFusion

Similar Questions

  • Can we use DBMS_JOB for parallel processing?

    Hi all

    I wonder if we create 10 jobs each inserts 100 rows in a specific table. Will it be parallel? In other words, please correct me if I'm wrong, when a job starts Oracle does not wait for it until he finished. It run other respectively, right? If this logic is true, then we can use DBMS_JOB and DBMS_SCHEDULER for parallel processing?

    Thanks in advance.

    Yes, you can use these 2 packets for parallel processing. I suggest using DBMS_SCHEDULER instead, because it is much more powerful than DBMS_JOB. I noticed a kind of latency using DBMS_JOB between the presentation of each batch.

    I usually combine DBMS_SCHEDULER with DBMS_ALERT to acknowledge the completion of the work.

    As suggested, you can also use DBMS_PARALLEL_EXECUTE. This package uses the dbms_scheduler logic.

  • Is it better to put the computer in mode 'sleep' when using not for an hour or so?... or turn the system off

    Is it better to turn off the computer if only to use it for an hour or so?  orput it in 'sleep' mode I have Windows 7

    On Sunday, February 26, 2012 19:39:20 + 0000, Anthony.J wrote:

    Is it better to turn off the computer if only to use it for an hour or so?  orput it in 'sleep' mode I have Windows 7

    This question is asked on a regular basis and collects generally all kinds of
    fervent responses on both sides of the issue. Some people never
    turn off their computers, saying their deactivation can cause the
    material to fail early. Others turn them on and off several times
    every day, to save electricity.

    My opinion is that it doesn't matter much anyway, and you should
    do what suits you best. Personally, I turn on once a day, when I
    get up in the morning and turning off the power once a day, when I go to bed at
    night.

    Ken Blake, Microsoft MVP

  • Unexpected output when using cursor

    Hi guys,.

    I have a put request as below;

    WITH old_stream as (select el_nodes.name, parameter, the value of el_node_params
    left to join el_nodes
    el_nodes.nodeversionid = el_node_params.nodeversionid
    left to join el_stream_versions
    el_nodes.streamversionid = el_stream_versions.streamversionid
    where
    el_stream_versions. StreamId = 230 and el_stream_versions.streamversion = 48),
    new_stream (select el_nodes.name, parameter value of el_node_params
    left to join el_nodes
    el_nodes.nodeversionid = el_node_params.nodeversionid
    left to join el_stream_versions
    el_nodes.streamversionid = el_stream_versions.streamversionid
    where
    el_stream_versions. StreamId = 230 and el_stream_versions.streamversion = 49)

    Select name ParamName AS,
    Count (src1) AS oldCounter,
    Count (src2) AS newCounter,
    parameter, the value of (select name, parameter, value, 1 AS src1, src2 AS TO_NUMBER (NULL) to old_stream
    UNION ALL
    Select the parameter name, value, TO_NUMBER (NULL) AS src1, src2 in new_stream 2 ACEs)
    Group by name, parameter, value
    Having count (src1) <>count (src2);




    < < < < < < < < < RESULT

    CH_PPV_PRODIS_RDC 1 0 OutputCounter B_0_2_1
    CH_PPV_HORIZON_BLN 1 0 KenanCounter K_0_2_1
    0 1 KenanCounter K_0_1_2 CH_PPV_HORIZON_BLN
    0 1 OutputCounter B_0_1_2 CH_PPV_PRODIS_RDC


    same request where I use the cursor as aid below;
    -The TEST CASE for the procedure
    -- 1. If the value of the parameter is changed. -Executed
    -- 2. New value of the parameter is introduced. -Executed
    -- 3. New node is introduced. -Still planned.

    create or replace
    procedure UPCSTREAM_DIFF_T1 (Streamid in NUMBER,
    oldVersion in NUMBER,
    newVersion in NUMBER) IS


    NodeName varchar (2000);
    NodeParameter varchar (2000);
    number (10) has changed;
    NodeValue varchar (2000);

    MyCursor CURSOR is
    WITH old_stream as (select el_nodes.name, parameter, the value of el_node_params
    left to join el_nodes
    el_nodes.nodeversionid = el_node_params.nodeversionid
    left to join el_stream_versions
    el_nodes.streamversionid = el_stream_versions.streamversionid
    where
    el_stream_versions. StreamId = StreamId and el_stream_versions.streamversion = oldVersion),
    new_stream (select el_nodes.name, parameter value of el_node_params
    left to join el_nodes
    el_nodes.nodeversionid = el_node_params.nodeversionid
    left to join el_stream_versions
    el_nodes.streamversionid = el_stream_versions.streamversionid
    where
    el_stream_versions. StreamId = StreamId and newVersion = el_stream_versions.streamversion)

    Select name ParamName AS,
    Count (src1) AS oldCounter,
    Count (src2) AS newCounter,
    parameter, the value of (select name, parameter, value, 1 AS src1, src2 AS TO_NUMBER (NULL) to old_stream
    UNION ALL
    Select the parameter name, value, TO_NUMBER (NULL) AS src1, src2 in new_stream 2 ACEs)
    Group by name, parameter, value
    Having count (src1) <>count (src2);

    heart mycursor % ROWTYPE;
    CUR1 mycursor % ROWTYPE;

    BEGIN
    changed: = 0;
    Open mycursor;
    LOOP
    dbms_output.put_line ('Loop during the recording' | mycursor % ROWCOUNT);
    Fetch mycursor into news;
    When the exit mycursor % NOTFOUND;
    dbms_output.put_line (CUR. ParamName | » '|| cur.oldcounter |' '|| cur.newcounter |' '|| cur. Parameter |' '|| cur.value);

    end loop;
    Close mycursor;
    END UPCSTREAM_DIFF_T1;




    The output is very strange;
    SET SERVEROUTPUT ON
    call upcstream_diff_t1 (230,48,49);



    Looping on record0
    NL_DMS100_COLLECTOR 1 0 MoveSrcToDirectory/u01/app/d1elkpe/UPC_DEVELOPMENT/NL_DMS100 /.
    Looping on record1
    NL_DMS100_COLLECTOR 1 0 SourceDirectory/u01/app/d1elkpe/UPC_DEVELOPMENT/NL_DMS100/COLLECTOR/in
    Looping on record2
    CH_INET_DWH_DISTRIBUTOR 1 MaximumReconnectionInterval 0
    Looping on record record3
    CH_INET_CDR_FILE_COLLECTOR 1 0 Username
    Looping on record4
    CH_INET_METADATA_FILE_COLLECTOR 1 0 DC. TimeSlotsInMemory 6
    Looping on record5
    CH_INET_METADATA_FILE_COLLECTOR 1 0 TransferProtocol Local
    Looping on record6
    UPC_PE_PL_OUTPUT_LOADER_COLLECTOR 1 0 file ^ PL_OUTPUT_FILE. [0-9] {14}. [0-9] {6} $
    Closure on record7
    UPC_PE_NL_AUDIT_COUNTER_ENCODER 1 CreateEmptyOutputFileOnFlush 0



    As you can see the output of the sql query returns only the rows with column is related to the "CH" and once the io is used in PLSQL, it shows a completely different output.
    Can someone help me what's wrong I do?

    Your code listed an empty line integrated into SQL code in both places. Some SQL tools will ignore blank lines while others will treat them as indicators of end indicating that only part of the SQL will be executed. What tool do you use to test the query?

    Try to remove the empty row in SQL and PL/SQL and try again

  • Rename "Column" of output when using XMLCOLATTVAL

    Hello

    Can someone please help me to replace the word "Column" in the output to something else when you use XMLCOLATTVAL. For example, in the output for the following statement, I would like to see 'Field' instead of 'column '.

    I'm on 10g R2.

    SELECT XMLELEMENT ("Emp",
    XMLCOLATTVAL (e.employee_id, select, e.salary)) 'item Emp.
    E EMPLOYEES
    WHERE employee_id = 204;

    Emp element
    --------------------------------------------------------------------
    < Emp >
    < column name = "Employe_id" > 204 < / column >
    < column name = "Name" > Baer < / column >
    < column name = "SALARY" > 10000 < / column >
    < / Emp >


    Any help is greatly appreciated.

    Thank you
    Suresh

    Hello

    No 'simple' solution, but you can try one of them, according to your needs:

    (1) apply an XSL transformation to the output

    SELECT XMLElement(
     "Emp", XMLColattval(e.employee_id, e.last_name, e.salary)
    )
    .transform(
     xmltype(
    '
    
    
      
    
    
      
        
      
    
    
      
        
      
    
    '
     )
    )
    FROM hr.employees e
    WHERE employee_id = 204;
    

    (2) "XQuerying" (as an alternative to XSLT)

    SELECT XMLElement("Emp",
      XMLQuery(
       'for $i in /*
        return element Field {
          attribute name {$i/name()},
          $i/text()
        }'
       passing XMLForest(e.employee_id, e.last_name, e.salary)
       returning content
      )
    )
    FROM hr.employees e
    WHERE employee_id = 204;
    

    (3) or, of course, generating the correct structure in the first place

    SELECT XMLElement(
     "Emp",
     XMLElement("Field", xmlattributes('EMPLOYEE_ID' as "name"), e.employee_id),
     XMLElement("Field", xmlattributes('LAST_NAME' as "name"), e.last_name),
     XMLElement("Field", xmlattributes('SALARY' as "name"), e.salary)
    )
    FROM hr.employees e
    WHERE employee_id = 204;
    
  • Should there be two active instances of Adobe Flash player when using Firefox for windows?

    Firefox (35.0.1) used my resources to i7 CPU like crazy lately, slow down the loading of the page, scroll, etc. I am running windows 8.1. When I went to Task Manager to see what was causing the slowdown, Firefox took 44.8% of my CPU, and I noticed that there two instances of Adobe Flash active at the same time when I'm on enough image/video heavy pages like Salon.com. These two took about 5-10% of CPU. Then came in the container for Firefox which was an increase of 2.4%. Is this normal?

    IF you have more than one plugin flash on a Web page, this is normal.

  • How to stop the automatic zoom input / output when using my mouse?

    Whenever I try to do something that involves the use of the needle on my laptop the screen zooms in to the point where the text is too small for me to continue to work.  I use Ctrl-0 or select zoom from the menu and zoom out up to 100%.  This happens over and over again.  I can't do anything with my new computer - surf the web, check your emails, create/edit documents because I continually moved to a new resolution of the screen that is impossible to read.

    Your touchpad is probably a multitouch touchpad which is able to detect more than one finger at a time.  In fact, most of the new laptops that have these days.  If it is too sensitive, it can detect presses when you're not even touch her.  Sometimes my palms are considered to be the two fingers and enable this feature "pinch to zoom".

    Unfortunately, this is not a Windows control.  The hardware manufacturer who built the touchpads provides the software that runs it (the pilot).  Some creators of touchpad (as the Synaptics company) have a really robust software that includes a control panel to adapt it in many ways, including this sensitivity and even a few features such as a Palm check that tries to detect when it is not an intentional touch.

    You'll have to talk to anyone to build your PC or refer to the manual well because each business is different.  If you can display your PC name and model number here, I try to look as well for you.

  • Serial number different VPD when using MSCS for pRDM

    Hello

    I'm trying to set up a cluster across boxes using VSphere 5.5 SQL update 2 and R2 Windows Server 2012. Following supported and recommended configuration, but met with a blocker. The RDM are presented to the two guests (power off). When online, the disks are configured and can be used by both hosts respectively. No apparent problems. However, when run the failover cluster validation, CAE serial number is different on the guests. Page 83: UUID is the same but the serial number is different. I think that it is the information on page 80 h. This can be changed? Why is it different for the same LUN presented as shared storage. The logical unit number ID is the same on each host. Failover cluster considers different disks as a result. Any help would be greatly appreciated.

    Thank you

    Jonathan

    Quick update - we have updated our 3rd host to ESXi 5.5 Update 2 and fixed a minor issue of memory on host 2. Has also had a PCIe bus failure that has been resolved by reinstalling the risers. After all this, the CAE now reports the correct serial number. Still no idea what was causing the problem but thankful it is now resolved. Maybe the multiple reboots and the PCIe bus failure could be a cause.

    Thank you

    Jonathan

  • When using chargers for all images...

    A question about the programming style:

    I have an image gallery and am loading on a dozen inches that load an extension when it is clicked on each of them. Works just fine so far. But, as expected, there is a small break for each corresponding large image to appear.

    I would like to eliminate the wait, if possible, so here's my question: as a matter of preference or a style of programming, what you want to call it, you guys usually load ALL thumbnails firstly, images in the form of much larger images, before displaying what whether on the scene? Or you just load each image large when it is necessary, after clicking on the corresponding thumbnail?

    Sometimes I see sites very cool Flash that have the line percentLoaded or twirler displayed for what seems like a long time, but then each screen (MovieClip) after which shows quite quickly and I wonder if this is what is happening - all, or at least a LOT of the images are being preloaded.

    I learned a bunch of guys asking my / * beast * / questions in this forum and I appreciate the help. I still have a long way to go, however.

    THANKS for the tips.

    thumbnails, if they have small file sizes, I load successively (so they look nice as be displayed one by one).  large images I load with a display preloader at the point where you click on the thumbnail.

    Preload from the bottom of large images, I don't unless the customer specifically because there is more work to do and generally add much, in my opinion.

  • I get the error message 0 x 80070002 when using Vista for backing up my data on an external hard drive.

    Original title: My Vista system will not back up my data to an external drive. I get the error message 0 x 80070002. I obviously don't want to lose any data on my hard drive. What can I do?

    I'm running Windows 9 and I'm trying to save on a Western Digital 1 .5TB external drive.in Vista

    Hello

    There is no windows 9 Microsoft

    There is IE9

    Read this vista information

    see if this information helps you

    How to make a backup of your data

    http://www.vista4beginners.com/how-to-backup-your-data

    How to restore your files

    http://www.vista4beginners.com/how-to-restore-files

    the 1st link below is how do the backup complete pc

    http://www.bleepingcomputer.com/tutorials/tutorial145.html

    and that is how do to recover the backup complete pc

    http://www.bleepingcomputer.com/tutorials/tutorial144.html

    and here is the information of microsoft in restoring a system image backup

    http://Windows.Microsoft.com/en-us/Windows-Vista/restore-your-computer-from-a-system-image-backup

    If you have problems, it's in here is a forum for microsoft specifically for backup issues

    http://social.technet.Microsoft.com/forums/en-us/WindowsBackup/threads

  • The SVG images do not appear in the web server, but it worked when using catalyst for the company.

    After that I used some pictures 'SVG' at the end of my work of muse, I exported "HTML files" and transferred all my web server.  SVG images are not displayed, appear other JPG, PNG.  But I downloaded the files in "adobe business catalyst", SVG and other images are displayed correctly.    Anyone know what I can solve the problem?

    Thank you very much!

    You must get your provider to serve SVG files with the mime type image/svg + xml to web hosting. Here is a link that describes the problem and the settings of your hosting provider must address. http://www.w3.org/services/SVG-Server/

  • Problem when used BSE update file for AS400

    Hi all


    I create the BSE for updated files of Win2003 to AS400 by outgoing FTP adapter Service.
    I've never used before AS400. I test BSE with the windows environment, it works but when move to as400 this error.
    I have test it with the FTP command I put the file as below.

    F:\ProductionProject\ESBdeployLib > ftp 172.16.8.59
    Connected to 172.16.8.59.
    220 - QTCP to AS400DEV.
    User (172.16.8.59:(none)): HATCYRD)
    331 password.
    Password:
    230 HATCYRD connected.
    FTP > put deploy.bat
    Successful request 200 PORT subcommand.
    150 send file to Member BEATS in DEPLOY file in the YRDDTALIB library.
    226 completed successfully file transfer.
    FTP: 50 bytes sent in 0.00Seconds 50000.00Kbytes / s.

    I want to put the file to the root of the ftp.
    What value should I put specific directory to a logical name with the name of the properties parameter point final "outgoingFilePath".
    and the error that are not displayed.

    It is error when I put in outgoingFilePath with the value "YRDDTALIB".

    An unhandled exception was thrown in the system of BSE. The reported exception is: ' org.collaxa.thirdparty.apache.wsif.WSIFException:

    ESB:///ESB_Projects/temp_ESB_YBRTServiceProject_localhost/putLOG_DOMESTICCARLOCATION.WSDL [Put_ptt::Put (Root Element)] - SISM JCA Execute of 'Put' failure due to operation: bad physical logic

    mapping output directory. No matches found for the logical output to the physical output directory directory. ; nested exception is: logic output directory map physical evil ORABPEL-11047. No matches not found for

    Logic output to the physical output directory directory. For the value specified in the directory parameter (Physics/logic), make sure that the directory mapping physical name logic <>- is correctly specified in the

    deployment descriptor. to oracle.tip.adapter.fw.wsif.jca.WSIFOperation_JCA.executeRequestResponseOperation(WSIFOperation_JCA.java:623) to


    It is error when I put in outgoingFilePath with an empty value "or '.'.

    [Put_ptt::Put(Root-Element)] - SISM JCA Execute of 'Put' failure due to operation: error sending file on FTP server. Unable to send the file to the server. ; nested exception is: error ORABPEL-11429 send file on FTP server. Unable to send the file to the server. Make sure that 1. The output specified remote dir has permission to write 2. Name of the output file has not exceeded the max allowed by the operating system and 3 chararters. Remote file system has


    Kind regards

    Larson

    She should be allowed, are you sure that the data have been sent to the adapter?

    is it possible to do a search for the file on the AS400. Search for the root of the operating system. The name must be defined in the outgoing adapter.

    I expect it to be in the directory that you connect as well. Y at - it something like a symbolic link?

    see you soon
    James

  • the iPhone screen is not responding and only works for short periods of time when I use siri for an indefinite period.

    Then my phone 3 days ago started having a screen is unresponsive. I just found someone else who has the same problems as me. My screen is white and gray, flickering vertical lines at the top of my screen, sometimes extending to the bottom of the screen. My iPhone 6 s more screen shows only these lines when I use Siri for what it is, which is a little strange. To make things even more bizarre my screen becomes sensitive occasionally, but only when I'm talking about Siri for an indefinite period. One of the things I had in common with a question that someone asked who had similar problems that me was that, when these lines flickering, vertical, white and gray, the iPhone will eventually type things randomly on its own. Such as random apps or opening of the things randomly without my intervention. A unfortunate thing is that when this happens it selects things like that to end a call or facetime. I already know that the cost is $329 remedy since its considered as "other" in the apple repair options and I am also out of warranty, so I wanted to know if there is any other explanation for this. It made my phone very difficult to use these days now...

    Im going to guess that your phone is actually a 6 + and not a s 6 +, which means that your phone is suffering from simple plu epidemic of iPhones of all time - to the epidemic ic touch.  It is unrelated to Siri and tricks of the 'home', the lack of contact button that gets worse with time and flashing bars gray is the presentation of the default signature.  It's a failure level Council of integrated circuit chips that control touch and it is a design flaw in the jury of 6 + that Apple does not recognize.  You can send for microsoldering of the Board of Directors to resolve the underlying anomaly for half of the cost of your options at Apple--assuming that you are not interested in protecting your out of warranty at Apple options.

  • For the last few weeks, I have been unable to navigate gmail when using Firefox, but gmail works fine in other browsers.

    When you use Firefox for Windows desktop, I was having trouble, repeated for several weeks, navigate to GMAIL. I can't open the emails, scroll forward or in any area of gmail, open folders as SPAM, TRASH, DRAFTS. Clicking on one of these links produces no response. It happens in Google calendar as well - same problem. This problem does not exist when I use another browser.

    Reload Web pages and ignore the cache to refresh potentially stale or corrupt.

    • Hold down the SHIFT key and click the Reload button
    • Press 'Ctrl + F5' or 'Ctrl + Shift + R' (Windows, Linux)
    • Press 'Command + shift + R' (Mac)

    Clear the cache and cookies from Web sites that cause problems.

    "Clear the Cache":

    • Firefox/tools > Options > advanced > network > content caching Web: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Firefox/tools > Options > privacy > Cookies: "show the Cookies".

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/tools > Modules > Firefox uses the subject: Access Protocol built on: pages that you open through the bar of addresses as you open webpages.)

  • I bought the IPad Pro 128 GB on 3.29.2016. I used it for less than a week. It charged when I first opened it from 67% to 100%. 9.3.1 update.  After about 5-6 days, the battery is down to 1%, and now it will not load. I have reset on AEC

    I bought the IPad Pro 128 GB on 3.29.2016. I used it for less than a week. It charged when I first opened it from 67% to 100%. 9.3.1 update.  After about 5-6 days, the battery is down to 1%, and now it will not load. I have reset to factory settings and it still doesn't load. There's just 1%. Help, please.

    Thank you

    Katie

    It is under warranty. Suggests taking it for an Exchange.

Maybe you are looking for