FBI not used in xmlquery

G'day all,
Running the following set-up: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
Getting a full table scan on a table with an FBI.
Here is a sample set-up:
create table a (id number, filepath varchar2(256 char));
insert into a values(1,'/dir/subdir/file1.xml');
insert into a values(2,'/dir/subdir/file2.xml');
insert into a values(3,'/dir/subdir/file3.xml');
insert into a values(4,'/dir/subdir/file4.xml');
insert into a values(5,'/dir/subdir/file5.xml');
commit;
create index filepath_substr_fbi on a(substr(filepath,instr(filepath,'/',-1)+1));
create unique index filepath_uidx on a(filepath);So the requirement is to retrieve the ids from the table containing a particular filename. The filenames to retrieve are sourced from an xmltype. The approach I've taken is the following:
select * from a , (XMLTable('for $j in /task/related_files/ora:tokenize(text(),"\|")
where ora:matches($j,"\d+\.xml") return normalize-space($j)'
    PASSING xmltype(
  '<task><related_files>File 1|file1.xml|file 2|file2.xml|file 3|file3.xml</related_files></task>'
  ))) x  where substr(a.filepath,instr(a.filepath,'/',-1)+1) = x.column_value.getstringval();which returns the following results:
"ID"     "FILEPATH"     "COLUMN_VALUE"
1     "/dir/subdir/file1.xml"     file1.xml
2     "/dir/subdir/file2.xml"     file2.xml
3     "/dir/subdir/file3.xml"     file3.xmlNow, after running this sample, and doing an explain plan on it, I did notice it used the index!
Execution Plan
Plan hash value: 107833345
| Id  | Operation                           | Name                  | Rows  | Bytes | Cost (%CPU)| Time     |
|   0 | SELECT STATEMENT                    |                       |   408 |   109K|    32   (4)| 00:00:01 |
|   1 |  MERGE JOIN                         |                       |   408 |   109K|    32   (4)| 00:00:01 |
|   2 |   TABLE ACCESS BY INDEX ROWID       | A                     |     5 |  1365 |     2   (0)| 00:00:01 |
|   3 |    INDEX FULL SCAN                  | FILEPATH_SUBSTR_FBI   |     5 |       |     1   (0)| 00:00:01 |
|*  4 |   SORT JOIN                         |                       |   408 |   816 |    30   (4)| 00:00:01 |
|*  5 |    COLLECTION ITERATOR PICKLER FETCH| XQSEQUENCEFROMXMLTYPE |   408 |   816 |    29   (0)| 00:00:0
Predicate Information (identified by operation id):
   4 - access(SUBSTR("FILEPATH",INSTR("FILEPATH",'/',(-1))+1)="XMLTYPE"."GETSTRINGVAL"(XMLCDATA(SYS_
              QNORMSPACE(SYS_XQ_UPKXML2SQL(VALUE(KOKBF$),2,1,0)),1)))
       filter(SUBSTR("FILEPATH",INSTR("FILEPATH",'/',(-1))+1)="XMLTYPE"."GETSTRINGVAL"(XMLCDATA(SYS_
              QNORMSPACE(SYS_XQ_UPKXML2SQL(VALUE(KOKBF$),2,1,0)),1)))
   5 - filter( REGEXP_LIKE (SYS_XQ_UPKXML2SQL(VALUE(KOKBF$),2,1,0),'\d+\.xml'))
Note
   - dynamic sampling used for this statement (level=2)Now for some reason, my actual code (which is not much different than sample above)..gets the following plan:
Execution Plan
Plan hash value: 1696443977
| Id  | Operation                          | Name                  | Rows  | Bytes | Cost (%CPU)| Time     |
|   0 | SELECT STATEMENT                   |                       |   449 | 53431 |    33   (4)| 00:00:01 |
|*  1 |  HASH JOIN                         |                       |   449 | 53431 |    33   (4)| 00:00:01 |
|   2 |   TABLE ACCESS FULL                | DATA_CAPTURE_RECORD   |    11 |  1287 |     3   (0)| 00:00:01 |
|*  3 |   COLLECTION ITERATOR PICKLER FETCH| XQSEQUENCEFROMXMLTYPE |   408 |   816 |    29   (0)| 00:00
Predicate Information (identified by operation id):
   1 - access(SUBSTR("DRAFT_VPATH",INSTR("DRAFT_VPATH",'/',(-1))+1)="XMLTYPE"."GETSTRINGVAL"(XMLCDAT
              A(SYS_XQNORMSPACE(SYS_XQ_UPKXML2SQL(VALUE(KOKBF$),2,1,0)),1)))
   3 - filter( REGEXP_LIKE (SYS_XQ_UPKXML2SQL(VALUE(KOKBF$),2,1,0),'\d+\.xml'))Here is the sql query for the above plan:
