Cannot query varray of object types-please help
I am attempting to query the "diminfo" field of the view "MDSYS.all_sdo_geom_metadata". The field is "described" as MDSYS.SDO_DIM_ARRAY, which I believe is a varray of MDSYS.SDO_DIM_ELEMENT.
I have run OTT to generate the class files, but nothing is generated for the MDSYS.SDO_DIM_ARRAY "type" (maybe because it's not really a type?). A class is generated for the SDO_DIM_ELEMENT objects.
Anyway, I have tried to query the field using both "VALUE(diminfo)" and "REF(diminfo)":
select VALUE(diminfo) from all_sdo_geom_metadata;
- or -
select REF(diminfo) from all_sdo_geom_metadata;
and I get back an ORA-904 "invalid identifier". When I remove the "VALUE" or "REF" from the query, the error goes away, and is replaced by an ORA-32162 "Read/Write method not registered" further down in the code when I try to retreive the value from the recordset:
myDimInfo = rSet->getObject(1);
Since the field type (MDSYS.SDO_DIM_ARRAY) isn't really an object type, I can see why the "Read/Write method not registered" occurs-there are no methods to register.
Can someone provide a code snippet of how to perform this query?
Thanks in advance
Hi,
I am using OTT generated objects to pass them to my PL/SQL procedures as OUT parameters. When I call the registerOutParam() function, I get this error ORA-32162: Read/Write SQL method not registered.
I am calling my mapping function after creating environment and before creating my stateless connection pool. But still I am getting this exception at runtime while calling registerOutParam().
Environment* env;
env = Environment::createEnvironment(Environment::OBJECT);
MessageTOMapping(env); // Calling the mapping function here.
// Creating the stateless connection pool.
StatelessConnectionPool* scp;
scp = env->createStatelessConnectionPool("naveen",
"naveen",
"//10.105.153.11:1521/pls",
10,
5,
2,
StatelessConnectionPool::HOMOGENEOUS);
// Fetch a connection from the stateless connection pool
conn = scp->getConnection();
// After this, I create my Statement and call the registerOutParam() which
// causes ORA-32162 exception.
Please note that I do not get this error when I don't use any connection-pooling mechanism. That is, if I create an environment in OBJECT mode, call the mapping function with its pointer and create a normal Connection object (without any pooling etc), my application runs perfectly fine. E.g. if I replace the above piece of code with the code below, my application runs fine.
Environment* env;
env = Environment::createEnvironment(Environment::OBJECT);
MessageTOMapping(env); // Calling the mapping function here.
conn = env->createConnection("naveen", "naveen", "//10.105.153.11:1521/pls");
// After this, I create my Statement and call the registerOutParam() which
// does not give problem now and my application runs pefectly fine.
Can anyone let me know what I am doing wrong while using the stateless connection pooling mechanism? I definitely need to use Stateless Connection Pooling and must not get connections directly from env->createConnection().
Any help will be greatly appreciated.
Thanks and Regards,
Naveen
Similar Messages
-
Hi All. I am new to this forum but hoping I can find some answers from some of you apple guru's out there. I have downloaded a mvie onto my iphone (which took forevere but I cannot find it to view it.Please help
It should be in the Videos App - if it's not in there then have you got a film age rating set in Settings > General > Resttrictions that is hiding it ?
-
Problem in fetching varray of Object type
Below are the code,
where am calling an procedure which returns me Varray of object type test_obj(id number, name varchar2);
Am facing an problem in get the object(test_obj) from ARRAY object
the exception is java.lang.ClassCastException: java.lang.Object
at line number No 12..
Can anyone suggest me How handle this...
1. STRUCT test_objStruct ;
2. ARRAY test_arr;
3. OracleCallableStatement cs = (OracleCallableStatement)
4. con.prepareCall("{call test_data(?)}");
5. cs.registerOutParameter(1,oracle.jdbc.driver.OracleTypes.ARRAY,"TEST_ARR");
6. cs.execute();
7. test_arr = (ARRAY)cs.getObject(1);
8.System.out.println("array varible "+test_arr.getBaseTypeName());
9. System.out.println("length "+test_arr.length());
10. Map map = (Map)con.getTypeMap();
11. map.put("TEST_OBJ", Class.forName("oracle.sql.STRUCT"));
12. test_objStruct = (STRUCT)test_arr.getArray(1,1);
13.Object country_attrs[] = test_objStruct.getAttributes();
14.System.out.println ("ID: " country_attrs[0]);
15.System.out.println ("Name: " +country_attrs[1]);
the output is..
array varible TEST_OBJ
length 106
Error java.lang.ClassCastException: java.lang.ObjectHi,
The error occurs on line 12, the first time through the loop, when you try to execute:
vClient(iCounter).ename_obj:=i.ename;
At that point, vClient (1) is not an Employee object; it's NULL.
Try this:
DECLARE
TYPE tvrEmploy IS VARRAY(10) OF Employee;
vClient tvrEmploy;
iCounter integer := 1;
CURSOR client_cursor IS
SELECT ename, sal
, empno -- ADDED
FROM scott.emp
WHERE rownum < 11;
BEGIN
vClient := tvrEmploy (null,null,null,null,null,null,null,null,null,null) ;
FOR i IN client_cursor LOOP
vClient (iCounter) := Employee (i.ename, i.empno, i.sal); -- CHANGED
iCounter := iCounter + 1;
END LOOP;
FOR I IN REVERSE 1..10 LOOP
dbms_output.put_line(to_char(I) ||' '|| vClient(I).ename_obj ||' '|| vClient(I).empno_obj ||' '||
vClient(I).sal_obj);
END LOOP;
END ; -
i cannot transfer some videos to my iphone 3gs. the file is in MPEG4 format. i can view in itunes but cannot be transfered to iphone. Please help me with this problem.
In iTunes, Advanced>Create iPod or iPhone version
-
omeone meet the problem, I am not abble install mac OS 10.6 snow leopard on intel based machine, (intel core 2 duo, 2,8 ghz, 4GB RAM, 320 GB HDD, OSX 10.5.8) system every time wrote "OS X snow leopard cannot be install on this machine" please help, Majo
It is retail disk, i bought it in apple store. I also resetter PRRAM and SMC and checked disk. I also tried clean installation and upgrade, nothing works, after run installation program after few seconds wrote: OS X Snow Leopard cannot be install on this machine :-(
Thank you for your answer
Majo -
i have less than 5 authorised computers. yet cannot authorise my new iMAC27. Please help..
Hello Morfaly,
Thanks for the question. The following article may provide a solution to your issue:
iTunes: Missing folder or incorrect permissions may prevent authorization
http://support.apple.com/kb/TS1277
Thanks,
Matt M. -
I have been working on installing this software for weeks now and am at the end. The first time the organizer installed but the editor wouldn't. I have uninstalled and reinstalled multiple times and am ready to take this application back to the store. I have a Vista machine.
It still didn't work. I paid for Photoshop 12 at Costco. The organizer downloaded just fine but when I tried to use the editor, the screen appeared asking for my Adobe sign on, I signed on, and then the application just churned. I had to use task manager to stop it. Per your instruction, I downloaded Photoshop 13 from the site, it downloaded fine and then asked for my Adobe sign on and then just churned. I can now access Photoshop 13 organizer but still can't get editor.
This is ridiculous. Last night I did the msconfig.exe and followed the instructions on changing the start up menu and disabling everything.
I am furious about this. It looks like you want me to pay for Photoshop Elements 13 when I can't get 12 to work. This is a Vista machine.
Elena Wright
Rajshree <[email protected]> wrote:
Rajshree created the discussion
"cannot install my costco photoshop 12 please help. it is now installing itself. Will take it back tomorrow."
To view the discussion, visit: https://forums.adobe.com/message/6870350#6870350
> -
when i try to access itunes store..i get a message saying 'cannot connect to itunes store..PLEASE HELP!!!
Hello Ducati848,
Thanks for using Apple Support Communities.
For more information on this, take a look at:
iTunes for Windows Vista or Windows 7: Troubleshooting unexpected quits, freezes, or launch issues
http://support.apple.com/kb/ts1717
Best of luck,
Mario -
I have tried to update my iPhone 4 many times (from iOS 5.1 to latest version), but everytime it fails and says that it cannot be updated. unknown error (3194). please help.
<E-mail Edited by Host>You might try reading the entire help document you linked from:
Unable to contact the iOS software update server gs.apple.com
Error 1004, 1013, 1638, 3014, 3194: These errors may be the result of the connection to gs.apple.com being redirected or blocked. Follow these steps to resolve these errors:
Install the latest version of iTunes.
Check security software. Ensure that communication to gs.apple.com is allowed. Follow this article for assistance with security software. iTunes for Windows: Troubleshooting security software issues.
Check the hosts file. The restore will fail if there is an active entry to redirect gs.apple.com. FollowiTunes: Advanced iTunes Store troubleshooting to edit the hosts file or revert to a default hosts file. See section "Blocked by configuration: (Mac OS X/Windows) > Rebuild network information".
Try to restore from another known-good computer and network.
If the errors persist on another computer, the device may need service. -
I just exchanged a faulty iPhone 4 for a new one, when I got home to restore it, iCloud says "cannot restore backup". Can somebody please help provide much needed advice? Thanks in advance!
Yep, that's the only message that popped out. Nothing else. Yes, it's running on the latest ios and I still can't restore it. I called apple and they told me it's probably something wrong with their servers. Anyway thanks for the advice.
-
My ipad 3 freezes then switches itself off when i begin to type, please help.
my ipad 3 freezes then switches itself off whenever i begin to type, please help!
http://docs.info.apple.com/article.html?artnum=58583
just regular FireWire cable (6-6 pin) - when you use target mode, computer acts as if it was external hard drive and supposed to show up on another Mac's desktop as a drive - you could use Disk Utility on another Mac and format the PowerBoook.
if there is some hardware problem though, sometimes target mode won't work.
also, maybe try some other OS disc just in case your OS CD is defective somehow. -
Cannot sign in to iTunes? Please help.
Cannot sign in to iTunes? Please help.
Welcome to the Apple Community.
Assuming this is not the first time you have used your Apple TV
You might try restarting the Apple TV by removing ALL the cables for 30 seconds.
Also try restarting the router.
If the problem persists, try a restore, you may want to try the previous procedures several times before doing this.
If restoring from the Apple TV doesn't help, try restoring from iTunes using a USB cable.
If this is a new Apple TV, in addition to trying the above, it may also be that your network router is not allowing access to the timeserver, check that your router allows access over port 123. -
After i Updated itunes al my ipod apps including safari and music, photos and all of them went away and i cannot do anything on it anymore please help?
- Try a reset. Nothing is lost:
Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
least ten seconds, until the Apple logo appears.
- Can you find the apps using the Spotlight search on the iPod? Maybe you just can't find them
- If you can find them you can reset the screen layout by go to Settings>Genera.Reset>?Reset Screen Layout.
- Restore from backup
- Restore to factory settings/new iPod. -
i bought adobe muse because my trial expired and i really need the program, i got an order number not a serial number! I cannot install my producto Adobe Muse please help! i have been more than 5 hours trying! im tired!
Hi,
Please check this thread,
i need my serial number
If nothing works, please reach out to the support team, using the following link ,
Contact Customer Care -
Need to export Missing object type called "TYPE" Please Help
I did a referesh of one of the schema, I could see the difference between the source and destination schema object count.
but object type is "TYPE" , where the difference lies.
Three TYPE kind of objects are extra found in production which have not been imported to dest db.
Could you please help me how can i take export of those object types and import the same in dest.
For reference: Missing objects in destination schema
OBJECT_NAME OBJECT_TYPE
SYS_PLSQL_88116_DUMMY_1 TYPE
SYS_PLSQL_88116_481_1 TYPE
SYS_PLSQL_88116_433_1 TYPESir I have already tried that, but couldnt succeed.
For reference: The 19 type which are imported successfully out of 22, the DDL is acheived, but when I tried to get the ddl of rest three from production it throws error, like not found in schema, even i tried to get it from sys schema, but same error..
The one which is imported properly
=========================
SQL> select dbms_metadata.get_ddl('TYPE','XRATE_TABLE_TYPE','TKCSOWNER') FROM DUAL;
DBMS_METADATA.GET_DDL('TYPE','XRATE_TABLE_TYPE','TKCSOWNER')
CREATE OR REPLACE TYPE "TKCSOWNER"."XRATE_TABLE_TYPE" IS TABLE OF XRATE_RECORD
The one which is not imported:
==================
SQL> select dbms_metadata.get_ddl('TYPE','SYS_PLSQL_88116_DUMMY_1','TKCSOWNER') FROM DUAL;
ERROR:
ORA-31603: object "SYS_PLSQL_88116_DUMMY_1" of type TYPE not found in schema
"TKCSOWNER"
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 105
ORA-06512: at "SYS.DBMS_METADATA", line 3241
ORA-06512: at "SYS.DBMS_METADATA", line 4812
ORA-06512: at line 1
no rows selected
Maybe you are looking for
-
I'm a CC subscriber from CS6, all work well, I have installed CS5, CS6 and now I installed CC. I have Windows 7 64 bit. All the program from three group work well, I haven't tried all of the CC programs, but most of them are ok. In the CC manager I c
-
My pop-up blocker isn't enabled how do I do re-enable it?
I get a pop up every time I open Firefox of log on to my user account, and my pop-up blocker seems to be disabled. How do I reverse this process?
-
In which Oracle version is that possibile?
I've tried to create these procedure that I've found. CREATE OR REPLACE PROCEDURE genlookup (tab IN VARCHAR2, col IN VARCHAR2) IS BEGIN pl ('CREATE OR REPLACE FUNCTION ' || l_ltab || '_row_for ('); pl (' ' || l_lcol || '_in IN ' || l_ltab || '.' || l
-
Buying music while being abroad
Hello, I live in Canada, but am working in a country which does not have an iTunes Music Store. Can I still buy music from the Canadian iTunes Music Store? My credit card is Canadian (but had to change my billing address to here). Thanks! Paul
-
"Unsaved Pages Document.pages" couldn't be moved because you don't have permission to access "Autosave Information". I am not able to "duplicate" my Page or Keynote document. I am getting a dialog window that says ""Unsaved Pages Document.pages" coul