在线精品99_中国九九盗摄偷拍偷看_91免费版在线观看_91.app_91高清视频在线_99热最新网站

怎么将spfile从ASM里迁移到文件系统

107次阅读
没有评论

共计 3924 个字符,预计需要花费 10 分钟才能阅读完成。

本篇内容介绍了“怎么将 spfile 从 ASM 里迁移到文件系统”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让丸趣 TV 小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!

[oracle@node1 /]$ su – oracle
[oracle@node1 /]$ sqlplus / as sysdba

SQL*Plus: Release 10.2.0.1.0 – Production on Fri Sep 16 14:28:57 2011
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 – Production
With the Partitioning, OLAP and Data Mining options

SQL show parameter spfile;  // 查看当前参数文件存放路径

NAME  TYPE  VALUE
———————————— ———– ——————————
spfile  string  +DATA/oradb/parameterfile/spfi
  le.268.762004477
SQL exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 – Production
With the Partitioning, OLAP and Data Mining options

[oracle@node1 /]$ cd /u01/oracle/product/10g/dbs  // 进入系统参数文件存放路径
[oracle@node1 /]$ cat initoradb.ora  // 查看参数文件内容
spfile=+DATA/oradb/parameterfile/spfile.268.762004477
[oracle@node1 /]$ rm -rf initoradb.ora  // 将参数文件删除

[oracle@node1 /]$ export ORACLE_SID=+ASM  // 设置 ASM 实例环境变量
[oracle@node1 /]$ asmcmd
ASMCMD cd data/oradb/parameterfile  // 进入 ASM 参数文件存放路径
ASMCMD ls -lt  // 查看参数文件名
Type  Redund  Striped  Time  Sys  Name
PARAMETERFILE  MIRROR  COARSE  SEP 16 13:00:00  Y  spfile.268.762004477
ASMCMD exit

[oracle@node1 /]$ export ORACLE_SID=oradb  // 设置环境变量
[oracle@node1 ~]$ sqlplus / as sysdba  // 进入数据库

SQL*Plus: Release 10.2.0.1.0 – Production on Fri Sep 16 14:34:00 2011

Copyright (c) 1982, 2005, Oracle.  All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 – Production
With the Partitioning, OLAP and Data Mining options

SQL create pfile= /u01/oracle/product/10g/dbs/initoradb.ora from spfile;  // 创建 pfile 参数文件,并指定参数文件路径与文件名

File created.

SQL !ls -lrt /u01/oracle/product/10g/dbs/initoradb.ora // 查看创建结果
-rw-r–r– 1 oracle oinstall 989 Sep 16 14:34 /u01/oracle/product/10g/dbs/initoradb.ora
SQL shutdown immediate // 关闭数据库
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL exit

[oracle@node1 /]$ export ORACLE_SID=+ASM  // 设置 ASM 实例环境变量
[oracle@node1 /]$ asmcmd
ASMCMD cd data/oradb/parameterfile  // 进入参数文件
ASMCMD ls -lt
Type  Redund  Striped  Time  Sys  Name
PARAMETERFILE  MIRROR  COARSE  SEP 16 13:00:00  Y  spfile.268.762004477
ASMCMD rm spfile.268.762004477  // 删除 ASM 实例上的参数文件
ASMCMD exit

[oracle@node1 /]$ export ORACLE_SID=oradb
[oracle@node1 ~]$ sqlplus / as sysdba

SQL*Plus: Release 10.2.0.1.0 – Production on Fri Sep 16 14:34:00 2011

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

SQL  
SQL create spfile= /u01/oracle/product/10g/dbs/spfileoradb.ora from pfile= /u01/oracle/product/10g/dbs/initoradb.ora   // 创建 SPFILE 参数文件
File created.
SQL startup  // 开启数据库
ORACLE instance started.

