Executing a database job in DB13 terminates
Hello Gurus
Details of The Server
Oracle - 10.2.0.2.0
SAP Solution Manager 4.0
O/S - Windows NT - 5.2
In Tcode - DB13
Our scheduled jobs ( updatestats,checkdb,verifydb) has been cancelled since two days.
I am attaching the log from one of failed jobs i.e - updatestats
Job started
Step 001 started (program RSDBAJOB, variant &0000000000014, user ID BCBASELL)
Execute logical command BRCONNECT On host bassolp1
Parameters: -u / -jid STATS20070326050000 -c -f stats -t ALL
SXPG_COMMAND_EXECUTE failed for BRCONNECT - Reason: x_error
Job cancelled after system exception ERROR_MESSAGE
Please suggest the rectification
Thanks & Regards
Shishir Bajpai
you got a short dump, so, check in ST22 for the short dump and post the first 50 lines of it.
Similar Messages
-
What command will be executed when I schedule job via DB13
Hi all,
How do I get what command(full syntax) will be executed when I schedule jobs via DB13?
For example:
- Action: REORG of Tables in Tablespace(s)
- Tablespaces: "WI6#BTABD" is selected
- "Use Temporary Tablespaces" is selected
I think this is a really basic question...
Could you give me some advice?
Thanks in advance,
IkueHi Ikue,
yes, you won't see, what the 'REORG for all tablespaces is doing. But it's not really necessary. Its's simply always the same call
REORG TABLE <tabname> INDEX <primary key> ALLOW NO ACCESS
and optionally the addition USE <tempspace>, if you have selected this option in DB13. And it is called for each table that is located in the tablespace(s) which you have specified.
The 'REORG for set of tables' is quite new. It is available with Basis Support Package 7.0 SP12. Before there was only a job to Reorg a single table.
The REORG for flagged tables is a deprecated job.
If you want to know more about the various REORG jobs and when and how to use them, then you should look at note 431430
Best regards
Ralf -
Full Database Backup in DB13 for MS SQL Server databases
Hello,
We have some SAP systems using the MS SQL Server database. I want to know if it is possible to setup the Full Database Backup option in transaction DB13 to store the files in a hard disk space.
I already did this type of configuration in SAP systems in Oracle databases and for this I used the init<SID>.sap where we can put all the configuration, for instance the disk path where we want to save the backup files! But for MS SQL Server databases, in DB13, I don´t know how to do that, when I add the "Full Database Backup" option in DB13, this show me some options but only for tape, but I don´t want to store the backup files in tapes, I want to store/save the files on the server disk itself or else to an external disk but I don´t see where I can set this way of storage!
This is what you see in DB13 (when using a MS SQL Server database) in "Full Database Backup" and as you see I only have options for TAPE not for a disk or other type of storage! How can I do that? (if that is possible):
Can you help me please?
Kind regards,
samid raifHello Raja
Sorry for the delay of my answer! Many thanks for that tip, it helps a lot and it solve the last error/problem that I reported here, in fact, the problem was we had named the device with two words containing a space. So we removed that space from the backup device (in SQL management studio) with one word only and the job runs successfully without any errors!
It works in Development and Quality systems but in our Production system (AM1) the Full backup option in DB13 stopped with the following error, in fact the error is on verification of backup, it means that the Full backup finished with success, but when it does the backup verification, the job in DB13 stops with an error, the following one:
***************************** SQL Job information ******************************
Jobname: SAP CCMS Full DB Backup of AM1 [20140417103726-4-103726]
Type: TSQL
DB-Name: AM1
For Run: 20140417 10:37:26
**************************** Job history information *****************************
Stepname: CCMS-step 1
Command: declare @exeStmt nvarchar(2000) exec am1.sap_backup_databases @dbList=
"AM1",@r3Db="AM1",@bDev="fullprd",@expDays= 27,@jobName= "SAP CCMS Ful
l DB Backup of AM1 [20140417103726-4-103726]",@bkupChecksum="Y",@bkupT
ype="F",@nativeBkup="N",@exeDate = "20140417103726",@bkupSim = "N",@fo
rmat = 0,@init = 0,@bkupDb = "AM1",@unload = 0,@exeStmt = @exeStmt OUT
PUT
Status: (success)
Message: 3014
Severity: 0
Duration: 4 hours(s) 41 min(s) 22 sec(s)
Last msg: Executed as user: am1. Processed 7434328 pages for database 'AM1', fil
e 'A01DATA1' on file 1. [SQLSTATE 01000] (Message 4035) Processed 315
1504 pages for database 'AM1', file 'A01DATA2' on file 1. [SQLSTATE 01
000] (Message 4035) Processed 4574152 pages for database 'AM1', file
'A01DATA3' on file 1. [SQLSTATE 01000] (Message 4035) Processed 44363
92 pages for database 'AM1', file 'A01DATA4' on file 1. [SQLSTATE 0100
0] (Message 4035) Processed 25598 pages for database 'AM1', file 'A01
LOG1' on file 1. [SQLSTATE 01000] (Message 4035) BACKUP DATABASE succ
essfully processed 19621974 pages in 16881.638 seconds (9.521 MB/sec).
[SQLSTATE 01000] (Message 3014). The step succeeded.
<------------- End of Job Step History --------------->
Stepname: CCMS-step 2
Command: declare @exeStmt nvarchar(2000) exec am1.sap_verify_backups @nativeBku
p = "N",@bkupSim = "N",@bDev = "fullprd",@bkupChecksum = "Y",@exeDate
= "20140417103726",@unload = 1,@dbCnt =1,@exeStmt = @exeStmt OUTPUT
Status: (failure)
Message: 3201
Severity: 16
Duration: 0 hours(s) 8 min(s) 30 sec(s)
Last msg: Executed as user: am1. Cannot open backup device 'fullprd(\\10.0.0.45\
backupsap\prd\prdfullqua.bak)'. Operating system error 1265(error not
found). [SQLSTATE 42000] (Error 3201). The step failed.
<------------- End of Job Step History --------------->
**************************** Job history information *****************************
Can you help me please with this one!? Can you tell me why in verification it stops with that error?
Kind regards,
samid raif -
Good day.
I am trying to help our DBA figure out the problem with the database job that I created. It runs perfectly in the database which we use for development purposes. However, when we put the job in the production database, we encountered some problems.
The first problem we encountered was this: after the job executed at the scheduled time, the NEXT_DATE field for that job becomes 00/00/0000.
After our DBA tinkered with some parameters in the db config, the next problem we encountered was this: the job executed every minute even if the interval specified is for it to execute once a day, everyday.
We still have not resolved any of these problems. I am just doing a workaround, a manual one, just so we could proceed with our processing.
Btw, we are using Oracle8.
Thanks so much.Hello there.
This is the code I used to submit the job:
DBMS_JOB.ISUBMIT (1, 'my_storedproc;', trunc(SYSDATE)+(13.5/24), 'trunc(SYSDATE)+1+(13.5/24)', TRUE);
Using Toad, I got these parameters pertaining to db job:
job_queue_interval=60
job_queue_keep_connections=FALSE
job_queue_processes=8
Any feedback?
Thanks again. -
Running an Oracle Database Job as Administrator
I have created an Oracle Database Job that executes a batch script. This batch script is supposed to creates some text files. However the batch file doesn't create the text files unless you run it as an administrator. How do I set the Oracle job so that it executes the batch script as an administrator?
Try the usual DBA/ALL/USER prefixes for dictionary views:
SQL> desc dba_scheduler_credentials;
Name Null? Type
OWNER NOT NULL VARCHAR2(30)
CREDENTIAL_NAME NOT NULL VARCHAR2(30)
USERNAME NOT NULL VARCHAR2(64)
DATABASE_ROLE VARCHAR2(7)
WINDOWS_DOMAIN VARCHAR2(30)
COMMENTS VARCHAR2(240)
SQL> desc all_scheduler_credentials;
Name Null? Type
OWNER NOT NULL VARCHAR2(30)
CREDENTIAL_NAME NOT NULL VARCHAR2(30)
USERNAME NOT NULL VARCHAR2(64)
DATABASE_ROLE VARCHAR2(7)
WINDOWS_DOMAIN VARCHAR2(30)
COMMENTS VARCHAR2(240)
SQL> desc user_scheduler_credentials;
Name Null? Type
CREDENTIAL_NAME NOT NULL VARCHAR2(30)
USERNAME NOT NULL VARCHAR2(64)
DATABASE_ROLE VARCHAR2(7)
WINDOWS_DOMAIN VARCHAR2(30)
COMMENTS VARCHAR2(240)
SQL> -
[10g] database job and expdp!!
Hi, all.
I want to run the followings by using database job on a daily basis.
The database is 10.2.0.2.0
"expdp system/oracle schemas=nmsuser dumpfile=test.dmp logfile=expdp_test.log"
Is there anyone who could give me a hint or sample code?
Thanks and Regards.Dear seenshoo.
Thanks for your reply.
I issued the followings.
BEGIN
DBMS_SCHEDULER.CREATE_JOB(
job_name=>'TEST_EXPORT_JOB',
job_type=>'EXECUTABLE',
job_action=>'C:\oracle\product\10.2.0\admin\RAC\dpdump\expdp_nmsuser_daily.bat',
start_date=>SYSTIMESTAMP,
repeat_interval=>'freq=HOURLY; INTERVAL=1',
end_date=>NULL,
ENABLED=>TRUE,
comments=>'DAILY EXPORTING');
end;
Now, how can i excute it? I am reading manual, but do not know where it is.
Thanks and Regards. -
Could not schedule jobs from DB13
Hi Experts,
yesterday we have changed the file permission in /oracle/<SID>/102_64 mount point in our production system.
After changing i could not schedule any jobs from DB13 and i could not use <sidadm> user for taking the backup from sap.
Now i am taking the backup through OS and Archive log copying also OS level.
I have given the below command for changing the file permission.
chmod -R 777 /oracle/TPR/102_64
I think we changed the whole permission under the oracle/SID/102_64 mount point. its changing the full permission for Oracle related files.
How i can revoke the same?
Kindly advice.
Regards,
Sundar.CHi,
Please check you are able to run the backup from Brtools at os level.
If yes then check the permission of the files in the sapmnt/SID/exe as mentioned below.
-rwxr-xr-x 1 <SID>adm sapsys 9652136 brrecover
-rwxr-xr-x 1 <SID>adm sapsys 3403504 brrestore
-rwxr-xr-x 1 <SID>adm sapsys 12771456 brspace
-rwsrwxr-x 1 ora<SID> dba 4962288 brtools
-rwsrwxr-x 1 ora<SID> dba 8910816 brarchive
-rwsrwxr-x 1 ora<SID> dba 9282832 brbackup
-rwsrwxr-x 1 ora<SID> dba 12419824 brconnect
If you are not able to fire the backup from Brtools.
then you need to get the file system restored as you change the permission of all the files by doing the chmod -R.
or
you can compare the permission with another sap server of same database and same patch level and then change the permission manually of all the directoried and files.
did you stop the dtabase and then did the permission change if no then restart the server .it may be possible thet your database shall not come up.
thanks
Rishi Abrol -
Getting error while trying to execute a external job using dbms_scheduler
Hello,
I create a job using alpha account.
begin
dbms_scheduler.create_job(
job_name => 'jps_test_executable',
job_type => 'EXECUTABLE',
job_action => '/usr/bin/ksh',
number_of_arguments => 2
dbms_scheduler.set_job_argument_value (
job_name => 'jps_test_executable',
argument_position => 1,
argument_value => '/tmp/abc.sh'
and when I execute the job in the schema using alpha account it works fine.
BEGIN
DBMS_SCHEDULER.run_job (job_name => 'jps_test_executable',
use_current_session => FALSE);
END;
Works fine.
But if I try to execute the same job using some other account say beta in the same schema , I am getting error
ORA-27476 :”SMS.RUN_SMS_JOBS Does not exist ORA-06512 at “SYS.DBMS_ISCHED” line 2793 ORA-06512 :at “SYS.DBMS_SCHEDULER”,line 1794
even I give the fill qualifier, still I am getting the error.
BEGIN
DBMS_SCHEDULER.run_job (job_name => 'alpha.jps_test_executable',
use_current_session => FALSE);
END;
Any help will be appreciated.
Thank you,
RajIt's the expected behavior:
http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_sched.htm#CIHHBGGI
RUN_JOB requires that you be the owner of the job or have ALTER privileges on that job. You can also run a job if you have the CREATE ANY JOB privilege.So, you need to grant the required privilege:
aplha@orcl> grant alter on alpha.jps_test_executable to beta;HTH
Enrique
PS If your problem was solved consider marking the question as answered. -
Batch file not executing in BODS Job
Hi friends,
I have created a batch file to create a text file in a directory. I ran it manually and it worked fine i.e a txt file was created, However when I used the batch file in script in BODS job, It's not being executed.
The script being used is as follows ( I have tried both, Both worked manually but not in Job, the job ran successfully without desired output )
print(exec('C:\xxx\testdir.bat ','',0));
exec('C:\xxx\testdir.bat ','',8);
testdir.bat has the below txt code
cd C:\xxx\yyy dir *.xml /b > dir.txt
Thanks and Regards
AnilWhat have you changed between
However when I used the batch file in script in BODS job, It's not being executed
and
The Job was successfully executed but an empty dir.txt was created with no files. -
Every day I see new data in tables. A specific procedure is running every morning at 5 pm. I cannot find a database job in user_jobs and there is no job in dba_jobs. Yesterday I put a text coding to this procedure. Today I see the in a test-table. But the procedure is running automatically. I do not know what happens. Does anybody have an idea?
Yesterday I noticed that my car wouldn't start can anyone tell me why?
No operating system.
No version number.
Apparently no attempt to ask the DBA managing the system.
No information about where the procedure was put or what it did or why it was written or how you think it was supposed to be run.
This week we are already out of guesses. Please provide all relevant information. The above list is just the first couple of items I wrote down. It is not complete. -
"execute direct database request" option is not availavle in my OBIEE 11g
Hi All Experts,
In my OBIEE-11g there is no option available of "execute direct database request" in subject area pane.Please give the solution.
Thanks In AdvanceBy default, this privilege is only assigned to BI Administrator Role. I'm sure you are not under BI Administrator Role and that's the reason you can't find DDR option. Ask, you Administrator to provide your application role access to 'Execute Direct Database Analysis' & 'Edit Direct Database Analysis' under Manage Privileges > Answers.
Try using DDR very carefully...You shud understand its pros and cons -
Executing a Batch Job on Demand
Hi,
I need to execute a batch job which accepts data from flat files and then stage, validate, standardize and match the data and then produce an XML output for further processing. The volume of data will not be large as the flat files are produced via a GUI.
What would be the best way to enable this job to be called as required by the users ?
I can think of possibly
1) a very big real time job
2) a real time job containing a command line to execute the job
3) embedding the command line within the GUI (not sure if this is possible / practical)
Any pros and cons of these ideas or any other better ways much appreciated.
Thanks,
Eric.Hi Eric,
This does not require a real time job, just a normal batch job called frequently on-demand.
You could do this via:
1. Command Line in bat script or GUI (requires executables on client)
2. Call your Job via a Web Service (within GUI or app)
Option 1 (calling the Job Launcher) will require the executables to be installed on each client machine that calls the Job, whereas option 2 will eliminate any need for executables.
Richard -
Hi,
For BW we want to schedule a brconnect job for updating the statistics for the infocube. We can do this in the criontab but we prefer to do do this in DB13. Is there a way to create a custom job in DB13?
Thanks for the help
Regards, GlennHave you tried using the "Check and update optimizer statistics" option?...
As far as I'm aware you can't run customized jobs in DB13
Also, its perfectly ok to schedule them via a script on crontab
Regards
Juan -
Error executing Direct Database Requests through Administrator logon
Hi,
I am logged on through username: Administrator in BI Answer.
Still, unable to execute Direct Database Requests in OBIEE Answer.
I am getting the below error in Result tab:
Error generating view. You don't currently have the necessary privileges to execute Direct Database Requests.
Error Details
Error Codes: OAMP2OPY:Q4NU7XSN
Please suggest.
Regards,
DeebaPresentation Server Administrators were not having permission to execute data direct request.
I granted permission by the following change in setting in BI Answer:
Settings>Administration>Manage Privileges>Answers>Execute Direct Database Requests> Added Presentation Server Administrators.
Regards. -
Spool is Missing When a Report is Executed through a JOB
Hi,
I had a task in which I have to Pick the Session Log from SM35 and print it when a Report is executed .In the Report I Created a Session using the SUBMIT.I used Perfrom statemet from RSBDC_ANALYSE programe and picked the Log.I got the Exact result when I executed the Report in Foreground but when i tried to Execute in background I could not Get the SPOOL.
Report Is executed as a JOB and in that Report a Session will be Created and then it is Executed as a job I picked the Log from this Session.
Can any one please kindly help me out with this issue.
Thanks & Regard,
Prasad.WAIT UP TO 3 SECONDS.
DATA: Begin of PR_NEW,
POSITIONSINFO(60),
FEHLERTEXT(130),
end of PR_NEW.
DATA: wa_bseg TYPE BSEG,
wa_knb1 TYPE KNB1,
wa_kna1 TYPE KNA1,
wa_bkpf TYPE BKPF,
wa_xblnr(20) TYPE c.
SELECT * FROM APQI INTO CORRESPONDING FIELDS OF TABLE it_apqi
WHERE groupid = GROUP
AND credate = sy-datum.
READ TABLE it_apqi INDEX 1.
SELECT * FROM APQL INTO TABLE logtab_temse
WHERE qid = it_apqi-qid.
LOOP AT logtab_temse.
clear bdcld.
bdcld-temseid = logtab_temse-temseid.
bdcld-lmand = logtab_temse-mandant.
bdcld-edate = logtab_temse-credate.
bdcld-etime = logtab_temse-cretime.
bdcld-luser = logtab_temse-creator.
bdcld-grpn = logtab_temse-groupid.
bdcld-quid = logtab_temse-qid.
bdcld-local_host = logtab_temse-destsys(8).
APPEND bdcld.
ENDLOOP.
READ TABLE bdclm index 1.
perform read_bdc_log_plain IN PROGRAM RSBDC_ANALYSE
tables logtable
using bdcld-temseid bdcld-lmand.
LOOP AT logtable.
clear bdclm.
bdclm-indate = logtable-enterdate.
bdclm-intime = logtable-entertime.
bdclm+14(352) = logtable-logmessage.
if bdclm-mcnt > 0.
bdclm-mcnt = bdclm-mcnt - 1.
endif.
if bdclm-mnr = '312'.
append bdclm.
endif.
ENDLOOP.
LOOP AT bdclm.
CLEAR wa_bseg.
CLEAR wa_knb1.
CLEAR wa_kna1.
CLEAR wa_bkpf.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = bdclm-mpar+02(09)
IMPORTING
OUTPUT = wa_belnr.
SELECT SINGLE * FROM BSEG INTO wa_bseg
WHERE belnr = wa_belnr
AND bukrs = bdclm-mpar+13(04)
AND buzei = '001'
AND gjahr = sy-datum+0(4).
SELECT SINGLE * FROM BKPF INTO wa_bkpf
WHERE belnr = wa_belnr
AND bukrs = bdclm-mpar+13(04)
AND gjahr = sy-datum+0(4).
SELECT SINGLE * FROM KNB1 INTO wa_knb1
WHERE kunnr = wa_bseg-kunnr
AND bukrs = wa_bseg-bukrs.
SELECT SINGLE * FROM KNA1 INTO wa_kna1
WHERE kunnr = wa_bseg-kunnr.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
INPUT = wa_bseg-kunnr
IMPORTING
OUTPUT = wa_bseg-kunnr.
CONCATENATE 'Ref.doc.' wa_bkpf-xblnr INTO wa_xblnr SEPARATED BY space.
PR_NEW-POSITIONSINFO+000(010) = wa_bseg-belnr.
PR_NEW-POSITIONSINFO+011(19) = wa_xblnr.
PR_NEW-POSITIONSINFO+031(004) = wa_bseg-bukrs.
PR_NEW-POSITIONSINFO+036(006) = wa_bseg-kunnr.
PR_NEW-POSITIONSINFO+043(004) = wa_bseg-zterm.
PR_NEW-POSITIONSINFO+048(004) = wa_knb1-zterm.
IF wa_bseg-zterm NE wa_knb1-zterm.
CONCATENATE 'Terms of payment of Customer' wa_bseg-kunnr wa_kna1-mcod1
'was changed from' wa_knb1-zterm 'to' wa_bseg-zterm
INTO PR_NEW-FEHLERTEXT SEPARATED BY space.
WRITE: / PR_NEW-FEHLERTEXT.
WRITE: / PR_NEW-POSITIONSINFO.
WRITE: /.
ENDIF.
ENDLOOP.
Maybe you are looking for
-
I put the BT WiFi app on my iPad Mini and now I can't connect to the internet. Please help
I put the Bt WiFi app on my iPad Mini and now I can't connect to the internet. Please Help
-
Parsing Failed for Date in Prompt
Hi Folks, I am having Parsing Issue on "Key Date" Object in Universe. See the Error and Code below for your review Error: Parse Failed: Exception: DBD, The value entered is not valid. It must adhere to one of the following formats. YYYYMMD
-
Script for Indesign CS6 - Export Document to preset PDF
Does anyone know how to do this please?
-
How to transport deletion of bw objects?
I have transported an InfoCube to my test server. However, now I wish to delete that InfoCube. What is the proper way to delete a bw object in the QA environment? Do I delete the bw object in the development server, then somehow attach the deletio
-
G/L account 221002 cannot be used (please correct)
Dear All When I create Purchase order against cost center or against sale order,the G/L account is not assigned automatically in ME21N G/L account field.If I entered manually the following error occured,I cann't save the PO. Please help me. I posted