ArrayDescriptor.createDescriptor uses Oracle specific in EJB Server

I use Pramati EJB Server. It is EJB 1.1 compatible. I can use getCustomDatum calls without any error (even though it is Oracle specific). But I can't use setCustomDatum. It throws me ClassCastException error.
My line looks like
((OraclePreparedStatement) pstmt).setCustomDatum(...)
So I tried different method to acheive the same. That is to use Loosely Typed method setArray.
To use setArray I need to get the descriptor from Oracle.
I use the following line to do that.
ArrayDescriptor orderLinesDesc = ArrayDescriptor.createDescriptor("OBL_EMPLOYEE", connection);
Where OBL_EMPLOYEE is a Table of EMPLOYEE Object OB_EMPLOYEE.
Where OB_EMPLOYEE has several primitive fields and a TABLE (OBL_ROLES) of Roles object OB_ROLES.
Where OB_ROLES has primitive types and table (OBL_RESPONSIBILITY) of Responisibilities OB_RESPONSIBILITY
Where OB_Responsibility has primitive types
I get the same ClassCastException.
Both parameters (String, Connection) to createDescriptor are non Oracle-Specific.
But the EJB Server vendor says the method tries to typecast to OracleConnection which they don't support.
Any idea?

user521490,
Pardon me if I am asking an obvious question, but did you create the ACCOUNT_TYPE using a "create type" DDL statement? For example:
create or replace type ACCOUNT_TYPE as ...An "ArrayDescriptor" only works for global types (as far as I know).
I'm guessing that JACKCACHE is a [PL/SQL] package, and that's probably why it doesn't work.
Good Luck,
Avi.

