oracle query output in excel file
Code:SQL> spool emp.xlsSQL> select empno||chr(9)||ename||chr(9)||job||chr(9)||mgr from emp;SQL> spool offCode:SET MARKUP HTML ON ENTMAP ON SPOOL ON PREFORMAT OFF ;SPOOL MY_TEST_FILE.xls;SELE...
How to use sql result stored on shell variable?
I know now how to store the result of sql procédure in shell variabletestvar=$(sqlplus foo/bar @test.sql)my test.sql return a list of integer that i would use in another s...
Oracle Shell Scripting
This article presents some basic techniques for creating Windows batch files and UNIX/Linux shell scripts that connect to SQL*Plus and RMAN.WindowsUNIX and Linux (Method 1)UNIX and Linux (Method 2...
一个人的成功取决于晚上的8点至10点--经典语录必读
一个人的成功取决于晚上的8点至10点--经典语录必读
FTP From PL/SQL
http://www.oracle-base.com/articles/misc/FTPFromPLSQL.php
FTP From PL/SQL
HomeArticlesScriptsForumsBlogCertificationMiscSearchAboutPrinter Friendly Oracle 8i | Oracle 9i | Oracle...
oracle 查询结果的各种格式
http://download.oracle.com/docs/cd/A87860_01/doc/server.817/a82950/ch4.htm
shell 脚本访问oracle 写法 (ZT)
sqlplus -s powercard/powercard <<EOF >>/dev/null set echo off set feed off set feedback off ...
限定client端IP访问oracle!
在sqlnet.ora中添加如下语句:添加后要重新启动listener(reload无效).tcp.validnode_checking=yestcp.invited_nodes=(172.16.1.24,172.16.1.28,172.16.1.135) #允许的ip tcp.excluded_nod...
【DataGuard】调整Data Guard数据保护模式详细步骤
【DataGuard】调整Data Guard数据保护模式详细步骤
Dataguard mode switch
Setting the Level of Protection This is achieved by using the following command syntax executed on the primary database. ALTER DATABASE SET STANDBY DATABASE TO MAXIMIZE ...
看完,如果你不分享,是我的失败!--超好文章!
1、98年,马化腾等一伙凑了50万创办了腾讯----即时通讯领域和互联网的领导者,没买房;99年,丁磊用50万创办163.com ---中文邮箱第一品牌,没买房;99年,陈天桥炒股赚了50万,创办盛大----中国最大网络游戏运营商,...
expdp 使用的几个例子
1 仅仅导出某一个或者某几个表 expdp hr/hr TABLES=employees,jobs DUMPFILE=dpump_dir1:table.dmp NOLOGFILE=y2 导出某几个表和某个表的部分数据 expdp hr/hr PARFILE=exp.parexp.par :DIRECTORY=dpump_dir1DUM...
rac读书札记---后台进程
1.GSD global services daemon GSD与rac的管理工具dbca srvctl oem进行交互,用来完成实例的启动关闭等管理任务。为了保证这些管理工具运行正常必须在所有的节点上先start gsd,并且一个GSD进程支持在一...
expdp 中的 include ,exlude 的具体用法 。
#!/bin/bashsource ~/.bash_profileDATE=`date +%Y%m%d_%H%M%S`PATH_DMP=/backup/dmpPATH_LOG=/backup/dmpexpdp hello/world schemas=hello directory=data_dir exclude=TABLE:"LIKE'CON_%KLS%'" dumpfile=expdp_use...
How To Determine Who Is Using Undo Tablespace And How Much?
Platforms: 1-914CU;This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) process and therefore has not been subject to an independent technical review.Applies to:Oracle S...
手动进行oracle rac vip 漂移的步骤 。
在生产环境由于硬盘损坏或者内存损坏不得不进行rac的单点故障排查 。而且这种情况最好手动进行vip的漂移而不是直接shutdown 。要在系统相对空闲 ,没有大的事务的情况下进行 。第一 :在系统空闲的情况下 ,1 关闭实...
liunx下vi命令详解
liunx下vi命令详解
liunx下vi命令详解
vi编辑器是所有Unix及Linux系统下标准的编辑器,它的强大不逊色于任何最新的文本编辑器,这里只是简单地介绍一下它的用法和一小部分指令。由于对Unix及Linux系统的任何版本,vi编辑器是完全相同的,因此您可以在其...
Data Guard出现gap sequence修复
转自:http://www.xifenfei.com/1176.html一、出现gap sequence现象备库Fetching gap sequence in thread 1, gap sequence 710-716Tue May 31 15:02:38 2011FAL[client]: Failed to request gap sequence...