<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>LiangXu Wang &#187; Oracle</title>
	<atom:link href="http://wlx.westgis.ac.cn/tag/oracle/feed/" rel="self" type="application/rss+xml" />
	<link>http://wlx.westgis.ac.cn</link>
	<description>technology backup/share</description>
	<lastBuildDate>Sat, 14 Jan 2012 03:56:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>更改oracle的监听端口</title>
		<link>http://wlx.westgis.ac.cn/403/</link>
		<comments>http://wlx.westgis.ac.cn/403/#comments</comments>
		<pubDate>Mon, 30 Jul 2007 14:01:01 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[port]]></category>

		<guid isPermaLink="false">http://wlx.westgis.ac.cn/403/</guid>
		<description><![CDATA[参考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=&#8217;listener_1&#8242; scope=spfile; 重启数据库使得修改生效 2. 修改 &#8230; <a href="http://wlx.westgis.ac.cn/403/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>参考http://www.wangwa.com/info/2006-09/32453.htm</p>
<blockquote><p>三、修改了监听端口, 怎样保证 DB Control 正常运行<br />
1. 修改 listener.ora 和tnsnames.ora 这两个文件:<br />
tnsnames.ora 中需要加入:</p>
<p>listener_1 =<br />
(ADDRESS = (PROTOCOL = TCP)<br />
(HOST = xxxx)(PORT = 新的端口))</p>
<p>然后启动数据库:</p>
<p>SQL> show parameter local_listener ;<br />
SQL> alter system set local_listener=&#8217;listener_1&#8242; scope=spfile;</p>
<p>重启数据库使得修改生效</p>
<p>2. 修改 $ORACLE_HOME\hostname_sid\sysman\config<br />
下的emoms.properties文件:</p>
<p>oracle.sysman.eml.mntr.emdRepPort=新的端口<br />
oracle.sysman.eml.mntr.emdRepConnectDescriptor =(DESCRIPTION\=(ADDRESS_LIST\=(ADDRESS\=(PROTOCOL\=TCP)(HOST\=xxx)(PORT\= 新的端口)))(CONNECT_DATA\=(SERVICE_NAME\=xxx)))</p>
<p>3. 最后，还要修改 $ORACLE_HOME\hostname_sid\sysman\emd<br />
下的targets.xml:</p>
<p><Property NAME="Port" VALUE="新的端口"/></p>
<p>4. 重新启动监听器和dbconsole 服务.</p>
<p>5. 如果嫌上面的操作麻烦，可以用emca这个命令行工具:<br />
emca -h 查看所有可用的命令<br />
emca -r 跳过资料档案库的创建.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/403/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>oracle更改IP地址</title>
		<link>http://wlx.westgis.ac.cn/354/</link>
		<comments>http://wlx.westgis.ac.cn/354/#comments</comments>
		<pubDate>Sun, 15 Apr 2007 07:21:43 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[geodata]]></category>
		<category><![CDATA[ip]]></category>

		<guid isPermaLink="false">http://wlx.westgis.ac.cn/354/</guid>
		<description><![CDATA[oracle数据库更改IP地址后，发现无法连接。需要修改一下对应的文件： network/admin/listener.ora network/admin/tnsnames.ora 把其中对应的IP地址进行修改后再重新启动oracle就可以解决问题了。]]></description>
			<content:encoded><![CDATA[<p>oracle数据库更改IP地址后，发现无法连接。需要修改一下对应的文件：<br />
network/admin/listener.ora<br />
network/admin/tnsnames.ora<br />
把其中对应的IP地址进行修改后再重新启动oracle就可以解决问题了。</p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/354/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>em中文乱码</title>
		<link>http://wlx.westgis.ac.cn/264/</link>
		<comments>http://wlx.westgis.ac.cn/264/#comments</comments>
		<pubDate>Thu, 14 Dec 2006 07:33:31 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[chinese]]></category>
		<category><![CDATA[em]]></category>
		<category><![CDATA[乱码]]></category>

		<guid isPermaLink="false">http://wlx.westgis.ac.cn/264/</guid>
		<description><![CDATA[在安装过程中也有乱码，不过可以使用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]]></description>
			<content:encoded><![CDATA[<p>在安装过程中也有乱码，不过可以使用LC_ALL=en_US ./runInstaller 来安装，但是em和isqlplus中文也都显示成方框，这个感觉比较烦。<br />
服务器是debian testing(etch)，locale是zh_CN.utf8<br />
问题一直没有解决。在JRE 1.5下应该很好就能解决了，不过oracle自带的jre 1.4，而且好像有多个拷贝，最后也没有解决。（为何不用一个拷贝？为何不用系统的拷贝？）<br />
参考：</p>
<p>http://www.linuxsir.org/bbs/showthread.php?t=98591</p>
<p>http://bbs.linuxunion.net/showthread.php?p=281</p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/264/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>debian testing上安装oracle 10g</title>
		<link>http://wlx.westgis.ac.cn/261/</link>
		<comments>http://wlx.westgis.ac.cn/261/#comments</comments>
		<pubDate>Mon, 16 Oct 2006 09:31:38 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[debian]]></category>

		<guid isPermaLink="false">http://wlxblog.westgis.ac.cn/261/</guid>
		<description><![CDATA[安装10g express一直有问题，决定安装oracle 10g版本。 这个安装要比xe版复杂得多。 一、安装前的准备 1.硬件要求 Oracle建议内存为512MB或以上,至少1G交换分区，并且需要400MB的临时目录空间。 使用以下的命令查看你的内存和交换分区大小： # grep MemTotal /proc/meminfo # grep SwapTotal /proc/meminfo 你可以使用以下方法添加临时交换分区： su &#8211; root dd if=/dev/zero of=tmpswap bs=1k count=900000 chmod 600 tmpswap mkswap tmpswap swapon tmpswap 可以通过以下命令查看临时空间大小： #df /tmp 可以自己新建临时目录，安装完后再删除 #su &#8211; root #mkdir &#8230; <a href="http://wlx.westgis.ac.cn/261/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>安装10g express一直有问题，决定安装oracle 10g版本。<br />
这个安装要比xe版复杂得多。</p>
<p>一、安装前的准备</p>
<p>1.硬件要求</p>
<p>Oracle建议内存为512MB或以上,至少1G交换分区，并且需要400MB的临时目录空间。<br />
使用以下的命令查看你的内存和交换分区大小：</p>
<p># grep MemTotal /proc/meminfo<br />
# grep SwapTotal /proc/meminfo</p>
<p>你可以使用以下方法添加临时交换分区：</p>
<p>su &#8211; root<br />
dd if=/dev/zero of=tmpswap bs=1k count=900000<br />
chmod 600 tmpswap<br />
mkswap tmpswap<br />
swapon tmpswap</p>
<p>可以通过以下命令查看临时空间大小：</p>
<p>#df /tmp</p>
<p>可以自己新建临时目录，安装完后再删除</p>
<p>#su &#8211; root<br />
#mkdir /opt/tmp<br />
#chown root.root /opt/tmp/<br />
# chmod 1777 /opt/tmp<br />
# echo TEMP<br />
# export TEMP=/opt/tmp<br />
# export TEMPDIR=/opt/tmp</p>
<p>对硬盘空间大小的限制，建议预留3G空间。</p>
<p>2.系统参数调整</p>
<p>修改/etc/sysctl.conf，添加</p>
<p>＃我的机器只有1G内存<br />
kernel.shmmax = 1073741824<br />
kernel.shmmni = 4096<br />
kernel.sem = 250 32000 100 128<br />
fs.file-max = 65536<br />
net.ipv4.ip_local_port_range = 1024 65000</p>
<p>执行<br />
#/sbin/sysctl -p</p>
<p>设置shell限制,在/etc/security/limits.conf添加<br />
oracle soft nproc 2047<br />
oracle hard nproc 16384<br />
oracle soft nofile 1024<br />
oracle hard nofile 65536</p>
<p>修改login设置，修改 /etc/pam.d/login，添加<br />
session required /lib/security/pam_limits.so</p>
<p>在/etc/profile中添加以下语句：</p>
<p>if [ $USER = "oracle" ]; then<br />
if [ $SHELL = "/bin/ksh" ]; then<br />
ulimit -p 16384<br />
ulimit -n 65536<br />
else<br />
ulimit -u 16384 -n 65536<br />
fi<br />
fi</p>
<p>3、安装设置</p>
<p>确保你已经安装了下列软件</p>
<p>sudo apt-get install gcc make binutils lesstif2 libc6 libc6-dev rpm libmotif3 libaio1 libstdc++5 gawk<br />
确保你的系统中有以下组和用户，方法：</p>
<p>#grep dba /etc/group<br />
#grep oinstall /etc/group<br />
#grep nobody /etc/group</p>
<p>#id oracle<br />
#id nobody</p>
<p>切换到root，添加oralce帐户</p>
<p>#su &#8211; root<br />
#groupadd dba # group of users to be granted SYSDBA system privilege<br />
#groupadd oinstall # group owner of Oracle files<br />
#useradd -c “Oracle software owner” -g oinstall -G dba -d /opt/oracle oracle<br />
#passwd oracle<br />
输入oracle密码</p>
<p>debian中需要额外的添加nobody用户组：<br />
#groupadd nobody<br />
系统nogroup组中已经有nobody用户，把nobody用户添加到新建的nobody组中，<br />
#usermod -G nobody nobody</p>
<p>建立oracle目录<br />
#su root<br />
#mkdir /opt/oracle<br />
#chown -R oralce.oinstall /opt/oracle<br />
mkdir -p /u01/app<br />
chown -R  oracle.oinstall /u01/app<br />
debian需要额外的做以下操作：<br />
# ln -s /usr/bin/awk /bin/awk<br />
# ln -s /usr/bin/rpm /bin/rpm<br />
# ln -s /usr/bin/basename /bin/basename<br />
# ln -s /etc /etc/rc.d</p>
<p>模拟redhat-3进行安装，新建一个文件/etc/redhat-release,写入以下内容：<br />
Red Hat Enterprise Linux AS release 3 (Taroon)</p>
<p>二、开始安装</p>
<p>你可以从http://mirrors.cn99.com上下载oracle 10g,按以下方法进行解压：<br />
su &#8211; oracle<br />
wget http://mirrors.cn99.com/oracle/10g/10201_database_linux32.zip<br />
unzip 10210_database_linux32.zip<br />
若是远程连接到服务器，则需要这样操作：<br />
ssh -X oracle@your_server_ip<br />
export ORACLE_BASE=/u01/app<br />
export ORACLE_SID=orcl #你可以自己命名sid<br />
#确保此时环境中没有ORACLE_HOME 和TNS_ADMIN<br />
$ unset ORACLE_HOME<br />
$ unset TNS_ADMIN</p>
<p>可以将这些写进.bash_profile<br />
export ORACLE_BASE=/opt/oracle<br />
export ORACLE_SID=oralin<br />
unset ORACLE_HOME<br />
unset TNS_ADMIN</p>
<p>umask 022</p>
<p>执行<br />
cd database<br />
LC_ALL=en_US ./runInstaller</p>
<p>三、安装后</p>
<p>oracle启动脚本/etc/init.d/oracle</p>
<p>su<br />
nano /etc/init.d/oracle</p>
<blockquote><p><code>#!/bin/bash<br />
#<br />
# /etc/init.d/oracledb<br />
#<br />
# Run-level Startup script for the Oracle Instance, Listener, and<br />
# Web Interface</p>
<p>export ORACLE_HOME=/u01/app/oracle/oracle/product/10.2.0/db_1/<br />
export ORACLE_SID=orcl<br />
export PATH=$PATH:$ORACLE_HOME/bin</p>
<p>ORA_OWNR="oracle"</p>
<p># if the executables do not exist -- display error</p>
<p>if [ ! -f $ORACLE_HOME/bin/dbstart -o ! -d $ORACLE_HOME ]<br />
then<br />
        echo "Oracle startup: cannot start"<br />
        exit 1<br />
fi</p>
<p># depending on parameter -- startup, shutdown, restart<br />
# of the instance and listener or usage display</p>
<p>case "$1" in<br />
    start)<br />
        # Oracle listener and instance startup<br />
        echo -n "Starting Oracle: "<br />
        su $ORA_OWNR -c "$ORACLE_HOME/bin/lsnrctl start"<br />
        su $ORA_OWNR -c $ORACLE_HOME/bin/dbstart<br />
        touch /var/lock/oracle</p>
<p>        su $ORA_OWNR -c "$ORACLE_HOME/bin/emctl start dbconsole"<br />
        su $ORA_OWNR -c "$ORACLE_HOME/bin/isqlplusctl start"<br />
        echo "OK"<br />
        ;;<br />
    stop)<br />
        # Oracle listener and instance shutdown<br />
        echo -n "Shutdown Oracle: "<br />
        su  - $ORA_OWNR -c "$ORACLE_HOME/bin/isqlplusctl stop"<br />
        su  - $ORA_OWNR -c "$ORACLE_HOME/bin/emctl stop dbconsole"<br />
        su  - $ORA_OWNR -c "$ORACLE_HOME/bin/lsnrctl stop"<br />
        su  - $ORA_OWNR -c $ORACLE_HOME/bin/dbshut<br />
        rm -f /var/lock/oracle</p>
<p>        echo "OK"<br />
        ;;<br />
    reload|restart)<br />
        $0 stop<br />
        $0 start<br />
        ;;<br />
    *)<br />
        echo "Usage: `basename $0` start|stop|restart|reload"<br />
        exit 1<br />
esac<br />
exit 0</code></p></blockquote>
<p>chmod 755 /etc/init.d/oracledb<br />
update-rc.d oracledb defaults 99</p>
<p>可以通过/etc/init.d/oracle start来启动oracle.</p>
<p>参考：<br />
1 http://sysop.com.cn/system5504,1.html<br />
2 https://help.ubuntu.com/community/Oracle10g<br />
3 http://mirrors.cn99.com/oracle/10g/</p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/261/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>修改oracle 10g的字符集</title>
		<link>http://wlx.westgis.ac.cn/270/</link>
		<comments>http://wlx.westgis.ac.cn/270/#comments</comments>
		<pubDate>Mon, 16 Oct 2006 07:55:16 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[charset]]></category>

		<guid isPermaLink="false">http://wlxblog.westgis.ac.cn/270/</guid>
		<description><![CDATA[修改数据库字符集为：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; &#8230; <a href="http://wlx.westgis.ac.cn/270/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>修改数据库字符集为：ZHS16GBK<br />
查看服务器端字符集<br />
  SQL > select * from V$NLS_PARAMETERS<br />
修改：<br />
  $sqlplus /nolog<br />
  SQL>conn / as sysdba;<br />
  若此时数据库服务器已启动，则先执行 SHUTDOWN  IMMEDIATE 命<br />
  令关闭数据库服务器，然后执行以下命令:<br />
  SQL>shutdown immediate;<br />
  SQL>STARTUP MOUNT;<br />
  SQL>ALTER SYSTEM ENABLE RESTRICTED SESSION;<br />
  SQL>ALTER SYSTEM SET JOB_QUEUE_PROCESSES=0;<br />
  SQL>ALTER SYSTEM SET AQ_TM_PROCESSES=0;<br />
  SQL>ALTER DATABASE OPEN;<br />
  SQL>ALTER DATABASE CHARACTER SET ZHS16GBK;<br />
*<br />
ERROR at line 1:<br />
ORA-12721: operation cannot execute when other sessions are active<br />
若出现上面的错误，使用下面的办法进行修改，使用INTERNAL_USE可以跳过超集的检查：<br />
  SQL>ALTER DATABASE  CHARACTER SET INTERNAL_USE ZHS16GBK;<br />
SQL>SHUTDOWN IMMEDIATE;<br />
SQL>STARTUP </p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/270/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>emctl无法启动</title>
		<link>http://wlx.westgis.ac.cn/263/</link>
		<comments>http://wlx.westgis.ac.cn/263/#comments</comments>
		<pubDate>Tue, 10 Oct 2006 17:30:23 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[emctl]]></category>
		<category><![CDATA[hostname]]></category>
		<category><![CDATA[hosts]]></category>

		<guid isPermaLink="false">http://wlxblog.westgis.ac.cn/263/</guid>
		<description><![CDATA[安装完以后，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]]></description>
			<content:encoded><![CDATA[<p>安装完以后，emctl无法启动，试验了多种办法也未解决，最后才发现是hostname的问题。<br />
这台机器的hostname和hosts名称不一样，导致出现怪异的问题。<br />
修改/etc/hostname，/etc/hosts，使二者一致。<br />
修改$ORACLE_HOME/sysman/config/emd.properties，修正其中和hostname相关的部分。<br />
修正network/admin/*.ora文件，注意hostname和port。（我用了1521 port）<br />
重建数据库：<br />
emca -config dbcontrol db -repos recreate</p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/263/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>dbstart无法启动</title>
		<link>http://wlx.westgis.ac.cn/262/</link>
		<comments>http://wlx.westgis.ac.cn/262/#comments</comments>
		<pubDate>Tue, 10 Oct 2006 13:43:02 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[dbstart]]></category>
		<category><![CDATA[debian]]></category>

		<guid isPermaLink="false">http://wlxblog.westgis.ac.cn/262/</guid>
		<description><![CDATA[安装完成后一直有问题， 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 &#8230; <a href="http://wlx.westgis.ac.cn/262/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>安装完成后一直有问题，<br />
su oracle<br />
dbstart<br />
提示：<br />
“Failed to auto-start Oracle Net Listene using /ade/vikrkuma_new/oracle/bin/tnslsnr”<br />
解决办法：</p>
<blockquote><p>To solve this problem please follow the steps.</p>
<p>Step 1 Edit $ORACLE_HOME/bin/dbstart<br />
Step 2 Goto line 78<br />
Step 3 Replace the line with<br />
ORACLE_HOME_LISTNER=$ORACLE_HOME<br />
Step 4 Save and exit the editor.<br />
Step 5 Now reexecute the dbstart </p></blockquote>
<p>见：http://forums.oracle.com/forums/thread.jspa?messageID=1094708&#1094708</p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/262/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在debian上安装oracle 10g express</title>
		<link>http://wlx.westgis.ac.cn/260/</link>
		<comments>http://wlx.westgis.ac.cn/260/#comments</comments>
		<pubDate>Mon, 02 Oct 2006 00:54:20 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[10g]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[express]]></category>

		<guid isPermaLink="false">http://wlxblog.westgis.ac.cn/260/</guid>
		<description><![CDATA[若是要安装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]]></description>
			<content:encoded><![CDATA[<p>若是要安装oracle10G，可能要麻烦些，但若是安装oracle 10g express的话，那就很简单：<br />
1、修改/etc/apt/source.list，添加oracle的源：<br />
deb http://oss.oracle.com/debian unstable main non-free<br />
2、进行更新和安装<br />
aptitude update<br />
aptitude install oracle-xe-universal<br />
3、进行初始的密码设置<br />
/etc/init.d/oracle-xe configure<br />
若服务器无GUI，可以这样远程管理<br />
ssh -L 8080:localhost:8080 user@IP_of_your_server<br />
firefox http://localhost:8080/apex/</p>
<p>参考：</p>
<p>https://help.ubuntu.com/community/Oracle10g</p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/260/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>用批处理进行按星期的数据库备份</title>
		<link>http://wlx.westgis.ac.cn/212/</link>
		<comments>http://wlx.westgis.ac.cn/212/#comments</comments>
		<pubDate>Mon, 07 Aug 2006 06:19:13 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[bat]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://wlxblog.westgis.ac.cn/212/</guid>
		<description><![CDATA[需要按星期进 @echo off echo &#8212;&#8212;&#8212;&#8211; 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 &#8230; <a href="http://wlx.westgis.ac.cn/212/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>需要按星期进</p>
<blockquote><p>@echo off<br />
echo &#8212;&#8212;&#8212;&#8211;<br />
echo name: Oracle data export automata utility<br />
echo author: WANG Liangxu<br />
echo date: 2006-8-7<br />
echo refined by NAN Zhuotong<br />
echo documented by NAN Zhuotong<br />
echo Any problem please contact us via wlx@mygis.org; nztong@lzb.ac.cn</p>
<p>REM This program is used to export data in Oracle to external files named with current date.<br />
REM A simple export schema is employed. Monday the data will be completely exported.<br />
REM Tuesday through Thursday data will be exported in an incremental manner.<br />
REM Friday, data exported include all the incremental data since the last completed export.<br />
REM Saturday and Sunday incremental export will be employed once more.</p>
<p>REM This program can be used together with Windows plan and task utility. In that way,<br />
REM the program can be enhanced with running by schedule.</p>
<p>echo &#8212;&#8212;&#8212;&#8211;<br />
set w=%date:~13,1%<br />
set d=%date:~0,4%%date:~5,2%%date:~8,2%<br />
rem echo %d%<br />
if %w%==一 goto 1<br />
if %w%==二 goto 2<br />
if %w%==三 goto 3<br />
if %w%==四 goto 4<br />
if %w%==五 goto 5<br />
if %w%==六 goto 6<br />
if %w%==日 goto 7</p>
<p>REM exp system/systemwestdc inctype=complete file=d:/ORADB-BACKUP/20060807.dmp (complete)<br />
REM exp system/systemwestdc inctype=incremental file=d:/ORADB-BACKUP/2006xxxx.dmp<br />
REM exp system/systemwestdc inctype=cumulative file=d:/ORADB-BACKUP/2006xxxx.dmp<br />
REM Mon： 完全备份（A）<br />
REM Tue： 增量导出（B）<br />
REM Wed： 增量导出（C）<br />
REM Thu： 增量导出（D）<br />
REM Fri： 累计导出（E）<br />
REM Sat： 增量导出（F）<br />
REM Sun： 增量导出（G）</p>
<p>:1<br />
 echo Begin exporting data to file %d%-compl.dmp<br />
 exp system/systemwestdc inctype=complete file=d:/ORADB-BACKUP/%d%-compl.dmp<br />
 goto end<br />
:2<br />
 echo Begin exporting data to file %d%-incre.dmp<br />
 exp system/systemwestdc inctype=incremental file=d:/ORADB-BACKUP/%d%-incre.dmp<br />
 goto end<br />
:3<br />
 echo Begin exporting data to file %d%-incre.dmp<br />
 exp system/systemwestdc inctype=incremental file=d:/ORADB-BACKUP/%d%-incre.dmp<br />
 goto end<br />
:4<br />
 echo Begin exporting data to file %d%-incre.dmp<br />
 exp system/systemwestdc inctype=incremental file=d:/ORADB-BACKUP/%d%-incre.dmp<br />
 goto end<br />
:5<br />
 echo Begin exporting data to file %d%-cumul.dmp<br />
 exp system/systemwestdc inctype=cumulative file=d:/ORADB-BACKUP/%d%-cumul.dmp<br />
 goto end<br />
:6<br />
 echo Begin exporting data to file %d%-incre.dmp<br />
 exp system/systemwestdc inctype=incremental file=d:/ORADB-BACKUP/%d%-incre.dmp<br />
 goto end<br />
:7<br />
 echo Begin exporting data to file %d%-incre.dmp<br />
 exp system/systemwestdc inctype=incremental file=d:/ORADB-BACKUP/%d%-incre.dmp<br />
 goto end<br />
:end</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/212/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

