摘要:1.SQL> select ASCII('a'),ASCII('A'),CHR(97) from dual; --ASCLL(x)返回x的ASCLL码,CHR(x)返回ASCLL码为x的字符ASCII('A') ASCII('A') CHR(97)---------- ---------- ----...
阅读全文
摘要:常用编辑命令:A[ppend] text 将text附加到当前行之后C[hange] /old /new 将当前行中的old替换为newCLear] buff[er] 清除缓冲区中的所有行DEL 删除当前行DEL x 删除第x行L[ist...
阅读全文
摘要:SQL*PLUS 是Oracle提供的一个工具程序,它不仅可以用于测试,运行SQL语句和PL/SQL块,而且还可以用于管理Oracle数据库1.启动sql*plus为了使用sql*plus,必须首先要启动sql*plus。Oracle不仅提供了命令行和图形界面的sql*plus,而且还可以在web浏...
阅读全文
摘要:在ORACLE9i之前,oracle语法基础是SQL/86标准,9i及之后的版本中支持SQL/92标准。基表信息:products、purchases和product_typesSQL> select * from products;PRODUCT_ID PRODUCT_TYPE_ID NAME ...
阅读全文
摘要:1) Open the file..\sqldeveloper\sqldeveloper\bin\sqldeveloper.conf and add the following line to set jdk path:SetJavaHome C:\Program Files\Oracle\11g\...
阅读全文
摘要:问题描述:虚拟机信息:VMware-workstation 10安装RHEL5.8操作系统、hostname:rhel201.com IP:192.168.1.201 物理机系统:windows 7主机名:rusky-PC IP: 192.168.1.123两者能够互相ping通对方的IP...
阅读全文
摘要:日志:Apr 4, 2015 10:08:09 PM oracle.sysman.emcp.EMReposConfig createRepositoryCONFIG: ORA-20001: SYSMAN already exists..ORA-06512: at line 17oracle.sysm...
阅读全文
摘要:1、安装环境[root@rusky-oracle11g ~]# uname -r2.6.18-308.el5[root@rusky-oracle11g ~]# cat /etc/issueRed Hat Enterprise Linux Server release 5.8 (Tikanga)Ker
阅读全文
摘要:说明:监听程序配置及启动正常。实例运行正常,远程或是本地sqlplus连接实例也正常。主机名显示正常,与主机名相关三个配置文件也没问题。emca报错:[oracle@rusky-oracle11g admin]$ emca -config dbcontrol dbSTARTED EMCA at Ap...
阅读全文
摘要:安装Oracle11g内核参数semopm未校验通过,点击Fix&Check Again后,会提示执行修改脚本,在/tmp/CVU_11.2.0.1.0_oracle下,找到并执行该脚本runfixup.sh后。检验通过。
阅读全文
摘要:第一种# cd /u01/app/oracle/product/11.2.0/client_1/deinstall/# ./deinstall# rm -rf /u01/app/oracle# rm -rf /etc/oratab# rm -rf /etc/oraInst.loc第二种1. 运行 $...
阅读全文
摘要:启动监听程序报错:说明:在rhel5.8上安装完成oracle11g数据库后,使用netca创建完监听,启动监听时报错。还未使用dbca创建实例。[oracle@rusky-oracle11g ~]$ lsnrctl startLSNRCTL for Linux: Version 11.2.0.1....
阅读全文
摘要:安装oracle时候在创建oracle用户后,切换oracle用户时,报如下错[root@localhost ~]# su - oracle-bash: ulimit: max user processes: cannot modify limit: Operation not permitted经...
阅读全文
摘要:Oracle关于日志文件基本操作1.查询系统使用的是哪一组日志文件:select * from v$log;2.查询正在使用的组所对应的日志文件:select * from v$logfile;3.强制日志切换:alter system switch logfile;4.查询历史日志:select ...
阅读全文
摘要:1、数据库启动报错SQL> startupORACLE 例程已经启动。Total System Global Area 1887350784 bytesFixed Size 2176848 bytesVariable Size 13254022...
阅读全文
摘要:To restore the database on a new host:1. Ensure that the backups of the target database are accessible on the new host.2. Configure the ORACLE_SID on ...
阅读全文
摘要:Performing a full database disaster recovery with RMAN1. Make the RMAN backup set pieces available.2. Restore the database spfile from autobackups. --...
阅读全文
摘要:About Recovery with a Backup Control FileIf all copies of the current control file are lost or damaged, then you must restore and mount a backup contr...
阅读全文
摘要:oracle官方文档提示:If you had specified DELETE INPUT rather than DELETE ALL INPUT, then RMAN would have only deleted the specific archived redo log files th...
阅读全文
摘要:关于resetlog的作用是将日志序列重置,这样以前的归档就作废。首先一定要明白oracle工作的基本原理,归档情况下:大家一定要同步,谁也不能滞后或者超前,也就是SCN号,如果学oracle不懂scn的作用,那oracle就很难学懂了。为什么要resetlog,因为有一些地方不一致了,必须得需要着...
阅读全文