2009年3月30日星期一

Solution for REP-0004: Unable to open user preference file

Report Builder:Warning: REP-0004: Unable to open user preference file.
Oracle E-Business Suite R12 Report Builder:Release 10.1.2.2.0 Warning: REP-0004: Unable to open user preference file.

Error:

REP-0004: Warning: Unable to open user preference file.

Report Builder: Release 10.1.2.2.0 - Production on Mon Nov 17 14:43:42 2008


Solution

Copy prefs.ora from $ORACLE_HOME/tools/admin to $HOME

cp $ORACLE_HOME/tools/admin/prefs.ora $HOME/prefs.ora

2009年3月27日星期五

xp 开启共享权限(可以通过\\ip\c$访问)

1.检查guest账户是否开启

XP默认情况下不开启guest账户,因此些为了其他人能浏览你的计算机,请启用guest账户。同时,为了安全请为guest设置密码或相应的权限。当然,也可以为每一台机器设置一个用户名和密码以便计算机之间的互相访问。

2.检查是否拒绝Guest用户从网络访问本机

当你开启了guest账户却还是根本不能访问时,请检查设置是否为拒绝guest从网络访问计算机,因为XP默认是不允许guest从网络登录的,所以即使开了guest也一样不能访问。在开启了系统Guest用户的情况下解除对Guest账号的限制,点击“开始→运行”,在“运行”对话框中输入 “GPEDIT.MSC”,打开组策略编辑器,依次选择“计算机配置→Windows设置→安全设置→本地策略→用户权利指派”,双击“拒绝从网络访问这台计算机”策略,删除里面的“GUEST”账号。这样其他用户就能够用Guest账号通过网络访问使用Windows XP系统的计算机了。

3.改网络访问模式

XP默认是把从网络登录的所有用户都按来宾账户处理的,因此即使管理员从网络登录也只具有来宾的权限,若遇到不能访问的情况,请尝试更改网络的访问模式。打开组策略编辑器,依次选择“计算机配置→Windows设置→安全设置→本地策略→安全选项”,双击“网络访问:本地账号的共享和安全模式”策略,将默认设置“仅来宾—本地用户以来宾身份验证”,更改为“经典:本地用户以自己的身份验证”。

这样即使不开启guest,你也可以通过输入本地的账户和密码来登录你要访问的计算机,本地的账户和密码为你要访问的计算机内已经的账户和密码。若访问网络时需要账户和密码,可以通过输入你要访问的计算机内已经的账户和密码来登录。

若不对访问模式进行更改,也许你连输入用户名和密码都办不到,\\computername\guest为灰色不可用。即使密码为空,在不开启guest 的情况下,你也不可能点确定登录。改成经典模式,最低限度可以达到像2000里没有开启guest账户情况时一样,可以输入用户名和密码来登录你要进入的计算机。也许你还会遇到一种特殊的情况,请看接下来的。

我们可能还会遇到另外一个问题,即当用户的口令为空时,即使你做了上述的所有的更改还是不能进行登录,访问还是会被拒绝。这是因为,在系统“安全选项”中有“账户:使用空白密码的本地账户只允许进行控制台登录”策略默认是启用的,根据Windows XP安全策略中拒绝优先的原则,密码为空的用户通过网络访问使用Windows XP的计算机时便会被禁止。我们只要将这个策略停用即可解决问题。在安全选项中,找到“使用空白密码的本地账户只允许进行控制台登录”项,停用就可以,否则即使开了guest并改成经典模式还是不能登录。经过以上的更改基本就可以访问了,你可以尝试选择一种适合你的方法。

2009年3月22日星期日

Lotus graph install on ubuntu 8.04

安装过程很简单,直接sudo ./setup.sh就可以了
需要切换到英文环境,否则会有乱码。
需关闭桌面特效,否则会出现弹出的安装向导画面是空的
检查一下有没有安装libstdc++5

