Pls help ? about snapshot,urgent!
first i create a database link remote_connect,and test it,it's active;
then i create a snapshot log on remote master table:table_one, table_one has it's primary key(id), and last i create snapshot in local like this:
create snapshot local_table_one
storage(initial 100k next 100k pctincrease 0)
tablespace snaps
refresh fast
as
select * from table_one@remote_connect;
but the errors occur:
ORA-12014: 1m'TABLE_ONE'2;0|:,Vw9X<|WVT<JxLu<~(table 'table_one' not include primary key check condition);
my question is:
how can i do for this,i want use primary key not rowid:
thanks first!
This problem occurs when you try to create a snapshot with using WITH PRIMARY KEY option, and the Master table either doesn't have primary key or the primary key is disabled.
If you don't want to use WITH ROWID option, you'll have to check your master table.
Either create a primary key or enable it if already exists on the Master table.
Hope this will help
Faheem
Similar Messages
-
How can i set dynamice for week on Selection screen..pls help me..Urgent
Hi..All
please Help me .. i am very confused..
i need to set a varient for week which is dynamic on selection screen.
b) Week from current week to current week + 2. (<b>Dynamic selection)</b>how can i set dynamice for week on Selection screen,,
how can i do this..i am alrady set dynamice variant for Date.. there is option for D.. but in case of week there is a no option.
pls help me..urgent
thamks in advance.
mayukhHi,
I think the way out is use the dynamic select option while setting up the varinat and use sy-datum to sy-datum+9 which should essentially serve the purpose.
While saving the variant, for that particular date field check the Selection variable checkbox, then Choose D
option and then choose current days + or - option from there.
Rgds,
HR -
hi experts'
i have to generate asset utilization report in webdynpro
inputs for report are some rfcs
i get result from rfcs
i need to float report i used bussinessgraphic object
its not interactive
if i go for tables
how to create tables with drill down inside table
how to set color for each cell of table depending on condition
please help me
its urgent
and send me code n linkHi Vani,
Your requirement has many things
1. How to call RFCs
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/28113de9-0601-0010-71a3-c87806865f26?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#15 [original link is broken]
2. Once you have data, how to work with BusinessGraphics ?
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ba2db0e5-0601-0010-9790-e271902f2c38
(This docs contatins all the required info on webDynpro UIElements)
3.Tables
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/28113de9-0601-0010-71a3-c87806865f26?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#46 [original link is broken]
Regards,Anilkumar -
Pls help.. its urgent
hi,
select service_request srid,
function_activity_id fid
from sop_service_request
Output currently getting:
srid fid
1001 1,2,3
1002 2,3
1003 1,2,3,4,5
desired output:
srid fid
1001 act1-s1,act2-s2,act3-s3
1002 act2-s2,act3-s3
1003 act1-s1,act2-s2,act3-s3,act4-s4,act5-s5
The activity/subactivity name will come from sop_function_activity_map(master table) whose data is as under:
function_acvitity_id activity_name sub_activity_name
1 act1 s1
2 act2 s2
3 act3 s3
4 act4 s4
5 act5 s5
how do i pass each row of the query and compare function_activity_ids for each service request to master table and get the names of its act-subactivity and again join it comma seperated to get the output as desctibed abovehow do i pass each row of the query and compare function_activity_ids for each service request to master table and get the names of its act-subactivity and again join it comma seperated to get the output as desctibed above
so basically i have to seprate each function_activity_id from comma sep. function_activity ids for each row and check against the function_activity_id of master table and get names of them and again concate those names in comma sep fashion to display in that row... i need this to be done for each row of the result in above query
thx
pls help
thxHi,
The following should give you your required output.
create or replace
function get_transposed2( p_a in varchar2 )
return varchar2
is
l_str varchar2(2000) default null;
l_sep varchar2(1) default null;
begin
for x in ( Select t2.activity_name || '-' || t2.sub_activity_name as z
from sop_service_request t1, sop_function_activity_map t2
where t1.fid = t2.function_acvitity_id
and t1.srid = p_a ) loop
l_str := l_str || l_sep || x.z;
l_sep := ',';
end loop;
return l_str;
end;
select srid, get_transposed2( srid ) t
from sop_service_request
group by srid;
Going by the outputs you require in your original post. -
How to use getRealPath() on FacesContext _Any One Pls Help me its Urgent
hi,
I am facing this error in jboss
14:23:38,578 INFO [STDOUT] FILE Loaded IS::D:\jboss-4.0.3\server\fins\.\tmp\deploy\tmp62946fins.ear-contents\fins-exp.war\reports\STRreport2.jasper
when i tries to access a file( which is at WebRoot\reports\STRreport2.jasper) from jsf file located as WebRoot\pages\report\ShowReport.jsp.
Error is::
JasperReports encountered this error :
net.sf.jasperreports.engine.JRException: Error loading object from file : D:\jboss-4.0.3\server\fins\.\tmp\deploy\tmp62946fins.ear-contents\fins-exp.war\reports\STRreport2.jasper
pls help me. Thanks in Advance.Pls help me.
JasperReports encountered this error :
java.io.InvalidClassException: net.sf.jasperreports.engine.base.JRBaseReport; local class incompatible: stream classdesc serialVersionUID = 10100, local class serialVersionUID = 10101
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:519)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1546)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1460)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1546)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1460)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1693)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:85)
at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:62)
at org.apache.jsp.jsp.viewer_jsp._jspService(org.apache.jsp.jsp.viewer_jsp:85)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:415)
at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:300)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:95)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
NESTED BY :
net.sf.jasperreports.engine.JRException: Error loading object from file : D:\jboss-4.0.3\server\fins\.\tmp\deploy\tmp63657fins.ear-contents\fins-exp.war\reports\FontsReport.jasper
at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:89)
at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:62)
at org.apache.jsp.jsp.viewer_jsp._jspService(org.apache.jsp.jsp.viewer_jsp:85)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:415)
at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:300)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:95)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.io.InvalidClassException: net.sf.jasperreports.engine.base.JRBaseReport; local class incompatible: stream classdesc serialVersionUID = 10100, local class serialVersionUID = 10101
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:519)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1546)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1460)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1546)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1460)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1693)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:85)
... 37 more -
FindClass() Problem Pls Help.. (URGENT!!)
Hi,
I trying to use the files from the book "JNI Programmer's Guide & Specifications" - Ch. 7., to create JVM & call a java method from c routine.
I m working on Solaris machine. JVM is 1.1, so the correct part of the version independent code runs (refer to invoke.c below)
LD_LIBRARY_PATH is set correctly. invoke.c is complied correctly with no errors. All the files namely Prog.java, Prog.class, invoke.c, a.out are in the same directoy "/home/top/atm".
When executable file is run. JVM is created. But FindClass() returns with NULL value. !!!
When I try to run Prog.java from the commandline using "java Prog Hello" it runs good.
It just simply won't find the Prog.class in it's current directory. ???
If instead, "java/util/Date" is passed to FindClass(), it finds it.
The classpath in the program is also modified & there is no typo error or case-sensitivity related errors.
I m also printing classpath passed to JVM in the program. It has my included path "/home/top/atm", along with other system classpath(s).
I m banging my head over this problem, since 2 days. Hence I tried to use reference implementation files. It still will not work..
Can anyone pls be patient & help me. I'll really appreciate this.
Thanks a lot,
Following is the code of 2 files..
Prog.java
public class Prog
public static void main(String[] args)
System.out.println("Hello World" + args[0]);
& invoke.c
#include <jni.h>
#define PATH_SEPARATOR ':' /* define it to be ':' on Solaris */
#define USER_CLASSPATH "/home/top/atm" /* where Prog.class is */
main() {
JNIEnv *env;
JavaVM *jvm;
jint res;
jclass cls;
jmethodID mid;
jstring jstr;
jclass stringClass;
jobjectArray args;
#ifdef JNI_VERSION_1_2
JavaVMInitArgs vm_args;
JavaVMOption options[1];
options[0].optionString =
"-Djava.class.path=" USER_CLASSPATH;
vm_args.version = 0x00010002;
vm_args.options = options;
vm_args.nOptions = 1;
vm_args.ignoreUnrecognized = JNI_TRUE;
/* Create the Java VM */
res = JNI_CreateJavaVM(&jvm, (void**)&env, &vm_args);
#else
JDK1_1InitArgs vm_args;
char classpath[102400];
vm_args.version = 0x00010001;
JNI_GetDefaultJavaVMInitArgs(&vm_args);
/* Append USER_CLASSPATH to the default system class path */
sprintf(classpath, "%s%c%s",
vm_args.classpath, PATH_SEPARATOR, USER_CLASSPATH);
vm_args.classpath = classpath;
/* Create the Java VM */
res = JNI_CreateJavaVM(&jvm, &env, &vm_args);
fprintf(stderr, "JVM Created !!! with # %d\n", res);
#endif /* JNI_VERSION_1_2 */
if (res < 0) {
fprintf(stderr, "Can't create Java VM\n");
exit(1);
fprintf(stderr, "ClassPath is : %s\n", classpath);
cls = (*env)->FindClass(env, "Prog");
if (cls == NULL) {
goto destroy;
fprintf(stderr, "Class Found !!\n");
mid = (*env)->GetStaticMethodID(env, cls, "main",
"([Ljava/lang/String;)V");
if (mid == NULL) {
goto destroy;
jstr = (*env)->NewStringUTF(env, " from C!");
if (jstr == NULL) {
goto destroy;
stringClass = (*env)->FindClass(env, "java/lang/String");
args = (*env)->NewObjectArray(env, 1, stringClass, jstr);
if (args == NULL) {
goto destroy;
(*env)->CallStaticVoidMethod(env, cls, mid, args);
destroy:
if ((*env)->ExceptionOccurred(env)) {
(*env)->ExceptionDescribe(env);
(*jvm)->DestroyJavaVM(jvm);
----------------------------------------Hi , I got the exact same problem as you did. Can you
please let me know if you solve this issue already ?When FindClass returns null it means it threw an exception. The first step is to get that exception and print it out.
The error is probably class not found. And just as with java only that means your class path is not correct. -
Pls help about Rollback and Connection Pooling
Hello Friends.
I have some problems abount Rollback & ConnectionPooling.
If connection pooling is possible with rollback facility??????
I am giving my code below so pls guide me- i am using MySql and J2EE 1.3.
try
/* Setting auto commit off */
con.setAutoCommit(false);
affectedRow = myStatement.executeUpdate(String qury1);
affectedRow = myStatement.executeUpdate(String qury2);
affectedRow = myStatement.executeUpdate(String qury3);
con.commit();
}catch(SQLException sqle){
try{
con.rollback();
}catch(Exception e){e.printStackTrace();}
}finally {
saveFlg=false;
try {
if(myStatement!=null)
myStatement.close();
}catch(Exception e){e.printStackTrace();}
}// finally block complete...
/* Sample Code Ends*/
Thanks in advance and Happy New YearIf connection pooling is possible with rollback facility??????Should be, sure. What problem do you have with it?
I know very little about MySQL, but I understand it is somewhat "special". Do you have a version of MySQL that has transaction support? Check the MySQL docs: is there some configuration you need to do to enable transactions? -
hi,
i have a field cut_off_time. it is varchar2 in table.
i want to do front end validation. as date should be only like 21:00:00.
no characters should be inserted other than : and numbers
and it ranges frm 00:00:00 to 23:59:59
can any one help me.Hello,
I know that's not what you want to hear, but you should seriously think about converting your table column to an appropriate format.
That would solve your problem for all data manipulation and not only for Forms.
Otherwise you have to use the PL/SQL string functions to write your own validation,
checking every character for the right value ( after you checked that the hole thing is numeric, off course ).
When your database is 10g you could try regular expressions and if you're lucky perhaps you'll find an expression for this in another community ( Perl or so ).
Bernd -
Javax Activation error, pls help me very urgent
Hello,
I am calling a java stored procedure, but I am getting the following error:
javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/mixed;
boundary="----=_Part_0_-1403249095.1105388630390"
I dropped the jar files from the database and re-deployed the the latest jar files downloaded from Sun site, still I am getting the the same error.
could someone please help me with this, I am desperately trying to solve this problem and get the work done. I am using java stored procedure to send emails.
Any help is highly appreciated.
Thanks
CosmosThis is a Javamail problem.
with a quick search of the javamail forum i found the same problem: http://forum.java.sun.com/thread.jspa?threadID=74127&start=0&tstart=0 -
Pls help me out : Urgent
Hi All,
I have problem related Projection of PF. I have one wagtype for Leave Encashment that is PFable and It is marked as Irregular Income. So PF should be calculated in the current month for LEA and should not be projeted for the year.
I.e IF Basic = 900
Leave Encashment = 100.
PF would be : 900 * 12 / 100 = 108
100 * 12 / 100 = 12
Total PF 120
And Projection would be (for Agg of Chapter VI) 108 * 12 =1296 + 12 = 1308. So the tax would be cut correctly.
But in my case it is taking 108 * 12 = 1296 + ( 12 * 12 ) = 1296 + 144 = 1440.
that is ( 120 * 12 = 1440).
Please suggest me ASAP.
Thanks in Advance
Atin
Message was edited by:
atin patel
Message was edited by:
atin patelHi Patil,
You will have to create one PF projection wagetype. after that you will have to write one rule for that wagetype where you will have to incorporate your calculation formale.
If you have already PF able amount configured in the system, you will have to read RT value of that wagetype in the rule and then pickup the value of the RT LEA value & pass the value to the PF Projection wagetype.
I think this is a suitable solution for you.
Please assign points if this is helpful
regards,
Devojit -
hi friends
i am making a jsp site on music lovers.i which i would have collection of cd's through which client can buy them and listen them too.i need ur help as to how to start the making of it and some recomended books that may help me in that.plz help its my project work and my marks r dependent on it
thank u , shikhaI'm currently getting in to JSP development and I'm using the following books, which I am finding to be very helpful:
JavaServer Pages by Hans Bergsten, Published by O'Reilly.
Java Servlet Programming, by Jason Hunter with William Crawford, published by O'Reilly.
Using Java Server Pages and Servlets, by Mark Wutka, published by Que.
The first two books are the better I would say.
HTH. -
Pls Help about counting the lines of the file in java
private int GrepPBArequestLog(String STRexpression) throws IOException
int totalnum = 0;
try {
String[] cmd = {"grep", "-ic", STRexpression, src};
System.out.println("grep, cmd " STRexpression" "+src);
Process grepProc = Runtime.getRuntime().exec(cmd);
String line = "";
BufferedReader br = new BufferedReader(new InputStreamReader(grepProc.getInputStream()));
line = br.readLine();
System.out.println("read: "+line);
while (line != null)
System.out.println("Line: "+line);
line = line.substring(line.indexOf(":") + 1, line.length());
System.out.println("Substring: "+line);
try
int temp = Integer.parseInt(line);
totalnum = totalnum + temp;
catch(NumberFormatException e)
System.out.println("String: "+line);
System.out.println("NumberFormatException Occured"+e.getMessage());
}//end while
the output is:
service No: 209
Wapdate: 07/Jul/2003
Went inside: GrepPBArequestLog
grep cmd .*07/Jul/2003.*GET.*209.* /var/log/httpd/access_log*
Line:
read: null
totalnum: 0
wap 07/Jul/2003:
wap 209:
total hits 209: 0
+++++++++++++++++++++++++++++++++
the read: should not be null because there is a number of lines and
totalnum shouldn't be 0.You don't want to simply:
import java.io.*;
public class CountEm {
private static BufferedReader br;
private static int count;
private static String fileName, record;
public static void main(String[] argv) {
switch(argv.length) {
case 1: { fileName = argv[0]; break; }
default: { System.out.println("Usage: java CountEm [filename]"); System.exit(-1); }
try { countEm(); }
catch(IOException ioe) { System.out.println("ERROR doing countEm()\n"+ioe); }
finally { System.out.println("Count: "+count); }
public static void countEm() throws IOException {
br = new BufferedReader(new FileReader(fileName));
while ( ( record = br.readLine() ) != null ) { count++; }
}~Bill -
Pls help.Its very urgent
Hi,
We have upgraded to oracle11g from oracle10g and the query which was executing fine in 10g is giving the following error in oracle11g.
java.sql.SQLException: ORA-00910: specified length too long for its datatype
The same query is working fine in plsql developer or Toad but is throwing an error when executed through application code. so,I thought this will be because of drivers. I used the same classes12.jar that comes with 10g and I copied ojdbc5.jar into my classpath, the manifest file in the ojdbc jar specifies it as being driver for oracle 11 with jdk1.5.Still,I am getting same error.
My query is a simple SELECT statement and is as follows and i have no idea which datatype the error is referring to. There is no BLOB or CLOB object type in the columns I am selecting. The query when executed in PL/SQL developer returns 200 records.
SELECT * FROM (SELECT DISTINCT ValidFolder.Colour, f_FolderNumber2(NVL(Folder.FolderCentury, ''), Folder.FolderYear,Folder.FolderSequence,Folder.FolderSection ,Folder.FolderRevision,Folder.FolderType) FolderNumber, Folder.ReferenceFile, Folder.InDate, Folder.IssueDate, Folder.StatusCode StatusCode1, Folder.FolderName, Folder.FolderDescription, Folder.IssueUser IssueUser1, Folder.ExpiryDate, Folder.FinalDate, ValidFolder.FolderGroupCode, Folder.SubCode SubCode1, Folder.WorkCode, Folder.FolderType FolderType1, Folder.Priority, Folder.FolderRSN, Folder.PropertyRSN, Folder.ParentRSN, Folder.StatusCode, ValidFolder.FolderGroupCode FolderGroupCode1, Folder.IssueUser, Folder.SubCode, Folder.FolderType, ValidFolder.TabMask, Folder.FolderCentury, Folder.FolderYear, Folder.FolderSequence, Folder.FolderRevision, ROW_NUMBER() OVER (ORDER BY Lower(NVL(Folder.FolderDescription, '')) ASC ) r FROM Folder, ValidFolder, ValidFolderGroup, Property, ValidProvince WHERE ValidProvince.ProvinceType (+)= Property.PropProvince AND Folder.PropertyRSN = Property.PropertyRSN and ValidFolder.FolderType = Folder.FolderType and ValidFolderGroup.FolderGroupCode = ValidFolder.FolderGroupCode and ValidFolderGroup.GroupTypeCode = 3 and Folder.FolderType = 'B1' and ValidFolder.FolderGroupCode = 21 ) t where r between 0 and 200 ORDER BY Lower(NVL(t.FolderDescription, '')) ASC
Please advise on how to proceed with this issue. I am currently in the process of having Oracle 11g client installed in my machine but the point is that it needs to work with 10g client as well per my understanding.I would suggest that your NLS settings are different between the tools that you are using.
Matt
WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
Have you read the blog at http://www.workflowfaq.com/blog ?
WorkflowFAQ support forum: http://forum.workflowfaq.com -
File to File Scenario with Secure Connection. Pls help urgent
Hello All,
I tried a lot to get a link/blog that expalin full scenario
for File to File Scenario with Secure Connection
Kindly let me know if somebody have link/doc for it
that describe all the steps to do configuring this scenario.
What is difference in simple words between
FTPS and SFTP.
Pls help it is urgent as I require for Project work urgently.
Regardshi rich
go through these links
FTPs connection failed - error ".. certificate rejected by ChainVerifier"
Re: What is SFTP, FTI channels
http://help.sap.com/saphelp_erp2005/helpdata/en/e3/94007075cae04f930cc4c034e411e1/frameset.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/frameset.htm
FTPS implementation question.
http://help.sap.com/saphelp_nw04s/helpdata/en/43/0e16bfd7b021aee10000000a1553f6/frameset.htm
Server certificate rejected by ChainVerifier:FTPS server(Points Guaranteed)
/people/krishna.moorthyp/blog/2007/07/31/sftp-vs-ftps-in-sap-pi
File adapter
thanks
Kunaal -
Its urgent pls help me .
how can i call a portal from webdynpro application
my requirment is
i was created webdynpro application.
in that i was created one view . in that i was created one button (go).
if i click that button i want move some other portal.
how can i acchive pls help me.
its urgent.
pls send any example programe
Message was edited by:
madipadiga nagaraju
Message was edited by:
madipadiga nagarajuhi,
there is no direct tcode for going to webdynpro component/interfaces in ecc 6.0.
but u have se58 in ecc 5.0,as webdynpro convertor.u give ur program name and click web dynpro convertor button then it takes u to se80 .but this wda(webdynpro abap) component comes as in application tree hierarchy .
i can say in wda component refers a class .if u select webdynpro component/interface,it ask u to create a class or interface.
after that it automatically generate component controller(it is also a class),
interface view and windows.all these 3 are classes.for every window one interface view will be created.ie.. window is internal visible where as interface view is external visible.
u create view and embed these views in windows.by going to the window layout,right click on the window name and click embed view.u can enbed as many view as u wish.in order to navigate from one view to other view ,click "create navigation" by right clicking the view plugs.
by default windows and view have inbound plugs.this is literally a event of that class.
if u want to navigate from view1 to view2 ,create outbound plug for view1,the click outbound plug of view1 and right click the click create navigation the select inbound plug of view2.
then create a application .this is simillar of creating an object.
click on this object and test .this will open in browser.
for deploying u have use "sap webdynpro iview".
Maybe you are looking for
-
Blocking goods receipt based on unprinted purchase order
Hello, I want to block goods receipt based on purchase order that hasn't been printed yet. How can I do it? Thanks.
-
In iPad, Newstand App, some apps do not appear even though downloaded
My Wall Street Journal and Barrons when in the app store say they are in open status, but do not appear in Newstand, they open from store only. Cannot determine why they are not showing up in the Newstand view. Anyone have the same issue. Appea
-
Indicator-ubuntuone (my first PKGBUILD, I need review)
Hi, I've made a PKGBUILD of indicator-ubuntuone. I've used City-busz's indicator-sync as a model, but honestly I'm not sure of what I'm doing. It's my first build, I'll appreciate suggestions, corrections,... before uploading it to AUR. PKGBUILD # Ma
-
Hi, We are currentrunly using oracle 10.2.0.3 with 2 node RAC with ASM. How we can clone that.
-
Download a public video from a web on flash
I watched a public video that I want to download on to my computer, how can I do this?