Bad perfomance with oo4o and vb 6.0

i have start the same select question in odbc (with acccess) and vb with oo4o in odbc it took 2sec in vb 2 min!
for example: this one (in vb) is fast
select * from persons where tin=:tin
but this one very slooow
SELECT t.item_no_val FROM PERSONS PER_PAID,SUBM_TAX_FORMS SBF,TAX_ITEM_VALUES T WHERE PER_PAID.LPRN=SBF.LPRN_PAID AND sbf.drn = t.sbf_drn AND SBF.TF_FORM_CODE = 'PIT-37'AND sbf.dec_status = 'Z' AND sbf.tax_year = 2002 AND t.tfi_item_no = '101' AND sbf.complete_ind in ('W','S') AND T.SBF_DRN = SBF.DRn and per_paid.tin=:tin
but in access (odbc) i have answer fast

Try changing the optimiser goal for the session with
db.ExecuteSQL "ALTER SESSION SET OPTIMIZER_GOAL = FIRST_ROWS"
Try FIRST_ROWS and the other option(s).

Similar Messages

  • What's wrong with OO4O and delphi

    I am trying usint OO4O to fetch the spatial data in delphi,but I can not use the opendatabase function.
    here is the code
    var
    OO4OSession:variant;
    OraDatabase:variant;
    begin
    OO4OSession:= CreateOLEObject('oracleInProcServer.XOraSession');
    OraDatabase:=OO4OSession.OpenDatabase('ExampleDb','scott/tiger', 0);
    end;
    the code is from the help.the error says that the opendatabase member function is not find.
    and when I trying to import type library of Oracle InProc Server 4.0 Type Library,when compile the unit,the error messages are like below
    [Error] OracleInProcServer_TLB.pas(2548): Undeclared identifier: 'CreateDatabase'
    [Error] OracleInProcServer_TLB.pas(2553): Undeclared identifier: 'OpenDatabase'
    [Error] OracleInProcServer_TLB.pas(2573): Undeclared identifier: 'Open'
    [Error] OracleInProcServer_TLB.pas(2578): Undeclared identifier: 'Close'
    [Error] OracleInProcServer_TLB.pas(2706): Undeclared identifier: 'Name'
    [Error] OracleInProcServer_TLB.pas(2712): Undeclared identifier: 'OpenDatabase'
    [Error] OracleInProcServer_TLB.pas(2717): Undeclared identifier: 'Client'
    [Fatal Error] dclusr50.dpk(41): Could not compile used unit '..\Imports\OracleInProcServer_TLB.pas'
    Realy strange,can some one help me on this ,Thank u very much.

    I would recommend you don't use oo4o from Delphi.
    Check out ODAC at www.crlab.com. This is a VCL library based on the OCI directly so you will not have the backwards compatibility woes that come with oo4o.
    A library is also available from the same company that doesn't need the Oracle Client installed.
    Hope this helps.
    Adrian

  • MY BAD EXPERIENCE WITH CHAT AND VISION

    In my personal e-mail I received publicity inviting me to purchase a Skype credit gift card. I thought it was a nice offer and I happened to have a friend that had the need and could use such a gift. I procedeed to purchase a $10 dollar gift card, I did the transaction from Colombia and sent it to my friend in the US. Shortly after the purchase I received a message warning me that my order was being under security scrutiny. I found it unexpected and unjustified (Is my $10 dollar order a security risk of some sort?), but I thought that maybe it was because it was an international order, and I understand the need for security in online transactions, so I decided to not worry, trusting in the spotless service that I have had from Skype up to that point. At that moment I noticed that the one providing the service was no Skype but Chat And Vision (whose website, by the way, looks far less friendly than Skype's).
    Then I received an Email telling me that the order has been rejected. No justification, no explanation. Just a politely worded but most unhelpful and uninformative e-mail.  It made a point of telling me that they didn't retain the payment, yet my card was charged and no refund has been made so far. I replied the e-mail asking for a reason, and how to get a refund. I received the automated reply telling me that somebody would contact me the next day. It's been a day and no reply so far.
    Searching online I found mine was only one in a long list of blunders and poor service from Chat And Vision. The complains on forums and online outnumber the claims of good service. Mine is a very small case compared to other complains I have read about. It was a small purchase for a smal amount, but it turned into an unexpectedly unpleasant experience for something that should have been a simple purchase ( Am I really such a security risk that I can't be allowed to place an order for a gift card?)
    In the end I feel that I was snared into a trap with that offer. I trusted, I paid, didn't receive the goods, haven't yet received the refund, my friend really needed that gift and had to do without, which caused him inconvenience, my high regard from Skype has been tarnished, and I'll hesitate to make new purchases of Skype services in the future, if they keep being powered by Chat And Vision.

    Some updates: I received two e-mails from Chat And Vision, regarding my two questions as to why my order was rejected and how to get my money back. These are the answers:
    The first one (Ticket ID: PBF-650-80186), says: "Thank you for your email. Firstly, apologies for the inconvenience this may have caused to you. Unfortunately, due to security reasons I am unable to divulge this information. However, should you wish to make another purchase with us again, we will try to process your new order instead".
    Polite but uninformative. Notice that beyond an unfocused general apology it does not acknowledge any problem nor does pledge any improvement, just a vague statement that they may allow me to use it's service again if I choose to try (not exactly reasuring).
    A second answer to a second e-mail says: (Ticket ID: SVN-701-71147) "Thank you for your email, please be assured the money will be refunded back to you."
    That's all. Again polite but no useful information, just a vague assurance of refund, somehow, someday into the indefinite future. If it happens I'll post it here but I'm not holding my breath.
    Reading other answers from Chat and Vision posted online here and on other forums dealing with their service, there appears to be a pattern of politeness, vageness, refusal to acknowledge problems and absence of a pledge to improve. Their costumer care seems designed to placate the user without promising to get better, and is so devoid of helpul attitude that it makes me believe that their messages are redacted by a software program, and consumer complains never reach any administrative person. I might be wrong but the doubt has been sown which is a shame. Up until now I was very vocal on my praise for skype, recomending it to family and friends as a very useful and good service, but this experience with Chat and Vision, and my discovery of their costumer service history online, has set me thinking about looking for alternatives to Skype, and certainly has dissuaded me to recomend Skype to anyone ever again,or at least while their sales are still managed by Chat And Vision, or at least while Chat and Vision continues its customer service attitude, polite on the surface but haughty and unhelpful underneath.
    If there are new updates I might post them here, but for now I will not pursue the matter further since the amount involved was small and I see no point in sending more e-mails to Chat and Vision. I just feel bitter that the great service that I felt was Skype has ben tarnished by this experience. Just some final thoughts: 
    I do not complain that my order was scrutinized by security reasons, I understand the risk of illegal activity on online transactions, and the need of online companies to be careful, but the process Chat and Vision used seemed overly unconcerned for the confort of the consumer. It took around a full day for my order to be scrutinized and then rejected, which did let me for a long time in the dark not knowing if my gift would reach the friend I wanted to give it to. This is 2014, does Chat and Vision not have the tecnology to do a better and faster process? Do they scrutinize online orders by hand? I have read more cases similar to mine here on this forum, which to me implies that Chat and Vision are overly and unnecessary zealous on their security procesess. ( Also it is jarring that they seem to consider their clients to be criminals, for no reason at all and with no opportunity to contest the charge.)
    If they are going to reject a transaction on security reasons, why not do it before the payment is processed, not after, which can be stressful to the consumer that gave the money and didn't receive what was advertised, for no real reason. Seems to me there is a mistake in the way the system is set, or there is a clear disdain of what the client might think or feel.
    I think that's all. Thank you if you went all the way thru this overly long rant. If you are a consummer beware that when you buy services from Skype, you are not buying from Skype but from somebody else and that somebody else does not have a spotless record. If you are an administrative person from Skype or Chat and vision, I hope you eventually prove me wrong about your unconcern for the welfare of the consumer. My experience so far is not encouraging but that may change.
    Have a good one.

  • RAW problem with OO4O and VB6.

    Hello!
    Env: W2K3 SBS R2, O11gR2, OO4O, VB6 and problem from a "heritage" project ;-).
    /* Create a small Test table */
    Create Table ORAWTEST
    ( oid Number(10),
    bflags Raw(4)
    ) Tablespace USERDATA Storage(Initial 32K Next 32K);
    ' ** A small VB6 app. **
    Dim osess As OraSessionClass, odb As OraDatabase, ors As OraDynaset
    Private Sub Form_Load()
    Set osess = CreateObject("OracleInProcServer.XOraSession")
    Set odb = osess.OpenDatabase("orcl", "uid/pw", ORADB_ORAMODE)
    End Sub
    Private Sub Form_Unload()
    odb.Close: Set osess = Nothing
    End Sub
    Private Sub Command1_Click()
    ' Insert 3 rows with different values Into Test table using Addnew() method.
    Dim ws As String
    Set ors = odb.CreateDynaset("Select * From ORAWTEST", ORADYN_ORAMODE)
    ws = Chr$(0) & Chr$(0) & Chr$(32) & Chr$(0)
    ors.AddNew: ors("oid") = 1: ors("bflags") = ws: ors.Update
    ws = Chr$(0) & Chr$(0) & Chr$(0) & Chr$(32) ' <-- !!! This is the problem.
    ors.AddNew: ors("oid") = 2: ors("bflags") = ws: ors.Update
    ws = Chr$(0) & Chr$(0) & Chr$(0) & Chr$(64)
    ors.AddNew: ors("oid") = 3: ors("bflags") = ws: ors.Update
    ors.Close
    End Sub
    ... and now the surprise:
    SQL> Select oid, RawToHex(bflags) From ORAWTEST;
    OID RAWTOHEX(BFLAGS)
    1 00002000
    *2 000000*
    3 00000040
    Row 2 bflags column last byte is missing (in case of x'20' value).
    Is it a bug, or whatever? Thanks for any idea in advance.
    Leslie

    OK ... I solved the first question. I'll post the answer as nobody on any of the forums where I've posted this question for the last year or so has known the answer - either that or they weren't willing to share it.
    In the form, CR puts the following boilerplate:
    Private Sub Form_Load()
    Screen.MousePointer = vbHourglass
    CRViewer1.ReportSource = Report
    CRViewer1.ViewReport
    Screen.MousePointer = vbDefault
    End Sub
    I found that if I added Report.DiscardSavedData before the report source is declared, the report is forced to refresh it's data each time it's run. So that solves the first part of my problem.
    Question 2 is still unknown ...
    Ken

  • How to get point ordinates in oracle spatial with oo4o and VC++

    Hi,
    I need some help baddly.Would someone help me?
    Now I need to get the point ordinates in a table called cities.I use oo4o C++ class library and VC++ 6.0 . In the table, the column name of SDO_GEOMETRY object
    type is "goem". For the reason that the table is created for a point layer, all the point ordinates are stored in the SDO_POINT.
    I read the ordinates in my program as below. But every time the final result of x,y,z are all be 0.000000000 . Although I checked it many times, I still couldn't found why.
    So could some experts tell me the reason or show me how to do that?
    Thanks in advanced.
    ODatabase odb("", "scott", "tiger");
    ODynaset odyn(odb, "SELECT * FROM CITIES");
    if (odyn.IsOpen())
    odyn.MoveFirst();
    OObject geometry;
    oresult ores = odyn.GetFieldValue("geom", &geometry);
    if(ores==OCSUCCESS)
    OObject sdopoint;
    const char* attrname3=geometry.GetAttrName(3);
         geometry.GetAttrValue(attrname3, &sdopoint);
         const char* ittypename=sdopoint.GetTypeName();     
         int itnumber=sdopoint.GetCount();
         int attrtype=sdopoint.GetAttrType(1);
         const char* attrnameX=sdopoint.GetAttrName(1);
    const char* attrnameY=sdopoint.GetAttrName(2);
         const char* attrnameZ=sdopoint.GetAttrName(3);
         double *x;
         double *y;
         double *z;
         sdopoint.GetAttrValue(attrnameX,x);
         sdopoint.GetAttrValue(attrnameY,y);
         sdopoint.GetAttrValue(attrnameZ,z);
    }

    Yes. I have tried your code and got the same result.
    And I also tried to use SQL to get the result.But it
    also failed.
    I am intrested in this problem too.
    Could some oo4o experts help me too?
    jeff

  • Is anyone else have poor connectivity and bad reception with 3g and 4g with this phone?

    3g and 4g connectivity is really poor! Has anyone heard that Verizon is working to fix this?

    I had a similar experience.  Called tech support and the problem was resolved.  Not perfect but a vast improvement.

  • SQL-Statement with OO4O

    Hello together,
    I post this Question here in
    Re: SQL-Statement with OO4O
    and i should paste my question again in an another database forum.
    now here again:
    I have here following Problem:
    Everthime I make a connection to my database with this code
    Set oSess = Server.CreateObject("OracleInProcServer.XOraSession")
    Set oDB = oSess.DbOpenDatabase(tnsname, user/PWD, 4)
    I get always this Statement in the DB-queue
    SELECT parameter, VALUE
    FROM SYS.nls_database_parameters
    WHERE parameter IN ('NLS_CHARACTERSET', 'NLS_NCHAR_CHARACTERSET')
    Can me anyone tell me why I get this statement and how I can disable it?
    Best Regards
    Andy

    Hi,
    What can you do/change?I must ask next week my boss when he is back,
    what kind of changes I can do.
    Can you add a PL/SQL call to DBMS_APPLICATION_INFO into application?my boss must give me the permission to do a call to DBMS_APPLICATION_INFO.
    A way to identify the source of the badly behaving code is required; whether that be within the DB or external of it.I think so too.
    So please wait, until I have talk with my boss, than I will give you the answer you want. Sorry.
    Any other ideas, what I can do without call/changes on the database to find the problem?
    Best Regards
    Andy

  • SQL Developer 1.1.0.23.64 on Mac OSX 10.4.8 - very very bad perfomance.

    Hello!
    I just downloaded SQL Developer 1.1.0.23.64 and I'm wondered by its inappropriately bad perfomance. "Tables" and "Views" node can't be opened, and simple (very simple) query "select * from dual" executes 15 to 30 seconds. Can it be worked around in any way? Oracle versions are 10g and 9i - looks like it works the same bad way on both of them.

    I have 1.25Gb operating memory, jdk 1.5.0_06 (latest Mac JDK). I do not have neither sql*plus nor oracle client installed (and there are no such requirements in the installation guide) - everything works fine and fast enough with JDBC drivers in SQL4X as well as in projects being under development. I'm using JDBC drivers from ojdbc14.jar. The only program that very slow in SQL execution is SQL Developer, unfortunately...

  • Bad experience with Verizon Fios Internet and Customer Service

    I had an extremely bad experience with Verizon Fios Internet service and I will never use Verizon again. 
    In August 2014, I called and installed the Verizon Fios Internet and phone bundle. I asked the customer agent several times if I will be charged anything before the installation of the Internet and phone service. She said, 'No, we will only start charging after the Internet and phone are installed at your apartment'. I went to the store and picked up the router and phone and installed it at home by myself. The router did not work. I called Tech support and they said it will take several days for another available agent to come and look into the issue. I decided to discontinue the service and closed the account that same night.
    At the end of the month, I received a bill of $80 of activation fee for the internet service. Nothing was ever activated, my internet router did not work, and I got charged an activation fee for a service that I did not even start using. From August to December, I called customer service over 10 times and some of them said they will waive it while the others said it's a non-refundable activation fee. One lady said, 'Ma'am, the activation fee starts when you placed the order, the warehouse received it and packed the router in the boxes....' Isn't that ridiculous? If that's the case, please ask all your customer representative to say a clause before new customers open their account: Are you aware that you will be charged a non-refundable activation fee once you open the account regardless of whether or not you use the service or not. 
    So after 3 months (November 2014), I decided to get out of all these troubles and paid off my $80 activation fee. They put the bill in the collection agency and I called them and paid the overdue balance. Then in December 2014, I received a statement saying I have a $3.11 overdue balance. The collection agency told me that they will charge me for the whole activation fee and a $3 transaction fee for the transaction. So now Verizon came back and said I owed them the $3 because I paid the collection agency their transaction fee. 
    I am very disappointed and furious about the whole Verizon operating system. Charging a customer for an activation fee for a service s/he has not consumed or used does not make any business sense. In addition, they do not know how to coordinate with the collection agency on overdue bills. Give the customer a heads-up that they will be charged a transaction fee on top of the overdue balance, and that transaction fee does not count towards clearing the balance. 
    I have completely lost my confidence in Verizon albeit the many good feedback from my friends. 

    Hi crystallau52,
    Sorry you are having difficulty. An agent with access to your account will reach out to you directly by email, private message in the Forums and/or the billing telephone number on your Verizon account for more information or to help you resolve your issue.

  • I have a carillon 25 keyboard (bad choice, I know) and I can't get it to communicate with my mac at all! I'm running logic pro 9 and reason 5. I get signal in from my M Audio trigger finger so I know it isnt an entirely mac based problem. Thanks!!!

    I have a carillon 25 keyboard (bad choice, I know) and I can't get it to communicate with my mac at all! I'm running logic pro 9 and reason 5. I get signal in from my M Audio trigger finger so I know it isnt an entirely mac based problem. Thanks!!!

    Well, how have to determined no signal is being recieved to your mac?
    Have you got something that shows the actual signal? Or have you just been trying to control a VST? What software are you using by the way?
    I personnally went with a AKAI MPK25, because it's made already mapped for logic & ableton etc, so it just makes things incredibly easy.
    I would suggest you return it if you can as a dead unit & perhaps look at something else a bit easier?
    Otherwise, if you just want to get this working we can have a look a bit deeper.
    And driver? OS X driver?

  • HT1206 i have had bad luck with computers laitly and have 5 pc allready authorised now i have a new one i cant authorise it so i can not access my itunes account can u deauthroise my pc from my accont so i can access it again

    i have had bad luck with computers laitly and have 5 pc allready authorised now i have a new one i cant authorise it so i can not access my itunes account can u deauthroise my pc from my accont so i can access it again
    <Email Edited by Host>

    http://support.apple.com/kb/HT1420

  • BAD static and background noise on Amplitube, with iRig and iPad 3

    Hi all,
    This has been dealt with in a different forum on garageband, but I am interested to find out if others are having this issue. To note - this is with
    Amplitube
    iRig
    Ipad 3 ( this part is important )
    Scenario;
    If I uplug my guitar from my iRig (idea being to remove all external noise influences) I get a constant clicking and fuzz  (seems to sit around 160bpm). Making sure its not the inbuilt metronome, and going to IK's website to follow all directions specifically and exactly - this noise will not go away. If i record a track - the noise gets recorded with, and it can be easily reproduced in the following scenario ->  an ipad3, iRing and amplitube. In fact, i have tried various IK Multimedia apps ( ampkit, iRig Recorder and Amplitube free and purchased!) and the noise seems to be consistent with their software.!
    First off - i went back to the music store, who tried various iRig's - all had the same issue. We even tried my iRig in the store's own iphone - and it sounded perfect. So it wasnt the irig itself.
    In tandem with this above - i had raised a case with IK multimedia ( Ticket #311578 ) who after hearing about the music store episode - mentioned that it must be my ipad. So i made a booking with apple and off to the store i went.
    Apple noticed the noise straight away (and its loud in there during lunch breaks!) - and replaced my Ipad3 on the spot!. No questions asked (he even thanked for doing so much background work to identify the issue)
    Guess what - noise still there.
    Apple then tried an ipad1, ipad2 and ipad mini - all of which DID NOT have this issue. So, it is only the ipad3.
    Apple then (to their credit) raised it higher within apple to R&D, who spent a week on it and responded by saying ( and i quote ) " Nothing has specifically changed between the headphone jack on the 2nd, 3rd or 4th generation or ipad mini, so it is a compatibility issue between your iring and your device and the 3rd generation ipads, and please contact the company (IK Multimedia) to see if they have any solutions for that"
    So i then responded the IK multimedia. What did they do?? They closed the case without any communication. I waited a week ( thinking they would be working on it ), when i logged back in and saw that my last email had been doctored to look like i was a happy customer and apple was at fault........ nice.
    So i wrote back and re-opened the case. They responded by saying
    "We do apologize for any inconvenience caused.  However, in this case, it appears the issue may have to be followed up with Apple, not with IK Multimedia"
    Not sure what to do - its really really bad. If I turn a distortion pedal on, or try to record anything - it drives me crazy. Even my girlfriend who knows ZIP about anything technical said "Whats that clicking noise when you play guitar?"
    Im just looking for some others out there who may have this problem. As it is easily reproducable - surely I cant be the only one?
    love to hear from you
    Trav
    ps - I tried to post this in IK Multimedia's blog, but they locked it so no-one could respond. nice.

    I have looked into this ticket, the threads created and our support notes.
    1 - We have tested all of our iRig products with the new iPad 3 and they all work fine with AmpliTube.
    2 - Any  thread created on the IK forums are locked once passed to support.
    3 - We are more than happy to work with Apple as we have done in the past. Hook the support up with Apple support and we'll work on it.
    4 - Support referred you to Apple as the issue is with the iOS device and not our product. (Confirmed by your own testing at the apple store)
    If there is something we can do to help, we will do it. Period. We want our customers to be happy and make good music. If you'd like a new iRig, lets make an exchange happen. Want to try different one, lets work out the price difference, but the issue here isn't with AmpliTube or iRig.

  • Premerie Elements 11 and  NEX 6 Video: Bad aliasing with imported footage

    Hi,
    with all my Sony NEX 6 AVCHD settings iam unsuccessfull to get good quality video in Premiere Elements 11. Only exception is 1080 50p, that is working with good quality but seams to be an overkill as it eats up SD space and is exhausting the MAC. Interlaced modes are yielding bad aliasing and the 25p mode is missing in the PAL AVCHD section.  The Nex can take full hd 1080 25p but in Adobe settings in the AVCHD section there is no 25p at full hd. That does exist in the DSLR section though, but also this gives aliasing (?).
    Iam also puzzled about the setting that reads 1080 25i in APE11 (PAL) and 1080 50i in the Sony NEX. I just assume both are just the same (Sony does count every half frame and Adobe every full frame made of two halfs). 
    Iam using an iMAC with AMD Radeon HD 6770M
    Anybody is using films from Sony NEX6 in APE11 or has a way out?
    Thnks
    Hardi

    Steve,
    thanks for your reply. Iam preparing for a Safari trip next month. Iam undecided in whtat format to output the video, DVD or MPEG most likely and best quality for watching on the Mac. For now Iam just importing mini clips to see how it works and what the quality is. This is to decide in what format, resulution and frame rate I should take the safari video. Iam particular checking for "jumps" in fast movements, i.e. how smooth the video looks and those "steps" in straight lines that I call (perhaps falsly) aliasing. For this I check the Premiere preview of the imported clips. Perhaps its my bad English, so I try to give my workflow:
    1) I do short films (20s) with my NEX6 in those 3 settings 1920x1080 PAL, 50p, 50i and 24p. I make sure there is lot of movement and sharp lines do show up. I do one clip at a time.
    2) I take out the SD card (64GB 45Mbits/s) after each individual setting and put it into the iMacs SD slot. Also tried to hook up the NEX via USB cable but no difference noticed.
    3) I open finder and go to the private folder of the SD card. In each try there is just one AVCHD clip in.
    4) In Organizer I choose import from files and folders and click on that private folder. None of the formats will be imported, always a note shows up that its either wrong format or already existing file (I made sure this is not).
    5) In Premiere I can import the privat folder via drag and drop directly from the SD in a new project. This way I let premiere decide what project settings to choose. All formats give a warning (codex not available or something, warning is different from the Organizer one) but it does the import anyway in each case. Imported film does look "aliased" with 50i and 25p footage. Project settings for the two read 1080 25i. The imported film does look good with 50p, correct project setting in this case: 1080 50p.
    6) In Premiere I can also import via "add media, AVCHD camera".  Again I do this in new projects for each of the clips. Also here Premiere decides what setting the clip gets. Import does not produce warnings with either clip format. Nevertheless, imported film does look "aliased" with 50i and also 25p clip. Settings in both cases again are 1080 25i (thus Premiere thinks the 25p clips is a 25i). Also here the clip does look very good with 50p and the project setting is for 50p.
    Hope this describes it somewhat better.
    brgds
    Hardi

  • [SOLVED] errors with fdisk and cryptsetup; is my drive going bad?

    I'm having issues with re-formatting an external hard drive using dm-crypt. It was previously formatted with TrueCrypt/NTFS, which I used as a shared backup drive between Windows and Arch. At some point, it stopped being able to mount, which I attributed to allowing Windows to "fix" it after improper dismount (e.g. a hard kill).
    I decided to re-format with ext4 and only use it from Arch, but now I'm wondering if I may have a hardware issue with the drive. I've tried a lot more (like going through the full zero write after mounting the drive as a temporary dm-crypt device), but here's the condensed version to illustrate the problem.
    system info
    This is on a fresh boot. Just adding that as I've had issues with kernel modules after updating if a new kernel comes through. A fresh boot removes that potential issue.
    $ uname -a
    Linux arch_840 4.0.3-1-ARCH #1 SMP PREEMPT Wed May 13 15:38:47 CEST 2015 x86_64 GNU/Linux
    $ lsmod | grep dm_
    dm_crypt 28672 2
    dm_mod 98304 5 dm_crypt
    $ lsmod |grep xts
    xts 16384 2 serpent_sse2_x86_64,twofish_x86_64_3way
    gf128mul 16384 2 lrw,xts
    smartctl status
    Figured I should check the drive. There's a lot of old age and pre-fail warnings, but this post would seem to suggest I'm okay?
    # smartctl -A /dev/sdb
    smartctl 6.3 2014-07-26 r3976 [x86_64-linux-4.0.3-1-ARCH] (local build)
    Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org
    === START OF READ SMART DATA SECTION ===
    SMART Attributes Data Structure revision number: 16
    Vendor Specific SMART Attributes with Thresholds:
    ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
    1 Raw_Read_Error_Rate 0x002f 100 100 051 Pre-fail Always - 0
    2 Throughput_Performance 0x0026 252 252 000 Old_age Always - 0
    3 Spin_Up_Time 0x0023 090 089 025 Pre-fail Always - 3330
    4 Start_Stop_Count 0x0032 100 100 000 Old_age Always - 703
    5 Reallocated_Sector_Ct 0x0033 252 252 010 Pre-fail Always - 0
    7 Seek_Error_Rate 0x002e 252 252 051 Old_age Always - 0
    8 Seek_Time_Performance 0x0024 252 252 015 Old_age Offline - 0
    9 Power_On_Hours 0x0032 100 100 000 Old_age Always - 3707
    10 Spin_Retry_Count 0x0032 252 252 051 Old_age Always - 0
    11 Calibration_Retry_Count 0x0032 100 100 000 Old_age Always - 104
    12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 734
    191 G-Sense_Error_Rate 0x0022 100 100 000 Old_age Always - 17
    192 Power-Off_Retract_Count 0x0022 252 252 000 Old_age Always - 0
    194 Temperature_Celsius 0x0002 064 053 000 Old_age Always - 24 (Min/Max 16/47)
    195 Hardware_ECC_Recovered 0x003a 100 100 000 Old_age Always - 0
    196 Reallocated_Event_Count 0x0032 252 252 000 Old_age Always - 0
    197 Current_Pending_Sector 0x0032 252 252 000 Old_age Always - 0
    198 Offline_Uncorrectable 0x0030 252 252 000 Old_age Offline - 0
    199 UDMA_CRC_Error_Count 0x0036 200 200 000 Old_age Always - 0
    200 Multi_Zone_Error_Rate 0x002a 100 100 000 Old_age Always - 3
    223 Load_Retry_Count 0x0032 100 100 000 Old_age Always - 104
    225 Load_Cycle_Count 0x0032 079 079 000 Old_age Always - 214068
    Disk info, delete existing partition, new MBR, create new partition
    # fdisk /dev/sdb
    Welcome to fdisk (util-linux 2.26.1).
    Changes will remain in memory only, until you decide to write them.
    Be careful before using the write command.
    Command (m for help): p
    Disk /dev/sdb: 465.8 GiB, 500107862016 bytes, 976773168 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: dos
    Disk identifier: 0x76d37b6d
    Device Boot Start End Sectors Size Id Type
    /dev/sdb1 63 976768064 976768002 465.8G 83 Linux
    Command (m for help): d
    Selected partition 1
    Partition 1 has been deleted.
    Command (m for help): o
    Created a new DOS disklabel with disk identifier 0x2cd60f13.
    Command (m for help): n
    Partition type
    p primary (0 primary, 0 extended, 4 free)
    e extended (container for logical partitions)
    Select (default p): p
    Partition number (1-4, default 1):
    First sector (2048-976773167, default 2048):
    Last sector, +sectors or +size{K,M,G,T,P} (2048-976773167, default 976773167):
    Created a new partition 1 of type 'Linux' and of size 465.8 GiB.
    Command (m for help): w
    The partition table has been altered.
    Calling ioctl() to re-read partition table.
    Syncing disks.
    trying to format with cryptsetup
    I had a bunch of custom options, but other Arch posts suggested just trying the default, which is what I've done here. It fails with the same error as when I try to pass a cipher, key size, etc. ("Command failed with code 5: IO error while encrypting keyslot.").
    # truecrypt -v --debug luksFormat /dev/sdb1
    bash: truecrypt: command not found
    [root@arch_840 jwhendy]# cryptsetup -v --debug luksFormat /dev/sdb1
    # cryptsetup 1.6.6 processing "cryptsetup -v --debug luksFormat /dev/sdb1"
    # Running command luksFormat.
    # Locking memory.
    # Installing SIGINT/SIGTERM handler.
    # Unblocking interruption on signal.
    WARNING!
    ========
    This will overwrite data on /dev/sdb1 irrevocably.
    Are you sure? (Type uppercase yes): YES
    # Allocating crypt device /dev/sdb1 context.
    # Trying to open and read device /dev/sdb1.
    # Initialising device-mapper backend library.
    # Timeout set to 0 miliseconds.
    # Iteration time set to 1000 miliseconds.
    # Interactive passphrase entry requested.
    Enter passphrase:
    Verify passphrase:
    # Formatting device /dev/sdb1 as type LUKS1.
    # Crypto backend (gcrypt 1.6.3) initialized.
    # Detected kernel Linux 4.0.3-1-ARCH x86_64.
    # Topology: IO (512/0), offset = 0; Required alignment is 1048576 bytes.
    # Checking if cipher aes-xts-plain64 is usable.
    # Using userspace crypto wrapper to access keyslot area.
    # Generating LUKS header version 1 using hash sha1, aes, xts-plain64, MK 32 bytes
    # KDF pbkdf2, hash sha1: 996745 iterations per second.
    # Data offset 4096, UUID 181fed4d-42f2-4f0f-8b70-cb7ba459e25f, digest iterations 121625
    # Updating LUKS header of size 1024 on device /dev/sdb1
    # Key length 32, device size 976771120 sectors, header size 2050 sectors.
    # Reading LUKS header of size 1024 from device /dev/sdb1
    # Key length 32, device size 976771120 sectors, header size 2050 sectors.
    # Adding new keyslot -1 using volume key.
    # Calculating data for key slot 0
    # KDF pbkdf2, hash sha1: 1008246 iterations per second.
    # Key slot 0 use 492307 password iterations.
    # Using hash sha1 for AF in key slot 0, 4000 stripes
    # Updating key slot 0 [0x1000] area.
    # Using userspace crypto wrapper to access keyslot area.
    IO error while encrypting keyslot.
    # Releasing crypt device /dev/sdb1 context.
    # Releasing device-mapper backend.
    # Unlocking memory.
    Command failed with code 5: IO error while encrypting keyslot.
    Things also tend to hang with respect to the drive at this point. For example, fdisk -l spits out /dev/sda partitions immediately and then just hangs instead of printing out /dev/sdb info, then eventually quits (without ever writing it).
    Any suggestions on where to look/how to troubleshoot? I found some possibly related posts, but nothing that looks promising:
    - Impossible to crypt the drive using cryptsetup (fixed by rebooting)
    - cryptsetup fails to open Udev cookie 0xd4d94f5 (semid 0) waiting for z (no responses; the hang after seems similar)
    There's a couple odds and ends references to cryptsetup 1.6.6 having issues. I downloaded 1.6.4-1 and 1.6.5-1 and -2 from ARM to try, but wanted to post this in the meantime in case something stuck out.
    Last edited by jwhendy (2015-05-29 16:01:40)

    @qinohe I thought of that and the other day started formatting with mkfs.ext4; unfortunately, it was at work and I had to leave before I could let it finish. It had been chugging along a good few hours, and I was surprised it would take that long. I was able to format it with ext4 using Windows 7 (I dual boot) with the MiniTool Partition Wizard but I didn't use it like that before trying to solve the cryptsetup issue again.
    This last time around, I was getting unresponsive behavior. I think I need to reboot each time I try something with cryptsetup, as any commands related to that drive seem to hang afterwards (fdisk, umount, eject, mkfs, or trying crypsetup again). Perhaps I'll just let it cook overnight with mkfs and see if I can at least have an unencrypted, but functional drive.
    One interesting tidbit is that even though cryptsetup fails, when I've tried to issue mkfs afterward, it asks me to confirm that I want to format the disk since it has a LUKS header... so something appears to have been written. Is it possible the header is causing some issues? I don't know much about the structure of a disk (like what range the MBR resides in, what constitutes a header, etc.) but have been wondering if there's some way to start really, really clean with the disk. Like I'd just bought it -- something appears to be lingering around from previous efforts?
    @frostschutz I'll check tomorrow. That's a good question. Just checked journalctl and here are some of the errors that appear; unfortunately, I wasn't watching so I can't tell you what matches up with what command:
    May 23 09:32:22 arch_840 systemd-udevd[7784]: inotify_add_watch(7, /dev/sdb1, 10) failed: No such file or directory
    May 23 09:32:22 arch_840 kernel: usb 3-4: stat urb: status -108
    ### there's lots like this; like 10 in a row with various sector values listed
    May 23 09:32:19 arch_840 kernel: Buffer I/O error on dev sdb1, logical block 61341696, lost async page write
    May 23 09:32:19 arch_840 kernel: blk_update_request: I/O error, dev sdb, sector 490735616
    ### there's also a bunch like this, from tab #0 -> #29 (not colored red, so not sure they're errors?)
    May 23 09:32:19 arch_840 kernel: sd 2:0:0:0: [sdb] tag#0 CDB: opcode=0x2a 2a 00 1d 07 bc 10 00 04 00 00
    May 23 09:32:18 arch_840 kernel: sd 2:0:0:0: [sdb] tag#0 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD OUT
    I paged down quite a ways and those seem like the unique messages when I search the journal for "sdb". Anything stand out? I will say that the same sector numbers appeared in multiple blocks of the third error type listed, so that makes me wonder if something is genuinely wrong with the disk. I'll post the output of the full smartctl scan when I hopefully run it tomorrow.
    Thanks for chiming in!

  • Is Verizon going to acknowlege the problems with FIOS and Windows Vista

    For months now, I have been reading the numerous problems Fios internet customers are having with Fios internet/Actiontech Router and Windows Vista and there has been no acknowledgement by Verizon of this current major issue.
    I have also experienced the exact same issue for months now since I switched to Verizon FIOS internet. Previously I had Comcast HSI using my Windows Vista laptop.  I had their service for over a year and I NEVER has a problem with the Windows Vista globe icon disappearing and loosing internet connection. The Globe always stayed on and never went away and I never lost connection when I had Comcast
    I had Verizon FIOS installed last September with my Windows Vista computer and my wireless internet connection started to drop from day 1 and it has been a daily occurrence for over 5 months now.  It has gotten so bad, I have had to hardwire my laptop to to be able to use the internet uninterrupted.
    This is what daily scenario is:
    When I turn on my laptop(with Windows Vista, I can initially get full internet access(with the globe on and it says "Local and internet). After about 10 minutes or less, the globe switches to "local only" and I can still get  internet access.  After another 5 or so minutes, a large X covers the globe and I lose internet connection entirely. The actiontech router wireless signal is no longer listed as one of the wireless networks.  The only way for me to regain internet access is either to restart my laptop or reboot the actiontech router.
    Numeorus posts here, over by DSL forums(Broadband Reports),Microsoft's website and a few othere websites detail this issue.
    I am extremely shocked and surprised that Verizon has not tried to fix this issue by working with both the makers of the Actiontech Router as well as Microsoft to find out what the problem is and how to fix it.
    I would just like to reiterate I strongly believe this is primarily a FIOS internet issue since I previously had Comcast HSI for over a year with the same Windows Vista laptop and I NEVER had that problem. Also,  I can connect to my neighbors wireless connection(she uses Comcast HSI) and when I do, the globe stay on all the time on my computer and the internet does not lose connection.
    I know that there are a couple of Verizon employees here. Please tell the higher ups who handle FIOS internet that this is a major issue that needs to be resolved as soon as possible.
    P.S: Please don't tell me to go by my own router because then, I will have to deal with the issues of setting it up to work with Fios TV and the related VOD, widgets, remote DVR compatability issues to deal with. I don't think I can deal with the additional headaches. 

    FIOS is short for fiber optics.  fiber optics is different technology than DSL.   
    With that said, if you search the Microsoft databases for vista issues with fiber optics, (CURRENTLY THERE IS ONLY ONE PROVIDER OF FIBER TO THE HOUSE, that being Verizon, so yes you can also search Vista issues with verizon and\or fios) and you will find that Microsoft already acknowledges this issue with their software.  AND they offer you a fix.
    cjacobs001

Maybe you are looking for

  • Mac not booting/running slow as molasses

    Alright. This is going to be a large and multi-scope question, so please bear with me, everyone. Here are the (general) specifications of my MBP: Mid-2012 15.4" MacBook Pro 500GB HDD, 4GB of RAM (I believe) OS X 10.9 (Mavericks) Now, for the question

  • Should we use JDeveloperor VAJ with BEA Weblogic?

    I work in an organisation that extensively uses Oracle, and we have brought in an Ecomerce solution that uses EJBs/JSPs on BEA Weblogic with an Oracle back-end. We have used JDeveloper for stand-alone Java development previously and already have lice

  • Image gallery in webcenter using content presenter template

    Hi, I created a content presenter template for image gallery in webcenter. The images from UCM are not displayed without log in to the webcenter application. I am getting a error like " Error calling UCM server associated with repository UCM.  The se

  • I can't get Java to run on my Schwab site

    I have a macbook. My Schwab account runs Java. On Safari, I can bring up Streetsmart, but it stopped running with Firefox.

  • Parallels Desktop/Boot Camp - USB Printer/Ext HD Access?

    I am able to access my printer and ext hd via AirPort Extreme when I load into the Mac OS. However, I can only print/view files from the Mac OS and am unable to print/access the hard drive when I am using Windows XP via Parallels Desktop, as well as