随笔分类 -  Oracle DBA

摘要:采用sys or system / manager as sysdba; 连接数据库。创建普通用户konglin: create user konglin identified by pwd_oracle;删除用户, drop user konglin;授予用户登录数据库的权限: grant cre... 阅读全文
posted @ 2014-05-21 13:01 ArcerZhang 阅读(1117) 评论(0) 推荐(0)
摘要:卸载oracle步骤 阅读全文
posted @ 2014-03-26 11:58 ArcerZhang 阅读(137) 评论(0) 推荐(0)
摘要:常见问题:EXP-00091: Exporting questionable statistics(参考文章http://hi.baidu.com/weihua0722/item/c52d9cdbb6c3264fddf9be0f)...解决思路: 通常情况下,在数据库数据导入导出的问题,主要是由于服务器端的字符集与客户端的字符集设置不一致导致的.然而我们一般不会轻易的去修改数据库服务器端的字符集,那么我们就从客户端的字符集设置修改入手.前提是我们首先要知道当前情况下,服务器端的字符集及客户端的字符集是什么?如何探测出服务器端、客户端的字符集信息,请参考文章:http://www.cnblog. 阅读全文
posted @ 2013-06-23 15:30 ArcerZhang 阅读(430) 评论(0) 推荐(0)
摘要:Selecting the Right Linux SoftwareIP AddressUsers and GroupsThe Directory LayoutOracle SID 阅读全文
posted @ 2013-06-13 10:07 ArcerZhang 阅读(186) 评论(0) 推荐(0)
摘要:Grid Infrastructure这个软件包含了集群软件及ASM软件.ObjectivesAfter competing this seminar,you should be able to do the following:Learn the detailed process to setup Oracle 11gR2 RACLearn how to startup and shutdown RACLearn the basic administration method about RACRAC ArchitectureInterconnected nodes act as a sin 阅读全文
posted @ 2013-06-12 22:45 ArcerZhang 阅读(263) 评论(12) 推荐(0)
摘要:SQL> select name,value from v$sysstat where name like '%redo%';NAME VALUE---------------------------------------------------------------- ----------redo synch writes 40988redo synch t... 阅读全文
posted @ 2013-06-09 13:55 ArcerZhang 阅读(406) 评论(0) 推荐(0)
摘要:Segment AdvisorCompression Advisor 阅读全文
posted @ 2013-06-08 11:10 ArcerZhang 阅读(185) 评论(0) 推荐(0)
摘要:参考博文:http://www.cnblogs.com/arcer/archive/2013/06/05/3119511.html 阅读全文
posted @ 2013-06-06 10:50 ArcerZhang 阅读(332) 评论(1) 推荐(0)
摘要:查看alert文件,是否存在ora-01578错误,便可知晓. 阅读全文
posted @ 2013-06-05 16:53 ArcerZhang 阅读(255) 评论(0) 推荐(0)
摘要:1、analyze table emp1 compute statistics;2、dbms_stats package搜集系统的统计信息:dbms_stats.gahter_system_stats 阅读全文
posted @ 2013-06-03 15:36 ArcerZhang 阅读(332) 评论(0) 推荐(0)
摘要:查看Instance和Database信息,可参考如下动态性能视图查看信息,可参考如下动态性能视图查看Memory信息,可参考如下动态性能视图查看Contention信息,可参考如下动态性能视图 阅读全文
posted @ 2013-05-31 17:43 ArcerZhang 阅读(198) 评论(1) 推荐(0)
摘要:1、查看当前schema下表中索引名称对应信息SQL> select index_name,table_name from user_indexes;INDEX_NAME TABLE_NAME------------------------------ ------------------------------MYC_IDX MYCLUSTERSYS_C0012950 C_EMPSYS_C0012949 C_DEPTView Code ... 阅读全文
posted @ 2013-05-27 10:52 ArcerZhang 阅读(200) 评论(0) 推荐(0)
摘要:1、trace文件SQL> show parameter user_dump_destNAME TYPE VALUE------------------------------------ ----------- ----------------------------------------------------------------------------------------user_dump_dest string /RealData/diag/rd... 阅读全文
posted @ 2013-05-18 13:11 ArcerZhang 阅读(476) 评论(0) 推荐(0)
摘要:1、建表方式Acreate table lx_bbk--tablespace test is a created by asm pattern.tablespace testasselect * from scott.emp;Create table(asm) 阅读全文
posted @ 2013-05-14 11:41 ArcerZhang 阅读(142) 评论(0) 推荐(0)
摘要:Constraint NameDescriblePRIMARY KEY主键约束,一张表中即可以有主键也可以没有;如果有,有且只能有一个PRIMARY KEY.FOREIGN KEY外键约束NOT NULL非空约束UNIQUE唯一约束.主键约束,从约束本身来讲就相当于(NOT NULL) + (UNIQUE)CHECK检查约束 阅读全文
posted @ 2013-04-11 19:13 ArcerZhang 阅读(189) 评论(0) 推荐(0)
摘要:Data TypeDescriptionVARCHAR2(size)Variable-length character dataCHAR(size)Fixed-length character dataNUMBER(p,s)Variable-length numeric dataDATEDate and time valuesLONGVariable-length character data(up to 2G);Oracle推荐不使用此数据类型,推荐使用CLOB、BLOBCLOBCharacter data(up to 4GB)RAW and LONG RAWRaw binary dataB 阅读全文
posted @ 2013-04-11 13:16 ArcerZhang 阅读(312) 评论(0) 推荐(0)
摘要:Oracle Database ObjectsObjectDescribtionTableBasic unit of storage;Composed of rowsViewLogically represents subsets of data from one or more tablesSequenceGenerates numeric valuesIndexImporves the performance of some queriesSynonymGives alternative name to an object 阅读全文
posted @ 2013-04-11 11:54 ArcerZhang 阅读(199) 评论(2) 推荐(0)
摘要:1、SQL>startup mount数据库进入mount状态,只可以读取控制文件信息,不可以读取数据文件信息;2、SQL>alter database open将数据库切换到open状态3、查询数据库状态SQL> select dbid,name,switchover_status,db_unique_name,database_role,open_mode,current_scn from v$database; DBID NAME SWITCHOVER_STATUS DB_UNIQUE_NAME DATABASE_ROLE ... 阅读全文
posted @ 2013-03-28 11:13 ArcerZhang 阅读(456) 评论(0) 推荐(0)
摘要:1、You may need to create control files if:All control files are lost because of a failure.The name of a database needs to be changed.The current settings in the control file need to be changed.2、The behavior of multiplexed control files is this:The database writes to all filenames listed for the ini 阅读全文
posted @ 2013-03-27 12:39 ArcerZhang 阅读(524) 评论(0) 推荐(0)
摘要:Complete Recovery MethodsClosed database recovery for:System datafilesUndo segment datafilesWhole databaseOpen database recovery,with database initially opened(for file loss)Open database recovery with database initially closed(for hardware failure)Data file recovery with no datafile backup. 阅读全文
posted @ 2013-03-27 12:36 ArcerZhang 阅读(124) 评论(0) 推荐(0)