Professional Documents
Culture Documents
10g/ Developer 6i
Step1
Open Database Folder with name d:\ Oracle Product 10.2.0 db_1Network
Admin Tnsname.ora
Open this file with Notepad and copy the following text:
==================================================
===
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = ora5-PC)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
)
==================================================
========
And paste into
D:\orant\NET80\ADMIN\tnname.ora
SQLNET.AUTHENTICATION_SERVICES= (None)
Release
11.1.0.6.0
Production
on
Wed
Sep
04:26:06
2013
file
created
only
DBA
by
can
EXPORT:V11.02.00
import
file
via
exported
conventional
by
another
path
DBA
sho user
is "SYSTEM"
select * from system_privilege_map
where name like '%PRIV%';
PRIVILEGE
----------167
-244
grant
NAME
PROPERTY
---------------------------------------- ---------GRANT ANY PRIVILEGE
0
GRANT ANY OBJECT PRIVILEGE
0
SQL>
SQL> -- Create a new user with just create session (to log on) and
SQL> -- any privilege to, well grant all privileges.
SQL> create user emil identified by emil;
User created.
SQL> grant create session, grant any privilege to emil;
Grant succeeded.
SQL> -- because we want to test this privilege create a second user to
SQL> -- test it with
SQL> create user zulia identified by zulia;
User created.
SQL> -- connect as emil and grant all privileges to Zulia
SQL> connect emil/emil@sans
Connected.
SQL> grant all privileges to zulia;
Grant succeeded.
select count(*),grantee
from dba_sys_privs
where grantee in ('MDSYS','EMIL','ZULIA')
group by grantee
/
COUNT(*)
---------2
139
139
GRANTEE
-----------------------------EMIL
MDSYS
ZULIA
SQL>
it