Want to Store Arabic Words in NVARCHAR2 Column

Hello All,
I have a problem that I am using Visual Basic .Net as front-end Tool, Oracle 9.2.0.6 as back-end and trying to insert a record in NVARCHAR2 Field with Arabic Words using Operating System "Regional & Language Options" but its insertng NULL in Database.
SELECT * FROM nls_database_parameters
PARAMETER     VALUE
8     NLS_CALENDAR     GREGORIAN
7     NLS_CHARACTERSET     WE8ISO8859P1
17     NLS_COMP     BINARY
4     NLS_CURRENCY     $
9     NLS_DATE_FORMAT     DD-MON-RR
10     NLS_DATE_LANGUAGE     AMERICAN
16     NLS_DUAL_CURRENCY     $
5     NLS_ISO_CURRENCY     AMERICA
2     NLS_LANGUAGE     AMERICAN
18     NLS_LENGTH_SEMANTICS     BYTE
1     NLS_NCHAR_CHARACTERSET     AL16UTF16
19     NLS_NCHAR_CONV_EXCP     FALSE
6     NLS_NUMERIC_CHARACTERS     .,
20     NLS_RDBMS_VERSION     9.2.0.6.0
11     NLS_SORT     BINARY
3     NLS_TERRITORY     AMERICA
13     NLS_TIMESTAMP_FORMAT     DD-MON-RR HH.MI.SSXFF AM
15     NLS_TIMESTAMP_TZ_FORMAT     DD-MON-RR HH.MI.SSXFF AM TZR
12     NLS_TIME_FORMAT     HH.MI.SSXFF AM
14     NLS_TIME_TZ_FORMAT     HH.MI.SSXFF AM TZRPlease Help.
Thanks in Advance.
Muhammad Waseem Haroon
[email protected]
[email protected]
[email protected]

Have you tried with SQL*Plus (GUI: sqlplusw.exe) from the same environment ?
What is the value of NLS_LANG on the front-end ?
Did you check the OTN NLS_LANG FAQ ?

