Can not select from data dictionary view from a procedure
Hi,
I wonder, which privilege is missing here:
my schema has this roles and privs:
GRANT CONNECT, RESOURCE TO cb ;
GRANT CREATE SESSION TO cb ;
GRANT SELECT_CATALOG_ROLE TO cb ;
GRANT CREATE SYNONYM TO CB;
GRANT CREATE VIEW TO CB;
I create a procedure:
create or replace procedure dd_test as
begin
dbms_output.enable(2000000);
for r in (select table_name from sys.dba_tab_partitions where owner = 'CB') loop
dbms_output.put_line(r.table_name);
end loop;
end;
sho err
4/38 PL/SQL: ORA-00942: table or view does not exist
When I run the core statement form sql prompt, it works !
so what privilege is missing here ???
thanks for any hint, Lao De
Hi,
thanks for that reply, after doing that I can not select this DD-view from sql-prompt anymore (which I don't wonder ;-). Can you tell me, what idea you had behind that test ?
I found another instance, where the procedure works and I will compare those privileges, but it's hard to sort out that complex structure of nested roles and sys_privs.
How ever, I will update here, when I found the missing privilege.
regards LaoDe
Similar Messages
-
Can we determine path of my INIT.ORA file from data dictionary views.
Hello Guru’s
I am new to oracle, My question is for the sake of my knowledge: I work on oracle 10G.
Is there any data dictionary view from where I can get the path of my INIT.ORA file.
Regards,NewDay wrote:
Hello Guru’s
I am new to oracle, My question is for the sake of my knowledge: I work on oracle 10G.
Is there any data dictionary view from where I can get the path of my INIT.ORA file.
AFAIK , its no. You can check the path from the show parameter command like following,
SQL> show parameter spfile
NAME TYPE
VALUE
spfile string
/u01/app/oracle/product/10.2.0
/db_1/dbs/spfileorcl.ora
SQL>HTH
Aman.... -
How can I select a date to view in Calendar while I am in month view?
I am looking at month view in Calendar on my iPad. I touch a date. Intuitively, I expect that date to open up in Day or Week view, but it doesn't! On my iphone, it works just fine. Am I missing something?
How can I select a date to view while in Month view and have it go to Day or Week view?
Thanks for any help.I would try this:
In Lr import one photo into a different folder that you can see in the list.
Then in your OS (mac Finder / Win Explorer) move the photo to the folder that you cannot see.
In Lr the photo will now appear with a question mark on its frame. Click directly on the question mark and select <Locate photo>. Navigate to the folder, open it, and click on the photo.
Maybe this will help Lr to recognize the folder.
If this doesn't help try renaming the folder in your OS. -
Can not access V$Mystat sys view from procedure.
Hi All,
I am facing a problem like explained below. Please suggest me what to do.
I hav a cursor to access Distinct sid as follows :
Cursor Cur_Sid Is
Select Distinct Sid From V$Mystat;
If I try to use it from a procedure it throws error like "ORA-00942: table or view does not exist".
But same query I can execute from SQL prompt. Even in Form's local procedure too it is working fine.
Can anyone please tell me why it is show.
Note: I have used the same oracle user to test all the cases.
Best Regards
MrigenSounds like your user has access to the view granted via a role. Get a direct privilege granted and it should allow the PL/SQL procedure to compile.
The issue is likely to be because your procedure needs to know it has access to that view at compile time which requires direct grants. -
Can not select March in month view with out it crashing bach to home screen
Whenever I am in calendar month view and swipe to next month, it crashes when I try to access March. I can access March in week view however. Any help?
Copied from a discussion in the More Like this box on the right >>>>>
There is a glitch with the calendar app and April 1st, 2013, SInce that is the beginning of daylight savings time, and the true length of the day is relative, if you have any all day events on April 1, it messes with the whole month (since 'all day' can be 23, 24 or 25 hours due to the springing forward)
Make that all day app only last a few hours and the rest of the month will show back up. -
Can not insert/update data from table which is created from view
Hi all
I'm using Oracle database 11g
I've created table from view as the following command:
Create table table_new as select * from View_Old
I can insert/update data into table_new by command line.
But I can not Insert/update data of table_new by SI Oject Browser tool or Oracle SQL Developer tool .(read only)
Anybody tell me, what's happend? cause?
Thankyou
thiensu
Edited by: user8248216 on May 5, 2011 8:54 PM
Edited by: user8248216 on May 5, 2011 8:55 PMI can insert/update data into table_new by command line.
But I can not Insert/update data of table_new by SI Oject Browser tool or Oracle SQL Developer tool .(read only)so what is wrong with the GUI tools & why posting to DATABASE forum when that works OK? -
ADF 11g can not select and copy data from cell of readonly table in IE
hi,
In ADF 11g, when render view object as readonly table with Single RowsSelection, using IE browser can not select and copy data from the cell, but it work in firefox.
is it a bug?
Edited by: kent2066 on 2009-5-18 上午8:46Hi Timo,
Sorry forgot to mention versions.
We are using 11.1.1.7 and IE 9.
I tried in Google but could not get the solution.
Kindly let me know solution for this.
PavanKumar -
SQL modeler can not import from data dictionary
It was very frustruted to see that the SQL Modeler hang in import from data dictionary of a database as part of revise engineering. I have to question myself if sql modeler is a serious tool and should I give up.
I am not sure if Data Modeller is still in Beta./Production. First couple off initial versions of a new product are normally buggy.
Regards
Alternatively, If this product is still in Beta, then you can contact the development team or report the issue so that they can take care of this issue in next beta release.
Edited by: skvaish1 on Mar 30, 2010 3:18 PM
Edited by: skvaish1 on Mar 30, 2010 3:26 PM -
Select schemas from relational model on import from data dictionary option
Hi All,
I have one relational model with 3 diferent schemas,
I want to compare one of my schemas with the data dictionary I have in a database,
I select the import option in the general file menu, select from data dictionary option,
select the connection from my database,swap target model checked,select a physical model and select the objects i want to compare from the database,
My problem is that the result is the comparison between all the objects in my model and the objects in the database that I have selected,
what I really want is to compare a list of objects in my model to a list of objects in my database,
this could be possible? or always need to compare all the objects of the model?
Thanks in advanceHi jbellver,
there is no any development in DM 3.1.0.691 on that problem. In production release you'll be able to compare objects in subview with database or just to select several objects and compare them with database. And of course "generate in DDl" filtering still can be used - it works at "Compare dialog" level.
Philip -
HR Form do not select any data from specific Period
Hi All
I am facing issues on the HR FORMS for Brazil related to the Remunaration Statement
When I try to select any employee from a specific period (before April 2012), the system does not select any data.
From April 2012 until the current period and I could select the data and print the Form
I do not believe that is related to the Master data from the Employee, since it is always related to the same period, I guess it is on the HR Form configuration, retricting the period anywhere, but I could not find it
do you know any idea on how to fix it ?
RegardsHi Steve,
In SQL Server Analysis Services, we can hide or disable hierarchy level by using
AttributeHierarchyEnabled property, however, when this property is set to false, this level will not appear no matter if contain data or not. In your scenario, you want to hide the hierarchy level dynamically, right? As Aleksandr
said, I am afraid there is no such a method to achieve it.
If you have any concern about this behavior, you can submit a feedback at
http://connect.microsoft.com/SQLServer/Feedback and hope it is resolved in the next release of service pack or product. Your feedback enables Microsoft to make software and services the best that they can be, Microsoft might consider to add this feature
in the following release after official confirmation.
Regards,
Charlie Liao
If you have any feedback on our support, please click
here.
Charlie Liao
TechNet Community Support -
I can not count the data from the module. Can prompt as it to make. It is desirable with examples (data read-out from the module and data transmission between channels. It is in advance grateful.
Hello. Most of the engineers in developer exchange are more familiar
with NI products. Contacting ICS for technical support is a better
course of action. -
Can not select an address from Contacts in Maverick
I'm able to access my address book contacts from Mail.
But when Contacts window is open, I can not select a contact (For, CC, Bcc Fields are in grey).
Is there anyone with suggestions?
Many thanks!Hello
I am not selecting a group. I am just trying to select a contact, any contact.
But when I click on contacts icon ...
and the address book opens, nothing happens when clicking on a specific contact.
Besides, the fields For (= Para), Cc and Bcc, are not active...
Many thanks -
Comments not imported from Data Dictionary of SQL Server. SDDM 3.3.0.747
Hi,
SDDM 3.3.0.747 32-bit on Windows 7 64-bit.
Comments are not imported from Data Dictionary of SQL Server 2008. Connection through Microsoft JDBC Driver 4.0 for SQL Server or jTDS 1.2.7
What I have tried? In SDDM DDL generation, Comments in DBRMS for SQL Server are generated with "EXEC sp_addextendedproperty 'MS_Description' , 'Test Comment' ..." so I added extended property named "MS_Description" into SQL Server database, both on table and column. None of them were imported from Data Dictionary into SSDM. I have tried both drivers stated above. Is it a bug or am I missing something?
I've found similar question thread Re: Data dictionary import doesn't import column comments for SDDM 3.0.0.665, so I guess it is a bug when importing with JDBC drivers.
MiGli
Edited by: MiGli_1006342 on May 25, 2013 8:32 AM
Edited by: MiGli_1006342 on May 25, 2013 9:02 AMExtended properties were not imported correctly from SQLServer databases at DM 3.3.0.747.
Calls to sp_addextendedproperty and fn_listextendedproperty have been modified.
I don't think it is a problem with JDBC drivers.
A bug fix should be available in the next release of DM. -
Can not select from SAPTOOLS.DB6PMCF
We use third-party tool to monitor our SAP systems. We receive an error
Can not select from SAPTOOLS.DB6PMCF
when we monitor DB2 database.
Function DB6PMCF is registered in SAPSID schema. Can I register it also in SAPTOOLS schema? What is a correct procedure for this?Hi Milan,
I think you have to issue the following command for the affected user.
db2 "grant execute on function saptools.db6pmcf to <user>"
regards, Javier Rocha -
Unfortunately, I lost by an update all the apps on my iPad 2. Now I can not pull the data from the cloud to my iPad. How is this possible?
If you just installed iCloud does that mean you updated the iOS that's running on your iPad? If so, you'll want to restore all the programs you have from the backup you hopefully made.
Refer to these articles for help.
iTunes: Backing up, updating, and restoring iOS software.
If you don't want to use iCloud, simply don't activate it.
You can also download the programs again.
If you live in a country that supports re-downloading apps then you can re-download them. You can refer to this article for more help.
Downloading past purchases from the App Store and iTunes Store
What to know if your country supports downloading past purchases?
iTunes in the Cloud Availability
Maybe you are looking for
-
We have a large PDF Portfolio with many attachments and would like to print those items all at once without opening every single attachment. I would think think that this is possible considering I took the files from outlook 2003 and you are able to
-
Newly created domain not available in current model?
Hi, I'm not sure if this is a bug or feature. I have a domain file MarketingDomain. This was copied from the defaultsdomain.xml and renamed. Also changed the name inside the file. Steps: Open Domains Administration - select current model Select Marke
-
Several times each day three files just appear in my Trash. They are named 1.spoke, 2.spoke and 3.spoke. Does anyone have any idea what these are and why they keep appearing in my Trash?
-
Palm 4.2.1 Desktop to iCal (OSX 10.5.1)
I recently updated to the latest Mac OS and am now running into lots of compatibility issues. I decided it's time to convert to iCal, partly because of the upgrade and also because I'm thinking of buying an iPhone. I'm finding it's not an easy conver
-
The LCD of my iphone is burned. So I cant see anything in my iphone. How can I transfer my contacts to my pc or to other iphone? Actually its better and easier if i can transfer them to my other iphone.