Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Aarrrggghhh!!! Creating an index shouldn't be so hard!
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C02E4C.F4AC9C30
Content-Type: text/plain
grant CREATE INDEX to sysop
;)
Satar
> -----Original Message-----
> From: Dennis Taylor [SMTP:ismgr_at_pctc.com]
> Sent: Wednesday, October 04, 2000 11:26 PM
> To: Multiple recipients of list ORACLE-L
> Subject: Aarrrggghhh!!! Creating an index shouldn't be so hard!
>
> Well, I must admit to being flummoxed. The nature of this problem
> guarantees that it'll be easy, and I'll be embarrased. Well, tough. I'm
> tired of beating my head against the wall.
>
> I'm trying to create a function-based index on a table. Here's what I do:
>
> create user sysop identified by password
> default tablespace data
> temporary tablespace temp;
>
> grant CREATE SESSION to sysop;
> grant CREATE TABLE to sysop;
> grant UNLIMITED TABLESPACE to sysop;
> grant CREATE PUBLIC SYNONYM to sysop;
> grant DROP PUBLIC SYNONYM to sysop;
> grant CREATE DATABASE LINK to sysop;
> grant CREATE VIEW to sysop;
> grant CREATE TRIGGER to sysop;
> grant CREATE PROCEDURE to sysop;
>
> connect sysop/password
>
> drop table issuer;
>
> create table issuer (
> ISSUER_ID number(9) primary key,
> ISSUER_NAME varchar(80)
> );
>
>
> create index ISSUER_NAME_IDX on ISSUER (UPPER(ISSUER_NAME));
>
> And here's what I get:
>
>
> Table created.
>
> create index ISSUER_NAME_IDX on ISSUER (UPPER(ISSUER_NAME))
> *
> ERROR at line 1:
> ORA-01031: insufficient privileges
>
> (The '*' is actually under the 'I' in 'ISSUER_NAME')
>
> First, the reading of ora-1031 isn't even close to making sense. Then, if
> it's a privilege problem, I can't find any mention of any privilege that I
> don't have that I should need.
>
> Please relieve my groggy brain by pointing out the obvious problem so I
> can go hide under my desk. Thanks.
>
>
>
> ---
> Dennis Taylor
> ---
> Don't worry about people stealing your ideas. If your ideas
> are any good, you'll have to ram them down people's throats. -- Please
> see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Dennis
> Taylor INET: ismgr_at_pctc.com
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San
> Diego, California -- Public Internet access / Mailing Lists
> -------------------------------------------------------------------- To
> REMOVE yourself from this mailing list, send an E-Mail message to:
> ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the
> message BODY, include a line containing: UNSUB ORACLE-L (or the name of
> mailing list you want to be removed from). You may also send the HELP
> command for other information (like subscribing).
------_=_NextPart_001_01C02E4C.F4AC9C30
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =charset=3DUS-ASCII">
<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial">grant CREATE INDEX = to sysop</FONT>
<BR><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial"> </FONT> <BR><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial">;)</FONT> </P> <P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial">Satar</FONT> </P> <UL>
<P><FONT FACE=3D"Arial">Well, I must admit to being flummoxed. The = nature of this problem guarantees that it'll be easy, and I'll be = embarrased. Well, tough. I'm tired of beating my head against the wall. = </FONT></P>
<P><FONT FACE=3D"Arial">I'm trying to create a function-based index on =
a table. Here's what I do: </FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Courier New">create user sysop identified by =
password </FONT>
<BR> <FONT SIZE=3D2 =
FACE=3D"Courier New">default tablespace data </FONT>
<BR> <FONT SIZE=3D2 =
FACE=3D"Courier New">temporary tablespace temp; </FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Courier New">grant CREATE SESSION to sysop; = </FONT> <BR><FONT SIZE=3D2 FACE=3D"Courier New">grant CREATE TABLE to sysop; = </FONT> <BR><FONT SIZE=3D2 FACE=3D"Courier New">grant UNLIMITED TABLESPACE to =sysop; </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">grant CREATE VIEW to sysop; = </FONT> <BR><FONT SIZE=3D2 FACE=3D"Courier New">grant CREATE TRIGGER to sysop; = </FONT> <BR><FONT SIZE=3D2 FACE=3D"Courier New">grant CREATE PROCEDURE to =sysop; </FONT>
<P><FONT SIZE=3D2 FACE=3D"Courier New">connect sysop/password </FONT> </P>
<P><FONT SIZE=3D2 FACE=3D"Courier New">drop table issuer; </FONT> </P>
<P><FONT SIZE=3D2 FACE=3D"Courier New">create table issuer ( </FONT>
<BR> <FONT SIZE=3D2 =
FACE=3D"Courier New">ISSUER_ID =
number(9) primary key, =
</FONT>
<BR> <FONT SIZE=3D2 =
FACE=3D"Courier New">ISSUER_NAME =
varchar(80) </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New">); </FONT> </P> <BR>
<P><FONT SIZE=3D2 FACE=3D"Courier New">create index ISSUER_NAME_IDX on =
ISSUER (UPPER(ISSUER_NAME)); </FONT>
</P>
<P><FONT FACE=3D"Arial">And here's what I get: </FONT> </P> <BR>
<P><FONT FACE=3D"Arial">Table created. </FONT> </P>
<P><FONT FACE=3D"Arial">create index ISSUER_NAME_IDX on ISSUER =
(UPPER(ISSUER_NAME)) </FONT>
<BR><FONT =
FACE=3D"Arial"> &nb= sp; &nb= sp; &nb= sp; * = </FONT> <BR><FONT FACE=3D"Arial">ERROR at line 1: </FONT><BR><FONT FACE=3D"Arial">ORA-01031: insufficient privileges </FONT> </P>
<P><FONT FACE=3D"Arial">(The '*' is actually under the 'I' in =
'ISSUER_NAME') </FONT>
</P>
<P><FONT FACE=3D"Arial">First, the reading of ora-1031 isn't even close = to making sense. Then, if it's a privilege problem, I can't find any = mention of any privilege that I don't have that I should need. = </FONT></P>
<P><FONT FACE=3D"Arial">Please relieve my groggy brain by pointing out = the obvious problem so I can go hide under my desk. Thanks. </FONT>
</P> <BR> <BR> <P><FONT FACE=3D"Arial">--- </FONT> <BR><FONT FACE=3D"Arial">Dennis Taylor </FONT><BR><FONT FACE=3D"Arial">--- </FONT>
<P><FONT FACE=3D"Arial">Fat City Network Services -- = (858) 538-5051 FAX: (858) 538-5051 San Diego, = California -- Public Internet = access / Mailing Lists =
-------------------------------------------------------------------- To =REMOVE yourself from this mailing list, send an E-Mail message to: = ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the = message BODY, include a line containing: UNSUB ORACLE-L (or the name of = Received on Wed Oct 04 2000 - 16:49:22 CDT
![]() |
![]() |