Select / tying aid

I help a colleague with a web application that is actually a database of links to documents that are scattered around our Web site.  It's supposed to be a way to search documents using various criteria without having to browse the entire site.

The data are organized into categories (called disciplines) and sub-categories (called subdisciplines) as well as a few other settings.  I help to get the database normalized, but one of the things I want to do is to make sure the search form reflects the current contents of the database.

Currently, a web form with some elements < select > is used, and Javascript makes the subdisciplines < select > depends on what is selected in the < select > disciplines box. Thus, every time a new one of these two points is added, the JS should be changed.  I would like to do it is automatic, so I will try to use bind to do.

At the moment I have the following form:

< name cfform = "fectchdocs" action = '#CGI. ' SCRIPT_NAME method # "="post">

< p > < label for 'disc' = > Discipline: < / label > < br / >

< select name = 'disc' id = "disk" >

< option value = "" > all < / option >

< cfoutput query = "GetDisc" >

< option value = "#disc_id #" < cfif FORM.disc eq disc_id > selected = "selected" < / cfif > > #adiscipline # < / option > < / cfoutput >

< / select > < / p >

< p > < label for = "subdisc" > sous-discipline: < / label > < br / >

< cfselect "subdisc" id = "subdisc" bindonload = name = 'Yes' bind = "SWC:searchdata.getSubs({discs})" / > < / p > "

< p > < input type = "select" name = value "search" = "Search" / > < / p >

< / cfform >

And the CFC next (searchform.cfc):

< cfproperty output = "false" >

< cffunction = access "getDiscs" name = "remote" returntype = "array" >

< cfquery "disks" datasource = name = "guidance" >

SELECT disc_id, adiscipline

OF search_fhwa_disc

ORDER BY adiscipline

< / cfquery >

< cfset count = "1" / >

< cfset results = arraynew (2) >

< cfloop query = "drives" >

< cfset results [count] [1] = "" #disc_id # "/ >"

< cfset results [count] [2] = "" #adiscipline # "/ >"

< cfset count = count + 1 >

< / cfloop >

< cfreturn results / >

< / cffunction >

< cffunction = access "getSubs" name = "remote" returntype = "array" >

< name cfargument = "disc_id" type = "string" required = "true" >

< cfquery name = "subs" datasource = "guidance" >

SELECT sub_id, bsubdiscipline

OF search_fhwa_sub

WHERE parent_id = < cfqueryparam value = "" #arguments.disc_id # "cfsqltype ="cf_sql_numeric">"

ORDER BY bsubdiscipline

< / cfquery >

< cfset count = "1" / >

< cfset results = arraynew (2) >

< cfloop query 'subs' = >

< cfset results [count] [1] = "" #sub_id # "/ >"

< cfset results [count] [2] = "" #bsubdiscipline # "/ >"

< cfset count = count + 1 >

< / cfloop >

< cfreturn results / >

< / cffunction >

< / cfproperty >

Of course, he failed miserable with three errors of popup.  A bind error telling me "drives" is not found.  A second "disks" not found error and the other while passing a null value to my request.

It is obvious that I use the name of the variable/function wrong somewhere, but I don't know where.

I know that the CFC works, because if I invoke both methods, I get the table that I expect when I dump the returnvariable.

Hello

Above the solution is to change your server you can try that, but we can do a thing

Please see a few changes at the cfc level: -.

Variation 1: I added the attribute returnformat = "json" here.

Change 2: I removed serializejson() function and to return my query result as it is.

Change 1

Select companyId as SUB_ID information,

CompanyName as BSUBDISCIPLINE

society

where companyId = #ARGUMENTS.id #.

2 change

By what you don't need to modify your server settings

Tags: ColdFusion

