Solved

STORED PROCEDURE

Posted on 2007-04-04
3
831 Views
Last Modified: 2012-08-13
CREATE OR REPLACE PROCEDURE host_command (p_command  IN  VARCHAR2)
AS LANGUAGE JAVA
NAME 'Host.executeCommand (java.lang.String)';


I can create a JAVA STORED PROCEDURE in Oracle using the above in Oracle..Is there any way to create something as below
CREATE OR REPLACE PROCEDURE host_command (p_command  IN  VARCHAR2)
AS LANGUAGE VISUAL BASIC
NAME 'Host.executeCommand (java.lang.String)';
0
Comment
Question by:suhinrasheed
3 Comments
 
LVL 8

Accepted Solution

by:
gvsbnarayana earned 250 total points
ID: 18849288
Visual Basic compiler is not yet included into Oracle core programmes and it's not expected even.
You can create stored procedures in only using Java
HTH
Regards,
Badri.
0
 
LVL 27

Assisted Solution

by:sujith80
sujith80 earned 200 total points
ID: 18849493
External procedures can be written in either C or Java. In a windows environment, You can call a dll using this method.

The following links will be of help.

http://download-west.oracle.com/docs/cd/B19306_01/appdev.102/b14251/adfns_extern_proc.htm#ADFNS010
http://www.unix.org.ua/orelly/oracle/prog2/ch21_01.htm
0
 
LVL 22

Assisted Solution

by:Ivo Stoykov
Ivo Stoykov earned 50 total points
ID: 18849564
Hello suhinrasheed,

you cannot, but you could use external program to handle what you need...

Regards,

ivostoykov
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that useā€¦
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now