PL/SQL support Java and VB

We are exploring the possibility of one Oracle DB supporting
both Application written in VB and Java. Do I have to write two
sets of PL/SQL stored procedures/packages so that one will work
with VB codes through OraOLEDB and the other set will support
Java through JDBC?
I appreciate any of your inputs.
Lisa

I think one version of the PL/SQL stored procedure will serve
both VB and Java programs. With Java JDBC, you can also load a
Java stored procedure into the database and then publish it so
that it can be called from another PL/SQL function, of couse in
this case, the Java stored procedure will have a version
different from that used by VB. Hope that this helps.
Good Luck!
Ming Xu.

Similar Messages

  • Does Azure SQL support AD and Security Roles

    I would like to create Reporting Service reports using Azure SQL Database.
    It is possible to attach Azure SQL to Active Directly and use its Security Roles so that I can filter reports based on AD groups of report user?
    Kenny_I

    Hi Kenny,
    Thanks for posting here.
    I suggest you to check this link for details.
    http://www.infoq.com/news/2015/02/azure-sql-ad-media
    http://www.developerfusion.com/article/121561/integrating-active-directory-into-azure/
    http://www.codeproject.com/Articles/749588/Role-Based-Access-Control-with-Azure-Active-Direct
    http://azure.microsoft.com/en-us/documentation/articles/best-practices-security/
    Hope this helps you.
    Girish Prajwal

  • Are Java and Flash (or any plugin; as a matter of fact) supported on Linux Firefox 8? I don't see any lib or plugins directory in the install directory.

    I don't see any plugin support on installing Linux Firefox 8 tar.bz2 package. I've tried symlinking libnpjp2.so and libflashplayer.so to the isntall directory but Firefox doesn't seem to recognize those. I don't find any mention of disabling plugin support (Java and Flash specifically) on Firefox 8 release notes. Is anybody else facing this issue?

    Thanks. Creating a "plugins' directory inside the profile directory, and putting symlinks to plugin files inside the directory solved the problem

  • Why do iPhones/iPad not support Flash Player/Java and what are my alternatives for browsing sites using these plug-ins?

    Why do iPhones/iPad not support Flash Player/Java and what are my alternatives for browsing sites using these plug-ins?

    There are also iSwifter, Photon, Skyfire, etc., some only support Flash some support Java and Flash.
    Adobe never made a version of Flash for iOS and closed their mobile flash division a couple of years ago. You can get Flash on other personal devices but you will be using a 2 year old version that has not been patched for security vulnerabilities.
    When the original iPhone was released Mr. Jobs said it would never run Java as it was old technology and a security risk. Nothing has changed since.

  • PL/SQL to Java Interface - Overwhelming Overhead?

    My company is running Oracle 10g R2. I am currently exploring the use of java classes from PL/SQL. This is because we have multiple code bases, including Java, PowerBuilder (which can interface with Java), and PL/SQL (which can interface with Java).
    Doing some performance testing, I found some rather alarming results. Running a simple java function 1 million times, I tested performance of PL./SQL to java and PowerBuilder to Java.
    In PL/SQL, the 1 mil calls executed in ~120 s.
    In PowerBuilder, the 1 mil calls executed in ~54 s.
    Is it possible that our database is incorrectly configured for best java performance? Not only does it appear that PowerBuilder, a much less pervasive language than PL/SQL, is over twice as fast, but the PB test was run on my laptop, which is no where near as powerful as the database server that the PL/SQL procedure ran against, leading me to believe that the performance gap is actually much wider.
    Anyone have any tips to improve the performance? Or is this simply the nature of the beast? I can't seem to find any posts on the net about people experiencing huge PL/SQL to Java overhead, so I'm hoping it is just something I am doing wrong.
    Thanks for your help!
    -Brett Birschbach

    Below is my test code. Any suggestions are appreciated.
    Thanks!
    -Brett
    ==================================================
    Java Class:
    public class TestConvert {
        // For running straight from Java
        public static void main(String[] args){
            System.out.println(callAndTime());
        // For running 1 mil calls with only one call from PowerBuilder or PL/SQL
        public static long callAndTime(){
            TestConvert.convertEsnDecToHex("13005454488");
            long start = System.currentTimeMillis();
            for (int i = 0; i < 1000000; i++){
                TestConvert.convertEsnDecToHex("13005454488");
            long end = System.currentTimeMillis();
            return end-start;
        // For performing the actual work
        public static String convertEsnDecToHex(String esn) {
            String result = null;
            result = Integer.toHexString(new Integer(esn.substring(0, 3)).intValue());
            result += Integer.toHexString(new Integer(esn.substring(3)).intValue());
            return result.toUpperCase();
        // Non-static wrapper necessary for PowerBuilder
        public String callAndTimeNS(){
            return String.valueOf(callAndTime());
        // Non-static wrapper necessary for PowerBuilder 
        public String convertEsnDecToHexNS(String esn){
            return convertEsnDecToHex(esn);
    }PL/SQL Script for 1 Million Java Calls:
    DECLARE
      var       VARCHAR2( 20 );
      t_begin   NUMBER;
      t_end     NUMBER;
    BEGIN
      var := testconvert.convertesndectohex( '13005454488' );
      t_begin := DBMS_UTILITY.get_time;
      FOR i IN 1 .. 1000000
      LOOP
        var := testconvert.convertesndectohex( '13005454488' );
      END LOOP;
      t_end := DBMS_UTILITY.get_time;
      DBMS_OUTPUT.put_line( var );
      DBMS_OUTPUT.put_line(  ( t_end - t_begin ) / 100 || ' seconds' );
    END;
    /PowerBuilder for 1 Million Java Calls:
    EJBConnection lEJBConn
    TestConvert lnv_test
    String ls_ret
    Long i
    Time t_begin, t_end
    lEJBConn = CREATE EJBConnection
    lEJBConn.CreateJavaInstance( lnv_test, "TestConvert")
    ls_ret = lnv_test.convertesndectohexns("13005454488")
    t_begin = now()
    FOR i = 1 TO 1000000          
         ls_ret = lnv_test.convertesndectohexns("13005454488")
    NEXT
    t_end = now()
    MessageBox("Hex Version",ls_ret + " - " + String(SecondsAfter(t_begin, t_end)) + " seconds")
    DESTROY lEJBConn

  • Does anyone know if the ipad 2 supports java

    im concidering buying an ipad 2 but i enjoy playing pogo games i wanted to know if the ipad 2 supports java and flash

    There are some Apps which provide some support for Flash (iSwifter, Puffin, etc.) Check the App store for details.

  • PL/SQL, Java and  Current User

    Hi there,
    I'm trying to get the following to work :
    Schema HR
    Contains :
    Procedure P_TST_01
    ( p_blob blob
    , p_dir varchar2
    AUTHID CURRENT_USER
    IS
    LANGUAGE JAVA
    NAME 'FileUtil.write(p_blob,p_dir)';
    Java source FileUtil (also with the AUTHID CURRENT_USER clause)
    Now Scott runs (as scott):
    Runs HR.p_tst_01(blob,'/users/scott/')
    When I give HR acess rights to /users/scott , the file gets written to the directory
    However when HR has no rights, but scott has
    then the JavaPolicy is complaining.
    My question is : why isn't the 'authid current_user' clause working as expected.
    Thanks in advance,
    Art

    >>
    begin
    dbms_java.grant_permission
    ('SCOTT',
    'java.io.FilePermission',
    '/users/scott',
    'read,write,execute,delete');
    end;
    connect hr/hr@orcl
    create or replace procedure p_write_blob
    ( p_blob in blob
    , p_dir in varchar2
    AUTHID CURRENT_USER
    IS
    LANGUAGE JAVA
    NAME 'FileUtil.writeBlob(oracle.sql.BLOB,java.lang.String);
    //FileUtil Java source is also created with AUTHID CURRENT_USER
    create public synonym p_write_blob for p_write_blob;
    grant execute on p_write_blob to public;
    connect scott/tiger@orcl
    declare
    pl_blob blob;
    begin
    select img
    into pl_blob
    from images
    where id = 1
    p_write_blob(pl_blob,'/users/scott');
    end;
    java.security.AccessControlException: the Permission (java.io.FilePermission read) has not been granted to HRI expected that since Scott has access rights to /users/scott and the Procedure had invoker rights, that Scott would be writing to the directory.
    However, it looks like invoker rights have no influence on JavaPolicies.

  • I am going to buy a new macbook pro..but i am new to mac..so i have one question...does mac os supports "java,mainframe,dot net...and etc developer programs..."....??? thanx in advance....:)

    thanx

    mohan2see wrote:
    oh thanx for the reply....actually i was worked in information technology sector company...i worked on java and mainframe platform....so if i buy an apple macbook pro and if it doesn't supports those developer programs i need to buy an pc......so i need to be confirmed....if u know abt this please explain me detailed...thanx again...:)
    Are you being serious?
    If you've done any programming in Java then I'd really have hoped you already realised it is a platform independent programming language, that was Sun's original intention when they created it ,  to be able to run compiled code on any Java Virtual Machine regardless of the platform:
    http://en.wikipedia.org/wiki/Java_%28programming_language%29
    And as for "dot net" - do you not realise that this is purely a MS Windows development framework?!!
    http://en.wikipedia.org/wiki/.NET_Framework
    Just to be clear, (and I realise I'm being picky here, given that English isn't likely to be your first language), they are not "developer programs", they are programming languages or frameworks.
    And for further clarification, the Mac operating system does support Java development, and does not support .Net (unless you install Windows on it!)
    I can't comment on the 'mainframe' bit you're referring to without more detail.

  • Java and MS SQL Server 2000 problem, please help

    please help me. I am using java and MS SQL Server 2000, and I'm trying to access and verify the login. I'm getting the following error message: [Microsoft][ODBC SQL Server Driver]Invalid Descriptor Index
    Can any please help in this regard.
    String userNumber = (String)userNumField.getValue();
    char[] userPasswordArray = userPasswordField.getPassword();
    String userPassword = new String(userPasswordArray);
         try {
                Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                java.sql.Connection connection = java.sql.DriverManager.getConnection("jdbc:odbc:Dikolobe_Data");
                java.sql.PreparedStatement statement = connection.prepareStatement(
                        "SELECT USER_NUMBER, USER_PASSWORD, USER_CLASS, USER_STATUS " +
                        "FROM SYS_USER " +
                        "WHERE (USER_NUMBER = ? AND USER_PASSWORD = ?);");
                statement.setString(1, userNumber);
                statement.setString(2, userPassword);
                java.sql.ResultSet result = statement.executeQuery();
                if(result.next()) {
                    String userStatus = result.getString(4);
                    if(userStatus.equals("logged on")) {
                        String loginErrorMessage = "User with number: " + userNumber + " is already logged on.";
                        javax.swing.JOptionPane loginErrorPane = getNarrowOptionPane(72);
                        loginErrorPane.setMessage(loginErrorMessage);
                        loginErrorPane.setMessageType(javax.swing.JOptionPane.ERROR_MESSAGE);
                        javax.swing.JDialog loginErrorDialog = loginErrorPane.createDialog(null, "Login Error");
                        loginErrorDialog.setVisible(true);
                    else {
                        String userClassification = result.getString(3);
                        if(userClassification.equals("Administrator")) {
                            AdminHomePage newAdminHomePage = new AdminHomePage();
                            newAdminHomePage.setVisible(true);
                        else if(userClassification.equals("Educator")) {
                            EduHomePage newEduHomePage = new EduHomePage();
                            newEduHomePage.setVisible(true);
                        statement = connection.prepareStatement(
                                "UPDATE SYS_USER SET USER_STATUS = ? " +
                                "WHERE USER_NUMBER = ?");
                        statement.setString(1, "logged on");
                        statement.setString(2, userNumber);
                        statement.executeUpdate();
                        dispose();
                }

    Doesn't the following link give you enough information?
    http://www.google.com/search?q=invalid+descriptor+index
    Anyway .. This error means that the given ResultSet column index which you're trying to retrieve the value from is out of the range.

  • Java and MS-Access: Login Authentication trough SQL

    Hi all,
    I am currently new to the world of java and would like to ask something for a school project.
    We have an MS-Access database setup which we want to use as an login-database.
    We can select from the tables in the database using a standard SQL query, and print out the output, but we do not know how to combine the java-string "UserID" and "Corrpass" field to compare them with the database to check if the entered login is correct.
    I know this question is a little bit on the SQL side, but could you please help me? The code for printing out Usernames was founfdon the bottom of this webpage:
    http://www.ster.be/java/java6.html
    Our Microsoft Access Database Layout:
    MS-Access Database
    Table: Users
    | UserID -AutoNumber : UserID (Login code)
    | Corrpass -text :The Correct Password for the above UserID
    | UserVoornaam -text : First name
    | UserAchternaam -text : Surname
    All help/welcome/advise/flaming posts are welcome.

    Hi all,
    I am currently new to the world of java and would like to ask something for a school project.
    We have an MS-Access database setup which we want to use as an login-database.
    We can select from the tables in the database using a standard SQL query, and print out the output, but we do not know how to combine the java-string "UserID" and "Corrpass" field to compare them with the database to check if the entered login is correct.
    I know this question is a little bit on the SQL side, but could you please help me? The code for printing out Usernames was founfdon the bottom of this webpage:
    http://www.ster.be/java/java6.html
    Our Microsoft Access Database Layout:
    MS-Access Database
    Table: Users
    | UserID -AutoNumber : UserID (Login code)
    | Corrpass -text :The Correct Password for the above UserID
    | UserVoornaam -text : First name
    | UserAchternaam -text : Surname
    All help/welcome/advise/flaming posts are welcome.

  • ABAP and Java Stack: Which to choose/supported standards and components?

    Hello,
    I am trying to understand the role of the two stacks in NW. Maybe anyone has a few
    hints where I can find answers to the following questions:
    - An overview of supported Standards (Java 5 since when?)
    - An overview of which component runs on which stack? Portal->Java, Integration Server->ABAP and so on.
    - Guidelines when to install both stacks and when to use just one stack? When do I use which one?
    - Has SAP an stategy towards an one Stack solution (possibly Java?)
    Best regards and thanks for any pointers!
    Stefan

    An overview of supported Standards (Java 5 since when?)
    Go to service.sap.com/pam
    Product Availability Matrix will tell you about supported version and platforms.
    An overview of which component runs on which stack? Portal->Java, Integration Server->ABAP and so on.
    Usually the question goes the other direction: what stacks we need for implementation of a particular function?
    More and more products require ABAP backend and Java frontend.
    For example Employee Self Service has been transerred from ABAP only ITS based to ABAP backend and Java frontend.
    Same with SRM.
    Guidelines when to install both stacks and when to use just one stack? When do I use which one?
    Same as above, driven by business requirements, not technology.
    Has SAP an stategy towards an one Stack solution (possibly Java?)
    No. Core business functions are still being developed on ABAP and interface, GUI etc utilize JAVA.
    Regards,
    Slava

  • Oracle SQL Developer installation and Java

    I finished installing Oracle Client without problems. Opened up SQL Developer for the first time and he asks me for the full Java.exe pathname.
    That's fine, but when I input the java.exe I just get asked again, no errors. Repeat until infinity.
    I installed the newest Java SDK and tried both 32-bit and 64-bit versions (jdk 7u4). I even tried installing Oracle Client version 11.1.0 AND 11.2.0 to see if that make any difference, but it's all the same.
    I have uploaded a screenshot if that helps: http://i50.tinypic.com/mjtqte.jpg
    Any ideas?
    Regards,
    Gunnar Óskarsson

    Hi Gunnar.
    Documentation:
    http://docs.oracle.com/cd/E25259_01/doc.31/e26419/install.htm#sthref8
    Ideas:
    -Do not use java7
    -Use JDK not JRE
    -On widows there is a version of SQLDeveloper including java 6 jdk
    -Instant client is not required - but if you want to use it use at least 11.2.0.2
    -Updated SetJavaHome in sqldeveloper\sqldeveloper\bin\sqldeveloper.conf to point to the JDK
    -There is some confusion over 32bit and 64bit Operating System, java and SQLDeveloper, you can search the forum for details, eg: thread title: "Unable to start Oracle SQL Developer"
    -Turloch
    SQLDeveloper Forum

  • How to connect Java and Microsoft SQL Server 2000

    hi,
    could anyone please teach me how to connect Java and SQL Sever 2000?? if possible could you guys provide me with an example??? i could hardly find any relevant resources about it...
    Thanks ~!

    thanks for the information...
    by the way hv any working module on it?? i'm new to
    both Java and Microsoft SQL Server... Thanks againFirst things first... you should read this:
    http://java.sun.com/docs/books/tutorial/jdbc/
    This is microsofts official JDBC Driver: http://www.microsoft.com/sql/downloads/jdbcregister.asp
    Install it and the documentation has some usage examples

  • SQL server 2000 and java

    Hi all,
    i am about to developpe a java application that has to do the following tasks:
    1. detect all SQL server existing databases .
    2. for every database (SQL server database) be able to connect to the chosen database and detect all the tables Regarding every SQL server database.
    for the first point ,i thought about searching my hole system for the files of SQL server databases with the criteria of its extension (.SQL serverEXtension database file). But i don't know if this method is efficient and if there are not other methods for this purpose ?!
    for the second point i'm wondering if there exist methods or Classes that return the Set of all the tables within a given SQL server database ; and also return the Set of the Fields (Attributes )within this given database.
    It remains one important point: how to connect to a SQL Server database from a java Program.
    I'm waiting for your hints and ideas... Thanks indeed.

    Try DatabaseMetaData for databases, tables and fields. There's even more information you can get from it, check the API documentation.
    Alin.

  • Inconsistent java and sql object types

    Hi,
    I have run into error "Inconsistent java and sql object types"
    while mapping a java class to a sql object type. The java class
    is just a duplicate of sql data structure and I pretty much
    follow the JDBC Developer's GUide's examples (20-43 to 20-45)
    to create the mapping java class.
    Any one runs into simliar problem or any clues?
    Thanks,
    Ed
    Exception in thread "main" java.sql.SQLException: Inconsistent java and sql object types: InstantiationException:
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:210)
    at oracle.sql.STRUCT.toClass(STRUCT.java:433)
    at oracle.sql.STRUCT.toJdbc(STRUCT.java:366)
    at oracle.jdbc.oracore.OracleTypeUPT.unpickle80rec
    (OracleTypeUPT.java:236)
    at
    oracle.jdbc.oracore.OracleTypeCOLLECTION.unpickle80rec_elems
    (OracleTypeCOLLECTION.java:553)
    at oracle.jdbc.oracore.OracleTypeCOLLECTION.unpickle80rec
    (OracleTypeCOLLECTION.java:383)
    at oracle.jdbc.oracore.OracleTypeCOLLECTION.unpickle80
    (OracleTypeCOLLECTION.java:329)
    at oracle.jdbc.oracore.OracleTypeCOLLECTION.unlinearize
    (OracleTypeCOLLECTION.java:218)
    at oracle.sql.ArrayDescriptor.toJavaArray
    (ArrayDescriptor.java:501)
    at oracle.sql.ARRAY.getArray(ARRAY.java:197)

    The safest way would be to use JPublisher to generate the type classes. In your application, you can just use the generated code to manipulate the object.

Maybe you are looking for