Options, Features and Properties of your Database

There are a lot of options which can be used in database. Not all are available in your database. It depends which version of database you are using (standard/enterprise or else)  or if a given option is active/tuned off/on. You can find details in V$OPTION.

select * from v$option;

PARAMETER                                 VALUE
----------------------------------------- -----
Active Data Guard                         FALSE  
Advanced Compression                      TRUE  
Backup Encryption                         TRUE  
Basic Compression                         TRUE  
...
Spatial                                   TRUE  
Streams Capture                           TRUE  
Unused Block Compression                  TRUE  
XStream                                   TRUE  

 64 rows selected

Continue reading

Table compression in Oracle 11g

This article presents new features related to table compression in Oracle 11g. It’s not presenting compression related to Exadata.

Compression option is extended in 11g and have following features:

  • requires compatibility 11.1 for new functionality
  • extended COMPRESS caluse: COMPRESS [BASIC | FOR OLTP]
  • BASIC – default, bulk-load operations from prior releases
  • FOR OLTP – it’s new used for OLTP + direct loads
  • BASIC and FOR OLTP are not supported for tables with more than 255 columns
  • only available for heap organized tables
  • compression can be different for each partition
  • COMPRESS [BASIC|FOR OLTP] is not used for BasicFile LOBs
  • new columns in views DBA/ALL/USER_TABLES and DBA/ALL/USER_TAB_PARTITIONS – COMPRESS, COMPRESS_FOR
  • columns can’t be dropped for compressed tables only set as unused

Continue reading

UTL_MATCH – string similarity/matching 11G

UTL_MATCH is very interesting package which implements quite advanced algorithms to match two strings. You can use them to quickly match name like First Names or Last Names.

Two basic algorithms are implemented here:

Edit Distance” – is a measure of Similarity between two strings, s1 and s2. The distance is the number of insertions, deletions or substitutions required to transform s1 to s2

Jaro-Winkler algorithm” is another way of calculating Edit distance between two strings. It is a String Comparator measure that gives values of partial agreement between two strings. The string comparator accounts for length of strings and partially accounts for typical human errors made in alphanumeric strings

Continue reading

NLS_NUMERIC_CHARACTERS as easy as possible

In this article I present how NLS_NUMERIC_CHARACTERS parameter works.

This parameter specifies the characters to use as group separator and decimal character. The group separator separates integer groups (that is, thousands, millions, billions, and so on). The decimal separates the integer portion of a number from the decimal portion.

NLS_NUMERIC_CHARACTERS = “decimal_character group_separator”

Continue reading

Install Oracle Enterprise Manager 12C release 2(12.1.0.2) on OEL 5/6

This article presents installation of new Oracle Enterprise Manager 12C version 12.1.0.2 on OEL5, OEL6. You need at least 5GB of memory for this installation so check your VirtualBox settings before proceeding.

Read following article to find out how to install OEL5,6 and database 11G Linux. They are required for this installation:

This installation was done on OEL5 but it’s no different on OEL6(extra library must be installed)

Continue reading