Time of Update: 2014-06-15
由於公司項目需要,在兩個資料庫之間進行資料庫匯入匯出。我對SQL Server匯入匯出研究了一下,發現有篇文章介紹的較全面,現把它修正一下,供朋友參考。一、匯出匯入SQL Server裡某個資料庫1.在SQL Server企業管理器裡選中要轉移的資料庫,按滑鼠右鍵,選所有任務->備份資料庫。2.備份 選資料庫-完全,目的 備份到 按添加按鈕檔案名稱 在SQL Server伺服器硬碟下輸入一個自訂的備份資料庫檔案名(尾碼一般是bak)重寫
Time of Update: 2014-06-15
可以採取以下的步驟: 查詢最新的服務包 你要保證你總能有最新的服務包。對於SQL Server2000,這是sql/downloads/2000/SP3.asp">SP3a。記住服務包是多重的;如果你應用SP3a,你不必使用在此之前的服務包,比如SP3,SP2或者SP1。SP3是一種特殊的服務包,一旦安裝就不再使用之前的任何升級程式,但它要進行安裝要求是已經安裝了SP1或者 SP2的。 註冊安全警報 儘管服務包有助於你的SQL
Time of Update: 2014-06-15
說明:藍色=命令名稱 淺綠=命令參數 淺藍=選項 紫色=目錄 系統內容:CentOS 5.7
Time of Update: 2014-06-15
要求:查詢Oracle表中的資料個數為奇數個時,自動加一個空白行,返回偶數個資料;如果表中的資料為偶數個時,直接返回偶數的所有行。一、在資料庫中,建立一個表,如下:create table MONTHSNUM ( MONTHS NUMBER ) create table MONTHSNUM( MONTHS NUMBER)二、新增一行資料;
Time of Update: 2014-06-15
DRCP 是Database Resident Connection Pool. 預設資料庫是有sys_default_connection_pool, 只是沒有被開啟而已start DRCP:sqlplus / as sysdbaexecute dbms_connection_pool.start_pool();在RAC環境中 在任何一個instance上面執行都行使用方法在tnsnames.ora中設定server=pooled.stop DRCP:execute
Time of Update: 2014-06-15
最近一使用者的資料庫出現以下報錯:Ioctl ASYNC_CONFIG error, errno = 11 環境如下:HP-UX 11.31,Oracle 10.2.0.5.7 經查詢metalink,針對這個問題的說明如下:Applies to: Oracle Server - Enterprise Edition - Version: 9.2.0.1 and later [Release: 9.2 and later ]HP-UX PA-RISC
Time of Update: 2014-06-15
[grid@vm11gr2] /home/grid> sqlplus "/as sysasm" SQL*Plus: Release 11.2.0.1.0 Production on Sun Oct 25 10:16:21 2009 Copyright (c) 1982, 2009, Oracle. All rights reserved. Connected to an idle
Time of Update: 2014-06-15
本筆記接在上一篇 <<Linux下安裝DB2資料庫步驟>> ,學習過程中使用下載的官網DB2資料庫(免費版本)測試的,由於工作中DB2是用在項目中的,而且是收費的資料庫,故我只在項目編程中使用它(即公司的DB2資料庫收費版本),沒用來作為自己測試用。嘿嘿,所以下面的大部分操作主要來自下載的官網DB2資料庫(免費版本)。相關閱讀:Linux下卸載DB2資料庫步驟
Time of Update: 2014-06-15
SQL Server無法重啟從錯誤記錄檔中發現下面的錯誤: Operating system error 1117(由於 I/O裝置錯誤,無法運行此項請求。) on file "C:\Program Files\Microsoft
Time of Update: 2014-06-15
1.分析表與索引(analyze 不會重建索引)analyze table tablename compute statistics 等同於 analyze table tablename compute statistics for table for all indexes for all columnsfor table 的統計資訊存在於視圖:user_tables 、all_tables、dba_tablesfor all indexes 的統計資訊存在於視圖:
Time of Update: 2014-06-15
1、查看暫存資料表空間 (dba_temp_files視圖)(v_$tempfile視圖)select tablespace_name,file_name,bytes/1024/1024 file_size,autoextensible from dba_temp_files;select status,enabled, name, bytes/1024/1024 file_size from v_$tempfile;--sys使用者查看2、縮小暫存資料表空間大小alter database
Time of Update: 2014-06-15
案例情景——在一次Oracle 資料庫匯出時:C:\Documents and Settings\Administrator>exp lsxy/lsxy@lsxy_db file=E:\lsxy.dmp owner=lsxyExport: Release 11.2.0.1.0 - Production on 星期一 11月 26 14:07:18 2012 Copyright (c) 1982, 2009, Oracle and/or its affiliates.
Time of Update: 2014-06-15
一 什麼是Trial Recovery 官方解釋:A trial recovery applies redo in a way similar to normal media recovery, but it never writes its changes to disk and it always rolls back its changes. Trial recovery occurs only in memory. trial
Time of Update: 2014-06-15
1、查看系統上當前存在的DB2副本:[root@localhost home]# db2ls Install Path Level Fix Pack Special Install Number Install Date
Time of Update: 2014-06-15
ora_rowscn對於每一行資料,ora_rowscn返回每一行最近被修改的大概時間.這對於判斷一行資料大概是在什麼時間被修改的還是有用的.因Oracle是通過事務提交對行所在資料區塊來進行scn的跟蹤的所以說它不精確.可以通過在建立表時使用行層級的依賴跟蹤來獲得一個更加精確的scn.create table ...
Time of Update: 2014-06-15
我們都知道Oracle自己會自動處理死結的情況,不需要人為的幹預,但是Oracle不能自己處理session阻塞的的情況,阻塞導致資源的浪費和消耗系統效能,這個時候我們就需要快速的找出導致阻塞的原因,並儘快排除它,好讓系統重新正常運行。下面我將做一個例子來解釋如何迅速的處理這種阻塞:下面的例子是兩個session 同時更新HR使用者的同一條記錄。HR使用者視窗1:[oracle@bkjia ~]$ sqlplus hr/hrSQL*Plus: Release 10.2.0.1.0 -
Time of Update: 2014-06-15
Oracle ORA-01000:maximum open cursors
Time of Update: 2014-06-15
分區索引總結:一,分區索引分為2類:1、global,它必定是Prefix的。不存在non-prefix的2、local,它又分成2類: 2.1、prefix:索引的第一個列等於表的分區列。 2.2、non-prefix:索引的第一個列不等於表的分區列。
Time of Update: 2014-06-15
介紹:---Oracle
Time of Update: 2014-06-15
Oracle 一個中文漢字 佔用幾個位元組,要根據Oracle中字元集編碼決定查看oracle server端字元集select userenv('language') from dual;如果顯示如下,一個漢字佔用兩個位元組SIMPLIFIED CHINESE_CHINA.ZHS16GBK如果顯示如下,一個漢字佔用三個位元組SIMPLIFIED CHINESE_CHINA.AL32UTF8可以用以下語句查詢一個漢字佔用的位元組長度select lengthb('你') from dual;