Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2009-04-08
5
Medium Priority
?
648 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 200 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 1800 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
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…

610 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