适用平台: AIX hp linux win Solaris 适用版本:所有数据库10.1.0.2 to12.1.0.1 适用于 rac和 standalone 以RAC 环境为例: 假设
适用平台: AIX hp linux win Solaris
适用版本:所有数据库10.1.0.2 to12.1.0.1
适用于 rac和 standalone
以RAC 环境为例: 假设 Oracle 为oracle rdbms 属组;grid 为 gi 属组;
For ASMLIB users:
RAC 环境 gi owner 执行以下命令
1、# /etc/init.d/oracleasm scandisks #( root用户执行)
$> id
$> /etc/init.d/oracleasm listdisks
$> /etc/init.d/oracleasm querydisk
所有节点都要执行;
2、在操作系统层面检查磁盘是否可以读写(每个节点)(oracle 用户或者grid用户)
# raw device
$> dd if=/dev/raw/raw1 of=/dev/null count=100 bs=8192
# ASMLIB device
$> dd if=/dev/oracleasm/disks/PRODA07 of=/dev/null count=100 bs=8192
# raw device
$> dd if=/dev/rdsk/c1t3d0s6 of=/dev/null count=100 bs=8192
3、适用kfed 验证磁盘是否为候选盘;
kfed read
kfbh.type: 0 ; 0x002: KFBTYP_INVALID 如果看到这么一个结果,表明该磁盘是可用的。
4、创建临时磁盘组,主要是用ASM 实例来检验下所有要加的盘没有问题,,即使出问题,也不会影响原来的生产系统。虽然要检查的步骤比较多,比较烦,但是对于生产系统来说出不了任何意外。
CREATE DISKGROUP lixora EXTERNAL REDUNDANCY DISK '/dev/rhdisk*';
5、检查刚创建的dg 是否已经自动mount 了?
SELECT STATE, NAME FROM V$ASM_DISKGROUP;
6、如果没有mount,尝试手工mount
ALTER DISKGROUP TEST MOUNT;
---确认dg状态
SELECT STATE, NAME FROM V$ASM_DISKGROUP;
7、如果step6 查询lixora成功mount(如果rac ,则确保每个ASM实例都成功mount)
则说明我们需要添加的asm 盘都正常的,可以正常使用。那么我们就可以把他们加到生产的dg中了。
-----卸载dg(在ASM instance中执行这个命令)
alter diskgroup test dismount;
----删除测试用临时dg (在ASM instance 中执行这个命令)
DROP DISKGROUP TEST;
8、到这里就可以吧候选盘加到生产的dg里了。
ALTER DISKGROUP
Standalone 环境也是一样的,同样建议执行上述测试步骤。
如何修改ASM的sys密码
如何将ASM中的数据文件复制到操作系统中
Oracle 11g RAC ASM磁盘全部丢失后的恢复
Oracle 11g从入门到精通 PDF+光盘源代码
RHEL6 ASM方式安装Oracle 11g R2
Oracle 10g 手工创建ASM数据库
Ubuntu 12.04(amd64)安装完Oracle 11gR2后各种问题解决方法
如何修改Oracle 10g ASM的sys密码
本文永久更新链接地址:

The steps for upgrading MySQL database include: 1. Backup the database, 2. Stop the current MySQL service, 3. Install the new version of MySQL, 4. Start the new version of MySQL service, 5. Recover the database. Compatibility issues are required during the upgrade process, and advanced tools such as PerconaToolkit can be used for testing and optimization.

MySQL backup policies include logical backup, physical backup, incremental backup, replication-based backup, and cloud backup. 1. Logical backup uses mysqldump to export database structure and data, which is suitable for small databases and version migrations. 2. Physical backups are fast and comprehensive by copying data files, but require database consistency. 3. Incremental backup uses binary logging to record changes, which is suitable for large databases. 4. Replication-based backup reduces the impact on the production system by backing up from the server. 5. Cloud backups such as AmazonRDS provide automation solutions, but costs and control need to be considered. When selecting a policy, database size, downtime tolerance, recovery time, and recovery point goals should be considered.

MySQLclusteringenhancesdatabaserobustnessandscalabilitybydistributingdataacrossmultiplenodes.ItusestheNDBenginefordatareplicationandfaulttolerance,ensuringhighavailability.Setupinvolvesconfiguringmanagement,data,andSQLnodes,withcarefulmonitoringandpe

Optimizing database schema design in MySQL can improve performance through the following steps: 1. Index optimization: Create indexes on common query columns, balancing the overhead of query and inserting updates. 2. Table structure optimization: Reduce data redundancy through normalization or anti-normalization and improve access efficiency. 3. Data type selection: Use appropriate data types, such as INT instead of VARCHAR, to reduce storage space. 4. Partitioning and sub-table: For large data volumes, use partitioning and sub-table to disperse data to improve query and maintenance efficiency.

TooptimizeMySQLperformance,followthesesteps:1)Implementproperindexingtospeedupqueries,2)UseEXPLAINtoanalyzeandoptimizequeryperformance,3)Adjustserverconfigurationsettingslikeinnodb_buffer_pool_sizeandmax_connections,4)Usepartitioningforlargetablestoi

MySQL functions can be used for data processing and calculation. 1. Basic usage includes string processing, date calculation and mathematical operations. 2. Advanced usage involves combining multiple functions to implement complex operations. 3. Performance optimization requires avoiding the use of functions in the WHERE clause and using GROUPBY and temporary tables.

Efficient methods for batch inserting data in MySQL include: 1. Using INSERTINTO...VALUES syntax, 2. Using LOADDATAINFILE command, 3. Using transaction processing, 4. Adjust batch size, 5. Disable indexing, 6. Using INSERTIGNORE or INSERT...ONDUPLICATEKEYUPDATE, these methods can significantly improve database operation efficiency.

In MySQL, add fields using ALTERTABLEtable_nameADDCOLUMNnew_columnVARCHAR(255)AFTERexisting_column, delete fields using ALTERTABLEtable_nameDROPCOLUMNcolumn_to_drop. When adding fields, you need to specify a location to optimize query performance and data structure; before deleting fields, you need to confirm that the operation is irreversible; modifying table structure using online DDL, backup data, test environment, and low-load time periods is performance optimization and best practice.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SublimeText3 Chinese version
Chinese version, very easy to use

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function
