Error while running job from artjesadmin of Tuxedo Batch Runtime
Hi, when I submit the job by entering artjesadmin>smj -i ../JCL/HELLO_WORLD_JCL.ksh , I am getting below error in Job LOG;
JOB SK127YSM BEGIN AT 2013/05/31 09:50:56
BEGIN PHASE START AT 2013/05/31 09:50:56
END PHASE START AT 2013/05/31 09:50:56 (RC=C0000, JOBRC=C0000, ELAPSED=0)
BEGIN PHASE STEP01 AT 2013/05/31 09:50:56
RUNB BEGIN :
RUNBATCH BEGIN :
+>> Program BEGIN : SAMPL+
ERROR mi_ProgramExec: The program execution has an error (SAMPLE)
END PHASE STEP01 AT 2013/05/31 09:50:58 (RC=U0900, JOBRC=U0900, ELAPSED=2)
BEGIN PHASE END_JOB AT 2013/05/31 09:50:58
END PHASE END_JOB AT 2013/05/31 09:50:58 (RC=C0000, JOBRC=U0900, ELAPSED=0)
JOB ENDED ABNORMALLY WITH CODE (U0900) AT 2013/05/31 09:50:58
ERROR mi_FileEmpty: The type UNKNOWN of file is unknown
mi_JobEnd: Internal Error (mi_FileEmpty -r mt_FileEmpty "/root/workspace/app/00000001/SYSOUT/HELLO_WORLD_JCL_00000001__SYSPRINT_1") RC=123
Does any one know 's why we get this error and what does RC=U0900 represent.
Also I checked m_ProgramExec API in /ejr directory and this file doesn't have any statement to execute the program name passed to it as parameter.
I think I have got whats the problem .
Syntax for calling m_ProgramExec is "m_ProgramExec [OPTIONS] Program [Args .....] ". And when this API is called it checks the number of arguments and I think its expecting miminum 2 args . When I ran the converted .ksh with m_ProgramExec SAMPLE it gave error as specified above. But when I corrected the converted .ksh with m_ProgramExec SAMPLE "agrs" . Then it ran successfully. (though the arguments were dummy)
Thanks Bob for your help.
Regards,
Naresh Gupta.
Similar Messages
-
FRM-92101 error while running report from form
HI All,
I am getting the form error FRM-92101 while running report from form menu.My code is given below:
DECLARE
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status VARCHAR2(20);
BEGIN
repid := FIND_REPORT_OBJECT('REPORT47');
v_rep := RUN_REPORT_OBJECT(repid);
rep_status := REPORT_OBJECT_STATUS(v_rep);
WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
LOOP
rep_status := report_object_status(v_rep);
END LOOP;
IF rep_status = 'FINISHED' THEN
WEB.SHOW_DOCUMENT('http://192.168.0.21:8889/reports/rwservlet/getjobid'||
substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repserver90','_blank');
ELSE
message('Error when running report');
END IF;
Clear_message;
END;
Clear_message;
--Arifhi Arif
Please see this note on MOS/Metalink for some common causes of this error:
Known Causes of FRM-92101 Error In Forms [ID 604633.1]
thanks,
AMN -
FRM-92101 error while running report from a button or menu
Hi All,
I am getting the error FRM-92101 while running report without parameter from a button or menu. I am using Developer Suit 10g. I get the error as it shows there has some configuration problem in my form. Will you please help me anyone how can i solve the problem. My previous forms running very well both with parameter and without parameter.
ArifHello Sir,
Thanks for your cooperation. I have solved my problem by myself. The fact was that, when i tried with the following code which made my report---
SELECT br.bid, br.bname, br.branchtxnstatus, dif.difference
FROM branch br,
(SELECT gladbrid branchid,
SUM
(CASE
WHEN ga.gl_acc_categry IN ('L', 'I')
THEN gd.gladbalance
ELSE -1 * gd.gladbalance
END
) AS difference
FROM glaccount ga, glaccountdetail gd
WHERE ga.glid = gd.gladglid
GROUP BY gladbrid) dif
WHERE dif.branchid = br.bid AND br.branchtxnstatus = :Br_Status
and dif.difference!=0
ORDER BY br.bid;
and the code against the button or menu item is---
DECLARE
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status VARCHAR2(20);
BEGIN
repid := FIND_REPORT_OBJECT('ASSET');
v_rep := RUN_REPORT_OBJECT(repid);
rep_status := REPORT_OBJECT_STATUS(v_rep);
WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
LOOP
rep_status := report_object_status(v_rep);
END LOOP;
IF rep_status = 'FINISHED' THEN
/*Display report in the browser*/
WEB.SHOW_DOCUMENT('http://192.168.0.21:8889/reports/rwservlet/getjobid'||
substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repserver90','_blank');
ELSE
message('Error when running report');
END IF;
Clear_message;
END;
Clear_message;
which has shown the error FRM-92101 and didn't run the report.
In that case I have changed the query to run the report. first of all i create a view following the query and build the report using a simple select query. that's etc. my report running fine now.
It is mentioned that there had no error on my codes.
Arif -
Error while running report from Form. i am using Forms 10g.
dear all,
here is a problem when running the report from a fom. gives the pollowing error.
REP-110: Unable to open file 'f:\oracle\accano\gl\coa_list.rdf'.
REP-1070: Error while opening or saving a document.
REP-0110: Unable to open file 'f:\oracle\accano\gl\coa_list.rdf'.
i am using Forms 10g.
thanks
Muhammad NadeemSee metalink doc id 215469.1
The purpose of this document is to:
- provide information on how to resolve the REP-110 error.
- give hints on how to troubleshoot problem.
- include a comprehensive summary of various scenarios which may
result in a REP-110 error -
Error while running page from Jdeveloper
Hi,
I have downloaded the Jdeveloper 10.1.3 with OA Extensions from the Patch 5856648.
I did the initial Jdeveloper setup mentioned in the Developer Guide "Setting Up Your Development Environment" chapter.
I am now trying to run the HelloWorldPG.xml.
It is giving me the following error:
Error instantiating web-application
Application: APPS_HTML has been stopped.
Please let me know what is the issue.
Thanks & Regards,
AnithaThe error stack in Jdeveloper log window is as follows:
[Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
C:\Jdev_R12\jdevhome\jdev\system\oracle.j2ee.10.1.3.39.81\embedded-oc4j\config>
C:\Jdev_R12\jdevbin\jdk\bin\javaw.exe -hotspot -classpath C:\Jdev_R12\jdevbin\j2ee\home\oc4j.jar;C:\Jdev_R12\jdevbin\jdev\lib\jdev-oc4j-embedded.jar -DFND_JDBC_STMT_CACHE_SIZE=200 -DCACHENODBINIT=true -DRUN_FROM_JDEV=true -mx256m -XX:MaxPermSize=256M -Doracle.j2ee.dont.use.memory.archive=false -Xverify:none -DcheckForUpdates=adminClientOnly -Doracle.application.environment=development -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config C:\Jdev_R12\jdevhome\jdev\system\oracle.j2ee.10.1.3.39.81\embedded-oc4j\config\server.xml
[waiting for the server to complete its initialization...]
Jan 28, 2008 12:19:08 PM com.evermind.server.jms.JMSMessages log
INFO: JMSServer[]: OC4J JMS server recovering transactions (commit 0) (rollback 0) (prepared 0).
Jan 28, 2008 12:19:08 PM com.evermind.server.jms.JMSMessages log
INFO: JMSServer[]: OC4J JMS server recovering local transactions Queue[jms/Oc4jJmsExceptionQueue].
WARNING: Code-source C:\Jdev_R12\jdevbin\jdev\appslibrt\xml.jar (from <library> in /C:/Jdev_R12/jdevhome/jdev/system/oracle.j2ee.10.1.3.39.81/embedded-oc4j/config/application.xml) has the same filename but is not identical to /C:/Jdev_R12/jdevbin/lib/xml.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in C:\Jdev_R12\jdevbin\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader default.root:0.0.0.
WARNING: Code-source C:\Jdev_R12\jdevbin\jdev\appslibrt\jazn.jar (from <library> in /C:/Jdev_R12/jdevhome/jdev/system/oracle.j2ee.10.1.3.39.81/embedded-oc4j/config/application.xml) has the same filename but is not identical to /C:/Jdev_R12/jdevbin/j2ee/home/jazn.jar (from <code-source> in META-INF/boot.xml in C:\Jdev_R12\jdevbin\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader default.root:0.0.0.
WARNING: Code-source C:\Jdev_R12\jdevbin\jdev\appslibrt\jazncore.jar (from manifest of /C:/Jdev_R12/jdevbin/jdev/appslibrt/jazn.jar) has the same filename but is not identical to /C:/Jdev_R12/jdevbin/j2ee/home/jazncore.jar (from <code-source> in META-INF/boot.xml in C:\Jdev_R12\jdevbin\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader default.root:0.0.0.
WARNING: Code-source C:\Oracle\lib\xmlparserv2.jar (from manifest of /C:/Jdev_R12/jdevbin/jdev/appslibrt/jazncore.jar) has the same filename but is not identical to /C:/Jdev_R12/jdevbin/lib/xmlparserv2.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in C:\Jdev_R12\jdevbin\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader default.root:0.0.0.
08/01/28 12:19:21 WARNING: Application.setConfig Application: datatags is in failed state as initialization failed.
java.lang.IllegalAccessError: tried to access method oracle.xml.jaxp.JXDocumentBuilder.<init>()V from class oracle.xml.jaxp.JXDocumentBuilderFactory
Jan 28, 2008 12:19:21 PM com.evermind.server.ServerMessages warningApplicationInitializationFailed
WARNING: Exception initializing deployed application: datatags. Application: datatags is in failed state as initialization failed
08/01/28 12:19:21 WARNING: Application.setConfig Application: APPS_OA is in failed state as initialization failed.
java.lang.IllegalAccessError: tried to access method oracle.xml.jaxp.JXDocumentBuilder.<init>()V from class oracle.xml.jaxp.JXDocumentBuilderFactory
Jan 28, 2008 12:19:21 PM com.evermind.server.ServerMessages warningApplicationInitializationFailed
WARNING: Exception initializing deployed application: APPS_OA. Application: APPS_OA is in failed state as initialization failed
08/01/28 12:19:21 WARNING: Application.setConfig Application: current-workspace-app is in failed state as initialization failed.
java.lang.IllegalAccessError: tried to access method oracle.xml.jaxp.JXDocumentBuilder.<init>()V from class oracle.xml.jaxp.JXDocumentBuilderFactory
Jan 28, 2008 12:19:21 PM com.evermind.server.ServerMessages warningApplicationInitializationFailed
WARNING: Exception initializing deployed application: current-workspace-app. Application: current-workspace-app is in failed state as initialization failed
Jan 28, 2008 12:19:24 PM com.evermind.server.http.HttpMessages internalErrorWhileTryingToInstantiate
SEVERE: Internal error raised tyring to instantiate web-application: webapp defined in web site OC4J 10g (10.1.3) Default Web Site. Application: webapp has been stopped
Ready message received from Oc4jNotifier.
Embedded OC4J startup time: 41808 ms.
08/01/28 12:19:24 Oracle Containers for J2EE 10g (10.1.3.1.0) initialized
Target URL -- http://10.8.48.14:8988/OA_HTML/runregion.jsp
Checking that EJBs were successfully deployed in embedded OC4J...
All EJBs are successfully deployed.
After the above error, there is warning message popped in the Jdeveloper window, which says as follows:
An error was encountered while running.
No response received in 30 secs.
Please suggest what could be the reason for the above error in jdev.
Thanks & Regards,
Anitha -
Error while running EJB from Client
I am able to successfuly deploy the EJB in Oracle 8.1.5, While running the Client code I am getting the following error, can any one help how to solve.
org.omg.CORBA.INTERNAL[completed=MAYBE, reason=java.lang.ClassNotFoundException: com.visigenic.vbroker.ds.DSUser]
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.lang.RuntimeException.<init>(Compiled Code)
at org.omg.CORBA.SystemException.<init>(Compiled Code)
at org.omg.CORBA.INTERNAL.<init>(Compiled Code)
at com.visigenic.vbroker.orb.ORB.create(Compiled Code)
at com.visigenic.vbroker.orb.ORB.create(Compiled Code)
at com.visigenic.vbroker.orb.ORB.locator(Compiled Code)
at com.visigenic.vbroker.orb.ORB.bind(Compiled Code)
at com.visigenic.vbroker.orb.UnboundStubDelegate.bind(Compiled Code)
at com.visigenic.vbroker.orb.UnboundStubDelegate.request(Compiled Code)
at com.visigenic.vbroker.orb.UnboundStubDelegate.request(Compiled Code)
at org.omg.CORBA.portable.ObjectImpl._request(Compiled Code)
at org.omg.CORBA._st_InitialReferences.get(Compiled Code)
at oracle.aurora.jndi.sess_iiop.SessionCtx.initialContext(Compiled Code)
at oracle.aurora.jndi.sess_iiop.SessionCtx.<init>(Compiled Code)
at oracle.aurora.jndi.sess_iiop.ServiceCtx.createSession(Compiled Code)
at oracle.aurora.jndi.sess_iiop.ServiceCtx.login(Compiled Code)
at oracle.aurora.jndi.sess_iiop.ServiceCtx.defaultSession(Compiled Code)
at oracle.aurora.jndi.sess_iiop.ServiceCtx.lookup(Compiled Code)
at oracle.aurora.jndi.sess_iiop.sess_iiopURLContext.lookup(Compiled Code)
at oracle.aurora.jndi.sess_iiop.sess_iiopURLContext.lookup(Compiled Code)
at javax.naming.InitialContext.lookup(Compiled Code)
at Date.Client.main(Compiled Code)
nullVerify if the connect.properties match your deployment mode viz Local, EJB or Oracle8i.
Uday -
I have an SSIS package which loads data from an Excel file into a SQL Database. This SSIS package is triggered by a batch file.
As part of a load test, I have created 20 batch files that run the same package for a different Excel file.
To have these batch files run together, I have created 2 master batch files, one to run them sequentially (using CALL) and the to run them parallely (using START). I do have any issues in both of them.
But when I try to run 5 instances of the same batch file run concurrently (using START XYZ.bat 5 times) only 1 succeeds. CALL XYZ.bat 5 times has no issues.
Is it because during START, the Excel file is opened by 1 batch file and unavailable to the other 4 instances? If yes, then why doesn't SSIS throw an error when I run the package through BIDS keeping the Excel file opened? Is there something I can do to
overcome a FAILURE?
Nelton D'Souza MS BI DeveloperYes, it seems that since you open the same file from multiple processes the error occurs due to the sharing violation.
I guess you will get the error opening several Excel files from BIDS trying to read / write to it if you have two BIDS so it is consistent. Excel disallows multiple access paths by its design.
Arthur My Blog -
ORA-00900: invalid SQL statement error while running jobs in APEX 4.2
Hi,
the following procedure compiled successfully in Apex 4.2:
create or replace procedure "DEVLOE" AS
L_TEMPLATE VARCHAR2(32000);
L_base_TEMPLATE VARCHAR2(32000);
begin
l_base_template := '<html>
<head>
<title>HTML Editor Sample Page</title>
</head>
<body>
<p>
<span style="font-size:14px;"><span style="font-family: verdana, geneva, sans-serif;"><span class="plsql-literal" style="line-height: 14.65625px; white-space: nowrap;">Hi #Contact#,</span></span></span></p>
<p>
<span style="font-size:14px;"><span style="font-family: verdana, geneva, sans-serif;"><span class="plsql-literal" style="line-height: 14.65625px; white-space: nowrap;">This is a notification message to inform you that <strong>Development </strong>effort </span><span class="plsql-literal" style="line-height: 14.65625px; white-space: nowrap;">and milestones are yet to be updated for ECR: </span><span class="plsql-operator" style="line-height: 14.65625px; white-space: nowrap;"></span><span class="plsql-word" style="line-height: 14.65625px; white-space: nowrap;">#ECR_NAME#. This ECR has priority #p#. </span></span></span></p>
<table align="center" border="1" cellpadding="1" cellspacing="1" style="width: 500px;">
<tbody>
<tr>
<td>
<span style="font-size:14px;"><span style="color: rgb(255, 0, 0);"><span style="font-family: verdana, geneva, sans-serif;"><u><strong>Department</strong></u></span></span></span></td>
<td>
<span style="font-size:14px;"><span style="font-family: verdana, geneva, sans-serif;"><span style="color: rgb(255, 0, 0);"><u><strong><span style="background-color: rgb(255, 255, 255);">Contact Name</span></strong></u></span></span></span></td>
</tr>
<tr>
<td>
<span style="font-size:14px;"><span style="font-family: verdana, geneva, sans-serif;">Product Management Contact</span></span></td>
<td>
<span style="font-size:14px;"><span style="font-family: verdana, geneva, sans-serif;">#pdm#</span></span></td>
</tr>
<tr>
<td>
<span style="font-size:14px;"><span style="font-family: verdana, geneva, sans-serif;">PMO Contact</span></span></td>
<td>
<span style="font-size:14px;"><span style="font-family: verdana, geneva, sans-serif;">#PMO#</span></span></td>
</tr>
<tr>
<td>
<span style="font-size:14px;"><span style="font-family: verdana, geneva, sans-serif;">Dev Contact</span></span></td>
<td>
<span style="font-size:14px;"><span style="font-family: verdana, geneva, sans-serif;">#Dev#</span></span></td>
</tr>
<tr>
<td>
<span style="font-size:14px;"><span style="font-family: verdana, geneva, sans-serif;">QA Contact</span></span></td>
<td>
<span style="font-size:14px;"><span style="font-family: verdana, geneva, sans-serif;">#QA#</span></span></td>
</tr>
<tr>
<td>
<span style="font-size:14px;"><span style="font-family: verdana, geneva, sans-serif;">Infodev Contact</span></span></td>
<td>
<span style="font-size:14px;"><span style="font-family: verdana, geneva, sans-serif;">#Info#</span></span></td>
</tr>
</tbody>
</table>
<p>
</p>
<span fckbookmark="1" style="display: none;"> </span><span fckbookmark="1" style="display: none;"> </span>
<table align="center" border="1" cellpadding="1" cellspacing="1" style="width: 500px;">
<tbody>
<tr>
<td>
<span style="font-size:14px;"><span style="font-family: verdana, geneva, sans-serif;"><span style="color: rgb(0, 0, 255);">Team</span></span></span></td>
<td>
<span style="font-size:14px;"><span style="font-family: verdana, geneva, sans-serif;"><span style="color: rgb(0, 0, 255);">Start Date</span></span></span></td>
<td>
<span style="font-size:14px;"><span style="font-family: verdana, geneva, sans-serif;"><span style="color: rgb(0, 0, 255);">End Date</span></span></span></td>
<td>
<span style="font-size:14px;"><span style="font-family: verdana, geneva, sans-serif;"><span style="color: rgb(0, 0, 255);">Effort(in person days)</span></span></span></td>
</tr>
<tr>
<td>
<span style="font-size:14px;"><span style="font-family: verdana, geneva, sans-serif;">Development</span></span></td>
<td>
<span style="font-size:14px;"><span style="font-family: verdana, geneva, sans-serif;">#d1#</span></span></td>
<td>
<span style="font-size:14px;"><span style="font-family: verdana, geneva, sans-serif;">#e1#</span></span></td>
<td>
<span style="font-size:14px;"><span style="font-family: verdana, geneva, sans-serif;">#L1#</span></span></td>
</tr>
<tr>
<td>
<span style="font-size:14px;"><span style="font-family: verdana, geneva, sans-serif;">Quality Assurance</span></span></td>
<td>
<span style="font-size:14px;"><span style="font-family: verdana, geneva, sans-serif;">#d2#</span></span></td>
<td>
<span style="font-size:14px;"><span style="font-family: verdana, geneva, sans-serif;">#e2#</span></span></td>
<td>
<span style="font-size:14px;"><span style="font-family: verdana, geneva, sans-serif;">#L2#</span></span></td>
</tr>
<tr>
<td>
<span style="font-size:14px;"><span style="font-family: verdana, geneva, sans-serif;">Information Development</span></span></td>
<td>
<span style="font-size:14px;"><span style="font-family: verdana, geneva, sans-serif;">#d3#</span></span></td>
<td>
<span style="font-size:14px;"><span style="font-family: verdana, geneva, sans-serif;">#e3#</span></span></td>
<td>
<span style="font-size:14px;"><span style="font-family: verdana, geneva, sans-serif;">#L3#</span></span></td>
</tr>
</tbody>
</table>
<p>
<span style="font-size:14px;"><span style="font-family: verdana, geneva, sans-serif;">The ECR application is located</span> at </span>: https://apex.oraclecorp.com/pls/apex/f?p=1472:1<span fckbookmark="1" style="display: none;"> </span></p>
<span fckbookmark="1" style="display: none;"> </span>
<p>
<span style="font-family: verdana, geneva, sans-serif; font-size: 14px;">Regards,</span></p>
<p>
</p>
<p>
<span style="font-size:14px;"><span style="font-family: verdana, geneva, sans-serif;">ECR Team</span></span></p>
</body>
</html>
FOR c1 IN (select ECR_NAME,PMO_CONTACT, QE_LOE,INFODEV_LOE, DEV_START_DATE, DEV_END_DATE, QE_CONTACT,QE_START_DATE,INFODEV_START_DATE,INFODEV_END_DATE, QE_END_DATE, INFODEV_CONTACT, PDM_CONTACT, DEV_LOE,ECR_PRIORITY, DEV_CONTACT from ECR_NAME WHERE DEV_LOE IS NULL AND ECR_STATUS = 'Effort Estimation is in Progress' AND ECR_PRIORITY <=5)
LOOP
l_template := l_base_template;
l_template:= replace(l_template, '#Contact#', c1.DEV_CONTACT);
l_template:= replace(l_template, '#ECR_NAME#', c1.ECR_NAME);
l_template:= replace(l_template, '#p#', c1.ECR_PRIORITY);
l_template:= replace(l_template, '#PMO#', c1.PMO_CONTACT);
l_template:= replace(l_template, '#pdm#', c1.PDM_CONTACT);
l_template:= replace(l_template, '#Dev#', c1.DEV_CONTACT);
l_template:= replace(l_template, '#QA#', c1.QE_CONTACT);
l_template:= replace(l_template, '#Info#', c1.INFODEV_CONTACT);
l_template:= replace(l_template, '#d1#', c1.DEV_START_DATE);
l_template:= replace(l_template, '#L1#', c1.DEV_LOE);
l_template:= replace(l_template, '#e1#', c1.DEV_END_DATE);
l_template:= replace(l_template, '#d2#', c1.QE_START_DATE);
l_template:= replace(l_template, '#L2#', c1.QE_LOE);
l_template:= replace(l_template, '#e2#', c1.QE_END_DATE);
l_template:= replace(l_template, '#d3#', c1.INFODEV_START_DATE);
l_template:= replace(l_template, '#L3#', c1.INFODEV_LOE);
l_template:= replace(l_template, '#e3#', c1.INFODEV_END_DATE);
htmldb_mail.Send(p_to => '[email protected]',
p_cc => '[email protected]',
p_from => '[email protected]',
p_body => l_template,
p_body_html => l_template,
p_subj => 'cxxxx:' ||c1.ECR_NAME );
END LOOP;
end;
the when I ran:
begin
devloe();
end;
I received the mail as well.
However, when I try to schedule this in the job:
declare
JobNo user_jobs.job%TYPE;
begin
dbms_job.submit(JobNo, 'BEGIN
DEVLOE();
END;', sysdate, 'sysdate + 1/24/60'); commit; end;
The job status shows failures every minute.
dbms_job.run(job_no);
It gave : ORA-00900: invalid SQL statementFirst of all I don't see a procedure header.
Secondly I see you commit inside your procedure. This is a bug.
Thirdly I see you also commit inside a loop. This is also a bug, and needs to be removed asap.
The error indicates a statement doesn't parse. As you don't post the error stack, nor a table definition no one can reproduce the problem.
You need to isolate the statements, one by one, and run them through sql*plus to see what happens.
Sybrand Bakker
Senior Oracle DBA -
Giving Error while running job.
Hi all,
I am getting error when i am trying to run the job for ID 94,95,96
BEGIN
dbms_job.run (95);
END;
ORA-12011: execution of 1 jobs failed
ORA-06512: at "SYS.DBMS_IJOB", line 651
ORA-06512: at "SYS.DBMS_JOB", line 284
ORA-06512: at line 2
Can any one help me on this.
Data Base version : 11.2.0.1.0
Thanks in Advance.
Saroop.Problem may be the way you submitted the job. Check if WHAT clause has the schema identifire while submitting the job, as below :
DBMS_JOB.SUBMIT( ..
what => 'BEGIN SCHEMA_NAME.JOB_PROC; END;', ...... -
Error while running job which is in DBA_JOBS
All,
My environment is Oracle - 10.2.0.4.0
Linux - 2.6
2 Node RAC environment
I have a job which is listed in DBA_JOBS. It is not auto executing. When I run manually, I am getting error.
Please see the error details below.
SQL> exec dbms_job.run(1);
BEGIN dbms_job.run(1); END;
ERROR at line 1:
ORA-12011: execution of 1 jobs failed
ORA-06512: at "SYS.DBMS_IJOB", line 413
ORA-06512: at "SYS.DBMS_JOB", line 275
ORA-06512: at line 1
When I check the alert log files, I am getting following message. Looks like some privilege issue. Can somebody help me. Job is owned by System and ran by System.
Mon Aug 10 11:09:27 2009
Errors in file ****************.trc:
ORA-12012: error on auto execute of job 1
ORA-01031: insufficient privileges
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2251
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2457
ORA-06512: at "SYS.DBMS_IREFRESH", line 685
ORA-06512: at "SYS.DBMS_REFRESH", line 195Lose the double quote and use 2 single quotes instead.
And bear in mind:
- next_date = DATE
- interval = VARCHAR2
PROCEDURE SUBMIT
Argumentnaam Type In/Out Standaard?
JOB BINARY_INTEGER OUT
WHAT VARCHAR2 IN
NEXT_DATE DATE IN DEFAULT
INTERVAL VARCHAR2 IN DEFAULT
NO_PARSE BOOLEAN IN DEFAULT
INSTANCE BINARY_INTEGER IN DEFAULT
FORCE BOOLEAN IN DEFAULT
So, try:
begin
dbms_job.submit( job => :jobno
, what => 'begin dbms_refresh.refresh(''ADDR''); end;'
, next_date => sysdate
, interval => 'sysdate + 1/1440'
commit;
end; -
ClassNotFound error while running applet from Web application
hi everyone,
I have a web application deployed in Tomcat web server. I have HTML file at the level of WEB-INF. And all class files under WEB-INF/classes. But while ruuning the application it giving following error.
load: class com.app.AppletTest not found.
java.lang.ClassNotFoundException: com.app.AppletTest
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed.
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 10 more
Here the HTML file applettest.html
<html>
<head>
<title>Multiple Image Upload</title>
</head>
<body>
<applet code="com.app.AppletTest" width="300" height="300">
</applet>
</body>
</html>
And Java applet file is
package com.app;
import java.applet.Applet;
import java.awt.Color;
import java.awt.Graphics;
public class AppletTest extends Applet
public void init()
System.out.println("Init called");
this.setBackground(new Color(180,200,250));
public void start()
System.out.println("Start called");
public void paint(Graphics g)
g.drawString("welcome Hello World",50,50);
System.out.println("Paint called");
public void stop()
System.out.println("Stop called");
public void destroy()
System.out.println("Destroy called");
Thanks.Hi,
if u put ur com.app.AppletTest file @ WEB-INF Directry, then this problem will solve easily.
you have to put applet package(com.app.AppletTest) @ WEB-INF Directry. Since
Applet is using by html, u have to keep applet with html file.
if applet class have interaction with other classes, u have to seperate all related class to applet to seperate package and put them @ WEB-INF folder. -
Error while running EJB from java client on JBOSS
Hi
As i am new to EJB i have created a helloworld application in ejb which is working fine when i try to call it from servlet but when i try to invoke the same ejb from java client (i.e from diff jvm) on jboss i got the following error:
javax.naming.CommunicationException: Could not obtain connection to any of these urls: localhost:1099 and discovery failed with error: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out] [Root exception is javax.naming.CommunicationException: Failed to connect to server localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused]]]
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1399)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:579)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at com.gl.TestClient.main(TestClient.java:39)
Caused by: javax.naming.CommunicationException: Failed to connect to server localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused]]
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:254)
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1370)
... 4 more
Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused]
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:228)
... 5 more
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:519)
at java.net.Socket.connect(Socket.java:469)
at java.net.Socket.<init>(Socket.java:366)
at java.net.Socket.<init>(Socket.java:266)
at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:69)
at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:62)
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:224)
... 5 more
Following is my code:
Home Interface:
package com.gl;
import javax.ejb.CreateException;
public interface testHome extends EJBHome {
String JNDI_NAME = "testBean";
public test create()
throws java.rmi.RemoteException,CreateException;
Remote Interface:
package com.gl;
import java.rmi.RemoteException;
import javax.ejb.EJBObject;
public interface test extends EJBObject {
public String welcomeMessage() throws RemoteException;
Bean:
package com.gl;
import java.rmi.RemoteException;
import javax.ejb.EJBException;
import javax.ejb.SessionBean;
import javax.ejb.SessionContext;
public class testbean implements SessionBean {
public void ejbActivate() throws EJBException, RemoteException {
// TODO Auto-generated method stub
public void ejbPassivate() throws EJBException, RemoteException {
// TODO Auto-generated method stub
public void ejbRemove() throws EJBException, RemoteException {
// TODO Auto-generated method stub
public void setSessionContext(SessionContext arg0) throws EJBException,
RemoteException {
// TODO Auto-generated method stub
public void ejbCreate(){}
public String welcomeMessage(){
return "Welcome to the World of EJB";
ejb-jar.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
<ejb-jar>
<enterprise-beans>
<session>
<ejb-name>testBean</ejb-name>
<home>com.gl.testHome</home>
<remote>com.gl.test</remote>
<ejb-class>com.gl.testbean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>
</enterprise-beans>
</ejb-jar>
jboss.xml:
<?xml version='1.0' ?>
<!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 3.2//EN" "http://www.jboss.org/j2ee/dtd/jboss_3_2.dtd">
<jboss>
<enterprise-beans>
<entity>
<ejb-name>testBean</ejb-name>
<jndi-name>testBean</jndi-name>
</entity>
</enterprise-beans>
</jboss>
Client code:
package com.gl;
import java.util.Properties;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.rmi.PortableRemoteObject;
public class TestClient {
public static void main(String[] args) throws Exception{
try{
/* Properties props=new Properties();
props.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
props.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
props.put(Context.PROVIDER_URL, "jnp://localhost:1099");
Properties props = new Properties();
props.put(Context.INITIAL_CONTEXT_FACTORY,
"org.jnp.interfaces.NamingContextFactory");
props.put(Context.PROVIDER_URL, "localhost:1099");
System.out.println("Properties ok");
//env.setProperty(Context.INITIAL_CONTEXT_FACTORY,"org.jboss.naming.HttpNamingContextFactory");
//env.put(Context.PROVIDER_URL,"http://localhost:8080");
//env.put(Context.SECURITY_PRINCIPAL, "");
//env.put(Context.SECURITY_CREDENTIALS, "");
Context ctx=new InitialContext(props);
System.out.println("context ok");
//testHome home = (testHome)ctx.lookup("testBean");
Object obj = ctx.lookup ("testBean");
System.out.println("ojb = " + obj);
testHome ejbHome = (testHome)PortableRemoteObject.narrow(obj,testHome.class);
test ejbObject = ejbHome.create();
String message = ejbObject.welcomeMessage();
System.out.println("home ok");
System.out.println("remote ok");
System.out.println(message);
catch(Exception e){e.printStackTrace();}
I am able to successfully deployed my ejb on JBOSS but i m getting above error when i am trying to invoke ejb from java client.
kindly suggest me something to solve this issue.
Regards
Gagan
Edited by: Gagan2914 on Aug 26, 2008 3:28 AMIs it a remote lookup? Then maybe this will help:
[http://wiki.jboss.org/wiki/JBoss42FAQ]
- Roy -
Getting error while running javamail from servlet
i am getting the following error when i am using authentication for java mail
how to solve it.??
javax.servlet.ServletException: Error instantiating servlet class mailservlet
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:793)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:702)
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:571)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:644)
java.lang.Thread.run(Thread.java:595)
root cause
java.lang.NoClassDefFoundError: mailservlet$1
java.lang.Class.getDeclaredConstructors0(Native Method)
java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
java.lang.Class.getConstructor0(Class.java:2640)
java.lang.Class.newInstance0(Class.java:321)
java.lang.Class.newInstance(Class.java:303)
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:793)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:702)
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:571)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:644)
java.lang.Thread.run(Thread.java:595)root cause
java.lang.NoClassDefFoundError: mailservlet$1That (inner) class was available in the classpath during compile time, but not during runtime.
This can have several causes. At least recompile the code with exactly the same JDK version as the JRE version with which you runs it and use the same classpath in both cases. -
Error while running SSIS package from Integration service or via Job
Hi All,
I encounter the below error while running SSIS Package from Job or integration service. However on execution completes success fully while running from data tools. The issue occurs after migration to 2012 from 2oo5 dtsx. PFB the error.
SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. The PrimeOutput method on OLE DB Source returned error code 0xC02020C4. The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by
the component, but the error is fatal and the pipeline stopped executing. There may be error messages posted before this with more information about the failure.
A buffer failed while allocating 10485760 bytes.
The system reports 26 percent memory load. There are 206110765056 bytes of physical memory with 150503776256 bytes.
free. There are 2147352576 bytes of virtual memory with 185106432 bytes free. The paging file has 208256339968 bytes with 145642921984 bytes free.
The package also runs successfully from other servers. This happens only in one of our server.seems like issue with some sql configuration.Hi ,
Are you running using SQL Agent Job and Data tools on same server or different?
If it is executing fine using Data tools and failing with Job it might be User credentials issue.Try
to run Job with your credentials by using proxy .
Regards,
Prathy
Prathy K -
Rdf Report Error while running from concurrent program
hi,
i have created a RDF Report with the below query created Concurrent Prog exec and Concurrent Prog with the respective parameters
p_fromsrdate---FND_STANDARD_DATE(ValueSet)
p_tosrdate---FND_STANDARD_DATE(ValueSet)
for the report layout i have taken example template working fine from the report console
SELECT
incident.Incident_Number as ServiceRequestNumber,
TO_CHAR (incident.incident_date,'DD-MON-YYYY') as ServiceRequestDate,
incident.Summary as Summary,
agenttime.agentname as AgentName,
to_char(agenttime.agentstarttime,'DD-MM-YYYY HH24:MI') as StartTime,
to_char(to_date('00:00:00','HH24:MI:SS') +
(agenttime.endtime-agenttime.agentstarttime), 'HH24:MI') as TimeSpent
FROM cs_incidents_all_b incident,cs_agenttime_agv agenttime
WHERE agenttime.incident_id=incident.incident_id
AND incident.incident_date between to_date(:p_fromsrdate,'DD-MON-YYYY')
AND to_date(:p_tosrdate,'DD-MON-YYYY');
Service: Version : 12.0.0
Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
AGTIMREP module: SR Agent Time Report
Current system time is 01-AUG-2009 04:46:13
+-----------------------------
| Starting concurrent program execution...
+-----------------------------
Arguments
p_fromsrdate='2009/07/05 00:00:00'
p_tosrdate='2009/07/20 00:00:00'
APPLLCSP Environment Variable set to :
Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
American_America.UTF8
Enter Password:
REP-0069: Internal error
REP-57054: In-process job terminated:Terminated with error:
REP-300: ORACLE error occurred.
Report Builder: Release 10.1.2.0.2 - Production on Sat Aug 1 04:46:21 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Start of log messages from FND_FILE
End of log messages from FND_FILE
Program exited with status 1
Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 4444878.
Review your concurrent request log and/or report output file for more detailed information.
Executing request completion options...
Finished executing request completion options.
Concurrent request completed
Current system time is 01-AUG-2009 04:46:23
---------------------------------------------------------------------------hi,
i have enabled the trace
Service: Version : 12.0.0
Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
AGTIMREP module: SR Agent Time Report
Current system time is 01-AUG-2009 06:25:18
+-----------------------------
| Starting concurrent program execution...
+-----------------------------
Arguments
p_fromsrdate='2009/07/05 00:00:00'
p_tosrdate='2009/07/07 00:00:00'
-- Start of Reports Command --
/home/orasfa/inst/apps/SFA_appsr12/ora/10.1.2/bin/appsrwrun.sh
P_CONC_REQUEST_ID=4444890
p_fromsrdate='2009/07/05 00:00:00'
p_tosrdate='2009/07/07 00:00:00'
report=/home/orasfa/apps/apps_st/appl/cs/12.0.0/reports/US/AGTIMREP.rdf
batch=yes
destype=file
desname=/home/orasfa/inst/apps/SFA_appsr12/logs/appl/conc/out/o4444890.out
desformat=XML
-- End of Reports Command --
Request language is :
AMERICAN
Request territory is :
AMERICA
APPLLCSP Environment Variable set to :
Previous NLS_LANG Environment Variable was :
American_America.UTF8
Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
American_America.UTF8
Enter Password:
REP-0069: Internal error
REP-50002: Server is shutting down
Report Builder: Release 10.1.2.0.2 - Production on Sat Aug 1 06:26:20 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Start of log messages from FND_FILE
End of log messages from FND_FILE
Reset original NLS_LANG in environment as :
American_America.UTF8
Program exited with status 1
Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 4444890.
Review your concurrent request log and/or report output file for more detailed information.
Executing request completion options...
Finished executing request completion options.
Concurrent request completed
Current system time is 01-AUG-2009 06:26:20
---------------------------------------------------------------------------
Maybe you are looking for
-
Hi Friends, I have an Issue with Tax. Till now I haven't got a chance to work Tax related issue. I am creating a new WageType. User is saying this 25% taxable. I came to know by maintaing some Processing Classes it can be maintained. But my doubt is
-
I can't create a projector Mac and Win exe in Flash CC (?!?)
Hello, I use Flash Professionnal CC and I would like to create a projector file or/and an Win exe with my animation... But I do not see anywhere the ability to create these files in "Publish Settings" (no Mac or Windows box to check as in CS5). I rea
-
Noise on line but only when hub connected
Had this problem now for about 2 years had four engineers out and still the same problem. Intermittent noise on line only when bb connected. Hub drops and speed gets very slow. Worse when weather hot. I use to get a good connection of about 7500 ADSL
-
After installing NiDAQ package (7 l & 9), vi's are claimed to be missing.
Hello, I have a piece of LabVIEW software that was written in LabVIEW 4.0 and we have been using it in LabVIEW 5.0 on a Windows 2000 computer. The hard drive on this computer crashed, so we replaced it and reinstalled Windows 2K and LabVIEW 5.0. The
-
TS1702 Spreadsheet app for excel - can't find it now in the store ???
A few years ago I DL'd a spreadsheet app (for excel). Believe it was Free. When I tried to install the app on my iPhone 4s (had a 3GS) it would open then immediately close. It's logo was the white Sum symbol over a blue background. Can't find it