How to pass unicode text coded in an oracle Java-based feature?

Hello. First, let me describe the characteristics of the system I'm working
with.

From SQLPlus...

SQL * more: version 11.1.0.7.0 - Production on Fri May 15 11:54:34 2009

Select * from nls_database_parameters
where parameter = "NLS_CHARACTERSET.

returns...

WE8ISO8859P1

Select * from nls_database_parameters
where parameter = "NLS_NCHAR_CHARACTERSET.

returns...

AL16UTF16

I work with operating system is...

SunOS hostname 5.10 Generic_120011-14 sun4u sparc SUNW, Netra-T12

Now on my problem.

I need to create a SQL Oracle function based on a static function in a Java
class. One of its parameters must be a kind of UNICODE encoded text. The
text will be anywhere from a few K of several megabytes.

Then using a client that I try to pass data in the function function Oracle Java.

Here is an attempt, I've done has not worked, but if all goes well he will clarify what he
is that I'm doing. Note that finally I'm not just trying know
Why I try does not work. Instead I'm trying to find out how
pass large (up to 2 MB) strings of text UNICODE coded to one based on Java
Oracle function.

First the function code Java I'll start the Oracle works on.
It is simplified to describe clearly what I'm having trouble making. Again I have
do not just need to know why the following does not work, instead I'm in
Find out what will work.

/*=============================START JAVA=============================*/
Import oracle.sql.NCLOB;

public class CheckNCLOB {}
public java.lang.String static checknclob (oracle.sql.NCLOB theNClob) {}
return "thank you."
}
}
/*=============================END JAVA===============================*/

It compiles cleanly. I then load them into the database using this statement.

loadjava - user [user_name] - password [CheckNCLOB.class]

Then I connect to SQLPlus and run this command...

FUNCTION to CREATE or REPLACE checknclob(theNClob NCLOB) RETURN VARCHAR2 AS LANGUAGE JAVA
name 'CheckNCLOB.checknclob (oracle.sql.NCLOB) return java.lang.String ';
/

She runs as cleanly, returning "Created function."

This is for the side server. Now, in SQLPlus (and other clients), I tried to
do this...

Select checknclob ('hello') of double;

I get on a regular basis, regardless of the client used, I have this error...

ORA-00932: inconsistent data types: waiting for an IN argument in position 1 which
is an instance of an Oracle type convertible to an instance of a user defined
Class Java got a type of Oracle that could not be converted to a java class

I tried adding "n" to the string literal to identify explicitly as
Unicode, but that did not help.

Thanks for your help.

Ralph

