Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Database > Oracle
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 31st, 2005, 05:14 AM
Friend of Wrox
 
Join Date: Sep 2004
Location: , , India.
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..

  #2 (permalink)  
Old February 4th, 2005, 07:30 PM
Authorized User
 
Join Date: Feb 2005
Location: Chennai, Tamil Nadu, India.
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
  #3 (permalink)  
Old February 5th, 2005, 12:14 AM
Authorized User
 
Join Date: Dec 2004
Location: , , India.
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
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 08:59 PM.


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