SQL Server Syntax to Oracle [Create User]

1

Hello, I was looking for how to change this syntax from sql server to oracle and I still do not understand the structure that oracle has in its bd.

The sql server syntax:

USE [BD]
GO
/****** Object:  User [pepe]    Script Date: 06/05/2017 10:17:14 ******/
CREATE USER [pepe] FOR LOGIN [pepe] WITH DEFAULT_SCHEMA=[dbo]

and I understand that in oracle it would be:

USE BD
create user pepe identified by pepe;
GRANT CREATE SESSION TO pepe; 

And I do not know how to continue migrating the part of the 'WITH DEFAULT_SCHEMA = [dbo]'. I hope you can help me please.

    
asked by Carlos Escobar 05.06.2017 в 17:08
source

1 answer

2

You're doing well ...

CREATE USER pepe IDENTIFIED BY contrasenia_de_pepe;

That is, CREATE USER <nombre de usuario> IDENTIFIED BY <contraseña del usuario> .

As explained in the Oracle documentation for CREATE USER :

    
answered by 05.06.2017 в 17:13