创建Oracle用户和授权的过程分为以下几个步骤:
sqlplus sys as sysdba
输入密码后,进入SQL*Plus命令行环境。
your_username
和your_password
替换为实际的用户名和密码):CREATE USER your_username IDENTIFIED BY your_password;
例如:
CREATE USER myuser IDENTIFIED BY mypassword;
GRANT CREATE SESSION, CREATE TABLE, CREATE VIEW, CREATE PROCEDURE, CREATE SEQUENCE, CREATE TRIGGER TO your_username;
other_schema
替换为实际的模式名):GRANT SELECT, INSERT, UPDATE, DELETE ON other_schema.* TO your_username;
GRANT DBA TO your_username;
ALTER USER your_username DEFAULT TABLESPACE users QUOTA UNLIMITED ON users;
EXIT;
现在,新创建的用户已经具有相应的权限,可以登录并访问Oracle数据库。