1Z0-031.3 - 3. Startup and Shutdown Database
Startup Database:Syntax:STARTUP [FORCE] [RESTRICT] [PFILE=filename] [OPEN [RECOVER][database] | MOUNT | NOMOUNT][@more@]where:--- OPEN : enables users to access the database--- MOUNT : mounts the database for certain DBA activities but does not provide user access to the database--- NOMOUNT: creates the SGA and starts up the background processes but does not provide access to the database--- PFILE=parfile : enables a nondefault parameter file to be used to configure the instance--- FORCE
刚进公司两天
对现在这个公司,我可谓一路跌跌撞撞才进来的呀!其实,我本已在一家公司实习,在那天他们打电话给我的时候!由于自己一直向往DBA这个职位,所以就依然来重新面试,还是想抓住机会进来!面试过程,其实自己感觉并不表现满意,但也算是挨过来了![@more@]记得,上周五早上一大早来报道,由于自己好像有点神经似的起的太早了,早到了N久,于是就做在那边等!那天同时进来的同事还真多,当然很多是集团其他子公司的!一 联串的培训和手续以后,终于来到自己的位子!我是在一mm的带领下的,第一个上来接应我的就是dba组技术经理了,他很谦和的
1Z0-031.3 - 2. 修改SPFILE的ALTER SYSTEM命令
设置SPFILE中的参数值(ALTER_SYSTEM_SET_CLAUSE):命令格式:ALTER SYSTEM SET parameter = value <COMMENT = ’text’> <DEFERRED> <SCOPE = MEMORY | SPFILE | BOTH> <SID = ’sid | *’> ;[@more@]分析格式:papameter = value : 这个赋值提供了参数名以及参数的新值。例如,pga_aggregate_target=1024m会把PGA_AGGREGATE_TARGET参数值设置为1024MB。comment = ‘text’ : 是一个与此参数设置相关的可选注释。这个注释会出现在V$PARAMETER视图的UPDATE_COMMENT字段中。如果使用了相应选项运行同时保存对SPFI
1Z0-031.3 - 1. Parameters & Parameter files (PFILE & SPFILE)
--- : Having an entry in the fileImplicittypes of initialization parameter file:PFILE--- Persistent parameter file, ,commonly referred to as spfileSID.ora[@more@]--- A list of instance parameters--- Allocations for memory structures of the System Global Area (SGA)--- The names and locations of control filesPFILE : initSID.ora--- Modifications to the file are made manually.--- Its default location is $ORACLE_HOME/dbs.--- Specify the values in the following format: .optional--- Parameters can be s
1Z0-031.2 - 2. Database Administrator Users & User Login Authortication & DBA Tools
Database Administrator Users:- Two database user accounts, SYS and SYSTEM, are created automatically with the database and granted the DBA role.- The DBA role has all database system privileges.- SYS : Owner of the database data dictionary.- SYSTEM : Owner of additional internal tables and views used by Oracle tools[@more@]Authentication Methods for Database Administrators:- operating system authentication- password files to authenticate database administrators.Using Password File Authentication
1Z0-031.2 - 1.最佳灵活结构 Optimal Flexible Architecture (OFA)
Optimal Flexible Architecture (OFA):-> OFA organizes database files by type and usage[@more@]-> Involves three major rules- Establish a directory structure where any database file can be stored on any disk resourcea. Name all devices that might contain Oracle data in such a manner that a wild card or similar mechanism can be used to refer to the collection of devices as a unit. b. Make a directory explicitly for storage of Oracle data at the same level on each of these devices. c. Beneath
1Z0-031.1. 体系结构概述
[@more@]总体结构:- 软件结构- 存储结构存储结构:- 逻辑存储结构:主要描述Oracle数据库的内部存储结构,即在技术概念上描述在Oracle数据库中如何组织、管理数据- 物理存储结构:主要描述Oracle数据库的外部存储结构,即在操作系统中如何组织、管理数据逻辑存储结构:- 在技术概念上描述在Oracle数据库中如何组织、管理数据- 通过查询Oracle数据库的数据字典,可以找到逻辑存储结构的描述- 简单描述:多个数据块组成区,多个区组成段,多个段组成表空间,多个表空间组成逻辑数据库物理存储结构:- 现实的数据存储单元,对应于操作系统的
SQL:Group Functions,GROUP BY,HAVING
GROUP FUNCTIONS operate on sets of rows to give one result per group.Types:- AVG- COUNT- MAX- MIN- STDDEV:标准偏差- SUM- VARIANCE:方差[@more@]Syntax:SELECT [column,] group_function(column),..FROM table[WHERE condition][GROUP BY column][HAVING group_condion][ORDER BY column];1. You can use AVG and SUM for numeric data.2. You can use MIN and MAX for any data type.3. COUNT(*) returns the number of rows in a table.4. Using the DISTINCT Keyword: COUNT(DISTINCT expr) returns the number of distinct n
SQL: JOIN
Join Types:1. Inner Join - Equal-Join - Non-Equal-Join2. Outer Join - Left-Outer-Join - Right-Outer-Join3. Self Join - Join a table to itself - Using the table's alias name to complete the self join. - attention the repeat lines[@more@]-----------------------------------------------------------------------------------------------------------------Joining Tables Using Oracle Syntax:- Write the join condition in the WHERE clause.- Prefix the column name with the table name when the same co
sysdba远程登陆Oracle
这个破问题,终于让我搞通了!不过这个破问题,确给我敲响了警钟,有些时候就是愿意犯这些低级错误!还是缺少锻炼和“血”的教训!哈哈……下面是我的具体方法:[@more@]1. alter system set remote_login_passwordfile=exclusive scope=spfile 2. shutdown immediate 3.重新开了cmd,输入以下命令: orapwd file=D:Oracle_DB_Home10.1.0.2.0databasePWDorcl.ora password=CHENZS950728 entries=20 force =y 4.在原来的sqlplus中输入:startup 5.关闭Oracle数据库所在的机器(即我的机器)的防火墙! 6.在另外一台机器(取名为A机器
1024,爽!
终于把你升级到1024了,就是不一样,爽!1024给我的感觉,就像美女,爱死你了!我爱我的1024……[@more@]
Single-Row Functions
- figer: function_name [(arg1,arg2,...)]- Manipulate data items- Accept arguments and return one value- Act on each row returned- Return one result per row- May modify the data type- Can be nested- Accept arguments which can be a column or an expression[@more@]-----------------------------------------------------------------------------------------------------------------Single-Row Functions' Type:1.Character2.Number3.Date4.Conversion5.General-----------------------------------------------------
Basic SQL: Where, Order by,Comparision and Logical Conditions
SELECT *|{[DISTINCT] column|expression [alias],...}FROM table[WHERE condition(s)][ORDER BY Clause];[@more@]Limiting the Rows Selected* Restrict rows returned by using the WHERE clause.-----------------------------------------------------------------------------------------------------------------Character Strings and Dates- Character strings and date values are enclosed in single quotation marks- Character values are case sensitive,and date values are format sensitive- The default date formate i
Before Basic SQL
SQL statements are not case sensitiveSQL statements can be on one or more linesKeywords cannot be abbreviated or split across lines[@more@]Clauses are usually placed on separate linesIndents are used to enhance readability------------------------------------------------------------------------------------------------------------------Column Heading Defaults1.iSQL*Plus - Default heading justification:Center - Default heading desplay:Uppercase2.SQL*Plus - Character and Date column headings are lef
从0开始
鉴于自己最近出现的“DBA前期综合遗忘症”,我决定继续学习数据库知识的同时,把以前学过的所有有关数据库的东西都从头再复习一遍,顺便也一路总结,挂在上面吧![@more@]
女孩最常用的22句谎言 [转]
1.我们还是当朋友好了(其实你还有可以利用的价值) 2.我想我真的不适合你(我根本就不喜欢你!) 3.其实你人真的很好(可是我不想和你在一起) [@more@]4.你人真的很好(我是真的不想和你在一起) 5.你人真的真的很好....真的(猪头,离我远一点!) 6.我暂时不想交男朋友(闪边啦!你还不到我心中帅哥标准的一半) 7.我不想伤害我们之间的友谊(我们之间也只会有友谊) 8.我心中牵挂着一个人(那个人是我专门为你这种人虚构的) 9.我从来没想过这个问题(这是根本不可能的.还用想吗?) 10.我不适合当个
软件系统分析与设计过程(小笔)
下面,简单的描述一下软件系统的分析与设计过程:[@more@]1、系统需求的提取 1.1、功能性需求 1.2、非功能性需求 1.3、可用性需求2、需求分析(用例图) 2.1、识别用例 2.2、识别参与者 2.3、描述事件流3、构建静态结构模型 3.1、定义系统对象 3.2、定义用户界面类 3.3、构建类图4、动态行为模型的构建 4.1、建立交互作用图(协作图、顺序图) 4.2、建立状态图5、物理实现模型 5.1、构建组件图 5.2、构建配置图(部署图)
正则表达式小结
一个正则表达式就是由普通字符(例如字符 a 到 z)以及特殊字符(称为元字符)组成的文字模式。该模式描述在查找文字主体时待匹配的一个或多个字符串。正则表达式作为一个模板,将某个字符模式与所搜索的字符串进行匹配。 [@more@]作用:*测试字符串的某个模式。例如,可以对一个输入字符串进行测试,看在该字符串是否存在一个电话号码模式或一个信用卡号码模式。这称为数据有效性验证。*替换文本。可以在文档中使用一个正则表达式来标识特定文字,然后可以全部将其删除,或者替换为别的文字。 *根据模式匹配从字符串中提取一个子字
vi编辑器命令
模式: - 命令模式 - 编辑模式 - 末行模式[@more@]模式切换方式: - 命令模式→i→编辑模式 - 编辑模式→Esc→命令模式 - 命令模式→:→末行模式 - 末行模式→enter→命令模式模式功能: - 命令模式(Command Mode): 控制光标移动,删除字符,段落复制。 - 编辑模式(Insert Mode): 新增文字及修改文字。 - 末行模式(Last Line Mode):保存文件,离开vi,以及其他设置。 命令模式命令h: 将光标向左移动一格l: 将光标向右移动一格j: 将光标向下移动一格k: 将光标向上移动一格0: 数字0,将光标移动到该行的行首$: 将光标移动到
Linux 下软件包的安装小结
1:如果软件包直接提供的是二进制的形式(一般是以*.tar.gz/*.tgz,*bz2形式的二进制打包的软件包),则只需运行里面的install文件就可以了(一般是以“.bin”,“.sh”结尾,类似于windows下的setup),即直接执行./*****.bin;卸载方法,手动删除(rm)。[@more@]2:如果软件包以rpm包的形式提供,则用rpm安装,格式:rpm 【-option】 rpm包名常用rpm选项: -i:安装该rpm包 -U:升级该rpm包,如果该rpm包的软件不存在,则安装该rpm包 -F:更新该rpm包,如果该rpm包的软件不存在,则不安装该rpm包 -e:删除该软件,后面的“rpm包名”应