Is it possible to execute an application using threads in oracle db 11g?
Hi all, I would like to know if it is possible to execute an application using threads in oracle database 11g. Actualy, I would like to know if is is possible to execute a pl/sql program in a similar way as I run threads in a java application.
Thanks in advance.
Edited by: user4073561 on 24/11/2010 05:19
In oracle there is parallel execution/servers,and this is analogy java threads.Refer
http://download.oracle.com/docs/cd/B28359_01/server.111/b28310/manproc006.htm
Similar Messages
-
Using jfreechart with oracle forms 11g
Hi everybody,
I'm using jfreechart with oracle forms 11g to continue having graphs in my application since i'm migrating from forms 6i. I've already got it working and it's great. Just have one problem left. I don't know how to change the axis labels. In Bar charts, it comes with "Values" in y axis and "Category" in x axis by default. I wanted to change that or make it dissapear. Anyone knows how to?I've never used the jFreeChart, but according to their website you can use the "setLabel" method to set the label for an axis. Check out Axis (JFreeChart Class Library) for more information.
Craig B-)
If someone's response is helpful or correct, please mark it accordingly. -
Executing Jar Application using Java Programs
Hello there,
How can I run a java application using java programs.
Desc:
public class someapp {
public static void main(String[] ext) {
// How can I execute a jar application from here through java code
}You could use java.lang.Runtime.exec(). Another way could be loading the main class of the jar file and invoking its main method dynamically.
-
Is it possible to execute an application (.exe) from the trigger
Currently a Visual Basic app runs and every 5 seconds does a query to see if there are any new records inserted or updated and then processes certain events.
WHat I want to be able to do is, when a record is updated or inserted then the trigerr(or anything else) should execute the application.
Could someone help me with this please?
Thank You,
Rekha.In oracle there is parallel execution/servers,and this is analogy java threads.Refer
http://download.oracle.com/docs/cd/B28359_01/server.111/b28310/manproc006.htm -
Is it possible to use DVT with Oracle Forms 11g?
Hi,
I have posted my question on Oracle Forms forum but I didn't get answere regarding dvt usage in Oracle Forms.
Now I try it here.
Oracle Forms 11g and charts / graphs
====
one of our customers has a forms 6i applications including oracle graphics and is thinking about upgrade to forms 11g.
Oracle graphics has been desupported with 6i and with 9i Oracle BI beans has been recommended.
Forms 10g is the terminal version for Oracle BI beans too (http://www.oracle.com/technetwork/middleware/bbi-beans/overview/oraclebibeanssod2008-129560.pdf).
What's the recommended technology for graphs/charts in Forms 11g?
Is it ADF DVT?
If yes, are there examples how to call them from Forms 11g?
=====
regards
PeterHello Shay,
thank you very much for the link.
I wonder if there any plans from Oracle to provide and support a DVT wrapper in next versions of Oracle Forms 11g
As the customer project is planned for Q2/2011 we still have some time and hope for this :-)
regards
Peter -
Is it possible to record windows application using Mac?
Here's what I'd like to do - I make videos of stock market charts
and the charting software only works on Windows, not Mac.
So I'd like to use a screen capture program to record videos of
the live charts on the Windows charting application, and then edit
those videos using the Mac Pro.
Or if I could use a screen capture program for the Mac and record
the Windows charting program, that would even be better - but not
sure if that's possible with something like Fusion or Parallels
(I haven't purchased either yet).
Is this possible? Which programs would I use for screen capture
and editing? Bottom line: What's the best way to do this?
Brand new to Mac so appreciate any help I can get.
Thank youDepending on the system requirements it seems like it would be perfectly possible to use your charting software and screen capture software within Windows via Parallels or Fusion. You just might want to check over at the web sites for Parallels and Fusion to make sure that the particular software you're using isn't problematic in any way.
Editing on the Mac would just depend on if the file format that you're creating in Windows can be handled in the Mac editing program you're trying to use. Moving the files over to the Mac apps would be simple.
I would avoid trying to use Mac screen captures to take video captures of your Windows window (yikes grammar confusion) unless you had to as it would be adding an element of difficulty but it may be possible. You'd probably have to do some experimentation as you're plowing new ground there. -
Executing Jar application using API
Hi,
Java tutorial [http://java.sun.com/docs/books/tutorial/deployment/jar/apiindex.html] explains how to launch an application bundled in a jar using API.
How can you set the class path of the launched application ?
I tried to have the launched application read a text file that is bundled in the same jar but couldn't.
Thank youHere is a complete example of my problem
c.java launches App.java
import java.io.*;
import java.util.jar.*;
import java.net.*;
import java.lang.reflect.*;
class c
public static void main(String[] args)
URLClassLoader ucl;
URL url;
Class<?> cls;
Method m;
try {
url = new URL ( "jar","","file:/Exec/App.jar!/" );
ucl = new URLClassLoader ( new URL[]{url} );
cls = ucl.loadClass ( "Exec.App" );
m = cls.getMethod ( "main",new Class[]{args.getClass()} );
m.setAccessible(true);
m.invoke ( null,new Object[]{args} );
catch ( Throwable t )
System.out.println("Error launching application\n"+t);
package Exec;
import java.io.InputStream;
public class App
public static void main ( String[] args )
new App().launch();
public void launch()
InputStream is;
byte b[] = new byte[512];
int i;
is = this.getClass().getResourceAsStream ( "Seal.txt" );
try {
i=is.read(b,0,b.length);
System.out.print(new String(b,0,i));
catch ( Throwable t ) {System.out.println(t);}
try { is.close(); } catch (Throwable t) {}
App.jar
META-INF/
META-INF/MANIFEST.MF
Exec/App.class
Seal.txtNotes:
1. Running c.class produces java.lang.NullPointerException
2. If I use is = ClassLoader.getSystemResourceAsStream ( "Seal.txt" ); instead of is = this.getClass().getResourceAsStream ( "Seal.txt" ); and put the jar on the -cp of the command line, it works
Can you please tell me why I am getting the exception ?
Thank you -
Avoid Hard Parsing for executing dynamic SQL using DUAL table Oracle
I want to know if dynamic sql statements involving DUAL table can be modified to remove HARD PARSING.
We have several SQL statements are stored in configuration table, here is sample example
-- query 1 before replacing index values as stored in config table ---
select count(*) from dual where 'REPLACE_VALUE_OF_INDEX_3' IN ('K')
AND (('REPLACE_VALUE_OF_INDEX_13' IN ('1053','1095','1199') ) OR ('REPLACE_VALUE_OF_INDEX_13' IN ('1200') ))
AND 'REPLACE_VALUE_OF_INDEX_2' IN ('6')
AND 'REPLACE_VALUE_OF_INDEX_15' IN ('870001305')
-- query 1 after replacing index values--
select count(*) from dual where 'REPLACE_VALUE_OF_INDEX_10' IN ('K')
AND (('1030' IN ('1053','1095','1199') ) OR ('1030' IN ('1200') ))
AND '2' IN ('6')
AND 'X' IN ('870001305')
-- query 2 before replacing index values as stored in config table --
select count(*) from dual where 'REPLACE_VALUE_OF_INDEX_5' IN ('361A','362A')
AND 'REPLACE_VALUE_OF_INDEX_22' BETWEEN '200707' AND '200806'
-- query 2 after replacing index values--
select count(*) from dual where '3MAA' IN ('361A','362A') AND '201304' BETWEEN '200707' AND '200806'If I got it right you have some (maybe lots of) conditions stored in a table (be patient - it's my interpretation)
create table eb_conditions as
select 1 rid,q'{:5 IN ('361A','362A') AND :3 BETWEEN '200707' AND '200806'}' cndtn from dual union all
select 2,q'{:2 IN ('361A','362A') AND :3 BETWEEN '200707' AND '200806'}' from dual union all
select 3,q'{:1 IN ('K') AND ((:2 IN ('1053','1095','1199') ) OR (:4 IN ('1200') )) AND :3 IN ('6') AND :5 IN ('870001305')}' from dual
RID
CNDTN
1
:5 IN ('361A','362A') AND :3 BETWEEN '200707' AND '200806'
2
:2 IN ('361A','362A') AND :3 BETWEEN '200707' AND '200806'
3
:1 IN ('K') AND ((:2 IN ('1053','1095','1199') ) OR (:4 IN ('1200') )) AND :3 IN ('6') AND :5 IN ('870001305')
and you have to check the conditions using values stored in an array
I used a table instead: the vl at rid = 1 representing the value of bind variable :1 in eb_conditions table and so on ...
create table eb_array as
select 1 rid,'K' vl from dual union all
select 2,'1199' from dual union all
select 3,'200803' from dual union all
select 4,'1000' from dual union all
select 5,'870001305' from dual
RID
VL
1
K
2
1199
3
200803
4
1000
5
870001305
You want to check the conditions using select count(*) from dual where <condition with binds substituted fron the array>
Judging from the title Hard Parsing represents the major problem and you cannot avoid it since every condition to be verified is different from every other condition.
I think your best bet is not to evaluate conditions row by row - context shift cannot be avoided and there might be more than one for each iteration.
So try to do it in a single step:
declare
w_cndtn varchar2(4000);
w_clob clob;
w_cursor sys_refcursor;
one number;
two number;
begin
dbms_lob.createtemporary(w_clob,false);
for rw in (select rid,
max(cndtn) cndtn,
listagg(val,',') within group (order by rn)||',' usng
from (select c.rid,c.cndtn,c.rn,c.bind,
replace(rtrim(c.bind),':'||to_char(v.rid),''''||v.vl||'''') val
from (select rid,
cndtn,
regexp_substr(cndtn,':\d+ ',1,level) bind,
level rn
from eb_conditions
connect by level <= regexp_count(cndtn,':')
and prior rid = rid
and prior sys_guid() is not null
) c,
eb_array v
where instr(c.bind,':'||v.rid||' ') > 0
group by rid
loop
w_cndtn := rw.cndtn;
while instr(w_cndtn,':') > 0
loop
w_cndtn := replace(w_cndtn,trim(regexp_substr(w_cndtn,':\d+ ',1,1)),substr(rw.usng,1,instr(rw.usng,',') - 1));
rw.usng := substr(rw.usng,instr(rw.usng,',') + 1);
end loop;
w_cndtn := 'select '||to_char(rw.rid)||' cndtn_id,count(*) from dual where '||w_cndtn||' union all ';
w_clob := w_clob ||' '||w_cndtn;
end loop;
w_clob := substr(w_clob,1,instr(w_clob,'union all',-1,1) - 1);
open w_cursor for w_clob;
loop
fetch w_cursor into one,two;
exit when w_cursor%notfound;
dbms_output.put_line(to_char(one)||':'||to_char(two));
end loop;
dbms_lob.freetemporary(w_clob);
end;
1:0
2:0
3:0
Statement processed.
Regards
Etbin -
What is AQ$_IP_QTAB_E used for in Oracle B2B 11g
Hi All,
In ip_qtab entries, i find some entries with the corresponding q_name = 'AQ$_IP_QTAB_E', and has a ref to 'IP_IN_QUEUE' (column name = EXCEPTION_QUEUE).
I blv all the b2b exceptions are rendered in IP_IN_QUEUE with user = 'b2berroruser'. Then what is the 'AQ$_IP_QTAB_E' meant for? and what kind of exceptions are captured through it.
Regards,
Sambhav.Whenever you create an AQ Queue Table, a default exception queue gets created and name of the default Exception Queue will be AQ$_<queue_table>E so AQ$IP_QTAB_E is nothing but the default exception queue associated with the queue table ‘IP_QTAB’.
You may contact any DBA in your organization to know more about AQ and it’s functionality.
Regards,
Anuj -
Using psp with oracle text.
we are design a simple document management application using psp with oracle text.
we can query on index and finding the record and display the result on browser page.
but we can't take document link on the same browser page. So we can't take document itself.
We are using Oracle database release 1 text
Thanks for your help.Sorry. The correct one is http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/text.920/a96517/acase.htm#620714
-
I am currently doing a project which requires the execution of Solaris applications through the use of Java Servlet with this Runtime method - Runtime.getRuntime.exec()
This means that if the client PC tries to access the servlet in the server PC, an application is supposed to be executed and launched on the server PC itself. Actually, the servlet part is not an issue as the main problem is the executing of applications in different platforms which is a big headache.
When I tried running this program on a Windows 2000 machine, it works perfectly fine. However, when I tried it on a Solaris machine, nothing happens. And I mean nothing... no errors, no nothing. I really don't know what's wrong.
Here's the code.
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
response.setContentType("text/html");
PrintWriter out = response.getWriter();
Process process; Runtime runtime = Runtime.getRuntime();
String com= "sh /opt/home/acrobat/";
String program = request.getParameter("program");
try
process = runtime.exec(com);
catch (Exception e)
out.println(e);
It works under Windows when com = "c:\winnt\system32\notepad.exe"
When under Solaris, I have tried everything possible. For example, the launching of the application acrobat.
com = "/opt/home/acrobat"
com = "sh /opt/home/acrobat"I have also tried reading in the process and then printing it out. It doesn't work either. It only works when excuting commands like 'ls'
BufferedReader read = new BufferedReader(new InputStreamReader(process.getInputStream()));Why is it such a breeze to execute prgrams under Windows while there are so many problems under Solaris.
Can some experts please please PLEASE point out the errors and give me some advice and help to make this program work under Solaris! Please... I really need to do this!!
My email address - [email protected]
I appreciate it.
By the way, I'm coding and compiling in a Windows 2000 machine before ftp'ing the .class file to the Solaris server machine to run.it is possible that you are trying to run a program that is going to display a window on an X server, but you have not specified a display. You specifiy a display by setting the DISPLAY environment variable eg.
setenv DISPLAY 10.0.0.1:0
To check that runtime.exec is working you should try to run a program that does not reqire access to an X Server. Try something like
cmd = "sh -c 'ls -l > ~/testlist.lst'";
alternatively try this
cmd = "sh -c 'export DISPLAY=127.0.0.1:0;xterm '"
you will also need to permit access to the X server using the xhost + command -
Question: Using Adobe Acrobat - Is it possible to execute JavaScript to report to LMS to track pdf was viewed?
What I would like to do is to create a pdf with an Acknowledgement button that when click will report (via JavaScript) to the LMS (Learning Management System) that the end user viewed/acknowledged the pdf.
Can this be down with JavaScript in this fashion?Thanks, (My fault, as I should have specified this.) Due to legacy reasons I need to use ie, and so I can't use the PrintPdf firefox plugin. So from reading the rest of that thread, the best method does seem to be to get hold of a copy of acrobat, and add a Print() script in each file, and open it in a new tab.
At least it gives me somethigin to try anyway :-) -
Is it possible to cal web dynpro java application using portal application?
Hi,
is it possible to cal web dynpro java application using j2ee portal application?
If possible, how can it be done the parameter mapping over context area?
Regards.you can just append parameter to the url as usual.
you will write some code in the controller to get the parameters and set them to the context. -
Does possible always to run application "Microsoft Excel" using applescript?
Does possible always to run application "Microsoft Excel" using applescript (as application startup script) like this "tell application "Microsoft Excel"
set bounds of window 1 to {0, 22, 1440, 2360}
end tell"?Any ideas/solutions about possibility always to run application "Microsoft Excel" with applescript?
-
Hello,
I have compiled "successfully" a Worker swf that uses some Air classes (like File, FileStream etc).
Then i have embedded it into an AIR desktop application, but when i execute the application (with ADL or even installing and then executing it),
i receive a Security Error from the worker, like if it's context doesn't support that type of operations. Is it correct?
Can't workers use Air features like file write/access even if they are embedded in a Desktop Air Application?
It means that can't workers open o write a file in every scenarios?
Thank you
DanieleSorry. This is the answer:
http://forums.adobe.com/message/4688380#4688380
Maybe you are looking for
-
i am trying to get serial number based on sales order line,i am getting no data since AND WSH.SOURCE_LINE_ID = OOL.LINE_ID is failing,Please help me.Im not getting what wrong im doing SELECT OOH.ORDER_NUMBER ,OOH.FLOW_STATUS_CODE ,OOH.CUS
-
Need a script to move files to folders
Hi guys. I have found a lot of similar threads but not something exactly like what I need. I have a ton of files that need to be sorted into folders of the same name. I found scripts to help me with that however, I have some variations on the files
-
Facebook Sharing Button (Notification Center & Safari)
I have a Retina MacBook Pro, with mountain lion 10.8.2, my tweeter sharing button works fine (Notification center and Safari) but Facebook doesn't, I've deleted my Facebook account and created again but it doesn't seem to work. However if I delete my
-
Unable to use keyboard without Caps Lock on
Hi Guys, I gave my keyboard a little bit of a clean the other day (with relevant wipes) and since then my keyboard is not functioning correctly. It did turn itself on once or twice during the process, so I have clearly hit something I shouldn't have
-
"Invalid export DLL or export format" with Crystal Reports 2008
I've included this sticky because we are seeing many posts in this forum regarding the error Invalid export DLL or export format when exporting to Excel and RTF in .NET applications using the Crystal Reports 2008 .NET SDK. Issue - Exporting a Crystal