Total System Global Area  230686720 bytes
Fixed Size  1218676 bytes
Variable Size  71305100 bytes
Database Buffers  155189248 bytes
Redo Buffers  2973696 bytes
Database mounted.
Database opened.

SQL show parameter spfile; // 查看迁移后的参数文件

NAME  TYPE  VALUE
———————————— ———– ——————————
spfile  string  /u01/oracle/product/10g/dbs/sp
  fileoradb.ora
SQL exit
[oracle@node1 dbs]$ cd /u01/oracle/product/10g/dbs
[oracle@node1 dbs]$ cat spfileoradb.ora // 查看迁移后参数文件内容
?2kk-oradb.__db_cache_size=155189248
oradb.__java_pool_size=4194304
oradb.__large_pool_size=4194304
oradb.__shared_pool_size=62914560
oradb.__streams_pool_size=0
*.audit_file_dest= /u01/oracle/product/admin/oradb/adump
*.background_dump_dest= /u01/oracle/product/admin/oradb/bdump
*.compatible= 10.2.0.1.0
*.control_files= +DATA/oradb/controlfile/backup.259.762002877 #Restore Controlfile
*.core_dump_dest= /u01/oracle/product/admin/oradb/cdump
*.db_block_size=8192
*.db_create_file_dest= +DATA
*.db_create_online_log_dest_1= +DATA
*.db_domain=
*.db_file_multiblock_read_count=16
*.db_name= oradb
*.db_recovery_file_dest_size=2147483648
*.db_recovery_file_dest= +DATA
*.dispatchers= (PROTOCOL=TCP) (SERVICE=oradbXDB)
*.job_queue_processes=10
*.open_cursors=300
*.pga_aggregate_target=75497472
*.processes=150
*.remote_login_passwordfile= EXCLUSIVE
*.sga_target=228589568
*.undo_management= AUTO
*.undo_tablespace= UNDOTBS1
*.user_dump_dest= /u01/oracle/product/admin/oradb/udump

“怎么将 spfile 从 ASM 里迁移到文件系统”的内容就介绍到这里了,感谢大家的阅读。如果想了解更多行业相关的知识可以关注丸趣 TV 网站,丸趣 TV 小编将为大家输出更多高质量的实用文章!

正文完
 
丸趣
版权声明:本站原创文章,由 丸趣 2023-07-20发表,共计3924字。
转载说明:除特殊说明外本站除技术相关以外文章皆由网络搜集发布,转载请注明出处。
评论(没有评论)
主站蜘蛛池模板: 一个人看的免费在线视频 | 青青草原亚洲 | 亚洲天天操 | 开心五月激情综合婷婷色 | 国产精品国色综合久久 | 久草日韩 | 人妻少妇无码精品视频区 | 国产农村精品一级毛片视频 | 五月丁香啪啪 | 自拍偷拍国产视频 | 中国成人在线视频 | 好大好深好猛好爽视频 | 亚洲av纯肉无码精品动漫 | 黑人大群体交免费视频 | 太粗太深了太紧太爽了动态图男男 | 一本加勒比hezyo无码资源网 | 偷看农村妇女牲交 | 色综合久久88色综合天天 | 韩国免费高清一级毛片性色 | 色综合久久88色综合天天 | 青青青久在线视频免费观看 | 色先锋影音岛国av资源 | 毛片一区二区三区无码 | 久久精品水蜜桃av综合天堂 | 亚洲色偷偷综合亚洲av | 国产综合久久一区二区三区 | 美女视频黄的全免费视频网站 | 天天操天天摸天天碰 | 两个人www在线观看高清 | 与子乱在线观看 | 第一次破处在线观看 | 亚洲精品无码专区 | 国产va精品免费观看 | 在线a级毛片无码免费真人 在线a人片免费观看 | 中文字幕在线播 | 欧美第四页| 亚洲色中文字幕无码av | 亚洲丝袜在线观看 | a国产| 久久香蕉国产线熟妇人妻 | 亚洲日产综合欧美一区二区 |