¹ØÓÚoracleµ¼³öexcelºÍexcelµ¼ÈëoracleµÄ¾Ñé×ܽá
Ò»¡¢oracleµ¼³öexcel
·½·¨Ò»£º×î¼òµ¥µÄ·½·¨---Óù¤¾ßplsql dev
Ö´ÐÐFile =>new Report Window ¡£ÔÚsql±êÇ©ÖÐдÈëÐèÒªµÄsql£¬µã»÷Ö´Ðлò°´¿ì½Ý¼üF8£¬»áÏȳԳö²éѯ½á¹û¡£ÔÚÓҲ๤¾ßÀ¸£¬¿ÉÒÔÑ¡Ôñ°´Å¥Áí´æÎªhtml¡¢copy as html¡¢export results£¬ÆäÖÐexport results°´Å¥ÖоͿÉÒÔµ¼³öexcelÎļþ¡¢csvÎļþ¡¢tsvÎļþ¡¢xmlÎļþ¡£
·½·¨¶þ£º×îרҵµÄ·½·¨---ÓÃÔʼ¹¤¾ßsqlplus
ÔÎIJμû£ºhttp://www.eygle.com/archives/2005/04/eoasqlplusieaae.html
ÎÒ×öÁËÒ»µãÐ޸ģ¬ÈçÏÂËùʾ£º
1.main.sql
ÓÃÒÔÉèÖû·¾³£¬µ÷ÓþßÌ幦Äܽű¾
2.¹¦Äܽű¾-get_tables.sql
ΪʵÏÖ¾ßÌ幦ÄÜÖ®½Å±¾
ͨ¹ýÕâÑùÁ½¸ö½Å±¾¿ÉÒÔ±ÜÃâspoolÖеÄÈßÓàÐÅÏ¢£¬²Î¿¼:
ÈçºÎÈ¥³ýSQLPLUSÖÐSPOOLµÄÈßÓàÐÅÏ¢
ʾÀýÈçÏÂ:
1.main.sql½Å±¾:
[oracle@jumper utl_file]$ more main.sql
set linesize 200
set term off verify off feedback off pagesize 999
set markup html on entmap ON spool on preformat off
spool d:\tables.xls
@d:\get_tables.sql
spool off
exit
2.get_tables.sql½Å±¾:
[oracle@jumper utl_file]$ more get_tables.sql
select owner,table_name,tablespace_name,blocks,last_analyzed
from all_tables order by 1,2;
3.Ö´Ðв¢»ñµÃÊä³ö:
[oracle@jumper utl_file]$ sqlplus "/ as sysdba" @d:\main.sql
SQL*Plus: Release 9.2.0.4.0 - Production on Mon Apr 25 10:30:11 2005
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production
With the Partitioning option
JServer Release 9.2.0.4.0 - Production
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production
With the Partitioning option
JServer Release 9.2.0.4.0 - Production
[oracle@jumper utl_file]$ ls -l tables.xls
-rw-r--r-- 1 oracle dba 69539 Apr 25 10:30 tables.xls
[oracle@jumper utl_file]$
´Ë´¦Êä³öΪxlsÎļþ£¬Í¨¹ýÏÂͼÎÒÃÇ¿ÉÒÔ¿´µ½Êä³öЧ¹û:
°Ñmain.sql½Å±¾Öеģ¬spool tables.xls¸ü¸ÄΪspool tables.htm,ÎÒÃÇ¿ÉÒÔ»ñµÃhtm¸ñʽÊä³ö£¬Ð§¹ûÈçÏÂͼ:
·½·¨Èý£º×¾çµÄ·½·¨£¬Ö®ËùÒÔ³ÆÎª±¯¾ç£¬ÊÇÒòΪÕâ¸ö·½·¨ÆäʵºÜ¼òµ¥£¬µ«ÊÇÄã¿ÉÄÜûÓÐ×¢Òâ¡£
´ò¿ªplsql dev¹¤¾ß£¬Ö´ÐÐfile=>new sql window £¬ÊäÈësql£¬µã»÷¹¤¾ßÀ¸
Ïà¹ØÎĵµ£º
OracleÐÔÄܵ÷ÕûµÄÎóÇø
http://tech.it168.com/db/o/2006-07-03/200607031305157.shtml
ΪÁËÌá¸ßÐÔÄÜ,ÎÒÃÇÕë¶ÔOracleÊý¾Ý¿â±¾ÉíÌṩÁ˵ķ½·¨»ò·½°¸½øÐйý²»Éٵij¢ÊÔ£¬Ö÷Òª°üÀ¨:
¹²Ïí·þÎñÆ÷ģʽ(MTS)
¼¯Èº¼¼Êõ(Clustering)RAC
·ÖÇø
²¢ÐÐ ......
×ܵÄÀ´ËµwindowsÏÂÔØ°²×°oracleÈí¼þ±ÈlinuxÏÂÒª¼òµ¥µÄ¶à¡£
Ò».°²×°oracle ·þÎñ¶Ë
1.oracle·þÎñÆ÷µÄÏÂÔØÍøÖ·ÈçÏ£º
http://www.oracle.com/technology/software/products/database/index.html
È»ºóÎÒÑ¡ÔñÁËÏÂÃæÕâ¸ö°²×°°ü£º
Oracle Database 10g Release 2 ( ......
Oracle 9iÆóÒµ°æ¹Ù·½ÏÂÔØ9.2.0.1.0
¼òµ¥ÃèÊö£º oracleµÄ¹Ù·½ÍøÕ¾£ºwww.oracle.com ÕâÀïÓÐoracleµÄ¸÷ÖÖ°æ±¾µÄÊý¾Ý¿â¡¢Ó¦Óù¤¾ßºÍȨÍþµÄ¹Ù·½Îĵµ¡£Oracle9iÊÇÒµ½çµÚÒ»¸öÍêÕû¡¢¼òµ¥µÄÓÃÓÚ»¥ÁªÍøµÄÐÂÒ»´úÖÇÄÜ»¯µÄ¡¢Ð×÷¸÷ÖÖÓ¦ÓõÄÈí¼þ»ù´¡¼Ü¹¹¡£ÏµÍ³ÒªÇó£ºÊÊÓÃÓ²¼þ»·¾³ ÖÁÉÙÐèÒª512MÄڴ棻½»»»Çø£ºÒ»°ãÒªÇóÊÇÄÚ´æµÄÁ½±¶£¬ÖÁÉÙÒ ......
¶ÔÿһÐÐÊäÈëÖµ½øÐмÆË㣬µÃµ½ÏàÓ¦µÄ¼ÆËã½á¹û£¬·µ»Ø¸øÓû§£¬Ò²¾ÍÊÇ˵£¬Ã¿ÐÐ×÷Ϊһ¸öÊäÈë²ÎÊý£¬¾¹ýº¯Êý¼ÆËãµÃµ½Ã¿ÐеļÆËã½á¹ûÊǵ¥Ðк¯Êý¡£
Ò»¡¢×Ö·ûº¯Êý
1¡¢×Ö·û´®´óСдת»»
(1)LOWER (strexp) ·µ»Ø×Ö·û´®,²¢½«ËùÓеÄ×Ö·ûСд
(2)UPPER (strexp) ·µ»Ø×Ö·û´®,²¢½«ËùÓеÄ× ......
#! /bin/bash
if [ -f ~/.bashrc ];then
. ~/.bash_profile
fi
export script=/home/oracle/script
export bakdata_destination=/u02/rman_backup/data
export baklog_destination=/u02/rman_backup/log
export datadir=`date +'%Y_%m_%d'`
export days=`date +'%w'`
if ! test -d $script
then
&nb ......