Vous êtes sur la page 1sur 5

SQL> connect sys system123 as sysdba

SP2-0306: Invalid option.


Usage: CONN[ECT] [{logon|/|proxy} [AS {SYSDBA|SYSOPER|SYSASM}] [edition=value]]
where <logon> ::= <username>[/<password>][@<connect_identifier>]
<proxy> ::= <proxyuser>[<username>][/<password>][@<connect_identifier>]
SQL> connect sys/system123 as sysdba;
Connected.
SQL> create table ids_Placement (placement_id int ,Short_Desc varchar(50))
2
SQL> create table ids_Placement (placement_id int ,Short_Desc varchar(50));
Table created.
SQL> create table ids_job (job_id int ,Short_Desc varchar(50));
Table created.
SQL> create user roshan identified by roshan123
2
SQL> create user roshan identified by roshan123;
User created.
SQL> create user navaraj identified by navaraj123;
User created.
SQL> create user nabin identified by nabin123;
User created.
SQL> create user british identified by british123;
User created.
SQL> create user rohit identified by rohit123;
User created.
SQL> Grant create,Select,Insert,Update on ids_job to roshan
2 Grant create,Select,Insert,Update on ids_job to roshan;
Grant create,Select,Insert,Update on ids_job to roshan
*
ERROR at line 2:
ORA-00933: SQL command not properly ended
SQL> Grant create,Select,Insert,Update on ids_job to roshan;
Grant create,Select,Insert,Update on ids_job to roshan
*
ERROR at line 1:
ORA-02224: EXECUTE privilege not allowed for tables
SQL> Grant Select,Insert,Update on ids_job to roshan;
Grant succeeded.
SQL> Grant DML on any Entity on ids_job to nabin;

Grant DML on any Entity on ids_job to nabin


*
ERROR at line 1:
ORA-00990: missing or invalid privilege
SQL> Grant crud on any Entity on ids_job to nabin;
Grant crud on any Entity on ids_job to nabin
*
ERROR at line 1:
ORA-00990: missing or invalid privilege
SQL> create role Hr;
create role Hr
*
ERROR at line 1:
ORA-01921: role name 'HR' conflicts with another user or role name
SQL> create role Role1;
Role created.
SQL> create role Role2;
Role created.
SQL> Grant Alter,Drop any Entity on ids_job;
Grant Alter,Drop any Entity on ids_job
*
ERROR at line 1:
ORA-00990: missing or invalid privilege
SQL> Grant Alter,Drop any Entity on ids_job to Role1;
Grant Alter,Drop any Entity on ids_job to Role1
*
ERROR at line 1:
ORA-00990: missing or invalid privilege
SQL> Grant create any table to role;
Grant create any table to role
*
ERROR at line 1:
ORA-01917: user or role 'ROLE' does not exist
SQL> Grant create any table to role1;
Grant succeeded.
SQL> Grant Select,Update,Delete any table to role;
Grant Select,Update,Delete any table to role
*
ERROR at line 1:
ORA-01917: user or role 'ROLE' does not exist

SQL> Grant Select,Update,Delete any table to role2;