Similar Messages

  • 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 ?

  • Want to search a word in a column multiple times ????

    Hello All,
    Want to search a word in column and after that word want to read the values till i encounter blank cell, uptill this i could get the code but then in same column again i have to search for same word and again start reading. 
    In short if i encounter word "Name" three times in one column i must start reading after that immediately three times till next very blank cell.
    I am attaching code and my .xl file.
    Hope anyone could guide me...
    Thanks a lot...
    pals 
    Solved!
    Go to Solution.
    Attachments:
    Untitled 1.vi ‏32 KB
    Book12.xls ‏24 KB

    Hi Gaurav,
    Ya thats what the probelm is that nothing is fixed....  There are six headers and there column number is fixed.
    It should take 1st header search in column A if the word "Name"Comes twice it should read twice just below the header Name all the exciting values, then it should go for other Header "Gruop" in Column B and do the same. And this should be done for all six headers.
    Eg:
     A             B            C         D      E   F          G  ------ Column number from excel
    Group   Number   Name  Rate  IR    FR      Freq   ----- these are headers
     1              3           fgh       23    45    56        78
     2              5           ty        56     67    67        67 
    Group   Number    Name   Rate  IR    FR    Freq ---- 2nd set of headers
     4              3            ty           33    56   88      100
    Hope that now i am bit clear
    thanks a lot...
    Pals

  • How to store a word file in MS SQL server

    Hi,
    Am new to java, I want to store a Word File into MS SQL Server, pls tell me how to do this.
    What should be Data type I should choose in the MS SQL Server.
    rgds
    Ravi Bharathi

    You will have to simply load the file as a chunk of binary data in a blob (Binary Large Object) type column.
    In MS SQL Server the blob type is known as 'Image'

  • How to store microsoft word doc in SAP

    Hello Frndsm
    I have a text editor defined on my screen. I want to store microsoft word document .doc in it. and also i want function so that i can load .doc in it. Is there any way I can do??
    Your help will be greatly appreciated
    Regards,
    Arpit

    It doesnt matter. All user want is to upload a word document in the editor box and display its contents as it is. But what basically is happening that the CL_GUI_TEXTEDIT class iam am currently using is only supporting plain text and showing rest all chars as garbage.
    so is there anyway???
    thanks for ur reply
    Arpit

  • 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

  • Hi All I Want to ask for Adobe Flash Professional CC 2014 I can't writte an Arabic Word

    Arabic Word it's Write from right to left but in Adobe Flash Professional CC 2014 i can't do it and the writte will be writte for left to right like english, how can i fix it.

    Hi,
    Which version do you currently have? The Latest Version?
    In your CC desktop application, click on Filters and Versions, and choose Previous Version. Now, go to Flash Professional and choose the version that you want to install.
    Thanks,
    Preran

  • I have a column in a Numbers document that currently only contains a number--the numbers are different in different columns.  Before each number I want to add the words "Pack Qty."  How would I do this?

    I have a column in a Numbers document that currently contains a number and that number is different in different columns.  I want to add the words "Pack Qty" before each number in the column.  How do I do that?  I'm using Numbers '09 on a brand new Macbook Pro.  Thanks!

    In an adjacent column add the formula:
    ="Pack Qty: "&<CELL>
    where <CELL> is the cell in the same row where the quantity is,
    Like:
    E2="Pack Qty: "&D2
    select, and hold,  the little circle at the bottom right corner of the selction, then drag down

  • 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)

  • Store the value  in BLOB column data type

    Hi All,
    I have a file of about 5MB. I want to store this in BLOB column data type of a table.
    Can we compress this file to store and when we take uncompress the same...or how do we do it.
    and what is the procedure to store this....
    pls. help me
    Thanks,
    Naresh

    Hi skud
    i juast want to store the agent code to variable.if i did get ur point...
    Why don't u just use a simple assign statment for example...
    DECLARE
    V_VALUE  NUMBER;
    BEGIN
    V_VALUE := LC354 ; -- IF it was a value as LC354 static i mean
    -- or u could use any value
    V_VALUE := :ur_form_item_name; --- if it was dynamic
    END;That's it .
    Hope this helps...
    Regards,
    Ammatu Allah.

  • Store the result of the column in variable in answer

    Hi All,
    Is there a way to store the value of the result of the column of the report and use that value in calculation in another report. I need to get the grandtotal value which changed according to the prompt and want to use that grand total value to calculate new column in another report. Can we use presentation variable? I want to store the total value 30 and then calculate the region percentage. I am not able to store the total value and create the new column calculation using the total value.
    Region 1 10 *0.33*
    Region 2 20 *0.67*
    Total 30
    Thanks,
    Virat
    Edited by: 872073 on Jan 9, 2013 6:30 AM

    You can use this Report as a Subreport in the Final Report,and apply a filter the column=subreport.columnvalue.

  • How to store PDF file in BLOB column without using indirect datastore

    Hi ,
    I want to store a pdf file in a BLOB column.
    But , it should be a direct store. I cannot usre indirect datastore.
    BLOB column doesn't support indirect datastore. I get the following error.
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: Oracle Text error:
    DRG-10581: indirect datastores cannot be used with long or lob text columns
    ORA-06512: at "CTXSYS.DRUE", line 160
    ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 365
    can anyone give me any clue onhow to manage this issue?

    Thanks This really helped.
    For other readers, I am summarising what I did.
    create table test
    id number primary key,
    docs BLOB
    create or replace directory doc_loc
    as 'c:\test';
    CREATE OR REPLACE PROCEDURE Load_BLOB_From_File (file_name in varchar2)
    AS
    src_loc bfile:= bfilename('DOC_LOC',Load_BLOB_From_File.file_name);
    dest_loc BLOB;
    begin
    insert into tkctsf15t values(1,empty_blob()) returning docs
    into dest_loc;
    dbms_lob.open(src_loc,DBMS_LOB.LOB_READONLY);
    DBMS_LOB.OPEN(dest_loc, DBMS_LOB.LOB_READWRITE);
    DBMS_LOB.LOADFROMFILE(
    dest_lob => dest_loc
    ,src_lob => src_loc
    ,amount => DBMS_LOB.getLength(src_loc));
    DBMS_LOB.CLOSE(dest_loc);
    DBMS_LOB.CLOSE(src_loc);
    COMMIT;
    end;
    show errors;
    exec Load_BLOB_From_File('test.pdf');
    exec ctx_ddl.create_preference('mylex','BASIC_LEXER');
    create index testx on test(docs) indextype is ctxsys.context
    parameters
    ('filter ctxsys.AUTO_FILTER LEXER mylex ');
    select id from test where contains(docs,'patch')>0;
    Thanks Roger once more

  • Store MS word document in oracle9i as XML

    hi,
    I need to store Microsoft Word Documents in oracle 9i and I am thinking to store it as XML file. I am new to XML, can anybody give me some idea how to achieve this? More specificlly, how do I convert a word document to XML before I save it to the database and later how do I retrieve it and convert it back to word document or other format(such as .pdf document etc)?
    Besides storing the word document as XML file, are there any other ways to store it in the oracle 9i database? Is oracle 9i internet file system or interMedia a good solution too? Anybody had experience with this?

    Thanks, steven.
    My application requires "storing lots of documents, each associated with a standard record in an application". Is
    this the senario you have?
    What is SCM/Designer? Could you point me to some reference on how to use them? You mentioned "synchronized with the File System and are held as BLOBS", does that mean the word document will be stored in both places, database as BLOB and file system as file? In my case, I only want to store in database.
    I agree with you that "converting XML only adds another step in the process", but I am not sure about "probably vastly increasing the data to store!", my original thought is storing as XML instead of Word Document will save me a lot of storage space because XML is just text file, also the database retrieval will be faster. As I said I am totally new to XML, so I may be wrong.

  • 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?

  • How can I store a word file in database and other one download this file

    My dears:
    I want to upload a word file at my form then store in database
    and other one user want to download this file
    I Use developer 10g R2
    Database 1og
    thanks more

    If you take a look at the WebUtil page, there is a demo which can be downloaded. Look carefully at the option to upload to DB. If you want to manipulate the doc you can use OLE. This is also offered as part of the example.
    http://www.oracle.com/technetwork/developer-tools/forms/webutil-090641.html
    Be sure to carefully review the included ReadMe file as it includes some minor configuration required to use file upload/download functionality.

