2010-01-01から1年間の記事一覧

知ってる人は知っているSQLPLUSの小技

DB

1、put_lineの空白問題 set serveroutput on exec dbms_output.put_line(' abc'); 頭の空白を表示したいなら「format wrapped」オプションを使えばOK set serveroutput on format wrapped exec dbms_output.put_line(' abc'); 2、空行エラー このSQL文をコ…

Oracle 11g のアンインストール

DB

[oracle@CentOS53 ~]$ /u01/oracle/app/product/11.2.0/dbhome_1/deinstall/deinstall Checking for required files and bootstrapping ... Please wait ... Location of logs /tmp/deinstall2010-05-24_11-13-21-午前/logs/ ############ ORACLE DEINSTALL …

CentOSでソースをRPMとしてインストールする方法

1、インストールしたいソースをダウンロードする wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p0.tar.gz 2、変換ソフトcheckinstallをインストールする yum --enablerepo=rpmforge install checkinstall * rpmforgeが見つからないエラー発生し…

Oracleデータベースの深層(5)− Enabling Trace with Event 10046

DB

SQLトレースの有効化 いくつの方法でトレースを有効にできます。 ・インスタンスレベルのトレース ・トリガーを利用したトレース ・セッションレベルのトレース ・ログイン中のセッショントレース ・その他のセッションのトレース (1)インスタンスレベル…

RMANの好きな理由TOP10

DB

1. パワーフル(RESTORE DATABASE, BACKUP DATABASE) (1)コマンドひとつで複雑な操作が可能 (2)書いたスクリプトはCATALOGに保存可能、一回書いたら何回でも利用可能 2. 信頼性(VALIDATE) VALIDATE コマンドで整合性を検証し、災害前に修復可能 3. 軽量…

Oracleデータベースの深層(4)−Internal Events

DB

Code Description 10000 Controlfile debug event, name ‘control_file’. 10001 Controlfile crash event1. 10002 Controlfile crash event2. 10003 Controlfile crash event3. 10004 Controlfile crash event4. 10005 Trace latch operations for debugging…

Oracle定期タスク:RMAN

DB

1,Create a RMAN script named rman.bkp to do the task. [oracle@CentOS53 Oracle_Scripts]$ more rman.bkp CONFIGURE CONTROLFILE AUTOBACKUP ON; configure channel device type disk format='/u01/oracle/app/admin/o11g2/backups/full_db_%U'; configur…

良いソフトウェアエンジニアとして毎日考えるべきこと!!

1.Don't believe in myths - reason for yourself! ・"伝説"を信じないこと、自分で考えよう。 2.Don't follow "conventional wisdom" - often the things everybody knows are simply wrong! ・知られたことを信じないこと、みんなが知っていることは通常間…

今更Statspackのspdoc.txtを再読(2)

DB

2. Statspack Configuration --------------------------- 2. Statspack設定2.1. Database Space Requirements 2.1. データベース必要な領域 The amount of database space required by the package will vary considerably based on the frequency of snaps…

今更Statspackのspdoc.txtを再読(1)

DB

Statspackとは? 公式定義: A set of SQL, PL/SQL, and SQL*Plus scripts that allow the collection, automation, storage, and viewing of performance data. This feature has been replaced by the Automatic Workload Repository. パフォーマンスデー…

Oracle Code Tips Collection

DB

(1)カレントトレースファイル(TraceFile)ファイル名を取得する SELECT d.VALUE || '/' || LOWER (RTRIM (i.INSTANCE, CHR (0))) || '_ora_' || p.spid || '.trc' trace_file_name FROM (SELECT p.spid FROM v$mystat m, v$session s, v$process p WHERE…

Oracleプログラマもradioheadが好き?

DB

ASM関連のテストコードに下記の文字列が・・・ [oracle@CentOS53 bin]$ strings oracle|grep radiohead I'm a creep, I'm a winner, what the hell am I doing here.I don't belong here - radiohead なんとradioheadの歌詞じゃないか! 少なくともバージョ…

OSS:Opensource.comやっと来た!

RedHatがオープンソースHP: http://opensource.com/ を立ち上がりました。 The open source way is about possibility. Open source presents a new way to solve old problems. To share ideas and effort. The open source way opens doors. Open source …