Is it possible to call a activeX control from PL/SQL...?

Hi all,
Is it possible to call a activeX control from PL/SQL...? If yes, please give me sample code or any link.
Thanks,
Pal

The LoadLibrary() Win32 call is used to find the physical DLL and load it into memory. This API call first look in the current directory for the file, and then uses the PATH environmental variable to try and find the file.
Thus you need to make sure PATH is properly set. A Win32 process runs in a 32bit VM (Virtual Machine). Been a very long time since I did Windows server side development, but as I recall this VM inherits the default o/s environment (unlike Unix where the parent process environment is inherited).
You can set the environment using the Properties menu of the System desktop icon (or via Control Panel).
However.. Oracle does not run as your user. Typically it is installed as the o/s user Oracle and this user owns all the Oracle processes (listener, instance, etc).
So you will need to make sure that this user's environment is correctly configured... Further more than this, I'm out of my depth. Did a lot of Windows stuff back in the 90's, but for many years now I'm only using Unix/Linux professionally - with Windows being my console platform for playing games at home. :-)
On the Linux/Unix side, I configure the environment variable via the Listener. E.g. Under the entry SID_LIST_LISTENER, I configure the external procedure handler as follows:
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME=/tjs-dev/app/oracle/product/10.2.0)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ANY")
)No idea how this applies and works on the Windows side.

