Problem with a job

DECLARE
X NUMBER;
BEGIN
SYS.DBMS_JOB.SUBMIT
( job => X
,what => 'create table imad (test1 number(3,2),test2 varchar2(20));'
,next_date => to_date('12/07/2006 11:26:34','dd/mm/yyyy hh24:mi:ss')
,interval => 'SYSDATE+30/1440 '
,no_parse => TRUE
END;
and when i execute the job it gives me the error message:
ORA-12011: execution of 1 jobs failed
ORA-06512: at "SYS.DBMS_IJOB", line 406
ORA-06512: at "SYS.DBMS_JOB", line 270
ORA-06512: at line 1
i dont understand ???

Not the best of ideas to create tables dynamically in Oracle - or any database.
One example - stored proc using that table becomes invalidated when you drop that table. And stays invalidated even after the table has been added again. The code needs to be recompiled. Another example - indexes added to optimise access to the table. Drop and create the table dynamically, you need to do the same for the indexes. But what happens when someone adds a new index that is not hardcoded into the create index code?
Dealing with permanent objects in a database as dynamic objects (to be created and dropped at whim) is simply an ugly and messy "solution".
Permanent objects are not intended to be used this way - that is why there features like temporary tables, name value contexts, etc. Or for "semi-permanent" objects features like partitioning (e.g. dealing with tables containing a sliding window period of data).
It is important to use the right tool for the job to create a performing and scalable solution - it is seldom that dynamically creating and dropping tables are part of such a solution.

Similar Messages

  • SAP BW : Problem with precalculation job on WebTemplate depending on user

    Hi experts,
    We have a problem with the precalculation job on WebTemplate. When we schedule this job with a specific user, the job run normally and precalculation is done on step 3 :
    Step 003 started (program RSRA_JOB, variant , user ID E0126831)
    Start package ZBWP_SCHEDULE_TEMPLATE                          
    - Start setting ZBWP_WAD_001 with variant  -                  
    Precalculation: initialization started                        
    Precalculation: processing started                            
    Precalculate data (fill DataStore)                            
    Processing data provider DATAPROVIDER_1, query ZBWP_IS01_001  
    Processing data provider DATAPROVIDER_10, query ZBWPM_016     
    Processing data provider DATAPROVIDER_11, query ZBWPM_016     
    But when we change the user to a technical user (like BATCH or ALEREMOTE which have the profile SAP ALL ), the job don't do any precalculation in step 3 :
    Step 003 started (program RSRA_JOB, variant , user ID ALEREMOTE) 
    Start package ZBWP_SCHEDULE_TEMPLATE                             
    - Start setting ZBWP_WAD_001 with variant  -                     
    Implementing settings finished
    Did you have an idea for this problem ?
    Thanks in advance for your response.
    Regards,
    Mathieu

    Hi,
    Try to trace the log files in RSRD_LOG and also check files in C:TEMP.The precal server trace files will be stored in the subdirectory of C:TEMPBWAnalyzer .
    for more information look in belwo blog
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30e3d697-4ca0-2c10-4b81-c474b1490064?quicklink=index&overridelayout=true
    Thanks

  • The problem with Complex Job Manager in Business Connector.

    Hi,
    I have a problem with the service "Complex Job Manager" in Business Connector.
    Sometimes this service hangs and a minus value (such as -83452 sec) appears in the column "Next run".
    What can I improve?
    I have BC ver. 4.7 with CoreFix 9, Java ver. 1.3.1 (46.0), system AIX.
    Please help me.
    Thanks,
    Robert

    Sorry, Raja.
    I saw many questions about Business Connector in this category (Process Integration) and I thought that is a right place for my question.
    In your opinion, where is a better place for my question?
    Regards,
    Robert

  • Problem with database job

    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.

  • Problem with execute job's in schedule

    Hi
    I have 88 job in workspace shedule, and a need to run them, but when I run together, I get the following problem with more than half of them:
    "ERROR: Internal error.BIService could not be acquired! Submitting job Tasa de Asignacion to Event Service for Retry Processing. {3}"
    I was thinking of separating, but I do not know when it ends as a block and make another start.
    is possible to do this?

    this error message shows that the jobs are failing and again put for retrying in the queue.
    We can set a job limit which will ensure that only some number of job will run....I can give you further details if you can specify the version and also the error which is causing the job to fail

  • Problems with scan jobs Forefront protection 2010 for exchange server administrator console

    Dears,
    I have the following problem with the
    CAS server:
    How do I fix it?
    thanks for your reply
    Edwin Duran Ospina

    Hi,
    FPE will now post a warning if any items are present in the Undeliverable archive folder. You could remove the stuck email from "%Program Files (x86)%\ Microsoft Forefront Protection for Exchange Server\Data\Archive\Undeliverable".
    For more information: http://support.microsoft.com/kb/2420647
    Best Regards,
    Joyce
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Problem with Backgrounf Jobs in RAR 5.3

    Hi All,
    I Scheduled Background Jobs in RAR 5.3 ,But the jobs status showing from past 7 days as " Running " Please help me regarding this issue.its very urgent ,because of this problem My SOD report delayed for this month.
    Every month it is taking 2 to 3 days to complete the jobs, But this time it is taking 7 day ,so i terminate the jobs and asked Basis team to  restart the bg job service to stop the jobs of RAR
    Previous months we are using same verient ,But at that time RAR 5.3 with SP13 and 2 threads,Now they changed as per below detals.
    I am using RAR 5.3 SP 15 with 4 threads.
    Below is the Job Log Dispay(unable to past complete Log)
    =======================
    Nov 8, 2011 12:14:46 AM com.virsa.cc.common.util.ExceptionUtil logError
    SEVERE: null
    Nov 8, 2011 12:14:58 AM com.virsa.cc.xsys.bg.BatchRiskAnalysis getBAPIRoleData
    INFO: -- Last Run Date is 2011-11-07
    Nov 8, 2011 12:14:58 AM com.virsa.cc.xsys.bg.BatchRiskAnalysis getBAPIRoleData
    INFO: -- Current Date is 2011-11-08
    Nov 8, 2011 12:14:58 AM com.virsa.cc.common.util.ExceptionUtil logError
    SEVERE: null
    java.lang.NullPointerException
         Risk Analysis Time: Started @:Tue Nov 08 04:30:36 UTC 2011
    performActPermAnalysis
    INFO: Detailed Analysis Time:
    Risk Analysis Time: Started @:Tue Nov 08 04:30:36 UTC 2011
    Rule Load Time: Started @:Tue Nov 08 04:30:36 UTC 2011
    Rule Load Time:14millisec
    Org Rule Loop Time: Started @:Tue Nov 08 04:30:36 UTC 2011
    Rule Loop Time: Started @:Tue Nov 08 04:30:36 UTC 2011
    Rule Loop Time:5303millisec
    Org Rule Loop Time:5303millisec
    Risk Analysis Time:5481millisec
    Nov 8, 2011 4:30:41 AM com.virsa.cc.xsys.riskanalysis.AnalysisEngine riskAnalysis
    INFO: End Analysis Engine->Risk Analysis .....  memory usage: free=2024M, total=6144M
    Nov 8, 2011 4:30:42 AM com.virsa.cc.common.RiskAnalysisReport render
    INFO: RiskAnalysisReport render: memory changed=0M,free=2020M, total=6144M
    Please help me regarding this issue.
    thanks in advance,
    suresh kumar
    Edited by: K S KUMAR on Nov 8, 2011 6:36 AM

    Hi  Ashish,
    My Background Job  is  Adhoc , This is not the first time  doing ,every month i am doing this activity for SOD report (13 BG Jobs)and other reports,last month they updated SP13 to SP15.Now i  am facing this issue.once BG Job Service restarted all the jobs running properly ,Why like that.i need root cause for this.
    please help me regarding this.
    thanks,
    suresh kumar

  • Problems with background job

    Hi,
    I have problems when creating a job that is supposed to be run once in background. I use the common steps as described below. My problem is that the report is executed twice.
    - First it is executed synchronously when the job is created
    - Then it is executed in the normal job step as I want it to do
    I don't want it to be executed the first time because it creates data!!!
    Code:
    CALL FUNCTION 'JOB_OPEN'
         EXPORTING
              jobname  = w_jobid
         IMPORTING
              jobcount = w_jobnr
              sdlstrtdt = sy-datum
              sdlstrttm = sy-uzeit.
    SUBMIT (p_prog)
    WITH p_idocnr = p_idocno
               USER            p_user
               VIA   JOB       w_jobid
                     NUMBER  w_jobnr
                     AND       RETURN.
    CALL FUNCTION 'JOB_CLOSE'
         EXPORTING
              jobcount         = w_jobnr
              jobname          = w_jobid
              strtimmed        = 'X'
         IMPORTING
              job_was_released = w_jobrel.
    Does anyone have a clue of what I should do to prevent this?
    //  Regards  Hans

    Hi again,
    1. U are right.
    2. It will happen if we use SUBMIT.
    3. As per the help documentation,
        it will run the program in separate session,
       ( as soon as submit statement comes)
    4. and run the INITIALIZATION event.
    The VIA JOB addition also loads the program accessed in a separate internal mode when the SUBMIT statement is executed and the system performs all the steps specified before START-OF-SELECTION. This means the events LOAD-OF-PROGRAM and INITIALIZATION are triggered and selection screen processing is performed. If the selection screen is not processed in the background when VIA SELECTION-SCREEN is specified, the user of the calling program can eidit it and schedule the program accessed in the background request using the function Place in Job. If the user cancels selection screen processing, the program is not scheduled in the background job. In both cases, execution of the program executed is completed after selection screen processing and the system returns to the calling program due to the AND RETURN statement.
    regards,
    amit m.

  • Problem with background job using SUBMIT under different user

    Hi All,
    I am submitting a background job under different user name. I am submitting this job by using JOB_OPEN , SUBMIT report and JOB_CLOSE. But submit statement is returning sy-subrc 8, becuase of this the job_close is failed. Can you please help me to solve this problem.
    Thanks in advance.
    Tjgupta

    Hi,
    The user is having all authorizations. is there any difference with user types?
    This user is having  user type " as communication data".
    Thanks,
    Tjgupta

  • Print job problems with AEBS - jobs don't print until another job is sent

    I have been experiencing an anomaly with my printer not printing the last page of multipage documents since getting our AEBS with Gigabit Ethernet. Before getting the AEBSs, I had two Linksys routers that were performing well, but would crash regularly. I recently purchased two AEBS router to replace my two Linksys routers. I have the latest AEBS, and an older AEBS M8799LL/A sometimes referred to as the UFO or Crow’s Nest. My printer is a networkable HP Color LaserJet 2550n.
    When the Apple Tech Support person could not get this printer to work when attached to an Ethernet port, they suggested that I attach it to the USB port. I finally got it to work with our Macs, and Windows XP running in Parallels using Bonjour. What we noticed right away was that the printer was taking longer to respond than when we were using it as a network printer under our previous Linksys network. Another thing that happened was that frequently a print job would not appear to have been sent (spooled?) to the printer so we would issue the print command after waiting a couple of minutes and end up with two copies of what we were printing. Yesterday I was printing a basic 5 page text document from Pages and the last page did not print. So I created a document with just a ‘.’ and sent it to the printer. Out came the last page of my five page Pages document and the document with just a ‘.’. The AEBS does appear to be somewhat more stable than our Linksys equipment, but getting printer to work properly has been very frustrating.
    Is anyone aware of what might be causing this problem. At first I was blaming Windows, but it is happening very frequently when printing basic documents in Mac OS X 10.4-Tiger. Any help would be very much appreciated.

    Ah the self healing properties of OSX. This problem appears to have fixed itself.

  • Problem with the job "JOB SAP_COLLECTOR_FOR_NONE_R3_STAT"

    Hi All,
    The "JOB SAP_COLLECTOR_FOR_NONE_R3_STAT" is listed as one of the standard SAP housekeeping jobs. When we run it in our systems, it finishes without an error in SM37 but we see the following error in the application log SLG1 :
    Determination of component from SCR (CCMS system component repository) failed :
    The system cannot determine the components for which the component collector is to be started. The cause is missing data in the CCMS System Component Repository (SCR). Either the SCR has not been filled or it contains no information about the components that write statistics records.
    It says it requires user CMSREG to be created and background method dispatching of the CCMS Monitoring architecture must be activated in RZ21 > Technical Infrastructure
    Do you know what benefits this job has? Does it make sense if we have Solution Manager? For Accounts where it is done,  how much work is involved in setting up the SCR?
    Please help in solving this issue.
    Thanks.

    Hi Giridhar,
    A user with specific, greatly restricted authorizations is required to monitor remote systems for the monitoring architecture using CCMS agents. We recommend that you create and use the user CSMREG for this purpose. CSMREG is also used to register a System Component Repository (SCR) with a central repository.
    The CSMREG user must be created in all monitored systems; it is not created automatically.
    Procedure
           1.  Choose CCMS Configuration Alert Monitor, or call transaction RZ21.
           2.  Choose Technical Infrastructure Configure Central System Create CSMREG User.
           3   Enter any password for this user. You require it, among other things, for the installation and registration of CCMS agents.
    Hope this helps.,
    Thanks,
    Naga

  • Problem with background job schedule

    Hi friends,
    How to schedule more than one data loading jobs in backround??
    When i try to schedule the second job,the first scheduled job is getting overwritten,and only this job is active.
    I tried in infopack,scheduler...
    How to overcome this???
    Regards
    sudhakar

    Hello Ragu,
    How r u ?
    Use Process Chains for this multiple Job Scheduling.
    I think u r teying to schedule the same InfoPackage !
    Could u elobrate ur issue ?
    Best Regards....
    Sankar Kumar
    +91 98403 47141

  • Problem with Tomcat 6

    Hi guys,
    I am with a very strange problem with my job here.
    We had a server working with Tomcat 5 and it didn't have problem, but wanted to changed to Tomcat 6.
    So.. we changed and it ran normal and well.
    The problem is when we stress the server with one or more big queries, execptions is showed that didn't show with Tomcat 5:
    java.lang.Exception: [Microsoft][SQLServer 2000 Driver for JDBC]Object has been closed
    Using SQL Server 2000
    java.lang.Exception: The connection is closed.
    Using SQL Server 2005
    java.lang.Exception: I/O Error: socket closed.
    Using SQL Server 2005 with jTDS driver
    It happens with Oracle too.
    Can anybody help me?
    Thanks!

    hi i'm having a similar problem launching a servlet in eclipse. I did the above changes and still nothing:
    instead i keep getting :
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Wrapper cannot find servlet class DataServlet or a class it depends on

  • Problem with Cron

    Hi all,
    I know cron has all but been replaced by launchd and periodic, but for various reasons I still need to use it, and it's not working for me.
    I'm running 10.4.8 server, and Cron jobs won't run. I've got a file called 'root' located in /var/cron/tabs/ with ownership of root:wheel and permissions of 600. I'm trying to run the job every 15 minutes. Output of 'sudo crontab -u root -l' is:
    */15 * * * /path/to/my/command
    If I copy and paste the command part of the line above into terminal, preceded by 'sudo ' the command runs fine, so I know the syntax is OK. But cron doesn't run the job, and the system.log and console.log are totally silent.
    I've tried rebooting the server, and I've checked that the command is executable, but can't think of anything else.
    Points promised to any solvers! TIA.
      Mac OS X (10.4.8)  

    Assuming that Camelot's suggestions all worked out, the most prevelant problem with cron jobs, in my experience, is that cron doesn't use the same environment as a user session. This usually shows up in differences in the PATH variable. Everyone, once in their life should set up a cron job to run a few minutes into the future to run:
    /usr/bin/printenv > /Users/me/Desktop/printenv.txt
    If you want to cut through it quicker:
    echo $PATH
    copy the output of that command and add a line to your script (assuming it's a bash script):
    export PATH="<paste here>"
    keep the quotes. See if that does it.
    Roger

  • Problem with Crystal Report Job Server Destinations

    I am using Crystal Reports XI Server and I am having problems with scheduling.  I believe that the problem is that I have not enabled any destinations under the Crystal Reports Job Server.  The following is an observation list:
    -Enabled and set up all destinations for other servers, such as the Destination Server.
    -Have been able to use Infoview to directly email, inbox, and file save reports in different formats (I believe the Destination Server controls this, right?)
    -All servers are enabled in the Central Configuration Manager
    -Have been able to go into the Crystal Reports Job Server within the CMC, but I DO NOT FIND ANY destinations to enable (why is this?)
    -Have not been able to schedule an instance of any report (neither email, nor inbox, nor file, ...nothing)
    Could somebody please help me with this?  Is this a limitation to the Crystal Reports XI Server vs the Enterprise edition?  Is there something else I am missing?  I have never been able to successfully schedule a report.

    Thank you for the input, but I have not yet solved my problem.  Please allow me to provide some additional information which may give more hints:
    I have Crystal Reports XI Server R2 installed as 5 named user license (version that comes with developer)
    The following servers are enabled in CMC (which is all of them)
    -Input.DomainNameSQL
    -DomainNameSQL.cacheserver
    -DomainNameSQL.cms
    -DomainNameSQL.destinationjobserver (has all destinations enabled)
    -DomainNameSQL.eventserver
    -DomainNameSQL.ListofValuesJobServer (no destination tab)
    -DomainNameSQL.pageserver
    -DomainNameSQL.programjobserver (has all destinations enabled)
    -DomainNameSQL.RAS
    -DomainNameSQL.reportjobserver (has destinations tab, but there are no destination entries to enable! Object type is: CrystalEnterprise.Report and detail: IDL:omg.org/CORBA/UserException:1.0
    . Details: %2.'
    These are the ONLY two event IDs that appear after I schedule the report instance.  No other events occur.
    Are there any other logs that I can check?  How do I look up what event ID 45387 and 45385 are?
    Thanks!

Maybe you are looking for

  • Silent Installation of Oracle 10g on Windows XP

    Hi, I was trying out "SILENT INSTALLATION OF ORACLE 10g ON WINDOWS XP", where I was getting the following error. Can you please help me out. COMMAND GIVEN : D:\database>d:/disk1/setup.exe -responsefile d:/disk1/response/custom.rsp -silent -nowelcome

  • Some Swedish characters are mis-interpreted by BI publisher.

    Hi Team, This is regarding generating reports in PDF format, where user language is other than English. Suppose if language is chosen as Arabic ,In generated reports some characters have been replaced by '?' in PDF. Prior to PDF conversion, xml file

  • Alternative for UNION

    Hi I have to simple sets of query Q1 and Q2, both of them have the SUM function used, they work just fine separately, but we want the result in 1 single query. The problem is that Q1 has a master/detail table relation in the join so whenever we join

  • TS3694 what is 1015 error when updating an iPhone?

    what does error 1015 means? I'm updating my iphone when this error came up. please help. thanks

  • RE: Windows 8 consumer preview vs. DVD driver in Boot Camp

    Hello to the Apple Community This is my first time accessing the support forums.  I am not a avid computer user and using apple OS is very new to me.  I opted to partition my apple drive to run windows, something that I am more familiar with.  I firs