oracle
lilinde1225
这个作者很懒,什么都没留下…
展开
-
oralce 数据库备份与还原
1、数据库备份在开始运行中输入cmd进入dos命令窗口,然后输入相应的备份命令即可,命令为:exp 用户名/密码@全局数据库名 file='文件路径+文件名' owner=(用户名)例如:exp abc/abc@linder file='f:\abc.dmp' owner=(abc)2、数据库的还原第一步:创建对应的用户的abc和表空间,并给用户授权第二步,在开始运行中...2010-03-30 09:06:23 · 72 阅读 · 0 评论 -
查看表空间是否为自动扩展
select file_id,file_name,tablespace_name,autoextensible,increment_by from dba_data_files order by file_id desc;2011-07-02 16:42:49 · 612 阅读 · 0 评论 -
查看表空间的使用率
select a.tablespace_name,a.bytes/1024/1024 "Sum MB",(a.bytes-b.bytes)/1024/1024 "Used MB",b.bytes/1024/1024 "Free MB",round(((a.bytes-b.bytes)/a.bytes)*100,2) "Percent_userd" from (select tablespac...2011-07-02 16:42:04 · 104 阅读 · 0 评论 -
windows下oracle自动备份脚本
@echo off REM ########################################################### REM # Windows Server 2008下Oracle数据库自动备份批处理脚本 REM ########################################################### ...2011-07-02 16:38:57 · 103 阅读 · 0 评论 -
修改oracle10g和oracle11g数据库字符集
工作需要,安装装了oracle 11g,在导入其他机器上的备份数据的时间,发生一个错误:IMP-00019: 由于 ORACLE 错误 12899 而拒绝行IMP-00003: 遇到 ORACLE 错误 12899ORA-12899: 列 "ZHENG"."D_DIC"."DICEXPLAIN" 的值太大 (实际值: 140, 最大值: 100)这个数据表结构是直接注入的,根本不会这样子的...原创 2010-12-22 14:12:54 · 145 阅读 · 0 评论 -
oracle用户授所有权限
grant alter system to linder;grant audit system to linder;grant create session to linder;grant alter session to linder;grant restricted session to linder;grant debug connect session to lin...2010-05-19 15:10:54 · 1377 阅读 · 0 评论 -
查看oracle数据库的连接数以及用户
1、查询oracle的连接数select count(*) from v$session;2、查询oracle的并发连接数select count(*) from v$session where status='ACTIVE';3、查看不同用户的连接数 select username,count(username) from v$session where username i...2010-07-23 16:35:41 · 1675 阅读 · 0 评论 -
oracle中创建用户和表
--创建临时表空间create temporary tablespace tour_temp tempfile 'd:\OracleData\tour_temp.dbf' size 10m autoextend on next 10m maxsize unlimited extent management local;--创建数据表空间create tablespace tou...2010-04-23 11:17:38 · 82 阅读 · 0 评论 -
创建表空间、用户、用户授权
ORACLE中,表空间是数据管理的基本方法,所有用户的对象要存放在表空间中,也就是用户有空间的使用权,才能创建用户对象.否则是不充许创建对象,因为就是想创建对象,如表,索引等,也没有地方存放,Oracle会提示:没有存储配额. 因此,在创建对象之前,首先要分配存储空间. 分配存储,就要创建表空间: 创建表空间示例如下:create tablespace knowl...2010-04-02 09:16:58 · 105 阅读 · 0 评论 -
修改表的空间
一、修改单个表空间的方法 alter table TABLE_NAME move tablespace TABLESPACENAME 二、批量修改表空间的方法1、查询当前用户所有的表,并拼接成修改表空间的SQL语句 spool c:\move.sql;select 'alter table '|| table_name ||' move tablespac...2011-07-02 16:52:06 · 464 阅读 · 0 评论