Can java use the Oracle user defined datatypes

Following the code snippets from the sample applications from the Oracle 9i manual,i have coded two classes:
java.util.Map map = (Map) conn.getTypeMap();
map.put("camr_owner.proc_test_type",Class.forName("testType"));
conn.setTypeMap(map);
These three lines cause the program to choke.
The exception thrown is :
Exception in thread "main" java.lang.AbstractMethodError: getTypeMap.
In one of the classes,i have a class that is exactly same as the Oracle UDT implementing the SQLData interface.
In the other,i mean the class where i have coded the above mentioned three lines,i have a main class which tries to make a connection to the database.I am using the java thin drivers(classes12.zip in the classpath).
Can anyone,point me what is the mistake in the lines.

Hello "TPD"
The fact that I'm posting this on a Java newbies forum indicates that I have NOT a smarter approach (don't even have one). I just asked this question about using Java to integrate with OpenScript because I didn't find much information online and the Oracle Support Community Forums have proven to be very helpful for me in the past, that's all. 
It doesn't seem from your reply you were intending to help but more to discourage me and other to use the Oracle Support Community forums.
bye
Fede..

Similar Messages

  • Can I use the same user accounts for both Lion & SL?

    I have one Mac that I can upgrade to Lion but it is the one that the entire family uses every day (I only can use it (and administer it) on weekends), so I have to make sure that there are no problems and no issues so my plan is to:
    Move all of the users accounts to a different drive.
    Configure 10.6.8 (SL) to use the user accounts on the different drive.
    Back up SL to a bootable drive.
    Repartition the Mac for a SL & Lion partition.
    Reconstitute SL on both partitions.
    Upgrade one SL partition to Lion.
    I should now have a partition for SL and Lion that both use the same users accounts so when I (and then my family) are comfortable with Lion, the switch will be transparent.
    Any problems that I am unaware of (and how to remediate it)?
    TIA.

    There are a few discussions here on the topic that I was planning to employ:
    Moving Home folder to different HDD From Mac OSX Snow Leopard via Terminal?
    Moving some Users to different volume
    How do you move a user account to a different drive?
    Another way of doing it is to move the directory, and then alter the user's home directory using the NetInfo utility (Tiger) or Directory Utility (Leopard). In both, you can change the user's home directory from the command line in Terminal.app like so:
    $ sudo dscl . -create /Users/user NFSHomeDirectory /Volumes/volname+/+user
    In the SL System Preferences -> Accounts one can select a user's account, right click and choose Advance Options presents the screen below. This is how I intend to point each OS to the same user account on an external HDD.
    Does that answer your question?
    TIA.

  • How to convert Oracle User defined datatype to SQL Server 2014 using SSMA Version 6.0

    I am trying to convert Oracle 11g OE schema to SQL Server 2014, using SSMA version 6.0
    Getting an error in converting the Oracle View to SQL Server
    CREATE OR REPLACE VIEW OC_CUSTOMERS OF OE.CUSTOMER_TYP WITH OBJECT IDENTIFIER (customer_id) AS
    SELECT c.customer_id, c.cust_first_name, c.cust_last_name, c.cust_address,
               c.phone_numbers,c.nls_language,c.nls_territory,c.credit_limit,
               c.cust_email,
               CAST(MULTISET(SELECT o.order_id, o.order_mode,
                                   MAKE_REF(oc_customers,o.customer_id),
                                   o.order_status,
                                   o.order_total,o.sales_rep_id,
                                   CAST(MULTISET(SELECT l.order_id,l.line_item_id,
    l.unit_price,l.quantity,
    MAKE_REF(oc_product_information,
    l.product_id)
    FROM order_items l
    WHERE o.order_id = l.order_id)
                                        AS order_item_list_typ)
                             FROM orders o
                             WHERE c.customer_id = o.customer_id)
                    AS order_list_typ)
         FROM customers c
    *   SSMA error messages:
    *   O2SS0461: Conversion of object view is not supported.
    *   OF OE.CUSTOMER_TYP
    *      WITH OBJECT IDENTIFIER (customer_id)
    CREATE VIEW dbo.OC_CUSTOMERS
    AS
       /*Generated by SQL Server Migration Assistant for Oracle version 6.0.0.*/
       *   SSMA error messages:
       *   O2SS0481: Conversion of statement containing user defined type column 'c.cust_address' not supported.
       *   O2SS0481: Conversion of statement containing user defined type column 'c.phone_numbers' not supported.
       *   O2SS0430: Conversion of multiset conditions is not supported.
       *   CAST(MULTISET
       *      SELECT
       *         o.order_id,
       *         o.order_mode,
       *         MAKE_REF(oc_customers, o.customer_id),
       *         o.order_status,
       *         o.order_total,
       *         o.sales_rep_id,
       *         CAST(MULTISET
       *               SELECT
       *                  l.order_id,
       *                  l.line_item_id,
       *                  l.unit_price,
       *                  l.quantity,
       *                  MAKE_REF(oc_product_information, l.product_id)
       *               FROM order_items  l
       *               WHERE o.order_id = l.order_id
       *            ) AS order_item_list_typ)
       *      FROM orders  o
       *      WHERE c.customer_id = o.customer_id
       *   ) AS order_list_typ)
       SELECT
          c.CUSTOMER_ID,
          c.CUST_FIRST_NAME,
          c.CUST_LAST_NAME,
          c.cust_address,
          c.phone_numbers,
          c.NLS_LANGUAGE,
          c.NLS_TERRITORY,
          c.CREDIT_LIMIT,
          c.CUST_EMAIL,
          NULL
       FROM dbo.CUSTOMERS  AS c   */
    Any suggestion on converting this view would be helpful.
    Kind regards.

    Thanks Lydia Zhang for your reference urls.
    Please let me know if you come across any reference articles related to
    Creating a SQL Server table and View with columns as SQL Server TVP similar to Oracle UDT like
      CREATE TABLE "OE"."CUSTOMERS"
       (    "CUSTOMER_ID" NUMBER(6,0),
        "CUST_FIRST_NAME" VARCHAR2(20 BYTE) CONSTRAINT "CUST_FNAME_NN" NOT NULL ENABLE,
        "CUST_LAST_NAME" VARCHAR2(20 BYTE) CONSTRAINT "CUST_LNAME_NN" NOT NULL ENABLE,
        "CUST_ADDRESS" "OE"."CUST_ADDRESS_TYP" ,
        "PHONE_NUMBERS" "OE"."PHONE_LIST_TYP" ,
        "NLS_LANGUAGE" VARCHAR2(3 BYTE),
    And also creating a SQL Server TVP inside an another SQL Server TVP as in Oracle
    create or replace TYPE customer_typ
     AS OBJECT
        ( customer_id        NUMBER(6)
        , cust_first_name    VARCHAR2(20)
        , cust_last_name     VARCHAR2(20)
        , cust_address       cust_address_typ
       , credit_limit       NUMBER(9,2)
        , cust_email         VARCHAR2(30)
        , cust_orders        order_list_typ
    NOT FINAL;
    Kind regards.
    Venkatesha

  • Java Objects for Oracle datatypeJava Objects for Oracle user-defined datatype

    I'm trying to create a Java object that maps to VARRAY of numbers.
    I created a type "NUMARRAY" which is a varray of numbers.
    I also created a type "NUMCOLLECTION" which is an object and contains "NUMARRAY"
    The plan was to create the java object to map to numcollection. My question is can I map a java type directly to the NUMARRAY type, or must it map to an object? (here I'm referring to 'CREATE TYPE NUMARRAY AS VARRAY" or "CREATE TYPE NUMCOLLECTION AS OBJECT" in sql.
    Also, if I do need to write java objects for both types? And if I do, do both need to implement SQLData?
    I'm trying to create a Java object that maps to VARRAY of numbers.
    I created a type "NUMARRAY" which is a varray of numbers.
    I also created a type "NUMCOLLECTION" which is an object and contains "NUMARRAY"
    The plan was to create the java object to map to numcollection. My question is can I map a java type directly to the NUMARRAY type, or must it map to an object? (here I'm referring to 'CREATE TYPE NUMARRAY AS VARRAY" or "CREATE TYPE NUMCOLLECTION AS OBJECT" in sql.
    Also, if I do need to write java objects for both types? And if I do, do both need to implement SQLData?
    Does anyone have an example? Your expertise would be much appreciated.
    Thanks,
    Roxanne
    null

    Hi Roxanne,
    I have the same problem if you get an idea or answer..I have a problem in updating and inserting in Varray datatype from java object of Objects (arraylist)..
    please mail me
    [email protected]
    Bye
    I created a type "NUMARRAY" which is a varray of numbers.
    I also created a type "NUMCOLLECTION" which is an object and contains "NUMARRAY"
    The plan was to create the java object to map to numcollection. My question is can I map a java type directly to the NUMARRAY type, or must it map to an object? (here I'm referring to 'CREATE TYPE NUMARRAY AS VARRAY" or "CREATE TYPE NUMCOLLECTION AS OBJECT" in sql.
    Also, if I do need to write java objects for both types? And if I do, do both need to implement SQLData?
    I'm trying to create a Java object that maps to VARRAY of numbers.
    I created a type "NUMARRAY" which is a varray of numbers.
    I also created a type "NUMCOLLECTION" which is an object and contains "NUMARRAY"
    The plan was to create the java object to map to numcollection. My question is can I map a java type directly to the NUMARRAY type, or must it map to an object? (here I'm referring to 'CREATE TYPE NUMARRAY AS VARRAY" or "CREATE TYPE NUMCOLLECTION AS OBJECT" in sql.
    Also, if I do need to write java objects for both types? And if I do, do both need to implement SQLData?
    Does anyone have an example? Your expertise would be much appreciated.
    Thanks,
    Roxanne
    null

  • I have two Illustrator docs using the same user defined palette, but the colors do not match.

    I have similar charts using 80% of the same (CMYK) spot color as defined in a saved palette, but one is noticeable darker than the other.

    You discovered a very powerful feature of Illustrator. You can assign attributes at the group level. You can also assign attributes at the layer, character and type level. Watch your appearance palette to confirm you attribute assignment.
    For example if you had a rectangle file with 50% transparency of a spot color, then you group this and assign the group 50% transparency, your end tint would be 50% of the spot color.

  • I have a new ipod and when I sign in to Words with Friends it says that user name is already in use. How can I continue using the same user name with a different ipod?

    I have a new ipod and added all my apps to it. When I sign in to Words with Friends it says that "user name is already in use" because it is linked to my old ipod. How can I use the same user name with my new ipod?

    Was the iPod setup via iTunes on this computer?
    Setup via wifi?
    Was the iPod previous synced to another iTunes library/computer?
    Have you successfully synced from this iTunes library/computer before?
    Do the songs play in iTunes?           
    Do you have the right boxes checked to sync?
    iTunes: Syncing media content to iOS devices and iPod        
    Try syncing using the manual method                 

  • Help needed for User-Defined Datatype

    Hi All,
    I have one table which has User-defined Column Datatype.
    Now Client wants us to rename the User-Defined Datatype for some Standardization process.
    How to do rename of it, coz Rename old to new doesnt work in Oracle 10.2.0.4G for TYPES.
    So we re-created it with the new names. Now our Problem is how do i re-assign the column datatype with the New User-Defined DataType.
    Regards,
    Prathamesh

    The Only Solution that i could found was - Create a new column with new User-Defined Datatype, copy the old column values to New Column, then drop the old column and rename the new Column to Old Column
    ORA-22859:     invalid modification of columns
    Cause:     An attempt was made to modify an object, REF, VARRAY, nested table, or LOB column type.
    Action:     Create a new column of the desired type and copy the current column data to the new type using the appropriate type constructor.

  • Using the login user name in the report

    It will be appreciated if someone can help on the following:
    How can I use the login user name in the report?
    I mean that the report will be build on SQL statement look like :
    Select a, b, c, d
    For table
    Where a = <the user name used to login to htmldb>
    Thanks

    select a,b,c,d
    from table
    where a= :APP_USER

  • Error Connecting to database URL jdbc:oracle:oci:@rmsdbtst as user rms13 java.lang.Exception:UnsatisfiedLinkError encountered when using the Oracle driver

    Trying to Install RMS application 13.2.2 and I get past the pre-installation checks and when I get to the Data Source details and enter the data source details with the check box checked to validate the schema/Test Data Source I get the following error:
    Error Connecting to database URL jdbc:oracle:oci:@rmsdbtst as user rms13 java.lang.Exception:UnsatisfiedLinkError encountered when using the Oracle driver. Please check that the library path is set up properly or switch to the JDBC thin client oracle/jdbc/driver/T2CConnection.getLibraryVersioNumber()
    Checks performed:
    RMS Application code location and directory contents:
    [oracle@test-rms-app application]$ pwd
    /binary_files/STAGING_DIR/rms/application
    [oracle@test-rms-app application]$ ls -ltr
    total 144
    -rw-r--r-- 1 oracle oinstall   272 Dec 7  2010 version.properties
    -rw-r--r-- 1 oracle oinstall   405 Jan 16 2011 expected-object-counts.properties
    -rw-r--r-- 1 oracle oinstall   892 May 13 2011 ant.install.properties.sample
    -rw-r--r-- 1 oracle oinstall 64004 Jun  6  2011 build.xml
    drwxr-xr-x 9 oracle oinstall  4096 Jun 16 2011 rms13
    drwxr-xr-x 3 oracle oinstall  4096 Jun 16 2011 installer-resources
    drwxr-xr-x 3 oracle oinstall  4096 Jun 16 2011 antinstall
    drwxr-xr-x 2 oracle oinstall  4096 Jun 16 2011 ant-ext
    drwxr-xr-x 5 oracle oinstall  4096 Jun 16 2011 ant
    -rw-r--r-- 1 oracle oinstall 11324 Dec 18 09:18 antinstall-config.xml.ORIG
    -rwxr-xr-x 1 oracle oinstall  4249 Dec 18 10:01 install.sh
    drwxr-xr-x 4 oracle oinstall  4096 Dec 18 10:06 common
    -rw-r--r-- 1 oracle oinstall 16244 Dec 19 10:37 antinstall-config.xml
    -rw-r--r-- 1 oracle oinstall   689 Dec 19 10:37 ant.install.log
    [oracle@test-rms-app application]$
    Application installation:
    [oracle@test-rms-app application]$ ./install.sh
    THIS IS the driver directory
    Verified $ORACLE_SID.
    Verified SQL*Plus exists.
    Verified write permissions.
    Verified formsweb.cfg read permissions.
    Verified Registry.dat read permissions.
    Verified Java version 1.4.2.x or greater. Java version - 1.6.0
    Verified Tk2Motif.rgb settings.
    Verified frmcmp_batch.sh status.
    WARNING: Oracle Enterprise Linux not detected.  Some components may not install properly.
    Verified $DISPLAY - 172.16.129.82:0.0.
    This installer will ask for your "My Oracle Support" credentials.
    Preparing installer. This may take a few moments.
    Your internet connection type is: NONE
    Integrating My Oracle Support into the product installer workflow...
         [move] Moving 1 file to /binary_files/STAGING_DIR/rms/application
    Installer preparation complete.
    MW_HOME=/u01/app/oracle/Middleware/NewMiddleware1034
    ORACLE_HOME=/u01/app/oracle/Middleware/NewMiddleware1034/as_1
    ORACLE_INSTANCE=/u01/app/oracle/Middleware/NewMiddleware1034/asinst_1
    DOMAIN_HOME=/u01/app/oracle/Middleware/NewMiddleware1034/user_projects/domains/rmsClassDomain
    WLS_INSTANCE=WLS_FORMS
    ORACLE_SID=rmsdbtst
    JAVA_HOME=/u01/app/oracle/jrockit-jdk1.6.0_45-R28.2.7-4.1.0
    Launching installer...
    To make sure I have connectivity from the app server to the database (on a database server) here are the steps followed:
    [oracle@test-rms-app application]$ tnsping rmsdbtst
    TNS Ping Utility for Linux: Version 11.1.0.7.0 - Production on 19-DEC-2013 10:41:40
    Copyright (c) 1997, 2008, Oracle.  All rights reserved.
    Used parameter files:
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = test-rms-db.vonmaur.vmc)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SID = rmsdbtst)))
    OK (0 msec)
    [oracle@test-rms-app application]$
    [oracle@test-rms-app application]$ sqlplus rms13@rmsdbtst
    SQL*Plus: Release 11.1.0.7.0 - Production on Thu Dec 19 10:46:18 2013
    Copyright (c) 1982, 2008, Oracle.  All rights reserved.
    Enter password:
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> exit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    [oracle@test-rms-app application]$
    [oracle@test-rms-app application]$ ping test-rms-db
    PING test-rms-db.vonmaur.vmc (192.168.1.140) 56(84) bytes of data.
    64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=1 ttl=64 time=0.599 ms
    64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=2 ttl=64 time=0.168 ms
    64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=3 ttl=64 time=0.132 ms
    64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=4 ttl=64 time=0.158 ms
    64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=5 ttl=64 time=0.135 ms
    --- test-rms-db.vonmaur.vmc ping statistics ---
    5 packets transmitted, 5 received, 0% packet loss, time 4001ms
    rtt min/avg/max/mdev = 0.132/0.238/0.599/0.181 ms
    [oracle@test-rms-app application]$
    [oracle@test-rms-app application]$ uname -a
    Linux test-rms-app.vonmaur.vmc 2.6.18-128.el5 #1 SMP Wed Jan 21 08:45:05 EST 2009 x86_64 x86_64 x86_64 GNU/Linux
    [oracle@test-rms-app application]$
    [oracle@test-rms-app application]$ cat /etc/*-release
    Enterprise Linux Enterprise Linux Server release 5.3 (Carthage)
    Red Hat Enterprise Linux Server release 5.3 (Tikanga)
    [oracle@test-rms-app application]$
    The database is created and all the batch file scripts have been successfully deployed.  Now working on the application server.  The  Weblogic server is installed and 11g forms and reports are installed successfully.
    Any help would be helpful.
    Thanks,
    Ram.

    Please check MOS Notes:
    FAQ: RWMS 13.2 Installation and Configuration (Doc ID 1307639.1)

  • Need to connect to upgraded Oracle EBS R12 version from R11. The current ODI set up is pointing to R11, Can i use the same connection to point to R12? Please hele experts..

    Need to connect to upgraded Oracle EBS R12 version from R11. The current ODI set up is pointing to R11, Can i use the same connection to point to R12? Please hele experts...
    Rp

    1. in physical connections part can i use the same work schema
    2. Can i use same contexts created or do i need to create everything as new and then try?
    Thanks,
    Rp.
    Hi,
    As you mentioned that you just upgraded the database, so the data is same and schema is same you can connect with the same work schema.
    Yes, you can use the same contexts , but need to do Reverse Engineering for your new database.
    And about data server, i think you also have no need to create new data server, if hostname,sid and port etc are same as these were with R11(consult with your DBAs regarding it)

  • I use migrate assistant to move files from my old pc to the new Mac , but it creates the user account. How can i delete the unwanted user account.

    i use migrate assistant to move files from my old pc to the new Mac , but it creates the user account. How can i delete the unwanted user account.

    Welcome to Apple Support Communities
    That's the classic behaviour after using Migration Assistant and that's normal.
    To transfer the data from the new user account to your old user account, you can follow some steps. Here is all the information you need to do this > https://discussions.apple.com/docs/DOC-5472

  • My phone number appears on my daughters iTouch and she can receive my text messages.  If I need to creaye a new user account for her itouch, can i use the same iTunes account or do i need to create a new iTunes account?

    My phone number appears in my daughters list of acceptable numbers to receive texts or messages on her iTouch.
    I sync her iTouch on my iTunes account.
    Do I need to create a separate iTunes account for her to prevent this from happening?  or can i use the same itunes account and just create a separate a differne user name for the same itunes account?
    If i need to create a separate iTunes account, how can i save her data and game levels?

    I recommend that you
    Create a NEW account/ID for her using these instructions. Make sure you follow the instructions. Many do not and if you do not you will not get the None option. You must use an email address that you have not used with Apple before.
      Creating an iTunes Store, App Store, iBookstore, and Mac App Store account without a credit card
    Use the new ID on her iPod but only for:
    Settings>Messages>Send and Receive
    Settings>FaceTime
    and Settings>iCloud if you want her to have separate Contacts Calendar and some other things.
    Continue to use the same/common Apple ID for Settings>iTunes and App stores so you can share purchases.

  • Can i use the same email address for different users?

    we are a small department with one email address, can i use the same email address for different users?

    No. Each user needs to have his unique ID.
    Mylenium

  • I need java dvelopment kit to work on a certain website. plugin is set as "ask to activate" but i don't get a option to activate so can't use the website

    I need the Java Development Toolkit to work on a specific site to measure packet loss. As Firefox lists the plugin as a security risk there is no way to "enable" it permanently. So i choose the "ask to activate" option. but when i visit the site that requires java development toolkit, no option to click on anything to activate, no pop ups nothing. and i can't use the site.
    Have installed latest java plugin, uninstalled, re-installed etc.
    how can I solve this issue [short of dumping Firefox]

    Thanks for the prompt response Phillip.
    I tried that and it allowed me to select to activate the development toolkit on that site but the feature on the site still didn't work.
    I can access the site and get it to work in IE and so I tried opening the site in Firefox with IE tab 2 but still no luck.
    I am trying to use the site pingtest.com to measure my internet performance but the packet test always fails with java toolkit error.
    Any other ideas greatly appreciated as I hate using IE. I have latest java update and everything too
    cheers dandelion777

  • Hi. I'm looking to purchase an ipad air, but before I do I need to know if the device can be used by multi user logons like a lap top can be?

    Hi. I'm looking to purchase an ipad air, but before I do I need to know if the device can be used by multi user logons like a lap top can be?

    Thanks for your help. Bit of a shame really as it would be used as a family device for games etc but I don't want to double purchase everything, plus my progress in a game would be different to others.

Maybe you are looking for

  • On Mouse Text Appear/Fade IE Problem

    Hello Dreamweaver Sages, I'm having an odd problem I was hoping someone might be able to help me with. First, I am using CS6 and the latest of all browsers. I have applied the same Spry Appear/Fade effect to a images having <a href> links and text wi

  • CFGRID Item No.

    i have this cfgrid program and i want to put the item no. in the table but its not working... please help...     <cfgrid format="html"                 name="maingrid"                   bind="url:cfc/user.cfm?page={cfgridpage}&pageSize={cfgridpagesize

  • IO Error when accessing apex site

    Hello, I am using Oracle XE in a production environment. I have used the apex site on many occasions. Yesterday it started displaying a "Not Found" error, which eventually turned into an "Internal Server Error". I dug up the error logs, and found thi

  • Adding/Managing Keywords Seems to be very difficult.....

    Has anyone else noticed in iPhoto 2011 that managing keywords seems to be terrible? If I add a keyword or delete it, sometimes it seems better to hit TAB when finished, but sometimes it's better to hit ENTER.  Sometimes when I need to remove a keywor

  • Should I avoid iTunes7?

    I have read so many nightmares on these pages that I'm tempted to steer well clear of iTunes7, as 6 is doing everything I need. And as I just installed Final Vinyl and got it working with iTunes after some difficulty, I think I should leave well alon