Thursday, September 23, 2010

Common operation of FreeBSD 5.2




1. Chinese locale
FreeBSD 5.2 currently supported by the Simplified Chinese locale has the following:
zh_CN.GB18030
zh_CN.GBK
zh_CN.EUC
zh_CN.eucCN
As zh_CN.EUC is not a formal Chinese locale, FreeBSD 5.2 Release of XFree86 removed the support of zh_CN.EUC only support zh_CN.eucCN, for zh_CN.GBK and zh_CN.GB18030 in most Chinese ports that have not yet appropriate support. Is still zh_CN.eucCN (using GB2312 encoding) locale is most formal, but also the most mature.
The Chinese locale set methods (bash, can be used chsh to change, fcitx input method):

Code:

# File / etc / profile
export LANG = "zh_CN.eucCN"
export LC_CTYPE = "zh_CN.eucCN"
export XMODIFIERS =''@ im = fcitx''

Zh_CN.eucCN by the zh_CN.EUC to trigger the ports of some new problems. If fcitx to start, but the control panel can not display Chinese characters. The solution is to open / usr / ports / chinese / fcitx / Makefile, change all the strings zh_CN.EUC zh_CN.eucCN can.

Of course, you can still set zh_CN.EUC, but you need to ln a zh_CN.EUC the locale:

Code:
cd / usr / share / locale & & ln-s zh_CN.eucCN zh_CN.EUC



2.X under the best terminal gnome-terminal
If you use bash, and like the Linux prompt is displayed, you can / etc / profile add the following:
Code:
if ["$ BASH"]; then
PS1 =''u @ h: w $''
else
if ["` id-u `"-eq 0]; then
PS1 =''#''
else
PS1 =''$''
fi
fi

If your gnome-terminal does not make any settings, / etc / profile will not play any role. Can be set as follows:
Code:
Start gnome2 (startx / usr/X11R6/bin/gnome-session) and start the gnome-terminal, open the menu and click on: Edit -> current profile (U )..., open the "Title and Command" option card, select the "run shell command" can be after the close.


3.mozilla other browser plug-ins (Flash, acrobat):
First, install linuxpluginwrapper the port:

Code:
cd / usr / ports / www / linuxpluginwrapper & & make all install clean

And then in / etc under the accession libmap.conf which reads as follows:
Code:
# / Etc / libmap.conf for FreeBSD 5.x
# $ Id: libmap.conf-FreeBSD5.x, v 1.1 2003/11/09 07:39:33 nork Exp $


# Flash6 with Opera is not avilable.

# Flash6 with Konqueror (temporary setting)
[/ Opt / mozilla / plugins / libflashplayer.so]
libpthread.so.0 liblthread.so.3
libdl.so.2 pluginwrapper/flash6.so
libz.so.1 libz.so.2
libstdc + +-libc6.2-2.so.3 liblstdc + +. so.4
libm.so.6 libm.so.2
libc.so.6 pluginwrapper/flash6.so

# Flash6 with Mozilla / Firebird / Galeon / Epiphany
[/ Usr/local/lib/linux-flashplugin6/libflashplayer.so]
libpthread.so.0 liblthread.so.3
libdl.so.2 pluginwrapper/flash6.so
libz.so.1 libz.so.2
libstdc + +-libc6.2-2.so.3 liblstdc + +. so.4
libm.so.6 libm.so.2
libc.so.6 pluginwrapper/flash6.so


# Acrobat with Opera
# [/ Usr/X11R6/lib/browser_plugins/nppdf.so]
# Libc.so.6 pluginwrapper / acrobat.so

# Acrobat with Konqueror (temporary setting)
# [/ Opt / mozilla / plugins / nppdf.so]
# Libc.so.6 pluginwrapper / acrobat.so

# Acrobat with Mozilla / Firebird / Galeon / Epiphany
# [/ Usr/local/Acrobat5/Browsers/intellinux/nppdf.so]
# Libc.so.6 pluginwrapper / acrobat.so



4.fat32, ntfs, cd9660 partition the problem of Chinese file name.
Chinese before the directory has gbfs port support, now can be realized without installing gbfs fat32 partition display Chinese file name. Is in the implementation of load-L zh_CN.eucCN mount_msDosfs parameters, such as:

Code:
mount_msdosfs-L zh_CN.eucCN / dev/ad0s1 / mnt / disk

Cd9660 for ntfs and format, then use the other parameters-C gbk, such as:
Code:
mount_cd9660-C gbk / dev/acd0 / cdrom