如显示用 - concole或者-silent
我以前也遇到在安装的时候提示-console或者-silent的情况,安装了libstdc++5之后,再安装就ok了

2009年3月16日星期一

计算当前日期位第几周公式

REM {求出 InputDay 是在当年的第几周};
InputDay:=@Today;
YD:=@TextToTime(@Text(@Year(InputDay))+"/01/01");

YS:=@Text(@Year(InputDay))+@Text((@Adjust(InputDay; 0; 0; - ( @Weekday( InputDay) - 2 ); 0; 0; 0 )-@Adjust( YD; 0; 0; - ( @Weekday(YD ) - 2 ); 0; 0; 0 ))/7/86400+1);

REM {设置格式为yyww};
@right (YS;4);

Format用法详解 转自 (月影无限)

[分享]Format用法详解

以前一直自已为能写了一个中文日期的CLASS很了不起,也在论坛中发表了,可。。。
前几天在查Format函数时,发现format竞可以很轻松的达到这个目的,倒~~~~
Format$(Now,"EEOA")
只要这么一句~~~~~就可以得到“ 二○○六年五月二十六日”
亏我还得写得那么多。。。
所以对FORMAT函数进行研究,参照HELP文件,把一些用法写了下来。
现拿给大家共享。。。

---------------------------------
Format[$] ( expr [ , fmt ] )
format 返回变体型
format$ 强制返回为文本
--------------------------------
数字类型的格式化
--------------------------------

固定格式参数:
General Number 普通数字,如可以用来去掉千位分隔号
format$("100,123.12","General Number") 返回值 100123.12

Currency 货币类型,可添加千位分隔号和货币符号
format$("100123.12","Currency") 返回值 ¥100,123.12

Fixed 格式为带两位小数的数字
format$("100123","Currency") 返回值 100123.00

Standard 标准,即带千位分隔号和两位小数
format$("100123","Currency") 返回值 100,123.00

Percent 百分数
format$("100123","Percent") 返回值 10012300.00%

Scientific 科学记数法
format$("100123","Scientific") 返回值 1.00E+05

Yes/No 当值为0时返回 NO,否则返回 YES
format$("100123","Yes/No") 返回值 Yes

True/False 当值为0时返回 False,否则返回 True
format$("100123","True/False") 返回值 True

On/Off 当值为0时返回 Off,否则返回 On
format$("100123","Yes/No") 返回值 On
自定义格式参数

"" 不进行格式化 返回值 原值

0 占位格式化,不足补0
format$("100123","0000000") 返回值 0100123

# 占位格式化,不足时不补0
format$("100123","#######") 返回值 100123

. 强制显示小数点
format$("100123.12",".000") 返回值 100123.120

% 转化为百分数,一个%代表乘以100
format$("10.23","0.00%") 返回值 1023.00%
format$("10.23","0.00%%") 返回值 102300.00%%

, 以千为单位格化
format$("10.23",",") 返回值 0
format$("10010.23",",") 返回值 10
format$("10010.23",",0.00") 返回值 10.01

E- E+ e- e+ 显示为科学记数(要注意格式语句,否则会和E的其它含义相混)
Format$(12.5,"0.00E+00") 返回值 1.25E+01

$ 强制显示货币符号
format$("10.23","$0.00") 返回值 ¥10.23

- + ( ) space 按位置显示本样
Format$("1234.56","-(0.00)") 返回值 -(1234.56)

\ 转义符,显示出特殊符号
Format$("1234.56","\#.00") 返回值 #1234.56

