If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Oracle > Creating a View

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-03-11, 00:28
jmax jmax is offline
Registered User
 
Join Date: Oct 2011
Posts: 7
Creating a View

I am trying to create a simple view, it seems oracle will not allow me to do this because I have insufficient privileges. I keep reading and using google and still to no avail cannot get it to work.....So I am here again...Thanks in advance.

CREATE VIEW SupplierTotal AS
SELECT companyname, phone
FROM supplier;

Tried this, does not work...
grant select on supplier to "me";

Any help would be great!

Thanks again!
Reply With Quote
  #2 (permalink)  
Old 12-03-11, 00:36
anacedent anacedent is offline
Registered User
 
Join Date: Aug 2003
Location: Where the Surf Meets the Turf @Del Mar, CA
Posts: 6,415
It works for me!
Code:
SQL> create table supplier (companyname varchar2(30), phone varchar2(20));

Table created.

SQL> CREATE VIEW SupplierTotal AS SELECT companyname, phone FROM supplier;

View created.
__________________
You can lead some folks to knowledge, but you can not make them think.
The average person thinks he's above average!
For most folks, they don't know, what they don't know.
Reply With Quote
  #3 (permalink)  
Old 12-03-11, 00:50
jmax jmax is offline
Registered User
 
Join Date: Oct 2011
Posts: 7
Still Looking!

Funny thing is I can just use select and it works, still cannot create view. Could there be a constraint I need to remove? Or am I just...missing the picture?
Reply With Quote
  #4 (permalink)  
Old 12-03-11, 10:51
anacedent anacedent is offline
Registered User
 
Join Date: Aug 2003
Location: Where the Surf Meets the Turf @Del Mar, CA
Posts: 6,415
which schema is logged in & trying to make VIEW?
does current schema have CREATE VIEW privilege?
does current schema have SELECT privilege on table SUPPLIER?
__________________
You can lead some folks to knowledge, but you can not make them think.
The average person thinks he's above average!
For most folks, they don't know, what they don't know.
Reply With Quote
  #5 (permalink)  
Old 12-04-11, 07:25
shammat shammat is offline
Registered User
 
Join Date: Nov 2003
Posts: 2,408
Quote:
Originally Posted by jmax View Post
still cannot create view.
And the error message is?
Reply With Quote
Reply

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 On
Pingbacks are On
Refbacks are On