DB_FILE_NAME_CONVERT参数导致ORA-15124:ASMfilename'..
RAC主库+DG单机环境中,一旦主备库之前有归档间隔,而这些归档可能由于种种原因被删除,如归档被清理了,备份集策略已经超出所需归档。也不用担心,可以按以下大致步骤做恢复: o 主库上做基于SCN的增量备份 o 将备份传输至备库 o 备库恢复增量备份 o 主库创
RAC主库+DG单机环境中,一旦主备库之前有归档间隔,而这些归档可能由于种种原因被删除,如归档被清理了,备份集策略已经超出所需归档。也不用担心,可以按以下大致步骤做恢复:
o 主库上做基于SCN的增量备份
o 将备份传输至备库
o 备库恢复增量备份
o 主库创建一个standby controlfile,并传输至备库
o 上一步生成的控制文件替换备库的控制文件
这几天遇到个非常奇怪的问题,主库创建standby controlfile时总是报错ORA-15124。这个问题也困扰了自己很多天。
都试过:
o 检查数据库的所有物理文件 asmcmd ls -l来查看
o 检查数据库数据字典 v$database.name / dba_data_files.file_name
o 在asmcmd debug模式下ls -l 查看文件
o 检查ASM的v$asm_file, v$asm_alias等等
o 对ORA-15124做10046和errorstack
o 检查DG备份等等
在创建standby controlfile依旧报错,错误如下:
SQL> show parameter conver;
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_file_name_convert string /data, +DATA/orcl/datafile
log_file_name_convert string /data, +DATA/orcl/onlinelog
(实际过程中,这两个参数如此配置是没有问题的...)
SQL> alter database create standby controlfile as '/tmp/a.ctl' reuse;
alter database create standby controlfile as '/tmp/a.ctl' reuse
*
ERROR at line 1:
ORA-15124: ASM file name '+data/odsptdb+DATAfile/system.259.862837403' containsan invalid alias name
对以上加粗部分的字符串是哪里来的表示非常有疑问!
最终,检查DB_FILE_NAME_CONVERT参数的配置,并且做了以下试验:
SQL> alter session set db_file_name_convert='/data','+abc';
------------------------------------------------------------------------/\\\\\\\\\
Session altered.
SQL> alter database create standby controlfile as '/tmp/a.ctl' reuse;
alter database create standby controlfile as '/tmp/a.ctl' reuse
*
ERROR at line 1:
ORA-15124: ASM file name '+data/odsptdb+abcfile/system.259.862837403' containsan invalid alias name
----------------------------------------------------------/\\\\\\\\\\
SQL> alter session set db_file_name_convert='/data','abc+abc';
-------------------------------------------------------------------------////\\\\
Session altered.
SQL> alter database create standby controlfile as '/tmp/a.ctl' reuse;
alter database create standby controlfile as '/tmp/a.ctl' reuse
*
ERROR at line 1:
ORA-15124: ASM file name '+data/odsptdbabc+abcfile/system.259.862837403' contains an invalid alias name
-------------------------------------------------------------////\\\\
SQL> alter session set db_file_name_convert='/data','abc';
Session altered.
SQL> alter database create standby controlfile as '/tmp/a.ctl' reuse;
Database altered.
从以上几个试验可以看出,DB_FILE_NAME_CONVERT确实影响了standby controlfile的创建。而且串里不能包含“+” (即加号)
在以往的RAC+ASM中,印象里面DB_FILE_NAME_CONVERT和LOG_FILE_NAME_CONVERT参数是可以有“+” (即加号)的,这一次遇到了很奇怪的问题。计划找个时间窗口,将以上两个参数后半部分都改为"+DATA",完全让ASM来管理。
特意在此记录一下。

MySQL is suitable for beginners to learn database skills. 1. Install MySQL server and client tools. 2. Understand basic SQL queries, such as SELECT. 3. Master data operations: create tables, insert, update, and delete data. 4. Learn advanced skills: subquery and window functions. 5. Debugging and optimization: Check syntax, use indexes, avoid SELECT*, and use LIMIT.

MySQL efficiently manages structured data through table structure and SQL query, and implements inter-table relationships through foreign keys. 1. Define the data format and type when creating a table. 2. Use foreign keys to establish relationships between tables. 3. Improve performance through indexing and query optimization. 4. Regularly backup and monitor databases to ensure data security and performance optimization.

MySQL is an open source relational database management system that is widely used in Web development. Its key features include: 1. Supports multiple storage engines, such as InnoDB and MyISAM, suitable for different scenarios; 2. Provides master-slave replication functions to facilitate load balancing and data backup; 3. Improve query efficiency through query optimization and index use.

SQL is used to interact with MySQL database to realize data addition, deletion, modification, inspection and database design. 1) SQL performs data operations through SELECT, INSERT, UPDATE, DELETE statements; 2) Use CREATE, ALTER, DROP statements for database design and management; 3) Complex queries and data analysis are implemented through SQL to improve business decision-making efficiency.

The basic operations of MySQL include creating databases, tables, and using SQL to perform CRUD operations on data. 1. Create a database: CREATEDATABASEmy_first_db; 2. Create a table: CREATETABLEbooks(idINTAUTO_INCREMENTPRIMARYKEY, titleVARCHAR(100)NOTNULL, authorVARCHAR(100)NOTNULL, published_yearINT); 3. Insert data: INSERTINTObooks(title, author, published_year)VA

The main role of MySQL in web applications is to store and manage data. 1.MySQL efficiently processes user information, product catalogs, transaction records and other data. 2. Through SQL query, developers can extract information from the database to generate dynamic content. 3.MySQL works based on the client-server model to ensure acceptable query speed.

The steps to build a MySQL database include: 1. Create a database and table, 2. Insert data, and 3. Conduct queries. First, use the CREATEDATABASE and CREATETABLE statements to create the database and table, then use the INSERTINTO statement to insert the data, and finally use the SELECT statement to query the data.

MySQL is suitable for beginners because it is easy to use and powerful. 1.MySQL is a relational database, and uses SQL for CRUD operations. 2. It is simple to install and requires the root user password to be configured. 3. Use INSERT, UPDATE, DELETE, and SELECT to perform data operations. 4. ORDERBY, WHERE and JOIN can be used for complex queries. 5. Debugging requires checking the syntax and use EXPLAIN to analyze the query. 6. Optimization suggestions include using indexes, choosing the right data type and good programming habits.


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

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

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

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

SublimeText3 English version
Recommended: Win version, supports code prompts!

Atom editor mac version download
The most popular open source editor

Dreamweaver Mac version
Visual web development tools