Similar Messages

  • Enforcing integrity using oracle specific data base commands .v. using fron

    Full subject : Enforcing integrity using oracle specific data base commands .v. using front end.
    It ought to be generally accepted that it is better to enforce integrity directly in the data base using constraints, dependencies, triggers etc rather than leaving it to specific front end programmes.
    In my view, the chief advantages - of enforcing integrity directly in the data base - are:
    (1) No process can violate the integrity.
    (2) Being server centric, these commands run on the server and so can be easily sized in one place.
    (3) One time data migration (imports) into the system using Oracle tools or SQL commands would also need to conform to the integrity constraints. Thus an implementor would be assured that the basic data is alright.
    I am faced with a situation where we are about to implement a new Oracle based package. During data migration, when we discovered that there are no integrity constraints built into the target data base, the package vendor asserted that it is not necessary to build in integrity into the database. This seems to be an extreme and risky view.
    Further, it is argued by the package vendor that putting constraints directly in the data base would significantly increase the needed resources (RAM) on the server. In my view, this increase is trivial and anyway, hardware costs are crashing day by day.
    In the absence of integrity checks in the data base, it seems to me that every program would have to extra zero value work to ensure integrity of the end user data. It will still never be complete.
    I would like to know the pros and cons of implementing without integrity constraints.
    OK.

    AnanthaP wrote:
    Full subject : Enforcing integrity using oracle specific data base commands .v. using front end.
    It ought to be generally accepted that it is better to enforce integrity directly in the data base using constraints, dependencies, triggers etc rather than leaving it to specific front end programmes.
    In my view, the chief advantages - of enforcing integrity directly in the data base - are:
    (1) No process can violate the integrity.
    (2) Being server centric, these commands run on the server and so can be easily sized in one place.
    (3) One time data migration (imports) into the system using Oracle tools or SQL commands would also need to conform to the integrity constraints. Thus an implementor would be assured that the basic data is alright.
    I am faced with a situation where we are about to implement a new Oracle based package. During data migration, when we discovered that there are no integrity constraints built into the target data base, the package vendor asserted that it is not necessary to build in integrity into the database. This seems to be an extreme and risky view.
    Further, it is argued by the package vendor that putting constraints directly in the data base would significantly increase the needed resources (RAM) on the server. In my view, this increase is trivial and anyway, hardware costs are crashing day by day.
    In the absence of integrity checks in the data base, it seems to me that every program would have to extra zero value work to ensure integrity of the end user data. It will still never be complete.
    I would like to know the pros and cons of implementing without integrity constraints.
    OK.It's a shame you seem to be so far into the process and committed to this vendor. I once had a vendor tell us his product would run on Oracle but they recommended MS SQL Server because "oracle can't handle more than 5 concurrent sessions." I made sure that vendor didn't make the short list.

  • Error when using Oracle Migration WorkBench (Sql Server 2k to Oracle 8i)

    I'm trying to migrate a Sql Server 2k database to an Oracle 8i schema using OMWB. After using BCP to collect metadata information on the source database, I tried to capture the source data model and got a "Capture aborted" message on the progress screen (even though then it appears a dialog window reporting "0 errors and 0 warnings", funny!). Down there is the error log OMWB generated. After reading some posts, I changed some columns of the OMWB dictionary that holds the source database name, but still got the same error. If someone can enlighten me on this toppic, I'd greatly appreciated it.
    Here's the error log of OMWB:
    ** Oracle Migration Workbench
    ** Production
    ** ( Build 20050629 )
    ** OMWB_HOME: D:\Datos\Download\Oracle\Oracle Migration Workbench\omwb
    ** user language: es
    ** user region: null
    ** user timezone:
    ** file encoding: Cp1252
    ** java version: 1.4.2_04
    ** java vendor: Sun Microsystems Inc.
    ** o.s. arch: x86
    ** o.s. name: Windows 2000
    ** o.s. version: 5.0
    ** Classpath:
    ..\lib\boot.jar
    ** Started : Fri Feb 23 17:18:48 GMT-03:00 2007
    ** Workbench Repository : Oracle8i Enterprise Edition Release 8.1.6.0.0 - Production
    With the Partitioning option
    JServer Release 8.1.6.0.0 - Production
    Repository Connection URL: jdbc:oracle:thin:@ServerCms:1521:sigcewbc
    ** The following plugins are installed:
    ** Microsoft Access 2.0/95/97/2000/2002/2003 Plugin, Production Release 10.1.0.4.0
    ** Microsoft SQLServer 2000 Plugin, Production Release 10.1.0.4.0
    ** Microsoft SQLServer 6.5 Plugin, Production Release 10.1.0.4.0
    ** Microsoft SQLServer 7.0 Plugin, Production Release 10.1.0.4.0
    ** Active Plugin : SQLServer2K
    EXCEPTION :SQLServer2KDisconnSourceModelLoad.loadSourceModel(): oracle.mtg.migration.MigrationStopException: java.lang.IndexOutOfBoundsException: Index: 15, Size: 15
    ** Shutdown : Fri Feb 23 18:00:50 GMT-03:00 2007

    Duplicate thread
    Error when using Oracle Migration WorkBench (Sql Server 2k to Oracle 8i)

  • Error running universall installer using Oracle 11g on Windows server 2003

    Hi,
    I want to uninstall Oracle 11g on Windows server 2003 and when I run universall installer I receive the following error
    Checking swap space: 0 MB available, 500 MB required.
    Please advise how to resolve this error and the procedure to uninstall Oracle 11g on Windows server 2003
    Thanks,
    Ant

    Hi;
    For swap problem, please check:
    Swap space problem on Windows XP
    http://www.pcnineoneone.com/howto/swpfile1.html
    For remove process please check:
    Oracle 11g on Windows Srv 2003
    WIN: Manually Removing all Oracle Components on Microsoft Windows Platforms [ID 124353.1]
    Regard
    Helios

  • Connection problem while invoking remote method from client using oracle 8.1.6 server

    while using a connection object to make connection to oracle in all remote methods(in EJB)only the first remote method called from the EJB client is getting invoked and the connection stops.It gives me COMM_FAILURE while invoking the second method in oracle 8.1.6.Help me out in this aspect immediately please.

    r singh wrote:
    >
    I am getting "No Suitable Driver" exception from WebLogic 6.1 (sp1) at
    the start up of the server.
    My settings:
    - WLS 6.1 on a solaris 8 machine and Oracle 8.1.6 on a WIN2K machine.
    - I created the connection pool for oracle with the following
    parameters:
    connection name: OracleConnectionPool
    url: jdbc.oracle.thin:@myOracleServer:1521:myDBName
    driver class name: oracle.jdbc.driver.OracleDriver
    properties: user=scott
    password=tiger
    - I have also downloaded classes12.zip and nls_charset12.zip from
    Oracle.com
    and have placed under $WL_HOME/lib.
    - I have added $WL_HOME/lib/classes12.zip:$WL_HOME/lib/nls_charset12.zip
    in
    front of the $CLASSPATH in the startWeblogic.sh script. The echoed
    classpath
    from the startup script is:
    /opt/tools/bea/wlserver6.1/lib/classes12.zip:/opt/tools/bea/wlserver6.1/lib/nls_
    charset12.zip:/opt/tools/bea/wlserver6.1:/opt/tools/bea/wlserver6.1/lib/weblogic
    _sp.jar:/opt/tools/bea/wlserver6.1/lib/weblogic.jar
    - Still I get the error:
    <Jan 16, 2002 1:38:45 PM EST> <Error> <JDBC> <Cannot startup
    connection pool "Or
    acleConnectionPool" No suitable driver>
    Can somebody point me out if i am doing anything wrong here.
    Thanks.
    RamanandHi,
    Sure. Your URL should be "jdbc:oracle:thin:@myOracleServer:1521:myDBName"
    not "jdbc.oracle.thin:@myOracleServer:1521:myDBName"
    Joe

  • Error while installing SAP 4.7 using  Oracle on windows 2000 Server

    Hi friends,
    I am installing 4.7 SAP R/3 SR1 Server on Windows 2000 SP4. The installation of Oracle DB, Patch for Oracle 9.2.0.2.1, and Central instance were successful.
    The Database instance fails at phase 16 of 34 (DB creation) with the following error message
    WARNING 2007-01-11 11:10:49
    Execution of the command "C:\oracle\RQ8\920/bin/oradim -NEW -SID RQ8 -STARTMODE manual -SRVCSTART system" finished with return code 35. Output: DIM-00035: You have entered and invalid option for the -EDIT command
    ERROR 2007-01-11 11:10:49
    CJS-00095  Error return code.<br>DIAGNOSIS: Return code 35 of executable C:\oracle\RQ8\920/bin/oradim indicates an error.<br>SOLUTION: See log file oradim.log for details.
    The content of oradim.log is:
    DIM-00035: You have entered and invalid option for the -EDIT command
    I have reviewed all the install notes, tried to upgrade to 9.2.0.4.1, and repeated the install several times but nothing works.
    Regards,
    Praveen

    hi geeks..
    i am having some Data in SAP 4.6 C and here Oracle 8i is the database instance .
    Now i am installing 4.7 E in another system and i want to use the same database (4.6 C)where all of my data is there and i hv to use the Oracle 9i this time.
    Can i directly copy the database directly from 4.6 C and give the path while installing 4.7 E
    Whether this will work here ???
    Pls let me know the solution for this.......
    Solution will be rewarded..
    Thanks in Advance,
    Srini.

  • Using JTA without an EJB server

    Hi,
    What is the most popular way of using JTA without EJB.
    I notice there is:
    JOTM?
    Is this the one?
    Cheers

    beginner2 wrote:
    Hi,
    What is the most popular way of using JTA without EJB.
    I notice there is:
    JOTM?
    http://jotm.objectweb.org/
    Is this the one?
    Cheerssure. that's one way.
    %

  • How to use oracle thin driver?...pls help

    Hello. I am trying to insert a word file into my Oracle 9i database using JSP. I have tomcat running as my standalone server. So far, i have been using the sun.jdbc.odbc driver to implement all my DB accesses. Recently however, i found out that in order to use Oracle specific objects such as BLOBS or BFILES, i have to use the oracle thin driver or OCI driver.
    So far, i have downloaded the thin driver and put it into the tomcat shared/common folder and also put the .jar file into my classpath. Now, i am having trouble as to how to call the oracle thin driver inside my JSP code.
    My previous code read as:
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con = DriverManager.getConnection("jdbc:odbc:Andy","user","pass");
    How do i switch over to the oracle thin driver in JSP? Any help would be much appreciated. Thank you
    Andrew

    Class.forName ("oracle.jdbc.driver.OracleDriver");
    Connection conn = DriverManager.getConnection ("jdbc:oracle:thin:@hostname:port:SSID", "user", "password");

  • How to use oracle thin driver with jsp?...pls help

    Hello. I am trying to insert a word file into my Oracle 9i database using JSP. I have tomcat running as my standalone server. So far, i have been using the sun.jdbc.odbc driver to implement all my DB accesses. Recently however, i found out that in order to use Oracle specific objects such as BLOBS or BFILES, i have to use the oracle thin driver or OCI driver.
    So far, i have downloaded the thin driver and put it into the tomcat shared/common folder and also put the .jar file into my classpath. Now, i am having trouble as to how to call the oracle thin driver inside my JSP code.
    My previous code read as:
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con = DriverManager.getConnection("jdbc:odbc:Andy","user","pass");
    How do i switch over to the oracle thin driver in JSP? Any help would be much appreciated. Thank you
    Andrew

    my code is:
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    conn = DriverManager.getConnection(sConnStr, sUser, sPassword);
    notice the driver --"oracle.jdbc.driver.OracleDriver"!
    and copy the class12.zip to lib path
    if still not work
    change the class12.zip to class12.jar
    good luck

  • Oracle-specific data types vs Connection pool

    Hi, using Oracle-specific data types such as
    ArrayDescriptor and create it by a connection to an Oracle database from a WebSphere datasource throw a ClassCastException. There is no problem using these Oracle-specific data types when the connection is obtained via the DriverManager. WebSphere cannot fix the problem because these data types are
    not part of the JDBC specification.
    Some reply from Oracle?
    Thank you very much.

    Thank you but I there is no solution in that thread.
    Also, I know that WebLogic from BEA has a way around this issue... No Websphere work around ?
    No Oracle fixing ?
    Thanks.

  • Could Oracle 10g (in a server)  work with existing Oracle 9i client

    Hello!
    I am new in Oracle, and I was wondering if it’s possible to use Oracle 10g in a server with clients using Oracle 9i. Would that work? Are they compatible?.
    Thanks!

    my 9.2 client can not connect to 10g server,
    It says that "this application requires that you have been granted to select any dictionary privelege".
    my 10 g client connecting normally, but i have many terminal computers with 9 client.
    Tell me how to connect to 10g server from 9 client please.

  • Oracle 8i vs SQL Server 2000

    Can anyone point me to a good source that can explain the advantages of using Oracle 8i vs SQL Server 2000 for Data Warehousing and business intelligence as well as for running a ebusiness ?
    We have a client who is interested in SQL sever and we are an Oracle shop.
    Thanks in advance.

    Hi,
    I have the same question. But I am searching on the net for a council or vendor who gives the services for comparing different products. It is available for CRM, but i am not sure about databases.
    Another I think If we can ask the client about why he has chosed sql server then we will be clear.
    I see the only advantage of sql server 2000 is to have the olap, dts in built with the sql server product.
    Any let me also know please. Thanks.

  • Authentication using database in j2ee ri server? URGENT!!

    Hello I have installed j2sdkee1.3.1 and I use the web and ejb server that it includes. I start it with j2ee.bat and I create a application with jsp and ejb, and I use deploytool to deploy it. I don't have problem, but now I would like to use a form-based autentication. I config it in deploytool but I want that the j2ee server access to a database to check if a user have the role that he need to access. I do this with the option of deploytool in which you can add users and roles, but I don't know how to config it for a database.
    In tomcat4.1 you can do this adding the next lines to server.xml:
    <Realm className="org.apache.catalina.realm.MemoryRealm" />
    <Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
    driverName="com.jnetdirect.jsql.JSQLDriver"
    connectionURL="jdbc:JSQLConnect://localhost/database=name"
    connectionName="user" connectionPassword="pass"
    userTable="user" userNameCol="usuario" userCredCol="clave"
    userRoleTable="userRol" roleNameCol="rol" />
    I want to use only the j2ee server. I config it in j2sdkee1.3.1\conf\server.xml adding the next lines, as I do with Tomcat but here in j2ee it isn't.
    I don't know why j2ee server doesn't use this file, or how I have to config it to use a database to autenticate.
    It's very urgent.
    Thanks for all and sorry for my english I'm spanish.

    Hi Moi,
    j2ee1.3.1 is not supported any more. Please try j2ee1.4beta2.
    Regards,
    -- markus.

  • Oracle with Windows 2003 server

    Hi all,
    I am using oracle 10g /windows 2003 Server with latest patches, the problem is whenever i restart the server instance does not start automatically , i have to start the instance manually.
    how could i troubleshoot the problem , oracle not generating any error log for this, there is no information in alertlog.
    when i chek the db service in services.msc it said , service started and automatic.
    Thanks in advance
    Salai Thenagan Jayavelu

    go to services window and set all your Oracle services to automatic instead of manual. this will start your database automatically rather you start it manually
    Anil Malkai

  • Tutorials needed for cloning portlets on oracle AS 10g portal server

    hi,
    i'm using oracle AS 10g portal server (ver 10.1.4). I'm relatively new to oracle as server.
    I have a requirement for cloning portlets and using them in an all together differrent portal.
    Wud like to have some knowledge abt this.
    thanks

    hi,
    i'm using oracle AS 10g portal server (ver 10.1.4). I'm relatively new to oracle as server.
    I have a requirement for cloning portlets and using them in an all together differrent portal.
    Wud like to have some knowledge abt this.
    thanks

