Does NVACHAR2 store UTF16 in UTF8 database?

Our database was created with AL32UTF8 as the character set. The national character set is AL16UTF16. Does this mean that all of our varchar2's are stored as UTF8 but if we have a data type of nvarchar2 it will be stored as UTF16?
I probably mean, would nvarchar2 allow the storage of a UTF16 multi-byte character that a varchar2 wouldn't allow?

If the national character set is AL16UTF16, yes, all data in NVARCHAR2 fields is encoded using the UTF-16 encoding. If the database character set is AL32UTF8, then all data in VARCHAR2 columns is encoded using UTF-8.
Assuming your database character set is AL32UTF8 (things change slightly if the database character set is UTF8), any character that can be encoded in UTF-8 can be encoded in UTF-16. UTF-8 and UTF-16 are just different ways of encoding Unicode code points. The major difference between the two encodings is how many bytes are required to encode a particular character. With UTF-8, a single character requires between 1 and 4 bytes, with UTF-16, a single character requires either 2 or 4 bytes. If you have a lot of English data, the UTF-8 encoding can be a significant space saver (1 byte in UTF-8 vs. 2 bytes in UTF-16), if you have Japanese data, the UTF-16 encoding can be a significant space saver (3 bytes in UTF-8 vs. 2 bytes in UTF-16).
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC

