Wrox Programmer Forums
|
Oracle General Oracle database discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Oracle section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 31st, 2005, 05:14 AM
Friend of Wrox
 
Join Date: Sep 2004
Posts: 140
Thanks: 0
Thanked 0 Times in 0 Posts
Default Types

How Can i access a type which is stored in some other scheema in my procedure..
I have tried giveing grant and then using it by username.typename..
But it dose not worked..

 
Old February 4th, 2005, 07:30 PM
Authorized User
 
Join Date: Feb 2005
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to rockyrak
Default

hi,

try using username.schemaname.typename. it will work.



Ram
 
Old February 5th, 2005, 12:14 AM
Authorized User
 
Join Date: Dec 2004
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default

In sys user,

CREATE OR REPLACE TYPE NEWOBJECT1 AS OBJECT
(
  NEWATTRIB1 NUMBER
);

grant all on NEWOBJECT1 to scott

in scott user,

declare
test SYS.NEWOBJECT1;
begin
select sal into test.NEWATTRIB1 from emp
where rownum < 2;
end;


Sujit Ku. Mahapatra





Similar Threads
Thread Thread Starter Forum Replies Last Post
Mime types meinken Classic ASP Components 0 May 2nd, 2006 02:37 PM
Data Types Clive Astley Access 1 January 17th, 2006 04:13 PM
Data Types edward2006 Infopath 0 November 7th, 2005 06:06 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.