Insertion and extraction of data from a database by USING SQL Developer al32UTF8

Hi guys,.

Before I post my questions, I think it's better for me to give you guys my first understandings so that it is easier to understand where / if I have gone wrong...

I use Windows XP and Oracle 10 g
------------------------------------------------------------------------------------------------------------------------------------------------------------------

Non-unicode client - a client program that needs to use the code page of the operating system for the mapping of unicode data retrieved from the database as well as the support to display/insert characters from the code page to the database.
For example sqlplusw.exe

Therefore, when you use a non-unicode client

(1) we define the code page of the OS (Control Panel - regional and language of the parameter - advance - the language for non-unicode programs) to the code page that contain the characters that we will view/insert.

(2) we also defined the NLS_LANG characterset on the character set of code page, that we'll insert so that when we do an insert (for example in thai), oracle will and automatic conversion to Unicode can take place. This is also true when recover us the database unicode data so that the correct character set conversion can take place.

INSERTION OF
THAI->-> UNICODE conversion

RECOVERY OF
THAI <-conversion <-UNICODE

I hope that my basic understanding is correct up to this point.
---------------------------------------------------------------------------------------------------------------

Unicode client - a client program that supports display/inserting unicode characters without the need to set the code page of the operating system (Control Panel - regional and language setting - control - language for non-unicode programs advance)
For example isqlplus http or SQL Developer

However,.

(1) there are still set the NLS_LANG so that the correct conversion can take place between the client and the database.
For example, when the recovery if we set NLS_LANG value ZHS16GBK (Chinese) character and store data in Unicode in the database is for example (THAI), then the conversion would be a mistake.
It's a supported unicode client, then the NLS_LANG character set should be set to UNICODE as well.

---------------------------------------------------------------------------------------------------------------------------

Those are my questions
* Important - please help if you're busy and don't have the time to answer the remaining questions

(* Q1) if I had to use a unicode client, what should I put my character NLS_LANG set?
AMERICAN_AMERICA. UTF8?

(* T2) where can I put the NLS_LANG information of character in SQL Developer, I know there is a metalink for setting NLS_LANG using isqlplus but I cant seem to google each led for SQL developer.

Q3) is my basic understanding of up to this point? If no, please explain in a term more widespread that I'm really not familiar with character sets code page, unicode and fonts, glyphs...

A unicode client (Q4) didn't need to refer to the OS codepage (regional and language updates), y at - it a code page UNICODE for the customer to refer to, or is there an available window API?

Q5)
, there are still set the NLS_LANG so that the correct conversion can take place between the customer and the > > database.
For example, when recovery if we set NLS_LANG value ZHS16GBK (Chinese) character and the data store in > > unicode in the database is for example (THAI), then the conversion would be erroneous.
I'm just on this point for customer UNICODE supported?
--------------------------------------------------------------------------------------------------------------------------

Thank you for spending the time to read my questions and I hope to hear soon tips from you guys.
Million thanks again for sharing.

Best regards
Noob, but eager to learn

The requirement to always set NLS_LANG is not true for JDBC, which ignores the NLS_LANG altogether. Java programs extract the textual data in string variables, which uses Unicode UTF-16 by design. JDBC defines the conversion of character sets so that data is converted between UTF - 16 and the database or the national character set.

The obligation to set NLS_LANG is not generally true for the OIC, either. The first call to a problem of the BEAK may be OCIEnvNlsCreate(). This call has two parameters that allow the caller to set the character set to use for the text of VARCHAR2/TANK/LONG/CLOB/statement and the character set to be used for NCHAR/NVARCHAR2/NCLOB. Only if these character sets is specified as 0, character set NLS_LANG is used. Also, the OIC programs can specify different character for each binding sets or set the variable (i.e. the buffer input/output). Note: The OIC programs always use NLS_LANG to initialize the language settings and the territory for the client program and the database session. Only the character set can be specified is OCIEnvNlsCreate().

OCIEnvNlsCreate() can specify the client character set to UTF-16 (platform boutien) format. This is not possible with NLS_LANG.

Various interfaces based on the BEAK, such as ODBC Oracle and .NET for the ODP, explicitly initialize OCI with character set Unicode and therefore ignore the NLS_LANG character set as well.

