Coldfusion, Oracle translate problem
We are using Coldfusion Server to connect to a oracle database.
When the translate function is used ie:
SELECT ejname
FROM Ej
WHERE
(Lower(translate(ejname,'h,H,I,i','e,e,e,e')) like '%#LCase(form.query)#%')
I find that using the translate function in this fashion it will mistake an 'i' for the letter e. So if form.query = 'i' it will return everything that starts with an 'e'. Anybody else have this problem?
First of all - this is an appliaction developed by someone
else, I'm just trying to get it to work again :( The strange thing
is that it worked fine until the oracle server was reinstalled.
I've triple checked, and there are no changes in the CF
application, the PL/SQL package or the database structure.
I'm not sure why threshold is declared differently in CF and
Oracle, but I've already tried changing it to
cf_sql_varchar, and it does not seem to make any difference.
Regarding
typ_vtx_result, this is declared in the package as shown
below.
AS
TYPE typ_vtx_result IS REF CURSOR RETURN dual%ROWTYPE;
PROCEDURE proc_vtx_search(
url IN VARCHAR2,
filename IN VARCHAR2,
shape IN VARCHAR2,
color IN VARCHAR2,
texture IN VARCHAR2,
spatial IN VARCHAR2,
threshold IN VARCHAR2,
images OUT typ_vtx_result);
END vtx;
Similar Messages
-
Coldfusion Query Delay Problem
Folks we are having some intermittent problems with our
application web servers.
We are using coldfusion to serve data from Oracle databases.
SELECT statements only, no updating of the database is done. The
coldfusion application server and the oracle database server are
seperate servers,
The problem we are having is as follows.
When the user opens the app for the 1st time a query is run
to work out what access level they have. 95% of the time the query
is instant. We have been logging this using getticktick()
often the time taken is 0ms we also see 16ms and 31ms. The query
returns
1 row with 1 field in it to size of data returned is not an
issue.
Occasionally we get this query reportedly taking between 5
and 120 seconds using gettickcount() either side of it.
We turned on some logging at the Oracle end and this reported
that EVERY time a query of this type it is taking absolutely no
time all.
Our next port of call was the network. We have sniffed
packets between the coldfusion server and the oracle server.
We managed to trap one of the requests where the response
time is slow and the scenario was as follows :
1. Coldfusion -> Oracle. Hello i've got some work for you
to do. Completed in millisenconds
2. Oracle -> Coldfusion. Acknowledged, Yes what is it?
Completed in millseconds.
3. Coldfusion -> Oracle Acknowledged......... delay of 17
seconds (delay times vary)..... it's this query
4. Oracle -> Coldfusion. Here are your results. completed
in milliseconds
5. Coldufsion -> Oracle. Acknlowledged. completed in
millseconds.
So it appears that internally within coldfusion a delay is
occuring as the database and the network have been eliminated.
The delay time is never the same and can range from a couple
of seconds to over a minute. The times of day that these delays
occur at is not uniform.
The server is busiest between 0800 and 1700. But this server
is NOT under heavy load at all, it is however query intensive. It
is up 24 hours a day and there is a constant user base.
We have tuned all our queries and cached them as best we can.
However i'm not sure how much this helps as we get delays on
queries we know are performant.
We are currently upgrading one of our servers to CF8 using
oracle thin jdbc drivers rather than the odbc to see if this makes
a difference.
If anyone has previous experience of this or knows of
anything settings we need to tweak at a java level that would be
great.
Spec of what we are running is as below :
Windows 2003 Server
Coldfusion MX 7.0.2 Standard
Oracle 10g ODBC Drivers
Any help gratefully received as the users are starting to get
fed up of having these delays for no apparent reason.> 3. Coldfusion -> Oracle Acknowledged......... delay
> of 17 seconds (delay times vary)..... it's this query
Do you mind elaborating here?
It kind of appears as if there are two requests.
Meaning, is it just as correct to state it this way:
2. Oracle -> Coldfusion. Acknowledged, Yes what is it?
Completed in millseconds.
3. Coldfusion -> Oracle Acknowledged. it's this query.
delay of 17 seconds (delay times vary)
4. Oracle -> Coldfusion. Here are your results. completed
in milliseconds
If this is how it happened, then I would guess that
it's a database issue.
Or perhaps this is the more correct way to state it:
2. Oracle -> Coldfusion. Acknowledged, Yes what is it?
Completed in milliseconds.
3. Coldfusion -> Oracle Acknowledged. Completed in ???
4. Coldfusion -> Oracle it's this query. Completed in ???
5. Oracle -> Coldfusion. Here are your results. completed
in milliseconds
If this is how it happened, then I would think you
need to determine which step took 17 seconds. -
Translation Problem in app Map
Hi, there is a translation problem in the new app Map. The Hong Kong City Hall is a place to perform art like dancing and drama, and its name in traditional Chinese is 香港大會堂.However, the map use a name of "中國香港特別行政區市政府" which means "China Hong Kong SAR government office" which is completly wrong polictically and logically. This is a very serious problem that Apple should fix ASAP in order to prevent users complaining on the simple mistake Apple just made.
Looking forward from your reply
SeraveeApple does not monitor these forum for suggestions. I would follow the instructions here:
How to add a location or report a problem in iOS 6 Maps | iMore.com
You can also go here:
Apple - iPod touch – Feedback -
Hi All,
We need to translate a custom from labels from English to Japanese, so that both US and Japan can use that form.
So we have used Oracle Translation Builder to specify the translation. As an initial step, we just changed the labels to some other english words. And now we have generated American .fmx and Japanese .fmx. And we are able to see the difference.
Now in Oracle translation Builder(OTB), if i paste Japanese characters in the translation editor, we are able to see the Japanese characters. But if we save&close the OTB and re-open it, we see all the question(???) marks. Even if we generate/upload the Japanese.fmx to applications, we are seeing the same Japanese ??? marks in the applications.
Can you please let me know, what am i missing...
(I have installed the Asian language (ARIALUNI.ttf) in my local system.)May be You should set the environment variable NLS_LANG to "JAPANESE_JAPAN.WE8MSWIN1252" or "AMERICAN_AMERICA.JA16SJIS" will allow you to store Japanese providing the input data is truly JA16SJIS and if the database is also in a character set that can store Japanese like UTF8 or JA16SJIS).
Or use Oracle Translation Hub it is useful tool. It replaces the OTB :-)
Edited by: user9212008 on 2.4.2010 1:09 -
Oracle reports problem in distribution with xml file
Hi ,
I am having problem while I am trying to distribute the file with specifing the destination details in the xml. If I am giving the destination details in url then it is working.
Ex.
This is Working
http://bryxh91:8889/reports/rwservlet?report=devlopersuit/reports/test.jsp&userid=anju/[email protected]&desformat=pdf&destype=file&desname=devlopersuit/reports/output_file.pdf
Not working :
http://bryxh91:8889/reports/rwservlet?report=devlopersuit/reports/test.jsp&userid=anju/[email protected]&DISTRIBUTE=YES&destination=devlopersuit/reports/dis_test.xml
xml file
<destinations>
<file id="test" name="output_file.pdf" format="pdf">
<include scr="mainSection"/>
</file>
</destinations>
Error : REP-34304: Distribution failed to complete; review the distribution lists
Its been week I tried many things , but not working.
Right now I am trying to distribute to single file but my goal is to burst and distribute on basis of account number.
This is the first stage of the project.
Thanks a lot for the help
AnjuHello
see answer in Oracle reports problem in distribution with xml file
Regards -
Oracle Translation builder 6i IN/OUT
Please, let me know how extract
1 .Oracle Translation builder 6i text (text from OTB tables) to ASCII text file and
2. ASCII text file to Oracle Translation builder?
Urgent? Yes. Answer appreciated? Yes. Darko Jelisavcic [email protected]May be You should set the environment variable NLS_LANG to "JAPANESE_JAPAN.WE8MSWIN1252" or "AMERICAN_AMERICA.JA16SJIS" will allow you to store Japanese providing the input data is truly JA16SJIS and if the database is also in a character set that can store Japanese like UTF8 or JA16SJIS).
Or use Oracle Translation Hub it is useful tool. It replaces the OTB :-)
Edited by: user9212008 on 2.4.2010 1:09 -
Translation Problem – Region Disappearing
Translation Problem – Region Disappearing
I recently started working on translating my application to German. When I apply my xlif file I have a problem with the contents of all my report regions using Vertical Report Look 2 disappear.
The report region is still visible, however the report contents (corresponding to the report template) have completely disappeared.
When I switch back to English (setting FSP_LANGUAGE_PREFERANCE) the report contents are once again visible.
I am using theme 7.
Thanks in advance.
-ImmanuelHi Joel,
Dont worry about that last request, i have already fixed the problem.
If anyone else has this problem they can fix it by creating a custom report template with the following code:
Report template Before Rows:
<table summary="Vertical" class="t7vertical3" align="center" border="0" cellspacing="0" cellpadding="0">
Include the following in your Theme.css (or theme_V2.csss in the case of theme 7):
table.t7vertical3 {border:0px #bbbbbb solid;border-collapse:collapse;background:#ffffff;font-size:8pt;}
table.t7vertical3 tr {border-top:1px;}
table.t7vertical3 td.L{font-weight:bold;vertical-align:top;padding:2px;white-space:nowrap;width:30%;text-align:right;border:0px #bbbbbb solid;background:#999999;color:#ffffff;border:1px #bbbbbb solid;}
table.t7vertical3 td{padding:2px;border:1px #bbbbbb solid;text-align:left;}
Cheers,
Immanuel -
Oracle Translation Manager or Translation HUB
Hi Guys,
I need to explore about the tool Oracle Translation Manager (6i). From 9i and above its called as Translation HUB. Please send me the link or any details from where i can download this tool and start using it.
Thanks in advance
GuruHi Justin,
Thanks for the response. Its a tool for Converting the written words in different languages so i thought of posting in Db as well. I have already posted in Forms Forum and yet to get to get a reply on that.
If you can provide me with any such links or write ups, that should be a great help for me.
Thanks in anticipation
Guru -
Hi Guys,
I need to explore about the tool Oracle Translation Manager (6i). From 9i and above its called as Translation HUB. Please send me the link or any details from where i can download this tool and start using it.
Thanks in advance
GuruHi Justin,
Thanks for the response. Its a tool for Converting the written words in different languages so i thought of posting in Db as well. I have already posted in Forms Forum and yet to get to get a reply on that.
If you can provide me with any such links or write ups, that should be a great help for me.
Thanks in anticipation
Guru -
Everyones Oracle Linux Problem solved!!!
Everyones Oracle Linux Problem solved!!!
Here's something Linux people should relate to: Use what works!
what works?
NT works! NT works great with 8i AND OAS.
No hassles at all!
Up and running within one day!!!!
Guaranteed!
U don't see a NT forum here with people having ridiculous install problems like Linux people?
Perhaps Oracle should moderate this newsgroup and even give an authorative answer or two?
nullI have switched our development and soon production databases to Linux because it runs like a charm. Fast and efficient, no problems. The installer has been a problem no doubt because Oracle put less of an emphasis on debugging their Linux installer than their idiot-proof NT installer.
By the way, I was able to circumvent installer problems by just linking svrmgrl to svrmgrlO; this avoided the dreaded segmentation fault and kicked everything open just fine.
BTW, about NT; what makes an OS is not how well everything works when everything is going well, but how bad it gets when something goes bad. For instance, the segmentation faults on Linux weren't a problem because I just picked up and continued; on NT you'd have to restart the whole system...not a pleasant feature.
null -
Translation problem , While conversion from English to Poland
Hello Gurus
Pl suggest Translation problem , While conversion from English to Poland getting message
"Code page not found for Poland "
Code page 1401 exits in system
SAP version 4.6C
Best regards
KrishDear Vamsi,
Please check the below lonk may be it heps.
Translation to different languages. How??????
Regards
Pranay -
Oracle Designer Problem Please help me
Sir,
1) I created a database
2) Run>cd d:\Oracle_home\repadm61\admin\@ckqa
@ckparams.txt
@ ckvalqa
@ ckcreate
3)Opened Repository Administration Utility
Log in as 'repos_manager/repos_manager@orcltest'
Installed Repository.
4) Opened Oracle 9i Designer. I am able to connect
as 'repos_manager/repos_manager@orcltest'
But I am not able to logon as any other user in same database/ any other user in different database. Why?
Please help me.
regards
Mathewduplicate thread, see this one -> Re: Oracle Designer Problem Please help me
-
Hi
I am trying to translate an application from English to French and have been following the normal Translate Application process.
I downloaded the XLIFF file and made some translations into French then completed the stage 'Apply the Translation file (XLIFF)
and process' without a problem. I then went to Edit Attributes in Globalization and have tried various settings in 'Application
Language Defined From'. However the text I translated into French is still appearing in English.
Any idea what I may be doing wrong?
Thanks
SimonHello Simon,
Reading your list of steps, it seems that you are taking the correct steps. However,
>> f46517_1919191919_en_gb_fr.xlf.xml
The ‘xml’ extension – is it a typo, or is it the real extension of your XLIFF file? All my APEX generated XLIFF files has the extension of ‘xlf’.
>> as it doesn't get listed in the list of applications I have on this workspace
That’s OK. The translated application is not exactly an independent application, and as such it is not being listed by the Application Builder (although it will be appeared in the list of possible applications you can export).
Basically you should continue calling your original application – 46517 – and not the translated application. The APEX engine derived the application language, according to what you set in the “Application Language Derived From” field.
Simon Gadd suggestion, is one option to test your translated application, provided that your “Application Language Derived From” field is set to “Browser (use browser language preference)”. The “Application Primary Language” should be set to the primary language of your 46517 application – English (en) in your case.
Another option, if you don’t want to continuously change the primary language of your browser, is to use the “Item Preference (use item containing preference)” option. I’m using this option, where the item is a select list item, contains all the translated languages, as part of the login page. For more details read the following (especially item 6) - http://download.oracle.com/docs/cd/E10513_01/doc/appdev.310/e10499/global.htm#CHDFFJEJ .
Regards,
Arie. -
TWO MSSQL= ORACLE Migration Problems
I have to migrate a MS SQL Database to ORACLE, but I'm facing two major problems.
1) How do I treat NOCLUSTERED Primary Keys and CLUSTERED Unique-IDs? There is no equivalent in Oracle, is there?
2) What can I do about MS SQL "Uniqueidentifiers"? Please give me some help, I allready read the MigrationGuide and looked in the internet, but I couldn't find any solutions to this...
So how would you translate this MS-SQL table?
CREATE TABLE example (
someid int IDENTITY(1,1),
type varchar(20) NOT NULL,
real uniqueidentifier NOT NULL,
PRIMARY KEY NONCLUSTERED (someid),
UNIQUE CLUSTERED (
real
UNIQUE (
type
Any help will be greatly appreciated!
Thanx in advance,
MarkFirst thing when you create a primary key in sql server it is defaulted to clustered index, which is not the case with Oracle.
To retain the identity property of the someid field you would have create sequence for that column which is fired by trigger.
something like this
CREATE SEQUENCE "S_EXAMPLE_ID" INCREMENT BY -1
START WITH -1 MAXVALUE 1.0E27 MINVALUE 0 NOCYCLE
CACHE 30 NOORDER
CREATE OR REPLACE TRIGGER "TRG_EXAMPLE_SEQ"
BEFORE
INSERT ON "EXAMPLE" FOR EACH ROW begin
select S_EXAMPLE_ID.nextval into :new.SOMEID FROM dual;
END;
As for index you have decide which you want to use based on your requirements and clustered indexes in oracle is different from that in Sql Server -
I get the following error message when trying to compile a SQLJ
applet under Windows 95.
I've previously managed to compile and run simple SQLJ programs
successfully.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
unexpected error occurred...
java.lang.NoClassDefFoundError:
LDatabase;Lsqlj/runtime/profile/RTResultSet;)V
at java.lang.Class.getDeclaredConstructors(Compiled Code)
at
sqlj.framework.JSClass$ClassWrapper.getDeclaredConstructors
(Compiled Code)
at
sqlj.framework.JSClass.getMaximallySpecificConstructors(Compiled
Code)
at sqlj.framework.JSClass.resolveConstructor
(JSClass.java:1136)
at sqlj.codegen.IteratorMetaData.getBaseIterator
(IteratorMetaData.java:75)
at sqlj.codegen.IteratorMetaData.<init>
(IteratorMetaData.java:63)
at sqlj.codegen.ExecCodegen.addResultTypes(Compiled Code)
at sqlj.codegen.ExecCodegen.getExecStmt
(ExecCodegen.java:336)
at sqlj.codegen.ExecCodegen.createExecStmt
(ExecCodegen.java:128)
at sqlj.codegen.ExecCodegen.createGenerator
(ExecCodegen.java:63)
at sqlj.codegen.ExecCodegen.generate
(ExecCodegen.java:560)
at sqlj.codegen.BaseCodegen.generate(BaseCodegen.java:28)
at sqlj.codegen.ParseletFactory$ParseletImpl.generate
(ParseletFactory.java:115)
at sqlj.syntax.SqljParselet.generate
(SqljParselet.java:128)
at
sqlj.javac.JavaParserSubTokenManager$PositionedParselet.generate
(JavaParserSubTokenManager.java:171)
at
sqlj.javac.JavaParserSubTokenManager$TokenManagerParselet.generat
e(Compiled Code)
at sqlj.javac.ASTCompilationUnit.generate(Compiled Code)
at sqlj.translator.Translator.translate(Compiled Code)
at sqlj.translator.Translator.translate
(Translator.java:170)
at sqlj.translator.Main.translate(Compiled Code)
at sqlj.translator.Main.runTranslation(Main.java:92)
at sqlj.translator.Main.runTranslation(Main.java:85)
at sqlj.tools.Sqlj.statusMain(Compiled Code)
at sqlj.tools.Sqlj.main(Sqlj.java:117)
Database.sqlj: Error: Exception caught:
Total 1 error.
>>>>>>>>>>>>>>>>>>>>>>>>>>>
The applet code is listed below
>>>>>>>>>>>>>>>>>>>>>>>>>>>
import java.applet.Applet;
import java.awt.Graphics;
import java.sql.*;
import sqlj.runtime.*;
import sqlj.runtime.ref.*;
import sqlj.runtime.profile.*;
import oracle.sqlj.runtime.*;
#sql context MyContext;
#sql iterator SalesIter( String ITEM_NAME, float COST );
public class Database extends Applet {
String buffer = new String ();
public void init()
{ MyContext mctx = new MyContext
("jdbc:oracle:thin@ntastlab:1521:lab8","training","training",fals
e);
System.out.println ("Connected to the database");
public void start()
SalesIter siter = null;
#sql siter = {SELECT ITEM_NAME, COST FROM SALES };
while (siter.next())
buffer = buffer + siter.ITEM_NAME() + siter.COST ();
repaint ();
siter.close ();
public void stop()
public void destroy()
public void paint(Graphics g) {
g.drawString(buffer, 50, 25);
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Any ideas ??
nullThe problem occurs when SQLJ tries to determine the type
of the iterator SalesIter which is in your source.
But I do not know, what that problem actually is.
What version of javac? of sqlj? (JDK 1.2 does not work
before SQLJ 8.1.6 SDK-Beta).
What is in your PATH/CLASSPATH?
What happens when you put SalesIter in SalesIter.sqlj:
#sql public iterator SalesIter (...);
and add this to your SQLJ command line?
Dominic Lawson (guest) wrote:
: I get the following error message when trying to compile a SQLJ
: applet under Windows 95.
: I've previously managed to compile and run simple SQLJ programs
: successfully.
: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
: unexpected error occurred...
: java.lang.NoClassDefFoundError:
: LDatabase;Lsqlj/runtime/profile/RTResultSet;)V
: at java.lang.Class.getDeclaredConstructors(Compiled Code)
: at
: sqlj.framework.JSClass$ClassWrapper.getDeclaredConstructors
: (Compiled Code)
: at
sqlj.framework.JSClass.getMaximallySpecificConstructors(Compiled
: Code)
: at sqlj.framework.JSClass.resolveConstructor
: (JSClass.java:1136)
: at sqlj.codegen.IteratorMetaData.getBaseIterator
: (IteratorMetaData.java:75)
: at sqlj.codegen.IteratorMetaData.<init>
: (IteratorMetaData.java:63)
: at sqlj.codegen.ExecCodegen.addResultTypes(Compiled Code)
: at sqlj.codegen.ExecCodegen.getExecStmt
: (ExecCodegen.java:336)
: at sqlj.codegen.ExecCodegen.createExecStmt
: (ExecCodegen.java:128)
: at sqlj.codegen.ExecCodegen.createGenerator
: (ExecCodegen.java:63)
: at sqlj.codegen.ExecCodegen.generate
: (ExecCodegen.java:560)
: at sqlj.codegen.BaseCodegen.generate(BaseCodegen.java:28)
: at sqlj.codegen.ParseletFactory$ParseletImpl.generate
: (ParseletFactory.java:115)
: at sqlj.syntax.SqljParselet.generate
: (SqljParselet.java:128)
: at
sqlj.javac.JavaParserSubTokenManager$PositionedParselet.generate
: (JavaParserSubTokenManager.java:171)
: at
sqlj.javac.JavaParserSubTokenManager$TokenManagerParselet.generat
: e(Compiled Code)
: at sqlj.javac.ASTCompilationUnit.generate(Compiled Code)
: at sqlj.translator.Translator.translate(Compiled Code)
: at sqlj.translator.Translator.translate
: (Translator.java:170)
: at sqlj.translator.Main.translate(Compiled Code)
: at sqlj.translator.Main.runTranslation(Main.java:92)
: at sqlj.translator.Main.runTranslation(Main.java:85)
: at sqlj.tools.Sqlj.statusMain(Compiled Code)
: at sqlj.tools.Sqlj.main(Sqlj.java:117)
: Database.sqlj: Error: Exception caught:
: Total 1 error.
: >>>>>>>>>>>>>>>>>>>>>>>>>>>
: The applet code is listed below
: >>>>>>>>>>>>>>>>>>>>>>>>>>>
: import java.applet.Applet;
: import java.awt.Graphics;
: import java.sql.*;
: import sqlj.runtime.*;
: import sqlj.runtime.ref.*;
: import sqlj.runtime.profile.*;
: import oracle.sqlj.runtime.*;
: #sql context MyContext;
: #sql iterator SalesIter( String ITEM_NAME, float COST );
: public class Database extends Applet {
: String buffer = new String ();
: public void init()
: { MyContext mctx = new MyContext
("jdbc:oracle:thin@ntastlab:1521:lab8","training","training",fals
: e);
: System.out.println ("Connected to the database");
: public void start()
: SalesIter siter = null;
: #sql siter = {SELECT ITEM_NAME, COST FROM SALES };
: while (siter.next())
: buffer = buffer + siter.ITEM_NAME() + siter.COST ();
: repaint ();
: siter.close ();
: public void stop()
: public void destroy()
: public void paint(Graphics g) {
: g.drawString(buffer, 50, 25);
: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
: Any ideas ??
null
Maybe you are looking for
-
We've been told that the default on the inferred value changed from version 9 to version 10 from read-only to writable. This messes us up on testing because it does not indicate which values are inferred and which aren't so it's possible values could
-
ITunes does not sync applicatiosn
Hi everyone, I have a problem. I bougth new iPhone 3Gs and I bought some applications from iTunes Store on computer but iTunes does'nt sync my application. I tick all of them but it does'nt work. Do you know, how can I handle that?
-
Hi Guys, Iam seeing above issue on two of my switches connected to core switch ....i know there are quite of few discussion open on same issue but mine is diff.... i see same issue on two switches connected via core swicth on same vlan ( 112)....when
-
I use OS X Yosemite and Java Version 8 Update 25. Which java version is suitable for flash CS6?
-
Slow wireless transfer (incoming files only)
Hi, In our office we have 4 iMacs (Two CoreDuo & Two Core2Duo) & all are networked via our wi-fi router. One of the CoreDuo iMacs has a VERY slow transfer speed when anyone else sends files to it. EG: mount the iMac & drag files over to its desktop.