Solved

does the following grant gives export, import into, from dump file privilege

Posted on 2009-04-08
5
641 Views
Last Modified: 2013-12-18
Hi

Does the following command
grant create session to xyz_user
give by default export into dump file as well importing from dump file privileges.
what are the privileges this command grants by default apart from creating session.
 Please clarify. Any links, resources, ideas highly appreicated,. Thanks in advance
0
Comment
Question by:gudii9
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 20

Expert Comment

by:flow01
ID: 24100267
0
 
LVL 7

Author Comment

by:gudii9
ID: 24102651
for create session they have not explained well about default privileges.  Please advise
0
 
LVL 2

Assisted Solution

by:chuchyyy
chuchyyy earned 50 total points
ID: 24105591
The most important privilege when you grant this is that the user will be allowed to connect to a certain database. Oracle throws a ORA-01045 if this privilege is missing.
0
 
LVL 20

Accepted Solution

by:
flow01 earned 450 total points
ID: 24117663
reality does not match the description in the link I gave.

In our environment
create session is a system privilege
and connect is a role
  that has to system privileges : create session and alter session

Check for yourself in your own environment:

SQL*Plus: Release 8.1.7.0.0 - Production on Fri Apr 10 19:49:09 2009
(c) Copyright 2000 Oracle Corporation.  All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options

SQL> CREATE USER NEWUSER IDENTIFIED BY EXPERTS;

User created.

SQL> SELECT PRIVILEGE FROM DBA_SYS_PRIVS WHERE GRANTEE = 'NEWUSER';

no rows selected

SQL> GRANT CREATE SESSION TO NEWUSER;

Grant succeeded.

SQL> SELECT PRIVILEGE FROM DBA_SYS_PRIVS WHERE GRANTEE = 'NEWUSER';

PRIVILEGE
----------------------------------------
CREATE SESSION

SQL> REVOKE CREATE SESSION FROM NEWUSER;

Revoke succeeded.

SQL> SELECT PRIVILEGE FROM DBA_SYS_PRIVS WHERE GRANTEE = 'NEWUSER';

no rows selected

SQL> GRANT CONNECT TO NEWUSER;

Grant succeeded.

SQL> SELECT PRIVILEGE FROM DBA_SYS_PRIVS WHERE GRANTEE = 'NEWUSER';

no rows selected

SQL> SELECT PRIVILEGE FROM DBA_SYS_PRIVS WHERE GRANTEE = 'CONNECT';

PRIVILEGE
----------------------------------------
CREATE SESSION
ALTER SESSION

SQL> SELECT PRIVILEGE FROM DBA_SYS_PRIVS WHERE GRANTEE = 'CREATE SESSION';

no rows selected

SQL> select granted_rolE from dba_role_privs where grantee = 'NEWUSER'
  2  /

GRANTED_ROLE
------------------------------
CONNECT

SQL> drop user NEWUSER;

User dropped.

SQL>
0
 
LVL 7

Author Closing Comment

by:gudii9
ID: 31568135
Thank you very much.
0

Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question