See [Java - mapping data Types Developer's Guide | http://download.oracle.com/docs/cd/B28359_01/java.111/b31225/chsix.htm#BABJIJEB]
(http://download.oracle.com/docs/cd/B28359_01/java.111/b31225/chsix.htm#BABJIJEB)

You must declare the java method as an oracle.sql.CLOB parameter.

Note:
"Mappings for oracle.sql classes are best, because they preserve the data formats and require no conversion set of character, aside from the usual network conversions. These classes are particularly useful in applications that move data between SQL and Java.

Tags: Oracle

Similar Questions

  • How to make a text field for view-only / editable based on a user of APEX

    Hello

    I have a form with fields of 10-20 to assume.
    When the user - Admin logs, I want to field1 as editable, but when another user... User1 connects, I want to do this Field1 as display only... how I can do.

    Thank you
    Deepak

    Deepak

    You can remove the "View only" condition on the field and add this piece of javascript in the "foot" of the definition of the page

    
    

    CITY

    Published by: city has 12 August 2009 15:41

  • How can I work with unicode text?

    Hi, is there a plugin for InDesign CS4 make unicode work in my document? Its really hectic trying to work with fonts so it ' be easier if I get unicode text for work in my document. PLS, let me know if there is any plugin.

    What do you exactly by 'as it is'? There is nothing magical about Unicode. If you see a lot of pink boxes after pasting your text, this means that the fonts you are using does not contain a lot of characters. You can set some GREP styles that assign some fonts Unicode at some beaches. Or use some queries of GREP find/replace to assign character styles to the Unicode beaches.

    Peter

  • How to pass easily the fields Description and grounds for application of plan of action for the vRA to vRO WF service

    I know that you can bind some info request as constraints of value, such as the name of group company, or tenant or the code of the principal applicant, etc..

    Is there a similar way to pass the text of the Description and the reasons?  Or, how the text in these fields would easily get in a script task?

    The answer closest I have is below.  It is available in the workflow, not the user interface designer.

    ASDRequestId = System.getContext () .getParameter ("__asd_catalogRequestId");

    ASDRequest = vCACCAFEEntitiesFinder.getCatalogItemRequest(vRA_CAFEHost,ASDRequestId);

    Request_Reason = ASDRequest.reasons;

    Request_Description = ASDRequest.description;

    Request_Owner = ASDRequest.requestedFor;

    Posted in: Re: ASD service - how to get the values of Description and reason in the workflow

  • How to paste the text as default text?

    How can I get FM to paste the text as text by default, instead of having to use 'paste special '?

    (Years ago a configuration file that can be changed, but memory fails me).

    The configuration file is maker.ini... There is one master copy of the FrameMaker application, but you should rather edit your own personal copy, which will replace the captain. You can find it in:

    • "\Documents and Settings\\Application Data\Adobe\FrameMaker\" on Windows XP ".
    • "\Users\\AppData\Roaming\Adobe\FrameMaker\" on Windows Vista and later versions. ".

    FrameMaker rewrites your copy whenever it comes out - so before you change the file, quit FrameMaker, otherwise it will just overwrite your changes. Then backup the file, just in case.

    The desired setting is ClipboardFormatsPriorities. It is very unlikely to already be present, but if this is the case, modify its value. Otherwise, add this line to the [options] section:

    ClipboardFormatsPriorities = FILE, MIFW, MIF, RTF, OLE 2, META, DIB, EMF, BMP, UNICODE, TEXT TEXT

    The above is the default setting. Change the order by yourself; You can use one of the following conditions:

    • ClipboardFormatsPriorities = FILE UNICODE TEXT, TEXT, MIFW, MIF, RTF, OLE 2, META, EMF, DIB, BMP
    • ClipboardFormatsPriorities = UNICODE TEXT, TEXT FILE, MIFW, MIF, RTF, OLE 2, META, EMF, DIB, BMP

    Restart FrameMaker. No problem, go back to your backup of the file.

  • How to pass a product code using liquid/Web App

    I want to do is have a user to enter a code - say "12345" in a text box and click a "submit" button.  It then takes them to another page showing results or error message.

    I have created a web application with the following fields:

    ProductCode

    Name

    Details1

    Detials2

    When the user sends a code ("12345"), the next page displays the data for the product matches "12345" - If no product not match code, then a message saying ' data cannot be found.

    Can someone give me guidance as the best way to do it with the liquid, how I pass / send the code of the search page to the results page?  So is this a case of web filtering app 'collection' by the product code?

    Thank you very much.

    You use cash to do so. You just need to use a web app search. Get the form code, remove the other fields so just have the input of this custom code field field and have the module of search results web app on another page etc.

  • Header of page-how to pass a dynamic value?

    Hello

    I created a page - which redirects to an external link.
    I have following code in the page header.

    < META HTTP-EQUIV = "refresh" CONTENT = "2; URL = XYZ.com ">".
    < b > < p > < p > < p > < p > < p >

    < /b >


    When I run this page, redirects after 2 seconds to this particular url: xyz.com.

    My query is: Ii would there the URL value dynamically.

    I tried with the following code in the header:

    var abc = $v ('P97_TEST');
    < META HTTP-EQUIV = "refresh" CONTENT = "2; URL = abc ">".
    < b > < p > < p > < p > < p > < p >

    < /b >

    where P97_Test is an element of text field.

    But he directs me to a url: my_apex instance/abc. It does not work.

    No idea how to pass the value of the url dynamically? I need to get the success of a particular URL.

    Thank you
    Archana

    Dear Archana,

    I found the following solution work:

    (1) create an element on the page to the URL (in this example, P3_URL)

    (2) create a pl/sql process
    type: PL/SQL anonymous block
    address the point: on the laundry before header
    Source:

    begin
    :P3_URL := 'http://www.google.de/';
    end;
    -- this can be as sophisticated as you need
        
    

    (3) according to the Page Properties / header before HTML

    
    

    Marc

  • How to type vertical text from the bottom up with the right orientation for a graph?

    How to type vertical text from the bottom up with the right orientation for a graph?

    Hello! Below, I'll demonstrate how to have vertical text in two different ways.

    Example 1:

    1. below, I have a graph and want to label the vertical axis.

    Select the text tool, and then the Vertical text tool.

    2 with the vertical Type tool, I tap on my vertical label.

    3 with the move tool, then I can orient the text in a position desired, as shown in the examples below.

    If this isn't the desired orientation of the vertical type you would like. I have the example 2 below.

    Example 2:

    1. After typing my text vertically with the Vertical Type tool (in example 1), I want to move to a horizontal position. I can go up to the options panel and select the icon "show/hide text orientation", surrounded by below. It will pass the text back and forth between vertical and horizontal.

    2 after the passage of the text to be horizontal, I want to change the orientation of the text, so it is aligned with my vertical axis.  Go in Edit > transform > Rotate as shown below.

    3 you want to can Rotate the text as indicated below.

    4 text is not in the right position we want, so we have to move the text, as illustrated below. Press enter/return to perform the complete transformation.

    5. the text is shown below.

    Other links:

    Please post back with any questions,

    Janelle


  • Problem with unicode text file

    Hello

    I have files of unicode text containing Chinese characters. I'm currently building sides manually using these for a unicode application unicode text files. The manual process shows the 'Success' message, but I'm not able to see the dimensions. I am just able to see a single unknown character.

    Pls help

    Try to open the file in a text editor like Textpad or ultra edit and set the encoding of the file it & save the file. This command sets the BOM that tells other applications to the encoding of the file.

    Note:
    Marker order byte (BOM for short) is a hexadecimal value at the beginning of a file that is used as a 'flag' or 'signature' for coding and/or hexagonal byte order that should be used for the file. With format UTF-8 data, it is normally hex bytes EF BB BF.

    Robb

  • How to pass parameters to a Flex application?

    I'm new to Flex programming, and I need to pass to a server
    parameter generated at my test Flex application below. Can someone show
    me a MINIMUM of HTML page size that can pass the "myname" parameter to
    my Flex application?

    Thanks in advance,

    Beard

    <? XML version = "1.0" encoding = "utf-8"? >
    " < = xmlns:mx mx:Application ' http://www.Adobe.com/2006/MXML "creationComplete ="initVars ()">
    < mx:Script > <! [CDATA]
    [Bindable]
    public var myName:String;
    private function initVars (): void {}
    myName = Application.application.parameters.myName;
    }
    []] > < / mx:Script >
    < text mx:Label = "name:"{myname}"" / >
    < / mx:Application >

    Hello

    This docs page contains different version (more short long, static and generated) on how to pass arguments to the application through vars:

    http://livedocs.Adobe.com/Flex/3/HTML/Help.HTML?content=passingarguments_3.html

    (you simply set variable in the object that hosts your flash animation in a page, see doc linked for more details)

    Kind regards

    Peter

  • How to pass the parameters or values film double hollow?

    Hello

    I create a game in Flash 8 with 2 AS and I have some questions to ask.

    First of all, I'm stuck for 2 days to create a tower Laser beam to the target.

    I searched the internet for solutions but I can't really find one, so I'll try display of questions myself...

    First I tried to create, and the effectHolder in which each laser beam has been created, because it seems I can create only one line in each movieClip...

    _root.duplicateMovie(effectHolder_mc , "effectHolder_" + this, _root.getNextHighestDepth());
    v = a = _root["effectHolder_" + this];
    ray.onEnterFrame = function()
    {
    v.clear();
    v.lineStyle(1,0xFF0000,100);
    v.moveTo(this._x, this._y);
    v.lineTo(creep._x , creep._y);
    v.text = "True"

    }

    It's triggered eveytime, she was a target.

    With each turn that triggered a laser that I created, it became more than offset, so I tried selfdestructing after some time.

    this._alpha -= 10;

    if (this._alpha <= 0)

    {

         this.removeMovieClip();

    }

    But he did not actually work, so I tried another solution. I tried to give each MovieClip ("Laser"), duplicate code that creates the laser beam.

    onClipEvent(load)
    {
         this.fx = from._x;
         this.fy = from._y;
         this.tx = to._x;
         this.ty = to._y;
    }
    onClipEvent(enterframe)
    {
         _root.dmg.text = "From: " + fx + "," + fy + " To: " + tx + "," + ty; //I used this on a textbox to see if parameters are transmited. But they were all 'undefined'

            this.clear();
         this.lineStyle(1,0xFF0000,100);
         this.moveTo(from._x, from._y);
         this.lineTo(to._x , to._y);

         this._alpha -= 4;
         if (this._alpha <= 0)
         {
              this.removeMovieClip();
         }
                                 
    }

    The problem is that I did not know how to pass the coordinates of the tower and the target to the MovieClip so that it knows where to create the line.

    X++;
    duplicateMovieClip(_root.Laser, "Laser" + X, X,{from._x,from._y,to._x,to._y});         
    g = _root[_root.Laser + X];
    g.fx = from._x;
    g.fy = from._y;
    g.tx = to._x;
    g.ty = to._y;

    Please leave suggestions on how to send the parameters or values for the created clip, or an idea of the creation of this line ("beam") for each tower, without so much trolling.

    Thank you

    Chris

    What is the trigger of v's _alpha decrease?

  • A resource (.fr) file can be of type "Unicode text Document"?

    Dear all,

    I do the location in my plugin programs. I created a resource (MyPlugIn2_arAE.fr) file to define the Arab channels. When I recorded this file, I chose the type as "Unicode text Document". Because if it is a Unicode text Document my Arab channels are saved preoperly. If I've selected the type as "Text Document" and save the file, all the channels of my Arabs became "?" like that. Now the problem is, it gives a compile error. (This is because the resource file MyPlugIn2_arAE.fr is registered as "Unicode text Document").

    Error looking for the specification of resources. Need to 'resource' or 'type '.

    odfrc - stopped running!

    How to solve this problem?

    Thank you.

    on my Mac, Terminal, the next line is a lot of examples.

    find/Adobe/ID6SDK-name ' * _arAE.fr '.

    Content seems to be Arabic, encoded in UTF8.
    As indicated by the keyword kResourceUTF8Encoded
    hexdump/Adobe/ID6SDK/source/open/components/buttonui/resources/behaviorui/BehaviorUIStrings_arAE .fr. head
    0000000 2f 2f 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d
    Make sure you have the Arabic characters (and thus the special Unicode) inside the quotation marks, and that the file is stored as UTF8, and rather UTF16 with BOM. If you don't know the difference, Google. With the UTF8, outside quotes throughout the text would be the same as if in ASCII, so the compiler odfrc shouldn't be able to tell the difference.
    Dirk
  • How to pass the value to query LOV of rows in the table.

    simple table on the page of the ofa:

    col1 col2
    ABC lov-activated
    PQR lov-people with disabilities
    MNO lov-activated

    Col2 is lov and turned under condition if it meets certain conditions. I am capable of until.
    How to pass values in col1 to the co of lov lov query?

    Help, please
    Thank you

    Hello

    You can pass the value to LOV in this way in a region of the table.

    col1 col2

    DEPTNO empname (Lov field)
    1 lov1
    2 lov2

    requirement: lov1, you will need to pass the value of deptno 1.

    If deptno is message style text then you need to create a value of the deptnoFormValue with the attribute in the base page table area, and the same instance of vo.

    danslechamp empname lov

    fields of lov region:

    EmpName,
    DEPTNO,
    and deptnoFormValueinLov

    lov mappings: a first return to the basic page.

    a second part of the criteria

    Point lov region: deptnoFormValueinLov
    Return article: -.
    Point of criteria: deptnoFormValue
    Required: true
    Query programmatically: true

    Now create a controller for the region of Lov

    the code example is:

    Import oracle.apps.fnd.framework.OAApplicationModule;
    Import oracle.apps.fnd.framework.OAViewObject;
    java.util.Dictionary import;

    in the process request:

    OAApplicationModule m = pageContext.getApplicationModule (webBean) (OAApplicationModule);
    Dictionary passiveCriteria = pageContext.getLovCriteriaItems ();
    String deptno = (String) passiveCriteria.get ("deptnoFormValueinLov");

    System.out.println ("org code in controller of lov is" + orgcode);

    OAViewObject vo = (OAViewObject) am.findViewObject ("view instance of lov");
    vo.setWhereClause ("Organization_code =" "+ deptno +" ' "");

    System.out.println ("request after adding where clause." + vo.getQuery ());

    hope this is useful

    Kind regards
    Barros.
    [email protected]

  • How to send a text to an ASP or PHP page?

    How to send a text to a page ASP or PHP with HTTPService?
    I'll store the text submitted to the database through the page.

    Thank you!

    Hello

    You can pass parameters when calling service. Either through values as parameters to the method.
    myService, send ({param1: "val1"}) or bind values to tags...

    Search for "Binding of parameter with HTTPService components" and the sections "Setting explicit way with HTTPService tags" in your documents to help for more details.

    : - Janet Miller

  • How to get the text have the same effect as the video?

    Hello

    For the first time post here, but I wonder how to get the text of the titles have the same effect as the video behind her.

    For my video, I use 'bad tv' and other effects such as Gaussian that obviously changes the appearance of video, creating the look of VHS. However, I then inserted text via the title, but it normally appears. How can I make this text have the same effects as the video behind it?

    A friend told me I might need to add text to the video first, then do the effects, I have not tried, but wonder if there is an easier way, as this would require me to restart.

    EDIT: That's what I'm looking for. https://youtu.be/7_2PHQI89dI?t=24s The text has the same effect as the video.

    Thank you

    One way is to create a clip made up based on the title and the original clip. Then apply the effect.

    Another way is to use an adjustment layer.

    Good luck.

    Russ

Maybe you are looking for

  • Satellite A300 turns off

    Hello I have a Toshiba Satellite A300 (for about 3 years now) and tonight he turned off his car. It would be most time cause of overheating and would finally restarts, but not tonight. It simply displays an icon of the battery at the front about 6 ti

  • OfficeJet 6700 Premium: HP Officejet 6700, black ink fades

    I had my bonus of 6700 Officejet for over a year, so it's just more under warranty. About 3 days ago, out of the blue, the black ink started fading out if I printed a page with a lot on it. It does the same thing if I copy something. (I'm only printi

  • Critical security updates do not install

    I use "Automatic updates" and recently found that 22 security of "Critical" updates are ready to be installed. I tried to install them manually and was informed that everything that follows could not install. If they are "critical" why can not instal

  • Reconfigure Aspire SSD caching on Windows 10 v7

    Hello I have upgraded to Windows 10 on my Aspire V7 482pg (5861). I installed all the drivers recommended on the support page and have not run into any significant errors. However, this particular laptop comes with an SSD for caching, and I was not a

  • Error: "could not steal the images and find another place and cover these" while trying to create the panoramic view

    Original title: Image Composite Editor Why isn't my images being created panaroma style? I downloaded ms direct Photothèque and then my pictures, then clicked on create composites, it is downloaded. then clicked on new panaroma and he gave me a messa