搜索""的结果
具体如何安装zabbix与orabbix ,这里就不再说了。下面要监控的是gps_index与gps_data表空间文件大小。首先修改好 # vi /opt/orabbix/conf/query.props分别加入以下内容。注意加入 QueryList 中的 内容,分行时,要加\ gps_index,gps_data单独一行加入以上内容,如下图:最后需要添加 查询内容:gps_index.Query=select bytes from dba_data_files where tablespace_name = 'GPS_INDEX'gps_data.Query=select bytes from dba_data_files where tablespace_name = 'GPS_DATA'完成后,保存。最后重启orabbix服务。下一步就要到zabbix中,添加监控项与图表。如下图所示,按此方法添加 gps_index与gps_data的监控项。最后添加图表,命名为GPS,如下图所示:最后测试数据是否正常。
Orabbix无法获取Oracle DB Size和DB Files Size的解决方法这几天在研究Orabbix时发现在Zabbix中无法获取DB Size和DB Files Size的大小,,后来发现问题出在/opt/orabbix/conf/query.props文件的配置上:因为最新的Orabbix 1.2.3版本在解压安装后,默认的query.props文件内没有配置这两个选项的检测,所以需要手动加上,分别在此文件中两个地方加入配置,具体如下:1. 在“QueryList=”的最后加上“,dbfilesize,dbsize”,注意要用逗号格开;2. 另外加上,dbfilesize,dbsize的检测语句,如下:dbfilesize.Query=select to_char(sum(bytes/1024/1024), 'FM99999999999999990') retvalue from dba_data_filesdbsize.Query=SELECT to_char(sum( NVL(a.bytes/1024/1024/10 - NVL(f.bytes/1024/1024, 0), 0)), 'FM99999999999999990') retvalue \FROM sys.dba_tablespaces d, \(select tablespace_name, sum(bytes) bytes from dba_data_files group by tablespace_name) a, \(select tablespace_name, sum(bytes) bytes from dba_free_space group by tablespace_name) f \WHERE d.tablespace_name = a.tablespace_name(+) AND d.tablespace_name = f.tablespace_name(+) \AN...
Orabbix 是一个用来监控 Oracle 数据库实例的 Zabbix 插件。下载地址:http://www.smartmarmot.com/product/orabbix/download/ Orabbix插件的安装与配置 确保安装jdk环境,java version查看,没有则通过yum来安装JAVA:yum install java 1.在/opt目录下新建一个orabbix目录: [root@oracle orabbix]#midir -p /opt/orabbix(建议在此目录下,如果放置其他目录稍后需要更改orabbix的启动文件orabbix,启动文件默认写在opt/orabbix目录下 ) 2. 解压安装文件[root@oracle orabbix]#unzip orabbix-1.2.3.zip 3.赋予权限 [root@oracle orabbix]# chmod -R a+x orabbix/ 4 通过/opt/orabbix/conf/config.props.sample文件创建一个config.props文件: [root@oracle orabbix]#cp/opt/orabbix/conf/config.props.sample /opt/orabbix/conf/config.props 5. 编辑orabbix配置文件,具体如下 [root@oracle orabbix]#vi confi/config.props #comma separed list of Zabbix servers#ZabbixServerList=ZabbixServer1,ZabbixServer2ZabbixServ...
背景: A公司集成两台WebSphere Application Server群集和一台Oracle DB作为项目架构 拓扑: DB为后台Oracle服务器,Web1与Web2做WebSphere Application Server的IBM HTTP Server群集,Proxy为代理服务器,通过虚拟机IP让终端访问群集。 硬件与软件要求: 1.登陆至操作系统 作为root用户登录,您无法以非root用户标识正确安装产品; 选择允许所有者读写文件并允许其他人根据主要系统策略访问这些文件的umask。建议选择umask022 (chmod -R * 755 filename) 2.浏览器支持 下载并安装Mozilla Web浏览器(V1.4或V1.75或更高版本) 如果您没有Mozilla 浏览器,从http://www.mozilla.org/releases 下载并安装浏览器。 3.导出受支持浏览器位置 例如Mozilla软件包位于...
Zabbix 通过pyora监控oracle1.oracle客户端的安装从oracle官方网站上下载客户端,devel和sqlplus程序或者从以下网址下载 http://pan.uu456.com/s/1mgx8Fsk以root用户安装rpm –ivh oracle-instantclient11.2-basic-11.2.0.4.0-1.x86_64.rpmrpm –ivh oracle-instantclient11.2-devel-11.2.0.4.0-1.x86_64.rpmrpm –ivh oracle-instantclient11.2-sqlplus-11.2.0.4.0-1.x86_64.rpmvim /root/.bashrc 添加export ORACLE_HOME=/usr/lib/oracle/11.2/client64export LD_LIBRARY_PATH=/usr/lib/oracle/11.2/client64/libexport TNS_ADMIN=/usr/lib/oracle/11.2/client64/network/adminexport PATH=$PATH:$ORACLE_HOME/bin设置好环境变量之后执行source /root/.bashrc创建文件 /etc/ld.so.conf.d/oracle.conf添加/usr/lib/oracle/11.2/client64/lib执行命令 ldconfig创建连接文件在ORACLE_HOME目录下创建以下目录network/admin,并创建文件tnsnames.ora,内容如下:vim /usr/lib/oracle/11.2/client64/network/admin/tnsnames.oraorcl =(DESCRIPTION =(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.10)(PORT = 1521)) )(CONNECT_DATA =(SERVICE_NAME = orcl)))...
Configuring a Squid Server to authenticate off Active Directory Warning: Any example presented here is provided "as-is" with no support or guarantee of suitability. If you have any further questions about these examples please email the squid-users mailing list. ContentsConfiguring a Squid Server to authenticate off Active DirectoryIntroductionExample EnvironmentPrerequisitesDNS ConfigurationNTP ConfigurationInstall and Configure KerberosInstall Squid 3AuthenticationKerberosNTLMBasicInstall negotiate_wrappersquid.conf IntroductionThis wiki page covers setup of a Squid proxy which will seamlessly integrate with Active Directory using Kerberos, NTLM and basic authentication for clients not authenticated via Kerberos or NTLM. If you are running Debian or would like more verbose instructions including access groups this link may be of interest. Example Environmentthe following examples are utilised, you should update any configuration examples with your clients domain, hostname...
squid 处理长ACL列表 ACL列表某些时候非常长。这样的列表在squid.conf文件里难以维护。你也可能想从其他资源里自动产生squid ACL列表。在如此情况下,你可以从外部文件里包含ACL列表。语法如下: acl name "filename" 这里的双引号指示squid打开filename,并且将它里面的内容分配给ACL。例如,如下的ACL太长了: acl Foo BadClients 1.2.3.4 1.2.3.5 1.2.3.6 1.2.3.7 1.2.3.9 ... 你可以这样做: acl Foo BadClients "/usr/local/squid/etc/BadClients"
http_access deny Foo
将IP地址放在BadClients文件里: 1.2.3.4
1.2.3.5
1.2.3.6
1.2.3.7
1.2.3.9
ORA-32004: 指定了废弃/过时的参数问题:SQL> conn sys/sys as sysdba;已连接。SQL> startupORA-32004: 指定了废弃/过时的参数ORA-01081: 无法启动已在运行的 ORACLE - 请首先关闭它SQL> shutdown immeidate;SP2-0717: 非法的 SHUTDOWN 选项SQL> shutdown;数据库已经关闭。已经卸载数据库。ORACLE 例程已经关闭。SQL> startupORA-32004: obsolete and/or deprecated parameter(s) specifiedORACLE 例程已经启动。解决:使用语句:SQL> ALTER SYSTEM RESET log_archive_startSCOPE=SPFILE SID='*';例子:SQL> startupORA-32004: obsolete and/or deprecated parameter(s) specifiedORACLE 例程已经启动。Total System Global Area 293601280 bytesFixedSize 1290208 bytesVariableSize 260046880 bytesDatabaseBuffers 25165824 bytesRedoBuffers &...
drop user和drop user cascade的区别 oracle数据库中删除用户有两种命令,一种是 drop user xxx;另外一个种是drop user xxx cascade;2.官方的说明如下:Dropping a Database User: Example If user Sidney's schema contains no objects, then you can drop sidney by issuing the statement:DROP USER sidney; If Sidney's schema contains objects, then you must use the CASCADE clause to drop sidney and the objects:DROP USER sidney CASCADE; 大概就是说drop user xxx必须是这个用户下面没有任何对象;这样才可以使用这个命令,否则就会报错;如果用户下面有对象,就得用drop user xxx cascade来删除这个用户以及这个用户下的所有对象了;3.测试实验;环境:我的DELL笔记本电脑,系统是XP,oracle10g 32位脚本如下:C:\Documents and Settings\Administrator>sqlplus /nologSQL*Plus: Release 10.2.0.1.0 - Production on 星期一 12月 26 22:46:12 2011Copyright (c) 1982, 2005, Oracle. All rights reserved.SQL> conn / as sysdba;已连接。SQL> show user;USER 为 "SYS"SQL> create user mary identif...
最新评论