目前分類:Oracle in General (111)

瀏覽方式: 標題列表 簡短摘要

------------------------------------------------------------------
-- Backup Oracle User Account With Password
-- Applied Version: Oracle 9i and up

DanBrother 發表在 痞客邦 留言(0) 人氣()

If you encounter an issue that you need to truncate a particular schema's tables which may have foreign key constraints linked to each other, you will need to disable all the foreign key constraints in this schema first.

Here's the quick way to do it:

DanBrother 發表在 痞客邦 留言(0) 人氣()

set serveroutput on size 1000
begin
    dbms_output.put_line('This is the test!');

DanBrother 發表在 痞客邦 留言(0) 人氣()


A ORA-00060 "deadlock detected"  can be the fact that the table and index INITRANS is set too low.  In addition, bitmap index can also affect the OTLP system.

Solution:

DanBrother 發表在 痞客邦 留言(0) 人氣()

#Server Site
listener.ora
>>

DanBrother 發表在 痞客邦 留言(0) 人氣()

View

Description

DanBrother 發表在 痞客邦 留言(0) 人氣()

8 Steps for Synchronizing Standby database:

1. Find the current SCN of the standby database:

DanBrother 發表在 痞客邦 留言(0) 人氣()

( Login as root)
1. create a file named "dbora" in the directory of /etc/init.d 

DanBrother 發表在 痞客邦 留言(0) 人氣()

The following steps can re-configure the corrupted EM :
>>
Step1:

DanBrother 發表在 痞客邦 留言(0) 人氣()


olsnodes:    Listing cluster nodes information

Usage: olsnodes [-n] [-p] [-i] [ | -l] [-g] [-v]

DanBrother 發表在 痞客邦 留言(0) 人氣()

#############################################
# Oracle10gR2 RHEL4.8 x86-64 Installation Guide
# Written by Dan Brother

DanBrother 發表在 痞客邦 留言(0) 人氣()

SQL> desc emp
 名稱                                      空值?    類型
 ----------------------------------------- -------- ---------------

DanBrother 發表在 痞客邦 留言(0) 人氣()

create table test_table
(id varchar2(12)
) pctfree 10 pctused 75 nologging;

DanBrother 發表在 痞客邦 留言(0) 人氣()

 防止某table被誤刪除的方法(Prevent Row Deletion Accidentally) :

-- Package

DanBrother 發表在 痞客邦 留言(0) 人氣()


DB_FILE_MULTIBLOCK_READ_COUNT 是在DB執行 full table scan 時能降低I/O的重要參數之一. 它指明了在連續的table scan過程中一次I/O可讀取的最大區塊數

DanBrother 發表在 痞客邦 留言(0) 人氣()

--  Display Session CPU Usage

select s.username as "Oracle User",

DanBrother 發表在 痞客邦 留言(0) 人氣()

--------------------------------------------
--   create views of oracle locks:
--------------------------------------------

DanBrother 發表在 痞客邦 留言(0) 人氣()

當我們需要一份報表以橫式方現呈現時,可以用 SYS_CONNECT_BY_PATH 函式達成:

-- 建立測試資料表

DanBrother 發表在 痞客邦 留言(0) 人氣()

/* Top 10 Analysis Using Rank() Over */

-- 建立測試資料表:

DanBrother 發表在 痞客邦 留言(0) 人氣()

conn /@testdb as sysdba
alter session set current_schema = scott;

col current_user format a20

DanBrother 發表在 痞客邦 留言(0) 人氣()

Close

您尚未登入,將以訪客身份留言。亦可以上方服務帳號登入留言

請輸入暱稱 ( 最多顯示 6 個中文字元 )

請輸入標題 ( 最多顯示 9 個中文字元 )

請輸入內容 ( 最多 140 個中文字元 )

reload

請輸入左方認證碼:

看不懂,換張圖

請輸入驗證碼