Similar Questions

  • Help - 3403F

    I am new to MAC and OS I have MAC pro laptop with El Captain OS X I wiped my internal Macintosh HD by the disc utilities I did it because I need to learn how to reinstall a new operating system now when I start the system, I get a message (appel.com/support-3403F) and I cannot get the disc utilities again , I have not a boot for CD type of BONE that I already made the backup until I wipe the partition so kindly your advice

    Start of recovery volume (command - R on a restart, or hold down the option/Alt during a restart and select the Volume of recovery). Run disk utility, then select first aid. Then re-install the operating system. Your other choices in the recovery Partition is to restore your Time Machine computer, if that's how you did your backup.

    OS X recovery

    OS X recovery (2)

  • After 10.11.5 Update: nothing works: start, the recovery, the new facility,...

    Can someone help me please?

    On one of our macbook pro: end of 2011 in stock... hard drive, memory stock, after the 10.11.5 update nothing works anymore:

    -Start: sometimes goes to 70%, 80% of the progress then a few lines appear and the screen goes black for a second and then turns to white to stay like that forever.

    -recovery of the internet: charge of recovery, then starts and goes back to the white screen.

    -time machine backup works do not at all

    -Resettlement of USB-stick: boot from USB key gives the same result as the normal start-up (see above)

    -everything: fashion, single user: same thing

    (Internet) Apple hardware test allowed the machine.

    Thing I could try?

    Target works of fashion, I copied most of the files on the external drive.

    If nothing else works, can I do a clean install to this macbookpro (in target mode) of mine?

    Thank you very much.

    can I do a clean install to this macbookpro (in target mode) of mine?

    Yes. Open utility disk on your computer. Run disk utility, select the drive from the computer problem and select first aid. Reformat the hard disk using Disk Utility/Erase Mac OS extended (journaled), then click on the Option button and select GUID. Download the installer from the App Store using the identifier Apple associated with the computer that you are trying to recover. Then re-install the operating system on the computer of the problem.

  • 10.11.5 install impossible to complete failure to restart on MBP early 2015

    MBP early 2015 with OS X 10.11.4

    Started the 10.11.5 update, it freezes during the restart of the installation phase. You leave by using ctrl-cmd-eject

    After that restart attempts to restart the installation ends in the same way, Frost during the restart process

    Tried to do a complete reinstall of a new USB - similar results.

    Return to 10.11 - stop/restart still suspended

    I suspect some updates of the firmware included in 10.11.5 could be the cause

    If you have a backup, start on recovery Volume (command - R on a restart, or hold down the option/Alt during a restart and select the Volume of recovery). Run disk utility, then select first aid. Reformat the hard disk using Disk Utility/Erase Mac OS extended (journaled), then click on the Option button and select GUID. Then re-install the operating system. Try the update by using the update from the drop-down list. Restore your data.

    OS X recovery

    OS X recovery (2)

    10.11.5 combo update

  • Bootcamp partition renamed Untitled after starting up in Mac OS

    Can someone help me please?

    I had successfully installed Windows 10 on my Macbook Pro and ran Windows already several weeks smoothly.

    Unfortunately I did a backup of my windows files again.

    Today when I started at El Capitan to connect my iPad to iTunes Windows gave me a message about repair when I tried to reboot Windows bootcamp version.

    He has failed to fix and only gave my an advanced options menu.

    I started again under MacOS to find that the windows partition has been renamed to "Untitled" and that no file was visible in the Finder.

    I ran disk utility and selected first aid on this score, I thought that it was read only to check for disk errors.

    Now when Windows starts it says no operating system available, and utility disc shows 496 GB of empty space on that partition!

    I hope that all my files are lost!

    What can I do to fix the bootcamp partition? I tried to install the bootcamp on USB installation files but cannot boot from USB (does not show the USB)

    Thank you!

    Olivier

    Windows issues are better handled by Microsoft.

  • My MacBook Pro early 2011 startup is extremely slow

    My Macbook Pro has now become very slow in recent years to the point that it takes about 2-3 minutes at the start and another 3 minutes for the Finder to start and bar + apps become available and be able to use (otherwise fury beach ball!).

    I always held up-to-date and think that the issue could have begun with a patch somewhere that might be too heavy on such a machine in (?) "old". I don't remember not to what update started... probably just after Snow Leopard or Lion.

    I did everything advised on the web, disk check, PRAM reset, remove and free on the hard disk, the cache of the system of cleaning with Terminal... I then used EtreCheck and the result was "below average", emphasizing 17 errors on the disk. What does that mean?? Should I reinstall the OS or should I replace the HDD and redo the whole machine? If one of these, how do I go about it for this laptop, if that's possible?

    Thank you!!!

    ----------

    EtreCheck version: 2.9.10 (261)

    Report generated 2016-04-02 22:47:27

    Download EtreCheck from https://etrecheck.com

    Time 08:33

    Performance: Below average

    Click the [Support] links to help with non-Apple products.

    Click [details] for more information on this line.

    Problem: Computer is too slow

    Description:

    A lot of time to start

    Finder does not appear on the start screen, takes a minute or more

    A lot of time to launch an application

    does not at the same time

    Hardware Information:

    MacBook Pro (17 inch, early 2011)

    [Data sheet] - [User Guide] - [warranty & Service]

    MacBook Pro - model: MacBookPro8, 3

    1 2.2 GHz Intel Core i7 CPU: 4 strands

    16 GB expandable RAM - [Instructions]

    BANK 0/DIMM0

    8 GB DDR3 1333 MHz ok

    BANK 1/DIMM0

    8 GB DDR3 1333 MHz ok

    Bluetooth: Old - transfer/Airdrop2 not supported

    Wireless: en1: 802.11 a/b/g/n

    Battery: Health = Normal - Cycle count = 54

    Video information:

    Intel HD Graphics 3000

    Color LCD 1920 x 1200

    AMD Radeon HD 6750M - VRAM: 1024 MB

    Software:

    OS X El Capitan 10.11.3 (15 d 21) - since startup time: less than an hour

    Disc information:

    Hitachi HTS725050A9A362 disk0: (500,11 GB) (rotation)

    EFI (disk0s1) < not mounted >: 210 MB

    Macintosh HD (disk0s2) /: 398,49 (Go 51,26 free) - 17 errors

    Drive failure!

    Recovery HD (disk0s3) < not mounted > [recovery]: 650 MB

    BOOTCAMP (disk0s4) / Volumes/BOOTCAMP: 100,76 GB (15.81 GB free)

    MATSHITADVD-R UJ-898)

    HGST HTS721010A9E630 disk1: (1 TB) (rotation)

    EFI (disk1s1) < not mounted >: 210 MB

    Volumes/G G drive (disk1s2): 999,86 go-go (719,58 free)

    USB information:

    Apple Inc. FaceTime HD camera (built-in)

    Apple Inc. Apple keyboard / Trackpad

    Apple Inc. BRCM2070 hub.

    Apple Inc. Bluetooth USB host controller.

    Computer, Inc. Apple IR receiver.

    Lightning information:

    Apple Inc. Thunderbolt_bus.

    G-Technology G-DRIVE mobile with Thunderbolt

    Guardian:

    Mac App Store and identified developers

    Kernel extensions:

    / Library/Extensions

    org.virtualbox.kext.VBoxDrv [no charge] (4.0.6 - 2016-03-21) [Support]

    org.virtualbox.kext.VBoxNetAdp [no charge] (4.0.6 - 2016-03-21) [Support]

    org.virtualbox.kext.VBoxNetFlt [no charge] (4.0.6 - 2016-03-21) [Support]

    org.virtualbox.kext.VBoxUSB [no charge] (4.0.6 - 2016-03-21) [Support]

    / System/Library/Extensions

    com [no charge]. Logitech.Control Center.HID Driver (3.7.0 - 10.6 SDK - 2016-03-21) [Support]

    com [no charge]. Driver Logitech.Unifying.HID (1.3.0 - 10.6 SDK - 2016-03-21) [Support]

    com.Nike.sportwatch [no charge] (1.0.0 - 2016-03-21) [Support]

    com.Wacom.kext.wacomtablet [no charge] (6.3.6 - SDK 10.8 - 2016-03-21) [Support]

    [no charge] jp.co.yamaha.driver.YamahaSteinbergUSBAudio (1.6.4f1 - 10.6 SDK - 2016-03-21) [Support]

    Startup items:

    VirtualBox: Path: / Library/StartupItems/VirtualBox

    Startup items are obsolete in OS X Yosemite

    Launch system officers:

    [loaded] 7 tasks Apple

    [loading] 160 tasks Apple

    [operation] 69 tasks Apple

    Launch system demons:

    [loaded] 43 tasks Apple

    [loading] 157 tasks Apple

    [operation] 89 tasks Apple

    Launch officers:

    com [running]. Logitech.Control Center.Daemon.plist (2013-04-16) [Support]

    [no charge] com.adobe.AAM.Updater - 1.0.plist (2015-12-05) [Support]

    [operation] com.adobe.AdobeCreativeCloud.plist (2015-09-24) [Support]

    [loading] com.google.keystone.agent.plist (2016-03-03) [Support]

    [operation] com.nike.nikeplusconnect.plist (2015-10-09) [Support]

    [operation] com.wacom.wacomtablet.plist (2013-06-05) [Support]

    Launch demons:

    com [loading]. BlueStacks.AppPlayer.bstservice_helper.plist (2015-10-21) [Support]

    [operation] com.adobe.adobeupdatedaemon.plist (2015-12-05) [Support]

    [loading] com.adobe.agsservice.plist (2015-09-24) [Support]

    [loading] com.adobe.fpsaud.plist (2016-03-19) [Support]

    [loading] com.ea.origin.ESHelper.plist (2014-04-19) [Support]

    [loading] com.google.keystone.daemon.plist (2016-03-03) [Support]

    User launch officers:

    [loading] com.adobe.AAM.Updater - 1.0.plist (2014-07-14) [Support]

    com.apple.CSConfigDotMacCert [fail]-[...] @me.com - SharedServices.Agent.plist

    [failure] com.plexapp.helper.plist (2012-03-25) [Support]

    [operation] com.spotify.webhelper.plist (2016-03-17) [Support]

    org.VirtualBox.vboxwebsrv.plist [no charge] (2011-04-29) [Support]

    Items in user login:

    None

    Other applications:

    [ongoing] com.adobe.acc.AdobeDesktopService.108832.C4A769B6 - 09C 4-418 b - A723 - 4962A991F3D5

    [ongoing] com.Adobe.accmac.245152

    [operation] com.gopro.GoPro - Studio-GoPro-importer

    [ongoing] com.wacom.TabletDriver.108512

    [ongoing] com.wacom.WacomTouchDriver.108192

    [ongoing] JP.co.Canon.cijscannerregister.120672

    [loading] 398 tasks Apple

    [operation] 183 tasks Apple

    Plug-ins Internet:

    AdobeAAMDetect: 3.0.0.0 - SDK 10.9 (2015-12-05) [Support]

    FlashPlayer - 10.6: 21.0.0.197 - SDK 10.6 (2016-03-24), [Support]

    QuickTime Plugin: 7.7.3 (2016-02-03)

    Flash Player: 21.0.0.197 - SDK 10.6 (2016-03-24), [Support]

    Default browser: 601 - SDK 10.11 (2016-02-03)

    JavaAppletPlugin: 15.0.1 - 10.11 (2013-02-23) check the version of the SDK

    WacomNetscape: 2.1.0 - 1 - SDK 10.8 (2013-06-05) [Support]

    Web of Google Earth plugin: 6.0 (2011-03-23) [Support]

    Silverlight: 5.1.40728.0 - SDK 10.6 (2015-11-06) [Support]

    WacomTabletPlugin: WacomTabletPlugin 2.1.0.2 (2013-06-05) [Support]

    iPhotoPhotocast: 7.0 - 10.8 SDK (2013-04-24)

    User Plug-ins internet:

    OctoshapeWeb: SDK-1.0-10.8 (2013-11-04) [Support]

    Safari extensions:

    Turn Off the Lights (2014-07-06)

    Add to Amazon wish list (2013-12-12)

    3rd party preference panes:

    Flash Player (2016-03-19) [Support]

    Logitech Control Center (2013-09-07) [Support]

    MacFUSE (2008-12-19) [Support]

    Yamaha Steinberg USB (2012-09-24) [Support]

    Time Machine:

    Skip system files: No.

    Mobile backups: WE

    Automatic backup: YES

    Volumes to back up:

    Macintosh HD: Disc size: 398,49 GB disc used: 347,22 GB

    G drive: disc size: 999,86 GB disc used: 280,28 GB

    Destinations:

    WD_Backup [network]

    Total size: 996,41 GB

    Total number of backups: 0

    An older backup: -.

    Last backup: -.

    Backup disk size: too small

    996,41 GB backup size < (disc 627,50 GB X 3)

    Top of page process CPU:

    7% adobe CEF Helper (4)

    4% kernel_task

    3% photolibraryd

    com.apple.photos.ImageConversionService (2) 2%

    2% ScreenSaverEngine

    Top of page process of memory:

    1.07 GB kernel_task

    754 MB ocspd

    459 MB com.apple.WebKit.WebContent (4)

    Mds_stores 229 MB

    213 MB mdworker (13)

    Virtual memory information:

    7,58 GB of free RAM

    8,41 used GB RAM (4.19 GB being cached)

    Used Swap 0 B

    Diagnostic information:

    April 2, 2016, 22:36:14 ~/Library/Logs/DiagnosticReports/com.apple.WebKit.WebContent_2016-04-02-223614_ [redacted] .crash

    System/Library/Frameworks/WebKit.Framework/versions/A/XPCServices/com. Apple.We bKit.WebContent.xpc/Contents/MacOS/com.apple.WebKit.WebContent

    April 2, 2016, 22:33:35 /Library/Logs/DiagnosticReports/apsd_2016-04-02-223335_[redacted].crash

    /System/Library/PrivateFrameworks/ApplePushService.framework/APSD

    April 2, 2016, 22:23:43 Self test - passed

    April 2, 2016, 17:26:37 /Library/Logs/DiagnosticReports/apsd_2016-04-02-172637_[redacted].crash

    April 1, 2016, 18:28:56 /Library/Logs/DiagnosticReports/iTunes_2016-04-01-182856_[redacted].cpu_resourc e.diag [details]

    /Applications/iTunes.app/Contents/MacOS/iTunes

    Macintosh HD (disk0s2) /: 398,49 (Go 51,26 free) - 17 errors Drive fail!

    It is clear from your hard drive is/maybe default. Make a backup, best 2 separated on 2 discs. Wake the computer from the tests. You may be able to get at least a temporary solution to erasing and reformatting.

    Make a backup, best 2 separated on 2 discs. Start of recovery volume (command - R on a restart, or hold down the option/Alt during a restart and select the Volume of recovery). Run disk utility, then select first aid. Reformat the hard disk using Disk Utility/Erase Mac OS extended (journaled), then click on the Option button and select GUID. Then re-install the operating system. Use Wizard settings to restore your backup.

  • graph between the sliders

    Hello

    I have a problem with the sliders.

    I have a graph of waveform with some signals and two sliders. (annex 1)

    I would like to see a signal that is between the two sliders on the second waveform graph.

    Thank you for your help

    Hello

    Is that tied aid?

    Don't forget to disable 'Autoscale X' for the 2nd graph and you can have another "State" If cursor 2 to a value less than 1 slider.

  • hacked my email address of someone

    I have my email which is * address email is removed from the privacy * but now it was hacked by someone and it changed my password as well as security issue that I am so worried kindly help me is my another email address * address email is removed from the privacy * my email address of someone

    Hello

    Answers is a peer group supported and unfortunately has no real influence on Hotmail
    or Windows Live Mail. Both have a selection of AID that covers this area.

    HotMail has its own Forums, so you can ask your questions there.

    Windows Live Solution Center - HotMail - HotMail Forums Solutions
    http://windowslivehelp.com/
    Hotmail - Forums
    http://windowslivehelp.com/forums.aspx?ProductID=1

    Hotmail - Solutions
    http://windowslivehelp.com/solutions.aspx?ProductID=1

    How to contact Windows Live Hotmail Support
    http://email.about.com/od/hotmailtips/Qt/et_hotmail_supp.htm

    Windows Live Hotmail Top issues and Support information
    http://support.Microsoft.com/kb/316659/en-us

    ==============================================

    Check with Windows Live Support and Forums

    Windows Live Mail Forums
    http://www.windowslivehelp.com/forums.aspx?ProductID=15

    Windows Live Solutions
    http://www.windowslivehelp.com/solutions.aspx?ProductID=15

    Windows Live Solution Center
    http://www.windowslivehelp.com/

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • HP C4780 will not void job after printing - prints again minutes later

    After a print job, it remains in Quebec and prints on again minutes later.

    Thank you for the updated information. I would like you to follow the steps below:

    1 reset the printing system: Mac OS x: how to reset the printing system

    2. then go ahead and repair disk permissions:

    • Open utility disk, located in Applications/Utilities/Disk Utility
    • Select your startup disk on the left side of the disk utility window
    • Select first aid
    • Click on the button "repair disk permissions".

    3 re add the C4780, click the Plus (+) sign

    4. make sure that you install the C4780 printer driver and not the driver AirPrint

    Now, go ahead and try to print a page, let me know if it remains in the queue and reprints. I'll watch for your reply.

    Thank you

  • Query is running slowly (30 sec) first, then quickly - how to find out why?

    Hi all

    First of all, a warning: we are a company of rapidly growing software which provides a SaaS-like solution and is hosting an Oracle database for our own software running at client locations. I'm still not a DBA, but I've been learning for a while now and will follow appropriate courses, next year. This problem becomes urgent enough, however.

    We have an Oracle 12 c (12.1.0.1.7) running on a pretty Beefy hardware (card SSD 8 cores, 72GO,) and it works fine. One of our applications raise queries that run slowly very often, but when I run the same query through Toad, it is very fast again. Sometimes I can make the same query to be slow again by changing settings, adding values to an in(), etc., but not always. By not being is not in a position to know WHY the query is slow, I can not as a solution. We have been struggling with this problem for some time (more than a year, I think) and had the same problem when you still run Oracle 11.

    Some more bits of information that might be relevant:

    -This user defines cursor_sharing for force, per my request (the software itself does not lie)

    -J' put optimizer_index_caching at 25, because I know the DB all be in memory.

    -J' put optimizer_index_cost_adj at 50, because I saw full table scan too for my taste. The two parameters when it is while the queries were not already productive.

    -Memory: memory_target = 40 GB, db_cache_size = 5.5 GB, pga_aggregate_target = 8 GB sga_target = 30 GB

    -Optimizer_dynamic_sampling is the default, 2.

    -J' saw a few query plans have a note, something like "Explain plan was made with the statistics from previous executions. All do not have this, however.

    -J' saw some explain plans in which the actual recordings differ a large amount of the expected records, planned somethings was 1, real was 4 billion...

    -We actually had to add / * ordered * / for some queries to speed up execution. It's been a few other issues have better results (20 sec every time! to 200 ms), but worse when Oracle has finally found the execution plan (40ms).

    -Many queries seemed to start with arrays of harm to our taste.

    -A copy of the database, running locally, also had some problems with queries - the plan of the explain command took 2 seconds, the query itself only a few Ms. the same database of course does not receive any insert/update statements.

    It may be important to note that this scheme receives a lot of updates and inserts, so I thought that it could screw up the statistics?

    As I wrote, we have been struggling with this problem for a long, long time. We have made changes to hardware, the parameters of the Oracle, the client software, everywhere, but are no closer to a permanent solution. Any help would be greatly appreciated!

    Kind regards

    Jelmer

    Post edited by: optimizer_cursor_caching 1449188-> optimizer_index_caching

    1449188 wrote:

    Time for a summary:

    -We switched off forced cursor sharing. This reduces overall Oracle CPU usage a bit.

    -We removed the / + SORTED * / in queries with a theatrical performance

    -optimizer_dynamic_sampling was fixed at 11, but _optimizer_use_feedback is always enabled

    -All the tables and indexes were analyzed, I created statistics expanded on the task, address, person

    Many queries work MUCH better, another big thank you to all who have helped me so far.

    ...

    In particular the line 25 confuses me. Always this BITMAP AND even that crazy E-lines / difference A-lines. I'm sure that's the only reason for the poor performance of this query...

    I think you have a mixture of different effects here, which doesn't makes it really simple to understand exactly what is happening. To some extent this seems to be caused by the new features added in 11g and 12 c.

    1. looking at the trace of the files provided above, there seems to be some problem with dynamic sampling overload (DS). This seems to be one of the reasons why you have this "first slow exec", the second fast exec, in this case without a change of regime. In this trace file, it takes 5 seconds or more to run all these queries recursive dynamic sampling as part of the generation of the plan, and there are two DS queries that contribute significantly to that time (more than 3 seconds for these two DS queries).

    In order to have OPTIMIZER_DYNAMIC_SAMPLING 11 value causes these additional queries. The advantage of this setting is that you get good enough (join) estimates. Of course, it is difficult to judge how much you make this setting and how you lose the overhead of generating plan. New DS queries make use of the RESULT_CACHE have, in principle, reassessment of the same DS queries should come from the RESULT_CACHE. However, if your RESULT_CACHE is too small to contain all of the query results (although these result sets is usually very small) you can sometimes get slowdowns in generational terms if these queries need to be run instead of pull results from the cache.

    2. the function of vibration of statistics of course is involved and sometimes leads to a re-optimizing. Once again, this could then lead to the problem mentioned in point 1., if DS requests takes a long time to generate the plan.

    So these two functions together could lead to some difficult to predict behavior (slow first => possibly caused by DS, second time slow => caused by Feedback: statistics, leading again to DS, third etc. quick time.). It may also explain why you see 'first exec' slow, second fast exec, if re-optimizing na not take too much time and lead to a better execution plan.

    3. the special regard that seems to be the wide track as part of an internal source of lines join nested loop - and in this case, the estimates are * iterative *, so be careful when comparing E-lines (iteratively) with A-lines (cumulative across all iterations). The index used functionality combine to combine two indexes TASK_IDX1 and TASK_IDX2 suggest that it would be beneficial to add PERSON_ID to TASK_IDX1 and maybe get rid of TASK_IDX2 - but it might be appropriate to other queries, which I can't really judge. You can then check if adding more attributes to TASK_IDX1 it would make even more selective about the level of the index, as most of the lines for this particular query is filtered on the WORK table, so adding TASK level. FIXED, TASK. CLOSED and/or TASK. PLAN_START / PLAN_END it would make an even more effective operation. But adding PERSON_ID should solve this particular problem.

    4. the 'quick' this query (mentioned somewhere at the beginning) variation has no merge view inline (SELECT HELP... GROUP BY...), then you can try this by adding a NO_MERGE hint to the inline query (SELECT / * + NO_MERGE * / AID...), just to see if that gives you several times the plan 'rapid '. I still think that the index change described might be the best choice.

    5 SQL Directives of the Plan have been mentioned a couple of times, and I think that it is not quite clear to you what they are. They are not "advice", but are a new feature added to 12 c where Oracle persists some information on bad estimates and then evaluates these SQL Plan plan generation for dynamic additional sample queries and the production of statistics to create additional guidance extended statistics. I don't have enough experience with this new feature and therefore cannot judge how they play a role here. You can ask DBA_SQL_PLAN_DIR_OBJECTS and DBA_SQL_PLAN_DIRECTIVES to see if there are tickets for your particular objects in question.

    Randolf

  • Try to get a sample of authentication applet works.

    package GenSignVerify;

    Javacard.framework import. *;

    Javacard.security import. *;

    /**

    */

    SerializableAttribute public class GenSignVerify extends Applet {}

    /**

    * Only installation method of this class should create the object of the cmdlet.

    */

    public GenSignVerify() {}

    Register();

    }

    /**

    * Install this applet.

    *

    @param Baker

    * the table that contains the installation settings

    @param bOffset

    * starting in Baker offset

    @param bLength

    lengthwise in bytes of the data parameter Baker

    */

    {} Public Shared Sub install (byte [] Baker, short bOffset, bLength bytes)

    GP-compatible recording of JavaCard applet

    new GenSignVerify();

    }

    /**

    * Treats an incoming APDU.

    *

    * @see APDU

    @param apdu

    Incoming APDU

    * @exception ISOException

    * with the bytes of response according to ISO 7816-4

    */

    {} public void process (APDU apdu)

    Byte [] buf = apdu.getBuffer ();

    Byte [] testSig = new byte [256];

    Byte [] test = new byte [] {0x01, 0x02, 0x03, 0x04};

    Key of the key pair = null;

    SIG Signature;

    /*

    check the command SELECT UDPA

    If ((buf [ISO7816. OFFSET_CLA] == 0) & &

    (buf [ISO7816. OFFSET_INS] = (byte) (0xA4))) {}

    return;

    }*/

    If (selectingApplet ())

    {

    return;

    }

    apdu.setIncomingAndReceive ();

    switch (buf [ISO7816. {} OFFSET_INS])

    case (byte) 0 x 01:

    if(Keys == null)

    {

    keys = new pair of keys (KeyPair.ALG_RSA_CRT, KeyBuilder.LENGTH_AES_256);

    keys.genKeyPair ();

    }

    INITIALIZE THE SIGNATURE AND SIGN

    GIS = Signature.getInstance (Signature.ALG_RSA_SHA_PKCS1, false);

    SIG.init (Keys.getPrivate (), Signature.MODE_SIGN);

    short Len = sig.sign (test, (short) 0, (short) test.length, testSig, 0 (short));

    VERIFY THE SIGNATURE

    SIG.init (Keys.getPublic (), signature. MODE_VERIFY);

    GIS. Verify (testing, (short) 0, (short) test.length, testSig, (byte) 0, len);

    apdu.setOutgoing ();

    apdu.setOutgoingLength (len);

    apdu.sendBytesLong (testSig, (short) 0, len);

    break;

    0xCA, case (byte):

    break;

    by default:

    good practice: If you don't know the statement, say:

    ISOException.throwIt (ISO7816.SW_INS_NOT_SUPPORTED);

    }

    }

    }

    and this is the .scr file

    Test script for the Applet "GenSignVerify".

    power-up;

    Select GenSignVerify //aid/19550633C5/99

    0 x 00 0xa4 0x04 0x00 X 06 X 19 0 0 0 X 0 X 06 55 0 X 33 0XC5 0X9A 0x7F;

    Send the APDU with chain J C 3

    0 x 80 0xCA 0x00 0x00 0 x 03 0x4A 0x43 0 x 33 0x7F;

    Must return SW1:6 D, SW2:00-> statement not supported since INS = D2

    0 x 80 0xD2 0x00 0x00 0 x 03 0x4B 0x4D 0 x 33 0x7F;

    To enter the key of the case and gen, sign and verify data

    0x00 0x01 0x00 0x00 0 x 00 0x7F;

    powerdown;

    When I build and run this is my output:

    Received ATR = 0x3b 0xf0 0x11 0 x 00-0xff 0x00

    CLA: 00, INS: a4, P1: 04, P2: Lc, 00:06, 19, 55, 06, 33, c5, 9A, the: 00, SW1: 90, SW2: 00

    CLA: 80, INS: ca, P1: 00, P2: Lc, 00:03, 4, 43, 33, the: 00, SW1: 90, SW2: 00

    CLA: 80, INS: d2, P1: 00, P2: Lc, 00:03, 4B, 4 d, the 33,: 00, SW1: 6 d, SW2: 00

    CLA: 80, INS: P1 01: 00, P2: LK, 00:01:45, the: 00, SW1: 6f, SW2: 00

    run:

    BUILD successful (total time: 6 seconds)

    The last line is where is my mistake. 6F00 indicates that there is no specific diagnosis. I don't know where I went wrong in my code. Any help or advice would be appreciated. Thank you!

    According to this - https://forums.oracle.com/message/10589893 , you should use KeyBuilder.LENGTH_RSA_512 when you use a Java Card sim card. So now the correct code is:

    package GenSignVerify;

    Javacard.framework import. *;

    Javacard.security import. *;

    /**

    *

    Raja * @author

    */

    SerializableAttribute public class GenSignVerify extends Applet {}

    private key pair key = null;

    SIG Signature private;

    Byte [] testSig = new byte [256];

    Byte [] test = {0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f};

    Check Byte [] = {0x00};

    public GenSignVerify() {}

    CREATE THE SIGNATURE OBJECT

    GIS = Signature.getInstance (Signature.ALG_RSA_SHA_PKCS1, false);

    }

    {} Public Shared Sub install (byte [] Baker, short bOffset, bLength bytes)

    GP-compatible recording of JavaCard applet

    new GenSignVerify () .register (Baker, (short) (bOffset + 1), Baker [bOffset]);

    }

    {} public void process (APDU apdu)

    value Boolean = false;

    GOOD PRACTICE: BACK 9000 ON SELECT

    If (selectingApplet()) {}

    return;

    }

    Byte [] buf = apdu.getBuffer ();

    switch (buf [ISO7816. {} OFFSET_INS])

    case (byte) 0 x 01:

    If (key == null) {}

    try {}

    CREATE THE RSA KEY PAIR

    keys = new pair of keys (KeyPair.ALG_RSA, KeyBuilder.LENGTH_RSA_512);

    }

    {} catch (EC CryptoException)

    short-reason = ce.getReason ();

    }

    START THE PROCESS OF GENERATION OF CARD KEYS

    keys.genKeyPair ();

    }

    INITIALIZE WITH THE PRIVATE KEY

    SIG.init (Keys.getPrivate (), Signature.MODE_SIGN);

    BUFFER INCOMING SIGN

    short Len = sig.sign (test, (short) 0, (short) test.length, testSig, 0 (short));

    INIT WITH PUBLIC KEY

    SIG.init (Keys.getPublic (), Signature.MODE_VERIFY);

    VERIFY THE SIGNATURE

    value = sig.verify (test, (short) 0, (short) test.length, testSig, (byte) 0, len);

    IF AUDITED CORRECTLY, RETURNS 1, OTHERWISE RETURN 0

    If {(value)

    Check [0] = (byte) 0 x 01;

    }

    apdu.setOutgoing ();

    apdu.setOutgoingLength ((short) verify.length);

    apdu.sendBytesLong (check, (short) 0, (short) verify.length);

    break;

    0xCA, case (byte):

    break;

    by default:

    good practice: If you don't know the statement, say:

    ISOException.throwIt (ISO7816.SW_INS_NOT_SUPPORTED);

    }

    }

    }

    With the same script APDU, I get the following result:

    Received ATR = 0x3b 0xf0 0x11 0 x 00-0xff 0x00

    CLA: 00, INS: a4, P1: 04, P2: Lc, 00:06, 19, 55, 06, 33, c5, d0, the: 00, SW1: 90, SW2: 00

    CLA: 80, INS: ca, P1: 00, P2: Lc, 00:03, 4, 43, 33, the: 00, SW1: 90, SW2: 00

    CLA: 80, INS: d2, P1: 00, P2: Lc, 00:03, 4B, 4 d, the 33,: 00, SW1: 6 d, SW2: 00

    CLA: 00, INS: P1 01: 00, P2: Lc, 00:00, the: 01, 01, SW1: 90, SW2: 00

    Hope that helps someone who is stuck...

  • Extraction of multiple values

    Hi all

    I have three tables A, B, C. The query is like that

    SELECT A.TL, (by SELECTING A.AID, A.ff IN A, B, C
    WHERE A.FN = 'PA'
    AND A.AID = B.AID
    And B.code = '01'
    AND B.PID = 'B001'
    AND B.CID = C.CID
    AND C.CID = 'T001') OF A, B, C
    WHERE A.FN =' IT
    AND A.AID = B.AID
    And B.code = '01'
    AND B.PID = 'B001'
    AND B.CID = C.CID
    AND C.CID = 'T001'

    Whenevr I execute this query, I get an error message because the inner query is pulling two values which is does not match outerqueries. If someone can guide on it.

    Thank you
    HRS

    Enter this thread as answered and open a new one in the sql forum:
    SQL and PL/SQL

    Here you get a faster response.

    Thank you

  • Creative cloud himself sign randomly

    I've seen a couple of other discussions about this but wanted to chime say it happens to me, too.  Frequently. My symptoms are the same as the users phthalojohan (http://forums.adobe.com/message/5559213) and DoNotWantAScreenName (http://forums.adobe.com/thread/1275057) so I don't it rehash all that here.  Suffice it to say, it's really, really boring.  I am running a 64 bit OS, so I don't know if my problem is related to the 'trial on launch' issue (l http://helpx.adobe.com/creative-suite/kb/64-bit-creative-suite-applications-repeatedly.htm).  Is there a quick way to tell?  Any help to fix this would be greatly appreciated.

    My system features:

    Lenovo ThinkStation S30

    Windows 7 Professional 64-bit Service Pack 1

    Intel Xeon E5 1620 3.6 GHz quad-core processor

    32 GB of DDR3 memory

    nVidia GeForce GTX 660

    Try these:

    1. right click on one of the CC apps and run as administrator.

    2 turn off UAC, restart your machine and launch any app to run it as an admin: http://blogs.msdn.com/b/hyperyash/archive/2012/07/18/disabling-user-ac County-control-in-windows - 8.aspx .

    3. activate hidden admin and try to activate again: http://www.howtogeek.com/howto/windows-vista/enable-the-hidden-adminis trator-account-on-windows-vista / .

    4 put up-to-date CC Office and try to connect again: https://creative.adobe.com/products/creative-cloud .

    5. Selective startup: http://windows.microsoft.com/en-in/windows-vista/run-selective-startup-aide-syst th-configuration

    See you soon!

    Ankit

  • Insertion or not based on the date range

    This has been driving me crazy and any help would be greatly appreciated.

    I have the following data
    A_ID    R_ID    START_DATE  END_STATE  
    15027   28531   10/1/2008   10/1/2010
    15027   28531   10/1/2010   10/1/2015
    I would not be able to insert a row with the following
    A_ID    R_ID    START_DATE  END_STATE  
    15027   28531   10/1/2009   10/1/2999
    15027   28531   10/1/2007   10/1/2999
    But I should be able to insert a row with the following
    A_ID    R_ID    START_DATE  END_STATE  
    15027   28531   10/1/2007   10/1/2008
    15027   28531   10/1/2015   10/1/2999

    Maybe this,

    I have not analyzed completely it. If I missed any, let me know.

    SQL> WITH T
      2       AS (SELECT   15027 AID
      3                   ,28531 RID
      4                   ,TO_DATE ( '10/1/2008', 'MM/DD/YYYY') start_date
      5                   ,TO_DATE ( '10/1/2010', 'MM/DD/YYYY') end_date
      6             FROM   DUAL
      7           UNION ALL
      8           SELECT   15027 AID
      9                   ,28531 RID
     10                   ,TO_DATE ( '10/1/2010', 'MM/DD/YYYY') start_date
     11                   ,TO_DATE ( '10/1/2015', 'MM/DD/YYYY') end_date
     12             FROM   DUAL),
     13       should_shouldnot
     14       AS (SELECT   15027 AID
     15                   ,28531 RID
     16                   ,TO_DATE ( '10/1/2007', 'MM/DD/YYYY') start_date
     17                   ,TO_DATE ( '10/1/2008', 'MM/DD/YYYY') end_date
     18             FROM   DUAL
     19           UNION ALL
     20           SELECT   15027 AID
     21                   ,28531 RID
     22                   ,TO_DATE ( '10/1/2015', 'MM/DD/YYYY') start_date
     23                   ,TO_DATE ( '10/1/2999', 'MM/DD/YYYY') end_date
     24             FROM   DUAL
     25           UNION ALL
     26           SELECT   15027 AID
     27                   ,28531 RID
     28                   ,TO_DATE ( '10/1/2009', 'MM/DD/YYYY') start_date
     29                   ,TO_DATE ( '10/1/2099', 'MM/DD/YYYY') end_date
     30             FROM   DUAL
     31           UNION ALL
     32           SELECT   15027 AID
     33                   ,28531 RID
     34                   ,TO_DATE ( '10/1/2007', 'MM/DD/YYYY') start_date
     35                   ,TO_DATE ( '10/1/2999', 'MM/DD/YYYY') end_date
     36             FROM   DUAL)
     37  SELECT   *
     38    FROM   should_shouldnot s
     39   WHERE   NOT EXISTS
     40              (SELECT   'x'
     41                 FROM   T
     42                WHERE       T.aid = s.aid
     43                        AND T.rid = s.rid
     44                        AND ( (s.start_date < T.start_date
     45                               AND s.end_date > T.start_date)
     46                             OR (s.start_date > T.start_date
     47                                 AND s.end_date < T.end_date)));
    
           AID        RID START_DAT END_DATE
    ---------- ---------- --------- ---------
         15027      28531 01-OCT-07 01-OCT-08
         15027      28531 01-OCT-15 01-OCT-99
    
    Elapsed: 00:00:00.00
    SQL> 
    
  • Recursive queries with external table anchor

    Hi, I had the tables A and B. In table B, reviews are a tree structure. For each record in A, I want to get the respective records in B, in the following way:

    SELECT
    a.x, b.y
    Of
    one
    CROSS JOIN
    (
    SELECT * FROM b
    START WITH id = a.x
    CONNECTION BY b.id = b.parentid PRIOR
    ) b

    And I get the error indicating that the column a.x is not known. Is it possible to use columns of the external table as anchor points for a recursive queries? Or y at - it another way to form such a query?

    Thank you.

    Published by: David Hoksza on 13.11.2008 17:07

    Hello

    If all lines in b "inherits" the help of all its descendants.
    In this case, do a subquery on b which associates each line with all its descendants (and itself).

    WITH     bt     AS
    (
         SELECT DISTINCT     aid
         ,          CONNECT_BY_ROOT id     AS root_id
         FROM          b
         CONNECT BY     parentid     = PRIOR id
    )
    SELECT     a.id          AS "a.id"
    ,     bt.root_id     AS "b.id"
    FROM     a
    JOIN     bt     ON     a.id     = bt.aid
    ;
    

    Note that there is no START WITH clause. We want each row of b is considered to be the root of its own subtree.

    Sorry, I don't have Express Edition to test this. It works in Oracle Enterprise Edition 10.
    If CONNECT_BY_ROOT does not work (it was not available in Oracle 9), you can get the same information from SYS_CONNECT_BY_PATH.

Maybe you are looking for

  • Why would Malwarebytes shows a potential threat to the Firefox profile

    Recently, I installed Malwarebytes (free version) and after analysis, it detects the Firefox profile.What would be the threat of Firefox, I don't understand? Any advice, suggestion or help will be appreciated. Thank youPS can be after validation that

  • contacts Favorites/Favorites?

    I wonder what is the purpose of the function of favorites... I have one of my contacts marked as Favorites or played, but I noticed no difference except when I look at coordinates the star is red... but otheer than that and you while knowing that the

  • Replication of different subnet

    I need to configure the replication of an existing EQ group which has all of its interfaces on a subnet that is not routed; a newly staged group who will live in a different subnet.  Initially, the two groups will be co-located for staging, but the n

  • Installation of Windows 7 in a new hard drive

    Hello I would like to replace my hard drive with an SSD laptops. I have burned DVD that were made when I started my computer. Can I install WIndows on the new hard drive with the CD? If not, how can I get a copy of windows for my new hard drive? Than

  • Where can I get windows 7/Vista?

    Hi, I have a computer that is running windows 7, and I want to restore it to factory settings, but I need a recovery image. You can get one a download of microsoft with the original product key, except that my computer came originally installed with