linux下history命令详解
如果你经常使用 Linux 命令行,那么使用 history(历史)命令可以有效地提升你的效率。本文将通过实例的方式向你介绍 history 命令的15个用法。1. 使用 HISTTIMEFORMAT 显示时间戳当你从命令行执行 history 命令...
oracle是怎样flashback table的?
在flashback table以后,会发现用户下有一个名为sys_temp_fbt的glocal temporary table.该表记录了如何flashback table.sys_temp_fbt包含以下五列:schema : 用户名/模式名object_name : 表名object# : object idri...
linux下mysql启动与关闭
##################################################################linux mysql 启动与停止##################################################################show variables like ‘character_set_%’ //察看...
MySQL数据库备份和还原的常用命令
备份MySQL数据库的命令mysqldump -hhostname -uusername -ppassword databasename > backupfile.sql备份MySQL数据库为带删除表的格式备份MySQL数据库为带删除表的格式,能够让该备份覆盖已有数据库而不需要手动...
rsync的安装
rsync的安装 和 配置1. rsync 安装2. 配置rsync服务端3. 配置rsync客户端4. 自动运行 同步数据5. 防火墙的设置6. 常见错误和解决 : 1. rsync 安装# 32bitwget http://packages.sw.be/rpmforge-release/rpmforge-rele...
限制用户sftp时到自己的目录
一、生成密钥运行下面的语句开始:(注意在普通用户中运行此命令,则产生的目录权限不用更改)$ssh-keygen -b 1024 -t dsaGenerating public/private dsa key pair.Enter file in which to save the key (/root/.ssh/i...
ORA-12005错误的解决
前几天碰到了ORA-12005错误,这里记录一下。一个晚上11点执行的job,执行的时候出现了以下错误:Tue Oct 13 23:00:01 2009Errors in file /u01/admin/cnderpdb/bdump/cnderpdb2_j000_270518.trc:ORA-12012: error...
Linux下挂在可读写NFTS硬盘
CentOS 5.4挂载可读写NTFS—RHEL5.4同样适用!系统环境# cat /etc/redhat-release CentOS release 5.4 (Final)# # uname -aLinux it 2.6.18-164.el5 #1 SMP Thu Sep 3 03:28:30 EDT 2009 x86_64 x86_64 x86_64 GN...
oracle10g收缩空间 shrink space
Oracle 10g语法:alter table <table_name> shrink space [ <null> | compact | cascade ];alter table <table_name> shrink space compcat;收缩表,但会保持 high water mark; (这怎么理解?相当于没回缩...
Oracle 10g 表中字段数量最多是1000,字段长度最多30个字符
Oracle 10g 表中字段数量最多为1000个。SQL execution error, ORA-01792: 表或视图中的最大列数为 1000Oracle 10g 表中字段长度最多为30个字符。SQL execution error, ORA-00972: 标识符过长...
linux下对符合条件的文件大小做汇总统计的简单命令
使用du命令查看一个目录下符合匹配条件的文件占用的磁盘空间du -c -h *log或使用awk做汇总du *log |awk 'BEGIN{count=0;size=0;} \ {count = count + 1; size = size + $1/1024;} \ EN...
检查磁盘空间使用情况
磁盘空间使用率大于80%的列出df -h|sed '1d'|awk 'sub("%","",$5) {if($5>80) print $6" has used "$5"%"}'
Oracle Shrink Table ORA-10635: Invalid segment or tablespace type
从10g开始,oracle开始提供Shrink的命令,假如我们的表空间中支持自动段空间管理 (ASSM),就可以使用这个特性缩小段,即降低HWM。这里需要强调一点,10g的这个新特性,仅对ASSM表空间有效,否则会报 ORA-10635: Inval...
Toad 引发的ORA-00600 17281错误
在客户的数据库环境中,多次发现ORA-600 17281错误:ORA-00600: internal error code, arguments: [17281], [1001], [0x7000000F8300F20], [], [], [], [], []ORA-01001: invalid cursor17281的官方解释是:Error c...
sqlldr Field in data file exceeds maximum length
sqlldr 导入时报如下错误:Record 1: Rejected - Error on table INFOBASE, column CONTENT.Field in data file exceeds maximum lengthRecord 2: Rejected - Error on table INFOBASE, column CONTENT.Field in da...
ORA-20000: Unable to analyze TABLE , insufficient privileges or does not exist
今天在数据库的警报日志中发现如下一条错误:ORA-20000: Unable to analyze TABLE "yun"."tt", insufficient privileges or does not exist查了一下,这个自动任务是oracle自己的job :GATHER_STATS_JOB可通过dba...
oracle10.2.0.1升级到10.2.0.4
关闭所有服务:sqlplus / as sysdba>shutdown immediate>exit$ isqlplusctl stop $ emctl stop dbconsole$ lsnrctl stop执行升级升级完成之后的步骤:1、SQL> STARTUP UPGRADE 2、SQL>@?/rdbms/admin/utlu102i....
centos5.5下安装oracle10g报错 libawt.so: libXp.so.6
在centos5.5-64位下安装oracle10g时报如下错误[oracle@wap1 database]$ ./runInstaller Starting Oracle Universal Installer...Checking installer requirements...Checking operating system version: must be ...
Oracle AWR wri$, wrh$ and wrm$
§ The wrm$ tables store metadata information for the Workload Repository.§ The wrh$ tables store historical data or snapshots...
exp导出表分区
编写parfile文件,将需要清理的分区写在parfile文件中:Vi mytab.partables=(mytable_history:P_MYTAB_0604,mytable_history:P_MYTAB_0605,mytable_history:P_MYTAB_0607,mytable_history:P_MYTAB_0608,mytable_hist...