Oracle users, oracle users

Source: Internet
Author: User

Oracle users, oracle users

Create user ng_zj identified by ng_zj
Default tablespace tbs_test
Temporary tablespace tbs_test_tmp;

Grant connect to ng_zj;
Grant resource to ng_zj;
Grant create table to ng_zj;
Grant create sequence to ng_zj;
Grant create session to ng_zj;
Grant create synonym to ng_zj;
Grant create view to ng_zj;
Grant select any table to ng_zj;
Grant create procedure to ng_zj;
Grant debug connect session to ng_zj;


ORACLE user Creation

The spelling of INDENTIFIED is incorrect. It should be: IDENTIFIED

By the way, when creating a user, you should define its tablespace (default tablespace ). Otherwise, it uses system tablespace ). This should be avoided.

This is an example of common user creation:

Create user xxxxx identified by xxxxx
PROFILE DEFAULT
DEFAULT TABLESPACE USERS
Temporary tablespace TEMPTS01
Account unlock;

Note that you must first check whether there are two tablespaces in your database: USERS and TEMPTS01. If no, create the tablespace USERS and TEMPTS01 before creating the user.

How to create a new user in oracle Database?

Go to oracle in CRT -- connect to sqlplus
Follow the code below to copy it and press Enter.
--- Create user code: create user "username word" PROFILE "DEFAULT" identified by "password" default tablespace "specified TABLESPACE name" temporary tablespace "temporary tablespace" account unlock;
--- Authorization

Begin
Execute immediate 'Grant select any dictionary to username ';
Execute immediate 'Grant alter any table to username ';
Execute immediate 'Grant alter system to username ';
Execute immediate 'Grant alter any procedure to username ';
Execute immediate 'Grant connect to username ';
Execute immediate 'Grant create any procedure to username ';
Execute immediate 'Grant create any table to username ';
Execute immediate 'Grant create any index to username ';
Execute immediate 'Grant create database link to username ';
Execute immediate 'Grant create public database link to username ';
Execute immediate 'Grant create any view to username ';
Execute immediate 'Grant create public synonym to username ';
Execute immediate 'Grant create table to username ';
Execute immediate 'Grant delete any table to username ';
Execute immediate 'Grant drop public database link to username ';
Execute immediate 'Grant drop any trigger to username ';
Execute immediate 'Grant drop any index to username ';
Execute immediate 'Grant drop any procedure to username ';
Execute immediate 'Grant drop any table to username ';
Execute immediate 'Grant drop any view to username ';
Execute im... the remaining full text>

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.