Está en la página 1de 2

Microsoft Windows [Versión 10.0.19044.

1706]

(c) Microsoft Corporation. Todos los derechos reservados.

C:\Users\ESTUDIANTES>sqlplus/nolog

SQL*Plus: Release 18.0.0.0.0 - Production on Jue Jun 9 17:18:52 2022

Version 18.4.0.0.0

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

SQL> connect system/oracle@localhost:1521/XEpdb1;

Conectado.

SQL> create tablespace MARIAMQ datafile'C:\app\UNICESAR-401\product\18.0.0\oradata\XE\


MARIAMQ.ora'size 20M;

Tablespace creado.

SQL> ALTER SESSION SET"_ORACLE_SCRIPT"=true;

Sesi¾n modificada.

SQL> create user MARIAMQ identified by 1234 default tablespace MARIAMQ temporary
tablespace temp quota unlimited on MARIAMQ;

Usuario creado.

SQL> CREATE ROLE ROLADMIN;

Rol creado.

SQL> grant create session, create table, alter any table, drop anytable, insert any table, update any
table, delete any table, select any table to ROLADMIN;

SQL> grant create session, create table, alter any table, drop any table, insert any table, update
any table, delete any table, select any table to ROLADMIN;

Concesi¾n terminada correctamente.

SQL> GRANT ROLADMIN TO MARIAMQ;

Concesi¾n terminada correctamente.

SQL> connect system/oracle@localhost:1521/XEpdb1;

Conectado.

SQL> connect MARIAMQ/1234@localhost:1521/XEpdb1;

Conectado.

SQL> create table DPTO(codigod char(2), numdpto varchar(15));


Tabla creada.

SQL> create table ciudad(codciud char(2), numciud varchar2(15),dptocodi char(2));

Tabla creada.

SQL>

También podría gustarte