PIXNET Logo登入

DanBrother的部落格

跳到主文

歡迎光臨DanBrother在痞客邦的小天地. 部落格文章同步於=> http://blog.xuite.net/gem083/dba

部落格全站分類:數位生活

  • 相簿
  • 部落格
  • 留言
  • 名片
  • 12月 16 週五 201614:42
  • Oracle 12c ASM Disk Groups Backup & Restore Example

Backup %26; Restore Oracle 12c ASM Disk Groups Example_Pic1.JPG
Oracle 12c ASM Disk Groups Backup & Restore Example
SQL> conn sys@pdb1 as sysdba
Enter password:
Connected.
SQL> show con_name
CON_NAME
------------------------------
PDB1
Create a Tablespace Named DATA2_TBS In Disk Group DATA2:
SQL> create tablespace DATA2_TBS datafile '+DATA2' SIZE 10M autoextend on next 1 M;
Tablespace created.
SQL> select file_name from dba_data_files where tablespace_name = 'DATA2_TBS';
FILE_NAME
--------------------------------------------------------------------------------
+DATA2/CDBRAC/426B78A071E83DCAE0530B0AA8C04DB5/DATAFILE/data2_tbs.256.930739747
1 row selected.
(繼續閱讀...)
文章標籤

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

  • 個人分類:Oracle ASM
▲top
  • 6月 20 週一 201615:08
  • Online ASM Disk Migration of Oracle 11g RAC (Demo on Oracle VM VirtualBox 5.0)


Online ASM Disk Migration of Oracle 11g RAC  (Demo on Oracle VM VirtualBox 5.0)
On the host operating system(Windows 7 as my environment), switch to the command line interface:
(繼續閱讀...)
文章標籤

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

  • 個人分類:Oracle ASM
▲top
  • 8月 30 週四 201216:38
  • How to Find Physical Devices for Oracle ASM Disks

How to Find Physical Devices for Oracle ASM Disks:
(login as root)
# oraceasm listdisks
DATA1
DATA2
DATA3
# oracleasm querydisk -d DATA1
Disk "DATA1" is a valid ASM disk on device /dev/sdb2[8,18]
# oracleasm querydisk -d DATA2
Disk "DATA2" is a valid ASM disk on device /dev/sdb1[8,17]
# oracleasm querydisk -d DATA3
Disk "DATA3" is a valid ASM disk on device /dev/sdb3[8,19]
(繼續閱讀...)
文章標籤

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

  • 個人分類:Oracle ASM
▲top
  • 3月 15 週四 201213:47
  • ORA-15306: ASM Password File Update Failed On At Last One Node

Issue:
ORA-15306: ASM Password File Update Failed On At Last One Node While Createing ASMSNMP User
Cause:
ASM password file is missing or typo in one or several node(s) or it is corrupt.


Solution:

cd $GRID_HOME/dbs
orapwd file=orapw+ASM1 entries=5 passwod=mypwd
scp -p orapw+ASM1 rac2:/grid/grid11203/dbs/orapw+ASM2

(繼續閱讀...)
文章標籤

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

  • 個人分類:Oracle ASM
▲top
  • 3月 13 週二 201212:21
  • multipathd: asm!.asm_ctl_spec: failed to store path info

Error Messages found in /var/log/messages as follows:
multipathd: asm!.asm_ctl_spec: add path (uevent)
multipathd: asm!.asm_ctl_spec: failed to store path info
multipathd: uevent trigger error
Solution:
Modify /etc/multipath.conf  and add the highlighted two lines to the file.
>>
blacklist {
        devnode         "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"
        devnode         "^hd[a-z][[0-9]*]"
        devnode         "^asm/*"
        devnode         "ofsctl"
}

(繼續閱讀...)
文章標籤

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

  • 個人分類:Oracle ASM
▲top
  • 10月 18 週二 201110:24
  • crsctl status res -t shows state_details as empty for some ASM instances

crsctl status res -t  or
crsctl status resource -t
shows state_details as empty for some ASM instances

This note gives a brief overview of bug 10051803.
Affects: Oracle 11.2.0.2
Fixed: Oracle 11.2.0.3
The current state for ora.asm is not listed correctly.
 
Rediscovery Notes:
Running 'crsctl stat res -t' shows for ASM missing information:
 
ora.asm
        ONLINE  ONLINE                 Started
        ONLINE  ONLINE                 <<< HERE MISSING >>

Workaround: Ignore the output produced.
(繼續閱讀...)
文章標籤

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

  • 個人分類:Oracle ASM
▲top
  • 10月 13 週四 201115:05
  • oracle enterprise manager 11g conn as sysasm encountered ORA-01031

oracle enterprise manager 11g login:
conn sys as sysasm encountered ORA-01031
Solution:
export ORACLE_SID=+ASM1
sqlplus / as sysasm
grant sysasm to sys;

(繼續閱讀...)
文章標籤

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

  • 個人分類:Oracle ASM
▲top
  • 10月 07 週五 201111:47
  • Change SPFILE location to ASM

Change SPFILE location to ASM:
[oracle@RAC1 ~]$ srvctl config database -d TESTDB
Database unique name: TESTDB
Database name: TESTDB
Oracle home: /oracle/db11gr2
Oracle user: oracle
Spfile: +DATA/TESTDB/spfileTESTDB.ora
Domain:
Start options: open
Stop options: immediate
Database role: PRIMARY
Management policy: AUTOMATIC
Server pools: TESTDB
Database instances: TESTDB1,TESTDB2
Disk Groups: DATA,ARCH
Mount point paths:
Services:
Type: RAC
Database is administrator managed
(繼續閱讀...)
文章標籤

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

  • 個人分類:Oracle ASM
