Grant access to all the views created in user schema to another schema
How to grant access for all the views created in own HAGGIS schema to comqdhb schema on the HAGGIS database.
Oracle Grant Privileges
===============
Object privileges assign the right to perform a particular operation on a specific object
I read that we can use select 'grant select on' ||view_name||'HAGGIS' user_views where owner='COMQDHB'
Is this right
Oracle System Privileges
===============
System privileges should be used in only cases where security isnt important,because a single grant statement could remove all security from the table
Role based security
============
Role security allows you to gather related grants into a collection-since the role is a predefined collection of privileges that are grouped together.privileges are easier to assign to users.
[http://www.dba-oracle.com/art_builder_grant_sec.htm]
can we grant select update to all the views at a time to the other schema.
Are there any other ways to secure the data other than creating users and assigning roles.
Thank you
Edited by: Trooper on Dec 23, 2008 9:24 AM
I think what was suggested was that you use SQL to generate the grants on each and every view, that is, you use SQL to generate SQL where the SQL being generated is "grant select on view_name to role'"
If you users to connect to Oracle you have to create usernames for them though if the users only connect via an application the application might run just as one user and access to the application is controled via application security. The control on the application can be via Directory Services such as OID or MS Active Directory. User access to Oracle can also be controlled via OID.
To connect to Oracle you can use OS authenication (not recommended), usernames with passwords, or via Advanced Security Option which supports single sign-on products like Kebros or Oracle Internet Directory etc....
Example using SQL to generate SQL
How do I find out which users have the rights, or privileges, to access a given object ?
http://www.jlcomp.demon.co.uk/faq/privileges.html
HTH -- Mark D Powell --
Similar Messages
-
How to grant privileges on all the tables in a schema
Hi All,
Can you tell me how to grant privileges on all the tables of a schema A
to schema B.
For Example:
There are 200 tables in schema A, I wanted to grant select privilege on all the tables of a scheme A to schema B.
Thanks in advance.note that USER is the user that will have the select priviledge
the procedure includes views as well
CREATE OR REPLACE PROCEDURE GRANT_ACCESS_ON_USER IS
CURSOR c1 is select table_name from user_tables;
CURSOR c2 is select view_name from user_views;
tablename user_tables.TABLE_NAME%TYPE;
viewname user_views.VIEW_NAME%TYPE;
BEGIN
tmpVar := 0;
OPEN c1;
loop
fetch c1 into tablename;
EXIT WHEN c1%NOTFOUND;
EXECUTE IMMEDIATE 'GRANT SELECT on '||tablename ||' to USER';
end loop ;
close c1;
OPEN c2;
loop
fetch c2 into viewname;
EXIT WHEN c2%NOTFOUND;
EXECUTE IMMEDIATE 'GRANT SELECT on '||viewname ||' to USER';
end loop ;
close c2;
EXCEPTION
WHEN NO_DATA_FOUND THEN
NULL;
WHEN OTHERS THEN
-- Consider logging the error and then re-raise
RAISE;
END;
/ -
Grant access to all object/tables in other schemas to a user
Is there any and simple way to grant access to all object/tables in other schemas (more than one) to a scheme/user?
Thanks.
Tarman.HI.
grant SELECT ANY TABLE,delete any table, insert any table to user; Giving this delete,insert ANY TABLE privilege to a user can be dangerous and the use can mislead it. Its better to create a dynamic script and then grant it.
E.g Suppose you want to give select,inert,delete,update privileges to user A on user B's object.
sql> spool grants.sql
sql> select 'grant select,insert,update,delete on '||owner||'.'||table_name||' to A;' from dba_tables where owner='B';
sql>@grants.sqlHTH
Anand -
How can i access all the objects of one schema from another schema
Dear All,
How can i access all the objects(Tables,Views,Triggers,Procedures,Functions,Packages etc..) and do the modifications of one schema from another schema (Without using synonyms concept).
Thanks in advance,
MahiFirst of all, synonyms only help you easy reference the object. It doesn't have any implication of object privilege.
As long as you have proper privilege on target object. You can access it with or without synonyms.
Assuming you have proper privilege of objects, you can use following command to assume schema owner.
ALTER SESSION SET CURRENT_SCHEMA = Schema_owner -
How to find the views created on a table..?
Hi all,
I am having one table name, EMP. I want to know what are the views created on this table. Is there any SQL query is there for this or any another
way to find it.
Thanks in advance.
PalYou can use ALL_DEPENDENCIES for that:
SQL> create view emp_v as select * from emp;
View created.
SQL> select name
2 , referenced_name
3 , referenced_type
4 from all_dependencies
5 where name = 'EMP_V';
NAME REFERENCED_NAME REFERENCED_TYPE
EMP_V EMP TABLE
1 row selected.
SQL> select name
2 , referenced_name
3 , referenced_type
4 from all_dependencies
5 where referenced_name = 'EMP';
NAME REFERENCED_NAME REFERENCED_TYPE
EMP_V EMP TABLE
EMP_TRG EMP TABLE
2 rows selected.
SQL> Keep in mind that it matters whether you restrict on NAME or on REFERENCED_NAME.
http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/statviews_1041.htm#sthref935
edit
Ah, spoonfeeding!
Don't you want him to learn something, and to become independent?Now you made me feel guilty ;) ( don't know what Saubhik posted originally, but anyway...)
I blame my currently terribly slow connection for that...
Anyway, OP, always start a quick search from the docs first.
Chances are you'll find your answer yourself.
Homes:
http://www.oracle.com/pls/db102/homepage
http://www.oracle.com/pls/db112/homepage
Edited by: hoek on Oct 15, 2010 2:53 PM -
How to export all the views in one schema?
Hi,
I have more than 1000 views in one shcema.
How to export all the views in one schema?
AmyHi,
It's not a very easy question, I have develop a script wich create a script to create view from old database to new database :
/* &1: Oracle SID Source
/* &2: Oracle Schema Source
SET HEAD OFF
SET VERIFY OFF
SET PAGESIZE 0
SET LONG 40000000
SET LONGCHUNKSIZE 2000
SET LINESIZE 2000
SET FEEDBACK OFF
CREATE TABLE RECREATE_VIEW(VIEW_NAME VARCHAR2(30), TEXT LONG);
/* Selection du texte de la vue */
DECLARE
w_text long;
w_text_debut long;
w_text_column long;
w_view varchar2 (30);
w_schema varchar2 (8):='&2';
CURSOR w_cursor IS
SELECT a.view_name, a.text
FROM dba_views a
WHERE a.owner = w_schema;
CURSOR w_column IS
SELECT DECODE (ROWNUM,
1, 'CREATE OR REPLACE FORCE VIEW ' || '&' || '1..'
|| a.table_name || chr(10)
|| '('
|| a.column_name
|| DECODE (ROWNUM, nbcolumns, ')' || chr(10) || 'AS' || chr(10), ',' || chr(10))
FROM (select column_name,table_name
FROM dba_tab_columns
WHERE owner = '&1'
AND table_name = w_view
order by column_id ) a,
(SELECT COUNT (1) nbcolumns
FROM dba_tab_columns
WHERE owner = '&1'
AND table_name = w_view
GROUP BY owner, table_name) b
order by rownum;
BEGIN
OPEN w_cursor;
LOOP
FETCH w_cursor INTO w_view, w_text;
EXIT WHEN w_cursor%NOTFOUND;
w_text_debut := NULL;
w_text_column := NULL;
OPEN w_column;
LOOP
FETCH w_column INTO w_text_column;
EXIT WHEN w_column%NOTFOUND;
w_text_debut := w_text_debut || w_text_column || ' ';
w_text_column := NULL;
END LOOP;
CLOSE w_column;
w_text := w_text_debut||w_text||';';
insert into RECREATE_VIEW(VIEW_NAME, TEXT) VALUES (w_view, w_text);
COMMIT;
w_text := NULL;
w_view := NULL;
END LOOP;
CLOSE w_cursor;
END;
SPOOL scripts_views_&1..sql
PROMPT SPOOL scripts_views_&1..log
PROMPT
SELECT TEXT
FROM RECREATE_VIEW;
PROMPT
PROMPT SPOOL OFF
PROMPT
SPOOL off
PROMPT /* Formattage du fichier SQL */
!sed 's/[ ]*$//' scripts_views_&1..sql > aprilia.tmp
!rm scripts_views_&1..sql
!mv aprilia.tmp scripts_views_&1..sql
DROP TABLE RECREATE_VIEW;
EXIT
I hope that help you.
Nicolas. -
Passing data values to all the view without inbound plugin
Hi Experts ,
I am in a complex situation.
Scenario is as below.
I have 4 views say A, B, C, D
when user click Continue on view A he goes on B and so on... Most of the Context created are in COMPONENT CONTROLLER and is being used in Views .
This is already existing program.
Now I have created a popup on view A which shows an TABLE with some entries if user selects a record and clicks ok we want all the views to have some values that this row contains.
For more explanation supoose B is having address then address from table row should be appear on view B when user clicks on continue button of A.
STEP:
A user get popup, he selects a record and clicks on OK on popup , pop up closes and he is now on screen A, he clicks on continue button and B should have the address already filled with the selected row data.
How can we do that I dont want to disturb and uotbound plugin which is existing.
Thanks
RahulHi Rahul,
Data can be shared between controllers using
1. Context
2. Controller Attributes
Context:
To share the data between different controllers of the component. Create a NODE( MATERIAL ) in the component controller and define context mapping with views, where data needs to be shared.
Controller Attribute:
Define ATTRIBUTE( Materials ) in the component controller--> Attributes tab. set the data selected record to the attriibute of the component controller and read the data, in the respective controllers.
Thanks & Regards,
Sankar Gelivi -
Query to find all the view name and their size in GB
Hi,
What is the query to find all the view name and their size in GB.I am aware of joining all_views and user_segments but this is not serving the purpose.is there any table i need to join to get the desired result
ThanksYou could of course be thinking of views as they are stored in other RDBMS' as some of them actually create the view as a table on the database with a copy of the data in it and maintain that data as the base tables are updated.
As already mentioned, Oracle just stores the SQL of the View and executes that SQL when the view is queried.
Alternatively, Oracle also has "materialized views" which are created as snapshots of the data and will have a size. This data is updated (refreshed) based on the parameters used when creating the materialized view which means that it will either be, commonly, when a commit is issued or when a refresh is explicitly requested (refresh on demand). -
How to see the views created on a table
Dear all,
Please let me know the procedure to find out "the views created on a perticular table"CKPT wrote:
Did OP mentioned ? :(
change the query as
select a.view_name,b.table_name from dba_views a, dba_tables b where a.owner='user1' b.owner='user2' and b.table_name='table' and a.owner='user';simpleWhat is that query supposed to return ?
<s>It will do a scalar product between DBA_VIEWS and DBA_TABLES returning one single table name for every single view over your db without any link together except they have the same owner. Very useful, very helpful.</s><br>
I misread the query, it is even worse than I thought, the query will return nothing. Nothing because a.owner cannot be equal to user1 and to user in the same time.
I think Girish give a much better solution with DBA_DEPENDENCIES.
Nicolas.
Edited by: N Gasparotto on Aug 12, 2010 12:48 PM -
I am running MS Office for Mac 2008 on my MacBook Pro. I do not have the Standard and Formatting toolbar fixed into position, as I would expect and would like. I can access them via the View menu, where I have to select and de-select them before I can get them to display, but lose them when I log off. Can anyone help? I have tried all the usual and supplied help facilities to no avail. Thanks
Post the question in Microsoft's own Office for Mac forum.
-
How Attributes declared in Component level can be used in All the views
How Attributes declared in Component level can be used in All the views
For Example :
say : context type ref to if_wd_context_node.
is declared at component controller level and check box public is checked !!
How can we use this any view in same WDP Component..
For suppose : in this case
We want to get the ref of child node using above declared attribute..
How is it possible?
Say in detailYou can do this by doing the exact same like you did with the if_wd_context_node.
1. Define attribute in Comp Controller and set it PUBLIC.
2. Access the attribute over the reference of the comp controller, i.e. wd_this within the comp controller itself or wd_comp_controller within somewhere else in the component.
So if you have, lets say, this defined as attribute in your comp controller:
Z_MY_TABLE_REF [X] TYPE REF TO [X] PUBLIC CL_WD_TABLE.
And then you want to catch the reference into a local variable within a method or the like within a view:
DATA: lo_my_table_ref TYPE REF TO CL_WD_TABLE.
lo_my_table_ref = wd_comp_controller->z_my_table_ref.
Lekha has already said so as well, I don't really understand where the problem is
Cheers, Lukas -
Extraction of the details of all the views existing in Requisite.
Hello Experts,
I am using SRM4.0, Requisite Staging 4.0 and Requisit publishing 4.0.
I want to extract the details of all the views existing in Requisite
server from DB. is it possible?
if i access to Requisite through internet explorer, i have to do it view by view.
So if i have access to the database think it will go faster.
Many thanks in advance.
Regards,
Saikrishna.Hello Saikrishna,
I don't know the name of your SAP database user,
but typically they have the prefix SAP, so I wonder
why the SQL statement didn't return any rows.
To see all database views, you can try this
SQL command:
set long 2000;
select owner, view_name, text
from dba_views
order by owner, view_name;
This list will surely be quite long, so once you have the
name of the database user who owns the views it
would be best to add a WHERE clause and limit the
select to only this user.
Regards,
Mark -
I'm learning Thunderbird, hoping to adopt it as my mail client (can't keep Eudora afloat any more). The forums are not efficient for learning it. Right now I'm trying to understand all the View/Threads options, but tomorrow it will be something else.
Thanks, those are helpful. The first one doesn't explain threads options but it led me to https://github.com/protz/GMail-Conversation-View/wiki/What-is-threading, which told me to do View > Sort by > Threaded (I had only tried View > Threads > ...). It also explains threading by message ID, whereas Eudora seems to do it only by subject line.
Neither reference explains the options under View > Threads > ... but I'll figure it out by trial & error.
The second reference led to http://www.nidelven-it.no/documentation/thunderbird/introduction-to-thunderbird, which also looks helpful. -
How can all the users in my computer (my kids) have access to all the photos I have in I Photo? My photos only appear when I (the administrator) log into the computer. I want my kids to be able to access them also.
For iPhoto 09 (version 8.0.2) and later:
What you mean by 'share'.
If you want the other user to be able to see the pics, but not add to, change or alter your library, then enable Sharing in your iPhoto (Preferences -> Sharing), leave iPhoto running and use Fast User Switching to open the other account. In that account, enable 'Look For Shared Libraries'. Your Library will appear in the other source pane.
Any user can drag a pic from the Shared Library to their own in the iPhoto Window.
Remember iPhoto must be running in both accounts for this to work.
If you want the other user to have the same access to the library as you: to be able to add, edit, organise, keyword etc.
Quit iPhoto in both accounts. Move the Library to the Users / Shared Folder
(You can also use an external HD set to ignore permissions, a Disk Image or even partition your Hard Disk.)
In each account in turn: Double click on the Library to open it. (You may be asked to repair the Library Permissions.) From that point on, this will be the default library location. Both accounts will have full access to the library, in fact, both accounts will 'own' it.
However, there is a catch with this system and it is a significant one. iPhoto is not a multi-user app., it does not have the code to negotiate two users simultaneously writing to the database, and trying will cause db corruption. So only one user at a time, and back up, back up back up. -
Can we delete the views created for a user in Oracle BPM J2EE WL
I am using Oracle BPM 10.3 MP2 Enterprise Edition
Version: 10.3.2
Build: #100486
Can we delete the views created for a user in workspace?
Usually we are using the filter option within workspace and then saving it as view.
Would like to know if we can delete such views and create again.
These views are user specifc
Thanks in Advance.
-SreeI usually use this scripts to clean the workspace user custom seetings:
delete from fuego_objclassinst where fuego_objclassname = 'bea.albpm.workspace.layout';
delete from fuego_strprops where (fuego_category = 'fuego-view' OR fuego_category= 'fuego-presentations');
delete from fuego_strprops where (fuego_category = 'WAM' );
Hope this help.
Regards
Maybe you are looking for
-
Hi, We use document type SA for multipuspose,customer to customer balance transfer,adjustment in AR,GL postings e.t.c. Now its requirment to use different document type for customer tranfer posting and related adjustments. I want to know the impacts
-
Application Builder - suitable for requirement
Hi, I have a tentative plan to use Hyperion Application Builder to extract data from Essbase in order to load that data into SQL server. Has anyone here managed to do anything similar please? Many thanks, Steve
-
Hi All, I am very new to Oracle BPM 11g. I want to add two integers, and these two number should come as user input. for that I need one UI. can anybody please let me know what are the steps for that, or if is there any useful link please send me. Th
-
I cannot update my MBA. Get this mesage: "thhe operation couldn't be completed. (NSURLErrorDomain error -1100.)" Advice please
-
Hi all i am trying to use a Connect by prior clause
Hi all, In my connect by prior clause i have a query. I want to pass the values to the query from my outer query. Can this be done in Oracle.Can any help me in this.Also Pasting my query for your reference SELECT rct2.trx_number , rctl2.customer