Maybe you are looking for

  • MacBook sleep problems

    I have a black MacBook Intel Core2Duo 2ghz, purchased january/february 2007. At the time of purchase, it was running Tiger. When Leopard was released, the MB was set up from scratch through "Erase & Install". Both the 10.5.1 and the 10.5.2 updates we

  • Best way to create array from sampled signal???

    I'm not sure exactly how to pose this question (been using labview for less than 2 weeks). I'm trying to graph the position of a motorized stage being run though an old Newport controller. I can obtain the position no problem. My sub-routine to get t

  • How to resolve stuck threads in weblogic

    JDeveloper: 11.3 Weblogic: 10.3 Hi, System Admin is complaining about the stuck threads in our ADF Application. Can some one help me in resolving those in weblogic server or at code level. Basically, I am looking for an approach to resolve them. Than

  • ACE port redirection message to client

    Hi, I need to configure a new VIP so that if the requests come on port 80 it sends a redirection message to clients saying to try on port HTTPS://*:9443, is the configuration below correct? rserver host server1   description host1   ip address 1.1.1.

  • Fluid Grid Properties

    Hi all, wondering if there is a way I can change my fluid grid properties (i.e. change the number of columns in desktop mode) after I have started designing my website? or would it just be better to start a new site with the correct properties and co