随笔分类 - Oracle
摘要:1. fnc_table_to_mysql 主体程序 create or replace function fnc_table_to_mysql ( i_owner in string, i_table_name in string, i_number_default_type in string
阅读全文
摘要:创建表t1,t2 SQL conn n1/n1 Connected. SQL SQL SQL create table t1 as select trunc(rownum/100) id ,object_name from all_objects where rownum create table
阅读全文
摘要:源实例上创建表 物化视图 oracle@localhost admin]$ sqlplus system/oracle@orcl2 SQL Plus: Release 11.2.0.4.0 Production on Tue Apr 3 17:33:01 2018 Copyright (c) 198
阅读全文
摘要:之前演示的switchver总是提示下面的错误,并且需要人工干预: "Oracle11gr2_ADG管理之switchover实战" DGMGRL switchover to snewtest; Warning: You are no longer connected to ORACLE. Plea
阅读全文
摘要:Oracle11gR2导入导出实战之使用Datapump进行表空间传输 表空间检查 [oracle@localhost database]$ ps ef|grep smon oracle 8981 1 0 11:52 ? 00:00:01 ora_smon_orcl oracle 10794 1 0
阅读全文
摘要:1 Oracle11gR2 dbca建库 [oracle@localhost ~]$ cd $ORACLE_BASE/database [oracle@localhost database]$ dbca silent createDatabase templateName $ORACLE_HOME/
阅读全文
摘要:技术建议和方案。 要求failover后不重建备库,并能够把failover的数据库重新切换回备库 主库为newtest,备库为snewtest 备库上已经开启了闪回 得到一个参考的SCN SQL select current_scn from v$database; CURRENT_SCN 449
阅读全文
摘要:模拟故障 关闭备库 SQL shutdown immediate; Database closed. Database dismounted. ORACLE instance shut down. 模拟插入数据,归档,并且删除归档 SQL insert into test values(23); 1
阅读全文
摘要:备库开启flashback database 关闭备库的同步 SQL alter database recover managed standby database cancel; Database altered. SQL select flashback_on from v$database;
阅读全文
摘要:主库上打开闪回 SQL select flashback_on from v$database; FLASHBACK_ON YES 模拟断电 SQL shutdown abort ORACLE instance shut down. [oracle@localhost ~]$ sqlplus / a
阅读全文
摘要:. 环境 | | db_primary | db_stanby | 备注 | | : : | : | : | db版本 | 11.2.0.4.0 | 11.2.0.4.0 | os版本 | centos 6.4| centos 6.4 | db_unique_name | newtest| snew
阅读全文
摘要:1.环境 | | db_primary | db_stanby | | : : | : | : | db版本 | 11.2.0.4.0 | 11.2.0.4.0 | os版本 | centos 6.4| centos 6.4 | db_unique_name | newtest| snewtest
阅读全文
摘要:在Oracle的11g之前的版本中密码是不区分大小写的(使用双引号强制除外)。 在Oracle的11g以及以后的版本中对此有所增强。从此密码有了大小写的区分。 这个大小写敏感特性是通过SEC_CASE_SENSITIVE_LOGON参数来控制的。 1.Oracle 11gR2官方文档解释: http
阅读全文
摘要:1. 删除oracle之前的产品信息 环境是前篇中通过静默方式安装的,这里只删除产品信息,假设ORACLE_HOME目录是从其他地方拷贝过来的 [oracle@localhost ContentsXML]$ pwd /home/oracle/oraInventory/ContentsXML [ora
阅读全文
摘要:1.安装相关的包(略) 2.建oracle用户 组 groupadd oinstall $ORACLE HOME/rdbms/lib/config.c groupadd dba chattr i /etc/passwd /etc/shadow useradd g oinstall G dba ora
阅读全文
摘要:1. 停止ORACLE数据库 [oracle@localhost oracle]$ ps ef|grep smon oracle 72550 1 0 14:23 ? 00:00:00 ora_smon_orcl oracle 76122 76045 0 16:18 pts/0 00:00:00 gr
阅读全文