Home >Database >Mysql Tutorial >归档小结(2)

归档小结(2)

WBOY
WBOYOriginal
2016-06-07 15:43:081416browse

1、修改归档路径 ALTER SYSTEM SET log_archive_dest_1='LOCATION=DATA' SCOPE=BOTH; 2、修改归档文件名字 ALTER SYSTEM SET log_archive_format='%t_%s_%r.arc' SCOPE=SPFILE;(需要重启数据库) 3、在rac中设置归档模式,需要将所有节点的数据库都关掉,然

1、修改归档路径
ALTER SYSTEM SET log_archive_dest_1='LOCATION=+DATA' SCOPE=BOTH;

 

2、修改归档文件名字

ALTER SYSTEM SET log_archive_format='%t_%s_%r.arc' SCOPE=SPFILE;(需要重启数据库)

 

3、在rac中设置归档模式,需要将所有节点的数据库都关掉,然后在某个节点启动到mount状态,然后执行

alter database archivelog;

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:OpenCV 脸部跟踪(2)Next article:Data Access FAQ (一)