Digital / use of the Index of Varchar BINARY not
HelloWe had recently on our system a table with an index of Varchar2, who was not used and causing the queries to do a full table scan.
The user used for querying is the user used by the ETL, and in order to avoid the distinction of uppercase / lowercase, this user has a trigger to change the Dutch NLS settings.
User settings are:
NLS_LANGUAGE = DUTCH
NLS_SORT = DUTCH_CI
NLS_COMP = ANSI
As far as I know, when NLS_COMP is set to ANSI, it uses the NLS_SORT setting.
That is why in this case, we use not BINARY.
I also know that do not use the BINARY is supposed to so that the user not to use indexes, they are created by default in BINARY format.
However, until today almost all our used queries index properly.
Which is a bit suspicious, that we did not use the BINARY parameters.
It's why I did some checking, and what I concluded was the following:
* When you have a numeric index (Number type), the index is used, even when the user uses no BINARY file
* When the index is a character (type varchar2), the index is not used when the user is not BINARY, however it will be used when parameters NLS_SORT = BINARY.
I couldn't find anywhere on the internet a explanation on the difference between a number and the type Varchar index and whether they should act differently with the BINARY sort.
Please could someone explain this behavior, it would be an interesting lesson for me.
Kind regards
Yaron
NLS_COMP and NLS_SORT are only relevant for character data, it is related to the internal digital representation of characters. Binary number compared with the linguistic characteristics do not, they are always sorted pure 'mathematically '.
Werner
Tags: Database
Similar Questions
-
Force the use of the index without advice
Dear all,
I'm a newbie in the world of oracle.
I HAD POSTED THIS SAME QUESTION IN SQL AND PLSQL CATEGORY, but thought that I had posted in a wrong category, so I post the same question again here.
Recently my boss asked me a question about the use of the index.
He wants to force the index to use if the optimizer chooses not to use it.
But limitattion is this boat reach the query or the code because it is taken directly by an application that we can not change the code.
So how is - a can force a query to use index without giving advice.
It should be for a particular query, it should not apply for all indexes in the database.
I know a parameter "OPTIMIZER_INDEX_COST_ADJ. If you set this parameter correctly, you can force the optimizer to use index. But it has its own limitations.
So I want an alternative to this option which can only be applied to a particular query that is run without the use of indicators.
Because this is my first thread, sorry if I made any mistake by posting the question
Thank you all in advance
Kind regards
Navin BandiHello
Have you tried the oracle outlines.
Concerning
Anurag -
What is the most trouble free Mac OS to use with the collection master CS6? (not CC)
What is the most trouble free Mac OS to use with the collection master CS6? (not CC)
Unless 10.10 has features you really need, a restore is logical. It's a pain, but if you can't do the job, this is what is needed.
Roll back MacOS is outside these forums, but I don't know that apple Support you can get to the right help. That's all I can say.
Gene
-
I am trying to cancel my subscription, you need now to an upgrade of system of use of the services. I am not able to update at this time and your cancellation instructions do not lead me anywhere it is useful.
Hi Scott,.
I checked your account details. There is no active member under your email address.
Please try to connect with the correct email address. You will find the option of management plan.
Concerning
Megha Rawat
-
I do some anyinteract queries and I noticed that the use of the spatial index is very inconsitent. For some queries, the spatial index gets used as planned and for other queries that I need to use an indicator of index to force the optimizer to use the spatial index instead of doing a full table scan. Oracle version is 11.2.0.3. I was wondering if anyone else has seen this kind of behavior. I saw a bug in metalink which refers to this question, but they were not updated in provided.
Yes it is a problem. I have tables that have the geom in them, fully indexed and make a query space and return a digital ID and no flags required, but add the geom in the return game and all of a right to a table scan. It's troubling behavior.
-
Regarding the use of the Index
Hello
I have some doubts about the index:
1. What is the difference between the 2 index usage scenarios below:
/ * + index (an index_name) parallel (a, 4) * /.
/ * + parallel_index(a,index_name,4) * /.
Are the same two these?
2. What is scan limited index complete and full scan index?
3. I have a table in the database and there a few indexes on some columns. How can I check if the index is Bitmap or B-Tree?
Thank you
AB1. What is the difference between the 2 index usage scenarios below:
/ * + index (an index_name) parallel (a, 4) * /.
/ * + parallel_index(a,index_name,4) * /.
Are the same two these?No,
First of all the two boards, use the index and the other to indicate to the optimizer to use 4 simultaneous servers to a parallel operation areThe second is just an indication. He tells the optimizer to use 4 concurrent servers on partitioned indexes.
2. What is scan limited index complete and full scan index?
The full index scan simple block reads.
Full Fast scan do multi block reads.3. I have a table in the database and there a few indexes on some columns. How can I check if the index is Bitmap or B-Tree?
In user_ | all_dba_indexes. Index_type will be BITMAP or NORMAL
Concerning
PeterPS: Speaking of tips. This favorite, can answer most of these questions, much better that I can:
http://www.Oracle.com/pls/db112/homepagePublished by: Peter on March 26, 2013 13:47
-
Just bought XBR65x850C. hung out on TV to stereo receiver digital optical cable. Works very well for cable and DVD player, but NO sound when I try to watch any application like Youtube, Amazon Prime, etc.. If I change to 'Speakers TV', I hear. I have I something wrong, or is this a bug? Is there a ' cheat around "such as the use of the stereo headphone jack? Thanks for any info.
After reviewing all possible problems and opportunities, I found that the problem has been resolved by going to audio; Advanced; and optical audio output digital changinig; "Max". This enabled audio on all applications. Thank you.
-
Rollover image on the index... page not work on other pages
I have a disconcerting problem. On the index of a site page I built, images from overview to the works of navigation very well. But when you click on any navigation button to go to any other page of the site, the bearings do not work on those you can always click on the buttons. Can someone tell me what is happening? If it helps, I manually insert the transfers in the page index, but for others, I copied and pasted the code which, after checking, seems to be exactly the same.
The code in the home pages is very different from the home page.
JavaScript is missing, more onloads in the
tag.Rather than copy and paste the code, why not just open the home page and then file > save as to create other pages? Then fill it with content in the knowledge that the functionality is intact?
Or better we DW models?
Or even better use the Server Side Includes and buttons navigation CSS style.
What you have right now is a maintenance nightmare because the slightest change to the navigation bar should be copied manually on each individual page.
-
Muse form used on the third server widgets does not
Hi all.
Our new website - form reports "Server error" (in German: "Auf dem Server ein Fehler aufgetreten ist").
We followed the trouble Shooting advice like: Troubleshooting Muse form used on the servers of third-party Widgets.
(The site is hosted on a 3rd party to a big well-known company server).
Checking form under scripts/form_check.php is not possible:
Parse error: syntax error, unexpected ' {' in www.der-handyman.de/preview/holiday/scripts/form_throttle.php/home/web151/piet03/ftproot/www.der-handyman.de/preview/holiday/scripts/form_throttle.php on line 17 }
On the same host in root diretory are other ancient forms > > they work.
Who is wrong?
Like forms the oldest work, but not the most recent one, I suggest you to contact the server team and let them know that the issue, if there is no problem of limitation that they should check.
Thank you
Sanjit
-
The use of the index in a loop for correctly?
Hello world
I'm new to LabVIEW. I want to ask a simple question.
Using the following diagram, I was expecting an array whose components are "tan (0) tan (1) tan (2) tan (3). Is there a problem with my schema?
Thanks in advance!
This isn't a specific LabVIEW 'problem' in fact, but on data types. Do you know the difference between integers and floating numbers to decimal?
-
Several digital signatures by the same person works does not correctly
I was tasked to automate our voluntary process. I converted the forms to PDF using Adobe DC forms. My problem is that there are several signature lines, even if only one person is signing the documents (think of a mortgage application). Whenever I digital sign a form page, asked me to save him.
How can I have a volunteer sign multi-page PDF without saving each time? I then want the signed form sent via e-mail.
Thank you
Donna
You must use a stamp for this.
-
Hello. I just bought an Iphone 6s MORE and just updated to iOS 9.2 and I had this problem with applications that consume my battery is to say the list of applications that drain the battery does NOT appear when I click on settings > battery. And also I meet another problem that is my standby and usage time appeared at the same time even if I SLEEP there during the entire period. Someone of you this problem? If yes kindly share here how you can solve the problem
Force restart the phone now sleep and home for 10 seconds, button until the Apple logo comes back again.
You won't lose data, but which can cure some problems after installing new software.
The same use and waiting time is a sign for some applications, always running in the background, even when the phone is in standby. Restart will force close those apps.
The list of applications appears only when you used some applications for some time.
-
I can't check my homepage (my.yahoo.com) because he has apparently been blacklisted. This is not normal, how to fix this?
Your system details list shows the extension of 'Block Site 1.0.3', then you may have blocked the site it.
-
using indexes on varchar confusion with pl/sql collections
Hi, I seek to learn the mechanics behind the collections and have done ok so far until I came across you try using the index of varchar.
I use the following code: -.
the problem I have is in the second loop when trying to display 2 different types of address (IE home and term).declare type address_lines_tab is table of varchar2(50) index by pls_integer; type address_tab is table of address_lines_tab index by varchar(40); type student_rec is record( first varchar2(40), last varchar2(40), address address_tab ); type student_tab is table of student_rec index by pls_integer; student student_tab; i number := 0; v varchar2(20); x number := 0; begin student(1).first := 'mike'; student(1).last := 'jones'; student(1).address('home')(1) := 'the manor'; student(1).address('home')(2) := 'london'; student(1).address('home')(3) := 'w12 4kf'; student(1).address('term')(1) := '5 university'; student(1).address('term')(2) := 'plymouth'; student(1).address('term')(3) := 'pl22da'; student(2).first := 'helen'; student(2).last := 'roots'; student(2).address('home')(1) := '1 little lane'; student(2).address('home')(2) := 'hull'; student(2).address('home')(3) := 'h45 4fd'; student(2).address('term')(1) := '3 university'; student(2).address('term')(2) := 'plymouth'; student(2).address('term')(3) := 'pl22da'; for student_no in student.first .. student.last loop dbms_output.put_line( 'STUDNET NAME:' || student(student_no).first || ' ' || student(student_no).last); for add_type in student(student_no).address.first .. student(student_no).address.last loop dbms_output.put_line(student(student_no).address); for add_line in student(student_no).address(add_type).first .. student(student_no).address(add_type).last loop dbms_output.put_line(student(student_no).address(add_type)(add_line)); end loop; end loop; end loop; end;
because its indexed by a varchar, I get the following error: -.
ORA-06502: PL/SQL: digital or value error: character of number conversion error
How can I get around that, when a loop in the associative arrays that are indexed by varchar?
Thank you very much
It's the exit, I expect to see:-STUDNET NAME:mike jones HOME the manor london w12 4kf TERM 5 university plymouth pl22da STUDNET NAME:helen roots HOME 1 little lane hull h45 4fd TERM 3 university plymouth pl22da
Hello..
The problem is tat you can not use a "student (student_no).address.first" and "student (student_no).address.last" in a loop; because they are varchar2 index...
Yo can use, something like that...
nuStudent := student(student_no).address.count; for add_type in 1 ..nuStudent
-
Why the data tablespace is used to rebuild indexes?
11.2.0.3/RHEL 5.8
We were doing a REBUILD of Index and we got the following error message. I was under the impression that temporary tablespace is used to index
Reconstructions. But oracle used the tablespace intended to data (GTMLP_OAT_DATA) for reconstruction, as shown below. This is the expected behavior?
-User is correctly assigned a temporary tbsSQL> ALTER INDEX IDX_CSD_CLIENT_PROF REBUILD PARALLEL 6; ALTER INDEX IDX_CSD_CLIENT_PROF REBUILD PARALLEL 6 ERROR at line 1: ORA-12801: error signaled in parallel query server P011, instance tandhwr199:HMKRAP2 (3) ORA-30032: the suspended (resumable) statement has timed out ORA-01652: unable to extend temp segment by 1024 in tablespace GTMLP_OAT_DATA
It is true, GTMLP_OAT_DATA had actually run out of space.SQL> select username, DEFAULT_TABLESPACE , TEMPORARY_TABLESPACE from dba_users where username = 'GTMLP_01'; USERNAME DEFAULT_TABLESPACE TEMPORARY_TABLESPACE ------------------------------ ------------------------------ ------------------------------ GTMLP_01 GTMLP_OAT_DATA GTMLP_TEMP
So is my hypothesis tha only temporary with is used for the Index rebuild is bad?
Yes, your assumption is false. Temporary tablespace will be or could be used for sorting (large kinds) which is one of the steps in create index. Rest of the steps will be in the form of temporary to permanent tablespace segments. Here is your answer:
Maybe you are looking for
-
Screen sharing and the Bar Menu not desired
When you use the mode full screen with a shared computer, sharing screen menu bar down on the menu bar of the shared computer when the mouse touches the top of the screen. This makes the job difficult because it is not uncommon to hit the top of the
-
Satellite A100 - ATI Vista driver moved - cannot read from device
Hello I have the following problem: I downloaded the official Toshiba mobility driver for Windows Vista 32-bit (I had a Satellite A100 (PSAA9) for construction in mobility x 1400. Once I run the Setup, it will install the ccc, but the real driver, no
-
Deleting a group to a TDMS file increases the file size
Hi all I was searching for information on how to delete a group in a TDMS file. Apparently this is not a simple task as I thought because firstly, it is necessary to convert the TDMS file in a TOC file, remove the group from the TOC file and finally
-
The team of windows live email?
I received an email from windows live team saying that they need all my info on my account is this true? humble b
-
MacBook Pro cannot find a printer HP 6510 two reflect connected to wi - fi
HP all-in-One 6510... order print a few days ago... have restarted several times... wi - fi signal icon reflects connected, MacBook Pro is connected, but not him is not... problem only started a few days ago... no problem previously