Collate



Translate Collate. See 4 authoritative translations of Collate in Spanish with example sentences, conjugations and audio pronunciations. A collation specifies the bit patterns that represent each character in a dataset. Collations also determine the rules that sort and compare data. SQL Server supports storing objects that have different collations in a single database. The collate standard facet provides functions to compare and assist in comparing strings in a locale-specific manner. The collate class template has a protected destructor: Programs shall only construct objects of derived classes, or use those installed in locale objects (through usefacet). The values of the default collation column specify the default collations for the character sets. By convention, a collation for a character set begins with the character set name and ends with ci (case insensitive) cs (case sensitive) or bin (binary).

(redirected from collating)
Also found in: Thesaurus, Legal, Idioms, Encyclopedia.

col·late

(kə-lāt′, kŏl′āt′, kō′lāt′)tr.v.col·lat·ed, col·lat·ing, col·lates
1. To examine and compare carefully in order to note points of disagreement.
2. To assemble in proper numerical or logical sequence.
3. Printing
a. To examine (gathered sheets) in order to arrange them in proper sequence before binding.
b. To verify the order and completeness of (the pages of a volume).
4. Ecclesiastical To admit (a cleric) to a benefice.
[From Latin collātus, past participle of cōnferre, to bring together : com-, com- + lātus, brought; see telə- in Indo-European roots.]
American Heritage® Dictionary of the English Language, Fifth Edition. Copyright © 2016 by Houghton Mifflin Harcourt Publishing Company. Published by Houghton Mifflin Harcourt Publishing Company. All rights reserved.

collate

(kɒˈleɪt; kə-) vb (tr)
1. (Literary & Literary Critical Terms) to examine and compare (texts, statements, etc) in order to note points of agreement and disagreement
2. (Library Science & Bibliography) (in library work) to check the number and order of (the pages of a book)
3. (Printing, Lithography & Bookbinding) bookbinding
a. to check the sequence of (the sections of a book) after gathering
4. (Ecclesiastical Terms) (often foll by to) Christianity to appoint (an incumbent) to a benefice
[C16: from Latin collātus brought together (past participle of conferre to gather), from com- together + lātus, past participle of ferre to bring]
Collins English Dictionary – Complete and Unabridged, 12th Edition 2014 © HarperCollins Publishers 1991, 1994, 1998, 2000, 2003, 2006, 2007, 2009, 2011, 2014

col•late

(kəˈleɪt, koʊ-, kɒ-, ˈkoʊ leɪt, ˈkɒl eɪt)
v.t. -lat•ed, -lat•ing.
1. to gather or arrange (pages) in their proper sequence.
2. to verify the arrangement of (the gathered sheets of a book) before binding.
4. to verify the number and order of the sheets of (a volume) to determine its completeness.
[1550–60; < Latin collātus, past participle of conferre to bring together; see confer]
col•la′tor,n.
Random House Kernerman Webster's College Dictionary, © 2010 K Dictionaries Ltd. Copyright 2005, 1997, 1991 by Random House, Inc. All rights reserved.

collate

1. The grouping together of related items to provide a record of events and facilitate further processing.
2. To compare critically two or more items or documents concerning the same general subject; normally accomplished in the processing and exploitation phase in the intelligence cycle. See also intelligence process.
Dictionary of Military and Associated Terms. US Department of Defense 2005.

collate


Past participle: collated
Gerund: collating
Collateral movie
Imperative
collate
collate
Present
I collate
you collate
he/she/it collates
we collate
you collate
they collate
Preterite
I collated
you collated
he/she/it collated
we collated
you collated
they collated
Present Continuous
I am collating
you are collating
he/she/it is collating
we are collating
you are collating
they are collating
Present Perfect
I have collated
you have collated
he/she/it has collated
we have collated
you have collated
they have collated
Past Continuous
I was collating
you were collating
he/she/it was collating
we were collating
you were collating
they were collating
Past Perfect
I had collated
you had collated
he/she/it had collated
we had collated
you had collated
they had collated
Future
I will collate
you will collate
he/she/it will collate
we will collate
you will collate
they will collate
Future Perfect
I will have collated
you will have collated
he/she/it will have collated
we will have collated
you will have collated
they will have collated
Future Continuous
I will be collating
you will be collating
he/she/it will be collating
we will be collating
you will be collating
they will be collating

