dbTalk Databases Forums  

Table charset

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss Table charset in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Álvaro G. Vicario
 
Posts: n/a

Default Table charset - 09-23-2008 , 09:51 AM






I’ve learnt that setting an environmental variable called NLS_LANG in
the client computer makes client apps send and receive data in the
correct charset. I’ve also learned that I can query the NLS_%_PARAMETERS
views to find out the charset of database, instance and session. But...
Does Oracle 10g keep track of the charset in a per table or schema basis?

I’m about to start a brand new PHP application with Oracle backend and I
want to make sure that data does not get corrupted if someone else
manipulates the tables but it seems all I can do is either change the
settings for the whole server of change them for the current session.

Sorry if it's a silly question but the Oracle documentation about the
subject is overwhelming (including a 400+ pages Globalization Guide).


--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://bits.demogracia.com
-- Mi web de humor al baño María: http://www.demogracia.com
--

Reply With Quote
  #2  
Old   
Mark D Powell
 
Posts: n/a

Default Re: Table charset - 09-23-2008 , 10:14 AM






On Sep 23, 10:51*am, "Álvaro G. Vicario"
<alvaroNOSPAMTHA... (AT) demogracia (DOT) com> wrote:
Quote:
I’ve learnt that setting an environmental variable called NLS_LANG in
the client computer makes client apps send and receive data in the
correct charset. I’ve also learned that I can query the NLS_%_PARAMETERS
views to find out the charset of database, instance and session. But...
Does Oracle 10g keep track of the charset in a per table or schema basis?

I’m about to start a brand new PHP application with Oracle backend and I
want to make sure that data does not get corrupted if someone else
manipulates the tables but it seems all I can do is either change the
settings for the whole server of change them for the current session.

Sorry if it's a silly question but the Oracle documentation about the
subject is overwhelming (including a 400+ pages Globalization Guide).

--
--http://alvaro.es- Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web:http://bits.demogracia.com
-- Mi web de humor al baño María:http://www.demogracia.com
--


Does Oracle 10g keep track of the charset in a per table or schema
basis?
<<

No. All the data is stored based in the database character set and
translated to the client character set and the reverse for input.
There is no per table or per schema nls settings.

If a client submittes data that does not have a valid character set
representation then Oracle translates the character to the default
unknown character representation. Your application(s) should be
written in such a way as to only allow valid data to be submitted.

HTH -- Mark D Powell --




Reply With Quote
  #3  
Old   
Mark D Powell
 
Posts: n/a

Default Re: Table charset - 09-23-2008 , 10:14 AM



On Sep 23, 10:51*am, "Álvaro G. Vicario"
<alvaroNOSPAMTHA... (AT) demogracia (DOT) com> wrote:
Quote:
I’ve learnt that setting an environmental variable called NLS_LANG in
the client computer makes client apps send and receive data in the
correct charset. I’ve also learned that I can query the NLS_%_PARAMETERS
views to find out the charset of database, instance and session. But...
Does Oracle 10g keep track of the charset in a per table or schema basis?

I’m about to start a brand new PHP application with Oracle backend and I
want to make sure that data does not get corrupted if someone else
manipulates the tables but it seems all I can do is either change the
settings for the whole server of change them for the current session.

Sorry if it's a silly question but the Oracle documentation about the
subject is overwhelming (including a 400+ pages Globalization Guide).

--
--http://alvaro.es- Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web:http://bits.demogracia.com
-- Mi web de humor al baño María:http://www.demogracia.com
--


Does Oracle 10g keep track of the charset in a per table or schema
basis?
<<

No. All the data is stored based in the database character set and
translated to the client character set and the reverse for input.
There is no per table or per schema nls settings.

If a client submittes data that does not have a valid character set
representation then Oracle translates the character to the default
unknown character representation. Your application(s) should be
written in such a way as to only allow valid data to be submitted.

HTH -- Mark D Powell --




Reply With Quote
  #4  
Old   
Mark D Powell
 
Posts: n/a

Default Re: Table charset - 09-23-2008 , 10:14 AM



