Safe way to cancel queries in dbxml shell utility?

Is there a (safe) way of cancelling a query you're running in the dbxml shell? Because I'm using a throwaway test container I've gone and used Ctrl-C a couple of times but it exits the shell completely so may be leaving the open container in a mess.
If I had a working container properly set up with transaction support, locking, logging etc. and I wanted to test new XQueries from the shell afterwards, how would I interrupt queries which were slow, contained typos seen to late, etc.?
There's an "abort" command but I don't think that's what I'm looking for as I'm not trying to stop transactions.
Tim

Tim,
I assume you are adding some documents, then querying, and when that takes a long time, hitting ^C. In the 2.2.13 dbxml shell, the best way to ensure that your container is consistently on disk is to create the container, add documents, and then exit the shell.
After that, you can restart the shell, open the container, and query/^C away and the container will still be intact. The reason is that exiting the shell closes the environment, which flushes the cache to the disk.
As John mentioned, the upcoming 2.3 release has better ^C support in the shell. It also has a "sync" subcommand that flushes the cache to disk.
Regards,
George

Similar Messages

  • Reindex Container in dbxml shell.

    Hello,
    I am in the process of upgrading from 2.3.10 to 2.4.13. In the release notes, I read the following:
    "Most queries will benefit from reindexing 2.3.X-based containers to add new structural statistics information used in query cost analysis. Reindexing is required in order to enable the substring index to be used on 1- and 2-character strings (a new feature in 2.4)."
    OK, so I would like to have these statistics info added. According one of the other documents, I need the following parameters:
    name
    The path to the container to be reindexed.
    context
    The update context to use for the reindex operation.
    flags
    Use DBXML_INDEX_NODES to change the container's index type to node indexes, and use DBXML_NO_INDEX_NODES to change the index type to document indexes. Use DBXML_STATISTICS to add a structural statistics database to the container during reindexing, and DBXML_NO_STATISTICS to remove an existing structural statistics database.
    The name of my container is system, but what should I use for context when I use it in the dbxml shell?
    dbxml> reindexContainer system ????? DBXML_STATISTICS
    What goes on the place of the ????.
    As a general note, it would be helpful to add examples of commands to execute when upgrading from one version to the next.
    Thanks in advance for your help.
    Regards,
    Bas.

    Bas
    The syntax used by the dbxml shell is different from that of the C++ API. The syntax for the shell for reindexContainer is:
    dbxml> reindexContainer <containerName> <d|n>
    To get the syntax and description of any command just use the following in the shell:
    dbxml> help <command>
    Although, it appears that the shell cannot be used to add the statistics database to your container. To do that you will have to write a small program that uses the C++ API.
    Lauren

  • Is there a safe way to get a password using bash?

    Hey, I need to safely get a password in my bash script for encrypting some files. Currently my script just listens on a named pipe for something to come through and uses that for encrypting (I wasn't sure if it was safe to type a password in a shell script).
    I would prefer something non-interactive if at all possible. This is going to be a cron job, so if it has to be interactive, it should be able to get my input without a terminal emulator. Any suggestions?

    fukawi2 wrote:
    Non-interactive is counter-intuitive to what passwords are for...
    What is the problem you're trying to solve?
    I need a cron job to encrypt something with a password. If I store the password in plain text, I lose security. If it requires input, then it's not very useful to schedule it. I wasn't really thinking that hard when I asked this question. I should have known that there wasn't really any way to reconcile these two needs.
    Maybe I'll just go with the "security through obscurity" route... my root partition is encrypted anyways, and with proper permissions on the file I could be pretty sure that nobody will read the password. Throw in some obfuscated code and hope that nobody really, really smart gets ahold of my computer while it's running.

  • SSRS - Is there a multi thread safe way of displaying information from a DataSet in a Report Header?

     In order to dynamically display data in the Report Header based in the current record of the Dataset, we started using Shared Variables, we initially used ReportItems!SomeTextbox.Value, but we noticed that when SomeTextbox was not rendered in the body
    (usually because a comment section grow to occupy most of the page if not more than one page), then the ReportItem printed a blank/null value.
    So, a method was defined in the Code section of the report that would set the value to the shared variable:
    public shared Params as String
    public shared Function SetValues(Param as String ) as String
    Params = Param
    Return Params 
    End Function
    Which would be called in the detail section of the tablix, then in the header a textbox would hold the following expression:
    =Code.Params
    This worked beautifully since, it now didn't mattered that the body section didn't had the SetValues call, the variable persited and the Header displayed the correct value. Our problem now is that when the report is being called in different threads with
    different data, the variable being shared/static gets modified by all the reports being run at the same time. 
    So far I've tried several things:
    - The variables need to be shared, otherwise the value set in the Body can't be seen by the header.
    - Using Hashtables behaves exactly like the ReportItem option.
    - Using a C# DLL with non static variables to take care of this, didn't work because apparently when the DLL is being called by the Body generates a different instance of the DLL than when it's called from the header.
    So is there a way to deal with this issue in a multi thread safe way?
    Thanks in advance!
     

    Hi Angel,
    Per my understanding that you want to dynamic display the group data in the report header, you have set page break based on the group, so when click to the next page, the report hearder will change according to the value in the group, when you are using
    the shared variables you got the multiple thread safe problem, right?
    I have tested on my local environment and can reproduce the issue, according to the multiple safe problem the better way is to use the harshtable behaves in the custom code,  you have mentioned that you have tryied touse the harshtable but finally got
    the same result as using the ReportItem!TextBox.Value, the problem can be cuased by the logic of the code that not works fine.
    Please reference to the custom code below which works fine and can get all the expect value display on every page:
    Shared ht As System.Collections.Hashtable = New System.Collections.Hashtable
    Public Function SetGroupHeader( ByVal group As Object _
    ,ByRef groupName As String _
    ,ByRef userID As String) As String
    Dim key As String = groupName & userID
    If Not group Is Nothing Then
    Dim g As String = CType(group, String)
    If Not (ht.ContainsKey(key)) Then
    ' must be the first pass so set the current group to group
    ht.Add(key, g)
    Else
    If Not (ht(key).Equals(g)) Then
    ht(key) = g
    End If
    End If
    End If
    Return ht(key)
    End Function
    Using this exprssion in the textbox of the reportheader:
    =Code.SetGroupHeader(ReportItems!Language.Value,"GroupName", User!UserID)
    Links belowe about the hashtable and the mutiple threads safe problem for your reference:
    http://stackoverflow.com/questions/2067537/ssrs-code-shared-variables-and-simultaneous-report-execution
    http://sqlserverbiblog.wordpress.com/2011/10/10/using-custom-code-functions-in-reporting-services-reports/
    If you still have any problem, please feel free to ask.
    Regards
    Vicky Liu

  • Is this a "safe" way to upgrade to lion and transfer apps/data to new imac?

    I have an older imac running 10.6.8 and I am considering buying a new one.
    I read a link with guidleines to upgrade to lion. My question is:
    After upgrading to lion, I am going to buy a new imac and want to move to the new imac with the least inconvenience. I have a lot of music app/usb interfaces so the time to reconfigure everything would be very time consuming.
    So is the "safe" way to do it?
    Do a time machine backup of current configuration.
    Follow the link I saw outlining upgrading from 10.6.8 to lion on my current imac.
    Get everything working again on the current imac with mountain lion.
    Do a time machine backup of the lion configuration.
    Get the new imac and on first boot, elect to restore from the time machine backup wiping out what came installed on the new imac.
    Another time machine backup on the new imac.
    I should be done?
    or is there a better /safer way?
    I have been putting this off for almost year because of the number of apps I am running and devices I have connected. a short list.
    file servers off firewire 800 and 400 ( I know I will need the thunderbolt to firewire adapters).
    approx 12-18 usb devices all connected either directly or daisy chained through usb controllers connected to usb controllers.
    about 10 external USB drives.
    vmware
    midi interfaces for piano/guitar.
    m-audio fast track ultra
    multiple DVD/blu-ray reader/writers
    Hence my concern for a smooth transition
    thanks in advance.

    There is really no need to update the older iMac running 10.6 to Lion, especially if you have multiple backups of your User Data. You can easliy move or migrate data from any one of your External HDs or Server to the new iMac.
    As for your current iMac:
    If you plan on selling the older iMac, Lion is not transferable and you will want to sell it with a clean install of 10.6 and let the new owner upgrade.
    If you plan on keeping the older iMac around for others to use and it supports Mountain Lion, then in my humble opinion Mountain Lion is the better upgrade.
    As for your other devices:
    • Yes, Thunderbolt to FireWire adapter
    • Yes, external USB 2.0 and 3.0 devices are backwards compatible
    • Sorry, I don't use vmware
    • Sorry, I don't use midi interfaces
    • Sorry, I don't use m-audio
    • Yes, my external DVD drives work with various Mac's running 10.6 thru 10.8
    Sorry I can't better answer your Audio questions. If no one else comes along with the answers here, then you might try starting another ASC question focused on those transitions.

  • I am struggling! Help! I need to move 3500 pics-in TIFF format in 175 folders and sub folders from my old PSE6, Windows XP to my new PSE13, Windows8.1. I have the PSE6 backed up on an external hard drive. What is the safe way to do this? Can anyone at Ado

    I am struggling! Help! I need to move 3500 pics-in TIFF format in 175 folders and sub folders from my old PSE6, Windows XP to my new PSE13, Windows8.1. I have the PSE6 backed up on an external hard drive. What is the safe way to do this? Can anyone at Adobe help me? Please?

    Use the Organizer backup & restore method, starting the restore from the TLY file. Probably best to use a custom location as the XP file structure will be different. See this link for further help:
    http://helpx.adobe.com/photoshop-elements/kb/backup-restore-move-catalog-photoshop.html

  • Is there any way of cancelling a broadband order o...

    Is there any way of cancelling a broadband order on the grounds of unreasonable delay in fulfillment? I've moved house and office I was told that my phone number would be moved and my broadband set up within two weeks - that is, one week after moving. This was just about acceptable since moving is always chaotic and friends, clients and colleagues expect it. But I run my business from home and I have been told today (19 Jan) that I will have to wait another week.This is unacceptable to me if I can find an alernative supplier who will set me up within the next few days.

    Welcome to the BT Residential Customers forum
    As you are a business user, please could you post on the BT Business forum at http://business.forums.bt.com/
    Thanks
    For information, this may help regarding any claims.
    http://www2.bt.com/static/i/btretail/panretail/terms/bt1121.htm
    Bear in mind, its Openreach that do any provision works for all service providers, so cancelling and changing providers, would send you to the bottom of the queue.
    Broadband provision cannot take place until there is a working telephone line. Once that is in place, then there will be a delay until the broadband task can be completed, depending on how busy Openreach are.
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

  • Can I install arche in "safe" way from other worki

    Can I install arche in "safe" way from other working distro?
    Like Debootstrap for example.
    I don't like regular install that I don't have control of the installation procees and It work as root alone so It's need very careful in the partition level.
    It is possible?

    Lone_Wolf wrote:Check Install_Arch_from_within_another_distro
    I want to install again arch but now there isn't pacman.static.
    What should I do?
    Solved:
    I install pacman and libdownload and now I can install with normal pacman
    Last edited by nadavvin (2008-08-19 17:12:16)

  • What is the best way to cancel the related update from aboutToUpdate ?

    What is the best way to cancel the related update from DescriptorEventAdapter.aboutToUpdate ?
    Anyway to manipulate descriptorEvent.getQuery() so that it doesn't generate anything?
    In our specific case, TopLink 11 - EclipseLink 2.0.2 generates useless update, so we want to silence them to avoid DB round trip.

    Mustafa,
    Thats the way to kill the Job, But We are not Authorized for SM50.
    At present we will raise a request to the Basis to do that. Speaking from user point of view is there any better way to handle it.
    Tony

  • In case my input RAW/DNG files are already applied white balance , is there a way to cancel the white balance in light room ?

    Hello I am new to lightroom and I am verifying this tool  as a tool for raw converter (for image quality team)
    In case my input RAW/DNG files are already applied white balance gain
    Is there a way to cancel the white balance in light room ?
    Thanks
    Ron

    Make sure that Develop Settings being applied during import is set to "None".

  • Is down loading projects to DVD's a safe way to edit and save?

    Yesterday I posted "Is down loading projects to DVD's a safe way to edit and save?". It got deleted. Being a newbe I got it in the wrong forum. I got it in "Post New Thread in Forum Comments". I was asked what path I used; I opened the home page. I ticked Discussions / Start New Discussion. I was so baited by the lure to post, I did not see the small "Adobe Forums" at the top and bottom of the page. I also did not understand the large "Post New Tread in Forum Comments". It was a bit confusing to me. But thanks to you guys I see the light.
    I read the discussion I started in "Why do we keep moving Post?". I was branded as a lost soul. I want to thank all of you for helping find my way. No one was rude or even harsh. I have been on other Forums and if you make a mistake you get blasted.
    I also want to thank you for all the answers I got for my original post. I read up on SATA and I can see that is where I need to make some changes to my portioned HD. I am sure I will be leaning on you for a lot of help for such a "Lost soul". And that I am. I am your typical 61 year old who got started late on computers.
    The fact that my HD is portioned is not a good thing I learned. I am not sure if my computer has the Power Supply or the Mother Board to convert to SATA. My question is: Will eSATA work in place of the internal SATA?
    Will I need two; one for editing and one for storage.
    I have an outboard I Omega with about 650GB, I think. Not sure if it is SATA, but it has worked well for my backup videos and general files.
    Thanks Again and I hope I got it right this time.
    I'm timid about ticking the "Post Message" , but here goes......Ohhhhhhhhh.....

    The system process in control panel MAY give you some of that information
    It should ALL be available with the information the system builder gave you... he DID give you the paperwork that came with the individual components?
    Taking the side panel off the case and looking inside with a flashlight might also help... but, of course, you'll need to know what it is you are seeing, and it sounds like you don't know much about hardware, so that may not help much
    Sadly, if the person who built this "video editing" computer didn't really understand video editing, you are left with a computer that won't do what you want, and no easy way to make it work
    You may need to find a computer shop to do this for you... and make sure part of their price is giving you a written list of everything you HAVE and everything they DO in the way of additions or configuration changes

  • [svn:cairngorm3:] 17952: simpler and safer ways to handle flex3 and flex4 sdk and profiles

    Revision: 17952
    Revision: 17952
    Author:   [email protected]
    Date:     2010-09-30 08:02:19 -0700 (Thu, 30 Sep 2010)
    Log Message:
    simpler and safer ways to handle flex3 and flex4 sdk and profiles
    Modified Paths:
        cairngorm3/trunk/build-parent/pom.xml
        cairngorm3/trunk/libraries/lib-parent/pom.xml
        cairngorm3/trunk/pom.xml

  • Is there a safe way to disableversioning

    Is there a safe way to disableversioning on a schema with ~100 tables, where both indexes and constraints had length > 26 when versionenabling?
    I've tried to use the dbms_wm.alterversionedtable to ajust the indexes and constraints but still have problems in totally disabling versioning.

    What are the errors when you call disableversioning? Only commitDDL does not support constraints and index name lengths > 26 characters.
    If the tables are related to each other by referential integrity constraints, then you only need to call disableversioning once, by including the entire table set in the procedure call.
    Regards,
    Ben

  • I have a problem with Orbyt - an app with no way to cancel subscription

    I have subsbscribed to this app, what is an app with access to some newspapers and magazines online, but I have decided to not continue suscribed, but, that is my problem, there is no way to unssuscribe to this service (I cannot cancel the subscription but they can take my mone monthly from me).
    Let me explain the ways I have followed to cancel the subscription:
    Mail and call to Orbyt client service, they claim the sign on was made thru iTunes, so, they say they are not able to cancel my subscription. Contacted apple, they claimed is 'itunes store' and not apple which has to cancel the subscription, no way to contact itunes store staff to request to cancel this subscription. so, my question is this.
    Is there a way to cancel the subscription to this app thru itunes, a way to contact 'itunes store' people to request them to cancel the subscription?

    Great! I finally found how to cancel the subscription, but is a little tricky, and hard to find, anyway, hare is the solution I found to share with the most as possible:
    In iTunes, go to account details, and there is a section to cancel automatic subscriptions!!!
    Thanks all for your support and attention!!

  • A way to cancel Report inappropri​ate content and IMs.

    Is there a way to cancel Report inappropriate content and IMs?
    For example, I went Report inappropriate content, then reported the issue. After reporting the issue, I realized that the post was recenly mergered into an existing thread.
    In case that happens again, I  (and I am sure other user's) would like to cancel the "Report inappropriate content".
    Thanks.
    If you are the original poster (OP) and your issue is solved, please remember to click the "Solution?" button so that others can more easily find it. If anyone has been helpful to you, please show your appreciation by clicking the "Kudos" button.
    Solved!
    Go to Solution.

    There isn't any way to cancel it once it's submitted.  Just send a PM to any of the moderators that you realized your mistake afterwards so we're not scratching our heads. 
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer that solved your issue as the accepted solution.

Maybe you are looking for

  • Problem with installation CF7 on W2K3

    //Original message // Здравствуйте, отдел поддержки Macromedia(Adobe). // // Проблема: При установке ColdFusion MX 7 на операционную систему Windows 2003 Server на // // любой web-сервер (пробовал на Apache и на IIS) в лог-файле следующее: // // Inst

  • "Install button" doesn't function when updating to 10.6.1 or 10.6.2

    The main problem is my "install" button simply doesnt trigger any response, it is highlighted and has the click animation but, again, heeds no effects. Nothing happens. I recently installed snow leopard and there were quite a few problems but I have

  • Render out a blend mode

    is there any way to render out a blend mode layer so when it's on normal it still looks like the blend mode with the transparency etc... I want to export some design to .png files to use in a web page, and I need the blend mode to work with out the p

  • Report Veiwer asking for Windows Logon (not database logon)

    Hi there, I'm developing a C# web application in Visual studio 2010; and I'd like to include some crystal reports. I've done the reports, and they work well, but here's my problem: - I keep on getting prompted to log in to my computer (windows creden

  • HT5137 after I installed mavericks my music on iPhone5 doesn't work

    after I installed os mavericks my music application cannot be open and it doesn't even launch, omg it's so annoying, if anyone knows how to fix it or have the same problem please let me know