Grant Select,Update,Delete any table to role2
*
ERROR at line 1:
ORA-01919: role 'SELECT' does not exist
SQL> Grant Select,Update,Delete any table to role2;
Grant Select,Update,Delete any table to role2
*
ERROR at line 1:
ORA-01919: role 'SELECT' does not exist
SQL>
SQL>
SQL> show user;
USER is "SYS"
SQL> connect roshan/roshan123 ;
ERROR:
ORA-01045: user ROSHAN lacks CREATE SESSION privilege; logon denied
Warning: You are no longer connected to ORACLE.
SQL> grant session to roshan;
SP2-0640: Not connected
SQL> grant create session to roshan;
SP2-0640: Not connected
SQL> Grant Create Session to roshan;
SP2-0640: Not connected
SQL> show user
USER is ""
SQL> show user;
USER is ""
SQL> connect sys system123 as sysdba;
SP2-0306: Invalid option.
Usage: CONN[ECT] [{logon|/|proxy} [AS {SYSDBA|SYSOPER|SYSASM}] [edition=value]]
where <logon> ::= <username>[/<password>][@<connect_identifier>]
<proxy> ::= <proxyuser>[<username>][/<password>][@<connect_identifier>]
SQL> connect sys/system123 as sysdba;
Connected.
SQL> show user;
USER is "SYS"
SQL> Grant create Session to roshan;
Grant succeeded.
SQL> Grant connect Resource to roshan;
Grant connect Resource to roshan
*
ERROR at line 1:
ORA-00990: missing or invalid privilege
SQL> connect Resource to roshan;
SP2-0306: Invalid option.
Usage: CONN[ECT] [{logon|/|proxy} [AS {SYSDBA|SYSOPER|SYSASM}] [edition=value]]
where <logon> ::= <username>[/<password>][@<connect_identifier>]
<proxy> ::= <proxyuser>[<username>][/<password>][@<connect_identifier>]
SQL> show user;

USER is "SYS"
SQL> Connect Resource to roshan;
SP2-0306: Invalid option.
Usage: CONN[ECT] [{logon|/|proxy} [AS {SYSDBA|SYSOPER|SYSASM}] [edition=value]]
where <logon> ::= <username>[/<password>][@<connect_identifier>]
<proxy> ::= <proxyuser>[<username>][/<password>][@<connect_identifier>]
SQL> grant dba to roshan;
Grant succeeded.
SQL> Grant Connect Resources to roshan;
Grant Connect Resources to roshan
*
ERROR at line 1:
ORA-00990: missing or invalid privilege
SQL> show user
USER is "SYS"
SQL> grant connect resource to roshan;
grant connect resource to roshan
*
ERROR at line 1:
ORA-00990: missing or invalid privilege
SQL> grant connect, resource to roshan;
Grant succeeded.
SQL> conn roshan/roshan23
ERROR:
ORA-01017: invalid username/password; logon denied
Warning: You are no longer connected to ORACLE.
SQL> conn roshan/roshan123
Connected.
SQL> show user
USER is "ROSHAN"
SQL> conn british/british123
ERROR:
ORA-01045: user BRITISH lacks CREATE SESSION privilege; logon denied
Warning: You are no longer connected to ORACLE.
SQL> conn sys/System123
ERROR:
ORA-28009: connection as SYS should be as SYSDBA or SYSOPER
SQL> conn sys/System123 as sysdba;
Connected.
SQL> Grant Create Session to British;
Grant succeeded.
SQL> Grant Connect,Resource to British;
Grant succeeded.

SQL> conn British/British123;


ERROR:
ORA-01017: invalid username/password; logon denied
Warning: You are no longer connected to ORACLE.
SQL> show user;
USER is ""
SQL> conn British/British123
ERROR:
ORA-01017: invalid username/password; logon denied
SQL> connect sys/System123 as sysdba;
Connected.
SQL> show user
USER is "SYS"
SQL> Select All_User from Dict;
Select All_User from Dict
*
ERROR at line 1:
ORA-00904: "ALL_USER": invalid identifier
SQL> show user
USER is "SYS"
SQL> alter user british identified by british;
User altered.
SQL> show user;
USER is "SYS"
SQL> conn british/british
Connected.
SQL> show user
USER is "BRITISH"
SQL> show user
USER is "BRITISH"
SQL> create table tbl(name varchar(10));
Table created.
SQL> show user;
USER is "BRITISH"
SQL> insert into ids_job(ids_id,Short_Desc) values('1','Roshan');
insert into ids_job(ids_id,Short_Desc) values('1','Roshan')
*
ERROR at line 1:
ORA-00942: table or view does not exist
SQL> create table roshan.asd(id int);
create table roshan.asd(id int)
*
ERROR at line 1:
ORA-01031: insufficient privileges
SQL>

Vous aimerez peut-être aussi