On Sep 23, 10:51*am, "Álvaro G. Vicario"
<alvaroNOSPAMTHA... (AT) demogracia (DOT) com> wrote:
Quote:
I’ve learnt that setting an environmental variable called NLS_LANG in
the client computer makes client apps send and receive data in the
correct charset. I’ve also learned that I can query the NLS_%_PARAMETERS
views to find out the charset of database, instance and session. But...
Does Oracle 10g keep track of the charset in a per table or schema basis?

I’m about to start a brand new PHP application with Oracle backend and I
want to make sure that data does not get corrupted if someone else
manipulates the tables but it seems all I can do is either change the
settings for the whole server of change them for the current session.

Sorry if it's a silly question but the Oracle documentation about the
subject is overwhelming (including a 400+ pages Globalization Guide).

--
--http://alvaro.es- Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web:http://bits.demogracia.com
-- Mi web de humor al baño María:http://www.demogracia.com
--


Does Oracle 10g keep track of the charset in a per table or schema
basis?
<<

No. All the data is stored based in the database character set and
translated to the client character set and the reverse for input.
There is no per table or per schema nls settings.

If a client submittes data that does not have a valid character set
representation then Oracle translates the character to the default
unknown character representation. Your application(s) should be
written in such a way as to only allow valid data to be submitted.

HTH -- Mark D Powell --




Reply With Quote
  #5  
Old   
Mark D Powell
 
Posts: n/a

Default Re: Table charset - 09-23-2008 , 10:14 AM



On Sep 23, 10:51*am, "Álvaro G. Vicario"
<alvaroNOSPAMTHA... (AT) demogracia (DOT) com> wrote:
Quote:
I’ve learnt that setting an environmental variable called NLS_LANG in
the client computer makes client apps send and receive data in the
correct charset. I’ve also learned that I can query the NLS_%_PARAMETERS
views to find out the charset of database, instance and session. But...
Does Oracle 10g keep track of the charset in a per table or schema basis?

I’m about to start a brand new PHP application with Oracle backend and I
want to make sure that data does not get corrupted if someone else
manipulates the tables but it seems all I can do is either change the
settings for the whole server of change them for the current session.

Sorry if it's a silly question but the Oracle documentation about the
subject is overwhelming (including a 400+ pages Globalization Guide).

--
--http://alvaro.es- Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web:http://bits.demogracia.com
-- Mi web de humor al baño María:http://www.demogracia.com
--


Does Oracle 10g keep track of the charset in a per table or schema
basis?
<<

No. All the data is stored based in the database character set and
translated to the client character set and the reverse for input.
There is no per table or per schema nls settings.

If a client submittes data that does not have a valid character set
representation then Oracle translates the character to the default
unknown character representation. Your application(s) should be
written in such a way as to only allow valid data to be submitted.

HTH -- Mark D Powell --




Reply With Quote
  #6  
Old   
Álvaro G. Vicario
 
Posts: n/a

Default Re: Table charset - 09-23-2008 , 10:17 AM



My excuses for the four identical copies of the message. My newsread
went berserk--I didn't even hit "Send" more than once...


--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://bits.demogracia.com
-- Mi web de humor al baño María: http://www.demogracia.com
--

Reply With Quote
  #7  
Old   
Álvaro G. Vicario
 
Posts: n/a

Default Re: Table charset - 09-23-2008 , 10:17 AM



My excuses for the four identical copies of the message. My newsread
went berserk--I didn't even hit "Send" more than once...


--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://bits.demogracia.com
-- Mi web de humor al baño María: http://www.demogracia.com
--

Reply With Quote
  #8  
Old   
Álvaro G. Vicario
 
Posts: n/a

Default Re: Table charset - 09-23-2008 , 10:17 AM



My excuses for the four identical copies of the message. My newsread
went berserk--I didn't even hit "Send" more than once...


--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://bits.demogracia.com
-- Mi web de humor al baño María: http://www.demogracia.com
--

Reply With Quote
  #9  
Old   
Álvaro G. Vicario
 
Posts: n/a

Default Re: Table charset - 09-23-2008 , 10:17 AM



My excuses for the four identical copies of the message. My newsread
went berserk--I didn't even hit "Send" more than once...


--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://bits.demogracia.com
-- Mi web de humor al baño María: http://www.demogracia.com
--

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.