Run my plan in DB automatically

Hi,
Some table's field need be calculated at 0:00 in 1, 11, 21 every month, the result will be inserted into another table. I think only trigger is not enough. this should be plan or schedule? using oracle, how to do?
regards.
wu jianhua.

You can use the dbms_job package to schedule events at specific times. You can also use cron or the Windows scheduler to schedule a SQL*Plus script.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC

Similar Messages

  • Error running Execution plan for 'Project Analytics in PeopleSoft 9.0 '

    Hi ,
    I am running execution plan for Projects Peoplesoft 9.0 (BI Apps version 7.9.6)
    The issue is the file type data source went thru the database (data warehouse)
    the tasks that were completed SUCCESS were from the File source only from (SrcFiles).
    error as below.
    ANOMALY INFO::: Error while executing : INFORMATICA TASK:SDE_PSFT_90_Adaptor:SDE_PSFT_ExchangeRateDimension_Full:(Source : FULL Target : FULL)
    MESSAGE:::
    Irrecoverable Error
    Error while contacting Informatica server for getting workflow status for SDE_PSFT_ExchangeRateDimension_Full
    Error Code = 36331:Unknown reason for error code 36331
    Pmcmd output :
    one more info,if this helps
    values defined in the Parameters of the execution plan.
    1     DATASOURCE     ,DBConnection_OLAP     is 'DataWarehouse'
    1 DATASOURCE     ,DBConnection_OLTP     is 'PSFT_9_0_FINSCM'
    1     DATASOURCE     ,FlatFileConnection     is 'PSFT_9_0_FlatFile'
    The 'Relational Connection' In Informatica Repository Manager is currently pointing to only 'PSFT_9_0_FINSCM'
    & 'DataWarehouse'
    Please let me know what is wrong?
    Regards,
    JK

    Hi ,
    I created the PSFT connection in 'Applicaiton connection' of Repository manager.
    Also the Informatica server's tnsnames.ora should have entry for the source( PSFT database) and that of the datawarehouse.
    thanks,
    JK

  • What are the permissions needed to run explain plans via sql develeper?

    Are the permissions the same in Sql Developer to run explain plans like they are when you run them via sql*plus?

    Yes same permission because the explain plan does not tie to the tools.

  • Question about running explain plan

    I tried to run explain plan for a simple query, just to familiarize myself with how to do it. (I have another query that's taking a long time, and I've never run explain plan before). I got an error, googled it, and discovered I had to run the file at @%ORACLE_HOME%\rdbms\admin\utlxplan.sql first, to create the Plan_Table. Well, I tried to run that file and I get the error that I don't have priveleges on the tablespace. This really doesn't surprise me, as my access is read-only. Is there any way around this? I don't know a whole lot about databases, so forgive me if these following questions are dumb, but...
    1) is that file basically trying to create a table (called Plan_Table) within the schema I'm in (the only schema I have access to)?
    2) can my company's DBA run that file for me to create the Plan_Table?

    What version of the database are you on?
    You can get run-time execution plans from V$SQL_PLAN. You will need permission to read the V$ views. First find your query in V$SQL_PLAN (you can do a text search; putting a comment in like '--my_query' can help), then join to V$SQL_PLAN to find the query plan that that query used - join by the ADDRESS and HASH_VALUE columns.
    Otherwise, see if you can get insert/update/delete access on just that one table when your DBA creates it
    Good luck.

  • Running explain plan on a prepared statement

    I'm using IBatis to run queries against an Oracle database. IBatis runs the queries as prepared statements. I want to run explain plan on the prepared statements.
    I already have a shim -- a proxy java.sql.Connection object -- that takes the SQL used to create a prepared statement (e.g., "select a, b, c from table d where c = ?"), returns a proxy java.sql.PreparedStatement, and then on the PreparedStatement's execute(), interpolates the bound parameters into the SQL statement, and runs Explain Plan on that (e.g, preparedStatement.setInt(5) is called, followed by preparedStatement.execute(), which results in my proxy running "explain plan for select a, b, c from table d where c = 5;")
    Using Spring configuration, I can transparently insert the shim and get explain plans for all queries run through that Connection.
    The problem is this: I'm explaining the plan for the SQL with the bound parameters, not necessarily the SQL run for the prepared statement.
    Assume that in the above example, there exists an index on column c in table d, and that 5% of d's rows have the value 1, 15% have the value 2, and 80% have the value 3.
    For "select a, b, c from table d where c = 1", Oracle will use the index. But for "select a, b, c from table d where c = 3", Oracle will do a full table scan.
    What I want to know is what Oracle will do for "select a, b, c from table d where c = ?" when "?" is an unknown, arbitrary value subsequently bound to 1 or to 3.
    As I understand it, the query plan for a prepared statement is done once, when the prepared statement is created. At execute time (as I understand it), the query plan is not reformulated based on the actual bound values (though partition pruning is recalculated).
    So how can I find out what query plan is actually be used for prepred statement?
    Thanks.

    I already have a shim -- a proxy java.sql.Connection object -- that takes the SQL used to create a prepared statement I believe explain plan is part of PL/SQL rather than external to it.
    As such you can pass it via a prepared statement. It is just a matter of getting the syntax correct. And of course collecting the result.
    The syntax is going to be be something like the following. You would use it just like you use the existing sql.
    begin
       select ... from ... where c = ?;
    endThe result might be returned a result sets (plural). If so you would need to code appropriately for that.

  • How to run a plan (once and only once) by clicking on a button ?

    Hi all,
    I've been using Oracle BAM 10.1.3.3 on a project and my customer is now asking for the following feature:
    He would like to manually launch a plan (once and only once) by clicking on a button of a web page.
    In my opinion a possible way of implementing this scenario is:
    create a new alert which "Event" set to "When this rule is launched" and Action set to "Run a Plan". In addition I should copy the alert URL and paste it on the page, anytime the final user clicks on that link the alert will be launched and the plan will be run.
    Is that correct? Otherwise could you please give an advice?
    Thanks a lot in advance for your help.
    BR Fabio

    Hello there!
    There are lots of online resources available at www.ni.com that will be able to help you, as well as the available resources in LabVIEW such as the LabVIEW Help and the Find Examples options under the Help tab.
    Obviously, none of these will do the whole project, but will be relevent for different parts of it.
    The link to the online LabVIEW manual is here and the part most relevant to yourslf when starting a block diagram is here.
    As a guideline, the examples are a very very useful guide on good-practice programming as well as problem solving and introducing you to the different functions available.
    Another very useful link is the NI Developer Zone, from where you will be able to access Tutorials on thousands of features.
    I hope this helps!
    Liam A.
    National Instruments
    Applications Engineer

  • How to run Explain Plan for SP?

    Can we run Explain Plan for SP??

    EXPLAIN PLAN creates an execution plan for SQL statements. PL/SQL is not SQL.
    PL/SQL procedures can contain SQL, yes. These SQLs can be copied and pasted from PL/SQL into something like TOAD and execution plan determined.
    However, if the aim is to see the "execution/performance plan" for PL/SQL code, then you need to profile the PL/SQL code using the DBMS_PROFILER package. This will tell you the execution path and elapsed time to execute a line of PL/SQL.
    Details can be found in the [url http://download-east.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_profil.htm#sthref5502]Oracle® Database PL/SQL Packages and Types Reference guide.

  • We are using ASCP should we be running the Planning Manager?

    Hello Experts,
    We are using ASCP should we be running the Planning Manager? Isn't that only for MRP?
    Should we even bother to set the MRP: Consume MPS, MRP: Consume MDS, etc profiles?
    Thanks in advance.
    Greg

    You must run planning manager. Besides doing consumption of MPS etc, it does a lot of other functions such as processing of wip job completions etc.
    It should run somewhere between once every 30 seconds to 1 minute.
    Hope this answers your question,
    Sandeep Gandhi

  • I have a friend who is looking for an iMac to run X-Plane (Flight Sim)

    O.K. my friend is a 86 year old former B-29 bombardier from the 462nd bombardment group USAAF.
    He uses PC's but he is looking for an iMac that will run X-Plane
    http://www.x-plane.com/
    a flight simulator that works on the Macintosh platform.
    He has been frustrated by being attacked by Hackers before on his PC (I think that he might have gotten a couple of Remote Trojans) and he wants to go back online again of the Internet.
    Will X-Plane run decently on a current iMac?
    How about the low end model will it run this decently?
    I'm looking for individuals who have used this on their iMac to respond preferably.
    I see the requirements for X-Plane here
    http://www.x-plane.com/sysreq.html
    According to this it looks as though any iMac should work.
    I don't think that he can afford a Mac Pro and since he is my friend I don't want him to spend too much money.

    '83Mac,
    I think you might want to reconsider your recommendation. While your friend may not want to go $2200 for the high end model, it seems to me that an extra $300 for twice the video RAM, twice the system RAM, 30% more HD space and a slightly more powerful CPU in the 2.66GHz. 20 in. model would certainly be worth it. 128MB of Video RAM is just not that much any more, and your friend is looking at buying a Mac specifically for x-plane, a graphic intense program. As you may know, and your friend would certainly be aware of, x-plane is in constant development and is always pushing the edge of the envelope as far as current system capabilities are concerned. It would give your friend a system that would be able to handle whatever is in the x-plane pipeline for a longer time to come, and extend his capabilities with the program's current state. Just my two cents.
    Hope this helps,
    Jeff

  • How to run production planning  in APO

    Hi gurus,
    how to run production planning  in APO.
    Can u explain me.
    prasad

    Prasad,
    An unfocused question; a similar answer.  Try online help for a start
    http://help.sap.com/saphelp_scm70/helpdata/en/2a/18dc37c7f2d67ae10000009b38f889/frameset.htm
    Best Regards,
    DB49

  • When run application then internet explorer automatically

    hi all,
    please tell me, i've problem when i create module in forms9i and as run the internet explorer closed automatically although JInitiator installed, oc4j started, why internet explorer closed
    please suggest me what i do?
    warm regards
    Mohammad Adeel

    Sir,
    There is no tag mentioned in browser because, Browser Direct Closed while application begin run out, I have just click run button in form module, this is not happen before but now a days it is begin happend although in the client side its work ok. but in server explorer closed automatically all parameters define according to the form9i deployment.
    I also done Jinitiator download two times.
    well the tag is
    http://kashifdmu.pk.ubl.int:8888/forms90/f90servlet?config=myapp
    regards
    Mohammad Adeel

  • ORA-01745 when running Explain Plan

    Hello everybody,
    I would like to know what is the best way to report a bug. In fact I believe just found one and I would like it fixed. I am using the latest version of SQLDeveloper on WinXP that uses its own JDK.
    To replicate the bug it's very easy, just try to do an explain plan of the following query:
    SELECT * FROM scott.emp
    where empno = &&emp_nr;and the "*ORA-01745: invalid host/bind variable name*" error appears. Since the query executes properly, but the Explain plan errors out, I believe this could be a bug.
    Thanks,
    Paolo

    Gary,
    thanks a lot for your feedback.
    I have found this weird behaviour, because I was trying to avoid another one. In fact I tried using the substitution variable syntax instead of the bind variable syntax in SQLDeveloper, especially to avoid the issues coming from automatic data conversions.
    For example, if I run the following query using the bind variable syntax (passing SYSDATE as the parameter value):
    SELECT *
       FROM scott.emp
      WHERE hiredate BETWEEN TRUNC(:p_eff_date,'yyyy')
                         AND TRUNC(add_months(:p_eff_date,12),'yyyy') - 1;it will go in error with "*ORA-00932: inconsistent datatypes: expected DATE got NUMBER*", because the filter predicate will be converted automatically as follows:
    TRUNC(TO_NUMBER(:P_EFF_DATE),TO_NUMBER('yyyy'))<=TRUNC(ADD_MONTHS(:P_EFF_DATE,12),'fmyyyy')-1This behaviour is visible by running the explain plan on the above query. Isn't that TO_NUMBER(:P_EFF_DATE),TO_NUMBER('yyyy') a little bit too wrong? Note that the second occurrence of the P_EFF_DATE parameter does not get converted. Can't this "automatic conversion" behaviour be disabled somehow?
    Due to this weird issue I tried to use the substitution variable syntax, but the main issue with the single ampersand is that you have to enter the value of the parameter as many times as the parameter is referenced in the query and you can imagine that with big queries written by other people this is not so easy.
    Is there another way to pass parameters to a query in the SQL Worksheet? How can I "use literals rather than variables" as you suggest? Do you mean NOT using parameters at all?
    Thanks,
    Paolo

  • F110, reset the payment run back to payment proposal automatically.

    Hi,
    When payment run is carried out, some line items are being paid and others are not.The line items that are not getting paid canu2019t be selected just for the next payment run because they are already proposed for this specific but stuck payment run und canu2019t be deselected anymore. Means, the stuck payment run canu2019t be started another time, the selected not paid items canu2019t be deselected. So what are you going to do with the items that are stuck in the payment run? You canu2019t deselect them, you canu2019t pay them, you canu2019t clear the vendor open items.
    Right now the solution is very manually and therefore very time intense and therefore the user is asking for a solution to automatically set back the payment run to a payment u2018proposalu2019. From this starting point we can deselect vendor line items and can run the same payment run again or delete the not paid vendor line items in the stuck payment run and transfer them to a new payment run.
    Can anybody provide me a solution.
    Thanks,
    Vardhan

    Dear Vardhan,
    Your query is not very clear. Nevertheless, i would try to explain as per my understanding.
    If some items are not paid in one Payment Run, then all such items will be under exception list. You have to check the exception list for the reason as to why those weren't paid. Once you know the reason of non-payment, you can go further.
    I hope this answers your query, as far as my understanding goes.
    Thank you.
    Suresh Jayanthi.

  • Can MRP run without Planning File Entry?

    Hi,
        I came across an issue where MRP is running accurately without any Planning File Entry for a material in E.C.C.6.
        My Understanding is MRP can NOT run w/o PFE u2013 which is a mandatory prerequisiteu2026..BUTu2026???
    TRY itu2026   1.in OMDU find a plant where MRP is NOT active,    2. Create a Material with all required data (I used ROH, Proc.Typreu2013 F, Strategy u2013 70, Mixed MRP-1, Ind/Coll u2013 2)   3. Activate MRP for the Plant in OMDU.   4. Create Demand according to strategy (I used VSFB in MD61).   5. Run MRP & complete procurement as many times u want.   6. In this process anytime u can check in MD21 u2013 there is NO PFE.
         Can someone tell me what the reason / logic are behind? Is there any OSS note for it?

    Dear ACCPP12,
    1) in which t-code your running MRP, i suspect your running in MD02
    2) MD02 & MD03 does not require Planning file entry
    3) MRP gives results with out planning file entry by the above mentioned t-codes
    4) where as if your going with MD01, then Planning file entry is required for materials
    Regards
    Madhu Kumar

  • Run date problem in F110 - automatic payment program

    Hi.
    I am trying to run the automatic payment program in F110. I am facing the problem with the run date in this transaction. System is not giving me any error if i give the run date as today's date or future date.
    But in run date if i give previous date system is not executing the automatic payment program.
    Eg: Inovice posted on 01.01.2012. It becomes due on 01.01.2012. I gave run date as today's date 04.01.2012 or future date the system is executing correctly picking all invoices. But if i give the run date as previous to the current date i.e., 02.01.2012 or 03.01.2012 then system is not executing this transaction.
    This problem is coming for all company codes. So if there is any setting for restricting run date request you to help me in this regard where can i do such setting.
    Regards,
    Padmavathi

    Hi.
    My problem is solved.
    Actually client is entering the documents with posting date for earlier months whereas he has entered the documents this month.
    Therefore system is not picking the invoices in F110 - automatic payment program.
    Actually the run date entered is getting copied to the parameters entered i.e., posting date and documents entered upto date.
    Documents are entered in the system this month with posting dates of previous months. Therefore if i give the run date as this month date the run date is getting copied to doc entered upto date in the parameters tab as this month date. So only system is not picking invoices since invoices are entered in the system this month only.
    Now we changed the date for doc entered upto with previous month date and system is picking the invoices.
    Thanks a lot for your help.
    Regards,
    Padmavathi

Maybe you are looking for

  • Home Sharing with Multiple PCs and Apple IDs

    My wife and I both have our own computers with our own Itunes, Apple IDs, and Itouches. Since we obviously share a bank account we want to be able to share the music that we by from the Itunes store with each other. If we both want a song there is no

  • How can I add content from a different spreadsheet and thus create a reference between then?

    Hello, I am starting to use Numbers 3.5 in a MacBook Pro Late 2011. I am trying to find a way to create a reference between spreadsheets. For instance, I have a spreadsheet for each year to control things at home. While creating a 2015 version, I can

  • Oracle BAM report output

    Is there any way the BAM report data to output to Xcel or PDF format? It appears that the default reports(graphs) created from BAM ACTIVE STUDIO only allow to: - print - Return to Home - Return to previous page when zoomed in (drilled down) to data s

  • I photo app has disappeared

    My iphoto app seems to have disappeared... no icon and nothing in the applications folder. How do I recover without downloading and paying again?

  • Flash Builder - Design View - can't resize/move objects anymore.

      So, I've downloaded the 60 day trial of Flash Builder 4.  I've been working with it for about 2 days and everything has been going fine.  However, for some unknown reason, my design view panel just suddenly stopped working properly.  I see the comp