1) How to build a connection string, and call the function "CreateDatabase ()", to create a scheme such as "CEDATABASE"?
The names of the schemas/users, which should be created, are get from the names of the tables, on which entity classes are mapped:
Code: Select all
[Table(Name = @"CEDATABASE.""Class1s""")]
public partial class Class1 : INotifyPropertyChanging, INotifyPropertyChanged
{...}
JIC: you can set the Target Schema for the whole model via the
Model Settings -> Synchronization -> Mapping
Please see the sample project, which we have sent you.
2) How to set a password for the user CEDATABASE?
When this user is created, the CREATE SESSION privilege is not set for it. Thus, by default, the password is not needed.
You can set the necessary password and privileges/roles after the user is created.
3) What are his access rights and roles?
As we have written above, the user, under which you are connecting to Oracle, and with which a schema(user) is created, must have the necessary privileges to create users and grant them privileges CREATE TABLE, CREATE SEQUENCE, CREATE TRIGGER, UNLIMITED TABLESPACE.
Thus, the user is created with privileges : "GRANT CREATE TABLE, CREATE SEQUENCE, CREATE TRIGGER, UNLIMITED TABLESPACE..."
You can set the necessary password and privileges/roles after the user is created.
We've sent you a sample project to the e-mail address you provided in your forum profile. Please check that is not blocked by your mail filter.