Explain Duplex And Collate

Present Perfect Continuous
I have been collating
you have been collating
he/she/it has been collating
we have been collating
you have been collating
they have been collating
Future Perfect Continuous
I will have been collating
you will have been collating
he/she/it will have been collating
we will have been collating
you will have been collating
they will have been collating
Past Perfect Continuous
I had been collating
you had been collating
he/she/it had been collating
we had been collating
you had been collating
they had been collating
Collate
Conditional
I would collate
you would collate
he/she/it would collate
we would collate
you would collate
they would collate
Past Conditional
I would have collated
you would have collated
he/she/it would have collated
we would have collated
you would have collated
they would have collated
Collins English Verb Tables © HarperCollins Publishers 2011
Verb1.collate - compare critically; of texts
compare - examine and note the similarities or differences of; 'John compared his haircut to his friend's'; 'We compared notes after we had both seen the movie'
2.collate - to assemble in proper sequence; 'collate the papers'
order - bring order to or into; 'Order these files'
Based on WordNet 3.0, Farlex clipart collection. © 2003-2012 Princeton University, Farlex Inc.

collate

verbcollect, gather, organize, assemble, compose, adduce, systematizeRoberts collated the data on which the study was based.
Collate
Collins Thesaurus of the English Language – Complete and Unabridged 2nd Edition. 2002 © HarperCollins Publishers 1995, 2002

collate

verb
To examine in order to note the similarities and differences of:
The American Heritage® Roget's Thesaurus. Copyright © 2013, 2014 by Houghton Mifflin Harcourt Publishing Company. Published by Houghton Mifflin Harcourt Publishing Company. All rights reserved.

collate

[kɒˈleɪt]VTcotejar
Collins Spanish Dictionary - Complete and Unabridged 8th Edition 2005 © William Collins Sons & Co. Ltd. 1971, 1988 © HarperCollins Publishers 1992, 1993, 1996, 1997, 2000, 2003, 2005

collate

[kɒˈleɪt kəˈleɪt]vt [+ data] → collationner
Collins English/French Electronic Resource. © HarperCollins Publishers 2005

collate

vt
(Typ) → kollationieren, zusammentragen
Collins German Dictionary – Complete and Unabridged 7th Edition 2005. © William Collins Sons & Co. Ltd. 1980 © HarperCollins Publishers 1991, 1997, 1999, 2004, 2005, 2007
Collins Italian Dictionary 1st Edition © HarperCollins Publishers 1995

Want to thank TFD for its existence? Tell a friend about us, add a link to this page, or visit the webmaster's page for free fun content.
Link to this page:

8i | 9i | 10g | 11g | 12c | 13c | 18c | 19c | 21c | Misc | PL/SQL | SQL | RAC | WebLogic | Linux

Home » Articles » 12c » Here

Collation determines how strings are compared, which has a direct impact on ordering (sorting) and equality tests between strings. Oracle Database 12c Release 2 (12.2) lets you specify the collation used for columns that hold string data, allowing you to easily perform case insensitive queries, as well as control the output order of queried data.

This article is only covering the basics of how to set the collation. The wider implications of using collations, as well as the restrictions associated with them can be found here.

  • Setting Collation

Related articles.

Collate

Assumptions

This article assumes the following.

  • Your are using Oracle Database 12c Release 2 (12.2).
  • Your MAX_STRING_SIZE parameter is set to EXTENDED. You can see how to do this here. Without this you will see this error, 'ORA-43929: Collation cannot be specified if parameter MAX_STRING_SIZE=STANDARD is set.'
  • Your COMPATIBLE parameter is set to 12.2 or higher.
  • The database character set is AL32UTF8, NLS_LANGUAGE=AMERICAN and NLS_TERRITORY=AMERICA. Other setting can be used, but the output may not resemble that shown in this article.

Default Behaviour

To understand the impact of collation, it's important to understand the default behaviour of an Oracle database. Before we start using UTF data we need to make sure SQL*Plus will handle it properly. We can do this by setting the NLS_LANG environment variable correctly before starting SQL*Plus.

