linux下启动监听器出现问题的解决
有关权限的错误:修改/var/tmp/.oracle的权限为oracle用户可写。 有关lost contact的错误:/etc/hosts文件中的主机名有问题。broken pipe的问题:listener.log文件达到了2G的限制。如果是客户端连不上:考虑是否因为防火墙,尝试关掉iptables。[@more@]
删除一个目录中的文件后,依然可以看到其名称与inode编号
删除一个目录下的文件后,依然可以看到其名称和inode编号,说明目录文件中对应这些文件的信息并未删除,这与之前的验证相符。以下是验证过程:[root@law law]# pwd/root/law[root@law law]# ls -a. ..[root@law law]# touch a b c[root@law law]# ls -i131056 a 131057 b 131058 c[root@law law]# rm -rf *[root@law law]# ls -i[root@law law]# debugfs /dev/sda1debugfs 1.35 (28-Feb-2004)debugfs: cd /root/lawdebugfs: ls -d 130572 (12) . 130049 (4084) .. <131056> (12) a <131057> (12) b<131058> (4048) cdeb
查看linux中文件的inode信息
大致四个方法:直接执行stat命令,以文件名称为参数。在debugfs中执行stat命令,以文件名称为参数。在debugfs中执行mi命令,以inode编号为参数,注意执行debugfs时,要附加-w选项。定位inode所在位置,然后以dd命令导出。后面两种方法会得到完整的inode信息,而前面两种不完整。[@more@]
DOS命令的换行
DOS使用^,linux使用反斜杠。[@more@]
linux中,C程序第一个执行的并不是main()函数
It's also important to note that with C applications, main() isn't really the first function to be executed. Functions that get executed before main() include __libc_start_main(), _start(), and __libc_csu_init().-----Self-Service Linux®: Mastering the Art of Problem Determination [@more@]
几个linux网址
The Linux Documentation Project: http://tldp.org.Linux Weekly News http://lwn.netLinux Kernel Newbies http://kernelnewbies.orghttp://www.google.com/linux.GCC's Bugzilla can be found at http://gcc.gnu.org/bugzilla[@more@]
王选: 从Dijkstra谈帅才的洞察力
在文中,王选院士缅怀计算机科学先驱Dijkstra的历史功绩,在技术的时空中浓缩大师的魅力、勾勒计算机科学发展的轨迹。但在缅怀的背后,更值得读者重视的,是王选老师对中国软件产业缺乏既懂管理又懂技术的“师才”的忧虑。Dijkstra被西方学术界称为“结构程序设计之父”和“先知先觉”(Oracle),他一生致力于把程序设计发展成一门科学。科学研究的帅才最重要的素质是洞察力(Vision和Insight),能够发现有前景的新领域或在新领域内发现和解决最关键的问题。下面仅举几例说明Dijkstra的洞察力。[@more@]解决编译系统中的关键问题FORTRAN
ext2目录文件的内容验证
[root@law dir]# ls -iltotal 16114323 drwxr-xr-x 2 root root 4096 Sep 10 22:16 dir1114325 lrwxrwxrwx 1 root root 6 Sep 10 22:33 oracle.ln -> /orale114324 -rw-r--r-- 1 root root 0 Sep 10 22:16 test.txt[root@law dir]# debugfs /dev/sda1debugfs 1.35 (28-Feb-2004)debugfs: stat /dirInode: 114135 Type: directory Mode: 0755 Flags: 0x0 Generation: 3268397653User: 0 Group: 0 Size: 4096File ACL: 142889 Directory ACL: 0Links: 3 Blockcount: 16Fragment: Address: 0 Nu
软链接存储内容的验证
这里主要是利用dd及od命令。1. 建立软链接,目标文件的路径及文件名的长度要大于60个字符,这样软链接文件中会存储目标文件的路径及文件名,否则,这些内容会存储在软链接文件的inode的i_block数组中,这个数组本来是存储文件数据所在的数据块的。[root@law ~]# ln -s /oracle/product/10.2.0/db_1/inventory/Templates/assistants/dbca/dbca.sbs dbca.ln2. 查询软链接文件被分配的数据块号:[root@law ~]# debugfs /dev/sda1debugfs 1.35 (28-Feb-2004)debugfs: stat dbca.lndbca.ln: File not found by ext2_lookupdebugfs: stat /root/
oracle中的共享内存和信号量的一个简单解释
Shared memory allows an application to allocate a chunk of memory which can be viewed by other processes. Oracle uses shared memory to create the System Global Area (SGA) which all Oracle processes must be able to access.Semaphores act as flags for shared memory. Semaphores are either set on or off. When an Oracle process accesses the SGA (in shared memory) it will check for a semaphore for that portion of memory. If it finds a semaphore set on for that portion of memory that process will sleep
MySQL基本操作
[mysql@redhat ~]$ cat .my.cnf[mysql]user=rootpassword=root[mysqld]datadir=/mysql/mysql-5.0.41-linux-i686/data[mysql@redhat ~]$ cd /mysql/mysql-5.0.41-linux-i686[mysql@redhat mysql-5.0.41-linux-i686]$ ...
MySQL数据字典
law
启动mysql时报错的解决(mysql 5.0.45 redhat as 43)
启动mysql时报错:Starting mysqld daemon with databases from /var/lib/mysqlSTOPPING server from pid file /var/run/mysqld/mysqld.pid071112 00:22:06 mysqld ended查看日志:#less /var/log/mysqld.log其中有...
查看系统安装的字符集及支持的语言设置
locale -m 查看字符集locale -a 查看系统支持的locale设置hal
代替uniread的另外一个支持SQL Plus命令回显的小程序:rlwrap,只有24KB
下载rlwrap的rpm包:rlwrap-0.18-1.i386.rpm以root帐号安装:rpm -ivh rlwrap rlwrap-0.18-1.i386.rpm启动SQL*Plus时,使用$ rlwrap sqlplus scott/tiger或者在oracle用户的.bashrc中设置alias:alias sqlplus="rlwr...
linux上的sqlplus支持命令回显
在Linux中,SQL*Plus不支持上、下方向键回显命令,也不支持左、右方向键移动光标,我们可以通过安装下面三个软件改变这种状况。 Term-Readline-Gnu,下载地址:http://search.cpan.org/dist/Term-ReadLine-GnuIO-Tty...
重装VMware操作系统时正确设置光盘的device node
重装VMware上的操作系统,设置iso文件时,注意下面的Virtual device node要选择ide 0:0 CD-ROM-1,否则,依然从原有的操作系统启动,不能启动iso安装光盘。
centOS 5下安装Oracle 10g所需的软件包
安装centOS 5时,要注意选择以下安装选项:Select the Development -> Development Libraries, Development Tools and Legacy Software Development package groups.Under the Base System group, make sure you sel...
两个小例子:把从表中取得的数据传给Unix的shell变量
[oracle@redhat ~]$ cat sqlvalue#!/bin/bashVALUE=`sqlplus -s scott/tiger <<ENDset pagesize 0 feedback off verify off heading off echo offselect count(deptno) from dept;exit;END`echo ""$VALUE" rows retu...
常用快捷键
Ctrl+L:刷新屏幕,相当于clear命令的效果。Shift+PgOn或Shift+PgUp:使得终端内容上下移动,每次移动一页,也可以使用Ctrl+PgOn或Ctrl+PgUp连续移动。显卡的内存决定可以回滚多少内容。Ctrl+A:使得光标移至行首Ctr...