Search
 
SCRIPT & CODE EXAMPLE
 

SQL

oracle create schema

-- Oracle - User / schema creation
CREATE USER MY_USER IDENTIFIED BY "MyPassword"
DEFAULT TABLESPACE USERS
TEMPORARY TABLESPACE TEMP PROFILE DEFAULT ACCOUNT UNLOCK;
GRANT CONNECT TO MY_USER;           -- To connect to DB
GRANT RESOURCE TO MY_USER;          -- Access / modify
GRANT MY_ROLE TO MY_USER;           -- Grants a role (to be defined)
ALTER USER MY_USER DEFAULT ROLE "RESOURCE","CONNECT","MY_ROLE";
-- Proxy access
ALTER USER MY_USER GRANT CONNECT THROUGH MY_OTHER_USER;
-- Checks privileges:
SELECT PRIVILEGE FROM DBA_SYS_PRIVS WHERE GRANTEE = MY_USER;
Comment

oracle db create new schema

-- 1st Step
CREATE USER user_name IDENTIFIED BY password;
-- 2nd step
GRANT RESOURCE TO user_name;
GRANT CONNECT TO user_name;
GRANT CREATE VIEW TO user_name;
GRANT CREATE SESSION TO user_name;
GRANT UNLIMITED TABLESPACE TO user_name;
Comment

PREVIOUS NEXT
Code Example
Sql :: oracle check table space 
Sql :: Create a keyspace cassandra 
Sql :: mysql loop insert 
Sql :: sqlserver add column to table 
Sql :: install mysqldump ubuntu 
Sql :: import mysql dump command line windows 
Sql :: get count by weekly pivot table sql server 
Sql :: show databases mysql docker 
Sql :: mysql date greater than 30 days 
Sql :: sql drop multiple columns if exists 
Sql :: SELECT User,Host FROM mysql.user; 
Sql :: sql missing records from another table 
Sql :: Erreur SQL sur la requête Index column size too large. The maximum column size is 767 bytes. 
Sql :: check database size sql 
Sql :: sql server delete row 
Sql :: oracle sql assign unique number to each grouping 
Sql :: monthname sql 
Sql :: mysql on terminal mac 
Sql :: function difference_in_hours(timestamp with time zone) does not exist 
Sql :: sql query with replace function 
Sql :: sql for date greater than 
Sql :: delete all entries postgres 
Sql :: operadores en postgresql 
Sql :: how to insert into existing database postgresql sqlalchemy python 
Sql :: oracle alter table add not null constraint 
Sql :: sql sample tables with data 
Sql :: FIND OUT THE NAME HIGHEST SALARY SQL 
Sql :: how to add not null constraint in sql 
Sql :: oracle substring 
Sql :: mysql update set sum 
ADD CONTENT
Topic
Content
Source link
Name
8+5 =