Similar Messages

  • Does one of the Lync SQL databases store the active directory username or SID of the person who made a call ?

    I am trying to write a report that uses data from Lync (2010), Active directory (AD) and other databases.
    I need to match data from Lync with records in active directory.
    When you make/recieve a call, the session details has a userid column - a foreign key to the users table, which has the UserURI - the users emails adddress or telephone number.
    However, trying to mach the data, I have noticed that someones email address can change so that what is in active directory does not match that used as the SIPaddress in Lync.
    I need a field that matches in Active directory and Lync to be able to link a users call records with their active directroy records.
    I was wondering how Lync decides which Lync user you are when it auto logins you in.
    Does it do it on the basis of your phone number, AD username or something else ?
    If so , where in Lync does it store the mapping from whatever it uses to your Lync userid ?
    Greg

    The msrtcsip-primaryuseraddress attribute in AD is where the users SIP address is stored.
    This can change still, but generally that should not be very often except maybe a name change or domain name change.
    Almost everything in Lync is based on the SIP address. In CDR's case, it is just recording SIP messages as they pass through the front end; it has no visibility into the actual AD account that sent it.
    If you will need to match user SIP addresses back to live AD accounts, even after a SIP address change, then I would recommend setting up a custom AD attribute to store their SIP account history and have a policy to update that attribute each time someone's
    SIP address gets changed.

  • How to convert from UNICODE (UTF16) to UTF8 and vice-versa in JAVA.

    Hi
    I want to insert a string in format UTF16 to the database. How do I convert from UTF16 to UTF8 and vice- versa in JAVA?. What type must the database field be? Do I need a special set up for the database (oracle 8.i)?
    thanks
    null

    I'm not sure if this is the correct topic, but we are having problems accessing our Japanese data stored in UTF-8 in our Oracle database using the JDBC thin driver. The data is submitted and extracted correctly using ODBC drivers, but inspection of the same data retrieved from the GetString() call using the JDBC thin driver shows frequent occurrences of bytes like "FF", which are not expected in either UTF8 or UCS2. My understanding is that accessing UTF8 in Java should involve NO NLS translation, since we are simply going from one Unicode encoding to another.
    We are using Oracle version 8.0.4.
    Can you tell me what we are doing wrong?
    null

  • Bean class does not store values

    hi
    I have a jsp page like. i am using Struts.
    <body>
    <form name="form" action="bluhbluh">
    <logic:present name="address">
    <logic:iterate id="RequestDVO" name="address">
    TABLE align='center' border='1' cellPadding='5' cellSpacing='1' width="60%" style="border-color:#006600">
    <TR>
    <TD class="label" colspan="1" style="color:#000000">Shipment Quantity</TD>
              <TD class="note1" colspan="1" NOWRAP="true"><bean:write name="RequestDVO" property="shipQuantity"/></TD>
              <TD class="label" colspan="1" style="color:#000000"></TD>
    <TD class="label" colspan="1" style="color:#000000"></TD>
         </TR>
         <TR>
    <TD class="label" colspan="1" style="color:#000000">Address1</TD>
              <TD class="note1" colspan="1" NOWRAP="true"><bean:write name="RequestDVO" property="shipCntrAddLine1"/></TD>
    <TD class="label" colspan="1" style="color:#000000"> Address2</TD>
              <TD class="note1" colspan="1" NOWRAP="true"><bean:write name="RequestDVO" property="shipCntrAddLine2"/></TD>
    </TR>
    </logic:iterate>
    </TABLE><P><P>
    </logic:present>     
    </form>
    </BODY>
    "logic" used because i am displaying value from bean class using list thats in session scope and it set the value to "address". RequestDVO is my bean class.
    if i submit the form it has to store the value again in database. but while inserting it shows that all the fields are null. so please help me how to handle this.
    my action class for doing this is
    public class NewRequestAction extends Action
         private static Log log = LogFactory.getLog(NewRequestAction.class);
         public ActionForward execute(
    ActionMapping mapping,
    ActionForm form,
    HttpServletRequest request,
    HttpServletResponse response)
    throws Exception {
         RequestDVO requestDVO=(RequestDVO) form;
         RequestHelper requesthelper=new RequestHelper();
         requesthelper.newRequest(requestDVO);
    return mapping.findForward("requestsuccess");
    i have imported necessary file to handle action class
    so how i can handle this

    <body>
    <form name="form" action="bluhbluh">
    <logic:present name="address">
    <logic:iterate id="RequestDVO" name="address">
    TABLE align='center' border='1' cellPadding='5' cellSpacing='1' width="60%" style="border-color:#006600">
    <TR>
    <TD class="label" colspan="1" style="color:#000000">Shipment Quantity</TD>
    <TD class="note1" colspan="1" NOWRAP="true"><bean:write name="RequestDVO" property="shipQuantity"/></TD>
    <TD class="label" colspan="1" style="color:#000000"></TD>
    <TD class="label" colspan="1" style="color:#000000"></TD>
    </TR>
    <TR>
    <TD class="label" colspan="1" style="color:#000000">Address1</TD>
    <TD class="note1" colspan="1" NOWRAP="true"><bean:write name="RequestDVO" property="shipCntrAddLine1"/></TD>
    <TD class="label" colspan="1" style="color:#000000"> Address2</TD>
    <TD class="note1" colspan="1" NOWRAP="true"><bean:write name="RequestDVO" property="shipCntrAddLine2"/></TD>
    <TD ><INPUT TYPE ="text" name="reason"></TD>
    </TR>
    </logic:iterate>
    </TABLE><P><P>
    </logic:present>
    </form>
    </BODY>
    i have an text field at last where user can type then once he clicked ok it has to store the values in database but i dont know why its not doing so

  • How to store files in mysql database using JSP?

    I'm developing an online recruitment system using JSP in server side. For the users who registers in it, I want them to upload their cv's from the web site so that I can store it in the database..I'm using mysql as the db..
    Can I know how to do it.?..or else is there any better way of doing that?
    Need a quick reply..Tx

    The best way to put data in a database in a JSP is to not do it. Instead, use a Servlet that calls a DataAccessObject. The DAO puts the data in the DB and the servlet gives the data to the DAO. The JSP does nothing but display results.
    Take a google for JSP MVC and DAO. BalusC has a great example of DAO and a JSP that uses one on his blog.

  • Indexing Word document in UTF8 database

    Hello,
    have anybody experience with database created with character set UTF8
    (Unicode) and indexing formatted documents like MS Word, Powerpoint, Adobe
    Acrobat etc.?
    When I'm indexing Word document in non UTF8 database it's OK, in UTF8
    database indexing runs without error but searching does not work (in
    'DR$<index_name>I' table are unreadable strings - tokens).
    Is there any possibility in indexing to specify filter preferences
    INSO_FILTER and CHARSET_FILTER together?
    Thanks!
    Best Regards
    Jiri Salvet
    [email protected]
    null

    I'm using Oracle 8.1.6 on Windows2000. If You have any information about problem with INSO filter on that platform, please send it me.

  • Forms 6i Against 9i UTF8 database with NLS_LENGTH_SEMANTICS = CHAR

    Hi all,
    I have a 9.2.0.4 database which was created with a character set of UTF8.
    I want to start storing multibyte characters in this database so I changed the init.ora parameter NLS_LENGTH_SEMANTICS to CHAR and restarted.
    I then installed my application into the database and all the definitions have correctly been created using CHAR length semantics.
    The client to this application is Forms 6i but I am having serious problems compiling it against the application schema.
    When I open a pll library and try to compile I get Error 201 for every %type variable declaration and also for server based packages.
    I am definitely connected and to the correct schema where the objects all exist.
    I have another application schema - identical except that it was created before I made the change to NLS_LENGTH_SEMANTICS so it uses BYTE. When I compile the same library connected to this schema there are no problems.
    Also, if I try to connect to the CHAR schema using Forms (i.e. 8.0.6) SQL*Plus it crashes with a Windows Application Error. If I connect with a 9.2.0.1 SQL*Plus its fine.
    My question is should it be possible to compile a 6i Form against a UTF8 database with CHAR NLS length semantics at all? Have I done something wrong or am I barking up the wrong tree? Has anyone else tried this?
    Many thanks in advance,
    Kevin.

    Hi,
    Thanks for the responses but I don't think you're quite right. Forms 6i should indeed work with Unicode as a database character set as long as it is UTF8 rather than AL32UTF8. This can be seen in various Metalink documents and also in the Release 6i Guidelines for Building Applications here (section 4.1.5):
    http://download-west.oracle.com/otn_hosted_doc/forms/forms/A73073_01.pdf
    The problems started when I changed NLS_LENGTH_SEMANTICS to CHAR. Its understandable if Forms 6i does not recognise this setting as it pre-dates it but I wanted to confirm this.
    We want to migrate our existing application to work with multibyte characters. Unfortunately there are table columns, PL/SQL variables etc. that are too small when defined as a length in bytes.
    I am looking for the least impact method to rectify this. On the server I can use NLS_LENGTH_SEMANTICS but if I can't get Forms to work with it then I may need to rethink.
    I realise that using Forms 9i or 10g would support the parameter but it is not possible to upgrade at the moment.
    Has anyone any other suggestions or methods for migrating an application to using multibyte characters?
    Thanks again,
    Kevin.

  • Where does TREX store data?

    Hi all,
    Sorry if my question is stupid, but I didn't find any document writes about database of TREX. So where does TREX store data?

    Hi,
    TREX creates an index from documents in a document set. An index is a collection of selected terms that represent the content of the documents indexed. To produce this, TREX indexes the original data and stores the index generated. TREX is therefore a secondary data store.
    The data that the TREX queue server (queues) and the TREX index server and its search engines (search index, text-mining index, and attribute-engine index) access is not stored in a database. It is stored unencrypted in the file system as flat files in the file system. You protect the TREX files and indexes located in your file system by configuring the security of your file system. You can find details on this in the security documentation for your operating system.
    Read this
    http://help.sap.com/saphelp_nw04/helpdata/en/62/468698a8e611d5993600508b6b8b11/content.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/39/025d83ca90a04c8a6151309d6d9f60/frameset.htm
    Thanks

  • Where does Iphoto store ratings, arrangement of photos, events, libraries?

    Hi, I currently have Leopard, I was planning on doing a clean install with Snow Leopard soon. Afterwards I plan on restoring Iphoto back to the way it was. I have a 70 gb library and importing my photos, rearranging the events, photos, and libraries would take ages if I had to start from scratch. I have my whole computer backed up using Carbon Copy Cloner. My question is where does Iphoto store the ratings, manual arrangement of photos, events, libraries, etc? Thanks

    iPhoto is a relational database program and everything is stored in the iPhoto library - it must be treated as a single entity - it is not possible to isolate components in it - simply drag the iPhoto library intact as a single entity from the clone back to the pictures folder of the main computer
    To test prior to doing an erase and install (the Mac does not have a "clean install") you can depress the option key and launch iPhoto and select the backup copy and test it - be sure to do an option launch and paint back to the main library afterwards
    LN
    LN

  • Convert from utf16 to utf8 ?? er?

    Dear list,
    I have recently seen a sample to convert a utf16 string to utf8. I am a little bit confused. I thought utf16 was a superset of utf8. Could please someone explain why this is necessary sometimes ?
    regards
    Ben

    how can utf16 be a superset of utf8. I thought this
    relationship was similiar to ASCII and utf8/utf16,
    where for example the space bar has a value of 32 in
    ASCII and Unicode (utf8 and utf16).... This been tjhe
    case there is not much need for a utf8 to utf16
    conversion program.I didn't say it was a superset. It is a different way of representing the same thing.
    >
    You say that utf16 is ALWAYS 2 bytes, and utf8 is
    usually 8 bits but is variable when necessary. Is
    utf16 not a variable byte character set ? No.
    The name
    according to this, utf8 and utf16 is somewhat
    misleading as they are NOT always 8 or 16 bytes.
    And "java" is neither an island nor a beverage. The name does not convey the entirety of the subject.
    characters the first byte (or 2) is an 'escape' bytewhich means that more bytes are needed.
    What do you mean by first or (2). escape byte?
    When something sees a given specific byte then then it knows that there are a certain number of bytes after that are needed to fully represent the character.
    I am still not convincedConvinced?
    If you do not find my explaination satisfactory then you might try writing some code that converts to UTF16 and UTF8 using String.getBytes(String).
    You might also try to find the character set definitions.

  • Where does ITunes store my apps on my PC?

    Does ITunes store my downloaded and/or purchased apps locally on my PC? My SSD hd was filling up so I moved all the directories from the C:\...Apple Computer\MobileSync\Backup directory to my D: hd and now I'm having a problem getting apps to restore to my IPod that I had to wipe clean and do a restore on. So, I need to know if I moved those apps or what.
    Also, is there a way to re-download those apps back to my PC if I did move them?
    I need to get this IPod restored back to my ITunes account so all my apps will be associated back with this IPod.

    iTunes playlists are stored within the library database iTunes Library.itl. Perhaps you need to create a m3u playlist for use with your other software. Right-click on the playlist name in the sidebar for export options.
    Or use iTunes to manage the content on the device in the way that it is designed to.
    tt2

  • Can i store Arabic in XE database

    How can i make a form in APEX to take Arabic text and to store it in XE database?
    Thanks in Advace
    Regards.
    Mazahir Abbas

    Hello Mazahir,
    >> when I try to enter any numeric value in arabic, it does not take numbers in Arabic
    I’m assuming your client (browser) supports Arabic numbers. What you mean by “not take”? Are you getting an error message or the Arabic numbers stored as garbage?
    Please translate the following into Arabic numbers, so I’ll be able to check it further:
    1234
    Also, please specify your local OS, the browser you are using and the specific Arabic language (e.g. ar-EG).
    Regards,
    Arie.
    &diams; Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    &diams; Author of Oracle Application Express 3.2 – The Essentials and More

  • Where does portal store the username after a successful log in?

    We have an intranet application, we use the portal security and login screen, etc.
    I have written a stored procedure which requires two parameters. One of them we already have at the time we need to call it. The other is username. All we need
    to know is how to get the username at the time we must call it. Where does portal store the username after a successful log in for the particular session this user is logged into?
    I tried using the following syntax,
    When i log in using PORTAL30 then it returns,
    SQL> select portal30.wwctx_api.get_user()
    2 from dual;
    PORTAL30.WWCTX_API.GET_USER()
    PORTAL30
    But when i logged in using some other user i.e.rtemps it returns,
    SQL> connect rtemps@mpdb
    Enter password: *******
    Connected.
    SQL> select portal30.wwctx_api.get_user()
    2 from dual;
    PORTAL30.WWCTX_API.GET_USER()
    PUBLIC
    Why does it return PUBLIC, instead of RTEMPS?
    rtemps is a Database user though.
    How do i test this script for portal users?
    Also my application is a multiple user application.
    So at a given time, there could be more than user logged in, also there could be more than one sessions of the same user logged in.
    what happens in that scenario?
    Thank you,
    Kalpa

    still not working..
    The first page my user goes to log in, is
    http://159.225.218.59/pls/portal30_sso/portal30_sso.draw_custom_login_page
    when i look at this stored procedure, it makes a call to the following procedure,
    PORTAL30_SSO.wwsso_app_admin.ls_login
    and passes a parameter ssousername
    From here my user is directed to the home page, which is built using the portlets, the URL for the same is,
    http://159.225.218.59/servlet/page?_pageid=255,257&_dad=portal30&_schema=PORTAL30
    This is where i want to pass the ssousername, so as to keep track of what the user is doing.
    Question 1: where does this page physically reside, or how do i add the parameter ssousername to this page?
    I have 1 HTML PORTLET, on this page, and the code behind this looks like,
    <!-- PL/SQL Language Definition Section -->
    <%@ page language="PL/SQL" %>
    <%@ plsql parameter="i_pagenum" default="1" %>
    <body>
    <table width = 760>
    <tr>
    Link 1
    </tr>
    </table>
    In the above code, when they click on link 1, it calls a database stored procedure(rpt_param_prov), which is also a psp page.
    In here, i want to pass the parameter ssousername.
    e.g. the link should look like,
    Link 1
    Again this is a HTML portlet, so i don't think it will recognize the psp tags.. so that probably might be another issue.
    But this is what i want to accomplish. So i can use the user who logged in, for my audit trail application, which will be inserting a record in a database table, everytime, the user runs reports that are being clicked.. like link 1 in above example.
    I don't understand why this is so hard.
    When i tried
    portal30.WWCTX_API.get_user, it still brings back PUBLIC or PORTAL30_PUBLIC.

  • How to store España in database (in a column of a table)

    Could you please tell me how to store España in database (in a column of a table).
    regards

    Generally speaking you'll need a character set that can support the characters you require.
    Here is a link to the supported character sets in 10.2.x.x:
    [Character Sets|http://download.oracle.com/docs/cd/B19306_01/server.102/b14225/applocaledata.htm#i635016]

  • HT3842 Does iTunes store the original music file and copy it into a separate folder? If i delete the original file from finder will it remove it from my iTunes library?

    Hi, on my last PC when transferring music to my new MacBook Pro i noticed i had about 6 duplicated of each song in every album i took hours in removing them.
    I Just wondered Does iTunes store the original music file and then copy it into a separate folder?
    If i delete the original file from finder will it remove it from my iTunes library or vice versa. I didnt want to lose any music like i have some how managed to on my old computer.
    Or should i keep both files of it in the Music folder and also iTunes library folder?
    Which is best ?

    DrewPowell wrote:
    I Just wondered Does iTunes store the original music file and then copy it into a separate folder?
    It does both at the same time.
    When you add files to iTunes, it copies them into /Music/iTunes/iTunes media/ folder. The original file remains where it was.
    You can drag a file to /Music/iTunes/iTunes media/Automatically add to iTunes/ folder.
    This will add to iTunes and move it to /Music/iTunes/iTunes media/.
    I keep a shortcut of this folder on my desktop then simply drag files to the shortcut to add to iTunes.
    Then there are no "extra" files around.

Maybe you are looking for