Data center software and hardware design from the perspective of Energy Conservation (1)
-PMC Senior Consultant, former Facebook Storage Architecture designer,
Per Brasher, one of the founders of OCP, recorded in the CCCC speech-
The speech process is as follows. First, we will discuss the reasons for focusing on the efficiency of the data center and the original motivation for Improving the efficiency. Step 2: Discuss the main components that affect
11 principles of object-oriented design
Single Duty principle (the Responsibility Principle , abbreviation SRP )
Open-Close principle (the Open-close Principle , abbreviated as OCP )
Liskov Replacement principle (the Liskov Substitution , hereinafter referred to as LSP )
Dependency Inversion principle (the Dependency inversion Principle , referred to as Dip )
Interface Isolation principle (the Interface segregation Principle , referred to
software was rewritten instead of reused. 4. Too high viscosity has two forms: the designed viscosity and the environment's viscosity. when changes are required, engineers usually find that there are more than one method to achieve the goal. However, some of these methods will retain the original design, while others will not (that is, these are hacks ). If a design compares engineer errors to a correct one, the design's viscosity will be high. High Viscosity of the environment means that th
random, and there are standards that can be followed, from which we can get flexibility and maintainability;
Responsibilities are assigned to the information experts related to this role, that is, the most suitable person to do the most appropriate thing.
When the knowledge of creating an object is distributed across the system, the spread of this phenomenon actually shows the confusion of Responsibility Assignment in system creation, there is a lack of information experts who have created k
Listen for configuration independent of the database server, solve ORA-12520 and ORA-12545 errors 1. Environment: 1. linux host ocm (192.168.217.130) as Database sys @ OCM> select * from v $ version; BANNER monitoring Oracle Database 11g Enterprise Edition Release 11.2.0.1.0-Production 2. linux host ocp (192.168.217.large) as an independent remote listener sys @ OCP> select * from v $ version; BANNER monito
function is only implemented once in your system, otherwise there will be a waste! There is no intersection between system use cases, so our code should not be repeated. From this perspective, dry is not just about code.
Dry focuses on information and behavior in the system in a single, obvious position. Just like you can guess the position of a regular expression in. net, you can guess it because it is reasonable.
Dry principle: how to effectively split system functions! The clear division o
Labels: Easy SRP als construction for building subclass applications
Solid principles that every developer should know
Single Responsibility Principle (SRP)
Why does it violate SRP?
What problems will this design bring in the future?
Open/closed principle (OCP)
How to Make It (animalsound) conform to OCP?
LSP)
Interface isolation principle (ISP)
Depende
Users01.dbf
Apply data files
3), modify the location of the database files
Start Mount mode
? startup Mount;
? Alter DATABASE rename file ' \oracle\oradata\ocp ystem01.dbf ' to ' \ORADATA\OCP ystem01.dbf '
? Alter DATABASE rename file ' \oracle\oradata\ocp\indx01.dbf ' to ' \oradata\ocp\indx01.dbf ';
Note Database fi
/app/oracle/oradata/ocm/tp2.dbf' size 100 m extent management local uniformsize 1 M;Gyj @ OCM> alter user gyj defaulttablespace tp1;Gyj @ OCM> conn gyj/gyjGyj @ OCM> create table t10 (id int, namevarchar2 (100 ));Gyj @ OCM> begin2 for I in 1 .. 200000 loop3 insert into t10values (I, 'gyj' | I );4 commit;5 end loop;6 end;7/Gyj @ OCM> col tablespace_name for a10Gyj @ OCM> col segment_name for a10Gyj @ OCM> selecttablespace_name, segment_name, extent_id, file_id, block_id, bytes, blocks fromdba_ext
When learning and using OO design, we should understand that the emergence of OO enables software engineers to describe software systems in a way closer to the real world. However, software, after all, is built on an abstract level. how close it is to the truth cannot replace the truth or be replaced by the truth.
The five principles of OO design are not isolated from each other. There is a certain correlation between them. One can be the strengthening or foundation of another principle. Violati
on information and behavior in the system in a single, obvious position. Just like you can guess the position of a regular expression in. net, you can guess it because it is reasonable.Dry principle: how to effectively split system functions! The clear division of duties ensures the uniformity of code to a certain extent.
V. OCP: Principle of Open-Close PrincipleClass should be closed for modification, open for extension; [classes shocould be open f
position. As you can guess, the regular expression is positioned in. NET, because it's reasonable to guess.
DRY principle: How to split the system function well! The clear boundaries of responsibility ensure the uniqueness of the code to some extent.
Five, Ocp:open-close principle open closure principle
The class should be closed to the modification and open to the extension; [Classes should is open for extension, and closed for modification.]
OCP i
Inheritance is a form of abstraction, and if a subclass throws out an exception that is more abstract than the parent class, it is equivalent to showing more attributes than the parent class , which is incompatible with the design principle of inheritance.The five principles of OO meanSRP (a Class A duty, a method to do only one thing),OCP (open for expansion, closed for modification),LSP (where the parent class appears, you can use subclass overrides
Transferred from: http://bbs.meizu.cn/viewthread.php?tid=3058847page=1My topic should be a bit longer. But the general section is as follows:1.LCD ram;--> This item is now over2.OCA Attachment Method;==> This temporarily cannot give the update time, but will be as soon as possible.3. Jieduan a machine so-called semi-anti-wear screen;-->12/23 11:51 has been updated. 4. The use of Meizu for such a long period of experience and advice;-------------------
incremental checkpoint in a strict sense. The incremental checkpoint only updates the control file and does not update the datafile header. If you know this, it is very good to verify. Use the BBED restoration artifact: hr @ OCP> select group #, status from v $ log; GROUP # STATUS ---------- ---------------- 1 INACTIVE 2 CURRENT 3 INACTIVEBBED> set file 1 block 1 FILE #1 BLOCK #1 BBED> p kcvfhckpstruct kcvfhckp, 36 bytes @ 484 struct kcvcpscn, 8 byte
Listening for configuration independent of database servers resolves ORA-12520 and ORA-12545 errors
Listening for configuration independent of database servers resolves ORA-12520 and ORA-12545 errors
I. Environment:
1. linux host ocm (192.168.217.130) as a databaseSys @ OCM> select * from v $ version; BANNER--------------------------------------------------------------------------------Oracle Database 11g Enterprise Edition Release 11.2.0.1.0-Production 2. linux host
maintain and reuse. You try to avoid repeating the code and actually do something about it. is to ensure that every requirement and function is implemented only once in your system, otherwise there is a waste. There is no intersection between system use cases, so our code should not be duplicated, and from this point of view dry is not just talking about code. DRY is concerned that the information and behavior within the system are placed in a single, distinct position. As you can guess, the re
, errors are introduced inadvertently, it is difficult to locate errors of this type. Some surveys show that there is not much time for error correction during the development process, and most of the time is for debugging and error discovery. In the Object-Oriented field, there is a well-known principle: OCP (open-closed principle). Its core implication is that a good design should be able to accommodate the increase of new functional requirements, h
backup policy formulation
RMAN backup learning notes
Oracle Database Backup encryption RMAN Encryption
-------------------------------------- Split line --------------------------------------Note:If the data file of the target database is different from the source database file pathRun {Set newname for datafile 1 to 'd: \ oradata \ ocp \ SYSTEM01.DBF ';Set newname for datafile 2 to 'd: \ oradata \ ocp \ UN
features are:
Based on regular expressions, the Docker image is automatically recycled.
The reason why the GC is mirrored is because the build fails to produce a series of none mirrors, which may not be useful. You can now clean up such a mirror based on a given regular expression.
Do the orphan data volume cleanup based on Docker 1.7.0. (Orphan data Volume: A container with data volume does not specify the-v parameter when it is deleted)
Provides a UI interface.
Hackathon's reports share too
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.