Way to run a procedure on a schedule
We have a table where each row contains an expiration date. When the expiration date is in the past, we'd like to have several columns in that row updated.
Is there a way in APEX to schedule a procedure to run nightly at a specific time?
Nann,
Have a look at the APEX_PLSQL_JOB package if you need to stay in APEX:
http://download.oracle.com/docs/cd/E14373_01/apirefs.32/e13369/apex_plsql_job.htm#BGBFGBIB
You could also look at DBMS_SCHEDULER if you have the access. Just Google it.
Regards,
Dan
Blog: http://DanielMcGhan.us/
Work: http://SkillBuilders.com/apex/
Similar Messages
-
Run a procedure at the background
Hi All,
Is there a way to run a procedure at the background (in parallel)?
Thanks,
NPRI am trying to fetch records into a temp table based on a complex query (lot of joins and search query dynamically built based on users entry). Also display the records pagewise as soon as 100 records are fetched.
I want to run this at background with commits inbetween so that I can access the info and display each page with certain number of rows.
Thanks,
NPR -
Run a procedure based on a schedule
hi dear;
how can i schedule to run a process in specific time or every one interval of time?
regards;Dear John;
i mean a procedure in SDK and not in sql.
exp: the procedure is copying the open sales orders to invoices.
i want to run this procedure every 5 minutes automatically
how can i do it in SDK?
thank you and regards; -
What is the best way to run a powershell script with parameters in the Task Scheduler?
Hello,
Want to run the following from a scheduled task in the Task Scheduler on a server. What is the best approach?
.\pscript.ps1 -csvfile "\\Srv1\Share\File.txt"
Thanks for your help! SdeDotHi,
To run a powershell script with parameters in the Task Scheduler:
Program: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
Add argument (optional): -Command "& c:\scripts\test.ps1 -par1 2 -par2 3"
Hope the below two articles be helpful for you:
Schedule PowerShell Scripts that Require Input Values
https://blogs.technet.com/b/heyscriptingguy/archive/2011/01/12/schedule-powershell-scripts-that-require-input-values.aspx
How to Schedule a PowerShell Script
http://dmitrysotnikov.wordpress.com/2011/02/03/how-to-schedule-a-powershell-script/
Regards,
Yan Li
Regards, Yan Li -
How to terminate a running stored procedure
Hi,
I am starting to use stored procedures instead of doing
cfquery, but I am nervous about procedures that take too long to
run. Is there a way to terminate running procedures so that there
is no risk of errant procedures crashing the sql server? What is
the safest way of testing these procedures?
Thank you.
MinUsing cfquery presents the same problem as using stored
procedures. What happens in both cases is.
Cold Fusion asks the db to do something.
The db starts doing it.
When the db finishes, it sends something back to Cold Fusion.
If the Cold Fusion template times out, the db does not stop
what it was doing. If you want to stop it, you have to do so at the
db level, not on Cold Fusion.
The way we do it on our data warehouse (redrick running on
unix) is to schedule a job to run every 5 minutes. This job checks
for any query being run by Cold Fusion that has been going longer
than 120 seconds. If it finds any, it stops them and sends an
email. -
Is there any way to run abap program in dialog process with process chain?
Hi.
I just want to run custom abap program in every 30min.
so I made process chain and connect abap program.
but it returns NOTHING when background running.
the program has ABSOLUETLY no problem when it's running DIALOG process.
custom program is modified from sap standard program for my use.
so complicated and hard to read that I cann't figure out what's problem in backgound job and even hard to debug in background process.
is there any way to run abap program in dialog process in every 30 min.?
or call BSP page or call function.
any solution will be helpful that excuting PROGRAM or FUNCTION or BSP PAGE in schedule job and should running dialog process.
thanks.
Lee.Hi,
did you try using sm36 transaction?
1Give these values in Gereral data
Create one sample job "SAMPLE JOB"
Priority "A"
Execu target - Your application server
2Click start conditon
schedule according to ur requirements.
3.Click Step button
Give your ABAP program name.
fill variants if it has any variants.
if it is useful assign points
Regard,
Senthil Kumar.P -
Is it possible to trigger an error so that the running stored procedure is stopped?
Hello all,
I want to run an existing stored procedure and then I want to manually trigger an error/abort/interruption so see what happens and do some testing with that.
Is it possible to manually trigger an error/abort/interruption on a running stored procedure so that it is stopped?
If yes, how can I do that?
I hope someone has an idea. For me it sounds not really difficult, but I just do not get the idea how to do it.
Kind regards
PeterHello Visakh,
I dont want to modify the existing procedure. I just want to run it and than stop it, but not with the button to stop it, but "kill" it somehow with an error (with not destroying the database).
Nope you cant simulate an intermediate failure inside procedure code from outside. For that you have to modify the actual sp code itself
Another way is by doing data manipulation in such a way which causes a error in procedure but for that you need to revisit the logic to ensure you do changes in such way as to cause an error
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page -
MRP Run Error creating Requisitions instead Schedule Lines
Hi Folks,
I am facing a typical issue with MRP Run.
Every time when I am running the MRP for a particular material I have made settings such that Schedule lines to be generated by maintaining the Source list and MRP relevancy as 2 in source list. Also I have fixed the vendor. Now my problem is I am getting Schedule lines for first run and Combination of Purchase requests and Schedule lines or only PRs for the next MRP run.. This is keep on repeating in such as way that the planning is shifting as said above for subsequent MRP Run.
Note that the initial settings during MD02 remain same for all run.
I want only schedule lines to be generated but not PR.
Pls advise and provide input where the wrong might be.
Quick responce would be appreciated.
Regards
Shash
Edited by: Shash on Sep 19, 2008 1:10 PMCan you please tell me how you solved the problem as i have the same problem .
Quick response will be a boon.
Regards
Raj -
I received an email that I now know to be malicious and inadvertently opened up the attachment on my IPad that I've been informed will download malware or a virus. Can my IPad be infected this way or does anyone know if there is a way of running a security scan to check if there is a problem? I do have the most up to date IOS software installed.
There is no anti-malware for iOS, at least none that actually does anything useful. The odds of getting any malware infection via an email attachment on an iOS device is quite low - practically non-existent. Unless you are seeing any issues, there isn't much to do, other than deleting the email and being more cautious in the future.
-
A better way to run a 7 day report?
Using Crystal Reports 11
I am hoping there is a better way of running a seven day report that i have to run weekly
In the report i have it set when refreshing the document, the "Prompt for new parameter values" comes up and there is a date field for start and end
This is how i did it
I made a formula called "Date" this comes from the closed date of our accounts
I made a Parameter Field "Start Date" with the TYPE field is "Date"
I made a Parameter Field "End Date" with the TYPE field is "Date"
I made a Select Expert Using data from the "ClosedDate" in the first drop down I picked "Formula" and used this as the formula
{WH_ACCTCOMMON.CLOSEDATE} in {?Start Date} to {?End Date}
Two things
1. Is there a way to have "Prompt for new parameters values" as the default checked off box when clicking "Refresh"?
2. Is there a way to only enter a start date and the refresh would just run 7 days without entering a end date?Hi,
Here's a suggestion for question 1:
When you preview the report for 1st time there is no prompt window that asks you to select whether you wish to 'Use current values' or 'Prompt for new values'.
If the Preview window is open and you hit refresh again, this is when you get the pop-up with the above options. If you close the Preview window and refresh again, you would not get a pop-up and it will show the Prompt window instead.
For question 1, you can follow Alun's sugestions.
-Abhilash -
Is there a way to run a program designed for PC on my Mac?
I would like to use the Firearms Management System offered by one of my suppliers on my Mac but the only operating system shown to use is with is Windows. Is there a way to run it on my iMac?
Sure, many:
(Borrowed from Kappy)
Windows on Intel Macs
There are presently several alternatives for running Windows on Intel Macs.
Install the Apple Boot Camp software. Purchase Windows XP w/Service Pak2, Vista, or Windows 7. Follow instructions in the Boot Camp documentation on installation of Boot Camp, creating Driver CD, and installing Windows. Boot Camp enables you to boot the computer into OS X or Windows.
Parallels Desktop for Mac and Windows XP, Vista Business, Vista Ultimate, or Windows 7. Parallels is software virtualization that enables running Windows concurrently with OS X.
VM Fusionand Windows XP, Vista Business, Vista Ultimate, or Windows 7. VM Fusion is software virtualization that enables running Windows concurrently with OS X.
CrossOver which enables running many Windows applications without having to install Windows. The Windows applications can run concurrently with OS X.
VirtualBox is a new Open Source freeware virtual machine such as VM Fusion and Parallels that was developed by Solaris. It is not as fully developed for the Mac as Parallels and VM Fusion.
Note that Parallels and VM Fusion can also run other operating systems such as Linux, Unix, OS/2, Solaris, etc. There are performance differences between dual-boot systems and virtualization. The latter tend to be a little slower (not much) and do not provide the video performance of the dual-boot system. See MacTech.com's Virtualization Benchmarking for comparisons of Boot Camp, Parallels, and VM Fusion. Boot Camp is only available with Leopard or Snow Leopard. Except for Crossover and a couple of similar alternatives like DarWine you must have a valid installer disc for Windows.
You must also have an internal optical drive for installing Windows. Windows cannot be installed from an external optical drive. -
Is There a Way to Run a Redo log for a Single Tablespace?
I'm still fairly new to Oracle. I've been reading up on the architecture and I am getting the hang of it. Actually, I have 2 questions.
1) My first question is..."Is there a way to run the redo log file...but to specify something so that it only applies to a single tablespace and it's related files?"
So, in a situation where, for some reason, only a single dbf file has become corrupted, I only have to worry about replaying the log for those transactions that affect the tablespace associated with that file.
2) Also, I would like to know if there is a query I can run from iSQLPlus that would allow me to view the datafiles that are associated with a tablespace.
Thanks1) My first question is..."Is there a way to run the
redo log file...but to specify something so that it
only applies to a single tablespace and it's related
files?"
No You can't specify a redolog file to record the transaction entries for a particular tablespace.
In cas if a file gets corrupted.you need to apply all the archivelogs since the last backup plus the redologs to bring back the DB to consistent state.
>
2) Also, I would like to know if there is a query I
can run from iSQLPlus that would allow me to view the
datafiles that are associated with a tablespace.Select file_name,tablespace_name from dba_data_files will give you the
The above will give you the number of datafiles that a tablespace is made of.
In your case you have created the tablespace iwth one datafile.
Message was edited by:
Maran.E -
Is there a way to run Motion and Final Cut Pro on Separate Machines?
Is there a way to run Motion and Final Cut Pro from the same Final Cut Studio license on separate machines? We hadn't realised when we bought Final Cut Studio that it wouldn't allow this. Our editor doesn't use motion, and while I mainly use After Effects on our motion graphics machine, I was wanting to try using motion for some particle effects. Unfortunately, it won't let me open it while Final Cut is running on our editor's machine. I can understand not letting two copies of same application run under the same serial number at the same time, but it would be nice to be able to use both programs that we own concurrently. At very least it would be good to warn you that this isn't possible in the product description, not in some fine print license agreement once you have already bought the software.
-MattI do not know of any software, in any platform that can operate from the same license over a network simultaneously.This is the exact reason for the existence of Volume Licensing. If for example a project ran in each one of the included applications from different sources that were not an active network, I doubt you would have a problem.Like, doing a project at work and geting the outcome with the Powerbook at home...Sorta!
-
Is there a way to run Internet Explorer on a Mac mini with mountain lion?
I need to access a professional website that only works with IE (don't get me started on THAT) I need to do billing using this site so need to have full functionality. Is there a way to run IE on my mac mini with mountain lion?
The key takeaway here is that yes, you can access Windows 7 (and IE 9) from OS X Mountain Lion.
The crucial question is about your workflow. If you need concurrent access to both Windows 7 and Mountain Lion, then the Bootcamp solution included with Mountain Lion would not be the right choice. You would need one of the virtualization solutions.
If you need helpdesk support from a paid product, rather than entirely from a community forum, then the latest Parallel's Desktop or VMware would be a matter of choice, with Parallel's the better decision at this point. Either of these products are under $100, in addition to the cost of a Windows 7 license. You may need the Windows 7 installation media as an .ISO file, rather than on DVD. Check requirements.
By example, I use Oracle's VirtualBox (free) on Mountain Lion, with a Windows 7 Home Premium 64-bit guest. The interactive and network performance of this Windows guest are more than adequate on my 2011 mini. I assigned 3 GB memory and 2 of 4 processor threads to the Windows 7 guest. I also restricted guest CPU use to 80%. VirtualBox is installed on my SSD, but the Windows guest is on an external HDD. That is not a default configuration. There are multiple choices for display; from full-screen 1920x1200 (mine) to an isolated resizeable window, to seamless integration with OS X. The Apple keyboard, bluetooth devices (trackpad/mouse), and printer all are recognized. I also have a shared OS X folder with VirtualBox, and copy/paste integration.
I use VirtualBox as it meets my support (forum) and functional requirements.
Best wishes, -
Is there a way to run a 2005 PreSonus Firebox(with the firewire) to a mid-2011 iMac 0SX 10.7.2? It says its no longer supporting Power PC? Anything I can do without spending more money on new equipment or a new computer? Please help me.
Nevermind, I got it working.
I ended up extracting the new vob within MPEG Streamclip, which gave me an m2v and an aiff audio. I multiplexed those two back together in FFMpegX which gave me a complete VIDEO_TS folder with BUP and IFO files I needed.
Maybe you are looking for
-
CL_GUI_FRONTEND_SERVICES= FILE_EXIST
Hi experts, See the following method. Here what value i have to give for RECEIVING RESULT It is a type group. How to declare a type-group? CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_EXIST EXPORTING FILE =
-
I have a code from a radio station to download a free song however when I go to redeem and put in my code which is typed correctly it just keeps making put my password in over and over. Any advice?
-
Error Occured in ALV : Due to Space
Dear all, Actually one variable contain variable like this: DATA W_FNAME(18) TYPE C. " TO STORE FILED NAME w_name = Head Office (which is fetch through select query) when i pass this for printing in ALV Report as a Lebel error is occured, i think th
-
About to use DNG Profile editor
I've had my Colorchecker for a few weeks, and I finally have time to set up my profiles for LR 3.4. In reading the DNG Profile editor tutorial page (http://labs.adobe.com/wiki/index.php/DNG_Profiles:Editor), I have a few questions: 1) If I use Tutori
-
Wrong Answer for substring question?
This is the question from one of Sun's e-Practice exams. I am only posting it because I believe the answer is wrong. QUESTION: A text field in a GUI allows a user to type in a string, pNum, that represents a telephone number in the following format: