Set the Oracle Data Modeler Language to English

My prefered language in Oracle Data Modeler is English.

If the language is not English here are the steps to change this:

Add the line following line to the file datamodeler.conf in the directory datamodeler\bin\. On a Mac it is in the OracleDataModeler-VersionNumer.app in the folder Contents\Resources\datamodeler\datamodeler\bin\

AddVMOption  -Duser.language=en

Restart Oracle Data Modeler.

Versions: 18.1

Got the tip on the webpage:
http://www.memosoup.com/20121216/oracle-data-modeler-change-user-interface-language.html#comment-78714

Advertisements

Set the SQL Developer Language to English

My prefered language in SQL Developer is English.

If the language is not English here are the steps to change this:

Add the line following line to the file sqldeveloper.conf in the directory sqldeveloper\bin\. On a Mac it is in the SQLDeveloper.app in the folder Contents\Resources\sqldeveloper\sqldeveloper\bin\

AddVMOption  -Duser.language=en

Restart SQL Developer.

Versions: 4.0.0 to 18.2

Literals: Alternative to single quote to start/end a string

As all know I can use single quotes to start/end a string in SQL and PL/SQL.

SELECT 'my string' AS a
  FROM dual;

A
---------
my string

When we have single quotes in a string we need an escape character. In Oracle this is another single quote. That looks like this.

SELECT 'my string with two single quotes for one '' ' AS a
  FROM dual;

A
-------------------------------------------
my string with two single quotes for one '

Complex strings can be difficult to handle this way. But Oracle provides another option.

SELECT q'[my string]' AS a
  FROM dual;

A
---------
my string

This way you can have as many single quotes in the string as you wish.
There are other options besides [] – {}, ().

SELECT q'{my 1' 2'' 3''' 4'''' string}' AS a
  FROM dual;

A
---------------------------
my 1' 2'' 3''' 4'''' string

I hope this helps.

Oracle Documentation 12c – Literals