select * from data_capture_record x, (XMLTable('for $j in /task/related_tasks/ora:tokenize(text(),"\|")
where ora:matches($j,"\d+\.xml") return normalize-space($j)'
    PASSING xmltype(
  '<task><related_tasks>Actioning a Reminder Work Item or a BFd Action Item Work Item for Jury Service - clean up this Edit - another Edit | 17.xml| ROE Correct WI Received for a Regular ROE s | 24.xml| Sending benefit statement copies that are currently archived . | 10.xml| Test of TINY MCE Configurations - Test Edit. | 46.xml|</related_tasks> </task>'
  ))) a  where substr(x.DRAFT_VPATH,instr(x.DRAFT_VPATH,'/',-1)+1) = a.column_value.getstringval();Any ideas? A quick note, i just started getting into xquery this week..so if you spot something, or see a better solution to my problem, please let me know...
Thanks for any help or advice.
Stephane

Indeed, cardinality and selectivity are essential in this case.
Consider the following test case with a 1,000,000-row table, the CBO picks up the index :
Connected to:
Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production
SQL> create table test2 as
  2  select level as path_id
  3      , cast('/dir/subdir/file'||to_char(level,'fm0999999')||'.xml' as varchar2(256)) as filepath
  4  from dual
  5  connect by level <= 1000000 ;
Table created.
SQL> select count(*) from test2;
  COUNT(*)
   1000000
