ORA-01720 while trying to grant select on a view
Hi Friends,
Iam getting the following error while trying to grant select privilege for the view to SchemaB, i have the view in schemaA.
I have used the tables from both the schema for creating the view and iam getting the error on showing a particular table
ORA-01720: grant option does not exist for 'schemaB.Product'.
I have looked into so many forums but i couldn't find the answer for my question.
I must have to create the view in the Schema A only(strictly), as i seen in some forums stated that while creating the view in the other schema and granting the select privilege will solve the problem.But it was an exception to me ...
Tell me something how can i proceed in this .....
grant select on t1 to seconduser with admin optionNo. WITH ADMIN OPTION applies to system privileges only. Object privileges need the WITH GRANT OPTION ...
SQL> grant select on joe_soap.some_table to apc with admin option
2 /
grant select on joe_soap.some_table to apc with admin option
ERROR at line 1:
ORA-00993: missing GRANT keyword
SQL> grant select any table to apc with admin option
2 /
Grant succeeded.
SQL> grant select on joe_soap.some_table to apc with grant option
2 /
Grant succeeded.
SQL> Cheers, APC
Similar Messages
-
Error ORA-02375 while trying to export/import JTF.JTF_PF_REPOSITORY table
We have already created an SR, In the mean time, trying to see whether anyone else has come across this issue. Thanks.
On : 11.2.0.3 version, Data Pump Import
Error ORA-02375 while trying to import JTF.JTF_PF_REPOSITORY table
We are getting the below error while performing the full db
import.
ORA-02375: conversion error loading table
"JTF"."JTF_PF_REPOSITORY" partition "EBIZ"
ORA-22337: the type of accessed
object has been evolved
ORA-02372: data for row: SYS_NC00040$ :
0X'8801FE000004AD0313FFFF0009198401190A434F4E4E454354'
This issue is
stopping our upgrade of database from 10.2.0.4 to 11.2.0.3. This is very
critical for us to be resolved.Hi,
seems this is Character set issue fo source and Target DB check this doc:Unable to Export Table WF_ITEM_ATTRIBUTE_VALUES due to errors ORA-02374, ORA-22337, and ORA-02372 (Doc ID 1522761.1)
HTH -
An error occurred while trying to add selected printer
I have a imac osx 10.7.3 and I am trying to reset my printer because my computer says an error occured while trying to add selected printer. When I push the control button and push the add button nothing happens am I doing something wrong.
found out what to do
-
Granting select on X$ views?
Hi,
Is it possible to select from X$ views from users other than sys? Is it not possible to grant privileges on these structures/views?
Cheers,
WarrenWhat you would need to do: create a view on the X$ view and grant select on the view. See Steve Adams' create_xviews.sql script for an example.
-
ORA-01422: while trying to create a job
Hi all,
WE need a help from you, group of experts
we are getting the following error
ORA-01422: exact fetch returns more than requested number of rows
ORA-06512: at "SYS.DBMS_ISCHED", while trying to create a job using the following code
BEGIN
DBMS_SCHEDULER.create_program
(program_name => 'FAILURE_MONITOR_PRG',
program_action => 'JOB_MGR.SPR_FAILURE_MONITOR',
program_type => 'STORED_PROCEDURE',
number_of_arguments => 1,
enabled => FALSE
DBMS_SCHEDULER.define_metadata_argument
(program_name => 'FAILURE_MONITOR_PRG',
argument_position => 1,
metadata_attribute => 'EVENT_MESSAGE'
DBMS_SCHEDULER.create_job
(job_name => 'FAILURE_MONITOR_JOB',
program_name => 'FAILURE_MONITOR_PRG',
enabled => TRUE,
auto_drop => FALSE,
start_date => SYSDATE,
event_condition => 'tab.user_data.event = ''FAILED''',
queue_spec => 'event_queue'
END;
Oracle allows us to create the job if the parameter values for enabled is "false" in the DBMS_SCHEDULER.create_job call. But we got the same error
when tried to enable the job using exec DBMS_SCHEDULER.ENABLE ('FAILURE_MONITOR_JOB');
ORA-01422: exact fetch returns more than requested number of rows
ORA-06512: at "SYS.DBMS_ISCHED", line 2751
ORA-06512: at "SYS.DBMS_SCHEDULER", line 1794
ORA-06512: at line 1
Please help us to solve this issue
Thanks,
Reghu
nullHi Ravi,
Thank you for your kind support
That issue has been solved. Problem was with the event queue and only for that particular job i mentioned in the first post (I was able to create other jobs with different Events using the same queue) . After recreating the event queue i am able to create the same job. I got the same error when I tired to drop the queue, and then I dropped the queue table itself. Do you have any idea about what might had caused the issue?
Thanks
Reghu -
If DBMS_LOB is include in a view I can't grant select on the view
I have a view which includes a column that uses DBMS_LOB.SUBSTR( MyLob, 4000, 1 )....
The view works for the owner. When I attempt to grant select on it I get
grant select on MyView
ERROR at line 1:
ORA-01720: grant option does not exist for 'SYS.DBMS_LOB'What am I missing here... Is there a conceptual flaw in my reasoning or is there a permission problem with including a LOB in a view ?
When the view is in my account, everything is fine. I try to grant select on an object I own and I get...
ORA-01720: grant option does not exist for 'SYS.DBMS_LOB'
It seems to underline that the implementation of LOBS is somewhat different than other data types. If I store the LOB inline, I probably would be OK if the data is less than 4000, but I would not use a LOB in that case. -
Granting SELECT on dictionary views ... (?)
Hi there,
please try to find out, what I am doing wrong below:
1. I connect as sys:
connect sys as sysdba
2. Create a role. Just to point out the problem, it will have just CREATE SESSION, CREATE PROCEDURE
create role tr not identified;
grant create session to tr;
grant create procedure to tr;
3. Now the problem: I want the role (users with that role) to have SELECT privilege, just on one dict-view, that is v$session:
My first attempt is denied:
grant select on v$session to tr;
grant select on v$session to tr
FEHLER in Zeile 1:
ORA-02030: can only select from fixed tables/views
Now this in itself is wierd. I read v$-objects are synonyms to v_$-objects. Is that right? What is the problem here? See, what happens next...
4. grant select on v_$session to tr;
That works!
5. create user tu identified by tu;
grant tr to tu;
That works!
6. Now connect as tu/tu
sql*plus Test: select count(*) from v$session;
COUNT(*)
46
works!
7. Now: create a simple stored function to perform the same as my query:
create or replace function testf
return number
is
res number;
begin
select count(*) into res from v$session;
return res;
end;
This is refused with ORA-00942: Table or view does not exist !!!
Simple query on v$session works, but its usage inside a stored function is not allowed??? Please explain!!!
Pointing out to the explanation in the documentation (just one link) would suffice. I just have not found an explanation for this behaviour!
Many thanks in advance!
XenofonOk, It seems this GRANT, even though it is an object privilege it is handled like of those privileges, which can be granted only directly to a user and not to a role;
But on the other hand, the reaction is not the system:
When you try to grant UNLIMITED tablespace to a role you get a definitive error message: ORA-01931.
You don't get this error when granting SELECT on V_$SESSION to a role...
It's getting more and more wierd...
(Does anyone know a complete list of privs which can only be granted directly to a user? I thought it's only UNLIMITED TABLESPACE) -
ORA-01031 insufficient privileges error when selecting from a view
OK I think this might be a dumb question but I can't figure it out:
User John has been granted SELECT privilege (directly, not through a database role) to schema FRED.table1;
User John can issue select * from FRED.table1; and it works just fine.
User John has then been granted SELECT privilege (directly, not via a database role) to schema
MARK.view1;
MARK.view1 only selects from FRED.table1. No other tables are in the view1.
Schema MARK can successfully query the views. SELECT * FROM VIEW1 returns results.
I also checked the MARK schema to ensure that it has been granted SELECT on FRED.table1 directly which it has.
Now, when logged into schema John, I try SELECT * FROM MARK.VIEW1; and I get ORA-01031 insufficient privileges error.
I'm not sure how to troubleshoot this. If John is granted SELECT ANY TABLE, it of course works but I don't want John to have that powerful priv.
To recap, John has SELECT on both MARK.VIEW1 and the table which VIEW1 selects from (FRED.TABLE1).
John can select from FRED.TABLE1 no problem but receives a privilege error even though John has SELECT on MARK.VIEW1.
Any thoughts?
Oh, Oracle EE 10.2.0.4JSebastian wrote:
OK I think this might be a dumb question but I can't figure it out:
User John has been granted SELECT privilege (directly, not through a database role) to schema FRED.table1;
User John can issue select * from FRED.table1; and it works just fine.
User John has then been granted SELECT privilege (directly, not via a database role) to schema
MARK.view1;
MARK.view1 only selects from FRED.table1. No other tables are in the view1.
Schema MARK can successfully query the views. SELECT * FROM VIEW1 returns results.
I also checked the MARK schema to ensure that it has been granted SELECT on FRED.table1 directly which it has.
Now, when logged into schema John, I try SELECT * FROM MARK.VIEW1; and I get ORA-01031 insufficient privileges error.
I'm not sure how to troubleshoot this. If John is granted SELECT ANY TABLE, it of course works but I don't want John to have that powerful priv.
To recap, John has SELECT on both MARK.VIEW1 and the table which VIEW1 selects from (FRED.TABLE1).
John can select from FRED.TABLE1 no problem but receives a privilege error even though John has SELECT on MARK.VIEW1.
Any thoughts?
Oh, Oracle EE 10.2.0.4Are you certain John has been granted select on Mark.view1 ? In order for that to work Mark would have to have been given select on Fred.table1 WITH GRANT OPTION ... otherwise the grant would fail and then John would not be able to select from the view because the grant was never successfully issued.
Here's a basic test case (which i think conforms to what you've outlined) to get it working.
drop user u1 cascade;
drop user u2 cascade;
drop user u3 cascade;
create user u1 identified by u1;
grant connect, resource to u1;
create user u2 identified by u2;
grant connect, resource, create view to u2;
create user u3 identified by u3;
grant connect, resource to u3;
connect u1/u1@orcl
create table test1 (col1 number);
grant select on test1 to u2 with grant option; --> this is the important part
grant select on test1 to u3;
connect u2/u2@orcl
create view test2 as select * from u1.test1;
grant select on test2 to u3;
connect u3/u3@orcl
select * from u2.test2; -
ORA-01427 while trying INSERT working SQL
Hello,
I have really non-logical problem.
I'm using Oracle 10g.
I have a query that contains some subqueries, it's pretty normal query as milion similar:
SELECT a.field1,
(SELECT b.field2 FROM tab2 b WHERE b.key = a.key) field2
FROM tab1 a
Query works fine, returns expected amount of records but while I'm trying to save it somehow it returns me an error:
ORA-01427:single-row subquery returns more than one row
It would be normal if I'd have it executing SELECT statement. But SELECT works great - error occurs when I'm trying to save the results somehow - INSERT, CREATE TABLE AS or save it to file.
Please, help.
Thanks.hello solomon,
I am using oracle 10g on unix solaris,
when i try this code it will always return this error 'ORA-01427 single-row subquery returns more than one row'
SELECT REPLACE(a.party_key,'NG',''),
party_first_name,
party_last_name,
passport_number,
(SELECT party_type_DESC from party_type b where b.sub_id = a.sub_id),
birth_incorp_date,
is_online_account,
online_service_join_date,
online_login_name,
(select email_address from party_email where party_key = a.party_key),
is_call_center_account,
call_center_service_enrollment,
(select phone_num from party_phone where party_key = a.party_key)
mobile_phone,
a.row_update_date,
name_update_date,
password_update_date,
a.row_update_date,
a.row_update_date
from party a
where sub_id = 'NG';
what i intend to achieve is to extract some columns in party table including party_type_DESC from party_type,email_address from party_email and phone_num from party_phone.
note:
some columns in party table do not have email_address and phone_num.
can i know what i am not doing well in the code.
thanks for your understanding
Regards.
AbdurRahman -
ORA-29541 while trying to access web service using UTL_DBWS
Hi all,
Solicit your help in the beforesaid scenario:
I've 9.2.01 RDBMS, JPub 9.2.0.1.0 Production and OC4J Release 10.1.2 (standalone) environment and a local webservice.
While issuing jpub, I get the following response:
jpub -user=scott/tiger@ORACLE -sysuser sys/tiger -proxywsdl="e:\IMyFloatWebService.wsdl" -endpoint="http://10.177.238.71:8988/WS_Appln-WSFloat_prj-context-root/MyFloatWebService" -proxyopts=soap,tabfun -dir=FloatValue -plsqlpackage=soap_callout_wrap_eg -proxyopts=noload
Note: FloatValue\MyFloatWebServiceProxy.java uses unchecked or unsafe operations
Note: Recompile with -Xlint:unchecked for details.
FloatValue\MyFloatWebServiceProxyJPub.java
FloatValue\plsql_wrapper.sql
FloatValue\plsql_dropper.sql
FloatValue\plsql_grant.sql
FloatValue\plsql_revoke.sql
FloatValue\plsql_proxy.jar
Please run FloatValue\plsql_wrapper.sql in the user schema, load the generated j
ar file and run FloatValue\plsql_grant.sql in the SYS schema.
i. e - I get message as seen above:
"Please run FloatValue\plsql_wrapper.sql in the user schema, load the generated j
ar file and run FloatValue\plsql_grant.sql in the SYS schema."
And in sqlplus, while I try to access the web service, I get this error:
"SQL> sho user;
USER is "SCOTT"
SQL> SELECT soap_callout_wrap_eg.getCircumference(20)
2 FROM dual;
FROM dual
ERROR at line 2:
ORA-29541: class SCOTT.MyWebServiceFloatRTEProxyJPub could not be resolved"
Could somebody please advise me where I might be going wrong? Any help in this regards will be highly appreciated.
Regards,
LeslieHi,
I presume your Web Service needs HTTP (BASIC?) Authentication.
All this needs is setting the following 2 properties, which as can be seen, you are setting....
UTL_DBWS.set_property(l_call, 'USERNAME', '<username>');
UTL_DBWS.set_property(l_call, 'PASSWORD', '<pwd>');
This should work as long as your DBWS Callout Utility was downloaded from OTN after June 2008, and it's version is atleast 10.1.3.1.
Following is a sample code snippet that was tested successfully for this :
Declare
l_service UTL_DBWS.service;
l_call UTL_DBWS.call;
l_result sys.XMLTYPE;
l_request sys.XMLTYPE;
BEGIN
l_service := UTL_DBWS.create_service(null);
l_call := UTL_DBWS.create_call(l_service);
UTL_DBWS.set_target_endpoint_address(l_call, 'http://xxx.oracle.com:8888/basic/MyWebService1SoapHttpPort');
UTL_DBWS.set_property(l_call, 'USERNAME', 'username');
UTL_DBWS.set_property(l_call, 'PASSWORD', 'pwd');
UTL_DBWS.set_property(l_call, 'OPERATION_STYLE', 'document');
UTL_DBWS.set_property(l_call, 'SOAPACTION_USE', 'true');
UTL_DBWS.set_property(l_call, 'SOAPACTION_URI', 'http://xxx.oracle.com:8888/basic/MyWebService1SoapHttpPort');
l_request := XMLTYPE('<Z_CENTRICITY_GET_DOCLIST
xmlns:urn="urn:sap-com:document:sap:rfc:functions">' ||
'<I_INCLUDE_OLD_VERSIONS></I_INCLUDE_OLD_VERSIONS>' ||
'<I_INSTITUTION>0001</I_INSTITUTION>' ||
'<I_PATIENT_NR>0000000181</I_PATIENT_NR>' ||
'</Z_CENTRICITY_GET_DOCLIST>');
l_result := UTL_DBWS.invoke(l_call, l_request);
UTL_DBWS.release_call (call_handle => l_call);
UTL_DBWS.release_service (service_handle => l_service);
EXCEPTION
WHEN OTHERS THEN
dbms_output.put_line(sqlcode || ' ' || sqlerrm);
END;
Hope this helps,
Yogesh -
ORA-01422 while trying to check out files from Designer 10g
Hi All!
I am sorry if this has been posted earlier. Also, if i have posted it in the worng forum please let me know where to post this
I have installed Oracle Developer Suite 10g. I have imported a repository successfully.
When i log into the designer, the previous versions are also seen correctly. I am also able to log into the latest version.
But when i try to check out any file for editing i get this strange error
ORA-01422: exatch fetch returns more than one row in the query.
Can anyone help me with this. I have tried searching over google, but hardluck... found no solutions!
Thanks in Advance!
Akhil
Edited by: Akhil K on Oct 23, 2009 11:53 PMORA-01422: exact fetch returns more than requested number of rows
Cause: The number specified in exact fetch is less than the rows returned.
Action: Rewrite the query or change number of rows requested
This means you have more than one index having T.INDEX_NAME = 'IX_NAME'.
When you use SELECT..INTO, you need to make sure that only one record will be selected. -
ORA-12899 while trying to update Metalink credential on OEM 10.2.0.4
Hi,
My Oracle DBMS version is 10.2.0.4 (non-Grid) on SUN/SPARC 64. I tried to add my metalink credential (which is 32 character long) to the 'Patching Setup' section but bumped into
ORA-12899: value too large for column "SYSMAN"."MGMT_ARU_CREDENTIALS"."ARU_USERNAME" (actual: 80, maximum: 64) ORA-06512: at "SYSMAN.MGMT_CREDENTIAL", line 1482 ORA-06512: at line 1
While searching for the solution on Metalink I came across the Article# 459027.1 (patch 7354358) which again says that the patch is basically for 10.2.0.3. How do I fix this problem!?
Thanks in advance.
ArindamBelow is the only error message that keeps repeating for 1000s of times:
2009-05-06 19:00:04,926 [HttpRequestHandler-16448834] ERROR eml.OMSHandshake processFailure.781 - OMSHandshake failed.(AGENT URL = http://IVWPDCSTD01.xxxx.com:3938/emd/main)(ERROR = X-ORCL-EMAK MISSING)
2009-05-06 19:00:04,938 [HttpRequestHandler-32712600] ERROR eml.OMSHandshake processFailure.781 - OMSHandshake failed.(AGENT URL = http://IVWPDCSTD01.xxxx.com:3938/emd/main)(ERROR = X-ORCL-EMAK MISSING)
But I don't see any error with the EM!!
Edited by: AB007 on May 6, 2009 1:05 PM -
Getting ORA-31655 while trying to export Tablespace via Datapump
Hi
I am trying to export the tablespace GRAHAM_BMF_TS_01 as per below but I am getting the following error:
ORA-31655: no data or metadata objects selected for job
SQL> select SEGMENT_NAME from dba_segments where TABLESPACE_NAME='GRAHAM_BMF_TS_01';
SEGMENT_NAME
BMF_AGREEMENTS
SQL> select count(*) from BMF_AGREEMENTS;
COUNT(*)
199999
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
With the Partitioning and Data Mining options
$ expdp directory=DATA_PUMP_DIR_CORRUPTION_TEST dumpfile=pre_corruption_dp.dmp logfile=pre_corruption_dp.log TABLESPACES=GRAHAM_BMF_TS_01 CONTENT=ALL
Export: Release 10.2.0.3.0 - 64bit Production on Tuesday, 21 June, 2011 12:45:59
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Username: / as sysdba
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
With the Partitioning and Data Mining options
Starting "SYS"."SYS_EXPORT_TABLESPACE_01": /******** AS SYSDBA directory=DATA_PUMP_DIR_CORRUPTION_TEST dumpfile=pre_corruption_dp.dmp logfile=pre_corruption_dp.log TABLESPACES=GRAHAM_BMF_TS_01 CONTENT=ALL
Estimate in progress using BLOCKS method...
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 0 KB
ORA-31655: no data or metadata objects selected for job
Job "SYS"."SYS_EXPORT_TABLESPACE_01" completed with 1 error(s) at 12:46:14Any ideas what I am doing wrong?
Edited by: Grahambo on Jun 21, 2011 4:52 AMNot sure why this thread was locked, but I unlocked it.
There may be segments in this tablespace, but they may not be owned by a schema that is exported using Data Pump. For example, if all of the storage in this tablespace is owned by the SYS schema, then there is nothing in this tablespace to be exported.
Any idea what schema owns the segments in this tablespace?
Dean -
Getting exception ORA-12705 while trying to connect to database from forms 9i
Hello All,
I have installed 9i database and I gave path for oracle home as Oracle_path while installing. then I installed 9i dev suite, Installer forced me to use different Oracle home, so I gave Odev_path as path.
I have created server alias name from dev suite to Oracle database and I could connect to database from froms 9i. suddenly it started giving me the following exception when I try to connect database from forms 9i.
ORA-12705 invalid or unknown NLS parameter value specified
could some one help toresolve the issue.
Thanks in advance
RajI have already seen this document and tried it out, but it didn't work. And I have tried out numerous other tips that I have found in different places on the web.
Is the client installation of any relevance? I notice that this user has a different installation from the one that I have, and that he amongst other things doesn't have sql plus installed. -
ORA-12054:while trying to create mview based on table in other schema
HI all
show user
user is "NAAMA"
CREATE TABLE USERS
user_id NUMBER,
user_name VARCHAR2(15 CHAR),
user_password VARCHAR2(50 CHAR),
CONSTRAINT user_pk PRIMARY KEY (user_id));
TABLE created.
show user
user is "TEST"
create materialized view log on NAAMA.USERS WITH ROWID
create materialized view users_mv
build immediate
refresh fast on commit with rowid
as
select user_name ,
user_password
from naama.users;
ORA-12054: cannot set the ON COMMIT refresh attribute for the materialized view
I suspect this problem is all about priviliges .
please you help
Thanks In advanced
NaamaHi Ranit ,
thanks for your response , i disagree with you lets take a look at those scenarios :
scenario 1 :
show user
user is "NAAMA"
create materialized view log on users with primary key;
show user
user is "TEST"
CREATE MATERIALIZED VIEW users_mv
BUILD immediate
REFRESH FAST ON COMMIT
AS
SELECT
user_id,
user_name ,
user_password ,
naama.get_name(user_id) FIRST_name
FROM naama.users
ORA-12054: cannot set the ON COMMIT refresh attribute for the materialized view.
according to this there is nothing to do to the primary key,scenarion 2:
show user
user is "NAAMA"
create MATERIALIZED VIEW LOG ON USERS WITH rowid.
create or replace function get_name (user_name_in IN varchar2) return varchar2
is
begin
return 'NAAMA';
end get_name;
show user
user is "TEST"
CREATE MATERIALIZED VIEW users_mv
BUILD immediate
REFRESH FAST ON COMMIT with primary key
AS
SELECT
user_name ,
user_password ,
naama.get_name(user_name) FIRST_name
FROM naama.users;
ORA-12054: cannot set the ON COMMIT refresh attribute for the materialized view.scenarion 3:
show user
user is "NAAMA"
create MATERIALIZED VIEW LOG ON USERS WITH rowid.
show user
user is "TEST"
CREATE MATERIALIZED VIEW users_mv
BUILD immediate
REFRESH FAST ON COMMIT WITH rowid
AS
SELECT
user_name ,
user_password ,
SUBSTR(user_name,1,5)
FROM naama.USERS;
materialized view created.so we cannot say that the mview has problem using functions.
What seems to be the problem ?
Thanks In Advanced
Naama
Maybe you are looking for
-
i can't burn cd's in iTunes anymore. I get error code 4450 when I'm trying to burn a playlist. Songs from my own cd's, or bought in iTunes (have not burned 7x's as I can't BURN any cd's at all!), Then my cd gets stuck in the drive. and it says "canc
-
Hello experts, please, is it possible in some easy way to post with clearing multiple documents at one time? We have 1000 documents numbers in XLS which can be cleared at one time. In F-04 or FB05 is possible just to paste 26 document numbers at one
-
Video quality poor under iTunes 10
I have a MacBook Pro running 10.5.8 and I downloaded and installed iTunes 10 just yesterday (Sept 1). Now videos that I purchased as recently as a couple of days ago have vertical distortion lines. I've seen that kind of distortion before, though nev
-
My iPod is disabled and doesn't have a countdown. What do I do?
Please help. My sister tried to get in too many times. Usually, it lets me try again after an hour but all it says is "Connect to iTunes" and I did. What do I do now?
-
I cannot separate my table of contents by section
I have been trying to create a table of contents in pages. When I add a new section its supposed to separate the sections out in the table of contents. I should be able to click on each section separately but when I do it will highlight them all. Am