You are on page 1of 3

LAB ASSIGNMENT-11

Modify the resource limit and password management in


a user profile
D.SAI ANIRUDH
17MIS7072
Commands

SQL*Plus: Release 19.0.0.0.0 - Production on Wed Dec 2


12:41:35 2020
Version 19.3.0.0.0

Copyright (c) 1982, 2019, Oracle. All rights reserved.

Enter user-name: sys as sysdba


Enter password:

Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 -
Production
Version 19.3.0.0.0

SQL> CREATE PROFILE dhoni LIMIT


2 FAILED_LOGIN_ATTEMPTS UNLIMITED;
CREATE PROFILE dhoni LIMIT
*
ERROR at line 1:
ORA-65140: invalid common profile name
SQL>
SQL> alter session set "_ORACLE_SCRIPT"=true;

Session altered.

SQL> CREATE PROFILE dhoni LIMIT


2 FAILED_LOGIN_ATTEMPTS UNLIMITED;

Profile created.

SQL> CREATE USER kohili IDENTIFIED BY abcd1234;

User created.

SQL> GRANT connect, dhoni TO kohili;


GRANT connect, dhoni TO kohili
*
ERROR at line 1:
ORA-01917: user or role 'DHONI' does not exist

SQL> GRANT connect, super TO joe;

Grant succeeded.

SQL> GRANT connect, super TO kohili;


Grant succeeded.

SQL> GRANT connect, dhoni TO kohili;


GRANT connect, dhoni TO kohili
*
ERROR at line 1:
ORA-01917: user or role 'DHONI' does not exist

SQL> ALTER PROFILE super LIMIT


2 FAILED_LOGIN_ATTEMPTS 3
3 PASSWORD_LOCK_TIME 1;

Profile altered.

SQL> ALTER PROFILE super LIMIT


2 SESSIONS_PER_USER 5;

Profile altered.

SQL>

You might also like