Maybe you are looking for

  • Condição de Pagamento - atualização

    Bom dia pessoal,. tudo bem com vcs? Uma consulta, eu tenho cadastrado no sap umas 100 condições de pagamento que são a prazo com uma taxa por ex de 2 % todas elas, mas agora preciso atualizar todas para uma taxa 2,9 %, tem alguma forma de atualizar t

  • How to create a new user id in OID for Oracle Collab suite File System

    Dear Friends, I want to know how to create a new user id in the oracle internet directory where i can use that user for the new subscription of the oracle collabration suite file system.. Please do the needfull and thanks in advance... With warm rega

  • White border in safari

    Hi, i'm working on this site: http://www.othersidecreation.com/client_ftp/whynot/glitz/ and for some reason in safari it give me a 5 pixel white edge on the right hand side. it doesn't do this in any other browsers. anyone know why?

  • Need help choosing file format

    I just purchased elements 9 for Mac, and am a total newbie.  I have hundreds of photos, slides, and negatives.  I would like to scan these before I begin trying to learn.  Is there a file format that I can choose that will allow me enhance these file

  • Keep Receiving (-69) Error Message when Syncing iPod

    Yesterday, after a lot of trouble I purchased myself a 30GB iPod video for my birthday. For the past 24 hours I've been trying to upload my videos and music to the iPod however it only uploads up to a certain point (about 1.5GB of data) and then refu