Sqlj runtime error with oracle 10G in Websphere6 or 5.1

We are trying to migrate from oracle 9i to 10G and we are compiled all our sqlj code with codegen = -oracle option.(previously we used to use codegen=-jdbc which for some reason doesnot work).it compiles fine with out any erros.. But when we try to run then get this exception.
java.lang.IllegalArgumentException: SQLJ programs translated with the option -codegen=oracle must be run under Oracle JDBC 9.0.0 or higher. If the Oracle JDBC driver is wrapped, then the wrapper must implement all of the oracle.jdbc.OracleXxxx interfaces. Alternatively, you can translate SQLJ programs either with -codegen=iso. java.lang.IllegalArgumentException: SQLJ programs translated with the option -codegen=oracle must be run under Oracle JDBC 9.0.0 or higher. If the Oracle JDBC driver is wrapped, then the wrapper must implement all of the oracle.jdbc.OracleXxxx interfaces. Alternatively, you can translate SQLJ programs either with -codegen=iso.
at sqlj.runtime.ref.ConnectionContextImpl.getOracleConnection(ConnectionContextImpl.java:167)
at sqlj.runtime.ExecutionContext$OracleContext.prepareOracleStatement(ExecutionContext.java:1397)
We are using ojdbc14.jar that came with oracle 10G.
Hope any one can give any pointers.

