You are on page 1of 2

Gu�a 4 - parte 2 - Perfiles de usuario

10. Bloquear la cuenta del usuario clase, �qu� sucede al conectarse de


nuevo

System

11. Modificar el tablespace por defecto (USERS)y el temporal (TEMP) del usuario
clase
de forma que sean REPO y TEMP_REPO.

Crear un tablespace llamado REPO, seg�n las siguientes caracter�sticas

Tama�o inicial = 1M
Autoextensible = SI
Extensi�n = 200K
Tama�o M�ximo= 1400k
Localizaci�n = CoraclexeapporacleoradataXErepo.dbf

Crear un tablespace temporal, llamado TEMP_repo con las siguientes caracter�sticas


Tama�o= 100M
Localizaci�n = CoraclexeapporacleoradataXEtemp_repo.dbf

12. Asignar el perfil01 al usuario clase.

comente:

SQL> alter user clase account lock;

User altered.

SQL> disc
Disconnected from Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit
Production
SQL> conn
Enter user-name: clase
Enter password:
ERROR:
ORA-28000: the account is locked

SQL> conn
Enter user-name: system
Enter password:
ERROR:
ORA-01017: invalid username/password; logon denied

SQL> conn
Enter user-name: system
Enter password:
Connected.
SQL> alter user clase default tablespace REPO;
alter user clase default tablespace REPO
*
ERROR at line 1:
ORA-00959: tablespace 'REPO' does not exist

SQL> create tablespace REPO datafile 'CoraclexeapporacleoradataXErepo.dbf'


2 size 1M autoextend on next 200k maxsize 1400k;

Tablespace created.

SQL> create temporary tablespace temp_REPO tempfile


'CoraclexeapporacleoradataXEtemp_repo.dbf' size 100M;

Tablespace created.

SQL> alter user clase default tablespace REPO;

User altered.

SQL> alter user clase temporary tablespace temp_REPO;

User altered.

SQL> alter user clase profile perfil01;

User altered.

SQL>

You might also like