473,485 Members | 1,393 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Oracle ocinewcollection and collection defined inside package

In Oracle I have:
CREATE OR REPLACE TYPE "NUMBER_TBL" AS TABLE OF NUMBER(11);
when I do in PHP:
$arr = ocinewcollection($db, 'NUMBER_TBL');
everything is fine and I get collection object...

on the other hand if I have in Oracle:
CREATE OR REPLACE PACKAGE "TRIAL" AS
TYPE VARCHAR2_TBL IS TABLE OF VARCHAR2(11);
END;
when I do in PHP:
$arr = ocinewcollection($db, 'VARCHAR2_TBL');
I get false with a warning:
Warning: ocinewcollection(): OCITypeByName: OCI-22303: type
"."."VARCHAR2_TBL" not found in d:\tomy\htdocs\info2.php on line 16

What should I do so the second example with collection inside package works?

Thank you, Tomy.
Jul 17 '05 #1
1 4013
On Fri, 16 Jan 2004 18:07:30 +0100, "Tomislav Petrovic" <t.********@inet.hr>
wrote:
In Oracle I have:
CREATE OR REPLACE TYPE "NUMBER_TBL" AS TABLE OF NUMBER(11);
when I do in PHP:
$arr = ocinewcollection($db, 'NUMBER_TBL');
everything is fine and I get collection object...

on the other hand if I have in Oracle:
CREATE OR REPLACE PACKAGE "TRIAL" AS
TYPE VARCHAR2_TBL IS TABLE OF VARCHAR2(11);
END;
when I do in PHP:
$arr = ocinewcollection($db, 'VARCHAR2_TBL');
I get false with a warning:
Warning: ocinewcollection(): OCITypeByName: OCI-22303: type
"."."VARCHAR2_TBL" not found in d:\tomy\htdocs\info2.php on line 16

What should I do so the second example with collection inside package works?


Presumably qualify the name, i.e. TRIAL.VARCHAR2_TBL.

--
Andy Hassall <an**@andyh.co.uk> / Space: disk usage analysis tool
<http://www.andyh.co.uk> / <http://www.andyhsoftware.co.uk/space>
Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
3895
by: Tomislav Petrovic | last post by:
I have following code on my page.... $ora_tns = "(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=pirana)(PORT=1521)) )(CONNECT_DATA=(SID=pirana)(SERVER=DEDICATED)))"; $ora_username =...
0
1520
by: Tomislav Petrovic | last post by:
I have a problem with ocinewcollection which fails with follwing error: Warning: ocinewcollection(): OCITypeByName: ORA-21301: not initialized in object mode and returns false instead of...
0
1565
by: PedroSilva | last post by:
I need to know how to get a collection (varray), basically it's an array of chars with size of 9999 positions, from oracle so I can use it as an array with php. There's very little documentation...
0
998
by: C. Barnes | last post by:
OK, here's the setup: package/ __init__.py X.py python/lib/ X.py Now inside package, we want to import the copy
14
3336
by: Ger | last post by:
Hi all. Atm i am writing special system to store and restore information. There were diffirent ideas how to do this, all have pluses and minuses. Finally we desided to write system, what is...
0
2132
by: george | last post by:
Hi world! Anyone experienced building gridview in Oracle environment using stored procedures, please help! Right now, I have issues using Oracle SP, I spent a whole day on this and still...
3
3783
by: Tony Marston | last post by:
I am using PHP 4.4.4 with Oracle 10g Express Edition on Windows XP. I am trying to emulate in Oracle the SET datatype in MySQL and the ARRAY datatype in PostgreSQL I have the created a...
2
14197
by: Vinod Sadanandan | last post by:
All, Below listed are the new features in Oracle 11g ,please join me in this discussion to generate a testcase and analyze each of the listed features . Precompilers:...
0
4074
by: anuptosh | last post by:
Hi, I have been trying to run the below example to get a Oracle Array as an output from a Java code. This is an example I have found on the web. But, the expected result is that the code should...
0
6960
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7116
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7161
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6825
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7275
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5418
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4857
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3058
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1376
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.