博客统计信息

51cto推荐博客
用户名:Yofee
文章数:25
评论数:41
访问量:21547
无忧币:637
博客积分:1363
博客等级:5
注册日期:2007-03-02

背景音乐

我的音乐

00:00 | 00:00

Show parameter recover     --查看归档日志文件的存放路径
Alter database archive     --修改数据库为归档模式
Archive log list   /  SQL> select name,log_mode from v$database;   查看数据库当时状态
修改归档日志文件的路径
[oracle@localhost 2010_06_07]$ mkdir /home/oracle/yofee/archive
[oracle@localhost 2010_06_07]$ exit
exit
SQL> alter system set log_archive_dest_1='location=/home/oracle/yofee/archive' scope=both;
System ..
今天talko服务器遇到了一个问题
输入#mysql -u root
ERROR 2002 (HY000):Can't connect to local MySQL server
随即上网找了一些解决办法 
方案1
这也是我所遇到的问题。这是不能通过mysql.sock连接MySQL,这个问题主要提示是:不能通过 '/tmp/mysql.sock'连到服务器,而php标准配置正是用过'/tmp/mysql.sock',但是一些mysql安装方法将 mysql.sock放在/var/lib/mysql.sock  /var/lib/mysql/mysql.sock或者其他的什么地方,你可以通过修改/etc/my.cnf文件来修正它(这必须得让他和/usr/lib/mysql/mysql_config 里面的sock..
先通过查看系统参数background_dump_dest找出存放alert log文件的地址:
SQL> show parameter background_dump_dest
NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
background_dump_dest     &nb..
搞了半天那个crontab+scp 的方法还是搞不定,杯具啊  = =..  数据量大得之BT 超乎想像~ 于是乎又得重新找点其它路子看能不能搞定。偶然发现rsync貌似挺不错的,不管咯,先试试再说。
 
rsync 是一个Unix系统下的文件同步和传输工具。rsync是用 “rsync 算法”提供了一个客户机和远程文件服务器的文件同步的快速方法。
Some features of rsync include
rsync 包括如下的一些特性:
* can update whole directory trees and filesystems
能更新整个目录和树和文件系统;
* optionally preserves symbolic links, har..
  NFS can mount a remote directory as local (ex. Server1:/yofee server2:/s1yofee),we can copy,modify,delete and save it as local files. You can deploy it with below workflow.
 
RemoteServer site:


1.login to server1 as root

2. Check whether the process of portmap works with this command:
# ps -aux|grep portmap

it should showed us the detail information about the process of portmap, otherwise we must start this service by manual

# /etc/rc.d/init.d/portmap start

3. Add these ..
 <<   1   2   3   4   5   >>   页数 ( 1/5 )