Solved

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

Posted on 2009-04-08
5
628 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
  • 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Suggested Solutions

Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now