易截截图软件、单文件、免安装、纯绿色、仅160KB

Oracle常用操作笔记

select name from v$datafile;
create dataspace tablespace datafile '/oracle/oradata/orcl/data01.dbf' size 1024m,'/oracle/oradata/orcl/data02.dbf' size 1024m autoextend on next 100m maxsize unlimited;
alter tablespace dataspace add datafile '/oracle/oradata/orcl/data03.dbf' size 1024m autoextend on next 100m maxsize unlimited;
alter database datafile '/oracle/oradata/orcl/data01.dbf' size 2048m autoextend on next 200m maxsize unlimited;
===========================================================
create user username identified by password default tablespace dataspace;
grant connect,resource to username;
drop user username cascade;
===========================================================
select a.tablespace_name "表空间名",
       total "表空间大小",
       free "表空间剩余大小",
       (total - free) "表空间使用大小",
       round((total - free) / total, 4) * 100 "使用率 %"
  from (select tablespace_name, sum(bytes) free
          from dba_free_space
         group by tablespace_name) a,
       (select tablespace_name, sum(bytes) total
          from dba_data_files
         group by tablespace_name) b
 where a.tablespace_name = b.tablespace_name;
===========================================================
exp username/password file=expdata.dmp log=expdata.log buffer=409600
imp username/password file=impdata.dmp log=impdata.log buffer=409600 full=y
===========================================================
create directory dump_dir as 'd:\bakdata';
select * from dba_directories;
grant read, write on directory dump_dir to username;
expdp username/password directory=dump_dir dumpfile=expdata.dmp logfi


相关文档:

Linux下启动Oracle数据库


[root@GISDB ~]$ su - oracle
[oracle@GISDB ~]$ sqlplus /nolog
SQL*Plus: Release 10.2.0.4.0 - Production on Tue Oct 13 11:03:03 2009
Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
SQL> conn /as sysdba
Connected to an idle instance.
SQL> startup
ORACLE instance started.
To ......

ORACLE 10g下载地址

ORACLE 10g下载地址
Oracle Database 10g Release 2 (10.2.0.1.0) Enterprise/Standard Edition for Microsoft Windows (32-bit)
http://download.oracle.com/otn/nt/oracle10g/10201/10201_database_win32.zip
http://download.oracle.com/otn/nt/oracle10g/10201/10201_client_win32.zip
http://download.oracle.co ......

oracle中对排序的总结

  select * from perexl order by nlssort(danwei,'NLS_SORT=SCHINESE_PINYIN_M');
  -- 按部首排序
  select * from perexl order by nlssort(danwei,'NLS_SORT=SCHINESE_STROKE_M');
  -- 按笔画排序
  select * from perexl order by nlssort(danwei,'NLS_SORT=SCHINESE_RADICAL_M');
  --排序后获取第 ......

Oracle RAC学习笔记

Oracle RAC学习笔记
1. Introduction:
Cluster - 对用户来说多台服务器好像是一台服务器一样。
Oracle Clusterware - Oracle提供的集群解决方案
Oracle RAC 多个实例对应一个数据库(文件)
Oracle Cluster Architecture:  (Hardware)
Oracle RAC 俩个组件:Voting Disk和OCR (Oracle Cluster Register)
Voti ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号