Oracle 数据库:创建用户并授权GRANT
一、Oracle APP和DB的基本信息
1、应用和数据库环境:
Application Node in Linux6.6
Database Node on Linux 6.6、
Oracle EBS 应用版本:
R12.2.0 on Linux6.6 x_86(64bit)3、
数据库信息:
Oracle Database R11.2.0.0 on Linux 6.6 x_86(64bit)
二、实现步骤
1、在数据库中创建cux用户,并授权。相关命令如下:
--(1)创建cux用户
CREATE USER CUX IDENTIFIED BY CUX
DEFAULT TABLESPACE APPS_TS_TX_DATA
TEMPORARY TABLESPACE TEMP1
PROFILE DEFAULT
ACCOUNT UNLOCK;
--(2)给出现用户授权
GRANT CONNECT, RESOURCE TO CUX;
GRANT CREATE ANY CONTEXT TO CUX;
GRANT CREATE ANY TYPE TO CUX;
GRANT CREATE CLUSTER TO CUX;
GRANT CREATE DATABASE LINK TO CUX;
GRANT CREATE DIMENSION TO CUX;
GRANT CREATE INDEXTYPE TO CUX;
GRANT CREATE LIBRARY TO CUX;
GRANT CREATE MATERIALIZED VIEW TO CUX;
GRANT CREATE OPERATOR TO CUX;
GRANT CREATE PROCEDURE TO CUX;
GRANT CREATE PUBLIC SYNONYM TO CUX;
GRANT CREATE SEQUENCE TO CUX;
GRANT CREATE SYNONYM TO CUX;
GRANT CREATE TABLE TO CUX;
GRANT CREATE TRIGGER TO CUX;
GRANT CREATE TYPE TO CUX;
GRANT CREATE VIEW TO CUX;