Oracle 10.2 Loadjava for SQLJ says "..uses or overrides deprecated API"

I just upgraded to 10.2 from 8.1.7 (platform is AIX 5L) and sqlj program was INVALID after upgrade.Running loadjava on the program seems successfull, and java class is VALID, but also get:
Note: MQBridge uses or overrides a deprecated API.          
Note: Recompile with -deprecation for details.
Well, after lots of reading to try and assess the significance of the error and identify the deprecated API, I think the sqlj script on UNIX will allow me to issue the 'deprecated' option to perhaps identify the old API. However, the I'm having trouble even getting the sqlj to work (I think it's in $OH/oc4j/bin with non-executable permissions) and the README in $OH/sqlj/demo seems incorrect.
The APIs in the program are:
import oracle.sqlj.runtime.Oracle
import java.sql.SQLException
import oracle.sql.CLOB
import com.ibm.mq.*
import java.math.BigDecimal
import java.util.*
import javax.swing.event.*
Perhaps someone versed in this arena can provide some guidance in what seems to be a straighforward problem (or maybe not a problem)? Sure would appreciate it!

HI,
In my opinion, upgrading the RDBMS might not suffices.
I'd re-install SQLJ 10.2f rom the companion CD and check that its working fine in your environment using the following command:
$ sqlj -version
Oracle SQLJ Release 10.2.0.1.0 Production
Copyright (c) 1997, 2005, Oracle Corporation. All Rights Reserved.Oracle furnishes the following code samples under
$ORACLE_HOME/sqlj/demo/ to check your environment:
connect.properties // to be customized to your environment
TestInstallCreateTable.java
TestInstallJDBC.java
TestInstallSQLJ.sqlj
TestInstallSQLJChecker.sqlj
Then make sure that:
- the executables (script and binaries) are available under $ORACLE_HOME/bin.
- the PATH environment variable must include $ORACLE_HOME/bin.
- the CLASSPATH environment variable must include the following:
- the JDBC jars (ojdbc14.jar, or clases12.jar)
- ORACLE_HOME/sqlj/lib/translator.jar
- ORACLE_HOME/sqlj/lib/runtime12.jar
As described in chapter 10 of my book, here is how to use them to check
your environment:
// create a table for test purposes
$ javac TestInstallCreateTable.java
$ java -Doracle.net.tns_admin=$TNS_ADMIN TestInstallCreateTable
SALES table created
$
// Check JDBC install
$ javac TestInstallJDBC.java
$ java -Doracle.net.tns_admin=$TNS_ADMIN TestInstallJDBC
Hello JDBC!
$
// Check the SQLJ translator, runtime, and the application
$ sqlj TestInstallSQLJ.sqlj
$ java -Doracle.net.tns_admin=$TNS_ADMIN TestInstallSQLJ
Hello, SQLJ!
$Then check that SQLJ is installed in the database using
SQL> describe sys.sqljutlOtherwise, run the sqljutl.sql script to install it. In addition, the following query checks the availability of the SQLJ translator in the database (using system or a DBA account)
SQL> select object_type, status from all_objects where
2 dbms_java.longname(object_name) ='oracle/sqlj/checker/JdbcVersion';See chapter 10, 11 and 12 of my book for further coverage..
Kuassi, http://db360.blogspot.com