Code:
mount_ntfs-C gbk / dev/ad0s1 / mnt / win


5.gnome2 Chinese garbled in xmms and gimp problem.
Both procedures are based on older gtk +1.2, the problem can be garbled in the user directory set up. Gtkrc.mine file:
Code:
cat / usr/X11R6/share/themes/Default/gtk/gtkrc.zh_CN> $ HOME / .gtkrc.mine

Of course, you need according to your practical situation. Gtkrc.mine content, specific ways to refer to a number of posts in this forum.

6.nvidia official driver problems.
Driver Download: http://image.21tx.com/files/20050416/12254.gz
I configured the XFree86 nv driver that comes with (preferably xf86cfg). But after installed the nvidia driver can not start X, by constantly trying to only remove / etc/X11/XF86Config in
ChipSet
This line to start.






Recommended links:



BI, in the M & A growth?



FLV to PSP



GOOD Automation Tools



My favorite Themes And WALLPAPER



Compared with the performance of sybase vs. oracle



OGM to MKV



2009 CAXA Ten News



OGM TO MP4



How To Get All The Screen Colors Red, Green And Blue Values



Competitive STRATEGY: Legal spying



AMERICAN professional experts: seven double the efficiency and salary tips



Network And Internet COMPARISON



Legend of the case told a grand International arbitration claim was dismissed Wemade Results



Fireworks 4.0 Zhezhao Daquan ---- Second Class To Create A Bitmap Zhe Zhao



Tuesday, September 14, 2010

How to become a DBA from a beginner



Oracle's system is too large, and for beginners, there are some know how to make sense of what want to learn what the results are not adopted, so the learning experience to share about the hope that people just started an oracle overall understanding and less to go some detours.

1, location

oracle divided into two blocks, one is to develop a piece of the management. Development mainly write stored procedures, triggers something, there is to use Oracle's Develop tools to do form. Somewhat similar to the programmer, need to have strong logical thinking and creative ability, personally think that would be more difficult, is the young rice J; management will need to oracle database on a deep understanding of the principle, there is strong global maneuvering ability and thinking , greater responsibility, because a small mistake would be down off the entire database, relative the former, the latter experience more value.

Heavy responsibility for database management, few companies are willing to hire a person just to manage access to oracle database. For young people who have just graduated, you can choose to do first, the development has some experience in transition, to do database management. Of course, it still depends on who the actual conditions.

Second, learning

My approach is very simple: reading, thinking, writing notes, doing experiments, and then think, write notes

After reading what the theory that he stop and think about it, ask yourself a few why, then learned and the knowledge to make a point of note; to not understand or have questions about when, on doing the experiment, think about how can it be the same, the experimental results recorded. Thinking and doing experiments is to in-depth understanding of the knowledge points. The process of taking notes, but also clarify their own thinking process.

Learning process is to make a problem from the fuzzy to clear, then clear to the fuzzy process. Changes each time they are representative of your knowledge and learn a new point.

Process of learning also from point to a line from the line to network, from network to the surface process. When the points into lines, you will have the feeling of total clear insight. When the net to a plane, you are master of the

Many users, especially beginners who have problems to get a forum up question, the question before, you have not checked the book, he has not studied, there is no search on the Forum? This is called lazy thinking. By someone else to answer your question, let you quickly make sense of this knowledge is not hard at points, but through their own efforts to study it, not only a better understanding of the knowledge points, more importantly, the study process will improve your problem solving and analytical problems. Overall, the study did not delve into the attitude, No matter what, will not succeed.

Of course, the beginner is that people often encounter problems, no start, do not know where to find information, will be the forum to ask questions. But I think the time in question, is not it can ask other people how to analyze the problem? Where can I find relevant information? Rather than the answer to this question is to what? Teach One to fish than giving the fishing.

Now I say I am the problem solving process

First of all, the official website to know oracle: www.oracle.com there various versions of oracle database, application tools and authority of official documents. Furthermore, we should know http://metalink.oracle.com/ bought here or oracle oracle service partners can go in, there are many authoritative solutions and patches. Then there was some well-known Web site: asktom.oracle.com www.orafaq.net, www.dbazine.com. There is a lot of the voice of experience.

Encountered a problem. If the conceptual problems, the first time can find tahiti.oracle.com, here to give you the most detailed explanation. If the process is running out of what went wrong. Can go to metalink to see. If you want to know the treatment for a few days. Can go asktom. Of course. Here are just relative.

3, oracle system

oracle's system is very large, to learn it, we must first understand the oracle framework. Here, a brief talk about the oracle of the structure to allow beginners to have a general understanding of oracle.

