| aiirii's profile孤独的狙击手PhotosBlogLists | Help |
|
7/26/2009 在RHEL5.3 x86_64部署了oracle grid control 10.2.0.5 花了三天终于成功部署了oracle grid control 10.2.0.5 x86_64 到RHEL5.3上面。
安装 oracle gc 10.2.0.3 很简单,直接using new database,中间有个oms的opmn无法启动,手动可以解决;但升级到10.2.0.5的时候,有一个link老是出错,网上很多教程,但基本上都是基于i386的,对64bit的都是采用slient的安装方法。
中间尝试先安装oracle 11g, 然后用using exists database, 又报版本不兼容。
一直认为是少了某个rpm造成,或者是gcc版本问题,走了不少弯路,不过,也因为如此,在metalink上找到很多相关,不相关的技术内容,最后发觉是自己大意,执行多一个upgrade造成。 7/17/2009 Configuring Security for the Application Server 10.1.3 Control Console oracle application server 10.1.3 和 10.1.2 的变化很大,新版本的asconsole是的一个运行在oc4j中的java application,而不是以前的独立模块,无法像以前那么简单的用emctl secure em来启用https。
网上有些文档指导,但测试过不成功,今天下午,花了点时间研究,终于解决问题。
停止服务--这步应该不是必须的,如果运行着服务,最后用 opmnctl reload 也可 opmnctl stopall
Create a Keystore and SSL Certificate for the Administration OC4j keytool -genkey -keyalg "RSA" -keystore keystore -storepass welcome -validity 999
Unbind the ascontrol Application from the Non-Secure Web Site cd $OAS_HOME/j2ee/home/config cp default-web-site.xml ascontrol-web-site.xml
删除掉默认绑定的ascontrol vi default-web-site.xml
Create a New HTTPS Web Site for the ascontrol Application vi ascontrol-web-site.xml
<?xml version="1.0"?>
<web-site xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/web-site-10_0.xsd" port="1810" protocol="https" secure="true" display-name="ASControl Secure HTTP Web Site" schema-major-version="10" schema-minor-version="0" > <default-web-app application="ascontrol" name="ascontrol" root="/" /> <access-log path="../log/ascontrol-web-access.log" split="day" /> <ssl-config keystore="/oracle/product/10.1.3/oracleas/j2ee/home/keystore/keystore" keystore-password="welcome" /> </web-site>
Register the New ascontrol HTTPS Web Site vi server.xml <web-site default="true" path="./default-web-site.xml" /> <web-site path="./ascontrol-web-site.xml" />
cd ../../../opmn/conf/ vi opmn.xml <port id="default-web-site" range="8889" protocol="ajp"/> <port id="ascontrol-web-site" range="1810" protocol="https"/>
启动服务,并检查端口是否启用了 opmnctl startall netstat -an | grep 1810 7/9/2009 情绪麻麻 今天情绪不好,脾气也比较大,和好几个人起了冲突,控制不住自己的。
觉得自己真是惹麻烦的家伙,做了不少事,但也惹了不少事,功过抵消?
最近装oracle application server 10.1.2和10.1.3装到手软,也许装了10个环境。什么rhel5.3 x86_64, rhel5.2 x86_64, rhel 4.7 x86_64, rhel 4.7 i386几个操作系统都安装成功。 USERS ACCOUNTS LOCKED & Kill Running Jobs 一生产环境,突然报用户无法登录,检查发现:
SQL> conn xxxxrpt/password
ERROR: ORA-28000: the account is locked 熟练的输入
[oracle@gddb ~]$ sqlplus "/ as sysdba" SQL> alter user xxxxrpt account unlock; User altered.
发觉问题依旧!
一问才知道一个开发的同事提交的dblink密码错误,另外一个用户的job又反复调用此连接;不断输入错误密码,导致用户被锁定;
以前也碰到过这个问题,但具体语法忘记了,dbconsole又没配置,无法直接在图形界面修改。
go了下,用如下命令先将帐号登录验证失败次数调整为无限制:
SQL> ALTER PROFILE DEFAULT LIMIT FAILED_LOGIN_ATTEMPTS UNLIMITED;
Profile altered.
SQL> alter user xxxxrpt account unlock;
User altered. 先解决用户
-- Run this query to identify which jobs are currently running:
select dbr.sid, s.serial#, s.username, dbj.*
from dba_jobs_running dbr, dba_jobs dbj, v$session s where dbr.job = dbj.job and s.sid = dbr.sid; 登录到指定用户:
begin
dbms_job.broken(9,true); end; 该job还在不断刷,执行:
alter system kill session '115,21914' immediate;
问题解决。
删除其它用户job:
SQL> exec sys.dbms_ijob.remove(job_id);
7/8/2009 command line 发布war/ear包到oas 10.1.3 新版本的oracle application server 10.1.3.4 和之前的10.1.2差别很大,今天下午花了点时间研究了下,在metalink上淘了淘,还是了解多很多东西。
测试了下命令行发布ear包的方式,测试成功。可参考:http://download-west.oracle.com/docs/cd/B25221_04/web.1013/b14432/adminclient.htm#sthref160
Using the admin_client.jar Utility
--主机名
[oracle@sauat home]$ hostname
sauat.xxxxx.com.cn --测试连接串URI是否有效
[oracle@sauat home]$ java -jar admin_client.jar deployer:oc4j:opmn://sauat.xxxxx.com.cn/home oc4jadmin <password> -validateURI URI deployer:oc4j:opmn://sauat.xxxxx.com.cn/home 有效且 已连接 --将原来的应用undeploy掉
[oracle@sauat home]$ java -jar admin_client.jar deployer:oc4j:opmn://sauat.xxxxx.com.cn/home oc4jadmin <password> -undeploy xxxbusiness
09/07/08 20:40:13 Notification ==>xxxbusiness 的 Application UnDeployer 开始。 09/07/08 20:40:13 Notification ==>从所有 Web 站点中删除对应用程序 xxxbusiness 的所有 Web 绑定
09/07/08 20:40:13 Notification ==>xxxbusiness 的 Application UnDeployer 完成。
--重新deploy ear包
[oracle@sauat home]$ java -jar admin_client.jar deployer:oc4j:opmn://sauat.xxxxx.com.cn/home oc4jadmin <password> -deploy -file /oracle/xxxbusinessApp.ear -deploymentName xxxbusiness -bindAllWebApps -parent default 09/07/08 20:47:59 Notification ==>xxxbusiness 的 Application Deployer 开始。 09/07/08 20:47:59 Notification ==>将档案复制到 /oracle/product/10.1.3.1/oracleas/j2ee/home/applications/xxxbusiness.ear
09/07/08 20:48:01 Notification ==>初始化 /oracle/product/10.1.3.1/oracleas/j2ee/home/applications/xxxbusiness.ear 开始...
09/07/08 20:48:01 Notification ==>解包 xxxbusiness.ear
09/07/08 20:48:10 Notification ==>解包 xxxbusiness.ear 完成
09/07/08 20:48:10 Notification ==>解包 xxxbusiness.war
09/07/08 20:48:22 Notification ==>解包 xxxbusiness.war 完成
09/07/08 20:48:22 Notification ==>初始化 /oracle/product/10.1.3.1/oracleas/j2ee/home/applications/xxxbusiness.ear 结束...
09/07/08 20:48:22 Notification ==>启动应用程序: xxxbusiness
09/07/08 20:48:22 Notification ==>初始化类加载程序
09/07/08 20:48:22 Notification ==>初始化 EJB 容器
09/07/08 20:48:22 Notification ==>加载连接器
09/07/08 20:48:22 Notification ==>启动资源适配器
09/07/08 20:48:22 Notification ==>初始化 EJB 会话
09/07/08 20:48:22 Notification ==>提交类加载程序
09/07/08 20:48:22 Notification ==>初始化 xxxbusiness 开始...
09/07/08 20:48:22 Notification ==>初始化 xxxbusiness 结束...
09/07/08 20:48:22 Notification ==>已启动的应用程序: xxxbusiness
09/07/08 20:48:22 Notification ==>将 Web 应用程序绑定到站点 default-web-site 开始...
09/07/08 20:48:22 Notification ==>将应用程序 xxxbusiness 的 xxxbusiness Web 模块绑定到上下文根 /xxxbusiness 下的站点 default-web-site
09/07/08 20:48:40 Notification ==>初始化 Web 应用程序 xxxbusiness 的 Servlet org.directwebremoting.servlet.DwrServlet
09/07/08 20:48:40 Notification ==>将 Web 应用程序绑定到站点 default-web-site 结束...
09/07/08 20:48:40 Notification ==>xxxbusiness 的 Application Deployer 完成。操作时间: 41615 msecs
7/7/2009 遭遇ORA-00600: internal error code, arguments: : [kkslpbp:1] 前天系统才上线,今天早上就报 ORA-00600: internal error code, arguments: : [kkslpbp:1]。
印象中是自己第一次遇到ORA-00600错误,好像是第一次,噢,以前还有一次。
以为很麻烦,但后来发觉
this ORA-00600 can occur in any release of 10g including 10.2.0.4 and will be fixed in 10.2.0.5.
I hit this error because of use WITH clause.
Function call stack trace in generated trace file may look like the following :
ksedst()->ksedmp()->ksfdmp()->kgerinv()->kgeasnmierr()->kkslpbp()->
kkspsc0()->kksParseCursor()->opiosq0()->opiall0()->opikpr().. 修改系统参数:
ALTER SYSTEM SET cursor_sharing='EXACT' SCOPE=BOTH;
观察了一段时间系统恢复正常。 7/2/2009 同机安装两个oracle遇到OUI-10094解决方法 今天在同一台机器安装第二个oracle 10g2,遇到
SEVERE: OUI-10094: Problem in saving inventory. Installation cannot continue.
$ORACLE_HOME/inventory/ContentsXML/oraclehomeproperties.xml (Permission denied) goolge网上已经有现成解决方法:
Can you try this
1. Create a new oraInst.loc file in the $ORACLE_HOME This file should have the follow content: inventory_loc=$ORACLE_HOME/oraInventory inst_group=<the_Unix_group_that_owns_the_software_installation> 2. After creating $ORACLE_HOME/oraInst.loc, start OUI with the following options: ./runInstaller -invPtrLoc $ORACLE_HOME/oraInst.loc The -invPtrLoc flag is used to locate the oraInst.loc file. 3. Install 10gR2 By following these steps, you are installing 10gR2 using a new (separate) oraInventory |
|
|