I'm having same issue - but I'm having it when I try to invoke a method that contains a database Object type from a Tibco Business Works Process called a Java Method.
How exactly do you do the codegen=iso configuration?
I've tried:
1. Project Properties / Compiler SQLJ and then select from Code Generation drop down iso.
2. From Connections / Database / Navigate to package / right-click / Generate Java / Browse to my custom jpub.properties file where I have tried multiple entries such as (by themselves and in some combination.:
- jpub.codegen=jdbc
- jpub.codegen=iso
- jpub.compatible=9i
- jpub.compatible=8i
- compatible=both8i
- jpub.usertypes=oracle
- jpub.compatible=customdatum
- jpub.compatible=sqlj
I've also played with changing from the default some of the Mapping Options in Connections / Database / Navigate to package / right-click / Generate Java / Mapping Options.
This doc here, says that code should change (section 6 JPublisher Input Files - based on configuration of Input files)
Oracle® Database
JPublisher User's Guide
10g Release 2 (10.2)
B14188-01
No matter what I do, the code that gets generate is the same.
Also, the documentation talks about running things from the command line but how exactly do you do that? Do I need to be in specific directory? I tried the c:\ C:\jdev\system and c\jdev\ and c:jdev\bin and always get error message: 'jpub' is not recognized as an internal or external command, operable program or batch file.
I've built a java client in JDeveloper to successfully call the same method and I don't see the error.
Edited by: disaak on Mar 9, 2010 11:51 AM

Similar Messages

  • ClassNotFound Error with Oracle 10g...please help!

    Hello everyone!
    I am currently using jdk 1.4.2_10 with Oracle 10g. I tried to connect to the database, like this:
    try{
    String driverName = "oracle.jdbc.driver.OracleDriver";
    String serverName = "***.***.*.*";
    String portNumber = "****";
    String sid = "****";
    String url = "jdbc:oracle:thin:@" + serverName + ":" + portNumber + ":" + sid;
    String usr = "*****";
    String pwd = "*****";
    //Load the JDBC driver
    Class.forName(driverName);
    //Connect to the base
    connect = DriverManager.getConnection(url,usr,pwd);
    catch(ClassNotFoundException e){
    System.out.println("Error---No database driver");
    catch(SQLException s){
    System.out.println("Error---No connection to the database");
    Here is what's in my classpath, (i added the ojdbc14.jar) :
    c:\oracle\product\10.2.0\client_2\jdbc\lib\ojdbc14.jar;
    C:\Program Files\QuickTime\QTSystem\QTJava.zip
    Can anyone please help me?
    It's really a problem, i've been searching for 2 days now.....
    thank you

    Most likely it is about
    oracle.jdbc.driver.OracleDriver
    You need to include Oracle JDBC lib.
    If you are using JDeveloper then:
    In Project properties click on Libraries
    Click AddLibrary
    In the list that appears choose Oracle JDBC

  • Installation errors with Oracle 10g Express Edition client.

    Hi,
    I want to use the Oracle 10g XE client on my Ubuntu (Lucid) laptop. I am following the installation instructions as mentioned at Installing Database Oracle XE Client. When I run the .sh file for my bash shell, I keep getting this error message:
    root@machine:/usr/lib/oracle/xe/app/oracle/product/10.2.0/client/bin# . ./oracle_env.sh
    /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/bin/nls_lang.sh: 112: [[: not found
    /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/bin/nls_lang.sh: 112: [[: not foundAnd, when I look up nls_lang.sh at around line 112, I see this:
    # Detertmine the LANGUAGE_TERRITORY part of NLS_LANG
    # we derive it from the current locale by inspecting the LC_ALL and
    # the LANG environment variable. Other LC_* environment variables
    # are not inspected.
    if [[ -n "$LC_ALL" ]]; then
      locale=$LC_ALL
    elif [[ -n "$LANG" ]]; then
      locale=$LANG
    else
      locale=
    fiHow do I get the client working ?

    So, I have been searching around to look for a method to enable the client installed on my laptop to connect to the database. Granted that, the server is not installed on my local machine. But, I am simply, unable to find any clues as to how do I specify the database name that the client should connect. The ORACLE_SID parameter needs to hold a database name; but, where are the IP address and port number mentioned for the database ? One site recommended that tnsping be used to check for database existence; whereas, tnsping is not installed. Then, the commonest hint that I keep bumping into - TNSNAMES.ORA file. Since I have only the client installed, I don't even see the network/admin folder (or whatever the path is to the .ora file) under /usr/lib/oracle/xe/app/oracle/product/10.2.0.
    It can't be this hard to connect to an Oracle server with only a itsy-bitsy Oracle installed on my local machine, hmmm ?

  • Configuration assistant error with Oracle 10g 10.2.02 with Solaris 10 6/06

    Hi all,
    As anyone seen this a fix for this error?
    I have installed Solaris 10 6/06 x86 on VMWare 5.2 which works fine.
    When I attempt to install Oracle 10g 10.2.02 for Solaris x86 (released in Sept 06), the install goes fine until I get to the configuration assistant stage.
    The first Net based configuration assistant fails with a Java exception which seems to be related to a Sig 11 in the libc library.
    This looks like an error fixed by a patch mentioned in the release notes but the patch does not seem to be available for this version of Solaris.
    Any comments would be greatly appreciated...
    Regards
    Anthony

    Hi all,
    Just to update this.
    I have deselected the create database option part of the install and Oracle installs OK!
    The problem is in the create database phase which I have manually done when I use the dbca program.
    When I get to the create database operation of the the dbca wizard, I get a the following error "ORA-00600, internal error code, arguments [kelntf-ldminit, [146],[1],[],[],[],[],[]"
    Any offers?

  • Error: SAP installation of ERP Sr3 with ORACLE 10g on Windows 2008 server

    Dear all,
    while installaing SAP ERP SR3 with ORACLE 10g on windows 2008 server...
    we are getting error as not support.
    please confirm wether this version of OS is uspported or not.
    thanking you in all,
    by
    Animesh

    actualy we tried to change Oraparam.ini file in the installation folder...
    edited ...  windows= 5.0, 5.1, 6.0
    we had entered 6.0
    Yes - that is necessary.
    and started ... but after starting we are getting ERROR like unKNOWN and installation popup (OUI popup) exiting with .. error popup.
    Yes - because Oracle delivers its own Java version - which is too old to run on Windows 2008.
    if you suggest us to use 2003 64 bit for temporaray .... purpose.
    and is there any specified procedure to UPgrade OS.
    like... DB should be updated before OS upgradation.
    You can run 10.2.0.4 on Windows 2003 x64 nicely and upgrade to Windows 2008. Since there is no "upgrade" (it is the highest version supported) there´s no need to do anything.
    The question you have to ask is:
    Why do you need Windows 2008? Is there any technical implication?
    Markus

  • I want to use Golden Gate to connect MS SQL Server 2005 with Oracle 10g dat

    I want to use Golden Gate to connect MS SQL Server 2005 with Oracle 10g database. So, i have installed both databases on different pc's on windows platform. MS SQL Server 2005 on windows XP and Oracle 10g on windows 2003.
    I have configure Golden Gate step by step by following oracle guideline:
    http://www.oracle.com/technetwork/articles/datawarehouse/oracle-sqlserver-goldengate-460262.html
    When i run following command on target (oracle 10g):
    replicat paramfile dirprm/inload.prm
    I encounterd following error:
    2012-05-21 20:27:06 ERROR OGG-00014 Unrecognized parameter: USERID. Paramete
    r could be misspelled or unsupported.
    2012-05-21 20:27:06 ERROR OGG-01668 PROCESS ABENDING.
    My INLOAD FILE Content are:
    SPECIALRUN
    END RUNTIME
    USERID gg_user, PASSWORD welcome1
    EXTFILE D:\oracle\gg\dirdat\ex
    SOURCEDEFS D:\oracle\gg\dirdef\emp.def
    MAP hrschema.emp, TARGET gg_user.emp;
    Can you plz suggest me that where i am wrong?
    Thanks advance to all experts.

    amardeep.sidhu wrote:
    That should work, just in case try adding DBLOGIN before USERID
    DBLOGIN USERID x..No needed in the param file i think.its not needed at all you are right, but what else could it be? Besides any special unseen character :P

  • SAP R/3 4.7 EXt200 installation on RedHat Linux 5.2 with Oracle 10G

    Hi,
    I got this error during Database Instance Installation:
    All file system node operations of table tORA_SapdataNodes processed successfully.
    ERROR      2009-08-31 11:04:39 [iaxxinscbk.cpp:289]
               abortInstallation
    MDB-06020  File not found: [no oracle rdbms file found].
    I am done with CI Installation.
    Any help would be appreciated.

    Hi ,
         First of all please check availability of your OS + DB requiremnts whether it is supported by SAP or not.You can check this at Product Availability Matrix at ::
    http://service.sap.com/pam
         If this support for your environment i.e.RedHat Linux 5.2 with Oracle 10G then be informed that after starting sapinst in step create database it will prompt you for installing your oracle DB. So open a new window & install your databse ,do the patching of your DB & then continue with sapinst after successfull installation of oracle.Rest of details sapinst will prompot you during instal;lation.
        Hope this will guide you for your query.
    Thanks..
    Mohit

  • I am trying to connect oracle develper suit form with oracle 10g database

    i am trying to connect oracle develper suit form with oracle 10g database
    but when i pass username and password
    this message apperars
    ORA-12560:TNS:protocol adapter error
    every time even i try to connect Report or Designer each time same problem
    making no connection .
    can any body help can help me to reslove this prblem
    Arshad khan

    Duplicate thread:
    Re: connection problem

  • Does Informatica 7.1 work with Oracle 10g?

    Hi All,
    I have Oracle 10g (10.2.0.1.0) and I just installed Informatica 7.1. While creating a new repository in Informatica Repository Admin Console, I am getting error as:
    "Unable to create the repository content. Make sure that the database connection and the license keys are correct. Check the activity log for more details."
    I confirmed that the license keys are correct. The database connection is also good as I could connect using the same username/password in SQLPlus. The activity log says:
    WARNING : RS_39204 [Mon Mar 22 15:05:38 2010] : (5160|5392) Bad config file [Config\infrepo-es.cfg]. Has it been manually named and placed in the Config directory? The expected name is [Config\_Yrepository_0name_Z-es.cfg].
    ERROR : RS_39194 [Mon Mar 22 15:51:52 2010] : (5160|5568) Failure in running command-line request type[100401] [pmrepagent create -r "Info_Repo" -t "Oracle" -u infrep -c orcl -d "MS1252" -h sathe-3766a91ad -o 9999  -a Info_0Repo-es.lic -H "sathe-3766a91ad" -O 5001 -K 2082340862]. Error is [An error occurred while creating the repository.
    I did not change anything manually,as it says in the warning. I have no idea what the error says.
    My friend has Oracle 9i and he do not get any error like this. So does Informatica 7.1 works with Oracle 10g ?
    Please help.
    Yogini                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi,
    I found that with Oracle 10g you have to grant all DBA privileges to the repository user. This is not needed in Oracle 9i. Thats why I was getting error.
    Now it works fine.
    Thanks!
    Yogini

  • Question about SAP installation with Oracle 10g

    I have successfully installed Oracle 10g on Windows server 2008 R2 64bit. I can connect to the database using mysql or through command prompt and run SQL commands.
    I started installing the SAP EHP1 for SAP NetWeaver 7.0 ("51038620_13      BS 7 SR1 Installation Master Windows Server on x64 64bit") The installation goes very smooth. I choose the SAPSID and the DBSID sid, but then it gives an error stating to install oracle and continue or stop the installation & install Oracle. I have tried on continuing the installation since Oracle is already installed but I get the same message again and again.
    Does it have to do with ORACLE 10g Sid. My Oracle SID is set to "ORCL" should it be the same as DBSID (during SAP Installation). Or the Oracle needs to be installed after SAP installation gets to the point for Oracle Installation. Please assist what needs to be changed. I can reinstall Oracle if needed. Any tips or comments would be nice.

    > Does it have to do with ORACLE 10g Sid. My Oracle SID is set to "ORCL" should it be the same as DBSID (during SAP Installation). Or the Oracle needs to be installed after SAP installation gets to the point for Oracle Installation.
    You can't "change". You installed the Oracle software using "setup.exe" - which is wrong. You also created an example database - which is also not correct.
    The Oracle software is installed, according to the installation guide, as
    - start "sapserver.cmd" on the Oracle DVD (the SAP media)
    - install the software according to the installation guide
    - install the latest patchset
    - install the latest PSU patch
    --> and then start sapinst.
    Markus

  • How to connect Forms 6i & Reports 6i with oracle 10g R2?

    Hey everybody,
    I need your help in connecting both Forms 6i & Reports 6i with Oracle 10g Release 2 db, MS Access(2003, 2007) and SQL database(Microsoft Visual Studio 2008). I am a newbie. I have installed all of them on my HP notebook, with Windows 7 Ultimate(32 bit OS) installed. I want to generate forms & reports by accessing data from above mentioned databases. Please provide me with the configuration steps.
    Thanks in advance...!

    Welcome to the forum ;-)
    Please be sure to review the following:
    http://blogs.oracle.com/shay/entry/10_commandments_for_the_otn_fo
    First, I think it would be a good idea if we can understand why you have chosen to use a nearly new operating system yet install Oracle products that are 10 years old (i.e. Forms/Reports 6i) on it. In general, this is not a good idea. Although running such an old version on Win7 can be made to work, the possibility of having problems is likely. If you are infact new to the product, using a configuration where you are likely to have problems may not be a good starting place. Also, you should be aware that Forms/Reports 6i was desupported several years ago. Documentation and other information is gradually being replaced by newer information, so resources for this old version are going away. The latest version of Forms/Reports is part of Fusion Middleware 11R2 (version 11.1.2.0) and requires WebLogic Server 10.3.5 (or 10.3.6) in order to be installed.
    Second, if you decide to stick with F/R 6i, are you planning to run the applications you create in a browser or as a client/server application? This information is important because how you connect to a database will slightly differ depending on which option you choose. Also, if you want to connect to non-Oracle data sources you can use ODBC for client/server or Oracle Transparent Gateway. However, if you plan to deploy the applications using a browser, Gateway is your only option for connecting to non-Oracle datasources. As for connecting to MS Access, I believe ODBC is your only option, so web deployment may not be an option.
    http://docs.oracle.com/cd/B19306_01/gateways.102/b14270/ch1.htm
    There are many other references available. Try a Google search.
    As for connecting to an Oracle database, this is generally easy. For the Builder(s) and client/server runtime to connect, add the db information to the tnsnames.ora found in the Oracle Home (installation directory) \network\admin. If you are unfamiliar with what goes in the file you can copy the entries created for your database. The db will have a similar file found in a similar place in its installation directory (Oracle Home). For example, you might find something like this:
    ORCL =
    (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = YOURSERVER.COM)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = orcl)
    )Simply copy this information to the end of your tnsnames.ora found where Forms/Reports is installed then restart any running Forms or Builders.

  • Forms 6i C/S with Oracle 10g Standard Edition

    ¿Somebody had installed Developer 6i C/S with Oracle 10g Standard Edition on Windows 2000, Windows 2003, Windows XP Professional?
    ¿What about the results?

    I believe this particular combination (6i Forms with 10g database) is not actually supported, so is perhaps best avoided.
    My own experience is that these forms run ok against a 10g database if compiled against a non-10g database, but if you try and compile the 6i form while connected to a 10g db, the results are unpredictable - forms which compile perfectly well against 9i fail against 10g, with all sorts of horrible looking internal error codes.
    regards
    Andrew
    UK

  • WEBUTIL_FILE.Get File Separator must be declared error in oracle 10g

    hi,
    when i compile the forms with attached webutil.pll , i got the error "WEBUTIL_FILE.Get File Separator must be declared error in oracle 10g".but i have compiled the webutil.pll its fine.Please tell me th solution.
    Thanks,
    Maran

    hi
    hmmmm the latest version of webutil.pll you downloaded from where? forms version 10.1.2... comes with the latest version of .pll.
    what is the webutil version?
    sarah

  • Deployment Manager Error with Oracle Weblogic Server 10.3.1

    I have installed Identity Manager 9.1.0.2 (patch upgraded from 9.1.0.1) on OEL 5.3 64bit and Weblogic 10.3.1
    Database:Oracle 11gR2 (remote machine).
    **I am aware that IM 9.1.0.2 is not certified on Weblogic 10.3.1 (it is only certified on 10.3),
    The installation was successful and OIManager is up and running. Able to create Users, Resources etc. as well.
    As part of configuring OIM Connectors tried to Import .xml file using Import option from Deployment Management section as below and the following error was displayed.
    "Either your session timed out or you are trying to access a page without logging in".
    Did all workarounds like enabling java, changing browsers, restarting machine etc as per the below discussion but in vain.
    Deployment Manager Error with Oracle Weblogic Server
    Can any one suggest any workaround or solution for this problem.
    Or atleast can any one confirm there is no Identity manager available on this date which is compatible with 10.3.1? and cannot be continued further.
    Thanks in Advance
    Sudheer
    Edited by: SudheerPrabhala on Oct 20, 2009 1:26 AM

    You are facing this issue because you're using a non certified combination.
    Other folks who tried to use OIM in 10.3.1 ended up in the same problem you're facing.

  • Using JDeveloper with Oracle 10g Express Edition

    Hi,
    can JDeveloper 11g 11.1.1.4.0 Studio Edition be used to develop applications connection with Oracle 10g Express Edition?
    If not, is there a version downloadable that can?
    TIA

    Yes, it can.
    John

Maybe you are looking for