Help! can't store ja16sjis to nvarchar2 column.

hi:
I am using Oracle8.1.7.
And NLS_CHARACTERSET=UTF8 ,
NLS_NCHAR_CHARACTERSET=JA16SJIS ,
I can store sjis code into varchar2 column,
but when store into nvarchar2 column, all the code
are converted into USASCII7. many '?' there.
I use
insert into test values('xxx')
to insert into varchar2 column.
and use
insert into test values(N'xxx')
to insert into nvarchar2 column.
where's the problem?
NLS_LANG=japanese_japan.ja16sjis
NLS_NCHAR=japanese_japan.ja16sjis.
Thanks inadvance.
null

Thanks for the suggestion.....
But I am confused about what you mean by "starting over and using a new icon".
BTW, I had not done anything w/ the icon in the first place.
Still confused

Similar Messages

  • Can't insert data into NVARCHAR2 column

    I have a Oracle 8.1.7 database with character set WE8ISO8859P15 and the same for the national character set. I created a table with one column of the VARCHAR2 type and everything worked fine. But when I change the column type to NVARCHAR2 I get various errors: ORA-12704 (when using JDBC), ORA-00911 (when trying to insert euro symbol using Oracle DBA Studio), ORA-00984 (when trying to insert 'abc' using Oracle DBA Studio). Can anyone tell me what is causing these errors??

    i used oracle dba studio to create the table. it's just one column named CONTENT of type NVARCHAR2 (256).
    this is what i did with SQL plus:
    SQL> insert into test2 values ('test');
    insert into test2 values ('test')
    ERROR at line 1:
    ORA-12704: character set mismatch
    SQL> insert into test2 values (to_nchar('test'));
    insert into test2 values (to_nchar('test'))
    ERROR at line 1:
    ORA-00904: invalid column name
    SQL> insert into test2 (content) values ('test');
    insert into test2 (content) values ('test')
    ERROR at line 1:
    ORA-12704: character set mismatch
    SQL> insert into test2 (content) values (to_nchar('test'));
    insert into test2 (content) values (to_nchar('test'))
    ERROR at line 1:
    ORA-00904: invalid column name

  • How Can i Store photo (image) in column of table

    Dear Experts,
    I need to store a employee photo in column so how can i do tha same.

    This assumes that the images in question currently reside on the database server. If you want to upload images into the database from a client machine, you will need an extra step where you move the files to the appropriate directory or directories on the server. This example will store the images in a BLOB column, rather than a much more flexible interMedia ORDImage column. A BLOB column is fine if you only want to store and retrieve the image, but interMedia gives you significantly more flexibility to manipulate the image, extract metadata, etc.
    Create the directory
    First, you will want to tell Oracle where it can find the images you want to insert into the database. The easiest way to do this is to create a directory object. In this case, I will be loading images from 'c:\temp\img\'.
    CREATE DIRECTORY images AS 'c:\temp\img\'
    If you don't have the CREATE DIRECTORY privilege, you will need to have someone else, like your DBA, create the directory and grant you READ access to it.
    GRANT READ ON DIRECTORY images TO scott;
    Create the Table to Hold the Images
    CREATE TABLE images (
    image_name VARCHAR2( 100 ),
    mime_type VARCHAR2( 100 ),
    content BLOB
    Create a Stored Procedure to Load the Image
    CREATE OR REPLACE PROCEDURE load_image( file_name VARCHAR2 )
    AS
    file_lob BFILE;
    binary_lob BLOB;
    mime_type images.mime_type%type;
    extension_pos NUMBER;
    BEGIN
    -- Use the extension of the file name to determing the MIME-type
    -- The MIME-type for a .JPG file will be image/jpg
    extension_pos := INSTR( file_name, '.' );
    mime_type := 'image/' || SUBSTR( file_name,
    extension_pos + 1,
    LENGTH( file_name ) );
    -- Insert a new row into the images table. Get the LOB locator
    -- for the newly inserted row-- we will be using that to insert
    -- the content from the file.
    INSERT INTO IMAGES( image_name, mime_type, content )
    VALUES( file_name, mime_type, empty_blob() )
    RETURNING content INTO binary_lob;
    -- Open up the file in the IMAGES directory named file_name,
    -- load that file into the newly created LOB locator, and
    -- close the file
    file_lob := BFILENAME( 'IMAGES', file_name );
    dbms_lob.fileOpen ( file_lob, dbms_lob.file_readOnly );
    dbms_lob.loadFromFile( binary_lob,
    file_lob,
    dbms_lob.getLength( file_lob ) );
    dbms_lob.fileClose ( file_lob );
    END;
    Load the Image
    scott@jcave > exec load_image( 'sample.jpg' );
    PL/SQL procedure successfully completed.
    scott@jcave > column image_name format a30;
    scott@jcave > column mime_type format a15;
    scott@jcave > column length format 999999;
    scott@jcave >
    1 SELECT image_name, mime_type,dbms_lob.getLength( content ) length
    2 FROM images;
    no rows selected
    Elapsed: 00:00:00.00
    scott@jcave > /
    IMAGE_NAME MIME_TYPE LENGTH
    sample.jpg image/jpg 9894
    Regards
    Lakmal

  • Cannot Store Greek Characters in NVARCHAR2 columns

    Can someone please help.
    I have a table TEST with one column A of type NVARCHAR2(20) and when I try to insert the greek character Ω(Omega) - it gets stored as O instead.
    I am inserting using SQL Developer using the 'N' prefix and my environment is as follows:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    NLS_CHARACTERSET = WE8MSWIN1252
    NLS_NCHAR_CHARACTERSET = AL16UTF16
    NLS_LANG setting on client side is ENGLISH_UNITED KINGDOM.WE8MSWIN1252.
    Why can I not insert greek characters with the above setup and what do I need to do/change in order to be able to insert greek characters in a database using the national characterset for storing unicode data ?

    Result of running SELECT a, dump(a) FROM TEST after insert an 'O' and an 'Ω' is as follows:
    A DUMP(A)
    O     Typ=1 Len=2: 0,79
    O     Typ=1 Len=2: 0,79
    I added a VARCHAR column, column B, there is no difference in what is getting stored in the NVARCHAR column when inserting 'Ω', result is below:
    INSERT INTO TEST (A, B)
    VALUES(N'Ω', 'Ω');
    SELECT a, dump(a, 1016), b, dump(b, 1016) FROM TEST;
    A DUMP(A, 1016) B DUMP(B, 1016)
    O     Typ=1 Len=2 CharacterSet=AL16UTF16: 0,4f     O     Typ=1 Len=1 CharacterSet=WE8MSWIN1252: 4f
    I'm I missing something here, since my understanding is that NVARCHAR2 columns should be able to store Unicode data ?

  • Need help in writing NVARCHAR2 column to an excel sheet

    Hi All,
    I have a NVARCHAR2 column in my table. I want to store the data present in the column into an excel file. When i write the data to an excel file the data is getting converted to some other form. It's not in human readable form.
    Language is not fixed for the column.
    I need help in storing the NVARCHAR2 data into an excel file without any implicit conversion done by the oracle.
    Please help.
    Thanks,
    Girish G
    Edited by: Girish G on Jul 14, 2011 2:02 AM

    Export data to BLOB (csv)

  • Hi there, can anybody help me: can icloud store my ibooks?

    Hi there, can anybody help me: Can iCloud store my iBooks?

    You don't need to store your iBooks in iCloud. iBooks can be re-downloaded at any time through the purchased section of the iBooks app.

  • Can ibox store help me to increase memory from 2 GB to 4 GB?

    can ibox store help me to increase memory from 2 GB to 4 GB? thx

    It is not possible for anyone to upgrade your memory on an MBA. Notwithstanding, some uber-nerds who have occasionally posted that they have access to the extremely expensive soldering equipment and highly technical expertise that rarely exists outside of a multi-billion dollar manufacturing lab.

  • OC4J 904 and Unicode(AL16UTF16) in NVARCHAR2 column

    I have:
    OC4J 904 standalone runs on Windows2000 AdvancedServer.
    Oracle 9i
    JDBC thin driver shipped with OC4J
    NLS_NCHAR_CHARSET = AL16UTF16
    (NLS_CHARACTERSET = VN8VN3)
    I have a table with a NVARCHAR2 column. I created a CMP EJB from the table but I can't use the EJB to retreive data from Database. I was success in using Oracle JDBC connection to connect manually to database and save/retreive Unicode data.
    I read somewhere that EJB use thin driver, so the getter/setter of CMP-Fields should work normally.
    I think that may be the problems is the function OraclePreparedStatement.setFormOfUse(1,OraclePreparedStatement.FORM_NCHAR);
    was not called in the EJB Contenner or things like that - so it's a bug of OC4J, right?.
    This is the Exception I received on the browser.
    javax.ejb.NoSuchObjectLocalException: ? ?ÂY CÓ CH? HOA CÓ D?U!!!!!
         at TestLocal_EntityBeanWrapper0.reActivateNew(TestLocal_EntityBeanWrapper0.java:1668)
         at TestLocal_EntityBeanWrapper0.reActivateNewLocal(TestLocal_EntityBeanWrapper0.java:1636)
         at TestLocal_EntityBeanWrapper0.getUnicode(TestLocal_EntityBeanWrapper0.java:108)
         at test.showparam._jspService(_showparam.java:100)
         [SRC:/test/showparam.jsp:65]
         at com.orionserver[Oracle9iAS (9.0.4.0.0) Containers for J2EE].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:348)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:498)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:402)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind[Oracle9iAS (9.0.4.0.0) Containers for J2EE].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:293)
         at com.evermind[Oracle9iAS (9.0.4.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:602)
         at com.evermind[Oracle9iAS (9.0.4.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:308)
         at com.evermind[Oracle9iAS (9.0.4.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:779)
         at com.evermind[Oracle9iAS (9.0.4.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:264)
         at com.evermind[Oracle9iAS (9.0.4.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:107)
         at com.evermind[Oracle9iAS (9.0.4.0.0) Containers for J2EE].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
         at java.lang.Thread.run(Thread.java:536)
    Can anybody help or give me some information or workaround?
    Thank you very much.

    Hi Nghia,
    Can anybody help or give me some information or
    workaround? I suggest using BMP and a non-emulated data source. More details are available in the documentation which can be downloaded from here:
    http://technet.oracle.com/tech/java/oc4j/904/documentation_preview.html
    Good Luck,
    Avi.

  • How can i store bytes array in MS ACCESS???

    Hi,
    i m making small project using Ms Access as a dataBase.
    In which i am encripting some confidential data say ACCOUNT_NAME and storing it into MS Access in encripted form........
    The problem is encripted data is in bytes array n how can i store it into MS access ??? is there any data type similar to BLOB in Ms Access ??
    please help me................
    i had searched net for this but till now not found any useful info :(

    You can try:
    binay type (JET3 255 bytes,JET4 510) Types.BINARY
    ole type (0~1 G) Types.LONVARBINARY
    You can use Text (JET3 255 bytes�CJET4 510bytes) Types.VARCHAR if you use base64 encoding for
    ACCOUNT_NAME column.

  • ORA-1461 with multiple NVARCHAR2 columns

    Hi,
    I use version 10.2.0.1 version of ojdbc with an Oracle9i database and get ORA-1461 (can bind a LONG value only for insert into a LONG column) when updating multiple NVARCHAR2 columns in the same table.
    What is strange is:
    if I set column1=value1 and column2 null it works
    if I set column2=value2 and column1 null it works
    But if i set column1=value1 AND column2=value2 I have this exception.
    I assume that because using UTF8 I can have an exception for one column if less than 4000 because of nb bytes used by one character but can't understand why different columns sizes interact...
    Database parameters :
    NLS_CHARACTERSET AL32UTF8
    NLS_NCHAR_CHARACTERSET     UTF8
    NLS_LENGTH_SEMANTICS     BYTE
    NLS_NCHAR_CONV_EXCP     FALSE (don't know if usefull)
    Can anyone tell me out to make it work ?
    I tried with driver 10.2.0.3 and have the same issue.
    Thanks for your help.
    Message was edited by:
    user610168

    Hi,
    I use version 10.2.0.1 version of ojdbc with an Oracle9i database and get ORA-1461 (can bind a LONG value only for insert into a LONG column) when updating multiple NVARCHAR2 columns in the same table.
    What is strange is:
    if I set column1=value1 and column2 null it works
    if I set column2=value2 and column1 null it works
    But if i set column1=value1 AND column2=value2 I have this exception.
    I assume that because using UTF8 I can have an exception for one column if less than 4000 because of nb bytes used by one character but can't understand why different columns sizes interact...
    Database parameters :
    NLS_CHARACTERSET AL32UTF8
    NLS_NCHAR_CHARACTERSET     UTF8
    NLS_LENGTH_SEMANTICS     BYTE
    NLS_NCHAR_CONV_EXCP     FALSE (don't know if usefull)
    Can anyone tell me out to make it work ?
    I tried with driver 10.2.0.3 and have the same issue.
    Thanks for your help.
    Message was edited by:
    user610168

  • Portal Database -- What it is? Can we store data in Portal itself?

    Hi Experts,
    Can you please let me know what is portal database?
    Can I store some information like Emp No and Tel No in Portal itself?
    Regards,
    Gaurav

    Hi Gaurav,
    1.Portal Database holds the portal related data like iviews,worksets,pages, roles etc.
    Refer to [How the Portal Works|http://help.sap.com/saphelp_nw04s/helpdata/en/42/BFA145731B1D64E10000000A1553F6/content.htm]
    2. Emp No and Tel No are generally for the users, so it depends on how you configure your UME.
    http://help.sap.com/saphelp_nw04/helpdata/en/da/9cd53f779c4e21e10000000a1550b0/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/7e/a2d475e5384335a2b1b2d80e1a3a20/frameset.htm
    Also refer to SAP Note 780679
                         SAP Note 718383
    Good Luck!
    Sandeep Tudumu

  • How can I store my iTunes library on an NAS (Fritz Box)?

    How can I store my iTunes library on an NAS (Fritz Box)?

    1. Drag the library to the external drive, launch iTunes with the Option key held down, click on Choose Library, and point it there.
    2. Get a second. Having the backups on the same drive as the original data won't help when that drive fails.
    (66929)

  • How can i store a picture file in a table using sql

    can anyone help me
    to store a pic file in a table using sql

    You can find an example in this link
    http://www.orafaq.com/forum/t/38347/0/

  • Can I store photos in Photoshop Elements Editor?

    I have OSX Lion 10.7.  Before spending $80 on Photoshop Elements 10 Editor from the  Apple App Store, I have a couple of questions...
         1.  Can I download photos from my camera directly to Photoshop Elements, or must thry go to iPhoto first?
         2.  After I process photos using PSE Editor, can I store them in Photoshop Elements, or must they be stored in iPhoto?
            Thanks for your help.........

    Elements editor is an editor, not a storage program. Even the full version of PSE that you buy elsewhere than the app store does not store your photos. The organizer program that comes with that is merely a database of the photos you store elsewhere.
    You don't have to use iphoto if you don't want to. If you want an image manager there are several others to choose from (aperture, lightroom, etc), or you can just use folders if you prefer that method.
    In any case, all the Elements Editor does is edit, not store.

  • Insert into NVARCHAR2 columns(ORA_01461, ORA-01026)

    Hi,
    Oracle8i Client 8.1.5 (OCI8)
    Oracle9i Client 9.0.1 (OCI9)
    Oracle8i/9i DB
    I want to insert strings into a table with two NVARCHAR2 columns with OCI.
    NLS_NCHAR_CHARACTERSET is UTF8 (DB). The provided String is encoded in Windows-1252.
    The supplied buffers in the OCIBindByPos have a size of 200bytes each.
    ->With OCI8 I'm getting the message:
    "ORA-01026 multiple buffers of size > 4000 in the bind list"
    If only one NVARCHAR2 column is involved (or if I use normal
    VARCHAR2 instead) it works fine.
    ->With OCI9 I get the message:
    "ORA-01461 can bind a LONG value only for insert into a LONG column"
    But only, if I set the OCI_ATTR_MAXDATA_SIZE attribute.
    If I do not set the OCI_ATTR_MAXDATA_SIZE attribute, it works, but if
    I supply a buffer bigger than 1333 bytes in the OCIBindByPos for the second
    NVARCHAR2 column, then ORA_01461 happens. The buffer for the first NVARCHAR2
    column can be set to a higher values
    ->The same behaviour occurs with NCHAR, NCLOB (->national character types)
    These are the main steps:
    OCIBindByPos((OCIStmt *) pStmtInsert, (OCIBind **) &pBind,
    (OCIError *) pError, (ub4) i, (dvoid *)pData,
    (sb4) bufferSize, //200bytes
    (ub2) dataTypeSQLT, //SQLT_STR
    (dvoid *) pIndicator, (ub2 *) 0, (ub2 *) 0, (ub4) 0,
              (ub4 *) 0, (ub4) OCI_DEFAULT);
    OCIAttrSet((dvoid *) pBind, OCI_HTYPE_BIND,
    &Frm, //SQLCS_NCHAR
         0, OCI_ATTR_CHARSET_FORM, (OCIError *) pError);
    OCIAttrSet((dvoid *) pBind, OCI_HTYPE_BIND,
    (dvoid *) &charSet, //WE8MSWIN1252
         0, OCI_ATTR_CHARSET_ID, (OCIError *) pError);
    OCIAttrSet((dvoid *) pBind, OCI_HTYPE_BIND,
    (dvoid *) &maxDataSize, //->size of the column in bytes
    0, OCI_ATTR_MAXDATA_SIZE, (OCIError *) pError);
    OCIStmtExecute((OCISvcCtx *) pServiceContext, (OCIStmt *) pStmtInsert,(OCIError *) pError,
    (ub4) 1, (ub4) 0, (OCISnapshot *) 0, (OCISnapshot *) 0,
    OCI_COMMIT_ON_SUCCESS);
    Any ideas?
    Thanks,
    Axel

    I found this link referring to a similar problem that was apparently fixed in version 10.2.0.4 of the server: ORA-01461: can bind a LONG value only for insert into a LONG column Should I try to upgrade the server and see if that fixes things?

Maybe you are looking for

  • Cannot use Struts 1.1 tile in JDeveloper 10.1.3 (3673)

    Just create a web project by chosing Web Application [JSP, Struts, ADF BC] template. Then create a jsp file, put this line inside: <%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles"%> Got compile error like this when MAKE: ja

  • Flow of sessiob bean and entity bean

    Hi All, Can any one help me how is the flow of session and entity beans i.e What method is called first and what method is called next. There are so many methods like create(),ejbcreate(), ejbActivate(),ejbPassivate(),ejbDelete() etc. What is the flo

  • DM & SO in a Strategy

    Dear All, Can any body plz help me out on this issue.its a bit urgent. Is there any strategy which combines Demand Managements & Sales Order ?? Plz explain with example ?? Regards SF

  • LOST IPHOTO CAN I REORDER BOOKS

    Recently lost iphoto with all pix/events/books etc .. Now client wants to reorder more books .. Can I reorder the same book without re -doing the whole book again??? Is the information of the book held with the payment and address information??

  • Unit converion having different unit values

    Hi Experts, I want to Unit conversion . I have the fields like this. In DSO. 0material                   0unit   sulphur                     G (grams) Acetic acid               ML (Milli Litres) I wnat this in Report 0material                     0un