Chinaunix首页 | 论坛 | 博客
  • 博客访问: 263515
  • 博文数量: 51
  • 博客积分: 1400
  • 博客等级: 上尉
  • 技术积分: 606
  • 用 户 组: 普通用户
  • 注册时间: 2007-11-13 16:43
文章分类

全部博文(51)

文章存档

2011年(1)

2010年(3)

2009年(45)

2008年(2)

我的朋友

分类: LINUX

2009-04-27 14:57:55

本地ssh连接的认证:/etc/ssh/ssh_config配置信息:
 GSSAPIAuthentication  yes/no
查看cpu信息:
 /proc/cpuinfo
查看mem信息:
 /proc/meminfo

查看内核参数:
      /sbin/sysctl -a
      chkconfig boot.sysctl on --启动修改后的内核参数

监控tcp数据:
 tcpdump
产生core文件设置:
 ulimit

linux系统优化:

 ntsysv

数据不显示科学计数方式:
   set   numwidth   15  设置宽度
   select   to_char(1.3684E+10)   from   dual; 转字符显示

导入:
imp file=/tmp/credit0205.dmp fromuser=credit touser=demo
imp file=aaa.dmp tables=CP_VERKEY ignore=y;
转浮点型函数:
   to_number

查看表空间使用情况:
select b.file_id 文件ID号, b.tablespace_name 表空间名, b.bytes/1024/1024||'M'字节数, (b.bytes-sum(nvl(a.bytes,0)))/1024/1024||'M' 已使用, sum(nvl(a.bytes,0))/1024/1024||'M' 剩余空间, 100 - sum(nvl(a.bytes,0))/(b.bytes)*100 占用百分比 from dba_free_space a,dba_data_files b where a.file_id=b.file_id group by b.tablespace_name,b.file_id,b.bytes order by b.file_id
表空间信息:
select username,default_tablespace from dba_users;

导入数据时重新导入默认表空间,而不是原数据表空间:
revoke unlimited tablespace from credit;
alter  user credit unlimited quota on tablespace;
查看oracle错误码的错误信息:
oerr ora 1536
oracle安装:
runInstall -IgnoreSysPreReqs可以跳过操作系统检测

取得数据表的key字段信息:
select TABLE_NAME,COLUMN_NAME,constraint_name from user_cons_columns  where constraint_name in (select constraint_name from user_constraints where owner = 'CREDIT' and constraint_type = 'P') ORDER BY TABLE_NAME ;
用户所有表信息:
select * from dba_tables where owner ='CREDIT'
阅读(944) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~