Solaris下mount一个磁盘
在安装Solaris的时候,默认安装只装在了一个磁盘上。而没有使用另一个磁盘。简单记录一下mount磁盘的步骤。[@more@]在安装Solaris的时候,默认安装只装在了一个磁盘上。而没有使用另一个磁盘。简单记录一下mount磁盘的步骤。首先检查一下当前的配置:# df -kFilesystem kbytes used avail capacity Mounted on/dev/dsk/c1t0d0s0 10232602 873037 9257239 9% //proc 0 0 0 0% /procfd 0 0 0 0% /dev/fdmnttab 0 0 0 0% /etc/mnttab/dev/dsk/c1t0d0s1 1016122 8549 946606 1% /varswap 11815608 24 11815584 1% /var/run/dev/dsk/c1t0d0s5 5
Solaris上按照时间顺序删除文件
Solaris上按照时间顺序删除文件[@more@]如何在Solaris上按照时间顺序删除文件删除100天之内没有访问过的文件:find . -atime +100 -exec rm {} ;应该是 -atime吧. c 是create time, a为accesstime提供另一种方式.find . -ctime +100 | xargs rm -f
使用CRONTAB调用shell脚本执行EXP
使用CRONTAB调用shell脚本执行EXP[@more@]通过SHELL脚本执行全库导出是很常见的。但是如果将这个SHELL脚本通过CRONTAB定时调用,则需要修改很多地方。这里简单记录一下。由于对UNIX系统不是很熟悉。将一个已经可以运行的csh脚本,改成一个可以在CRONTAB中调用的bash脚本,花了我足足大半天的时间。又用了不少时间将整个CRONTAB环境从测试的LINUX环境移植到UNIX环境。下面是根据Tom的expert one-on-one oracle上代码稍加修改后的初始版本:#!/bin/csh -f# Set this to the userid you want to perform the export as I always use OPS$ (os
linux date命令设置时间
linux date命令设置时间[@more@]Linux的man命令实在是不够友好,解释的不是很清楚,还没有例子,害的我尝试了N次无工而反。最后google解决了。其实很简单# date -s 20060925# date -s 21:19:50第一行设置日期,第二行设置时间。受了Oracle的date类型的影响,总是在尝试同时设置日期和时间。也许date可以同时设置日期和时间,不过我是没有试出来。
Solaris8安装笔记
Solaris8安装笔记[@more@]第一次安装Solaris系统,简单记录一下安装步骤。首先,从使用STOP + A启动到OK状态,然后boot cdrom,准备安装:{0} ok boot cdromResetting ...系统从光盘启动,检测硬件后,进入交互安装过程,首先是语言选择:Select a Language0. English1. French2. German3. Italian4. Japanese5. Korean6. Simplified Chinese7. Spanish8. Swedish9. Traditional ChinesePlease make a choice (0 - 9), or press h or ? for help: 0Select a Locale0. English (C - 7-bit ASCII)1. Albania (ISO8859-2)2. Australia (ISO88
Solaris下修改主机名
Solaris下修改主机名[@more@]通过hostname newname的方式对当前有效,但是一旦重启,修改就丢失了。应使用root修改下面6个文件:/etc/hosts/etc/nodename/etc/hostname.ce0/etc/net/ticlts/hosts/etc/net/ticots/hosts/etc/net/ticotsord/hosts按照文件中格式将原始主机名替换为新的主机名就可以了。
Solaris下控制ftp的权限
Solaris下控制ftp的权限 搜索了一下发现只需要将/etc/ftpusers里面的root用户注释掉就可以了。[@more@]Solaris下控制ftp的权限 =========================================================== 今天在向Solaris进行ftp时发现默认root是无法进行ftp的。在/etc/default/login中已经将console一行注释掉了,目前root用户已经可以TELNET到服务器上了。但是root使用ftp还是无法登陆。搜索了一下发现只需要将/etc/ftpusers里面的root用户注释掉就可以了。
Solaris下root无法从远端登陆的问题
Solaris下root无法从远端登陆的问题 修改/etc/default/login文件,在CONSOLE=/dev/consolegic的前面加上#,将其注释,就可以通过用root用户TELNET登陆了。[@more@]刚刚建立好Solaris操作系统后,从远端TELNET登陆系统,发现使用root用户无法登陆。SunOS 5.8login: rootPassword: Not on system console而换成其他用户是可以登陆的:SunOS 5.8login: testPassword: No directory! Logging in with home=/Sun Microsystems Inc. SunOS 5.8 Generic Patch October 2001$ 这是由于默认登陆设置保护root帐号,避免远端登陆造成的。可以通过本机
Oracle10g的ORA-3136错误
Oracle10g的ORA-3136错误WARNING: inbound connection timed out (ORA-3136)。[@more@]WARNING: inbound connection timed out (ORA-3136)。在metalink上查询了一下,发现这个错误在10g当中是很常见的。Metalink上有专门的bug和note对这个问题进行了说明。不过Oracle虽然给出了解决方案,但是并没有详细说明问题产生的原因。只是说明这是一个内部错误。Oracle给出的解决方法就是通过修改listener.ora和sqlnet.ora中的这个参数值:1.在listener.ora中添加INBOUND_CONNECT_TIMEOUT_instener name=02.在服务器上的sqlnet.ora文件中添加SQLNET
ORACLE之常用FAQ
ORACLE之常用FAQ V1.0http://www.itpub.net/showthread.php?s=&threadid=180363FAQ第二版http://www.itpub.net/705130,1.html[@more@]
Import Fails with IMP-00058, ORA-1438
symptom: IMP-00058: ORACLE error 1438 encounteredsymptom: ORA-01438: value larger than specified precision allows for this event="1438 trace name errorstack level 10"例如imp-00058 oracle错误1438出现ora-01438:值大于此列指定的允许精确度imp-00018:上一个表的部分导入完成,导入6605531行[@more@]Subject: Import Fails with IMP-00058, ORA-1438 Errors Doc ID: Note:185229.1Type: PROBLEM Last Revision Date: 28-JUL-2005Status: PUBLISHED fact: Oracle Server - Enterprise Edition fact: Export Util
TKProf Simplistic Overview
Example Output (Partial) File-----------------------------TKPROF: Release 7.2.2.3.0 - Production on Wed Aug 7 11:29:43 1996Copyright (c) Oracle Corporation 1979, 1994. All rights reserved.Trace file: <filename>.trcSort options: default********************************************************************************count = number of times OCI procedure was executedcpu = cpu time in seconds executingelapsed = elapsed time in seconds executingdisk = number of physical reads of b
How to Enable SQL_TRACE for Another Session Using ORADEBUG:
How to Enable SQL_TRACE for Another Session Using ORADEBUG:The ORADEBUG utility can enable/disable setting the SQL tracing for another user's session. [@more@]How to Enable SQL_TRACE for Another Session Using ORADEBUG:=========================================================== The ORADEBUG utility can enable/disable setting the SQL tracing for another user's session. To enable tracing for another session, the Oracle process identifier (PID) or the Operating System processes identifier (SPID) mu
oracle Event:10046
10046 EVENT levels: 1 - Enable standard SQL_TRACE functionality (Default) 4 - As Level 1 PLUS trace bind values 8 - As Level 1 PLUS trace waits This is especially useful for spotting latch wait etc. but can also be used to spot full table scans and index scans. 12 - As Level 1 PLUS both trace bind values and waits[@more@]Event:10046Text: enable SQL statement timing---------------------------------------------------------------------------
IMP-00058, ORA-1438
Subject: Import Fails with IMP-00058, ORA-1438 Errors Doc ID: Note:185229.1 Type: PROBLEM Last Revision Date: 28-JUL-2005 Status: PUBLISHED fact: Oracle Server - Enterprise Edition fact: Export Utility (EXP) fact: Import Utility (IMP) symptom: Running an import fails symptom: IMP-00058: ORACLE error 1438 encountered symptom: ORA-01438: value larger than specified precision allows for this column symptom: IMP-00018: partial import of previous table completed: 178731 rows imported cause: These sym
oracle error -- ora-03106
ORA-03106 fatal two-task communication protocol error这个信息表明,在ORACLE进行网络通信工作时,发生了错误。比如,客户应用程序使用SQL*NET访问服务器数据库时,不能进行,ORACLE显示ORA-03106错误。首先,应当检查客户应用与数据库服务器之间的兼容性,这是ORA-03106错误中最常见的原因。现已发现,Developer/2000 V1.3预版与ORACLE V8.0.5 for Digital UNIX不兼容;ORACLE V7.0.1.6 for ScoUNIX与ORACLE V8.0.5 for Digital UNIX不兼容,等等。再检查客户应用与数据库服务器之间的NLS(字符集)兼容性。前些年计算机上的中文字符集
oracle parameter -- 一些优化时候要考虑的参数
在对Oracle数据库进行优化时,需要用到许多的参数,其中有一部分参数对系统性能影响较大,这部分参数叫可变参数。可变参数按其作用可以分为两大类,一大类是起限制作用的,如OPEN_LINKS;另一大类是影响系统性能的,如DB_BLOCK_BUFFERS。在进行数据库系统性能优化时,需要熟练掌握和了解一些可变参数。本文讨论了一些对系统性能有较大影响的参数。(1)DML_LOCKS该参数表明多少个用户,可同时能修改多少张表。例如:有三个用户同时修改二张表,则要求表上的总数为6。若置为0,则组织队列不起作用,其性能会稍有提高。使用该参数时不能用DROP T
oracle wait -- SQL*Net message from client
通过 SQL*Net ,oracle server process wait message from client,比如说命令[@more@]
在VI中输入中文
在VI中输入中文1,设置环境变量 #vi /etc/rc.config.d/LANG 默认的内容为: LANG=C export LANG 改为: LANG=zh_CN.hp15CN export LANG 2,增加这一行到/etc/profile stty -istrip -parity cs8 3,重新登录[@more@]