Tag Archives: Oracle

更改oracle的监听端口

参考http://www.wangwa.com/info/2006-09/32453.htm 三、修改了监听端口, 怎样保证 DB Control 正常运行 1. 修改 listener.ora 和tnsnames.ora 这两个文件: tnsnames.ora 中需要加入: listener_1 = (ADDRESS = (PROTOCOL = TCP) (HOST = xxxx)(PORT = 新的端口)) 然后启动数据库: SQL> show parameter local_listener ; SQL> alter system set local_listener=’listener_1′ scope=spfile; 重启数据库使得修改生效 2. 修改 … Continue reading

Posted in Oracle | Tagged , | Leave a comment

oracle更改IP地址

oracle数据库更改IP地址后,发现无法连接。需要修改一下对应的文件: network/admin/listener.ora network/admin/tnsnames.ora 把其中对应的IP地址进行修改后再重新启动oracle就可以解决问题了。

Posted in Oracle | Tagged , , | Leave a comment

em中文乱码

在安装过程中也有乱码,不过可以使用LC_ALL=en_US ./runInstaller 来安装,但是em和isqlplus中文也都显示成方框,这个感觉比较烦。 服务器是debian testing(etch),locale是zh_CN.utf8 问题一直没有解决。在JRE 1.5下应该很好就能解决了,不过oracle自带的jre 1.4,而且好像有多个拷贝,最后也没有解决。(为何不用一个拷贝?为何不用系统的拷贝?) 参考: http://www.linuxsir.org/bbs/showthread.php?t=98591 http://bbs.linuxunion.net/showthread.php?p=281

Posted in Linux, Oracle | Tagged , , , | Leave a comment

debian testing上安装oracle 10g

安装10g express一直有问题,决定安装oracle 10g版本。 这个安装要比xe版复杂得多。 一、安装前的准备 1.硬件要求 Oracle建议内存为512MB或以上,至少1G交换分区,并且需要400MB的临时目录空间。 使用以下的命令查看你的内存和交换分区大小: # grep MemTotal /proc/meminfo # grep SwapTotal /proc/meminfo 你可以使用以下方法添加临时交换分区: su – root dd if=/dev/zero of=tmpswap bs=1k count=900000 chmod 600 tmpswap mkswap tmpswap swapon tmpswap 可以通过以下命令查看临时空间大小: #df /tmp 可以自己新建临时目录,安装完后再删除 #su – root #mkdir … Continue reading

Posted in Linux, Oracle | Tagged , | 2 Comments

修改oracle 10g的字符集

修改数据库字符集为:ZHS16GBK 查看服务器端字符集 SQL > select * from V$NLS_PARAMETERS 修改: $sqlplus /nolog SQL>conn / as sysdba; 若此时数据库服务器已启动,则先执行 SHUTDOWN IMMEDIATE 命 令关闭数据库服务器,然后执行以下命令: SQL>shutdown immediate; SQL>STARTUP MOUNT; SQL>ALTER SYSTEM ENABLE RESTRICTED SESSION; SQL>ALTER SYSTEM SET JOB_QUEUE_PROCESSES=0; SQL>ALTER SYSTEM SET AQ_TM_PROCESSES=0; SQL>ALTER DATABASE OPEN; … Continue reading

Posted in Oracle | Tagged , | 2 Comments

emctl无法启动

安装完以后,emctl无法启动,试验了多种办法也未解决,最后才发现是hostname的问题。 这台机器的hostname和hosts名称不一样,导致出现怪异的问题。 修改/etc/hostname,/etc/hosts,使二者一致。 修改$ORACLE_HOME/sysman/config/emd.properties,修正其中和hostname相关的部分。 修正network/admin/*.ora文件,注意hostname和port。(我用了1521 port) 重建数据库: emca -config dbcontrol db -repos recreate

Posted in Oracle | Tagged , , , | Leave a comment

dbstart无法启动

安装完成后一直有问题, su oracle dbstart 提示: “Failed to auto-start Oracle Net Listene using /ade/vikrkuma_new/oracle/bin/tnslsnr” 解决办法: To solve this problem please follow the steps. Step 1 Edit $ORACLE_HOME/bin/dbstart Step 2 Goto line 78 Step 3 Replace the line with ORACLE_HOME_LISTNER=$ORACLE_HOME Step 4 … Continue reading

Posted in Linux, Oracle | Tagged , , | Leave a comment

在debian上安装oracle 10g express

若是要安装oracle10G,可能要麻烦些,但若是安装oracle 10g express的话,那就很简单: 1、修改/etc/apt/source.list,添加oracle的源: deb http://oss.oracle.com/debian unstable main non-free 2、进行更新和安装 aptitude update aptitude install oracle-xe-universal 3、进行初始的密码设置 /etc/init.d/oracle-xe configure 若服务器无GUI,可以这样远程管理 ssh -L 8080:localhost:8080 user@IP_of_your_server firefox http://localhost:8080/apex/ 参考: https://help.ubuntu.com/community/Oracle10g

Posted in Linux, Oracle | Tagged , , , | 1 Comment

用批处理进行按星期的数据库备份

需要按星期进 @echo off echo ———– echo name: Oracle data export automata utility echo author: WANG Liangxu echo date: 2006-8-7 echo refined by NAN Zhuotong echo documented by NAN Zhuotong echo Any problem please contact us via wlx@mygis.org; nztong@lzb.ac.cn REM This … Continue reading

Posted in Computer | Tagged , , , | Leave a comment