DBMS_JOB.SUBMIT works, Job runs, but no information in dictinary views.
We run a Job in a 10g (10g Enterprise Edition Release 10.2.0.4.0) DB using this code in SQL*Plus.
SQL> EDIT
Wrote file afiedt.buf
1 DECLARE
2 v_JobNum NUMBER;
3 BEGIN
4 DBMS_JOB.SUBMIT(v_JobNum,'chs_job_test;',sysdate, NULL);
5 DBMS_OUTPUT.PUT_LINE('Job # = ' || v_jobnum);
6 commit;
7* END;
8 /
PL/SQL procedure successfully completed.
SQL> set serverout on
SQL> /
Job # = 462Job runs successfully. i.e. the procedure chs_job_test is executed OK. Problem is when we query the USER_JOBS view, we don't see any record for Job 462??
Why is this??
Where can we get information of the jobs submitted???
If an error occured when running job, from where, which DD View we can get this?
If you submit a job without specifying the NEXT_DATE and INTERVAL, Oracle treats it as a "single execution" job. It is removed from the job queue once it is completed.
Hemant K Chitale
Similar Messages
-
Problem starting SAP: disp+work.EXE Running but bad dialog queue time
Hello,
I have been trying to start my SAP test instance on a local computer, but it does not work. I can see "Running but bad dialog queue time: 12.00 sec". This was working a few weeks ago, but now it doesn't anymore. My initial assumption was the database was filled, but I checked that and it seems ok, there is still space for data and logs...
I have checked the dev_disp log and I can see these:
*** ERROR => DpHdlDeadWp: W0 (pid 7540) died (severity=0, status=0) [dpxxwp.c 1531]
*** ERROR => DpHdlDeadWp: W1 (pid 6008) died (severity=0, status=0) [dpxxwp.c 1531]
*** ERROR => DpHdlDeadWp: W2 (pid 2412) died (severity=0, status=0) [dpxxwp.c 1531]
*** ERROR => DpHdlDeadWp: W3 (pid 7284) died (severity=0, status=0) [dpxxwp.c 1531]
*** ERROR => DpHdlDeadWp: W4 (pid 1340) died (severity=0, status=0) [dpxxwp.c 1531]
*** ERROR => DpHdlDeadWp: W5 (pid 4088) died (severity=0, status=0) [dpxxwp.c 1531]
*** ERROR => DpHdlDeadWp: W6 (pid 304) died (severity=0, status=0) [dpxxwp.c 1531]
*** ERROR => DpHdlDeadWp: W8 (pid 2120) died (severity=0, status=0) [dpxxwp.c 1531]
*** ERROR => DpHdlDeadWp: W9 (pid 5392) died (severity=0, status=0) [dpxxwp.c 1531]
*** ERROR => DpHdlDeadWp: W10 (pid 6140) died (severity=0, status=0) [dpxxwp.c 1531]
*** ERROR => DpHdlDeadWp: W11 (pid 2996) died (severity=0, status=0) [dpxxwp.c 1531]
Then I checked the log for W0 and I think this is the problem:
M ***LOG Q0I=> NiPConnect2: 127.0.0.1:65000: connect (10061: WSAECONNREFUSED: Connection refused) [nixxi.cpp 3286]
M *** ERROR => NiPConnect2: SiPeekPendConn failed for hdl 1/sock 1276
(SI_ECONN_REFUSE/10061; I4; ST; 127.0.0.1:65000) [nixxi.cpp 3286]
M *** ERROR => IcmConnect: NiConnect to localhost:65000,-1 (rc=-10) [icxxext.c 182]
M *** ERROR => ThPlgConnectToIcm: IcmConnect failed (-10) [thxxplg.c 5137]
M in_ThErrHandle: 1
M *** ERROR => ThStart: connect to icman (step 1, th_errno 2, action 3, level 1) [thxxhead.c 11313]
The connections are refused for some reason, I don't know why. Can anyone help? I am attaching the log files...Hi
As per your work process trace (dev_w0), it is not able to reach icm port 65000
M Mon Aug 11 10:27:39 2014
M ***LOG Q0I=> NiPConnect2: 127.0.0.1:65000: connect (10061: WSAECONNREFUSED: Connection refused) [nixxi.cpp 3286]
M *** ERROR => NiPConnect2: SiPeekPendConn failed for hdl 1/sock 1260
(SI_ECONN_REFUSE/10061; I4; ST; 127.0.0.1:65000) [nixxi.cpp 3286]
M *** ERROR => IcmConnect: NiConnect to localhost:65000,-1 (rc=-10) [icxxext.c 182]
M *** ERROR => ThPlgConnectToIcm: IcmConnect failed (-10) [thxxplg.c 5137]
M in_ThErrHandle: 1
M *** ERROR => ThStart: connect to icman (step 1, th_errno 2, action 3, level 1) [thxxhead.c 11313]
to fix this error, follow below 2 SAP KBAs ;
1934023 - Application server startup fail with an ICM connection error
1900647 - Parameter icm/admin_port
regards
Swami -
Disp+work.exe - Running but dialog queue statistics unavailable
Hi,
We have two diferent instances in the same machine. One on them have disp+work.exe in yellow and show message "Running but dialog queue statistics unabailable". This is right, the queue statistics have no item to show, but I can login perfectly in sapgui and see the processes in tx sm50.
Where sapmmc read from? Instance profiles? Any other file?
Thanks for all.Yes, problem solved.
I stopped windows instance service and overwrote the exe.
Thanks for all again -
Disp+work.exe running but meesage server unreachable
Hi Guys,
i was working around for the past 4 days. still i was not able to find out the solution for this problem. when i am trying to connect SAP Server through SAPGUI, it was not connecting. i cross check with SAP MMC in the process list only one process was running (Message service) remaing processes were stopped. but disp+work.exe was running but with error message as "Running but message server unreachable". as per my knowledge this may be problem with sapmsg.ini. plz let me know how to fix this problem.
any help would be appreciated
Thanks,
srini
Message was edited by:
raj reddyhi ,
plz help me .
dispatcher is running but cannot be connected to the message server
in dev_disp, the following error exists
Wed Oct 09 09:38:56 2013
*** ERROR => [DpProcDied] Process died (PID:248 HANDLE:956 rc:0x0) [dpnttool2.c 147]
DpHalt: wait for end of icman
DpHalt: waiting for termination of icman ...
Wed Oct 09 09:38:57 2013
*** ERROR => [DpProcDied] Process died (PID:2844 HANDLE:964 rc:0x0) [dpnttool2.c 147]
DpHalt: not attached to the message server
DpHalt: cleanup EM
***LOG Q05=> DpHalt, DPStop ( 2688) [dpxxdisp.c 11380] -
Disp+work.exe running but Message Server Unreachable
Hi all,
I am new bee to this forum. can anybody guide me about this problem. i was working around for the past 4 days. still i was not able to find out the solution for this problem. when i am trying to connect SAP Server through SAPGUI, it was not connecting. i cross check with SAP MMC in the process list only one process was running (Message service) remaing processes were stopped. but disp+work.exe was running but with error message as <b>"Running but message server unreachable"</b>. as per my knowledge this may be problem with sapmsg.ini. plz let me know how to fix this problem.Hi!
I have same problem after installation SAPNW7. TrialSP12.
I'm running virtual MS Windows SP2 using VMWare Workstation 8.0
dev_ms is attached.
trc file: "dev_ms", trc level: 1, release: "700"
[Thr 3436] Sat May 12 11:17:33 2012
[Thr 3436] MsSSetTrcLog: trc logging active, max size = 20971520 bytes
systemid 560 (PC with Windows NT)
relno 7000
patchlevel 0
patchno 94
intno 20050900
make: multithreaded, ASCII, optimized
pid 3432
[Thr 3436] ***LOG Q01=> MsSInit, MSStart (Msg Server 1 3432) [msxxserv.c 1824]
[Thr 3436] MsInitAclInfo: acl file D:\NSP\SYS\global\ms_acl_info.DAT not found, unrestricted access
[Thr 3436] MsGetOwnIpAddr: my host addresses are :
[Thr 3436] 1 : [10.10.0.10] sap.localhost (HOSTNAME)
[Thr 3436] 2 : [127.0.0.1] localhost (LOCALHOST)
[Thr 3436] 3 : [192.168.238.128] allon-51c22207c.corp.loc (NILIST)
[Thr 3436] MsHttpInit: full qualified hostname = sap.localhost
[Thr 3436] HTTP logging is switch off
[Thr 3436] set HTTP state to LISTEN
[Thr 3436] MsHttpOwnDomain: own domain[1] = localhost
[Thr 3436] ms/icf_info_server : deleted
[Thr 3436] *** I listen to port sapmsNSP (3600) ***
[Thr 3436] *** I listen to internal port 3900 (3900) ***
[Thr 3436] *** HTTP port 8100 state LISTEN ***
[Thr 3436] CUSTOMER KEY: >I1895797210<
[Thr 3436] Sat May 12 11:28:22 2012
[Thr 3436] *** ERROR => MsSCheckConnections: no response from client C0 (10.10.0.10) after 300 secs received [msxxserv.c 3165]
[Thr 3436] *** ERROR => MsSCheckConnections: disconnect now [10.10.0.10] [msxxserv.c 3169]
Regards,
Olga. -
Firefox OS 1.3 simulator doesn't work.(runs but shows a black screen)
I am learning app development for firefox os.I installed a simulator for version 1.3 at my work place and it was working fine.I could write simple web app and run on the simulator.But when i installed the emulator on my home pc It was installed successfully but then was showing just a black screen.I am sure i have installed the correct version.I am using firefox 30.The simulator does show up in the app manager but when i start ,it just show a black screen.I don't understand why this is happening.I tried installing other versions like 1.4,but same thing happens for all the simulator addons.what could be the problem?
Hi prathamesh_13,
Thank you for your question. There should not be a black screen, and is sounds like you have already reinstalled the simulator on the second computer.
If the simulator does not show up on the app manager it may not have been properly installed.
Can you enable verbose logging:
You can see messages logged from your app in the Web Console, which you can attach to your app using the App Manager. If you want to catch early messages happening during app startup, before the console gets connected and working, you can enable verbose logging in the Simulator.
Visit about:config and create a new preference. The preference name is different for each version of the Simulator:
[email protected] for Firefox OS 1.3
[email protected] for Firefox OS 1.2
Set it to the string value "all", and disable, then reenable, the add-on in the Add-on Manager. Now extra messages about the Simulator's operation will appear in the Browser Console.
Reference: [https://developer.mozilla.org/en-US/docs/Tools/Firefox_OS_Simulator MDN doc for Firefox OS Simulator] -
Customized chrome works when running, but not when compiling ?
Dear webmates :
I have customized my chrome in Flex : it does not show the window container (transparent) , etc... and works great when I run it... however, when I compile it in order to have the standalone file... it simply works displaying again the window ! what do I have to do ? thanks in advance...Hello,
When you built your installer, did you include all of the dynamically called VIs? The application builder does not know about dynamically called VIs unless you specifically tell it about them (which of course makes sense, as they are dynamic). Other potential issues might be the change in behavior of the Current VI's Path constant, or a lack of other dynamically called objects such as dlls or drivers. Make sure that the dynamically called VIs have been properly installed on your target computer in the desired paths. If that doesn't solve the problem then make sure that your application has good error handling capabilities (i.e. handles all error wires and eventually passes them to an error handler) so that you can use the error to determine which files are missing or in the wrong location.
Regards,
Ryan K. -
Disp+work.exe Running but not connected to Message server
Dear All,
I install SAP NetWeaver 7.0 ABAP Trial Version on my PC (Win XP SP2, Proc 2.4 GHZ, RAM 1 GB) installation success, but when I start the application server through mmc the dispatcher failed to start.
I've tried to restart my machine, the problem still there.....
Please help me to fix this problem...
Thanks.
EndiI got the same error, anyone can help ???
-
Dvd works in player but not in mac dvd viewer...
Ok, so let me know if this has already been discussed...
I just created a movie, exported to idvd, set everything up, and burned it. It opens and plays just fine in my dvd player, but when I put it back into my iMac G5 or into my IBook, it won't open the menu or play the movie. It says it is not supported...any ideas?Just kidding everyone...I figured it out...THanks!
-
Running a procedure which has parameters using dbms_job.submit
I have a procedure which accepts some parameter and i need to schedule this using dbms_job in another procedure. My intention is to execute test_proc without waiting for test_asynch_proc
CREATE or REPLACE PROCEDURE test_asynch_proc(p_1 in number) as
i number;
BEGIN
for i in 1.. 100000
loop
insert into item_p values (dbms_random.random, p_1,sysdate);
end loop;
commit;
END;
I have another procedure which does an asynchronous call to this procedure by scheduling this procedure.
create or replace procedure test_proc is
jobno binary_integer;
--x number :=100;
begin
insert into test_table values(1,sysdate);
dbms_job.submit(job => jobNo,
what=>'test_asynch_proc(''100'');',
next_date=>sysdate );
commit;
dbms_output.put_line ('insert complete at '|| to_char(sysdate, 'DD-MON-YYYY HH24:MI:SS'));
end;
but here instead of
what=>'test_asynch_proc(''100'');'
i need to give a variable. How can i do that?
Thanks,
mvThere is another possibility where job parameters are stored in a parameter table with the job number that can be retrieved by the job code:
bas002>
bas002> select * from v$version;
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Prod
PL/SQL Release 10.2.0.2.0 - Production
CORE 10.2.0.2.0 Production
TNS for 32-bit Windows: Version 10.2.0.2.0 - Production
NLSRTL Version 10.2.0.2.0 - Production
bas002>
bas002> drop table t;
Table dropped.
bas002> drop table p;
Table dropped.
bas002>
bas002> create table t(x int,d date);
Table created.
bas002> create table p(jn int, jp int);
Table created.
bas002>
bas002>
bas002> create or replace procedure test_asynch_proc as
2 begin
3 insert into t select jp, (select sysdate from dual)
4 from p where jn = sys_context('USERENV','BG_JOB_ID');
5 commit;
6 end;
7 /
Procedure created.
bas002> show errors
No errors.
bas002>
bas002> create or replace procedure test_proc (tp number) is
2 jobno binary_integer;
3 begin
4 dbms_job.submit(
5 job => jobno,
6 what=>'test_asynch_proc;',
7 next_date=>sysdate );
8 insert into p values(jobno, tp);
9 commit;
10 end;
11 /
Procedure created.
bas002> show errors
No errors.
bas002>
bas002> alter session set nls_date_format='DD-MON-YYYY HH24:MI:SS';
Session altered.
bas002> select sysdate from dual;
SYSDATE
28-FEB-2008 10:40:13
bas002>
bas002> exec test_proc(1);dbms_lock.sleep(5);
PL/SQL procedure successfully completed.
bas002> select * from t;
X D
1 28-FEB-2008 10:40:17
bas002> exec test_proc(2);dbms_lock.sleep(5);
PL/SQL procedure successfully completed.
bas002> select * from t;
X D
1 28-FEB-2008 10:40:17
2 28-FEB-2008 10:40:22Message was edited by:
Pierre Forstmann
Message was edited by:
Pierre Forstmann -
Hi Friends,
I need to run a standard program(report) in background immediately from my custom program(report) and I need to pick up the output report(standard) table values back to my custom program.
Is it possible? if so Can you pls suggest the solution for the same
I am trying with submit with job statement, but it is only scheduling the job and it is not running immediately. If it runs immediately also I need to pick the values of standard program to my custom program
Thanks in advance
pavanHi Pavan,
In this scenario where you want to run the standard report in background from the custom report,the only solution is to schedule the job(any method) with the custom report as the starting point and then use Submit with the values in it and then Use Return along wth it.
OR else use Exporting List to Memory with Submit and Return.
And then,use the Function Module "Importing From Memory" and pass the data from the standard report to the internal table.
In case you have any further clarifications,do let me know.
Regards,
Puneet Jhari. -
Dbms_job.submit - job is restarting but - not throwing any exceptions
We have a job that is a simple loop that looks for (wakes up by) looking for messages coming in using DBMS_PIPE.
The job has been restarting arbitrarily but - we're not seeing messages generated via any of the associated exception handlers.
No idea why it's restarting when it fails.... currently - I'm just looking for a way to have the dbms_job.submit call NOT automatically restart if it has issues.
Currently just calling as such:
DBMS_JOB.submit(jobno, 'pkg_package.listen;');
Running on 10.2.0.4.0
Any insight is appreciated.
Is there a way to prevent it from automatically restarting and - is there something I should be looking for specifically around dbms_job when it comes to the exception handling in the packages/procedures it's running??
Thanks.We generate a log record in a table using an autonomous procedure when an exception is raised.
Where I'm seeing the log records stating an issue with the job - I'm also seeing the tracefile / alerts being generated.
When the job starts - we log a record stating it's started....
In many instances - I'm seeing it log a start but - there's no corresponding trace file (i.e. - it wasn't manually started - it was processing and - then - without exception 'died' - didn't generate an error but - just started up again).
I've no idea what's going on here. I've validated that everywhere through the underlying package the job is running that the exceptions are being logged. Yet - it's arbitrarily starting up again on some occassions (and - I can't seem to find any general commonality around when this is happening or - what would be causing it).
So - I'm thinking this is an issue with the DBMS_JOB or - something else funky going on....
As an FYI - This job is simply a loop that waits to receive a message on DBMS_PIPE that then fires off a package procedure when it receives the message.
In the interim - to alleviate data issues as a result of it processing the same data twice - I'm trying to prevent it from auto restarting... is there a way to do this? -
Scheduling job using DBMS_JOB.SUBMIT()
Hi people I hav esubmitted a job using DBMS_JOB.SUBMIT() package.I have set the time it should run after 5 minutes from the time i created.but now my question is how do we know the submitted job has been executed within specified interval?.am using oracle 9i.please suggest me.
Regards
VIDSYou should refer to DBA_JOBS and DBA_JOBS_RUNNING views to get information about your jobs
Please refer to this address to get more information about these views
http://pandazen.wordpress.com/2007/12/19/oracle-job-to-be-continued/
Kamran Agayev A. (10g OCP)
http://kamranagayev.wordpress.com -
Dbms_job - prevent automatic re-run of a one-time background job.
We have a job which dynamically spawns 5 background processes, each take roughly 2 hours to run (2 hours total, 10 hours if ran synchronous).
sys.dbms_job.submit(job => vJob2,
what => 'myProc;' );
COMMIT;
Sometimes in development there is such a huge load that some of the 5 background processes will receive a snapshot too old error. DBMS_JOB automatically re-starts the same job (vJob2) 16 times, but I don't want it to. I try to manually set the job to "broken" but the job number can no longer be seen (even though it is in the job queue) I get the error:
ORA-23421 Job number X is not a job in the job queue
First question, is there an init param that I can lower the value "16" to some lower number?
Second question, once I'm caught in this situation where I know the current job running is going to fail, how do I prevent it from automatically restarting yet again?
What I have tried:
Alter the job queue to 0, kill the sessions (whew! Nothing is running now, good!).
then try to set broken to "TRUE", but I get the annoying ORA-23421 because, well I don't know why. So when I put the job queue back to 4, off they start again.
Tried dropping the jobs, get same ORA-23421 message even though I can select those job numbers in a query and I can see them in my IDE interface.
Also, I am running as the user who submitted the jobs, so there is no permission issue here (e.g. submitted as user A, trying to set to broken or drop the job as person B).
Our Oracle RDBMS is 9.2.0.6 AIX.
Message was edited by:
johnsokI found this on asktom, which will prevent a DBMS_JOB proc/func/package from automatically re-starting. The basic premise is that whatever you are executing in the "what" command must not be led to think an error occurred even if it did.
Luckily in the following example, we already handled exceptions in the "myProc" code to capture errors in a log table, so this approach will work for us:
sys.dbms_job.submit(job => vJob2,
what => 'begin myProc; exception when others then null; end;' );
COMMIT;
I would still love to be able control the arbitrary number "16" though. Oh well.
--Kate -
Is this the correct syntax to submit a job using DBMS_JOB.SUBMIT?
Hello,
Is this the correct syntax to submit a job?
DECLARE
v_job_number NUMBER;
v_job_command VARCHAR2(1000) := 'PREPARE_ORACLE_TEXT_SEARCH;';
v_interval VARCHAR2(1000) := 'trunc(SYSDATE)+1+7/24';
BEGIN
DBMS_JOB.SUBMIT(v_job_number, v_job_command, sysdate, v_interval, false);
COMMIT;
END;
Thanks
DougDECLARE
v_job_number NUMBER;
v_job_command VARCHAR2(1000) := 'BEGIN
PREPARE_ORACLE_TEXT_SEARCH; END;';
v_interval VARCHAR2(1000) :=
'trunc(SYSDATE)+1+7/24';
BEGIN
DBMS_JOB.SUBMIT(v_job_number, v_job_command, sysdate,
v_interval, false);
COMMIT;
END;
About your error:
PLS-00201: identifier 'PREPARE_ORACLE_TEXT_SEARCH'
must be declared
ORA-06550: line 1, column 96:
PL/SQL: Statement ignored
The problem is that the job cannot find the procedure
(maybe own by an other user). The user who run the
job is not the same as the owner of the package.
Bye, AronYou forget the semicolon after END.
But we don't need here begin - end Block.
So it's OK.
v_job_command VARCHAR2(1000) := 'PREPARE_ORACLE_TEXT_SEARCH;'[b];
As you right mentioned, it is probably problem with owner or typo in the name of procedure.
Regards
Dmytro Dekhtyaryuk
Message was edited by:
dekhtyar
Maybe you are looking for
-
Creating a custom view - define NavBar ID
Hi Guys, Well im new to all this but like ive got some preliminary knowledge. The problem is i started off with the cookbook but somehow got blocked. I wanted to create my own views. As far as ViewSet and ViewAreas and Views are concerned i got throu
-
How to put values in a HashMap dynamically using a ArrayList as 'value'
i have to generate different maps dynamically by passing arraylist (which is also dinamically increasing) in the value. i want to use : List myList=new ArrayList(); for(..........){ Map mymap=new HashMap(); myMap.put(key, myList.add(objectBean)); ===
-
Duplicate Payment for Skype Number?
I subscribed for skype online number on 10/31/2014 . You charged my account on 11/03/2014 in the amount of $30.48. On the 12/31/2014 you charged my account again for $30.00 for the same number again. I called my bank that you are charging me twice fo
-
Using FindChangeByList Javascript
I read the excellent article in Nov 08 issue of InDesign Magazine on using FindChangeByList. I am publishing stories on the card game Bridge which uses symbols for Hearts, Spades, Diamonds, and Clubs. I would like to use a script that replaces easily
-
I was running Lightroom 3.6 with the OS Windows XP (Sp3). The whole system crashed, I am unable to recover the serial number. I then upgraded my OS to Windows 7 (x64) and down loaded Lightroom 4.4, I wanted to buy a licence so I then upgraded to Ligh