Similar Messages

  • Is it possible to seperate an ActiveX control from the GUI thread?

    I have an activeX control (*ocx) that we use for communicating with external instruments. We are running into some difficulty because if the communication with the instrument is held up it can take up to 30 seconds to timeout and our LabVIEW user interface is frozen in the mean time. The VI that contains the control itself does not have to be visible and all the subVIs that use the ActiveX reference have been set to run in the "instrument" execution system thread, but the GUI still freezes. Its my theory that since the ActiveX control itself is in a container and part of a front panel, all refernces to it must be executed in the GUI thread. I just wanted to confirm that this was the case. Also if anyb
    ody would like to suggest any work arounds, feel free. The only idea I've had so far was to move all use of the ActiveX control to external code, which is not a very attractive solution for us.

    ....Also if anybody would like to suggest any work arounds,
    > feel free. The only idea I've had so far was to move all use of the
    > ActiveX control to external code, which is not a very attractive
    > solution for us.
    ActiveX controls are loaded into the UI thread and all interactions with
    them, property nodes, and invoke nodes, have to take place in the UI
    thread/main thread of LV. So, setting the VIs to run in the
    instrumentation or other execution systems, doesn't do much good since
    each call to the property or invoke will just have to switch back.
    What other choices do you have? If the control doesn't have a UI
    anyway, it would improve matters if the control were simply an
    automation server. The automation server can be set to run in a single
    thr
    eaded apartment, or a MT apartment. Changing it to MT means that you
    will have to deal with protecting the code from being called from
    different threads, and having those calls interleaving and competing
    with one another. When you change it to be MT, it can tie up other
    threads in LV and leave the UI thread alone. Another alternative is to
    change the ActiveX control to spin up its own thread and have a method
    that initiates, and one that reads the results or returns the status.
    Greg McKaskle

  • Is it possible to call method in AM from PL/SQL?

    Hi All,
    I have a really strange requirement i.e. I want to know if I can call a method in an existing AM which is in OAF from the apps database.
    Basically the method is called and runs fine from the controller but we also want to run some batch process and want to know
    if we can somehow call the same AM method from PL/SQL passing the parameters which we pass throgh the controller....?
    If this cannot be done, can anyone give me some alternatives.....any help would be really appreciated.
    Thanks

    Hi
    Not able to understand correctly what you are trying to achieve.But if you want to call a method of AM.What you can do is register a Java Concurrent Program in Apps & then call that concurrent program from front end or through FND_REQUEST.SUBMIT_REQUEST...From front end you can even schedule that program too..
    Hope it helps!!
    Thanks
    AJ

  • Calling BPEL API's from pl/sql

    Is it possible to call the wthdrawTask api from PL/SQL? If so, what would the code look like to do this?
    Bonnie

    I am working on the same thing and I believe you have to use Java to call the api's. I have built a work around so far but I would like to be able to use the built in functionality. Please let me know if you have found anything.
    Cheers MIke

  • Can I call a Java program from a SQL Server Trigger?

    Hello,
    I want to encrypt some data in a database column in SQL Server. Today I am using java code to encrypt the value and store it in the database using JDBC.
    Now I want to use a VB client to store the encrypted value in the SQL Server DB. Since the encryption is handled by a java class, can I write a trigger in SQL Server that while inserting the raw data, calls the java class for encrypting the value and then inserts the encrypted value into the column?
    In general, is it possible to call a java class from a SQL Server trigger?
    Thanks
    Bipin

    Here are 3 examples of code for insert, update and delete:
    CREATE TRIGGER [PLI_INSERT_TRIGGER] ON [dbo].[PLI]
    FOR INSERT
    AS
    Declare @cmd sysname, @code sysname, @list sysname
         Select @code = PLI_K_COD, @list = PLI_K_LISTINO from inserted
         Set @cmd = 'java mirrorDb.Copy PLI INSERT ' + @code + ' ' + @list
         EXEC master..xp_cmdshell @cmd
    CREATE TRIGGER [PLI_UPDATE_TRIGGER] ON [dbo].[PLI]
    FOR UPDATE
    AS
    Declare @cmd sysname, @code sysname, @list sysname
         Select @code = PLI_K_COD, @list = PLI_K_LISTINO from inserted
         Set @cmd = 'java mirrorDb.Copy PLI UPDATE ' + @code + ' ' + @list
         EXEC master..xp_cmdshell @cmd
    CREATE TRIGGER [PLI_DELETE_TRIGGER] ON [dbo].[PLI]
    FOR DELETE
    AS
    Declare @cmd sysname, @code sysname, @list sysname
         Select @code = PLI_K_COD, @list = PLI_K_LISTINO from deleted
         Set @cmd = 'java mirrorDb.Copy PLI DELETE ' + @code + ' ' + @list
         EXEC master..xp_cmdshell @cmd
    you must go "sql server entreprise manager" right click on the table you want to add triggers and select: all activities, manage triggers.
    You have 3 examples: for an insert, for an update and for a delete
    ON [dbo].[PLI] specify the table on which you want to setup trigger.
    FOR DELETE, INSERT, UPDATE specify the event.
    The Declare statement create the variables in which I want to put some values to pass to the java program, for example which table, which event, which key fields.
    the "Select @code = PLI_K_COD, @list = PLI_K_LISTINO from inserted" set the variables with the value of the columns of the table I am interested to read from my java program, for example the variable @code receive the value of the column pli_k_kod (is the key) of the table PLI.
    The "Set @cmd = 'java mirrorDb.Copy PLI DELETE ' + @code + ' ' + @list " prepared the variable @cmd with the java command followed by the package.classname and parameters.
    The EXEC launch the command to the operating system.
    Daniele

  • Can I call any ActiveX control in the Forms under Oracle EBS 11.5.10 ?

    Hi All,
    I have a custom form that works under EBS 11.5.10 (Windows Envoirnment). Is there any way for me to call an ActiveX control on this form? My requirement is to show a URL ( a web application) in Microsoft Web Browser.
    I can successfully call ActiveX outside of the EBS i.e as forms runtime.
    In EBS I get FRM-41344 OLE object not defined for <<block item>> in the current record and then FRM-40735 for exception ORA-305500.
    WEB.SHOW_DOCUMENT is an option to accomplish but ActiveX will provide more control and better look and feel.
    Thanks,
    from Houston.

    Hi;
    Please check below and see its helpful:
    ActiveX controls in Oracle Forms
    ActiveX controls in Oracle Forms
    Forms 6i to Oracle9i Forms Upgrade Reference
    http://www.oracle.com/technology/products/forms/pdf/forms_upgrade_reference.pdf
    Please also check:
    http://www.oracle.com/technology/products/forms/htdocs/forms904FAQ.html
    R12: Publish via Report Manager, Activex Component Can't Create Object [ID 788958.1]
    Hope it helps
    Regard
    Helios

  • Can you use ActiveX controls in PL/SQL?

    I am trying to find a way to start email from within a database trigger. Someone told me I could use an ActiveX Control (custom made by a colleague). Although I have never worked with ActiveX or OLE, I know that it is possible to use them in Forms. Is is also possible to call an ActiveX in PL/SQL? How? And if it is impossible, could someone tell me another way to start email (the application is to be implemented in a Windows NT Network).
    Lots of thanks for any answer or advice,
    Joeri Folman
    null

    Joen,
    I am not totally sure what you mean when you say 'start email', but you should check out the utl_smpt packages in the database. They can be used to send email messages from the database. I believe that you need to have an email server (like sendmail) running on the machine for these to work correctly.
    Check out Oracle Built-In Packages by Steven Feuerstein. Steven also has a real good book on PL/SQL programming that you may find helpful.

  • ActiveX control from Java

    Hi.
    I have few ActiveX components which I want to control from Java.
    I have googled for some solutions and found the following:
    1. Write a C code which will behave as a bridge between ActiveX component and Java (using JNI). But this seems to be rather very complicated :p
    2. I have found one very interesting paper at javaworld (http://www.javaworld.com/javaworld/jw-03-1997/jw-03-avb-tech.html?page=7). They compare ActiveX components and Java Beans there. There is also stated that (for example) it is possible to "develop an ActiveX control in Visual Basic that opens a window and adds a C++ AVI player (an ActiveX control), and then operate the player from a Java applet." However, I can't find any sources or samples which shows how to do such things in practise.
    Can anybody help me with this?
    Many thanks
    Miso

    See Tool at
    http://www.simtel.net/product.php[id]93010[SiteID]simtel.net

  • Is it possible to call a 9i Forms from a 6i Forms ?

    Hello,
    I have a customer using CRM 11.5.10.2 ( Database 9.2.0.6 / 6i Forms) and will be created a functionality in the CRM screen, where end user will call (via button) a custom application running on 9i Forms.
    Customer believes that there is a technical limitation to achieve that. That is, call a 9i Forms from a 6i Forms.
    Is it possible to call a 9i Forms from a 6i Forms ?
    Thank you in advanced for help,
    Marcos Souza.

    I should have thought so, as Forms 9i is exclusively web-driven, so how you launch the URL is immaterial as long as you use a supported browser. As your Forms 9i apps will invariably be on a remote web server, you'll not encounter compatibility issues either. And Forms 6 and 9 development is possible on the same PC using multiple Oracle Homes. Ask Oracle beforehand if you are still not convinced.

  • IP - Is it possible to call exit planning function from ABAP Report..

    Hi All,
    Greetings.
    Is it possible to call exit planning function from ABAP Report (t-code SE38) ? Or I mean is not limited only to be called from ABAP Report, perhaps from BSP / Web-Dynpro / Function Module.
    If somebody here has been doing it before, I'm keen to ask to kindly share it. Particularly how to call and transfer data to that exit function.
    Or if somebody has done in BPS, appreciate if it can be shared too .
    Thanks a lot and have a good day,
    Best regards,
    Daniel N.

    Hi.
    You can achive this as suggested by Mattias in your previous post.
    Lets say you have next data structure:
    CostCenter | Amount | PercentForDistibution |
    Create input ready query in this format. Restrict cost center by variable type range.
    Create WAD with analysis item.
    When you run web page you enter range of cost centers (lets say you will enter 101004 to 101010).
    I assume you have data only for 101004 in your cube (lets say 1000).
    You will see only one record in your webpage.
    CostCenter | Amount | PercentForDistibution |
    101004       | 1000     | NOTHING
    When you create WAD in analysis item properties set "NUMBER_OF_NEW_LINES" to lets say 1 (so in WAD you will see always one blank line for entering new data).
    Just add 6 new records:
    CostCenter | Amount   | PercentForDistibution |
    101005       | NOTHING| 10
    101006       | NOTHING| 30
    101007       | NOTHING| 20
    101008       | NOTHING| 25
    101009       | NOTHING| 5
    101010       | NOTHING| 10
    Then run planning FOX function like this:
    FOREACH Z_COST_CENTER.
    IF {Amount, Z_COST_CENTER} <> 0
    Z_AMNT_TO_DISTRIBUTE = {Amount, Z_COST_CENTER}.
    ENDIF.
    ENDFOR.
    FOREACH Z_COST_CENTER.
    IF {PercentForDistibution Z_COST_CENTER} <> 0.
    {Amount, Z_COST_CENTER} = Z_AMNT_TO_DISTRIBUTE * {PercentForDistibution Z_COST_CENTER}.
    ENDIF.
    ENDFOR.
    It is not perfect FOX, but as an idead, it should work.
    Regards.

  • Is it possible to call a JavaScript function from a dialog?

    Hi there,
    At the moment I have created a dialog, that consists of three text fields that a user fills out, and then clicks next.
    What I am attempting to do, is pass the result of these three textboxes to a JavaScript function I have laying in a file in Web Resources. I've done some research, and I can't find anything.
    So my question is - is it possible to call a JavaScript function from a dialog?
    Thanks for your time.

    Hi,
         It is not possible unfortunately. We can start dialog from script but not the other way unfortunately. However, you can always write server side code for this and it will surely execute. So instead of javascript, write plug-in.
    Hope this helps.
     Minal Dahiya
     blog : http://minaldahiya.blogspot.com.au/
     If this post answers your question, please click "Mark As Answer" on the post and "Vote as Helpful"

  • Calling a weblogic control from a MDB in 10.3

    We have a requirment of calling a weblogic control from a MDB. There is a option to call this using Controls.instantiate. However, the secound level controls are not getting called. It means, I have a Facade, DAO and DB controls [Tipically the Design patern implementation]. I am calling the DAO from Facade and the DAO calls DB.
    when i am trying to call a Facade from a MDB using the Controls.instantiate, the facade is getting called but depending controls are not getting called.
    Please suggest how we can approch this. Is there any way to call a control from a MDB using anotations?
    Thanks,

    Hi Srini,
    it supports but you need to upgrade correctly.
    follow this link
    Beehive Applications
    after upgrade if you found some error like classnotfound error.
    If those are the errors you were also experiencing, then please follow one of these options to resolve this issue:OPTION
    1:Identify all the JARs that contain the beehive classes and explicitly add the jar files to the classpathOPTION
    2:When you created the domain (if you used the Config Wizard), do you make it a "Workshop" domain? If not, try that.That should deploy the Workshop framework (Beehive controls, NETUI, etc) libraries as shared libraries. Then these libraries should be referenced in your applications weblogic.xml and weblogic-application.xml.
    regards,
    Kal

  • Calling (VB)activex object from JSP

    Hi,
    I am trying to call a ActiveX object from JSP using the ActiveXObject method in javascript. I have a dll filed named LPMSFunctions.dll which is registered and is being passed as an argument to the ActiveXObject method. Below is the code i am trying to execute..
    <html>
    <head>
    <title>Script Example</title>
    </head>
    <body>
    <br><br>
    <P align="center">
    <form action="" method="post">
    <script language="JavaScript">
    function comEventOccured()
    try{
    var myobject;
    myobject = new ActiveXObject("LPMSFunctions72.LPFunctions72");
    alert("Inside LPMSFunction72");
    alert(myobject.GetDocPath());
    catch(e)
    alert("Error");
    </script>
    </form>
    </body>
    </html>When i write the above code and save it as an html file it works fine..the activex object is created and the methods are called , but when i copy the same code to a file and save it as jsp file under webapps folder under tomcat it doesnt work and reports a javascript error with the error being:
    Automation server cant create the object at line :
    var SSOObj = new ActiveXObject("LPMSFunctions72.LPFunctions72");
    Please suggest how can I solve the problem. Your help would be sincerely appreciated.
    Thanks
    shravan

    You want to use the Variant to Data node, wiring in an ActiveX constant configured to the interface type you want.
    Brian Tyler
    http://detritus.blogs.com/lycangeek

  • Calling a Web Service from PL/SQL Procedure

    How can you call a web service from a pl/sql package , also is it valid to call a web service from pl/sql according to Fusion Standards..

    Hi,
    On way we can call a web service is to pass the Web Service URL to UTL_HTTP package:
    Sample Web Service URL
    ===================
    lv_url :=
    'http://67.97.189.151:8888/plsqlsample/dbfunc?invoke=placeOrder'
    || '&'
    || 'param0=1'
    || '&'
    || 'param1=1'
    || '&'
    || 'param2=1';
    Sample Call using UTL_HTTP
    =====================
    SELECT UTL_HTTP.request (lv_url)
    INTO lv_result
    FROM DUAL;
    Thank you.
    Regards,
    Balu

  • How to call external Perl routines from Pl/SQL - Urgent

    Available software in the Test Environment:
    1. Sun Unix 2.8
    2. Oracle 8.1.7 ( 8i)
    3. Perl 5
    Iam trying to call/execute perl scripts from PL/SQL using the DEMO_RDBMS.mk. I am able to call C scripts from PL/SQL, but actually want to call Perl scripts.
    The steps followed for for C are -
    1. Create and compile a simple C program to execute a unix command (eg., touch a file).
    2. Make a shared library of the above compiled program (object), i.e., load the compiled object module into a dynamic load library.
    3. Declare the above library in Oracle using SQL*Plus.
    4. Define a PL/SQL function or procedure to call the external routine.
    5. Test the external routine.
    The above steps run good for a C program, but step 2 fails when run for a Perl script.
    When I tried to use the following command for step 2 -
    make -f $ORACLE_HOME/rdbms/demo/demo_rdbms.mk extproc_callback \
    SHARED_LIBNAME=cmd_lib.so \
    OBJS=tst_cmd.pl
    got the following error -
    ld: fatal: file tst_cmd.pl: unknown file type.
    ld: fatal: File processing errors. No output written t cmd_lib.so
    *** Error code 1
    This gives me an indication that demo_rdbms.mk does not understand/interpret Perl scripts. Going through the demo_rdbms.mk suggests the same.
    My questions is - How do we call external Perl scripts/routines from PL/SQL ??
    Do I have to get a different version of "demo_rdbms.mk" ?
    PS: The perl scripts used above (tst_cmd.pl) is error free and works as intended in the unix environment.

    Iam trying to call/execute perl scripts from PL/SQL using the DEMO_RDBMS.mk. I am able to call C scripts from PL/SQL, but actually want to call Perl scripts. Well, C is a "compiler" language and Perl is interpreted. In a sense, C is not "scripts".
    When I tried to use the following command for step 2 -
    make -f $ORACLE_HOME/rdbms/demo/demo_rdbms.mk extproc_callback \
    SHARED_LIBNAME=cmd_lib.so \
    OBJS=tst_cmd.pl
    got the following error -
    ld: fatal: file tst_cmd.pl: unknown file type.
    ld: fatal: File processing errors. No output written t cmd_lib.soI guess this compiles an extproc "stub" with your object file, generating an external procedure. So the object file really needs to be an object file :-)
    My questions is - How do we call external Perl scripts/routines from PL/SQL ??I'd guess you need an embedded Perl interpreter in the external procedure.
    Not much help though I'm afraid :-/
    Cheers
    Fredrik

Maybe you are looking for

  • RElationship of Tables and Fields in cProjects 4.0

    Hi All Iam writing the functional spec for a custom status report requirement in cProjects. I have experienced deifficulty in getting the information on relationship of tables. Can anyone help me in this regard. I could get the list of tables in PLM,

  • Currency translation differences

    Dear SDNers, I have an issue concerning the currency translation differences. In a step, I have, in the "Specific Translation" Tab selected the following characteristics : 1) 2 Items : A (BDC 1) and B (BDC 2) 2) MT cat : M1 and M2, because A and B ha

  • How extensive is Address Book syncing with the SE K800i?

    I've got this K800i from Sony Ericsson after I had checked in the Discussion Area and found that I could tweak the /Applications/iSync.app/Contents/PlugIns/ApplePhoneConduit.syncdevice/Contents/P lugIns/PhoneModelsSync.phoneplugin/Contents/Resources/

  • Black Box Picture Quality

    Hi, Might be one of those strange moments but I am convinced my picture isnt as good on the new box. I remember watching reruns off Lost and was amazed at the quality,and no they werent HD. Iplayer as well seems strange. Anyone else notice a differen

  • Name of org unit.

    which table shud i refer to get the text of org unit?