▲top
  • 8月 31 週三 201116:44
  • ASM Command - asmcmd

ASM Command - asmcmd
asmcmd -p    => which show full path
Inside asmcmd:
help
ls
ls -l  => Display extended file information.
ls -s => Display file space information.
ls -t => Sort the listing by timestamp (lastest first) instead of by name.

lsdsk => List Oracle ASM disks.
lsdg   => List diskgroups and their information.  (from v$asm_diskgroup_stat)
cd   =>  Change directory (which is case insensitive)
pwd => Display the absolute path of the current directory.
lsct    => list current Oracle ASM clients from the v$asm_client view.
(繼續閱讀...)
文章標籤

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

  • 個人分類:Oracle ASM
▲top
  • 8月 22 週一 201112:33
  • Device Mapper Permissions Setup


** For Oracle11gR2  on RHEL4.8 (x64) :
Modify/etc/udev/permission.d/50-udev.permissions
dm-[0-3]:oracle:dba:0664
** For Oracle11gR2  on RHEL5.5 (x64) :
Modify
/etc/rc.local
chmod 0660 /dev/mapper/DATA
chmod 0660 /dev/mapper/ARCH
chmod 0660 /dev/mapper/SYSTEM
(繼續閱讀...)
文章標籤

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

  • 個人分類:Oracle ASM
▲top
12»

廣告

個人資訊

DanBrother
暱稱:
DanBrother
分類:
數位生活
好友:
累積中
地區:

熱門文章

  • (58,078)祝福禱告文-為工作祝福
  • (49,259)Excel 2007 中文字顯示亂碼之修復步驟
  • (2,928)ORA-24247: 存取控制清單 (ACL) 拒絕網路存取
  • (626)OSQL公用程式的使用方法
  • (456)Oracle11g Tracefile Housekeeping by ADRCI (Automatic Diagnostic Repository Command Interpreter)
  • (135)FORFILES command to remove older files or folders (Windows Server 2008)
  • (69)srvctl command usage
  • (19)Use EVERYDAY_WINDOW for DEFAULT_MAINTENANCE_PLAN
  • (17)Re-Installation Issue: you do not have sufficient permissions to access the inventory
  • (5)RPM & SRPM

文章分類

  • Android (1)
  • Java (1)
  • MongoDB (1)
  • MariaDB (7)
  • Python (10)
  • HTML (1)
  • ORDS (1)
  • Apache Tomcat (1)
  • Oracle Streams (1)
  • Javascript (1)
  • Oracle Data Guard (2)
  • Oracle VirtualBox (3)
  • Grid Infrastructure (4)
  • Oracle SQL Tuning (6)
  • OEM11g / 12c (28)
  • IT Links (1)
  • 心靈饗宴 (161)
  • Oracle Clusterware (5)
  • ORACLE RAC (21)
  • Oracle ASM (18)
  • Oracle Export/Import (10)
  • MySQL (22)
  • Windows Series (18)
  • Oracle HTTP Server (8)
  • Linux (49)
  • Microsoft Office (6)
  • SQL SERVER (19)
  • Install Apache & PHP (2)
  • Oracle in General (111)
  • RMAN (15)
  • SQL / PL/SQL (30)
  • 未分類文章 (1)

最新文章

  • MySQL Array Simulation in Stored Procedure
  • Extracts, orders, and then prints grants for MySQL user accounts (pt-show-grants)
  • MySQL Stored Procedure - Nested Loop Example
  • Metabase H2 DB Migration to MySQL 5.7
  • Steps for Upgrading Percona-Toolkit to the Latest Version
  • MySQL Slave - Skip Replication for A Particular Table
  • MySQL - Export & Import Table Data Based on the SQL Query
  • MySQL Table Fragmentation Detection and De-fragmentation Implementation
  • Multiple Log File Viewer (Linux Bash)
  • Solving MySQL slave lag Issues

最新留言

  • [21/08/16] jwang0189 於文章「祝福禱告文-為工作祝福...」留言:
    非常實用的文章,謝謝提供,已點廣告表示支持 https://...
  • [20/04/23] 廣利 於文章「祝福禱告文-為工作祝福...」留言:
    129:8 過路的也不說,願耶和華所賜的福,歸於你們;我們在...
  • [17/10/30] 66國語言翻譯公司 於文章「Download Google Chro...」留言:
    不了走會點中見你隻有果新家而去十走相隻把見作樣 95國...
  • [17/05/06] 50國語言翻譯公司 於文章「Python >>> a, b = b...」留言:
    之的不會然文道果三那大這年來來年物月用理學, 115國...
  • [16/10/13] KK 於文章「How to Change Defaul...」留言:
    感謝您分享的工作禱詞! 真的太感謝了!! 願 平安...
  • [15/08/23] 洪秀柱 於文章「如何在UltraEdit中正常顯示韓文?...」留言:
    此破解法可用於 UEstudio UltraEdit V2...

動態訂閱

文章精選

文章搜尋

誰來我家

參觀人氣

  • 本日人氣:
  • 累積人氣:

留言板