"ABC" 显示双引号 (" ") 之内的字符串。如在代码中想在 format 中包含一个字符串,必须用 Chr(34) 将文本括起来(34 为双引号 ("))
Format$(123.45,"TTT") 返回值 TTT
注:当双引号中的文本包含特殊的参数符号如e,要使用转义符"\",否则会按e的作用显示

; 类似多目运算符的作用。

当共有 四 部分时,
当大于0时,按第一部分进行格式化,
当小于0时按第二部分进行格式化,
当等于0时按第三部分进行格式化,
当为null值时,按第四部分进行格式化。如:
Format$(0,"0.00;负数;零;空") 返回值 零

当共有 三 部分时,
当大于0时,按第一部分进行格式化,
当小于0时按第二部分进行格式化,
当等于0时按第三部分进行格式化,如:
Format$(-10,"0.00;ttt;零") 返回值 ttt

当共有 两 部分时,
当大于或等于0时,按第一部分进行格式化,
当小于0时按第二部分进行格式化,
Format$(-123,"0.00;abc") 返回值 abc
Format$(123,"0.00;abc") 返回值 123.00

当共有 一 部分时,按分号左边进行格式化

---------------------------------
日期类型的格式化
---------------------------------
注意:在中文操作系统中,系统自动将月份输为如:五月,而非 May

固定格式参数
General Date 基本类型
Format$(Now,"General Date") 返回值 2006-5-25 14:56:15

Long Date 操作系统定义的长日期
Format$(Now,"Long Date") 返回值 2006年5月25日

Medium Date 中日期(yy/mmm/dd)
Format$(Now,"Medium Date") 返回值 06-5月-25

Short Date 操作系统定义的短日期
Format$(Now,"Short Date") 返回值 2006-5-25

Long Time 操作系统定义的长时间
Format$(Now,"Long Time") 返回值 15:06:36

Medium Time 带AM/PM的12小时制,不带秒
Format$(Now,"Medium Time") 返回值 03:08 PM

Short Time 24时制的时间,不带秒
Format$(Now,"Short Time") 返回值 15:08

自定义格式参数
: 用来标识时间字符的间隔
Format$(Time(),"hh:nn") 返回值 15:25

/ 用来标识日期字符的间隔
Format$(now,"yyyy/mm/dd") 返回值 2006-05-25

c 格式化为国标的日期和时间
Format$(Now,"c") 返回值 2006-5-25 14:56:15

y 一年中的第几天
Format$(Now,"y") 返回值 145

d 一个月中的第几天(1-366)
Format$(Now,"d") 返回值 25

dd 当小于10时前面带0的天数(01-31)
Format$("2006-1-7","dd") 返回值 07

ddd 周几
Format$(Now,"ddd") 返回值 周四

dddd 星期几
Format$(Now,"dddd") 返回值 星期四

ddddd 显示标准日期
Format$(Now,"ddddd") 返回值 2006-05-25

dddddd 长日期
Format$(Now,"dddddd") 返回值 2006年5月25日

w 一个星期中的第几天
Format$(Now,"w") 返回值 5

ww 一年中的第几周
Format$(Now,"ww") 返回值 21

m 月数(注:当用于时间时,也可以表时为分钟)
Format$(Now,"m") 返回值 5
Format$(Now,"h:m") 返回值 16:11

mm 当小于10时前面带0的月数(注:当用于时间时,也可以表时为带0的分钟)
Format$(Now,"m") 返回值 05
Format$(Now,"hh:mm") 返回值 16:09

mmm 月份
Format$(Now,"mmm") 返回值 五月

q 一年中的第几季(1-4)
Format$(Now,"q") 返回值 2

yy 两位数的年份(00-99)
Format$(Now,"yy") 返回值 06

yyyy 四位数的年份(0100-9999)
Format$(Now,"yyyy") 返回值 2006

h 一天中的第N小时(0-23)
Format$(Now,"h") 返回值 16

hh 当小于10时带0的小时数(00-23)
Format$("7:30:28","hh") 返回值 07

n 一小时的分钟数(0-59)
Format$("7:30:28","n") 返回值 30

nn 当小于10时带0的分钟数(00-59)
Format$("7:3:28","n") 返回值 03

s 一分钟中的秒数(0-59)
Format$("7:30:8","s") 返回值 8

ss 当小于10时带0的分钟数(00-59)
Format$("7:3:8","ss") 返回值 08

ttttt 标准时间,小时数当小于10时不带0,与h:mm:ss相同
Format$("7:3:28","ttttt") 返回值 7:03:28

AM/PM 显示当前为AM或为PM
Format$(Now,"AM/PM") 返回值 PM

A/P 显示当前为A或为P
Format$(Now,"A/P") 返回值 P

AMPM 对0至2359的数值进行判断是AM还是PM,可以看作是同等于对00:00至23:59的数字进行判断,如1000可以看作是10:00。
Format$(1000,"AMPM") 返回值 AM

联合格式化

m/d/yy Format$(Now,"m/d/yy") 返回值 5-25-06

d-mmm-yy Format$(Now,"d-mmm-yy") 返回值 25-5月-06

d-mmmm Format$(Now,"d-mmmm") 返回值 25-五月

mmmm-yy Format$(Now,"mmmm-yy") 返回值 五月-06

hh:mm AM/PM Format$(Now,"hh:mm AM/PM") 返回值 04:50 PM

h:mm:ss a/p Format$(Now,"h:mm:ss a/p") 返回值 4:51:38 p

h:mm Format$(Now,"h:mm") 返回值 16:51

h:mm:ss Format$(Now,"h:mm:ss") 返回值 16:51:38

m/d/yy h:mm Format$(Now,"m/d/yy h:mm") 返回值 5-25-06 16:54

----------------------------------
文本类型的格式化
----------------------------------
; 当两部分时,则第一部分为非空格式化,第二部分为null值或空值的格式化表达式
@ 匹配位置插入格式化文本,占位位置不存在时,显示空白(空字符串)

只有一个@符号时,是在最后面加上格式化文本
Format$("CHIN","@a") 返回值 CHINa

有多个@占位符,是按从右至左匹配,并在相应的位置上显示格式化文本
Format$("CHIN","@a@@") 返回值 CHaIN

当与 ! 配合时,则变为从左至右匹配
Format$("CHIN","!@a@@") 返回值 CaHIN

当占位符比原文本字符串多时,刚在相应位置上添加空格
Format$("C","@@a@") 返回值 空白空白aC

& 字符占位符。除在当占位位置不存在时,不显示外,其余均与@相同

当占位符比原文本字符串多时,刚在相应位置上添加空格
Format$("C","&&a&") 返回值 aC

< 强制小写。将所有字符以小写格式显示。
Format$("I love you","<") 返回值 i love you

> 强制大写。将所有字符以大写格式显示。
Format$("I love you",">") 返回值 I LOVE YOU

! 强制由左而右填充字符占位符。缺省值是由右而左填充字符占位符。
Format$("CHIN","!@a@@") 返回值 CaHIN

----------------------------------------
强制使用中文格式的日期时间
----------------------------------------
aaaa 星期
Format$(Now,"aaaa") 返回值 星期五

O 中文月份
Format$(Now,"O") 返回值 五月

o 单字节月份
Format$(Now,"o") 返回值 5月

A 中文日期
Format$(Now,"A") 返回值 二十六日

a 单字节日期
Format$(Now,"a") 返回值 26日

E 短中文年份
Format$(Now,"E") 返回值 六年

e 单单字节年份
Format$(Now,"e") 返回值 6年

EE 中文年份
Format$(Now,"EE") 返回值 二○○六年

ee 单字节年份
Format$(Now,"ee") 返回值 2006年

想不到中文日期的问题就这么容易解决:
Format$(Now,"EEOA") 返回值 二○○六年五月二十六日

2009年3月13日星期五

EBS concurrent manager management

You must start internal Manager by ./adcmctl.sh on system

2009年3月10日星期二

EBS R12 功能与菜单对照表

Form Menu Web Function
Security User Menu - System Administrator GUI Security->User ORACLE Usernames

.bash_profile修改后报syntax error: unexpected end of file原因与修正

profile 内容
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH
unset USERNAME
PATH=$PATH:$HOME/bin:/usr/java/jdk1.5.0_15/bin:/usr/java/jdk1.5.0_15/jre/bin
export PATH
. /d01/oracle/PROD/apps/apps_st/appl/APPSPROD_ebsap.env
错误提示
login as: appl
appl@hostname's password:
Last login: Tue Mar 10 09:16:42 2009 from 10.20.25.16
: command not found
-bash: /home/appl/.bash_profile: line 17: syntax error: unexpected end of file
-bash-3.00$ : command not found

造成错误的原因:
profile的最后一行位回车。
删除回车后问题解决。

EBSr12 安装时RW-50004 错误的解决办法

注意一般产生这个错误有两个原因
1
java 环境变量设置的问题
如下
建立LINKln -s jdk /usr/java/jdk1.5.0_10
/etc/profile增加以下变量:
export JAVA_HOME="/usr/jdk"
export CLASSPATH=$JAVA_HOME/lib:$JAVA_HOME/jre/lib:.
export PATH=$PATH:$JAVA_HOME/bin:$JAVA_HOME/jre/bin
在用户applvis/oravis目录下的.bash_profile中添加如下变量说明
PATH=$PATH:$HOME/bin:/usr/java/jdk1.5.0_10/bin:/usr/java/jdk1.5.0_10/jre/bin
export PATH
我的错误造成的原因是安装了jdk1.5.0_15但是按上述设置操作。(上面的1.5.0_10改为1.5.0_15就可以解决这个问题了)
造成了RW-50004错误
2
是对安装目录是否具有完全控制的权限。
如果没有也会产生这个错误。
附件儿为metalink的解决办法,不过是针对64位版本的

Metalink解决办法

Subject:

Getting RW-50010 and RW-50004 Errors When Installing Oracle Applications Release 12.0 on Linux 64-bit

Doc ID:

468695.1

Type:

PROBLEM

Modified Date:

13-JUN-2008

Status:

MODERATED

In this Document
Symptoms
Cause
Solution
References


This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) process, and therefore has not been subject to an independent technical review.

Applies to:

Application Install - Version: 12.0
Linux x86-64

Symptoms

Getting the following error when trying to install Oracle Applications Release 12.0 on a 64-bit Linux platform:

RW-50010: Error: - script has returned an error: 127
RW-50004: Error code received when running external process. Check log file for details.

Cause

The install script uses JRE from the /tmp/RapidInstall/jre/Linux/ location

This issue only occurs if running rapidwiz from a startCD outside the stage area or if installing directly from the install DVDs. This has been raised with Oracle Development in Bug 7169043

Solution

Make sure all setup steps were completed based on the following note:

Note 416305.1 - Oracle Applications Installation and Upgrade Notes Release 12 (12.0) for Linux (64-bit)

Until Bug 7169043 is resolved, use the following workaround.

Workaround

- Create the following directory if not present:

mkdir /tmp/RapidInstall/jre/Linux

- Copy the contents of /tmp/RapidInstall/jre/Linux_x64 to this directory:

cp -r /tmp/RapidInstall/jre/Linux_x64 /tmp/RapidInstall/jre/Linux



Alternatively, stage the entire DVD media using adautostg.pl, and install from the startCD within the stage area

References

Note 416305.1 - Oracle Applications Installation and Upgrade Notes Release 12 (12.0.4) for Linux (64-bit)
Bug 7169043 - NON-STAGED R12 INSTALL FAILS FOR LINUX_X64 ON ADRUN10G.SH, ADRUNIAS.SH ETC



Help us improve our service. Please email us your comments for this document. .

***************************************************************************

Applies to:

Application Install - Version: 12.0.4
This problem can occur on any platform.

Symptoms

On R12 in Test env :
When attempting to Fresh install the R12 using the lastest Rapidwiz version 12.0.4.7, the
following error occurs.

ERROR

Statusstring Registering Applications Technology Stack

Executing command: /u050/stage/ebus/StageR12/startCD/D
isk1/rapidwiz/jre/Solaris/1.5.0//bin/java -DCONTEXT_VALIDATED=true -mx512M -cla
sspath /u050/stage/ebus/StageR12/startCD/Disk1/rapidwiz/jlib/java:/u050/stage/eb
us/StageR12/startCD/Disk1/rapidwiz/jlib/xmlparserv2.jar:/u050/stage/ebus/StageR1
2/startCD/Disk1/rapidwiz/jlib/ojdbc14.jar:/u050/stage/ebus/StageR12/startCD/Disk
1/rapidwiz/jlib/oui/OraInstaller.jar:/u050/stage/ebus/StageR12/startCD/Disk1/rap
idwiz/jlib/oui/ewt3.jar:/u050/stage/ebus/StageR12/startCD/Disk1/rapidwiz/jlib/ou
i/share.jar:/u050/stage/ebus/StageR12/startCD/Disk1/rapidwiz/jlib/oui/srvm.jar o
racle.apps.ad.clone.ApplyAppsTechStack -e /u036/oracle/UATE/inst/apps/UATE_dev1z
one5/appl/admin/UATE_dev1zone5.xml -stage /u050/stage/ebus/StageR12/startCD/Disk
1/rapidwiz -showProgress -phase reg

RW-50010: Error: - script has returned an error: 1
RW-50004: Error code received when running external process. Check log file
for details.
Running APPL_TOP Install Driver for UATE instance
Please refer to the remaining logs on applications node at -
/u036/oracle/UATE/inst/apps/UATE_dev1zone5/logs/06170857.log

Processing DriverFile = /u050/stage/ebus/St

Cause

The newer Rapidwiz version 12.0.4.7 or 12.0.4.8 looks corrupted.

This cause is outlined in the following bug :

Bug 7138936 10.2.0.3 INSTALL 12.0.4
Abstract: RAPID INSTALL 12.0.4.7 FAILING WITH RW-50004

PROBLEM STATEMENT:
------------------
Attempting to install eBiz R12.0.4 using the latest Rapid Install wizard
12.0.4.7(supplied by The Patch 6796703) but it is failing with the error:
.
RW-50004: Error code received when running external process.

Solution

To implement the solution, please execute the following steps:

1) Make sure that the user who is executing Rapidwiz has write permission on the OraInventory.

