记录关于Devops运维,虚拟化容器云计算,数据库,网络安全等各方面问题。
背景:     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软件包位于...
 
0
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...
ORA-01940: cannot drop a user that is currently connecte  当我们删除某个用户与用户所有对象时,如果用户正当前有连接数据库,则会报错:SQL> conn /as sysdbaConnected.SQL> drop user fc cascade;drop user fc cascade*ERROR at line 1:ORA-01940: cannot drop a user that is currently connected.   通过v$session视图查出要删除的用户当前session信息,然后kill掉该用户session连接:SQL> select sid,serial# from v$session where username='FC';      SID   SERIAL#---------- ----------      150      9019SQL> alter system kill session '150,9019';System altered.    再执行dropuser操作便可成功:SQL>  drop user fc cascade;User dropped.
一个用户可以使用一个或多个表空间,一个表空间也可以供多个用户使用。用户和表空间没有隶属关系,表空是一个用来管理数据存储逻辑概念, 表空间只是和数据文件发生关系,数据文件是物理的,一个表空间可以包含多个数据文件,而一个数据文件只能隶属一个表空间。 1:既然一个用户可以指定多个表空间权限,那个这个user1创建了一个table1,这个table1被存放到哪个表空间去了? 2:这个table1是不是只可以存在在一个表空间里?你仔细看看建用户的脚本 create user uname identified by "" default tablespace TS_TAB_001 temporary tablespace TEMP profile DEFAULT quota unlimited on ts_tab_001 quota unlimited on ts_tab_002; -- Grant/Revoke role privileges grant connect to uname; grant resource to uname; 下面一句是指定了默认表空间: default tablespace TS_TAB_001 这两句是赋予用户可以管理这两个表空间: quota unlimited on ts_tab_001 quota unlimited on ts_tab_002 如果我们的建表的语句如下,则表建在了默认表空间中也就是ts_tab_001中 create table TEST ( ID NUMBER not null, NAME V...
Nginx反向代理及负载均衡实现过程 首先 安装nginx.各节点时间同步123[root@nginx ~]# ntpdate 202.120.2.101[root@web1 ~]# ntpdate 202.120.2.101[root@web2 ~]# ntpdate 202.120.2.1016.关闭防火墙与SELinux123456789101112[root@nginx ~]# service iptables stop[root@nginx ~]# chkconfig iptables off [root@nginx ~]# getenforce Disabled[root@web1 ~]# service iptables stop[root@web1 ~]# chkconfig iptables off [root@web1 ~]# getenforce Disabled[root@web2 ~]# service iptables stop[root@web2 ~]# chkconfig iptables off [root@web2 ~]# getenforce Disabled安装依赖包#yum install gcc pcre pcre-devel zlib zlib-devel openssl openssl-devel下载nginx#cd /usr/local/src#wget http://www.nginx.org/download/nginx-1.0.9.tar.gz#tar zxvf nginx-1.0.9.tar.gz#cd nginx-1.0.9配置安装:#./configure --prefix=/usr --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --pid-path=/var/run/nginx/nginx...
    总共269页,当前第133页 | 页数:
  1. 123
  2. 124
  3. 125
  4. 126
  5. 127
  6. 128
  7. 129
  8. 130
  9. 131
  10. 132
  11. 133
  12. 134
  13. 135
  14. 136
  15. 137
  16. 138
  17. 139
  18. 140
  19. 141
  20. 142
  21. 143