Cannot select Tables or data dictionary views
Hello
I have a normal user from where I want to visualize the data dictionary tables and views as DBA_ and V$ _ because I do not want to log the SYS account each time.
I have granted all the privileges of the user, but it does not work. Here are the commands I used.
all the privileges of the user;
Grant sysdba to user;
Can you help me please
Hello
grant this user SELECT_CATALOG_ROLE. Revoke all privileges that the user didn't need, or he would be able to do all sorts of things destructive (up to drop the entire database) by accident.
Best regards
Nikolai
Tags: Database
Similar Questions
-
data dictionary views and result_cache
Hello
Are there special aspects when caching the results of a function that uses data dictionary views to determine its results?
This issue arose because I have a such a result_cached function for which the result_cache objects are not get invalidated, even when the underlying data dictionary views have changed and the function gives 'fade' in it values came out. Addition of article relies_on has not helped either.
Here's what I'm trying to do:
The function accepts the name of the table as its input and trying to determine all the child tables by using the sys.dba_constraints view. The results are returned in a pl/sql table and are cached so that subsequent calls to this function use the result_cache.
Everything works well for the parent/child tables that were created before the creation of this function. All the results are correct.
The problem starts when a child table is added to an existing table in the parent.
V$ result_cache_objects view shows the result of this function as "Published" and the output of the function do not show the child table that is newly created.
The same is when an existing child table is deleted; the function continues to return in the output as it is extracted from the result_cache.
Oracle version:
Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production
PL/SQL Release 11.2.0.1.0 - Production
CORE 11.2.0.1.0 Production
AMT for Linux: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production>
Restrictions on result caching functions *.To be cached in result, a function must meet all of these criteria:
* It is not defined in a module that has the rights to the plaintiff, or in an anonymous block.
* It is not a function table in pipeline.
* It does not reference dictionary tables, temporary tables, sequences or not deterministic SQL.
For more information, see Oracle Database Performance Tuning Guide.
* It has no OUT or IN OUT parameters.
* No parameter has one of these types:
o BLOB
o CLOB
o NCLOB
o REF CURSOR
o Collection
o object
o file
Return type is none:
o BLOB
o CLOB
o NCLOB
o REF CURSOR
o object
o collect Record or PL/SQL that contains a return unsupported typeIt is recommended that a result caching function also meet these criteria:
* It has no side effects.
For more information about side effects, see "subprogram Side Effects".
* It is not specific to the session settings.
For more information, see "Making Result-Cached functions manage Session-specific settings.
* It is not specific to the session application contexts.
>
http://download.Oracle.com/docs/CD/E11882_01/AppDev.112/e17126/subprograms.htm#LNPLS698 -
I cannot select table jump extensions associated with lost data files?
Hi ~.
I need your help to recover my database.
I use oracle 9.2.0.8 to Fedora 3 with mode-archive.
and I have no backup.
Last night, I have experienced hard drive failure.
I tried the recovery at the level of the BONE, but I lost some data from the tablespace files.
in any case, I wanted to recover my database without the data of lost data files.
then, I published 'drop alter database datafile offline' and
Start the oracle instance.
But, data files were not eliminated from dba_data_files view and
extensions associated with lost data files were not removed from dba_extents view!
Query a selection table containing extensions associated with lost data files.
I have "ORA-00376: file xxx cannot be interpreted at this time" message.
So, my question is that...
HOW CAN I SELECT TABLE WITHOUT EXTENSIONS RELATED TO THE LOSS OF DATA SCANNING FILES?
Thank you.Hello
Without being in archivelog and without backup, can't make any sort of recovery. This is why the backups and archivelog are so important.The offline data file command never actually drops the data file. It simply tells the control file now the tablespace of the said is also abandoned. It refreshes not any notice that the files are not supposed to be used or shown more than you.
What documentation is the recovery of the database in the mode NoARch.
http://download.Oracle.com/docs/CD/B19306_01/backup.102/b14191/osrecov.htm#i1007937Do you need a backup in order to recover the tables being played. Oracle is not have all the features that can currently out / skip missing extensions for you and you can read the data without them.
HTH
Aman... -
I create a page "Form on a Table with Report" (APEX 5). Table I has 3 columns: cat_key, item_value, item_description. The cat_key is a foreign key in a table with columns cat_key, cat_value. I created the report and everything works fine. The page of the report shows my domain cat_key in number, so I want it instead to display the cat_value. I change the field cat_key to a text based on LOV, select my LOV and now when I view the page of report I get the "'ORA-01445: cannot select ROWID from where sample, a join without key preserved table view ' error." The report uses the ROWID as a link to the edit page field.
If I use the same tables and even shared LOV in a report page interactive, it works fine.
What I am doing wrong?
This is a limitation of the IR Apex will rewrite your query to a query that includes the lookup table and the columns. So now you have actually created a query on an inline view, which causes the error. You can see the query apex created when running in debug mode. APEX will join the table of choice with your primary table. For example from one of my IR:
Select 'ID '...
"MSL". "" HIS_COUNTRIES "=> my primary table
) ) b,
(select rv_meaning d, rv_low_value r
of msl_ref_codes_table
where rv_domain = "JOHN".
) L1 = > query My LOV Lookup
...
So, if possible, base your reports and forms on the real primary key, no rowid.
You can also write the IR query with the search yourself:
Select T1.rowid...
of primary_table T1
look_table L1
...
-
What data dictionary view can tell me what columns in the index are compressed?
So I can create an index compressed on a table like this:
create index t23_idx on t23 (col3, col5, col1) compress 2;
This creates an index with a degree of compression of 2. So far so good.
But how do I know what columns are in fact, compressed at a later date? View USER_INDEX tells me that if COMPRESSION is enabled, but there is nothing on the view USER_IND_COLUMNS to say which columns are compressed.
Of course, I can retrieve information through DBMS_METADATA. GET_DDL but I'm really after receiving a request, because it is more convenient.
I had hopes for SYS. ICOL$. SPARE1, but that doesn't seem to be compatible with what I expect. However, if someone can confirm that this column is indeed the Badger so I gladly adjust my expectations.
Cheers, APCOK, I may not read your question.
DBA_INDEXES. PREFIX LENGTH is "the number of columns in the prefix of the compression key."http://docs.Oracle.com/CD/E11882_01/server.112/e24448/statviews_1106.htm#i1578369
Mike
-
Any data dictionary view for details on licensing only features?
Hello
There in oracle 10.2.0.4, any view data dictionary that provides details on these two options by default from Enterprised edition
as well as licensed features at a glance?
I know that DBA_FEATURE_USAGE_STATISTICS provides details on what function is used. But I'm interested capture only
use that are allowed and not the standard features.
Thank youIn this case, you will need to find a document entitled "Bill", which has "Oracle Corp" on him.
Oracle doesn't keep track of license within the database info.
It uses dba_feature_usage_statistics to be able to continue if.-------------
Sybrand Bakker
Senior Oracle DBA -
Data Dictionary view to see the object directory
Hi all
I boat UTL_FILE need to create the output file. To use this package, we need to have directory object.
Can someone tell me what data dictionary table, we can use to see what directory is allowed to be use UTL_FILE boat to the Unix server.All_directories
dba_directories -
Name of table to data dictionary
Hi all
Please help to get the dictionary table name that can be used to get the block running (part) of a procedure, which is currently run and take a long time?
Is there any other alternative method to find the same.
I hope my question is clear.
Thank you very much in advance!This is the query that I personally use to check queries actuive.
SELECT sid,machine, a.username, b.sql_text, a.status FROM v$session a ,v$sqlarea b where a.sql_address = b.address AND LOWER (status) = 'active'
For long-running queries and completion percentage, I use the following query
SELECT b.username, a.sid, b.opname, b.target, ROUND(b.SOFAR*100 / b.TOTALWORK,0) || '%' AS "%DONE", b.TIME_REMAINING, TO_CHAR(b.start_time,'YYYY/MM/DD HH24:MI:SS') START_TIME FROM V$SESSION_LONGOPS b, V$SESSION a WHERE a.sid =b.sid AND TIME_REMAINING <> 0 ORDER BY b.SOFAR/b.TOTALWORK;
Hope this will help you.
-
How to import data dictionary views
I want to import all_tab_comments and use it for research in a map.
Is it possible to do other than creating a view in my schema that makes a ' select * from all_tab_comments "?
11 GR 1 material OWBHello
There are 2 locations for module; one is the location of metadata in which objects are imported, the other is the location of the data. What you could do, is for your regular module have a different metadata location to capture the ALL_TAB_COMMENTS view for example (even if it's just for the duration of the metadata import), this place would still have the credentials (name and password) as your regular location, but the scheme would be SYS. Then, when you import the views, turn on views and synonyms, ALL_TAB_COMMENTS would be visible and you can select and import.
See you soon
David -
Cannot select the Dictionary view user USER_TAB_COMMENT?
Hello.
I have this weird problem in 11.2.0.3
I cannot select the view of the USER_TAB_COMMENT of a user dictionary, but others can.
If I try to describe it, I get ORA-00942 and ORA-04043 messages.
Here is my attempt. I create a comment on a table, try desc or select the view from the dictionary. Then connect with SYS and select the comment in the view "dba" to check if the comment was created:
Other users, I don't have this problemSQL> conn RODOLFO Introduzca la contraseña: Conectado. SQL> show user USER es "RODOLFO" SQL> comment on table DOCUMENTILLOS is 'This is a comment'; Comentario creado. SQL> select table_name, comments from user_tab_comments; select table_name, comments from user_tab_comments * ERROR en línea 1: ORA-00942: la tabla o vista no existe SQL> desc user_tab_comments; ERROR: ORA-04043: el objeto "SYS"."DBA_TAB_COMMENTS" no existe SQL> desc all_tab_comments; ERROR: ORA-04043: el objeto "SYS"."DBA_TAB_COMMENTS" no existe SQL> conn / as sysdba Conectado. SQL> show user USER es "SYS" SQL> select owner, table_name, comments from dba_tab_comments 2 where owner = 'RODOLFO' and table_name = 'DOCUMENTILLOS' 3 ; OWNER TABLE_NAME ------------------------------ ------------------------------ COMMENTS -------------------------------------------------------------------------------- RODOLFO DOCUMENTILLOS This is a comment SQL>
Clues why this is happening?SQL> conn MANOLO Introduzca la contraseña: Conectado. SQL> show user USER es "MANOLO" SQL> comment on table DOCS is 'This is a comment'; Comentario creado. SQL> select table_name, comments from user_tab_comments where table_name = 'DOCS'; TABLE_NAME ------------------------------ COMMENTS -------------------------------------------------------------------------------- DOCS This is a comment
Kind regards.elvegaa_esp wrote:
What do you think?OK, the question is in the place where he is not pointing?
Edit:
Oh, it looks that it points to dba_tab_comments. Since your original post:desc user_tab_comments; ERROR: ORA-04043: el objeto "SYS"."DBA_TAB_COMMENTS" no existe
Who do not have the right of Rodolfo.
Thus, final to get rid of him.
And a good thing that you do not 'go to your DBA"as suggested. It was just to choose the wrong solution to an unknown problem.
Concerning
PeterPublished by: Peter on March 11, 2013 08:49
-
cannot select data in a nested table?
why we cannot select data in a nested table?
DECLARE TYPE MY_ARR IS TABLE OF VARCHAR2(15); IDArr MY_ARR; BEGIN IDArr := MY_ARR(); select ename into IDArr from emp; END; /
806540 wrote:
why we cannot select data in a nested table?DECLARE TYPE MY_ARR IS TABLE OF VARCHAR2(15); IDArr MY_ARR; BEGIN IDArr := MY_ARR(); select ename into IDArr from emp; END; /
It also isn't a such thing as a ' + nested table + "-despite what the documentation calls them. The CORRECT term is the table. Since the dawn of programming. And called 'paintings' in many languages of programming and data structure theory ever since.
In Oracle, the term "table" has a very precise meaning. A table in PL/SQL language nothing BUT a table at all. A completely different data structure that does not have the characteristics of an Oracle table.
The code you wrote is also dangerous. If there are 100,000 rows in this table, you will copy all 100,000 rows in a PL/SQL table - that resides in the memory of the very expensive server called the PGA (process private memory). You can cause a serious impact on the memory of the server with this approach of poor quality - I saw such a code crashing the production servers.
So let's not terminology. Is the wrong approach. Code is wrong.
So why not rather tell us what you're doing, or trying to understand, instead?
-
Can I use the data dictionary tables based on RLS policy?
Hello guys, I use the package level security line to limit certain lines to some users.
I created several roles, I want to just enable certain roles to see all the columns, but the other roles, I'm not that they see all the lines. I mean to do this I use the session_roles table data dictionary however it did not work.
What to do in order to not allow rows of user roles?
Can I use the data dictionary tables in RLS?
Thank you very much.Polat says:
What to do in order to not allow rows of user roles?
Can I use the data dictionary tables in RLS?Ensure that:
SQL> CREATE OR REPLACE 2 FUNCTION no_sal_access( 3 p_owner IN VARCHAR2, 4 p_name IN VARCHAR2 5 ) 6 RETURN VARCHAR2 AS 7 BEGIN 8 RETURN '''NO_SAL_ACCESS'' NOT IN (SELECT * FROM SESSION_ROLES)'; 9 END; 10 / Function created. SQL> BEGIN 2 DBMS_RLS.ADD_POLICY ( 3 object_schema => 'scott', 4 object_name => 'emp', 5 policy_name => 'no_sal_access', 6 function_schema => 'scott', 7 policy_function => 'no_sal_access', 8 policy_type => DBMS_RLS.STATIC, 9 sec_relevant_cols => 'sal', 10 sec_relevant_cols_opt => DBMS_RLS.ALL_ROWS); 11 END; 12 / PL/SQL procedure successfully completed. SQL> GRANT EXECUTE ON no_sal_access TO PUBLIC 2 / Grant succeeded. SQL> CREATE ROLE NO_SAL_ACCESS 2 / Role created. SQL> GRANT SELECT ON EMP TO U1 2 / Grant succeeded. SQL> CONNECT u1@orcl/u1 Connected. SQL> select ename,sal FROM scott.emp 2 / ENAME SAL ---------- ---------- SMITH 800 ALLEN 1600 WARD 1250 JONES 2975 MARTIN 1250 BLAKE 2850 CLARK 2450 SCOTT 3000 KING 5000 TURNER 1500 ADAMS 1100 ENAME SAL ---------- ---------- JAMES 950 FORD 3000 MILLER 1300 14 rows selected. SQL> connect scott@orcl Enter password: ***** Connected. SQL> GRANT NO_SAL_ACCESS TO U1 2 / Grant succeeded. SQL> connect u1@orcl/u1 Connected. SQL> select ename,sal FROM scott.emp 2 / ENAME SAL ---------- ---------- SMITH ALLEN WARD JONES MARTIN BLAKE CLARK SCOTT KING TURNER ADAMS ENAME SAL ---------- ---------- JAMES FORD MILLER 14 rows selected. SQL>
SY.
-
ORA-01445 error: cannot select ROWID from where sample, a join without a view
Hi all
I get an error when I created a VO based EO with standard Table (forced) jtf_notes_vl
It gives me the error ORA-01445: cannot select ROWID from where sample, a join without key preserved table view
the Table has the ROW_ID as Primery key
Thanks in advanceHello
Creation of an EO-based the rowid as primary key is usually the cause of this error as is not recommended to use the rowid as the primary key. Try to use jtf_note_id as the primary key.
Furthermore, why are you using NAV it is seen for the creation of EO. If I remember correctly, there is a JTF_NOTES_B and JTF_NOTES_TL table that you can use.
Thank you
AJ -
Re-import table data dictionary
Hello
I recently created a relational model with more than 2000 paintings by importing the data from the data dictionary. Unfortunately, I left out a few tables when I originally created the template. How can I add the tables after the fact? I tried to go through the process of reimportation again, but it doesn't seem like it adds tables. Thank you!
Hello
Are there any error messages in the log file? (This is normally datamodeler.log file in the datamodeler\datamodeler\log folder, unless you set a different location on the environment/log preferences page.)
Note that if you want to update the properties of Java, the updated file is different for the version 4.0.0.833 Data Modeler. AddVMOption reports should be updated in the product.conf file and not in the datamodeler64.conf file. Assuming you are on Windows 7, you should be able to find the product.conf file in the file C:\Users\
\AppData\Roaming\Oracle SQL Developer Data Modeler\4.0.0.833. David
-
Why fields view object cannot display in the data control?
Hello
Work in jdev 11.1.2.3.0.
I create two objects from view of the entities under the project module.
and see the AppModule.xml as follows:
..
< ViewUsage
Name = "TransAccountVO1".
ViewObjectName = "Project1. TransAccountVO "/ >"
< ViewUsage
Name = "TransAccountBillVO1".
ViewObjectName = "Project1. TransAccountBillVO "/ >"
...
Under the control of data panel shows these two nodes:
-TransAccountVO1
-id
-name
---..
+ Operation
+ Named criteria
-TransAccountBillVO1
+ operations
+ Named criteria,
THE first node is ok, but the second miss (node TransaccountBillVO1) areas.
Why fields view object cannot display in the data control?
Thanks in advance.delete and Add again... the value editable forever.
Maybe you are looking for
-
@ECHO.@ECHO Firefox installation@start/wait "Firefox Setup Stub 40.0.3.exe" - ms
-
my phone begins to show the alert of low storage since yesterday. After the removal of a few photos and videos, I managed to release about 1 GB of space. But the low storage alert popped up again in just 15 minutes. I have not download or update the
-
How to start Microsoft defender manually?
-
8 64-bit downgrade from windows 7 32-bit Windows, how do I disable UEFI and GPT
I brought a new laptop preinstalled Windows 8. After 2 days, I decide it downgrade to my previous windows 7. I have over 2 TB of HDD, so I do not think that UEFI and GPT is good for me. I use Diskpart to convert GPT on the MBR. However, I received a
-
Latest version of CC 2015. When I zoom or (i.e. with Ctrl + or-) the mobile dots disappear. I can get their return with enter and exit Quick Mask mode.Also happens on my second computer.Anyone with the same problem?Win 7 Prof