Check if you are not in the scenario for this Bug 7138936 , NOT A BUG.

Please find the extract of the bug :

a- The owner of the installation is "ora1" user.

more /var/opt/oracle/oraInst.loc

shows :
inventory_loc=/test/oracle/ora3/home/oraInventory
install_group=dba

The owner of that inventory location is "ora3", but "ora1" user cannot write on that directory...

$ id
uid=100417(ora1) gid=101(dba)
$ pwd
/test/oracle/ora3/home/oraInventory/logs

$ touch test
touch: test cannot create

Fix:

a- As "ora3" user, do : chmod 777 /test/oracle/ora3/home/oraInventory

b- As "ora1", cd /test/oracle/ora3/home/oraInventory/logs, touch test

Dev's explanation :

===========

When there is a failure on the OH registration, the rest of actions don't
take place (ex relink, sym link recreation, library generation, etc).
This issue was caused by an incorrect registration.

2) If this bug 7138936 above is not relevant to your situation, to fix, please use the workaround below :


1. Rename this startCD(rapidwiz12.0.4.7) direcrtory to startCD12047


and download, unzip the working "startCD Rapidwiz version 12.0.4.6"

Nb: At the time of this note was written, this Rapidwiz version 12.0.4.6 Patch 6502109 was available

on Metalink.

2. Clean up the previous failed installation :

Use Note 110372.1 - 11i: How to Clean up the UNIX Environment After Install Fails


3 Restat the R12.0.4 installtion using startCD Rapidwiz version 12.0.4.6.