搜索""的结果
IPMItool使用很多人希望使用IPMI做带外管理。如果直接使用是有问题的。在OS层面上,你是可以修改IPMI的设置。也就是说,对于linux来说,有专门的驱动,让你修改底层IPMI的设置,包括修改你的IPMI的用户名和密码。安装IPMItool无论是centos,还是ubuntu都可以直接安装,源里都有yum -y install ipmitoolapt-get -y install ipmitoolyum install OpenIPMI OpenIPMI-tools
chkconfig ipmi on
service ipmi start内核加载modprobe ipmi_msghandlermodprobe ipmi_devintfmodprobe ipmi_si这个时候,你就基本可以对IPMI进行各种设置,你web可以做到的,命令行下都应该可以实现。DELL的<channel_no>是1,HP的是2 ,超微的是1,如果提示你输入channel_no 就输入就可以。查看IPMI用户IPMItool,可以查看本地的BMC的设置,查看本地是不需要身份验证。如果查看远程,需要提供IPMI 的用户名和密码。# ipmitool user list 1
ID Name Callin Link Auth IPMI Msg Channel Priv Limit
2 ADMIN false false true ADMINISTRATOR
重设管理员密码,2表示管理员ID,后面pwadmin就是管理员的新密码ipmitool user set password 2 pwadmi...
原来的数据库服务器使用rman进行全库的备份,然后再异地的服务器上恢复一模一样的数据库1.1 原服务器备份数据库第一步,查看数据库的实例名和DBIDconnected to target database: DB3 (DBID=2060124769, not open)第二步,进行全备份backup AS COMPRESSED BACKUPSET databaseinclude current controlfile format '/orabak/db_%d_%T_%s'plus archivelog format '/orabak/arch_%d_%T_%s' ;第三步,查看数据库文件的位置: /home/Oracle/oradata/db3/第四步,将备份文件arch_DB3_20140910_8和 db_ DB3_20140910_7复制异机上/home/oracle/orabak1.2 目标服务器上创建数据库第一步,创建实例名相同(db3),数据库文件的位置相同(/home/oracle/oradata/db3/)的数据库。 第二步,关闭实例,启动到nomount状态。Sql>startup nomount; 第三步,设置dbid和原数据库dbid相同rman target/Recovery Manager: Release 10.2.0.5.0 - Production on Thu Sep 11 19:53:50 2014Copyright (c) 1982, 2007, Oracle. All rights reserved.connected to target database: db3 (not mounted)RMAN> set dbid 206...
Oracle密码带特殊字符,如”@“号,在imp,exp里的写法。 做Oracle数据导出的时候,由于用户名的密码使用的是特殊字符,所以遇到了错误代码:“EXP-00056: 遇到 ORACLE 错误 12154” windows os: exp username/"""password"""@devdb --3个双引号扩密码 linux/unix os: exp "username/"password"@devdb" --1个双引号扩密码,1个单引号扩全部
mysql查询字段中带空格的值的sql语句 (1)mysql replace 函数 语法:replace(object,search,replace) 意思:把object中出现search的全部替换为replace 代码如下 update `news` set `content`=replace(`content`,' ','');//清除news表中content字段中的空格 这样就可以直接用like查询了。 (2)mysql trim 函数 语法:trim([{BOTH | LEADING | TRAILING} [remstr] FROM] str) 以下举例说明: 代码如下 mysql> SELECT TRIM(' phpernote '); -> 'phpernote' mysql> SELECT TRIM(LEADING 'x' FROM 'xxxphpernotexxx'); -> 'phpernotexxx' mysql> SELECT TRIM(BOTH 'x' FROM 'xxxphpernotexxx'); -> 'phpernote' mysql> SELECT TRIM(TRAILING 'xyz' FROM 'phpernotexxyz'); -&...
Cannot allocate new log - Private strand flush not complete Question: I just upgraded to Oracle 10g release 2 and I keep getting this error in my alert logThread 1 cannot allocate new log, sequence 509Private strand flush not completeCurrent log# 2 seq# 508 mem# 0: /usr/local/o1_mf_2_2cx5wnw5_.log What causes the "private strand flush not complete" message? Answer: This is not a bug, it's the expected behavior in 10gr2. You can get the message suppressed by increasing thedb_writer_processes parameter.The "private strand flush not complete" is a "noise" error, and can be disregarded because it relates to internal cache redo file management. It does not necessarily mean that you have a problem, but it depends if the error message is accompanied by other errors. You should check your transaction with used private redo size in the x$ktifp fixed table  ...
Linux windows php5.4+oracle instant clients OCI安装过程。 See the version for PHP 5.5 and Oracle Database 12c The easiest way to configure PHP to access a remote Oracle Database is to use Oracle Instant Client libraries. This note describes how to install PHP with the OCI8 Extension and Oracle Instant Client on Windows and Linux. The free The Underground PHP and Oracle Manual explains other installation options and contains more detail.OCI8 is the PHP extension for connecting to Oracle Database. OCI8 is open source and included with PHP. The name is derived from Oracle's C "call interface" API first introduced in version 8 of Oracle Database. OCI8 links with Oracle client libraries, such as Oracle Instant Client.Oracle Instant Client is a free set of easily installed libraries that allow programs to connect to local or remote Oracle Database instances. To use Instant Client an existing database is needed - Instant Client does not include one. Typically t...
检查oracle11g 报警日志时,发现有以下报错。Errors in file /data/app/oracle/diag/rdbms/hextrack/hextrack/trace/hextrack_j000_28066.trc: ORA-12012: 自动执行作业 765 出错ORA-12005: 不能安排过去时间的自动刷新检查下对应job编号的具体情况:select job, log_user, schema_user, what, LAST_DATE, LAST_SEC, THIS_DATE, THIS_SEC, NEXT_DATE, NEXT_SEC, INTERVAL from dba_jobs where job = 765 JOBLOG_USERSCHEMA_USERWHATLAST_DATELAST_SECTHIS_DATETHIS_SECNEXT_DATENEXT_SECINTERVAL765NEUDDCNEUDDCbeginTable_Analysis;end;2016/11/9 0:02:1500:02:15 2016/11/9 23:00:0023:0...
创建好普通用户时,执行rm,cp,rm 命令时,并没有提示删除,覆盖。不太安全,执行时如果出错,不容易看出来。修改普通用户环境变量后,就可以正常使用了。具体如下:[cwt@web ~]$ cat .bashrc# .bashrc# Source global definitionsalias rm='rm -i'alias cp='cp -i'alias mv='mv -i'if [ -f /etc/bashrc ]; then . /etc/bashrcfi# User specific aliases and functions[cwt@web ~]$ cat .bash_profile# .bash_profile# Get the aliases and functionsalias rm='rm -i'alias cp='cp -i'alias mv='mv -i'if [ -f ~/.bashrc ]; then . ~/.bashrcfi# User specific environment and startup programsPATH=$PATH:$HOME/binexport PATH
RHEL6.5,Centos6.5配置NTP服务器并调整时区,供内网服务器使用NTP同步时间内部有一台web服务器可以上外网,但是内网其它很多机器不能上网,需要同步时间,就把这台web服务器作成NTP服务器供内部网络使用。网上有不少资料,但是都是人云亦云,实际配置后,根本不能用,其实很简单。至于什么iptables防火墙,selinux,修改时区tzselect命令 ,自行脑补。这里我将硬件时间与系统时钟,修改成一样的,采用本地时钟。[root@web ~] # vi /etc/adjtime-4.943613 1478145537 0.0000001478145537LOCAL将UTC修改成LOCAL。注意系统时间不能相差太大。首先安装软件,比较简单,不说了。[root@web ~] # yum install ntp* -y修改NTP服务器端配置文件:[root@web ~]# cat /etc/ntp.conf # For more information about this file, see the man pages# ntp.conf(5), ntp_acc(5), ntp_auth(5), ntp_clock(5), ntp_misc(5), ntp_mon(5).driftfile /var/lib/ntp/drift# Permit time synchronization with our time source, but do not# permit the source to query or modify the service on this system.restrict default nomodify notrap noqueryrestrict -6 default nomodify&...
/user_projects/domains/base_domain/config/configCache is not readable. at weblogic.management.bootstrap.BootStrap.find(BootStrap.java:474) at weblogic.management.bootstrap.BootStrap.find(BootStrap.java:480) at weblogic.management.bootstrap.BootStrap.getConfigFiles(BootStrap.java:458) at weblogic.management.provider.internal.ConfigurationVersion.<init>(ConfigurationVersion.java:76) at weblogic.management.provider.internal.EditAccessImpl.<init>(EditAccessImpl.java:192) Truncated. see log file for complete stacktrace> <Oct 31, 2016 3:32:56 PM CST> <Error> <Management> <BEA-141265> <Could not get configuration lock used to serialize access to configuration files.> 一般有这种情况,是用不同用户启动过...
最新评论