创建数据库表空间和用户

--create tablespace
create tablespace ilog
datafile 'F:\oracle\product\10.2.0\oradata\rtszhxu\ilog.def' size 100M
autoextend on next 100M maxsize unlimited logging
extent management local autoallocate
segment space management auto;

-- Create the user
create user ilog
identified by "ilog"
default tablespace ILOG
temporary tablespace TEMP
profile DEFAULT
quota unlimited on ilog;

-- Grant/Revoke role privileges
grant connect,dba to ILOG;


(grant resource to ILOG;

-- Grant/Revoke system privileges
grant create any index to ILOG;
grant create any sequence to ILOG;
grant create any table to ILOG;
grant create any view to ILOG;
grant drop any index to ILOG;
grant drop any sequence to ILOG;
grant drop any table to ILOG;
grant drop any view to ILOG;
grant select any sequence to ILOG;
grant select any table to ILOG;
grant unlimited tablespace to ILOG;
grant update any table to ILOG;)


查询表空间
SELECT *
FROM DBA_TABLESPACES
where TABLESPACE_name not in
('SYSAUX', 'SYSTEM', 'USERS', 'UNDOTBS1', 'TEMP')
order by TABLESPACE_name;

查询用户
SELECT a.*
FROM DBA_USERS a
where default_tablespace not in
('SYSAUX', 'SYSTEM', 'USERS', 'UNDOTBS1', 'TEMP')
order by a.default_tablespace;

数据库连接串
在D:\oracle\product\10.2.0\db_1\network\ADMIN下的tnsnames.ora里添加
INTEGERTEST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.0.0.79)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = jrule)
)
)
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值