Similar Messages

  • Need Oracle 12c whitepaper recommendation for upgrade assessment

    Hi:  Good morning!
    This is not an urgent request, but appreciate your recommendation!  I need documents about Oracle 12c (our os is IBM AIX power system, 6.1, 64 bit), because we are planning upgrade current oracle database 11.2.0.4 to 12c, we need a thorough assessment to 12c  since 12c introduced many innovative, new features, major component changes, as well as impact to java application.  The document I have so far is-
    1. database upgrade guide
    http://docs.oracle.com/database/121/UPGRD/preup.htm#UPGRD002
    2. Deprecated API (oracle database JDBC Java API Reference)
    https://docs.oracle.com/database/121/JAJDB/deprecated-list.html
    3. Tom Kytes Top 12 new features for Oracle 12c (from web).
    There are many things to look for.  I want to know the major things I should focus in new features & impact to java application.
    what document can provide me the info!
    thank you very much in advance!

    Hi all:
    Can anyone gives me advice after upgrade from 11.2.0.4 database to 12c database, which 'core-DB new features' impact to Java application more, and that we should focus on assessment?
    There are too many new & innovative features introduced in 12c. Should I convert our single instance database (on non-cluster server) to 'CDB/PDB' during upgrade? Is it a 'Must-to-do' or not?  We have a physical standby DB, how to do with the standby?
    Oracle Documents I reviewed are: 'Oracle 12c database document', 'Oracle 12c Java Developer's Guide'. I recommend this to our developers based on 'Oracle 12c Java Developer's Guide':
    Oracle JVM  (  JDK6, JDK7 support in 12)
    [note:need to check jvm components for application: library manager, compiler, interpreter, class loader, server-side JDBC internal driver, server-side SQLJ, translator, system classes; Java stored procedure, SQLJ, JDBC, etc]
    2. Oracle Memory Space management      (         garbage collection)
    3. Multithreading
    4. Footprinting
    5. Dynamic class loading
    6. JNDI class support
    7. Auditing for Java ( alert/execute/audit/grant is enabled in auditing)
    8. Support for logging
    9. Support for customizing default java.security resource
    10. Improved for debugging
    However, I may lost myself in core-DB new features for:
    1. advanced analytics features
    2. OLAP features
    3. Partitioning enhance
    4. Performance for zero effort
    5. Compression and Archiving features (depends on application tables design)
    6. Database Overall
       - Integrate With Operating System Processor Groups
       - Oracle Data Pump Support
       - Multitenant Architecture (Not sure)
       - PDBs Backup and Recovery  (Not sure)
       - PDBs Point-in-Time Recovery  (Not sure)
       - PDBs Resource Plans  (Not sure)
       - Utilities
    7. High Availability
       - Application Continuity
       - Transaction Guard
       - Logical Replication
       - Global Data Services
       - Online Operations
       - Oracle Data Guard Enhancements (Depends on our standby design)
    8. Manageability
       - PGA Size Limit
       - Resource Manager Runaway Query Management
       - Spot ADDM
    9. General
       - DBMS_QOPATCH
    10. Performance
    11. Security enhance
    12. Improve Security Manageability, Administration and Integration
        - Database vault
    Is my above suggestion (text in red-color) correct?
    Thank you very much!

  • TS3988 My icloud account is not verifying it says check my mail witch I have done and I get a message say your iPhone for has been used to set up and Icloud account but still can not use the icloud can anybody help me.

    My icloud account is not verifying it says check my mail witch I have done and I get a message say your iPhone for has been used to set up and Icloud account but still can not use the icloud can anybody help me.

    Be sure you are checking the email account that you used to set up the Apple ID you used to create the iCloud account.  Also, be sure to check your spam/junk folder as well as your inbox.  The email you should receive looks like the image below.  When you get it, click the Verify Now link.
    If it still isn't there, try going to https://appleid.apple.com, click Manage your Apple ID, sign in, click on Name, ID and Email addresses on the left, then to the right look for a link to resend the verification email.

  • Can an Oracle VM be converted for use in VMWare or VirtualBox?

    Does anyone know how to convert / export an Oracle VM for use in VMware Server or in VirtualBox? I've successfully converted VMware images to OVM and VirtualBox images to OVM, but I've not been able to figure out how to get an Oracle VM to convert for use in VMWare or in VirtualBox.
    -Dan
    Edited by: user723595 on Apr 16, 2010 4:10 PM

    The ovs-agent will recognize any strorage device on your VM server which:
    a) is unused and free of any partition, so basically a blank drive
    b) the drive must be recognized by the multipath daemon, so it must be present under /dev/mapper
    So basically, you can't throw in a big drive, partition it, install OVM on it and hope to use the remaining space for your storage pool, you will need the system to recognize at least two independent drives - how ever you going to achieve that is up to you, but the most easy way is to have indeed at least two separate drives installed.

  • Error while instaling the MEP server for Single tier, using Oracle 10g DB

    createDatabaseTables:
    getAppServer:
    ============================================================
    Sun Java System Mobile Enterprise Platform
    ============================================================
    checkAppServer:
    defaultDomainExists:
    checkDefaultDomain:
    Found "domain1", do you want to delete it? [y/n]
    y
    shouldDeleteDefaultDomain:
    deleteDefaultDomain:
    The domain (domain1) isn't running.
    Domain domain1 deleted.
    setup:
    getDomainProperties:
    Enter the name for the new Application Server domain (default: mep)
    mep
    Enter the Admin Port for the new domain [mep] (default: 4848)
    Enter the HTTP Port for the new domain [mep] (default: 8080)
    Enter the HTTPS Port for the new domain [mep] (default: 8181)
    Enter the admin password for the new domain (default: adminpass)
    remoba123
    installGateway:
    init:
    getDomainProperties:
    createDomain:
    Using port 4848 for Admin.
    Using port 8080 for HTTP Instance.
    Using default port 7676 for JMS.
    Using default port 3700 for IIOP.
    Using default port 8181 for HTTP_SSL.
    Using default port 3820 for IIOP_SSL.
    Using default port 3920 for IIOP_MUTUALAUTH.
    Using default port 8686 for JMX_ADMIN.
    Domain being created with profile:developer, as specified by variable AS_ADMIN_P
    ROFILE in configuration file.
    Security Store uses: JKS
    Domain mep created.
    startDomain:
    Attempting to start domain...
    Waiting for domain to finish initializing
    Waiting for status to be: mep running
    init:
    configureDomain:
    Copying files to installation directory ...
    Copying 53 files to F:\Sun\AppServer\domains\mep\ds
    Copying 101 files to F:\Sun\AppServer\domains\mep\lib
    Copying 1 file to F:\Sun\AppServer\domains\mep\lib
    Copying 1 file to F:\Sun\AppServer\domains\mep\lib
    Copying 1 file to F:\Sun\AppServer\domains\mep\lib
    Copying 1 file to F:\Sun\AppServer\domains\mep\lib\classes\META-INF
    init:
    copyOracleJar:
    Copying 1 file to F:\Sun\AppServer\domains\mep\lib\ext
    Copying 1 file to F:\Sun\AppServer\domains\mep\lib\ext
    server.java-config.classpath-suffix = F:\Sun\AppServer/domains/mep/ds/skin/user/
    messages/i18n;F:\Sun\AppServer/domains/mep/ds/skin/admin/messages/i18n
    Command create-jvm-options executed successfully.
    Command create-jvm-options executed successfully.
    Command create-jvm-options executed successfully.
    Command create-jvm-options executed successfully.
    Command create-jvm-options executed successfully.
    Command create-jvm-options executed successfully.
    Command create-jms-resource executed successfully.
    Command create-jmsdest executed successfully.
    Command create-jms-resource executed successfully.
    configure:
    configureMySQL:
    configureOracle:
    Command create-jdbc-connection-pool executed successfully.
    Command create-jdbc-connection-pool executed successfully.
    server.resources.jdbc-connection-pool.musicdb_jdbc_pool_oracle.match-connections
    = true
    configureRealm:
    Command create-jdbc-resource executed successfully.
    Command create-jdbc-resource executed successfully.
    Command create-auth-realm executed successfully.
    deployEAR:
    stopDomain:
    Domain mep stopped.
    startDomain:
    Attempting to start domain...
    Waiting for domain to finish initializing
    Waiting for status to be: mep running
    Still waiting for status to be: mep running
    Command deploy executed successfully with following warning messages: WARNING:
    JDO76611: Cannot connect to database via JNDI name 'jdbc/gw': java.sql.SQLExcept
    ion: Connection could not be allocated because: ORA-01017: invalid username/pass
    word; logon denied.
    installJCAconnectors:
    stopDomain:
    Domain mep stopped.
    Aug 22, 2008 8:22:55 PM com.sun.jbi.installer.JBICoreInstaller main
    INFO: OpenESB JBI Core Components successfully installed in F:\Sun\AppServer\jbi

    The error suggests that the oracle gwdb database was incorrectly created with the wrong username and password for the database. The installation expects the gwdb database to be created with the username of "gwdbuser" and password of "gwdbpass". I would check the login credentials for this database. Also the installation expects the musicdb database to be created with the username of "musicdbuser" and password "musicdbpass". You may want to check this as well.
    JDO76611: Cannot connect to database via JNDI name 'jdbc/gw': java.sql.SQLExcept
    ion: Connection could not be allocated because: ORA-01017: invalid username/pass
    word; logon denied.
    Alan Frechette
    Sun MEP SQA Engineer

  • When ever I try to watch any video, from a link or YouTube say, using Firefox, I get a message 'An error as occurred. Please try again later'. It has been this way for some weeks. I don't have this problem using Safari or Opera.

    When ever I try to watch any video, from a link or YouTube say, using Firefox, I get a message ‘An error as occurred. Please try again later’. It has been this way for some weeks. I don’t have this problem using Safari or Opera.

    I believe that our “Werbung problem” adds an additional second hyperlink to the pop-up window. This second link is activated whenever you trigger a saved hyperlink to a Mail.com site.
    I had the same problem and eliminated it by deleting all bookmarks, hyperlinks and automatic links that take firefox to a mail.com address. So I just deleted all bookmarks I had saved for mail.com. I also changed my home page link because it also went to my email at mail.com. I then did a warm boot, opened firefox and re-saved my bookmarks and homepage to the desired addresses. Good luck.

  • Problem for using oracle xml parser v2 for 8.1.7

    My first posting was messed up. This is re-posting the same question.
    Problem for using oracle xml parser v2 for 8.1.7
    I have a sylesheet with
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">.
    It works fine if I refer this xsl file in xml file as follows:
    <?xml-stylesheet type="text/xsl" href="http://...../GN.xsl"?>.
    When I use this xsl in pl/sql package, I got
    ORA-20100: Error occurred while processing: XSL-1009: Attribute 'xsl:version' not found in 'xsl:stylesheet'.
    After I changed name space definition to
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> in xsl file, I got
    ORA-20100: Error occurred while processing: XSL-1019: Expected ']' instead of '$'.
    I am using xml parser v2 for 8.1.7
    Can anyone explain why it happens? What is the solution?
    Yi

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Steven Muench ([email protected]):
    Element's dont have text content, they [b]contain text node children.
    So instead of trying to setNodeValue() on the element, construct a Text node and use the appendChild method on the element to append the text node as a child of the element.<HR></BLOCKQUOTE>
    Steve,
    We are also creating an XML DOM from java and are having trouble getting the tags created as we want. When we use XMLText it creates the tag as <tagName/>value rather than <tagName>value</tagName>. We want separate open and close tags. Any ideas?
    Lori

  • Sql_trace does not work for Java app using Oracle JDBC thin driver

    Hi,
    I'm using Oracle 8.1.7. I enabled sql trace at instance level by setting sql_trace and timed_statistics to true in init.ora. I restarted the db instance. I wrote a stand-alone java application which used Oracle JDBC thin driver(classes12.zip) to make a connection to my db instance, do some select statements, and close the connection. There were no trace files generated in the folder specified by udump_dest variable. However, if I used sqlplus or dba studio, I saw trace files generated. Has anyone got Oracle sql trace work for JDBC calls from java apps.
    Thanks in advance!

    Hi,
    I'm using Oracle 8.1.7. I enabled sql trace at instance level by setting sql_trace and timed_statistics to true in init.ora. I restarted the db instance. I wrote a stand-alone java application which used Oracle JDBC thin driver(classes12.zip) to make a connection to my db instance, do some select statements, and close the connection. There were no trace files generated in the folder specified by udump_dest variable. However, if I used sqlplus or dba studio, I saw trace files generated. Has anyone got Oracle sql trace work for JDBC calls from java apps.
    Thanks in advance!

  • When I try to charge the phone it says for faster charge use original cable

    Just got my Note 3 late yesterday afternoon. When I try to charge the phone it says for faster charge use original cable and that is what I am doing. Even tried a different charger and it says the same thing so I have not been able to use my phone at all. Please help. I am going back to the store today when they open. Help!!!

        I want to help make it as easy possible to charge your device myluv2drive! Is this happening with the original charging cable itself or is this an alternate charger? Have you tried a battery pull since this started? Did this happen the first time you tried charging it? Any different response when trying alternate outlets?
    JonathanK_VZW
    VZW Support
    Follow Us on Twitter@VZWSupport

  • Can i use oracle 8i for oracle 9ias application server for developijsp applicationes?

    hi,
    can i use oracle 8i database for oracle 9ias application server for developing jsp applicationes?
    can any one give suggetion?
    jpullareddy

    If you are using OLite, you should use the OLite .NET provider:
    http://download-west.oracle.com/docs/cd/B14156_01/doc/B13788/html/toc.htm
    Look at Chapter 6 and 11, which cover ADO.NET data access.

  • Can I use Oracle Developer Day.ova for learning purposes without any  license? #developerday

    Hi,
       I am a student and learning oracle database. I have found Oracle Virtual box appliance from following link Developer Day - Hands-on Database Application Development&lt;/title&gt;&lt;meta name=&quot;Title&quot; content=&quot;Dev…
       Do I need a license to use this VM?
       Please reply.
    Thanks,
    Tahir.

    Kunwar wrote:
    Hi friends,
    i have installed oracle db using Oracle Developer Day.ova for practicing on my lappie.
    I want to connect to that DB which is inside oracle vm virtual box manager using PUTTY ( which is on my desktop). I dont want to use the in-built workspace or Terminal(whatever is its name).
    Can you guys please suggest what should i do so that i can login to the DB using the PUTTY only (i love it )? i am not able to login to the host "localhost" using the putty.
    Few years back when i had installed vmware(linux installed in it and db installed on linux) i could connect through putty.
    I am using below entry in the hosts file.
    # localhost name resolution is handled within DNS itself. 
        127.0.0.1       localhost 
    #    ::1             localhost 
    'localhost' and its ip address of 127.0.0.1 are non-routeable.  Any request to send a network message to localhost will never leave the machine from which the request originates.  And for all intents and purposes, your virtual machine is a different machine.
    See my solution at
    http://edstevensdba.wordpress.com/2012/12/15/configure-the-virtualbox-network-2/

  • I have downloaded whats app/brave temple run but using netsafe card. well now it shows 1.98$ is pending , though m trying with new netsafe card to pay it is showing error saying Pls select valid method for payment. i used same method as i did earlier

    i have downloaded whats app/brave temple run but using netsafe card. well now it shows 1.98$ is pending , though m trying with new netsafe card to pay it is showing error saying Pls select valid method for payment. i used same method as i did earlier

    I have recently started having this problem in PSE8. The Adobe workaround
    did work, but I don't fancy having to re register each time I use it.
    What I have discovered is that it's nothing to do with the image metadata as it occurs before any image is opened.
    It SEEMS to only occur if you use file/open with to open an image in the editor - IE start PSE with that command.
    If you close elements down, and start it using programs/PSE/Elements (or your desktop shortcut) - the panorama feature magically works.
    Each time I've opened the editor 'automatically' using image/open with, it seems to create the problem.
    Hope this helps

  • URGENT! SEGV-errors when using Oracle C XML Parser for Solaris

    I often (not always) got SEGV-error with core dump when I use Oracle Oracle C XML Parser for Solaris. This Error is always got in the call of the the function xmlinit(...) with all params as NULL but the first required for the error code and the second which i assign a macro that evaluates to "US-ASCII". Does anyone knows about this problem?
    I am using a very short, wellformed and validated XML document.
    I would be very glad for some help about this!
    null

    Please provide a sample program along with the version number of the XML parser.

  • My requirement is to update 3 valuesets daily based on data coming to my staging table. What is the API used for this and how to map any API to our staging table? I am totally new to oracle and apps. Please help. Thanks!

    My requirement is to update 3 valuesets daily based on data coming to my staging table. What is the API used for this and how to map any API to our staging table? I am totally new to oracle and apps. Please help. Thanks!

    Hi,
    You could use FND_FLEX_LOADER_APIS.UP_VALUE_SET_VALUE to upload them from staging table (I suppose you mean value set values...).
    You can find a sample scripts if you google around.
    What do you mean "how to map any API to our staging table" ?
    You should do at least the following mapping (which column(s) in the staging table will provide these information):
    - the 3 value sets name which you're going to update/upload (I suppose these are existing value sets or which have been already created)
    - the value set values and  description
    Try to start with something and if there is any issues the community could then help... but for the time being with the description of the problem you have provided, that's the best I can do...

  • Can´t upgrade to mountain Lion because says that my HD is only for Time Machine use

    Can´t upgrade to mountain Lion because says that my HD is only for Time Machine use, what can I do?

    The installer is probably finding a file called backups.backupdb
    That is where Time Machine stores it backups so it figures it can't install there
    The Time Machine backup should never be done to the system drive but another drive instead
    Allan

Maybe you are looking for

  • Interactive form generation issue

    Hi All, We created an application which generates an Adobe Interactive PDF forms. This was working fine previously, but now while generating the PDF it is taking a very long time ....10-15 minutes and after that it is giving the session timeout error

  • Junk mail filtering only working on internal mail (and only some of them)

    Good morning I'm trying to get Junk Mail filtering working properly on my server (currently running 10.5.6). All mail that comes from externally doesn't seem to pass through the spam filter at all. It gets scanned for viruses (in the email header i g

  • 500 Internal Server Error with fileaccess:httpuploadform

    Hi, I'm trying out file upload examples as shown in JSP tag libraries and utilities reference. It turns out that using file-access javabean method works OK. However, when I use fileaccess taglib, 500 Internal Server Error is found. For both methds, I

  • How to create Dropdown field

    Hi, i have created some new fields in BUPA using EEWB by Create extension wizard... i have assigned it to design layer object . i need this field to be a dropdown list ...... A have added allowed values to corresponding view of this field....... BUt

  • How do you interpret the graphs in resource monitor in Server 2012?

    I cannot find what the green area verses the blue line mean in the resource monitor.  I have search the internet for quite some time and only find what the definition of terms are.  At first I though the blue line was peak measurements and the green