易截截图软件、单文件、免安装、纯绿色、仅160KB
热门标签: c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 最新文章 : Oracle

对oracle数据库中的数据表进行备份


public ActionForward backUpAction(ActionMapping mapping, ActionForm form,   
            HttpServletRequest request, HttpServletResponse response)   
            throws Exception {   
       
           Calendar cDay = Calendar.getInstance();   
           SimpleDateFormat myf = new SimpleDateFormat("yyyyMMddHHmmss");   
           String day = myf.format(cDay.getTime());   
           // 获得Constant中定义的数据库备份文件存放路径,格式如:    ......

iis7 asp ado oracle 乱码问题

环境:数据库 oracle 64bit 系统 win2008 64bit IIS7 在asp 网页中使用ado连接数据库 ODBC用的是Microsft ODBC for oracle
情况:在网页的查询语句中不含中文的可以,只要语句中含有中文就会返回错误结果。
如:select '一二三' from dual;这样的语句 返回回来就是???
还要说明的是oracle的字符集是AMERICAN_AMERICA.US7ASCII的,那么这个呢就需要在客户端也设置注册表的nls_lang键值为AMERICAN_AMERICA.US7ASCII并且还一定要用microsoft odbc for oracle驱动。否则就乱码。
开始以为是64位系统下驱动的事,试了半天没有效果,因为网站在32位系统下完全没有问题,最后没办法就挨着看IIS7
的设置最后发现“可以新建个32位的应用程序池
”这样就能解决问题了。哈哈,记录下来。
”32位的应用程序池“以后可能还会用的到。 ......

iis7 asp ado oracle 乱码问题

环境:数据库 oracle 64bit 系统 win2008 64bit IIS7 在asp 网页中使用ado连接数据库 ODBC用的是Microsft ODBC for oracle
情况:在网页的查询语句中不含中文的可以,只要语句中含有中文就会返回错误结果。
如:select '一二三' from dual;这样的语句 返回回来就是???
还要说明的是oracle的字符集是AMERICAN_AMERICA.US7ASCII的,那么这个呢就需要在客户端也设置注册表的nls_lang键值为AMERICAN_AMERICA.US7ASCII并且还一定要用microsoft odbc for oracle驱动。否则就乱码。
开始以为是64位系统下驱动的事,试了半天没有效果,因为网站在32位系统下完全没有问题,最后没办法就挨着看IIS7
的设置最后发现“可以新建个32位的应用程序池
”这样就能解决问题了。哈哈,记录下来。
”32位的应用程序池“以后可能还会用的到。 ......

oracle for linux安装

折腾了两个晚上的linux和oralce,总算出来点东西了。Oralce安装要选用适用的版本,不然安装不会成功,最后我的决定是linux选用centos 5.0,oracle选用10。
一、        准备工作:
1.       使用root用户登录
我使用的是在本机装,所以直接打开终端就好了,如果是远程安装,xhost +
[xhost 是用来控制X server访问权限的。通常我们登录到oracle服务器,作为应用程序来说,登录用的一端称为客户端没,但是作为图形来说,是在显示的一端显示的,需要使用登录一端的Xserver,所以登录端是server,所以在登录到服务器之前,需要在登录端运行Xhost+来使其用户能够访问host的Xserver, xhost+ 使所有用户都能访问Xserver,; xhost+ ip该IP上的用户都能访问;xhost + nis:user@domain使domain上的nis用户user能够访问;xhost + inet:user@domain使domain上的inet用户能够访问;-表示删除]
telnet host,su;
2.       检查硬件环境
l             至少512MB的内存;
确认物理内存cmd:# grep MemTotal /proc/m ......

oracle for linux安装

折腾了两个晚上的linux和oralce,总算出来点东西了。Oralce安装要选用适用的版本,不然安装不会成功,最后我的决定是linux选用centos 5.0,oracle选用10。
一、        准备工作:
1.       使用root用户登录
我使用的是在本机装,所以直接打开终端就好了,如果是远程安装,xhost +
[xhost 是用来控制X server访问权限的。通常我们登录到oracle服务器,作为应用程序来说,登录用的一端称为客户端没,但是作为图形来说,是在显示的一端显示的,需要使用登录一端的Xserver,所以登录端是server,所以在登录到服务器之前,需要在登录端运行Xhost+来使其用户能够访问host的Xserver, xhost+ 使所有用户都能访问Xserver,; xhost+ ip该IP上的用户都能访问;xhost + nis:user@domain使domain上的nis用户user能够访问;xhost + inet:user@domain使domain上的inet用户能够访问;-表示删除]
telnet host,su;
2.       检查硬件环境
l             至少512MB的内存;
确认物理内存cmd:# grep MemTotal /proc/m ......

Linux下Oracle重启和修改连接数

一、启动
 
1.#su - oracle              切换到oracle用户且切换到它的环境
2.$lsnrctl status           查看监听及数据库状态
3.$lsnrctl start            启动监听
4.$sqlplus / as sysdba       进入sqlplus
5.SQL>conn / as sysdba   以DBA身份登录
6.SQL>startup                启动db
                                        
二、停止
1.#su - oracle              切换到oracle用户且切换到它的环境
2.$lsnrctl stop    &nbs ......

Linux下Oracle重启和修改连接数

一、启动
 
1.#su - oracle              切换到oracle用户且切换到它的环境
2.$lsnrctl status           查看监听及数据库状态
3.$lsnrctl start            启动监听
4.$sqlplus / as sysdba       进入sqlplus
5.SQL>conn / as sysdba   以DBA身份登录
6.SQL>startup                启动db
                                        
二、停止
1.#su - oracle              切换到oracle用户且切换到它的环境
2.$lsnrctl stop    &nbs ......

Oracle 10g RAC On Linux Using NFS

http://inthirties.com:90/thread-918-3-1.html
This article describes the installation of
Oracle 10g release 2 (10.2.0.1) RAC on Linux (Oracle Enterprise Linux
4.5) using NFS to provide the shared storage.
Introduction
Download Software
Operating System Installation
Oracle Installation Prerequisites
Create Shared Disks
Install the Clusterware Software
Install the Database Software
Create a Database using the DBCA
TNS Configuration
Check the Status of the RAC
Direct and Asynchronous I/O
IntroductionNFS is an abbreviation of Network File System, a
platform independent technology created by Sun Microsystems that allows
shared access to files stored on computers via an interface called the
Virtual File System (VFS) that runs on top of TCP/IP. Computers that
share files are considered NFS servers, while those that access shared
files are considered NFS clients. An individual computer can be either
an NFS server, a NFS client or both.
We can use NFS to provide sha ......

Oracle 10g RAC On Linux Using NFS

http://inthirties.com:90/thread-918-3-1.html
This article describes the installation of
Oracle 10g release 2 (10.2.0.1) RAC on Linux (Oracle Enterprise Linux
4.5) using NFS to provide the shared storage.
Introduction
Download Software
Operating System Installation
Oracle Installation Prerequisites
Create Shared Disks
Install the Clusterware Software
Install the Database Software
Create a Database using the DBCA
TNS Configuration
Check the Status of the RAC
Direct and Asynchronous I/O
IntroductionNFS is an abbreviation of Network File System, a
platform independent technology created by Sun Microsystems that allows
shared access to files stored on computers via an interface called the
Virtual File System (VFS) that runs on top of TCP/IP. Computers that
share files are considered NFS servers, while those that access shared
files are considered NFS clients. An individual computer can be either
an NFS server, a NFS client or both.
We can use NFS to provide sha ......

SQLServer和Oracle的常用函数对比

SQLServer和Oracle的常用函数对比
 
1.绝对值
S:select abs(-1) value
O:select abs(-1) value from dual
 
2.取整(大)
S:select ceiling(-1.001) value
O:select ceil(-1.001) value from dual
 
3.取整(小)
S:select floor(-1.001) value
O:select floor(-1.001) value from dual
 
4.取整(截取)
S:select cast(-1.002 as int) value
O:select trunc(-1.002) value from dual
 
5.四舍五入
S:select round(1.23456,4) value 1.23460
O:select round(1.23456,4) value from dual 1.2346
 
6.e为底的幂
S:select Exp(1) value 2.7182818284590451
O:select Exp(1) value from dual 2.71828182
 
7.取e为底的对数
S:select log(2.7182818284590451) value 1
O:select ln(2.7182818284590451) value from dual; 1
 
8.取10为底对数
S:select log10(10) value 1
O:select log(10,10) value from dual; 1
 
9.取平方
S:select SQUARE(4) value 16
O:select power(4,2) value from dual 16
 
10.取平方根
S:select SQRT(4) value 2
O:select SQRT(4 ......

SQLServer和Oracle的常用函数对比

SQLServer和Oracle的常用函数对比
 
1.绝对值
S:select abs(-1) value
O:select abs(-1) value from dual
 
2.取整(大)
S:select ceiling(-1.001) value
O:select ceil(-1.001) value from dual
 
3.取整(小)
S:select floor(-1.001) value
O:select floor(-1.001) value from dual
 
4.取整(截取)
S:select cast(-1.002 as int) value
O:select trunc(-1.002) value from dual
 
5.四舍五入
S:select round(1.23456,4) value 1.23460
O:select round(1.23456,4) value from dual 1.2346
 
6.e为底的幂
S:select Exp(1) value 2.7182818284590451
O:select Exp(1) value from dual 2.71828182
 
7.取e为底的对数
S:select log(2.7182818284590451) value 1
O:select ln(2.7182818284590451) value from dual; 1
 
8.取10为底对数
S:select log10(10) value 1
O:select log(10,10) value from dual; 1
 
9.取平方
S:select SQUARE(4) value 16
O:select power(4,2) value from dual 16
 
10.取平方根
S:select SQRT(4) value 2
O:select SQRT(4 ......
总记录数:3994; 总页数:666; 每页6 条; 首页 上一页 [170] [171] [172] [173] 174 [175] [176] [177] [178] [179]  下一页 尾页
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号