ORACLE 10G创建表空间和创建用户
1、创建表空间
CREATE TABLESPACE mytablespace DATAFILE
'F:\oracle\product\10.2.0\oradata\myoracle\MYTABLESPACE01.DBF' SIZE 500M AUTOEXTEND ON NEXT
100M MAXSIZE UNLIMITED
LOGGING
PERMANENT
EXTENT MANAGEMENT LOCAL AUTOALLOCATE
BLOCKSIZE 8K
SEGMENT SPACE MANAGEMENT MANUAL
FLASHBACK ON;
2、创建用户
CREATE USER ECC_NOTE IDENTIFIED BY sys
PROFILE DEFAULT
DEFAULT TABLESPACE mytablespace
TEMPORARY TABLESPACE temp
ACCOUNT UNLOCK;
GRANT UNDER ANY TABLE TO ECC_NOTE WITH ADMIN OPTION;
GRANT UNDER ANY TYPE TO ECC_NOTE WITH ADMIN OPTION;
GRANT UNDER ANY VIEW TO ECC_NOTE WITH ADMIN OPTION;
GRANT "DBA" TO ECC_NOTE WITH ADMIN OPTION;
GRANT "OLAP_DBA" TO ECC_NOTE WITH ADMIN OPTION;
GRANT "OLAP_USER" TO ECC_NOTE WITH ADMIN OPTION;
GRANT "SELECT_CATALOG_ROLE" TO ECC_NOTE WITH ADMIN OPTION;
ALTER USER ECC_NOTE DEFAULT ROLE "DBA", "OLAP_DBA", "OLAP_USER", "SELECT_CATALOG_ROLE";
ALTER USER test QUOTA UNLIMITED ON ECC_NOTE;
相关文档:
存储过程创建语法:
create or replace procedure 存储过程名(param1 in type,param2 out type)
as
变量1 类型(值范围);
变量2 类型(值范围);
Begin
Select count(*) into 变量1 from 表A where列名=param1;
If (判断条件) then
&n ......
1. ASCII
返回与指定的字符对应的十进制数;
SQL> select ascii(A) A,ascii(a) a,ascii(0) zero,ascii( ) space from dual;
A A ZERO SPACE
--------- --------- --------- ---------
65 97 48 32
2. CHR
给出整数,返回对应的字符;
SQL> select chr(54740) zhao,chr(65) chr65 from dual;
ZH C
-- ......
http://www.cnblogs.com/sleepywang/archive/2009/10/13/1582654.html
1. 下载oracle的客户端程序包(30M)
只需要在
Oracle
下载一个叫
Instant Client Package
的软件就可以了,这个软件不需要安装,只要解压就可以用了,很方便,就算重装了系统还是可以用的。
  ......
Q1.怎样创建表?
Q2.怎样删除表?
Q3.怎样创建视图?
Q4.怎样删除视图?
Q5.怎样给表添加字段?
Q6.怎样删除表中某个字段?
Q7.怎样给某个字段添加约束?
Q8.怎样去除某个字段上的约束?
Q9.怎样给表加上主键?
Q10.怎样删除表的主键?
Q11.怎样给表添加一个外键?
......
源贴地址:http://topic.csdn.net/u/20090520/15/08a03d2e-a537-4c06-b79a-7e2f7ed5f898.html
1,
ASCII
返回与指定的字符对应的十进制数;
SQL> select ascii(A) A,ascii(a) a,ascii(0) zero,ascii( ) space from dual;
A A ZERO SPACE
--------- --------- --------- ---------
65 97 48 32
2. CHR
......