SQL> create index test2_ix on test2 ( substr(filepath, instr(filepath, '/', -1) + 1) );
Index created.
SQL> exec dbms_stats.gather_table_stats(user, 'TEST2');
PL/SQL procedure successfully completed.
SQL> set lines 120
SQL> set autotrace on explain
SQL> select *
  2  from test2 t
  3  where substr(filepath, instr(filepath, '/', -1) + 1) in (
  4    select filename
  5    from xmltable(
  6           'for $i in ora:tokenize(/task/related_files, "\|")
  7            where ora:matches($i, "\d+\.xml")
  8            return normalize-space($i)'
  9           passing xmlparse(document '<task><related_files>File 1| file0000001.xml|file 2|file0999999.xml |file 3|file0007773.xml</related_files></
task>')
10           columns filename varchar2(30) path '.'
11         ) x
12  ) ;
   PATH_ID FILEPATH
         1 /dir/subdir/file0000001.xml
      7773 /dir/subdir/file0007773.xml
    999999 /dir/subdir/file0999999.xml
Execution Plan
Plan hash value: 420041503
| Id  | Operation                           | Name                  | Rows  | Bytes | Cost (%CPU)| Time     |
|   0 | SELECT STATEMENT                    |                       |   257 | 13107 |   643   (1)| 00:00:08 |
|   1 |  NESTED LOOPS                       |                       |   257 | 13107 |   643   (1)| 00:00:08 |
|   2 |   SORT UNIQUE                       |                       |   408 |   816 |    29   (0)| 00:00:01 |
|*  3 |    COLLECTION ITERATOR PICKLER FETCH| XQSEQUENCEFROMXMLTYPE |   408 |   816 |    29   (0)| 00:00:01 |
|   4 |   TABLE ACCESS BY INDEX ROWID       | TEST2                 |     1 |    49 |     3   (0)| 00:00:01 |
|*  5 |    INDEX RANGE SCAN                 | TEST2_IX              |     1 |       |     2   (0)| 00:00:01 |
Predicate Information (identified by operation id):
   3 - filter( REGEXP_LIKE (SYS_XQ_UPKXML2SQL(VALUE(KOKBF$),2,1,0),'\d+\.xml'))
   5 - access(SUBSTR("FILEPATH",INSTR("FILEPATH",'/',-1)+1)=CAST(SYS_XQ_UPKXML2SQL(SYS_XQEXVAL(SYS_XQ
              _PKSQL2XML(SYS_XQNORMSPACE(SYS_XQ_UPKXML2SQL(VALUE(KOKBF$),2,1,0)),1,2,0),0,0,20971520,0),50,1,2) AS
              varchar2(30) ))
Note
   - Unoptimized XML construct detected (enable XMLOptimizationCheck for more information)
SQL> select t.*
  2  from test2 t
  3       join xmltable(
  4         'for $i in ora:tokenize(/task/related_files, "\|")
  5          where ora:matches($i, "\d+\.xml")
  6          return normalize-space($i)'
  7         passing xmlparse(document '<task><related_files>File 1| file0000001.xml|file 2|file0999999.xml |file 3|file0007773.xml</related_files></ta
sk>')
  8         columns filename varchar2(30) path '.'
  9       ) x
10       on substr(t.filepath, instr(t.filepath, '/', -1) + 1) = x.filename
11  ;
   PATH_ID FILEPATH
         1 /dir/subdir/file0000001.xml
    999999 /dir/subdir/file0999999.xml
      7773 /dir/subdir/file0007773.xml
Execution Plan
Plan hash value: 1810535419
| Id  | Operation                          | Name                  | Rows  | Bytes | Cost (%CPU)| Time     |
|   0 | SELECT STATEMENT                   |                       |   411 | 20961 |  1254   (1)| 00:00:16 |
|   1 |  NESTED LOOPS                      |                       |   411 | 20961 |  1254   (1)| 00:00:16 |
|*  2 |   COLLECTION ITERATOR PICKLER FETCH| XQSEQUENCEFROMXMLTYPE |   408 |   816 |    29   (0)| 00:00:01 |
|   3 |   TABLE ACCESS BY INDEX ROWID      | TEST2                 |     1 |    49 |     3   (0)| 00:00:01 |
|*  4 |    INDEX RANGE SCAN                | TEST2_IX              |     1 |       |     2   (0)| 00:00:01 |
Predicate Information (identified by operation id):
   2 - filter( REGEXP_LIKE (SYS_XQ_UPKXML2SQL(VALUE(KOKBF$),2,1,0),'\d+\.xml'))
   4 - access(SUBSTR("FILEPATH",INSTR("FILEPATH",'/',-1)+1)=CAST(SYS_XQ_UPKXML2SQL(SYS_XQEXVAL(SYS_X
              Q_PKSQL2XML(SYS_XQNORMSPACE(SYS_XQ_UPKXML2SQL(VALUE(KOKBF$),2,1,0)),1,2,0),0,0,20971520,0),50,1,2)
              AS varchar2(30) ))
Note
   - Unoptimized XML construct detected (enable XMLOptimizationCheck for more information)From the plans above we see that the CBO estimates 408 rows from XMLTable.
This estimation could be refined by using hints : CARDINALITY (not documented), DYNAMIC_SAMPLING, or by using a wrapper function and the extensible optimizer feature.
For example, if you expect at most 10 rows every time :
SQL> select /*+ cardinality(x 10) */ t.*
  2  from test2 t
  3       join xmltable(
  4         'for $i in ora:tokenize(/task/related_files, "\|")
  5          where ora:matches($i, "\d+\.xml")
  6          return normalize-space($i)'
  7         passing xmlparse(document '<task><related_files>File 1| file0000001.xml|file 2|file0999999.xml |file 3|file0007773.xml</related_files></ta
sk>')
  8         columns filename varchar2(30) path '.'
  9       ) x
10       on substr(t.filepath, instr(t.filepath, '/', -1) + 1) = x.filename
11  ;
   PATH_ID FILEPATH
         1 /dir/subdir/file0000001.xml
    999999 /dir/subdir/file0999999.xml
      7773 /dir/subdir/file0007773.xml
Execution Plan
Plan hash value: 1810535419
| Id  | Operation                          | Name                  | Rows  | Bytes | Cost (%CPU)| Time     |
|   0 | SELECT STATEMENT                   |                       |    10 |   510 |    59   (0)| 00:00:01 |
|   1 |  NESTED LOOPS                      |                       |    10 |   510 |    59   (0)| 00:00:01 |
|*  2 |   COLLECTION ITERATOR PICKLER FETCH| XQSEQUENCEFROMXMLTYPE |    10 |    20 |    29   (0)| 00:00:01 |
|   3 |   TABLE ACCESS BY INDEX ROWID      | TEST2                 |     1 |    49 |     3   (0)| 00:00:01 |
|*  4 |    INDEX RANGE SCAN                | TEST2_IX              |     1 |       |     2   (0)| 00:00:01 |
Predicate Information (identified by operation id):
   2 - filter( REGEXP_LIKE (SYS_XQ_UPKXML2SQL(VALUE(KOKBF$),2,1,0),'\d+\.xml'))
   4 - access(SUBSTR("FILEPATH",INSTR("FILEPATH",'/',-1)+1)=CAST(SYS_XQ_UPKXML2SQL(SYS_XQEXVAL(SYS_X
              Q_PKSQL2XML(SYS_XQNORMSPACE(SYS_XQ_UPKXML2SQL(VALUE(KOKBF$),2,1,0)),1,2,0),0,0,20971520,0),50,1,2)
              AS varchar2(30) ))
Note
   - Unoptimized XML construct detected (enable XMLOptimizationCheck for more information)

Similar Messages

  • I am having a data excess usage issue with my Jetpack although I did not use the VZW network at all.

    Background: My home does not have access to landline internet and I am relying on a Verizon Jetpack device rather than satellite cable for internet access.  Within my JetPack wireless network I have several devices connected, iPADs, PC’s, printer, etc. (up to 5 devices can be connected with my system).  Recently, I had one device within my immediate wireless network that I needed to transfer data via FTP to another local device within my immediate network.  The receiving device FTP’d data from device (198.168.1.42) to local IP (address 192.168.1.2).  To understand the data path a Trace rout for this transfer is 198.168.1.42 (source) to 198.168.1.1 (Jetpack) to 192.168.1.2 (receiver).  Note that the VZW network ((cloud)/4G network) was NOT used in this transfer nor was any VZW bandwidth used for this transfer (of course less the typical overhead status/maintenance communications that happen regardless). Use of the VZW bandwidth would be something like downloading a movie from Netflix, (transferring data from a remote site, through the VZW network, into the Jetpack and to the target device).  I also understand if ones devices have auto SW updates that would also go against the usage as well.  I get that.  My understanding of my usage billing is based data transfer across the VZW network.
    Now to the problem: To my surprise I was quite substantially charged for the “internal” direct transfer of this data although I didn’t use the VZW network at all.  This does not seem to be right, and doesn’t make much sense to me.  Usage is should be based on the VZW network not a local Wi-Fi.  In this case, Verizon actually gets free money from me without any use of or impact to the VZW network.  Basically this is a VERY expensive rental for the jetpack device, which I bought anyway.  Considering this, I am also charged each time I print locally.  Dive into this further, I am also interested in knowing what is the overhead (non-data) communications between the jetpack router and devices and how much does that add up to over time?
    Once I realized I was getting socked in bandwidth, as a temp solution I found an old Wi-Fi router, created a separate Wi-Fi network off the Jetpack, but the billing damage was already done.  Switching each device back and forth to FTP and print is a hassle and there should be no reason the existing hardware couldn’t handle this and charges aligned with VSW usage. Is purposely intended by Verizon? Is this charging correct? And can I get some help with this?
    Logically, usage should be based on VZW network usage not internal transfers.  All transfers between IP addresses 192.168 are by default internal.  Any data that needs to leave the internal network are translated in to the dynamic IP addresses established by the VZW network.  That should be very easily detected for usage. In the very least, this fact needs to be clearly identified and clarified to users of the Jetpack.  How would one use a local network and not get socked with usage charges?  Can one set up a Wi-Fi network with another router, hardwire directly from the router to the Jetpack so that only data to and from the VZW network is billed? I might be able to figure out how to have the jetpack powered on but disable the VZW connection, but I don’t want to experiment and find out that the internal transfers are being logged and the log sent after the fact anyway once I connect…. A reasonable solution should be that users be able to use the router functions of the Jetpack (since one has to buy the device anyway) and only be billed for VZW usage.
    Your help in this would be greatly appreciated. Thanks

    i had one mac and spilt water on it, the motherboard fried so i had to buy a used one...being in school and all. it is a MC375lla
    Model Name:
    MacBook Pro
      Model Identifier:
    MacBookPro7,1
      Processor Name:
    Intel Core 2 Duo
      Processor Speed:
    2.66 GHz
      Number of Processors:
    1
      Total Number of Cores:
    2
      L2 Cache:
    3 MB
      Memory:
    8 GB
      Bus Speed:
    1.07 GHz
      Boot ROM Version:
    MBP71.0039.B0E
      SMC Version (system):
    1.62f7
      Hardware UUID:
    A802DE22-1E57-5509-93C5-27CEF01377B7
      Sudden Motion Sensor:
      State:
    Enabled
    i do not have a backup of it, so i am thinking about replacing my old hard drive from the water damaged into this one, not even sure if that would work, but it did not seem to be damaged, as i recovered all the files i wanted off of it to put onto this mbp
    the previous owner didnt have it set to boot, they had all their settings left on it and tried to edit all the names on it, had a bunch of server info and printers etc crap on it.  i do not believe he edited the terminal system though--he doesnt seem to terribly bright(if thats possible)
    tbh i hate lion compared to the old one i had, this one has so many more issues-overheating,fan noise, cd dvd noise
    if you need screenshots or data of anything else as away
    [problem is i do not want to start from scratch if there is a chance of fixing it, this one did not come with disks or anything like my first. so i dont even know if i could, and how it sets now i am basically starting from scratch, because now all my apps are reset but working, i am hoping to get my data back somehow though, i lost all of my bookmarks and editing all my apps and setting again would be a pain

  • Unable to load project after delete some path with files but not used at all

    Im using the demo of Premiere Pro CC last demo download today.
    All the fuc**ng day editing some videos, and saved, then I deleted som efolder containing some video files (almost not used) then when I try to open premiere the project I were working, premiere opens, load and freezes and nothing happens, it keeps on the main area withouht any windows, and I cant get my 10 hours of work What happening with thei premiere ? And Im unable to open the project in Premiere CC 7.0 from another computer as saif it was done using new version.
    I NEED A SOLUTION !
    Or never never more use premiere

    I NEED A SOLUTION !
    Don't do this mid stream in EDIT
    ... I deleted som efolder containing some video files (almost not used)...
    TRY  - Go to you Back Up project file or an Auto save and hope that recovers some of your work afterrestoring what you deleted.

  • How do I find a previously passcode to link a wireless keyboard (Model A101urs6) to a Mac Power Book G4 running 10.5.8.  The keyboard was linked at one point in the past, but then not used.  When I am trying to hook it up now, it requires the passcode.

    How do I find a previously passcode to link a wireless keyboard (Model A101urs6) to a Mac Power Book G4 running 10.5.8.  The keyboard was linked at one point in the past, but then not used.  When I am trying to hook it up now, it requires the passcode.  Where can I find this, or is there a general number I can use?

    Hello, and welcome to Apple Support Communities!
    Try entering four zeroes.

  • TS1368 I want to delete a lot of things childrens stories, albums which are not used which that are on my ipad. However when I go through Itunes it wont show me most of the stuff in my library. it takes ages to delete one at a time.

    I want to delete a lot of things childrens stories, albums which are not used which that are on my ipad. However when I go through Itunes it wont show me most of the stuff in my library. it takes ages to delete one at a time.
    Can you help please?

    Thanks King_Penguin for taking time to read and reply. 
    I just purchased this movie on Thursday, May 15, so just a few days ago.  I have never had any trouble whatsoever since I have been in Vietnam.  I have downloaded several movies and even music and they have all synced to my respected Apple products except for this purchase. 
    Sorry, I don't quite understand what you mean by studios and different versions.  Could you please explain? 
    I checked my purchased list in my purchase history under my account and there are no hidden items. 

  • Media Encoder CC not using GPU acceleration for After Effects CC raytrace comp

    I created a simple scene in After Effects that's using the raytracer engine... I also have GPU enabled in the raytracer settings for After Effects.
    When I render the scene in After Effects using the built-in Render Queue, it only takes 10 minutes to render the scene.
    But when I export the scene to Adobe Media Encoder, it indicates it will take 13 hours to render the same scene.
    So clearly After Effects is using GPU accelleration but for some reason Media Encoder is not.
    I should also point out that my GeForce GTX 660 Ti card isn't officially supported and I had to manually add it into the list of supported cards in:
    C:\Program Files\Adobe\Adobe After Effects CC\Support Files\raytracer_supported_cards.txt
    C:\Program Files\Adobe\Adobe Media Encoder CC\cuda_supported_cards.txt
    While it's not officially supported, it's weird that After Effects has no problem with it yet Adobe Media Encoder does...
    I also updated After Effects to 12.1 and AME to 7.1 as well as set AME settings to use CUDA but it didn't make a difference.
    Any ideas?

    That is normal behavior.
    The "headless" version of After Effects that is called to render frames for Adobe Media Encoder (or for Premiere Pro) using Dynamic Link does not use the GPU for acceleration of the ray-traced 3D renderer.
    If you are rendering heavy compositions that require GPU processing and/or the Render Multiple Frames Simultaneously multiprocessing, then the recommended workflow is to render and export a losslessly encoded master file from After Effects and have Adobe Media Encoder pick that up from a watch folder to encode into your various delivery formats.

  • How to I get a link with a "Mail to" address to open up a Compose window in my Yahoo mail, rather than in the Mail progrom on my Mac. I do not use the Mac Mail program.

    How to I get a link with a "Mail to" address to open up a Compose window in my Yahoo mail, rather than in the Mail progrom on my Mac. I do not use the Mac Mail program.
    == This happened ==
    Not sure how often
    == always

    Thank you, "the-edmeister" -- You render a great service, one that lifts my spirits.
    Your answer also taught me to be a little more persistent, as I had started looking at Preferences, and just didn't notice the icons (including Applications) at the top of that window that would have led me to my answer.
    Dave

  • Photoshop Elements 8. "Could not use Clone Stamp Tool because of a program error."  Please help.

    Photoshop Elements 8.  "Could not use Clone Stamp Tool because of a program error."  Please help.

    Try this:
    Open your picture file
    Access the clone stamp tool
    Hold down the ALT key on the keyboard and left click on the area from which you wish to clone, then release the ALT key, and click to place the pixels at the destination
    TIPS:
    It is a good idea to open a blank layer at the top in the layers palette, and do the cloning on this layer. Be sure that "sample all layers" at the top is checked. You can change the layer opacity if necessary
    Use the bracket keys next to the letter p on the keyboard to increase & decrease the size of the cursor
    Let us know  how you make out with the error message now.

  • Can not use all the tools in my drawing markups any ideas on getting them to work?

    Can not use all the tools in my drawing markups any ideas on getting them to work?

    Hi tonys60181,
    Could you please let me know what version of Adobe Acrobat are you using.
    What all drawing tools are you unable to access?
    Is this issue specific to one PDF file or all?
    What exactly happens when you try to use any drawing markup?
    Please let me know.
    Regards,
    Anubha

  • Can not use TOUCH function on Nokia 6600 slide

    Can not use TOUCH function on Nokia 6600 slide-
    turned on sensor in phone settings, but when i touch the PHONE it does not work.
    Please, tell me how use this function or maybe my phone is out of order

    As long as your Sensor Settings are On within Menu, Settings, Phone, Sensor Settings then you just need to do the following -
    Tapping
    The tap function allows you to quickly
    mute and reject calls and alarm tones, and
    to display a clock just by double-tapping
    the back or front of the phone when the
    slide is closed.
    Select Menu > Settings > Phone >
    Sensor settings to activate the tap
    function and vibration feedback.
    Mute calls or alarms
    Double-tap the phone.
    Reject a call or snooze an alarm after
    muting it
    Double-tap the phone again.
    Display the clock
    Double-tap the phone.
    (If you have missed calls or received new
    messages, you must view them before you
    can see the clock.)
    Simply, if you double tap the screen when the slide is closed and you can see the clock appear then it is working.
    I hope this makes it clearer for you.
    Full Manual here - http://nds1.nokia.com/phones/files/guides/Nokia_6600_slide_UG_en.pdf

  • Unable to install "Mavericks" as it asks for my 'Admin Password" and it does not work. Have not used it since I got my iMac in 2008. First upgrade to do so. Any solutions please?

    I have a 2008 iMac which had Leopard initially and I have upgraded to each new OS without a hitch. I downloaded "Mavericks" and began the install, it asked me for my "Admin Password" which I have never ever used since I set the Mac up, I have it safely tucked away so entered it, it rejected it each time. Am sort of lost now, as if my "Admin P/W" does not work here can I go from here?
    I have seen many others with this problem but so far most of the solutions seem to be for the "log in" or "User" password not the Admin one.
    I am running Mountain Lion successfully.
    I have my original disks as supplied and also a Snow Leopard install disk.
    I have seen some info about fixing this via Lion Recovery partition which I must have due to using Mt Lion.
    How can I repair this situation.
    Thank you to all those who respond.

    Thanks for your reply.
    I have visited both the sites you listed but it seems to me that the solutions mentioned are to fix the User or log in p/w's.They do not seem to refer to the admin one again.
    I understand about it being just like other user accts but the fixes do not really refer to it only the above two.
    I have no problem booting up my Mac, I do not use a log in p/w so my problem is with the Admin p/w that was set up back in 2008. This is what I need to reset etc.
    I am quite confused over these pw's as to just what is what and I need to make sure I understand all before I get into deeper trouble following these links.
    This Admin p/w that was set up has never been used and is the only p/w I have except for my Apple ID. All previous upgrades only required my user name log in which has no p/w set up.
    I hope you can follow me here butI have read so much on this it is becoming very confusing about whcih p/w's are what.

  • Index used or not used?

    Hi,
    I have a query with 2 master/detail tables joined to each other, I use a condition on a column (salesmen code) if i use SLS_CODE = 1 is much faster (since it is using the index) unlike SLS_CODE BETWEEN 1 AND 1 (since it aint using the index)
    OK! what's the catch here, i knew oracle processes differently each clause, but why it's not using the index???
    I have the optimizer_mode on CHOOSE.
    Any suggestions??
    Thanks in Advance
    Tony S. Garabedian

    The problem is solved, stupidly i didn't make the join on all of the primary keys, i left the year field unjoined which is a primary key in all the tables.
    WHERE AM.AUDT_ID = AD.AUDT_ID
    AND CM.CPNY_CODE = CD.CPNY_CODE
    AND CM.BRCH_CODE = CD.BRCH_CODE
    AND CM.PAY_YEAR = CD.PAY_YEAR
    AND CM.PAY_NUM = CD.PAY_NUM
    AND CM.ACVH_TYPE = CD.ACVH_TYPE
    AND AD.SLS_CODE = CM.SLS_CODE
    AND IM.CPNY_CODE = CD.CPNY_CODE
    AND IM.BRCH_CODE = CD.BRCH_CODE
    AND IM.MVTS_YEAR = CD.PAY_YEAR
    AND IM.AUXL_TYPE = CD.AUXL_TYPE
    AND IM.AUXL_CODE = CD.AUXL_CODE
    AND IM.MVTS_USER_ID_1 = CD.JALD_AFFAIR
    AND CD.SLS_CODE BETWEEN :N_PARAM01 AND :N_PARAM09
    I'll mail you the details.
    Thanks Syed.
    Regards,
    Tony S. Garabedian

  • Index not used on view when table stats exist

    Hello,
    I would be grateful if someone comes with ideas on the following problem I'm currently facing.
    I have a table with XMLTYPE data type column:
    sql-->desc ACFBNK_STMT008
    RECID     NOT NULL     VARCHAR2(200)
    XMLRECORD XMLTYPE
    I have a view V_ACFBNK_STMT008 on that table, in which the view columns are defined as extracted tags values from the XMLTYPE field, e.g. for the view field N_BOOKING_DATE:
    numcast(extractValue(xmlrecord,'/row/c25')) "N_BOOKING_DATE"
    (note: numcast is just a simple function that returns TO_NUMBER of its input argument)
    I have also a function-based index on this field of the table:
    CREATE INDEX train4.NIX_ACFBNK_STMT008_C25
    ON train4.ACFBNK_STMT008("TRAIN4"."NUMCAST"(extractValue(xmlrecord,'/row/c25')))
    And so, I'm executing on the view the following SQL statement:
    SELECT RECID FROM V_ACFBNK_STMT008 WHERE (N_BOOKING_DATE > TO_NUMBER('20070725'));
    Now, the problem comes: when statistics exist on the view base table (that is ACFBNK_STMT008) then the above statement is not using the index and is making a "table access full". When I delete the statistics for the table then the SQL runs fast with an "index range scan".
    Which is further strange - when I change the ">" operand with a "=" the SQL statement correctly captures the index regardless of whether or not statistics exist.
    I've tried to manually rewrite the SQL and include the "numcast" function in it:
    SELECT RECID FROM TRAIN4.V_ACFBNK_STMT008 WHERE ( N_BOOKING_DATE>train4.numcast(TO_NUMBER( '20010725' ) ));
    And in this way the index is used OK even with statistics existing!
    But regretfully I don't have a way to change the application and the SQL, so the only things I can change is the view and/or the index.
    Thank you in advance,
    Evgeni
    P.S.
    I've tried gathering statistics in both the following ways but still the problem persists:
    sql-->analyze table train4.ACFBNK_STMT008 compute statistics;
    sql-->exec dbms_stats.gather_table_stats(ownname=>'TRAIN4', tabname=>'ACFBNK_STMT008', CASCADE=>TRUE, partname=>NULL);

    Oh, and I forgot to mention: I cannot change the view definition as well (for example, to remove the "numcast"), since every now and then the application would recreate it automatically with the same code. :(

  • I have an old ipod that i have not used in a very long time, ive had it on a charger now for over an hour and i still cnnot get my ipod to turn on, how can i fix my problem, i just downloaded the new version of itunes aswell, so i know its not my itunes.

    i have an old ipod touch that i have not used in a very long time, and im having trouble gettign it to turn on. ive had it on a charger for over an hour now and still nothing hs changed. i just updated my itunes to the current version they haev so i know its not an itunes problem its rather a problem with the old ipod touch itself. im leaving for deployment soon and im trying to get this fixed without having to send it in. If anyone has any ideas on how to get this thing turned on it would be greatly appreciated.

    Well, two thoughts.
    The battery has completely discharged and will take overnight to recharge, so don't expect much in an hour.
    The battery has deep discharged and is now dead. It will never recharge and should be replaced.
    If your iPod Touch, iPhone, or iPad is Broken
    Apple does not fix iDevices. Instead they exchange yours for a refurbished or new replacement depending upon the age of your device and refurbished inventories. On rare occasions when there are no longer refurbished units for your older model, they may replace it with the next newer model.
    You may take your device to an Apple retailer for help or you may call Customer Service and arrange to send your device to Apple:
    Apple Store Customer Service at 1-800-676-2775 or visit online Help for more information.
    To contact product and tech support: Contacting Apple for support and service - this includes international calling numbers.
    iPod Service Support and Costs
    iPhone Service Support and Costs
    iPad Service Support and Costs
    There are third-party firms that do repairs on iDevices, and there are places where you can order parts to DIY if you feel up to the task. Start with Google to search for these.
    The flat fee for a battery exchange is, I believe, $99.00 USD.

  • Why am I being charged for data when connected to wifi AND not using my phone?!

    WHY am I being charged for data that I'm not using? At times when I'm asleep AND my phone is connected to wifi?!  This happens at really specific, alternating times like 9:54 pm every day, or 12:01 am, 6:01 am and then 12:01pm and 6:01pm. When I called I was told  "maybe your wifi at home is disconnecting" or "maybe your phone is connecting to atnt or sprint". It's not possible that my phone is disconnecting from wifi every six hours on the dot and, at that exact time, I'm always using data. I find it hard to believe that I live in a HUGE city and my phone magically connects to other networks and I NEVER notice this. Verizon is full of LIARS (and maybe’s) and I'm not convinced that these data charges are a coincidence. I was told to turn off my cellular data to see if the problem resolves itself. Why should I alter my daily life when Verizon is clearly the one with the issue? I hope there's a class action lawsuit because Verizon is trying to get over on everyone! I need answers!

        Hello NotHappy101,
    I think it's quite odd that your data usage is at very specific times. We can certainly take a closer look. Please reply to my Direct Message, so we can get some additional details.
    Thanks,
    MichelleH_VZW
    Follow us on Twitter @VZWSupport

Maybe you are looking for

  • Why can't anyone else see my Edge Animate html files in their browsers?

    I create this awesome file with bells and whistles and looks and runs great on mY computer and in mY browsers but when I send a client(s) the HTML file to view in their browser it NEVER works! Do I need to send them all the files? The image folder...

  • Automator won't convert pdf to word

    I found directions on-line for converting a pdf file to a Word document, followed the directions precisely, using the Automator application. It all seemed to go according to the directions, except that when I opened the rich-text document, there was

  • HP touchsmart adding graphics card

    I have a question. I have HP touchsmart computer, model 520-1070 uk with integrated graphics card HD 2000. Can I add better HD graphics card in format MXM to my computer ? It's very important to me, please help ! This question was solved. View Soluti

  • How to cancel messages in SXMB_MONI with status "No receive found"

    Dear All, I need to cancel message with error status as mentioned in captioned subject. Can you please guide me how to do it? Regards, Saras Jain

  • Affects Effects failed to load ExporterXDCAMHD.prm

    Errors pop up while starting Affect Effect CS6. I can still operate CS6 and everythings seems working fine except there is not option for render as MXF file ( i have successfully export.mxf directly from affect effects before move my reinstall my OS