Help with circumvention of ORA-01472: cannot use connect by on view with ..
Hi,
Any help resolving the following would be v. helpful.
The Aim
Produce a hierarchical report of all users and the privileges they have via the various roles they are granted.
The SQL
select lpad(' ', level*2,' ')|| granted_role from (select grantee, granted_role
from dba_role_privs
union
select role, granted_role
from role_role_privs
union
select role, privilege
from role_sys_privs
union
select 'All users', username
from dba_users)
start with grantee='All users'
connect by prior granted_role = grantee;
The error
ORA-0147: cannot use connect by on view with DISTINCT, GROUP BY, etc.
The database
Oracle 8.1.7.4 (Yes I know ....)
The Solution
[Thanks in advance]
What if you create a table first
create table role_grants as
select granted_role, grantee
from (select grantee, granted_role
from dba_role_privs
union
select role, granted_role
from role_role_privs
union
select role, privilege
from role_sys_privs
union
select 'All users', username
from dba_users)
Then run the hierarchical report
select lpad(' ', level*2,' ')|| granted_role
from role_grants
start with grantee='All users'
connect by prior granted_role = grantee
Similar Messages
-
Updatable View issues: cannot select FOR UPDATE from view with DI
Hi All,
I have a simple view XY and an instead of trigger on that to insert data into one table which is used in the my view. When I do insert statement on view XY it is working fine from sql but when i used same thing with page process of " Process Row of XY Automatic Row Processing (DML) " i am getting following error. I am using APEX 3.0 . Please help me.
ORA-20001: Error in DML: p_rowid=xxxx, p_alt_rowid=abc, p_rowid2=, p_alt_rowid2=. ORA-02014: cannot select FOR UPDATE from view with DISTINCT, GROUP BY, etc.
ThanksJames,
are you already on 3.0.1.00.07 or 3.0.1.00.08? Have a look at the release notes, it says something about a bug fix for some occurrences of ORA-02014.
Also have a look at the new substitution value/item FSP_DML_LOCK_ROW which turns locking off if you set it to FALSE. See http://www.oracle.com/technology/products/database/application_express/html/3.0.1_readme.html#CHDIDIAF and also http://download-west.oracle.com/docs/cd/B32472_01/doc/appdev.300/b32471/advnc.htm#BCGFDAIJ
Patrick
My APEX Blog: http://inside-apex.blogspot.com
The ApexLib Framework: http://apexlib.sourceforge.net
The APEX Builder Plugin: http://apexplugin.sourceforge.net/ New! -
hi i updated my iphone 4 with itunes and now i cannot use my phone as i keep getting error 16 after trying to restore my phone....i cannot afford to replace ..can any body help me...the phone is out of warrenty so apple do not want to know....please any help
https://discussions.apple.com/message/23100453#23100453
more hits from the search
https://www.google.dk/search?q=restore+itphone+error+16&oq=restore+itphone+error +16&aqs=chrome..69i57j0l5.11485j0j7&sourceid=chrome&espv=210&es_sm=93&ie=UTF-8 -
ORA-12032: cannot use rowid column
Hi,
on 8.1.7 I have the following error :
ORA-12032: cannot use rowid column from materialized view log on "string"."string"
The solution is :
Action: A complete refresh is required before the next fast refresh. Add ROWID columns to the materialized view log, if required.
How can I do a complete refresh before the next fast refresh or Add ROWID columns ? How to know if Add ROWID columns is required ?
Thank you.
PS :
my script is :
START WITH TO_DATE('06-jul-2010 17:57:48','dd-mon-yyyy hh24:mi:ss')
NEXT SYSDATE+1/24user522961 wrote:
Hi,
on 8.1.7 I have the following error :
ORA-12032: cannot use rowid column from materialized view log on "string"."string"
The solution is :
Action: A complete refresh is required before the next fast refresh. Add ROWID columns to the materialized view log, if required.
How can I do a complete refresh before the next fast refresh or Add ROWID columns ? How to know if Add ROWID columns is required ?
Thank you.run above
EXECUTE DBMS_MVIEW.REFRESH('MV_NAME','C'); -
Hi all,
We are using Oracle 11g R2 RAC on OEL 5.6.
After set the db_recovery_file_dest to FRA diskgroup,
I forgot to set the DB_RECOVERY_FILE_DEST_SIZE, and I've started an instance,
like this:
SQL> ALTER SYSTEM SET db_recovery_file_dest='+FRA' SCOPE=spfile;
System altered.
SQL> commit;
Commit complete.
SQL> show parameter recover
NAME TYPE VALUE
db_recovery_file_dest string
db_recovery_file_dest_size big integer 0
recovery_parallelism integer 0
SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> SQL> SQL>
SQL>
SQL>
SQL>
SQL>
SQL> startup;
ORA-19802: cannot use DB_RECOVERY_FILE_DEST without DB_RECOVERY_FILE_DEST_SIZEI need to set the DB_RECOVERY_FILE_DEST_SIZE. How can I do this?
I cannot to set this parameter when I startup with mount or nomount option.
Thank you very much!Hi,
So, you can set the parameter DB_RECOVERY_FILE_DEST_SIZE
by using this other node:
ALTER SYSTEM SET DB_RECOVERY_FILE_DEST_SIZE=<size> SCOPE=spfile;And in the first node with problems to start the instance you can start like this:
SQL> startup;
ORACLE instance started.
Total System Global Area 835104768 bytes
Fixed Size 2217952 bytes
Variable Size 624953376 bytes
Database Buffers 201326592 bytes
Redo Buffers 6606848 bytes
ORA-01105: mount is incompatible with mounts by other instances
ORA-19808: recovery destination parameter mismatchThe above error is normal in this moment because you must to set
the parameters on other node too, like this:
node2:
ALTER SYSTEM SET DB_RECOVERY_FILE_DEST_SIZE=<size> SCOPE=spfile;
ALTER SYSTEM SET db_recovery_file_dest='+FRA' SCOPE=spfile;
SHUTDOWN IMMEDIATE;
STARTUP;
node1:
SHUTDOWN; (again)
STARTUP; (now without any errors)
Regards. :-) -
PL/SQL: ORA-22992: cannot use LOB locators selected from remote tables
Dear ALL,
My O/S is Redhatlinux 5.2 and i had Migrated my Oracle databse to 11g2. But after that while i am retrieving records through dblinks from one of my other Oracle 9.2.0.8 databse it's throwing the error : PL/SQL: ORA-22992: cannot use LOB locators selected from remote tables.* This error i am getting in TOAD as well as SQL Developer.
Can anybody tell me how to fix this error ? Because am not able to get the records.
Also am getting another error during retrieving data from some of my tables after migrating i.e the table which having CLOB data type while am accessing to retrieve the records using select query it's throwing the error :
+(The following error has occurred:+
A query with LOB's requires OCI8 mode, but OCI7 mode is used.)
If anyone having any idea kindly share.
Thanks and Regards
BiswaHi,
Ya what u sent that is fine. But already am using one procudure which is accessing LOB data from another databse through DBlink and working fine. But there Both the databse are 9.2.0.8.
But while am executing the same procedure in oracle 11g where the Dblink accessing the data from Oracle 9i , there am getting this error.
Kindly tell if u know any resolution.
Thanks -
Catproc.sql gives ORA-02303: cannot drop or replace a type with type or tab
I am running catproc.sql and am seeing several of the following errors. Appreciate any insight into the problem. Thanks..
CREATE OR REPLACE TYPE ODCIObject AS object
ERROR at line 1:
ORA-02303: cannot drop or replace a type with type or table dependents
CREATE OR REPLACE TYPE ODCIObjectList AS VARRAY(32) of ODCIObject;
ERROR at line 1:
ORA-02303: cannot drop or replace a type with type or table dependentsI am in the process of doing a test upgrade of Oracle E-business 11.0.3 with Oracle 8.0.6 to Oracle E-business 11.5.10.2 with Oracle 9.2.0.
I am following the upgrade manual:
Oracle Applications – Upgrading Oracle Applications
Release 11i (11.5.10.2)
Part No. B19297-01
I have already upgraded the database from 8.0.6 to 9.2.0 using the Oracle database migration utility at the appropriate point in the instructions.
After upgrading the database to 9.2.0 as stated in this manual, one of the of the next Oracle Application pre-upgrade tasks is to execute a script called addb920_nt.sql which in turn executes catalog.sql and catproc.sql. I am seeing these errors when catproc.sql is executed.
I have logged an Oracle Support SR and am awaiting a response, but wanted to know if anyone had seen similar issues.
Thanks,
Alma -
ORA-02303: cannot drop or replace a type with type or table dependents
Oracle 10.2.0.3 on solaris :
I am trying to do a
CREATE OR REPLACE TYPE WickType_StringArray AS TABLE OF VARCHAR2(256);
I am getting the error :
ORA-02303: cannot drop or replace a type with type or table dependents
I then looked for the dependencies :
select * from dba_dependencies where name = 'WICKTYPE_STRINGARRAY' and owner='HARPER';
(Columns below with values are delimited by pipe | )
OWNER|NAME|TYPE|REFERENCED_OWNER|REFERENCED_NAME|REFERENCED_TYPE|REFERENCED_LINK_NAME|DEPENDENCY_TYPE
HARPER|WICKTYPE_STRINGARRAY|TYPE|SYS|STANDARD|PACKAGE||HARD
What is the best way for me to proceed to get my CREATE OR REPLACE statement working ?
ThanksWell you could move to 11g but I'd suggest a less drastic measure for now. Save the data, drop the table, reload the table.
But give serious consideration to Tom Kyte's advice about object tables: Don't use them. Instead use relational tables and object views. -
Cannot use the CS6 blur filters with Mountain Lion
Cannot use the CS6 blur filters with Mountain Lion since I cannot see the circle and other adjustement lines of the UI. I had no problems using these filters with Lion. Could you help.
ThanksSlateskies wrote:
... I'm doing this because of a new game that requires OS 10.6.8. ...
Why not just Upgrade to 10 6 8 which is Snow Leopard...
First you need to check that your current Mac meets the System Requirements for Snow Leopard...
Snow Leopard Specs:
http://support.apple.com/kb/SP575
If it does... then you need to Purchase and Install Snow Leopard Disc,
Mac OS X 10.6 Snow Leopard
( It should be noted that Apple will send paid MobileMe members the Mac OS X 10.6 DVD for free.)
Would Also Recommend that you do a Bootable Clone Backup of your current Hard Drive Before attempting any Major Upgrade...
By far the easiest way to make a Backup, is to use something like
SuperDuper http://www.shirt-pocket.com/
or CCC http://www.bombich.com/ -
ORA-01552: cannot use system rollback segment for non-system tablespace
i try to create a table in new schema test1 and got the following error. please help.
SQL> create table employer1 as select * from a.employer;
create table employer1 as select * from a.employer
ERROR at line 1:
ORA-01552: cannot use system rollback segment for non-system tablespace 'TEST1'Hi,
This is an example:
SQL>
CREATE UNDO TABLESPACE "UNDOTMP"
DATAFILE 'UNDOTMP.DBF01' SIZE 100M REUSE
AUTOEXTEND ON NEXT 51200K MAXSIZE 15000M
ALTER SYSTEM SET undo_tablespace=UNDOTMP SCOPE=BOTH;
Regards
David Duenas
Edited by: David Duenas on Jul 4, 2009 7:33 PM -
Trying to upgrade an old 7.3.4 database running on Aix to 8.1.7 so I can get a compatible export file to allow me to take it to 10gR2.
I have done some work to get the init.ora file configured with the proper values but the odma fails with the following error:
drop table dual;
ORA-00604: error occurred at recursive SQL level 1
ORA-01552: cannot use system rollback segment for non-system tablespace 'xxx'
I have other rollback segments defined by my init.ora file and during a normal database startup they are online.
When I run the 'odma' process it takes the database down and when it brings it up it only has the SYSTEM rollback segment online.
I know this is an old configuration but anyone have any suggestions?
I do have "audit_trail = none" in my init file.
Update:
Looks like to just do an exp/imp I don't need to worry about going through odma so I am just going to close this post.
Edited by: user6445925 on 11-Apr-2013 15:23Looks like to just do an exp/imp I don't need to worry about going through odma so I am just going to close this post.
-
You cannot use the application "System Preferences" with this version OS X
You cannot use the application “System Preferences” with this version of Mac OS X.
I received this error message when trying to run System Preferences (SP) for the first time after running the 10.5.1 update (from the download, not software update). After the update, I repaired permissions. Did another restart. Same.
I reinstalled 10.5.1 update. Same message. Logged in as another user. No change.
I removed the com.apple.systempreferences.plist from ~/library/preferences. No change, and it did not re-create the .plist file.
Any ideas? No one else seems to be having this problem as far as I can tell.
dkrockvilleI have had this problem with many applications after updating to 10.5.1, including
System Preferences, Calculator, Preview. Tried repairing permissions, and other tips from this thread. The strange thing is, the actual Leopard applications seem to have actually vanished? I don't know if this is anything to do with Time Machine; Anyway, My fix was:
Download Pacifist (if you don't already have it), locate the apps that you're having problems with on the Leopard install DVD, and copy them to the Applications Folder (Click on 'Replace Bundle')
Problem Solved for Me!
Hope this Helps! -
I cannot use my Acrobat XI downloaded with my one year subscription. It tells me my trial has expired and i need to license it. but I have no serial number.
Rave,
I have the same problem. It says trial is expired, so I select the "sign in now" button. After sign in, it comes up with a place to enter a serial number. The only two other options are "back" and "next".
-Radfuehrer -
I get the following error message when I connect a usb ethernet adapter to my new MacBook Pro: Unsupported - You cannot use an Apple USB Modem with this computer. I live where we only have dial-up and the Apple Store said this is what I need. In addition, when I connect the phone to the connecter it falls out, it will not click in.
Why are you using a usb ethernet adaptor? Just plug the modem into the usb port.
-
You Cannot Use This Version of iMovie With This Version of Mac OS X
+*Cannot Use This Version of iMovie With This Version of Mac OS X*+
Yes, I can. iMovie just doesn't want to cooperate. I checked the requirements, it says:
an Intel-based Mac, a Power Mac G5 with dual 2.0 GHz or faster processors, or an iMac G5 at 1.9 GHz or faster.
Well, I meet the requirements, I have an iMac G5 with 2.0 GHz, also with Leopard.
Why can't I use iMovie.
Message was edited by: QwedgeonlineOh, NVM I had to download the newest update!
Maybe you are looking for
-
LabVIEW 8.0 project save for previous version
Hello all, I have a LV8 project, and I want to save the VIs for a previous LV version. Do I have to save every VI in my project manually, or is there an "exporting" function for the complete project available? If available, where can i find this f
-
I´ve got a problem with connecting my old cinema display to the pc my new work gave me. I´m using a adaptor from to DVI to VGA into the PC and I just get a black screen and the little lightbulb on the display is on. Anyone got a solution for this pro
-
The list contains 250 rows of names and their DoB (Date of Birth) = colum A and B. The 3r colum should feature the automatically calculated AGE in years only = colum C from TODAY It is a **** of a job to input the DATEDIFF formula for each cell (of
-
Which of these 3 laptops would you recommend
Hi, I got it down to the final 3 laptops that I like. Which one would you suggests. I'm looking for something that's fast, has lots a hard drive space, good monitor and a blue ray player would be nice. http://www.bestbuy.com/site/Sony+-+VAIO+Laptop+w
-
Using 'my image garden' on new retina macbook pro....
canon printer: pixma mg5420 i downloaded 'my image garden' the other day---thought i would give it a whirl with my new mac. i scanned approx a dozen photos and all was well. next thing i knew, the pics seem to be gone from 'my image garden'. i looke