Allowing user to terminate the PL/SQL process being executed
Hi All,
There's a procedure where some processing is done and which does take a long time to execute.
So i want to add some feature in my form so that the user can cancel the the procedure being executed any time when he wants.
Hopefully my problem is clear.
Forms [32 Bit] Version 6.0.8.23.2
Oracle9i Enterprise Edition Release 9.2.0.1.0
Thanks in advance.
Arif
hi Arif,
Regarding to your issue am afraid that there is no much ways to let the user cancel the procedure which retrive or fetching records or even at post_query level except cancelling the post_query fetching [ F4 ] or you can write a stored procedure , which will take the user_id as an argument and search for it in the $v_sessions table in order to kill his session , which makes no sence.
i hope this whould be helpfull for your problem
Regards
Omar
Similar Messages
-
As titled, what is the way to record video/audio files using Flash Meida Server through rmtp, and allow users to access the recorded files through http?
What I am trying to do, is to record a user's microphone's input and save it to the server. Afterwards, I would like other users to be able to access the recorded files and mainuplating the audio data, by computeSpectrum(), to do some visualization of the audio. As I know computeSpectrum() cannot work on streaming files, so I think I need to access the recorded files using http instead of rmtp. Is that true?
How can I redirect the http request to the files I was recorded into my applications/appName folder? Or I need to somehow moved the recorded files to the /webroot folder?
Thanks!I probably have asked a stupid question.
My recorded streams are still saved in the applications/appName/streams folder.
And I redirect the www.mydomain.com/streams to point to the applications/appName/streams folder.
And the rmtp recorded streams are abled to connect through http now. -
Detemine ALL sql queries being executed by a session
Hi All,
I want to find out ALL SQL queries being executed by a session on the DB. I have thought of enabling the SQL Trace for that session, then create my trace file for the session in the udump area and then check that trace file to view all the SQL's being executed in that session till the time i set my trace to FALSE.
Would enabling the trace for that session suffice for capturing each and every SQL fired in that session? Or do i need to check anything else?
Thanks in advance.hi,
select sql_text
from v$session, v$sqltext
where v$session.sql_address = v$sqltext.address
and V$session.sql_hash_value = v$sqltext.hash_value
and sid = &sid
order by piece
/thanks,
baskar.l -
Allow users to change the Active Target Category in the POV bar
Can't figure out where in Object Maintenace to allow user to be able to select the Active Target Category in the POV bar.
It's not in object maintenance. You need to disable the POV Mode (Admin / POV Mode) by removing the checkbox, iwhich then means all users will have the ability to change the category (and period). I suspect in the POV it currently has GLOBAL defined ( which means it is controlled by admin users, and you need to switch it (by default) to LOCAL via the POV Mode option.
-
[locked] Allow users to save the PDF file
I've noticed that by using the form Distribution through either email, Acrobat.com, or a shared folder on the network the user can save the PDF file, correct? Do I understand this correctly? One other thing, what if I don't want to email out but just want the PDF form to be available on my website, will the user still be able to save a copy of the filled form for themselves to print or do whatever they want?
Okay, is this the paragraph?
15.12.3 For any unique Extended Document, you may only
either (a) Deploy such Extended Document to an unlimited number of unique
recipients but shall not extract information from more than five hundred (500)
unique instances of such Extended Document or any hardcopy representation of
such Extended Document containing filled form fields; or (b) Deploy such
Extended Document to no more than five hundred (500) unique recipients without
limits on the number of times you may extract information from such Extended
Document returned to you filled-in by such Recipients. Notwithstanding anything
therein to the contrary, obtaining additional licenses to use Acrobat Pro or
Acrobat Pro Extended shall not increase the foregoing limits (that is, the
foregoing limits are the aggregate total limits regardless of how many
additional licenses to use Acrobat Pro or Acrobat Pro Extended you may have
obtained).
I'm not trying to break any laws but just curious as how Adobe would track that information. In any case, I'm not trying to capture/extract any information from the PDF form. Mainly what I'm trying to do or like to do is just allow the user to save the form. I don't want to capture or extract any information from the PDF form. My form is about three to four pages long and all I'm trying to do is allow the user to save the form that they partially filled and allow them to save the form so they can come back whenever they want to and finish filling up the form and that's it. I'm not looking for any data coming back to me. The user is required to print the form so their is no electronic information coming back. Is this still violate Adobe's limitation above? -
Hi,
I added a list view web part into a SharePoint 2013 page and it is working as expected, except for one thing.
I have enabled the option for the user to change the view for the web part. However when the user changes it, the user is redirected away from the page containing the web part, to the URL of the list itself.
Is there a way to circumvent this issue so when the user selects a different view it updates the listing in the web part itself, rather than the user being redirected?
Thanks in advance for the help.
Regards,
P.Hi,
Please understand that one page can only display one view. You could find it out by observing the Address in browser when switching among different views for a list.
If you would like to change the view of a list web part, you could go to web part propertites > Select view and configure it.
In addition, here is a thread with similar requirement that might help:
http://social.technet.microsoft.com/Forums/en-US/18dba190-5ee2-4b50-b005-1360d862f4ba/how-can-end-user-change-the-view-in-a-list-view-web-part?forum=sharepointgeneralprevious
Regards,
Rebecca Tu
TechNet Community Support -
How to allow, user to enter the free text in smart forms and Drop Down list
Hi Experts,
How to provide the user to enter text in smart forms? ie Once the smartform generated, there the user allowed to enter text.
And also is there any option to provide Dropdown list in smart forms.
Possible give with example with clear idea.
Its very urgent!!!!
Thanks in Advance!!!Hi!
No, there's no way to it, because Smartform is just like a piece of paper, it can't handle any objects, after it is ready.
It can be printed out/archived/sent on email as an attachment and that's all. It cannot be modified after it is completed.
Regards
Tamá -
Almost every time I load any page containing a video and attempt to view it Firefox will crash and become totally unresponsive. It seems that the Adobe flash player add on is responsible but the crash protection feature does not function and the only way to recover is to terminate either the add on container process or Firefox using Task Manager
Other add-on's installed are:
Adobe Acrobat 9.4.0.195
Google Earth 1.0.0.1
Google Update 1.2.183.39
Java toolkit 6.0.220.4
Java Platform SE 6 U22 6.0.220.4
Mozilla Default plug-in 1.0.0.15
Open Office 3.2.9497.500
VLC Multimedia 1.1.4.0
Disabling all or any of these does not help.I find that in this exact configuration that Firefox simply crashes with that crash window. I have Disabled ALL extensions and plugins, Firefox works. Then I install ONLY Flash 10.1.85.3 and Firefox 3.6.12 crashes, running on Windows 7.
-
Using .NET Framework 4.0 what features are available that would allow to accomplish something very modular and user customizable, like depicted in this XML. Where I define specific base operations like Get() and Put() methods that operate on strings.
And allow the user to add and remove those or mix and match them in a way that they basically design their own run time functionality that suits them. So they just create their own 'Operation' and fill it with the operations they want to perform on some
incoming data type, in this case it is a string - with substring and insert methods.
EDIT - Assuming end user is non programmer and Dynamic Code compilation is not an option. I have an idea maybe using dynamic keyword, but not sure if it makes what i suggest possible.
<Operation Name="GetValues">
<Get id=123" FromIndex="2" ToIndex="23"/>
<Get id="234" FromIndex="3" ToIndex="5"/>
<Output Path="C:\" Filename="testOut.txt" Append="true">
<Format>
<Result id="123"/> , <Result id="234"/>
</Format>
</Output>
</Operation>
<Operation Name="InsertValue">
<Put AtIndex="5">stringtoinsert</Put>
<Put AtIndex="36">anotherstringtoinsert</Put>
</Operation>Hi sjs1978,
I am not familiar with dynamic code, and I made a research about it.
>> I'm aware of dynamic code compilation, but that requires user to input pieces of code.
Did you try to store the pieces of code into a file and call the code when the dynamic code compilation requires user to input code?
In addition, I found links about using code provider to compile a source file, and the links below might be useful to you.
# Dynamic Source Code Generation and Compilation
https://msdn.microsoft.com/en-us/library/650ax5cx(v=vs.110).aspx
# CSharpCodeProvider Class
https://msdn.microsoft.com/en-us/library/microsoft.csharp.csharpcodeprovider(v=vs.110).aspx
# Is it possible to dynamically compile and execute C# code fragments?
http://stackoverflow.com/questions/826398/is-it-possible-to-dynamically-compile-and-execute-c-sharp-code-fragments
Best Regards,
Tony
Help each other -
The actual query being executed
hi all,
is there a way to log the actual sql query being executed
i saw that there is trace option for sql query
but it is not logging anything
can anybody help me please
regards,
ramakrishnaThe easiest way to do this that I've found is to determine which session is running the report. This is difficult if it is interactive as the reports runtime engine starts a session when you run it. Then just issue a sql trace with binds from another session (dbms_support package or dbms_ev)
I'll sometimes put an entry using dbms_application_info (suggested on asktom) in a beforepform trigger so I know which session is the one with the report - in caseI have multiple logons under one account. -
Shut down the concurrent managers to terminate the process ORA-01000
Dear All,
Error As Follows
Shut down the concurrent managers to terminate the process or use port-specific operating system commands to terminate the process.
Job number is: 638
Job number is: 639
01-FEB-2013 10:46:36 - ORACLE error 1000 in get_status
The SQL statement being executed at the time of the error was: &SQLSTMT and wJob number is: 642
The call to function PingProcess in cartridge AQCART has failed.
Routine FNDSM cannot terminate the concurrent process with concurrent process ID &CPID and
operating system process ID 7537140
The SQL statement being executed at the time of the error was: &SQLSTMT and was executed from the file &ERRFILE.
01-FEB-2013 10:44:34 - ORACLE error 1000 in get_status
Cause: get_status failed due to ORA-01000: maximum open cursors exceeded.
Again after some time i used to get this error
Cause: get_status failed due to ORA-01000: maximum open cursors exceeded.
The SQL statement being executed at the time of the error was: &SQLSTMT and was executed from the file &ERRFILE.
01-FEB-2013 11:12:15 - ORACLE error 1000 in get_status
Cause: get_status failed due to ORA-01000: maximum open cursors exceeded.
The SQL statement being executed at the time of the error was: &SQLSTMT and was executed from the file &ERRFILE.
The call to function PingProcess in cartridge AQCART has failed.
Job number is: 651
Suggestions are welcome
Regards
Surinder Singh
Edited by: Surinder Singh on Feb 1, 2013 11:16 AMSurinder Singh wrote:
Database Version - Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
Application Version - 11.5.10.2
Current Open cursors value
SUM(A.VALUE) NAME
28396 opened cursors current
Regards
Surinder SinghThis value is high.
Please run AutoConfig and make sure it completes successfully.
Can you find any errors in the database log file?
Thanks,
Hussein -
Hi all,
I need your help on the below scenario.
I have to stop user to copy and paste the data into the field. But allowing user to enter the data in that field.
Please suggest.
Thanks and Regards,
Thiru.Hi thiru
It sounds like you want a to write a PJC component to extend a forms text item that will capture and eliminate the key strokes and mouse actions used to copy and past thus preventing a user from performing this action. There are many examples on the interent of how this can be written e.g. the Oracle Forms PJCs/Java Beans web site. You will need to have jdeveloper to write thise bit of code. Oracle forms also has a tutorial on how to plug the JAR file you generate into your for sessions.
Regards
Quintin -
Refreshing Page after PL/SQL Process Completes
Reader's Digest Condensed Version: I have been unsuccessful searching the forum for a method to Refresh the current page AFTER the execution of a PL/SQL Process defined on the same page.
War & Peace Version: I have a page which displays multiple records for editing on P1001. I also utilize a checkbox in combination with a button to perform some intermittent steps. Essentially, the user selects a row to "clone" by checking the appropriate checkbox and clicking the "clone" button. The first thing the button executes is a JavaScript function on page P1001, which calls a popup window (P1010) so the user can select a new value for the primary key. This is required to maintain data integrity of course and avoid duplicate records. Page P1010, contains two text fields with Popup links for each. The user can either enter their values directly, or use the link which will calls another JavaScript function to call a popup page P2 to display the results of an SQL query. Once the user makes their selections, another JavaScript function on P1010 passes back the selected values and stores them in hidden variables on P1001. At this point, I want my PL/SQL process, CLONE_RECORD, to execute examining the values from the record to-be-cloned and the new primary key values. The PL/SQL checks the database to see if the record already exists. If it does not, then validation of the data occcurs and a SQL insert string (myInsertSQL) is generated. I then "execute immediate myInsertSQL;" and "commit;" from within my PL/SQL. The procedure terminates, and at this point I want the original page P1001 to refresh. If the insert was successful, the new cloned record should be displayed along with the other previously displayed records.
I am having issues with the timing because I am able to insert the cloned record into the database, but I have to manually refresh my page to see the resulting new record. I know that PL/SQL is executed on the server and that JavaScript is executed at the browser, but how can I synchronize my process, or at least perform an HTML POST(?) to refresh the page at the end of my PL/SQL procedure?
As always, any assistance is greatly appreciated.
MovingTarget
PS. I am using HTMLDB 2.0 so please be kind.MovingTarget,
Before I get into this I want to make sure you understand that in general, unless it's a really long process, you want the submitting page to have an On Submit process that calls your PL/SQL process. Then you can provide a branch back to the same page if you like or to any other page for that matter. Also, the PL/SQL error handling in ApEx is not too great right now but there are plans to improve it in the next version. In the mean time you have to use some tricks if you want to display "pretty" messages on exceptions.
I'll tell you how I would approach this and let you tell me why it would not work or what I'm not getting...
You have a main page, that in order to submit, needs a pk value populated from a popup (pu1), which in turn calls another popup (pu2). I'll create an imaginary situation in which I might have the same pages... I'm populating a users table (legacy) with a pk that is a combination of the employee's dept and name. The pu1 shows departments and pu2 shows emps in those departments.
So, I click "add new user", then click on a button that opens pu1. I see the departments and then click on another button that opens pu2 to see the names. I click on a name and user JavaScript to close the popups and populate and item on the parent page with a string that is made from the employees department and name. NOW I click "save". The page submits and calls a PL/SQL process that passes in the values from the parent page to the INSERT process. After the process is run a branch redirects the user back to the same page and displays the success message from the PL/SQL process.
I hope that didn't just make things worse! lol
Dan -
Taking user input in a PL/SQL block
Can someone tell me if it is possible to to take user input from within a PL/SQL loop? I mean I want that for each iteration in the loop, the program first take user input, and then based on that input, it perform specific operations. Then it repeats this process for each subsequent iteration of loop.
If it is not possible in PL/SQL, is there any other alternative?
Thanks.> I'm afraid I have no idea how to get the server to ask questions of the user,
especially when it essentially operates in a kind of batch mode.
Yep. To expand a tad on what Hans mentioned here.
To accept input, the process needs to be able to read from this input device. Let's make it a keyboard. The PL/SQL process needs to read keyboard input.
The keyboard is attached to a PC 1000km away in a branch office. The Oracle server process, running on a server in the data centre, executes this PL/SQL code.
So now this PL/SQL process has to automagically hack its way across the network. It needs to remove the keyboard plug from that client PC. It somehow must get that keyboard rewired, across that 1000km, into the server platform at the data centre. And only then can the Oracle server process running that PL/SQL code read from that keyboard input device and accept user input.
It is important, when developing in Oracle, to grasp just what client-server is and how it works. And not to confuse something like a SQL*Plus Client Process (submitting PL/SQL code) with the Oracle Server Process (parsing and executing that submitted PL/SQL code). -
Finding the issued SQL statement
Hi All,
A user has issued this:
DROP USER user CASCADE;
and after a while it got hung up.
Since all database users are using the same schema, I can not find the sid/serial # to kill it. There are many users in active and inactive status are found but could not identify the user who issued the above sql.
I know I can extract sid,serial# through v$session view. How can I join this view with other views to identify the sql statement?
Do you know how?
Thanks,To get the SID and SERIAL # please execute the SQL below:
set lin 500
col username format a15
col terminal format a15
col program format a40
col machine format a25
select s.paddr, p.spid, s.sid,s.serial#,s.terminal,s.machine,s.username,s.status,s.process,s.program,s.module,s.action, s.server from v$session s, v$process p
where p.addr=s.paddr
order by s.sid
To get the SQL Statement you have to get the SID and SERIAL # from above statement and execute the SQL below:
select x.sql_text from v$sql x, v$session y
where x.hash_value = y.sql_hash_value
and x.address = y.sql_address
and y.sid = &sid
/
Maybe you are looking for
-
How to suppress multiple lines for a single day on a PE50 form
Hello everyone, I'm working on a timesheet based on a PE50-form. Currently, the following line is used to display one day: Group: ED Priority: 1 Row: |WE CD|TEXT_________________ |ANZHL_|ANZHL_|ANZHL_ | | | WE = SCHLW-WEEKDAY
-
Version 33, problems when moving tab to new window, then if you open a new tab in that window it doesn't switch to it unless you use Ctrl-Tab.
-
Apple TV showing no signal strength
My appletv is showing no signal strength yet my internet is fine on all other devices. PLEASE HELP!!! I want to airplay yet the icon is not there and I think this is the result of the 0 signal strength.
-
So I was trying to resize my bootcamp partition with Paragon and it was taking forever so I decided to use iPartition the Paragon started doing something and it was almost done when my macbook began to shut down. It was shutting down becuase I though
-
Barcode printing in 4.7 possible or not ?
Hi All, We are working in 4.7 environment .We want to generate the barcode in a script for an invoice number. I heard from some of my friends that barcode printing is not supported in a script from 4.7 .In 4.7 we need to use a smart form for that.Ple