Create the following test table and populate it with some data containing special characters. Notice the variation in the first letter of the first name.

The following query shows how Oracle treats special characters with regards to sort operations. We can see upper case comes before lower case in the sort order, and the regular characters come before the special characters.

The following query shows how Oracle treats special characters in comparisons. We can see an exact match is made.

The following query shows how Oracle treats special characters in group operations. Once again, the variants on the first character are treated separately.

In the following examples, think back to this default behaviour.

Setting Collation

Collation can be set at a number of different levels, which will be demonstrated below. Each section will not repeat all possible syntax variations or collations as that would be too repetitive.

There are two basic types of collation.

  • Binary : Ordering and comparisons of string data are based on the numeric value of the characters in the strings.
  • Linguistic : Ordering and comparisons of string data are based on the alphabetic sequence of the characters, regardless of their numeric values. The list of linguistic collations is available here.

When using collations there are three suffixes that alter the behaviour of sorts and comparisons.

  • '_CI' : Case insensitive, but accent sensitive.
  • '_AI' : Both case and accent insensitive.
  • '_CS' : Both case and accent sensitive. This is default if no extension is used.

If no collation is specified, directly or via a default setting, the default USING_NLS_COMP pseudo-collation is used, which means the NLS_SORT and NLS_COMP parameters are used to determine the actual collation used.

The only supported collation for CLOB and NCLOB columns is the USING_NLS_COMP pseudo-collation.

Column-Level

The collation of a specific column can be defined when the table is created. In the following example we set the collation of the COMPANY column to BINARY_CI, which will make sorts and comparisons of that columns data case insensitive, but will still treat special characters as separate.

We can see the collation has made a difference if we query data in the column.

We can also set the collation of new columns added to an existing table. In the following example we set the collation of the LOCATION column to BINARY_AI, which will make sorts and comparisons of that columns data both case insensitive and accent insensitive.

The output below shows the impact of the collation on this new column.

We can see the collation of the columns using the {DBA|ALL|USER}_TAB_COLUMNS views.

Table-Level

The default collation for the whole table can be defined when the table is created.

The table default collation can be changed using the ALTER TABLE statement, but this only affects new columns added to table, not existing columns.

By displaying the column level collation we can see the existing column was not affected by the change in the default collation of the table.

The default table collation is displayed using the {DBA|ALL|USER}_TABLES views.

Schema-Level

The default collation for a schema can be defined when the user is created.

If we connect to the user and create a table we can see the default setting is used to define the default table collation.

The default schema collation is changed using the ALTER USER command, but this doesn't affect the default collation of any existing objects.

If we add another column to the existing table you may think it will use the new default schema collation, but you would be wrong.

Remember, changes to the default schema collation do not affect existing objects, so the default table collation is unchanged.

Session-Level

There are two ways to set the default collation for a session. The DEFAULT_COLLATION parameter can be set at session level.

Alternatively the NLS_SORT and NLS_COMP parameters can be set at session level, making them the defaults for the session.

Notice the default references to the USING_NLS_COMP pseudo-collation, which means the NLS_SORT and NLS_COMP parameters are used to determine the actual collation used.

Database-Level

If the NLS_SORT and NLS_SORT parameters are set at the CDB level they represent the default values for the CDB and all associated PDBs.

If the parameters are set at the PDB level they override the CDB settings.

Remember to reset these values if you don't want any unexpected behaviour in your instance.

Statement-Level

There are a number of ways to influence the results of statements, regardless of the collation associated with the columns. The following examples show how you might use the COLLATE operator and NLSSORT function.

First we need a new session and a new table with no collation defined.

Now we can try a few examples of using the COLLATE operator and NLSSORT function.

Linguistic Indexes

Collate

Collate Or Not Collate Printing

Any index created on a column using a named collation is actually a function-based index, but you can create additional indexes with alternative collations.

Views and Materialized Views

Collateral Definition

Views and materialized views can take advantage of collation. The following example creates a clean table, a view that uses collation, then queries the view to shown the collation in action.

For more information see:

Meaning To Collate

Hope this helps. Regards Tim...