linux ÏÂÊÖ¹¤Ð½¨Êý¾Ý¿â
ÊÖ¹¤Ð½¨Êý¾Ý¿âcreate database
ÉíΪDBA,ÒªÓÀÔ¶¼ÇסÉõÓûòÕß½ûֹʹÓÃrmÃüÁÍò²»µÃÒÔµÄÇé¿öÏ£¬Ê¹ÓÃʱÔÚÇÃenterÒ²Òª¿´ÁËÓÖ¿´¡¢É÷ÖØÓÖÉ÷ÖزÅÐУ¡
Red Hat Enterprise 3 + Oracle 10g Release 2
$su – oracle
1---ÉèÖÃϵͳ»·¾³±äÁ¿£º
ORACLE_HOME=/opt/oracle/product/10.2
ORACLE_BASE=/opt/oracle
ORACLE_SID=dbtest
......
2---ϵͳ¹æ»®£º
ʵÀýÃû³ÆORACLE_SID=dbtest
Êý¾Ý¿âÃû³ÆDB_NAME=dbtest
3---ÊÖ¹¤´´½¨ÈçÏÂĿ¼£º
/opt/oracle/admin/dbtest/cdump
/opt/oracle/admin/dbtest/bdump
/opt/oracle/admin/dbtest/udump
/opt/oracle/admin/dbtest/pfile
/opt/oracle/oradata/dbtest/
/opt/oracle/oradata/dbtest/archive
4---½¨Á¢ÃÜÂëÎļþ£º
orapwd file=/opt/oracle/product/10.2/dbs/orapwd_dbtest password=superman
5---Ð޸IJÎÊýÎļþ£º
¸ñʽ£º/opt/oracle/product/10.2/dbs/init.ora
ʵÀý£º/opt/oracle/product/10.2/dbs/initdbtest.ora
ÄÚÈÝÈçÏ£º
---------------------------------------------------
dbtest.__db_cache_size=331350016
dbtest.__java_pool_size=4194304
dbtest.__large_pool_size=8388608
dbtest.__shared_pool_size=138412032
dbtest.__streams_pool_size=0
*._kgl_large_heap_warning_threshold=8388608
*.audit_file_dest='/opt/oracle/admin/dbtest/adump'
*.background_dump_dest='/opt/oracle/admin/dbtest/bdump'
*.compatible='10.2.0.1.0'
*.control_files='/opt/oracle/oradata/dbtest/control01.ctl','/opt/oracle/oradata/dbtest/control02.ctl','/opt/oracle/oradata/dbtest/control03.ctl'
*.core_dump_dest='/opt/oracle/admin/dbtest/cdump'
*.db_2k_cache_size=33554432
*.db_block_size=8192
*.db_domain=''
*.db_file_multiblock_read_count=128
*.db_files=4000
*.db_name='dbtest'
*.db_recovery_file_dest_size=4294967296
*.db_recovery_file_dest=''
*.log_archive_dest='/opt/oracle/oradata/dbtest/archive'
*.log_checkpoints_to_alert=FALSE
*.open_cursors=300
*.parallel_execution_message_size=65535
*.parallel_max_servers=128
*.pga_aggregate_target=209715200
*.processes=150
*.recyclebin='OFF'
*.remote_login_passwordfile='EXCLUSIVE'
*.replication_dependency_tracking=FALSE
*.session_cached_cursors=100
*.s
Ïà¹ØÎĵµ£º
°²×°mysql
sudo apt-get install mysql-servel-5.0 mysql-client-5.0
ÏÂÔØ°²×°¹ý³ÌÖУ¬»áÌáʾÊäÈërootÃÜÂë
°²×°CÓïÑÔ±à³Ì½Ó¿Ú£º
sudo apt-get install libmysqlclient15-dev
¸ü¶àapi ²é¿´£ºhttp://dev.mysql.com/doc/refman/5.0/en/c.html
Ïà¹ØmysqlÍ·ÎļþºÍ¿âÎļþ°²×°ÔÚ/usr/include/mysql/ºÍ/usr/lib/mysqlÄ¿ ......
¿ÉÒÔ½«Õâ¸ö½Å±¾·Å½øcrontab£¬ËûµÄÅäÖÆÎļþÔÚ /etc/crontabÖÐÿÌìÁ賿ִÐÐÒ»´Î£¬×Ô¶¯±¸·Ý Õâ¸ö½Å±¾Ã¿Ìì×î¶àÖ»Ö´ÐÐÒ»´Î£¬¶øÇÒÖ»±£Áô×î½üÎåÌìµÄ±¸·ÝÔÚ·þÎñÆ÷ÉÏ¡£
#!/bin/bash
#This is a ShellScript For Auto DB Backup
#Powered by aspbiz
#2004-09
#Setting
#ÉèÖÃÊý¾Ý¿âÃû£¬Êý¾Ý¿âµÇ¼Ãû£¬ÃÜÂ룬±¸·Ý·¾¶£¬ÈÕ־ ......
MYSQL°²×°
//½âѹ±àÒë°²×°
# tar xzvf mysql-5.0.27.tar.gz
# cd mysql-5.0.27
# ./configure -prefix=/home/redadmin/mysql
# make
# make install
# cd /home/redadmin/mysql/
# cp share/mysql/my-medium.cnf ./
# mv my-medium.cnf my.cnf
// my.confÎļþÐÞ¸Ä
# vi my.cnf
ÐÞ¸ÄÇ°£º
port &nb ......
whereis <³ÌÐòÃû³Æ>
²éÕÒÈí¼þµÄ°²×°Â·¾¶
-b Ö»²éÕÒ¶þ½øÖÆÎļþ
-m Ö»²éÕÒ°ïÖúÎļþ
-s Ö»²éÕÒÔ´´úÂë
-u ÅųýÖ¸¶¨ÀàÐÍÎļþ
-f Ö»ÏÔʾÎļþÃû
-B <Ŀ¼> ÔÚÖ¸¶¨Ä¿Â¼Ï²éÕÒ¶þ½øÖÆÎļþ
-M <Ŀ¼> ÔÚÖ¸¶¨Ä¿Â¼Ï²éÕÒ°ïÖúÎļþ
-S <Ŀ¼> ÔÚÖ¸¶¨Ä¿Â¼Ï²éÕÒÔ´´úÂë
locate <ÎļþÃû³Æ>
ÔÚÎļþË÷ ......
grep¡¢fgrepºÍegrepÃüÁî
Õâ×éÃüÁîÒÔÖ¸¶¨Ä£Ê½ËÑË÷Îļþ£¬²¢Í¨ÖªÓû§ÔÚʲôÎļþÖÐËÑË÷µ½ÓëÖ¸¶¨µÄģʽƥÅäµÄ×Ö·û´®£¬²¢´òÓ¡³öËùÓаüº¬¸Ã×Ö·û´®µÄÎı¾ÐУ¬ÔÚ¸ÃÎı¾ÐеÄ×îÇ°ÃæÊǸÃÐÐËùÔÚ µÄÎļþÃû¡£grepÃüÁîÒ»´ÎÖ»ÄÜËÑË÷Ò»¸öÖ¸¶¨µÄģʽ£»egrepÃüÁî¼ìË÷À©Õ¹µÄÕýÔò±í´ïʽ£¨°üÀ¨±í´ïʽ×éºÍ¿ÉÑ¡Ï£»fgrepÃüÁî¼ìË÷¹Ì¶¨×Ö·û´®£¬Ëü²» ......