1, the physical structure (the control files, data files, redo log files, parameter files, archived files, password files)

Control file: to maintain and verify database integrity contains the necessary information, for example, control file used to identify the data files and redo log files, a database at least one control file

Data files: data files stored

Redo log files: with the changes to the database record, so if failure can enable data recovery. A database requires at least two redo log files

Parameter file: define the characteristics of Oracle routines, for example, it contains some of the memory structure to adjust the size of SGA parameters

Archive: yes copy offline redo log files, these copies may be to recover from media failure is necessary.

Password file: Certification which users have permission to start and shut down Oracle routines

2, logic structures (table spaces, section, district, block)

Table space: a database of basic logical structure, a series of collection of data files.

Section: the object space occupied in the database

District: one-time set aside for data storage of a large

Block: ORACLE basic storage unit, the time specified in the establishment of a database

3, memory allocation (SGA and PGA)

SGA: is used to store database information memory area, the information sharing process for the database. It contains the Oracle server's data and control information, which is the Oracle server resides in the computer's real memory can be allocated, if not go down to the actual memory write virtual memory.

PGA: contains a single server process or a single background process data and control information, and contrary to several PGA SGA shared process is only used by a process of regional, PGA is allocated in the creation process of recovery in the termination process,

4, the background process (data write process, the log write process, system monitoring, process monitoring, checkpoint process, archiving process, service process, the user process)

Data write process: responsible for the changed data from the database buffer cache to write data files

Log write process: the redo log buffer to write the changes in online redo log files

System Monitoring: Check the consistency of the database, if necessary, open the database will start to restore the database

Process Monitoring: Oracle process responsible for a failure to clean up resources

Checkpoint process: When the buffer cache responsible for the changes in the permanent record in the database, the update control file and data files in the database state information.

Archiving process: each log in the log when switching to full backup or archiving group

Service process: the process of service users.

User process: the client is responsible for the user's SQL statement passed to the service process and query data back from the server segment.

5, oracle routine: Oracle routine by the SGA memory structure and background processes used to manage the database component. Routines can only open and use a database.

6, SCN (System Change Number): system change number, a serial number within the system maintenance. When the system needs to be updated automatically when the increase, he is the system in order to maintain data consistency and important sign of recovery.

Fourth, in-depth study

Management: You can test OCP certificate, prior to the oracle of learning a system, then see Oracle Concepts, oracle online document, the principles of the oracle will have a better understanding at the same time to start making some special studies, such as: RMAN, RAS, STATSPACT, DATAGUARD, TUNING, BACKUP & RECOVER so.

Development: For want Oracle developed to understand the basic architecture of Oracle completed, you can focus on the PL / SQL and Oracle development tools in this section. PL / SQL mainly including how to write SQL statements, how to use Oracle's own functions, how to write stored procedures, stored functions, triggers and so on. Oracle's development tools, Oracle is mainly their Developer Suite (Oracle Forms Developer and Reports Developer them), learn how to skillfully use these tools.

Introduction Introduction to the books of several of the oracle

oracle official document: "concept" of the oracle of the system mentioned above and the concept is very suitable for a beginner.

OCP teaching books, that is, STUDY GUIDE (SG).

Oracle8i Backup and Recovery Guide

Oracle8 senior management and optimization

Oracle8i PLSQL Programming

Oracle8 DBA Handbook

These books are the Machinery Industry Publishing House.

Describes several Web sites

http://tahiti.oracle.com oracle of official documents

http://metalink.oracle.com/ oracle technical support website. Need to purchase Oracle service can have an account, before landing, a large number of Knowledge Base, a large number of problem-solving experience.

http://www.oracle.com oracle's official website where you can down oracle software, official documents and get the latest news

http://www.dbazine.com/ Oracle Magazine

http://asktom.oracle.com

http://www.orafaq.net/

http://www.ixora.com.au/

http://www.oracle-base.com

http://www.dba-oracle.com/oracle_links.htm







Recommended links:



Hitachi trademark infringement, why still so arrogant?



How far FROM the focus to the expertise?



Watch cool mechanical picture production Process



reviews Covert Surveillance



Carried out in the end to P2P: the story about the Jxta (2)



Top Registry Tools



IP ADDRESS errors caused by routing anomalies located



Ts Video Format



F4v to flv



Real Player Converter H.264



Servlet's Context And Config



Mkv To Divx



Meiling: SELECT Game Gu Gu and back



E-cology In The Pan Micro Series 27