Oracle -- Create User】的更多相关文章

DROP PUBLIC DATABASE LINK ORA11G_DBLINK; CREATE   PUBLIC   DATABASE LINK ORA11G_DBLINKCONNECT TO SYSTEM IDENTIFIED BY ORACLEUSING '(DESCRIPTION =(ADDRESS_LIST =(ADDRESS =(PROTOCOL = TCP)(HOST = 192.168.10.201)(PORT = 1521)))(CONNECT_DATA =(SERVICE_NA…
ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED; sqlplus shybt/shybt@127.0.0.1:1521/orcl Create user test identified by 12345678 create tablespace SIRM2 datafile 'D:\oracle\product\10.2.0\oradata\orcl\SIRM2.dbf' size 1024M --存储地址 初始大小1G ALTE…
1.创建临时表空间 CREATE TEMPORARY TABLESPACE test_tempTEMPFILE 'C:\oracle\product\10.1.0\oradata\orcl\test_temp01.dbf'SIZE 32MAUTOEXTEND ONNEXT 32M MAXSIZE 2048MEXTENT MANAGEMENT LOCAL 2.创建用户表空间 CREATE TABLESPACE test_dataLOGGINGDATAFILE 'C:\ORACLE\PRODUCT\…
CREATE [UNDO]  TABLESPACE tablespace_name          [DATAFILE datefile_spec1 [,datefile_spec2] ......   [{MININUM EXTENT integer [k|m]   |BLOCKSIZE integer [k]   |logging clause | FORCE LOGGING   |DEFAULT {data_segment_compression} storage_clause   |[…
Let's say we are going to develop a application for a bank, or any other enterprise, this application need a DB. And we decide to choose Oracle 12c. Then we make a plan: Application is for WBBANK, so name is WBBANK Application DB is running in a indi…
一.表空间 1.创建表空间 CREATE TABLESPACE 空间名称 DATAFILE '文件名1' SIZE 数字M [,'文件名2' SIZE 数字….] EXTENT MANAGEMENT LOCAL UNIFORM SIZE 数字M 解释: EXTENT MANAGEMENT LOCAL:指明表空间类型是:本地管理表空间.本地管理表空 间要求Oracle中的数据分区(Extent)大小统一 UNIFORM SIZE:指定每个分区的统一大小 必须是管理员用户才能创建表空间,当表空间的空…
//建测试表 create table dept( deptno number(3) primary key, dname varchar2(10), loc varchar2(13) ); create table employee_info( empno number(3), deptno number(3), ename varchar2(10), sex char(1), phone number(11), address varchar2(50), introduce varchar2…
SQL> exec pro_gz_day_report;          ORA-01031: insufficient privileges          ORA-06512: at "....", line 6          ORA-06512: at line 2 限不足无法创建表,可以通过如下方案解决: grant create any table to 用户名;…
CREATE USER hibernate IDENTIFIED BY "123" DEFAULT TABLESPACE "HIBERNATE" TEMPORARY TABLESPACE "TEMP" QUOTA UNLIMITED ON "HIBERNATE"; GRANT CREATE JOB TO hibernate WITH ADMIN OPTION; GRANT CREATE PROCEDURE TO hiberna…
1.新建directory的语法 CREATE [OR REPLACE] DIRECTORY directory AS 'pathname'; 例如: create or replace directory dump_dir as 'D:\dump\dir' 这样把目录d:\dump\dir设置成dump_dir代表的directory 2.查询有哪些directory select * from dba_directories 3.赋权 grant read,write on director…