偶尔会用到,记录.分享. 1. Oracle用户创建 #创建用户表空间create tablespace $username datafile '/u01/app/oracle/oradata/ufgovdb1/${username}.dbf' size 5120m autoextend on next 1024m maxsize unlimited extent management local; #创建用户临时表空间create temporary tablespace ${username…
--root用户执行vi /etc/sysctl.conf #Install oracle settingfs.aio-max-nr = 1048576fs.file-max = 6815744#kernel.shmall = 2097152#kernel.shmmax = 4294967295kernel.shmmni = 4096kernel.sem = 250 32000 100 128net.ipv4.ip_local_port_range = 9000 65500net.core.rm…
Oracle建立表空间和用户 [sql] view plain copy 建立表空间和用户的步骤: 用户 建立:create user 用户名 identified by "密码"; 授权:grant create session to 用户名; grant create table to 用户名; grant create tablespace to 用户名; grant create view to 用户名;   [sql] view plain copy 表空间 建立表空间(一般…
转至:https://www.jb51.net/article/20367.htm 添加用户(随着用户的创建,自动产生与用户同名的schema) CREATE USER "TESTER" PROFILE "DEFAULT" IDENTIFIED BY "TESTER" DEFAULT TABLESPACE "TESTDATA" TEMPORARY TABLESPACE "TESTTEMP" ACCOUNT…
1,创建表空间 create tablespace hxzg_data logging datafile 'C:\app\data\hxzg_data.dbf' size 50m autoextend on next 50m maxsize 20480m ; 2,创建用户 create user db_hxzg identified by 123 default tablespace hxzg_data; 3,复权 grant resource,connect to db_hxzg; 4,给其他…
创建新用户 create user lisi identified by '123456'; 查看创建结果: 授权 命令格式:grant privilegesCode on dbName.tableName to username@host identified by "password"; 命令说明: privilegesCode表示授予的权限类型,常见有: all privileges:所有权限: select:读取权限: delete:删除权限: update:更新权限: cre…
卸载 安装 创建用户wmxl create user 'wmxl'@'202.115.253.71' identified by '你的密码' 如果是mysql8.0,再输入以下 ALTER USER 'wmxl'@'202.115.253.71' IDENTIFIED WITH mysql_native_password BY '你的密码'; 给wmxl用户在202.115.253.71网路下vhr数据库中所有表的所有权利 GRANT ALL ON vhr.* TO 'wmxl'@'202.1…
一.查看用户及权限 1.查询所有用户: 1.1.查看所有用户基本信息 select * from all_users; 1.2.查看所有用户相信信息 select * from dba_users; 2.查看用户权限 2.1 查看所有用户 SELECT * FROM DBA_USERS; SELECT * FROM ALL_USERS; SELECT * FROM USER_USERS; 2.2 查看用户或角色所拥有的角色 SELECT * FROM DBA_ROLE_PRIVS; SELECT…
建立表空间: create tablespace portx_data datafile 'D:\oracle_data\portx.dbf' size 50m autoextend on next 50m maxsize 20480m extent management local; 创建用户 create user portx identified by mysteel default tablespace portx_data; 授予权限 grant connect,resource,db…
权限: create session create table unlimited tablespace connect resource dba 例: #sqlplus /nolog SQL> conn / as sysdba; SQL>create user username identified by password SQL> grant dba to username; SQL> conn username/password SQL> select * from u…