Thnx,
Sergiusz

Tags: Database

Similar Questions

  • DV7 - 7333cl: how to extract usable data from a bad drive using 22 pins adapter usb to SATA on the new HD

    Greetings HP Forum,

    Recently, I replaced a bad hard drive on my laptop. I need now step by step procedure to extract usable data from the wrong drive using 22 pins adapter usb to SATA on the new HD.

    NOTE: I can't not all data that especially if some of the software downloaded on the replaced disk can be altered. Should I first download Internet Antivirus to protect my new hard drive? I'm not an expert, or even close to this when you work on the back of the laptop, so I'll have to step by step how to download and to partition the data recoverable and software, etc..

    Thanks in advance for your help... I greatly appreciate it!

    See you soon!

    Wes

    It is not complex. Attach the drive to the adapter and connect it to any other computer with good antivirus and antispyware installed. I use Malwarebytes and Avast. When you connect the adapter with the drive connected to the usb port, the drive will appear and it will be assigned a letter maybe E:\ or F:\ or something else. Immediately, he analyzes with the antivirus and anti-spyware. Quarantine or delete any virus or malware it finds. Then, it's just a matter of navigate the disk and copy and paste the contents of the host computer in a directory for this purpose. Obviously, you can copy from documents word, photos, music files, but you cannot copy the applications like Microsoft Word, iTunes. Photoshop.  You may need to take ownership of the files on the old hard drive, but Windows will guide you through this. Don't know what else I can answer.

  • retrieve a row of data from mysql database

    Hello

    I extract data from a database.  Use of then in a Web page as <? php echo $row ['product'];? >

    However, if there is an apostrophe in 'product', he displays like a diamond with a question mark.

    Data stored in the database looks like this, 'pearls of Mary. "

    Is the problem when I have the data stored in the database or when it was recovered?

    Thanks, Dan

    This happens usually if you paste from another application like Word or Xpress directly in the database.

    To work around the problem:

    If you are still using the old mysql extension insert the line below before any other query mysql on your page:

    mysql_query("SET NAMES UTF8");

    If you uisng the new mysqli extension then use the variable of connection string (in this case $conn) as below:

    $conn-> query ("SET NAMES UTF8");

  • How to get data from a database table and insert into a file

    Hello
    I'm new to soa, I want to create an xml with the data from database tables, I'll have the xsd please suggest me how to get the data in the tables and insert in a file
    concerning

    in your bpel process, you can use the db adapter to communicate with the database.
    with this type of adapter, you can use stored procedures, selects, etc to get the data from your database into your bpel workflow.

    When did it call in your bpel to the db adapter process it will return an output_variable with the contents of your table data, represented in a style of xml form.

    After that, you can use the second card (a file synchronization adapter) to write to the content of this variable in output to the file system

  • Extracting the data from QVariantMap

    I have the following data :

    QVariant (QVariantMap, QMap ((' data', QVariant (QVariantMap, QMap ((' current_condition', QVariant (QVariantList, ((QVariantMap, QMap... QVariant QVariant (QVariantMap, QMap ((' weather', QVariant (QVariantList, ((QVariantMap, QMap... QVariant QVariant (QVariantMap, QMap ((' weather_desc', QVariant (QVariantList, ((QVariantMap, QMap... QVariant

    m_model-> insert(data.value() .value ("data") .toMap ().value("weather").toList () .at (0) .toMap ());

    Using the above line, I am able to extract relevant data from "current_condition and"weather".

    What should I add to the line above to also extract data from 'weather_desc '?

    Any help would be appreciated. Thank you.

    Thank you! It is much easier to read when formatted, it's the first thing I did.

    { "data":
      {
        "current_condition":
        [
          {
            "cloudcover": "0",
            "humidity": "18",
            "observation_time": "02:36 AM",
            "precipMM": "0.0",
            "pressure": "1007",
            "temp_C": "39",
            "temp_F": "102",
            "visibility": "10",
            "weatherCode": "113",
            "weatherDesc": [ {"value": "Sunny" } ],
            "weatherIconUrl": [ {"value": "http:\/\/www.worldweatheronline.com\/images\/wsymbols01_png_64\/wsymbol_0001_sunny.png" } ],
            "winddir16Point": "N",
            "winddirDegree": "10",
            "windspeedKmph": "46",
            "windspeedMiles": "29"
          }
        ],
        "request":
        [
          {
            "query": "Melbourne, Australia",
            "type": "City"
          }
        ],
        "weather":
        [
          {
            "date": "2013-01-04",
            "precipMM": "0.0",
            "tempMaxC": "37",
            "tempMaxF": "98",
            "tempMinC": "19",
            "tempMinF": "66",
            "weatherCode": "113",
            "weatherDesc": [ {"value": "Sunny" } ],
            "weatherIconUrl": [ {"value": "http:\/\/www.worldweatheronline.com\/images\/wsymbols01_png_64\/wsymbol_0001_sunny.png" } ],
            "winddir16Point": "N",
            "winddirDegree": "3",
            "winddirection": "N",
            "windspeedKmph": "21",
            "windspeedMiles": "13"
          }
        ]
      }
    }
    

    To access weatherDesc in usage by time:

    Data.value.value("data").toMap ().value("weather").toList () .at (0) .toMap ().value("weatherDesc").toList () .at (0) .toMap .value ("value") ())

    This will return "Sunny."

    For readability, I suggest if this string to:

    QMap  dataMap = data.value().value("data").toMap();
    
    QList weatherList = dataMap..value("weather").toList();
    
    QVariant firstWeatherEntry = weatherList.at(0);
    
    QMap weatherEntryMap = firstWeatherEntry.toMap();
    
    QList weatherDescList =
    weatherEntryMap.value("weatherDesc").toList();
    
    QVariant firstWeatherDescEntry = weatherDescList.at(0);
    
    QMap weatherDescEntryMap = firstWeatherDescEntry.toMap();
    
    QString value = weatherDescEntryMap.value("value").toString(); // "Sunny"
    

    Also, you can check intermediate outcomes at each stage by calling

    qDebug()< weatherlist="">< "\n";="" and="" so="">

  • Apex. Ajax.CLOB - extraction of data from a clob field

    I have an application that uses a table that stores xml data, and the field of the table that stores the data is a clob. I used the example of Carl Backstrom to build what I have so far, (the blessing of God on her family). Here is the script I use to store the data of an HTML editor in the database:


    function clob_set (request) {}
    var oEditor = FCKeditorAPI.GetInstance ('P59_CONTENT');
    var clob_ob = new apex.ajax.clob)
    function() {}
    var p.readyState = RS
    If (rs == 1 |) RS == 2 | RS == 3) {}
    $x_Show ('AjaxLoading');
    } else if(rs == 4) {}
    $x_Hide ('AjaxLoading');
    $s ('P59_CONT', p.responseText);
    doSubmit (request)
    } else {return false ;}
    }
    );

    $x('P59_CONT').value = oEditor.GetHTML ();
    oEditor.SetHTML (»);

    If (! $v_IsEmpty ('P59_CONT')) {clob_ob._SET ($v ('P59_CONT'));}
    }

    Present it calls a process that inserts the data in the field clob001 of the CLOB_CONTENT collection in my table.

    How can I get the data of the table again to present in the HTML editor? Each option I use me trouble with the limitation of length k 32 surviving more in the Apex. What would be the best way to answer that?

    Hi Yonkovator,

    I've also been struggeling with this problem for some time. Like you, I also used the example of Carl (my greatest condolences to his family and friends).
    Today, I finally managed to make it work. Now I can save the Clob to a HTML Editor field and load the Clob data (from the database) into the HTML editor field.

    * First, I created a region of HTML in which I placed my order on the day of the HTML editor.
    * Then, I created a process (On Load - after header) that retrieves the Clob data from the database and puts it inside the collection
    CLOB_COLLECTION. (Below is the code I used to recover the data).

    declare
    L_Name opcd_entity.name%type;
    l_entitytype opcd_entity.entitytype_id%type;
    l_clob CLOB: = empty_clob();
    Start
    apex_collection.create_or_truncate_collection (p_collection_name-online 'CLOB_CONTENT');
    DBMS_LOB.CREATETEMPORARY (l_clob, false, dbms_lob. SESSION);

    Select name
    entitytype_id
    general_text
    in l_name
    l_entitytype
    l_clob
    of opcd_entity
    where id =: P9_ID;

    : P9_NAME: = l_name;
    : P9_ENTITYTYPE: = l_entitytype;

    apex_collection.add_member (p_collection_name-online 'CLOB_CONTENT'
    p_clob001-online l_clob
    );
    end;

    * I expanded function clob_get of Carl with var oEditor = FCKeditorAPI.GetInstance ('P9_CLOB');
    (In your case, P9_CLOB would be P59_CONT).

    function clob_get() {}
    var oEditor = FCKeditorAPI.GetInstance ('P9_CLOB');
    var clob_ob = new apex.ajax.clob)
    function() {}
    var p.readyState = RS
    If (rs == 1 |) RS == 2 | RS == 3) {}
    $x_Show ('AjaxLoading');
    } else if(rs == 4) {}
    $s ('P9_CLOB', p.responseText);
    $x_Hide ('AjaxLoading');
    } else {return false ;}
    }
    );
    clob_ob._GET ();
    }

    * That I added an addLoadEvent in the foot of the region in the region that holds my agenda of the HTML editor.

    This way the clob data are updated automatically the HTML Editor element when I load the page (at least in my app ;-)).

    I hope this will help you to tackle the problem.

    With respect,
    Ramon van der Weiden

  • Hi, after all stages of extraction of data from oracle to oracle during the execution of command "start extract ext1" his error giving the Manager does not work, can you please help me. Thank you

    Hi, after all stages of extraction of data from oracle to oracle during the execution of command "start extract ext1" his error giving this handler does not run both source and target, can you please help me. Thank you

    Hello

    The setting should be as below, and not only the port number should be...

    PORT 7809

    Kind regards

    Veera

  • Extracting the data from relational tables in 11.1.2.1

    I want to extract the following data sets from relational tables
    1 attribute and his partner basic member
    2 Smartlist value of an account

    Have a code to extract such data? It will be useful in pointing to the correct table names.

    Thank you

    You will find the table schemas in the [documentation for EPMA | http://www.oracle.com/technetwork/middleware/bi-foundation/epm-data-models-11121-354684.zip]. If this does not work, there are other options to export hierarchies in text files. You can use the lifecycle management or the [EPMA line Generator | http://docs.oracle.com/cd/E17236_01/epm.1112/epma_file_gen_user/launch.html].

    Kyle Goodfriend
    http://www.in2hyperion.com

    Please make sure that you assign your post as answered when an appropriate response is provided (or useful when it takes place) as well as other benefits.

  • Can I import data from a database in a FrameMaker using ExtendScript document?

    I want to import the part of database information in a structured document in FrameMaker (XML). The document would be an illustrated parts catalog, built by merging the text in the document structured with Bill of material stored in a database and graphic files. ExtendScript for this, or do I have to study a different language for this programmatic approach to the construction of a document?

    There is no direct way to connect to a database with FrameMaker ExtendScript. It is possible to write code C++ to interact with scripts, so you could write some kind of connector in C++ that would work with ExtendScript. ExtendScript can work with XML files, then another solution is to export the data from the database in XML format and ExtendScript allows you to analyze and import it into FrameMaker.

    I'd take a serious look at FrameScript. FrameScript has built-in ODBC support, you can connect directly to your database and use SQL queries to get your data into FrameMaker. There also ActiveX is supported, so you can use ADODB technology to get data from your database. I did the import of the database in a bunch of my scripts over the years. Please let me know if you have any questions or comments. -Rick

  • copy data from one database to another

    Hello

    I want to copy data from one database to another.

    I have two patterns such as

    dev1/dev@ORCL
    DEV2/dev@DCEL


    I have same tables dev1 and dev2 (tables)
    but I have not given in dev2 (tables).
    now, I want to copy dev1 (tables) in dev2 (tables).

    You can also use the database link:

    select * from dev1.emp@orcl;
    

    What database are you connected to?
    You must create and use the links in the database for all other databases.

    For example if you are connected to the database A and to retrieve data from database B, you must create a connection of database in base B

    create database link B connect to  identified by  using 'B';
    

    Then you can retrieve data from database B with

    select * from [yourschema.]yourtable@B;
    

    This will work only for tables that are visible to the user that you used in the definition of database link.

    Published by: hm on 10.08.2011 22:15

  • Display data from the database in a table

    Hello

    How to display data from my database in an ADF table using a backing bean? I created an arraylist in the bean, but only the last row of my query is displayed in the table...

    Thank you...

    Hello

    Create a simple Java class that implements Serializable. Create attributes that represent each column in your table. This class represents on the row of your table. A list of these objects, and you can fill your af:table.

    Visit this link below for an example.
    Re: Is it possible to create a static array of ADF and the tree?

    Kind regards
    Amélie Chan

  • I just got DC and cannot not work my PDFs like before as insert and extract ideas what I might be missing

    Anyone know how I can get the old version of acorbat reader rather then MS that I can not understand how to insert and extract a pdf file

    If you could insert and extract pages before, you were not using the free player, you must use Acrobat. Make sure you open your files in Acrobat format (which I hope you have not deleted) and try again.

  • Export data from the database Table in the CSV file with OWB mapping

    Hello

    is it possible to export data from a database table in a CSV with an owb mapping. I think that it should be possible, but I didn't yet. Then someone can give me some tips how to handle this? Someone has a good article on the internet or a book where such a problem is described.

    Thank you

    Greetings Daniel

    Hi Daniel,.

    But how do I set the variable data file names in the mapping?

    Look at this article on blog OWB
    http://blogs.Oracle.com/warehousebuilder/2007/07/dynamically_generating_target.html

    Kind regards
    Oleg

  • My verse ATT modem (non apple devices to use this modem} is connected to the ATT line, Time Capsule (iPhones, Macs Time Capsule use) via ethernet Uverse.) Non apple devices can collect data from iPhones or Mac using the time Capsule?

    My verse ATT modem ({use of devices not apple wifi of this modem} is connected to the ATT line, Time Capsule (iPhones, Macs use the wifi of the time Capsule) and connect to the Uverse modem via ethernet.)

    Both devices are set to the highest security and each uses separate passwords.

    Non apple devices can collect data from iPhones or Mac using the time Capsule?

    With a bit of work by someone who knows how to do such things, not Apple computers could read some files on the Mac if file sharing is configured on the network... devices non-Apple and... He knew the device passwords or administrator for Macs.

    Mac could also play the files on other Macs if file sharing has been implemented and the device password or admin was known.

    If you ask if a PC can read the files on the Time Capsule, the answer is Yes, without doubt, assuming that the PC knew the password of device for the time Capsule.

  • Hi I have a current plan of photography for £8.87 per month which is paid and up-to-date, it allows me to use PSCC and LR. I've updated the two about a week ago and now LR is ok but PS says it's now a trial and I want to buy it and my trial runs out soon?

    Hi I have a current plan of photography for £8.87 per month which is paid and up-to-date, it allows me to use PSCC and LR. I've updated the two about a week ago and now LR is ok but PS says it's now a trial and I want to buy it and my trial runs out soon? How can I get to the scene, I was up front with the full version of PS?

    Hello

    Please follow the steps below.

    Solution 1: -.

    1 sign out and sign back for creative cloud.

    https://helpx.Adobe.com/creative-cloud/help/sign-in-out-activate-apps.html

    Solution 2: -.

    Check the "hosts" adobe entered into file. (If you don't see all the entries of adobe, go to solution 3)

    1. go to the location of the file "Hosts".

    WIN: C:\Windows\System32\drivers\etc

    MAC: Go to the menu finder on top > go to files > type '/ etc', press return.

    2. move the file hosts on the desktop.

    3. open.

    WIN: Open it with Notepad.

    MAC: double click on it.

    4 remove all entries of adobe, that it does not obstruct your machine to connect to the Adobe's Activation Server.

    5. rear move "/ etc" folder.

    Solution 3: -.

    1. check if you are using any kind of firewall (network/system) / proxy.

    2. turn off firewall / proxy.

    I hope this helps.

    Kind regards

    Vivet

Maybe you are looking for