Invalid number of arguments
i am getting error while running the following query.
to find max(two date columns)
SELECT
max(print_date,inv_date)
FROM Temp;
Hi,
choti wrote:
i am getting error while running the following query.The error message really means what it says.
For details on all the built-in functions, such as number and types of arguments, see the SQL Language manual.
to find max(two date columns)
SELECT
max(print_date,inv_date)
FROM Temp;
MAX only takes one argument. (Most aggregate functions only take one argument.)
You probably want the GREATEST function, not MAX.
Similar Messages
-
There is an invalid number of arguments found in the function '@PARENTVAL
Hi
In a prior version of Hyperion, we had a business rule which pushed values down to to a child member
+Fix ( EE105, , @Children("FX entry"), &District, @UDA("Cost centre - primary", "DuplicateMbr"),C3090,[Opex_WriteScenario], [Opex_WriteVersion],&CurYear: &YearPlus6)+
Month = @PARENTVAL("Cost Centre");
Endfix;
We are moving across to Calc Manager in version 11.1.2.1 and the problem is that I now get the following error message:
An error occurred in: Calc Opex CC
There is an invalid number of arguments found in the function '@PARENTVAL(Cost Centre)'. .
Your assistance is appreciated.
CheersCheck if you can validate this script again Essbase, I am sure you will be able to.
If I remember correctly there were few functions missing in calc manager which were fixed in the patches released.
Try it on the latest patch:
Patch 14265667: Patch Set Update: 11.1.2.1.104 for Oracle Hyperion Calculation Manager
Cheers..!!!
Rahul S. -
Schedules: Invalid number of arguments
Hello All,
I've created a proces flow, associated it with a schedule, deployed both succesfull and I've started/activated the schedule succesful as well. So far all seems fine. But when running the schedule manually (right click in toad and select run) it fails with the following error; the procesflow itself can be executed properly
===========================
ORA-06553: PLS-ORA-06553: PLS-306: wrong number or types of arguments in call to 'PCOMPLETE_REFRESH_PF_JOB'
ORA-06512: at "SYS.DBMS_ISCHED", line 150
ORA-06512: at "SYS.DBMS_SCHEDULER", line 441
ORA-06512: at line 2
Details:
BEGIN
SYS.DBMS_SCHEDULER.RUN_JOB
(job_name => 'OWF_RUN_P.COMPLETE_REFRESH_PF_JOB'
,use_current_session => TRUE);
END;
Error at line 2
ORA-06553: PLS-ORA-06553: PLS-306: wrong number or types of arguments in call to 'PCOMPLETE_REFRESH_PF_JOB'
ORA-06512: at "SYS.DBMS_ISCHED", line 150
ORA-06512: at "SYS.DBMS_SCHEDULER", line 441
ORA-06512: at line 2
=========================
I wonder where OWB determines the number of arguments and where I can influence the number of arguments? One of the arguments which I can see in TOAD is totaly blank, no values. But when I query dba_arguments it doesn't show op?
Any help or suggestions will be highly appreciated!
Gilles
edit: I'm on 10.2.0.3 with both client and repository on a 10.2.0.3 database on windows
Message was edited by:
gillespsake1 wrote:
Can someone help me with this query.Can't you format it and see there are two extra close parenthesis. Remove them and use:
SELECT ID,
sum(
round(
ceil(
MONTHS_BETWEEN(
nvl(
DT1,
add_months(
last_day(
trunc(sysdate)
-1
DT2
2
) * 10
) paid
FROM tabel1
GROUP BY ID
/SY. -
ORA-00909: invalid number of arguments
The statement works when after THEN I put "SGA-" but as soon as I put concat function I get ORA-00909>
Thanks for your HELP!
SELECT
gl_ent,
gl_sa,
gl_acc,
gl_cc,
GL_AMT,
CASE
WHEN (gl_acc BETWEEN 8000 AND 8499) OR
(gl_acc BETWEEN 8000 AND 8999) OR
(gl_acc BETWEEN 8000 AND 8981) AND
((gl_cc BETWEEN 600 AND 647) OR
(gl_cc BETWEEN 649 AND 650) OR
(gl_cc BETWEEN 651 AND 660)OR
(gl_cc BETWEEN 700 AND 755)OR
(gl_cc BETWEEN 801 AND 802)OR
(gl_cc BETWEEN 861 AND 882)OR
(gl_cc = '648')OR
(gl_cc = '800'))
THEN (concat(' " SGA-',GL_ACC,' " '))
END AS measure
FROM F_ACCT_TRX_HISTSQL> insert into F_ACCT_TRX_HIST values (8123,713);
1 row created.
SQL> commit;
Commit complete.
SQL> SELECT CASE
2 WHEN
3 (gl_acc BETWEEN 8000 AND 8999)
4 AND ( (gl_cc BETWEEN 600 AND 660)
5 OR (gl_cc BETWEEN 700 AND 755)
6 OR (gl_cc BETWEEN 800 AND 802)
7 OR (gl_cc BETWEEN 861 AND 882)
8 )
9 THEN ' " SGA-' || GL_ACC || ' " '
10 END AS measure
11 FROM F_ACCT_TRX_HIST
12 ;
MEASURE
" SGA-8123 " -
Error message: 450 [Wrong number of arguments or invalid property assignment]
Hello Support,
I have a vbscript which does some database query. i see from the log that script quits with the below error.
Error message: 450 [Wrong number of arguments or invalid property assignment]
but when i execute the same query directly on database, it gives me correct result. also i see that not all the time script quits with this error.
Does anyone have idea how to troubleshoot it?
-KAKA-i see. i know at which line it fails as error handling is done and will be written in the log.
sQuery_Prod = "select object_text from sto_ov_externalnode where name = '" & NodeId & "'"
oRecordSet_Prod.Open sQuery_Prod, oConnection, adOpenStatic, adLockOptimistic
if err.number <> 0 then
LogWrite ("Unable to run query")
LogWrite ("Query: [" & sQuery_Prod & "]")
LogWrite ("Connection string: [" & sConnect & "]")
LogWrite ("Error message: " & err.number & " [" & err.description & "]")
wscript.quit(1)
end if
and this piece of code write following in the log.
07.10.2014 16:55:03:Unable to run query
07.10.2014 16:55:03:Query: [select object_text from sto_ov_externalnode where name = '{B10255CF-F618-45FB-99BC-31A57D747702}']
07.10.2014 16:55:03:Connection string: [DSN=Script;DRIVER={SQL Native Client};User ID=xxxxxx;Password=yyyyyy]
07.10.2014 16:55:03:Error message: 450 [Wrong number of arguments or invalid property assignment]
Where as i can run query "select object_text from sto_ov_externalnode where name = '{B10255CF-F618-45FB-99BC-31A57D747702}'" successfully directly on database.
also in the next cycle same query will be successfull within script too.
Does this help in understanding the problem?
-KAKA- -
SQLAuthenticator Provider Specific ORA-01722 invalid number error
Hi,
when i try to to configure sql authentication and
After restrating the OBIEE server i am facing the below error
<Oct 21, 2013 12:09:10 PM GST> <Error> <Security> <BEA-000000> <[Security:090759
]A SQLException occurred while retrieving user information
java.sql.SQLSyntaxErrorException: ORA-01722: invalid number
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:462)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)
at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:931)
at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:481)
at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:205)
Truncated. see log file for complete stacktrace
>
Pls suggest to fix the issuePls find the config.xml copied below
<?xml version='1.0' encoding='UTF-8'?>
<domain xmlns="http://xmlns.oracle.com/weblogic/domain" xmlns:sec="http://xmlns.oracle.com/weblogic/security" xmlns:wls="http://xmlns.oracle.com/weblogic/security/wls" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/weblogic/security/xacml http://xmlns.oracle.com/weblogic/security/xacml/1.0/xacml.xsd http://xmlns.oracle.com/weblogic/security/providers/passwordvalidator http://xmlns.oracle.com/weblogic/security/providers/passwordvalidator/1.0/passwordvalidator.xsd http://xmlns.oracle.com/weblogic/domain http://xmlns.oracle.com/weblogic/1.0/domain.xsd http://xmlns.oracle.com/weblogic/security http://xmlns.oracle.com/weblogic/1.0/security.xsd http://xmlns.oracle.com/weblogic/security/wls http://xmlns.oracle.com/weblogic/security/wls/1.0/wls.xsd">
<name>bifoundation_domain</name>
<domain-version>10.3.5.0</domain-version>
<security-configuration>
<name>bifoundation_domain</name>
<realm>
<sec:authentication-provider xsi:type="wls:read-only-sql-authenticatorType">
<sec:name>UserGroupDBAuthenticator</sec:name>
<sec:control-flag>SUFFICIENT</sec:control-flag>
<wls:data-source-name>UserGroupDS</wls:data-source-name>
<wls:sql-get-users-password>SELECT USER_PASSWORD FROM BO_USER WHERE USER_ID = ?</wls:sql-get-users-password>
<wls:sql-user-exists>SELECT USER_ID FROM BO_USER WHERE USER_ID= ?</wls:sql-user-exists>
<wls:sql-list-member-groups>SELECT USER_ID FROM BO_USER WHERE USER_ID= ?</wls:sql-list-member-groups>
<wls:sql-list-users>SELECT USER_ID FROM BO_USER WHERE USER_ID LIKE ?</wls:sql-list-users>
<wls:sql-get-user-description>SELECT USER_AFNAME FROM BO_USER WHERE USER_ID LIKE ?</wls:sql-get-user-description>
<wls:sql-list-groups>SELECT USER_CATEGORY_ID FROM BO_USER_CATEGORY WHERE USER_CATEGORY_ID LIKE ?</wls:sql-list-groups>
<wls:sql-group-exists>SELECT USER_CATEGORY_ID FROM BO_USER_CATEGORY WHERE USER_CATEGORY_ID = ?</wls:sql-group-exists>
<wls:sql-is-member>SELECT USER_ID FROM BO_USER WHERE USER_ID= ? AND USER_CATEGORY_ID = ?</wls:sql-is-member>
<wls:sql-get-group-description>SELECT USER_CATEGORY_ANAME FROM BO_USER_CATEGORY WHERE USER_CATEGORY_ID = ?</wls:sql-get-group-description>
</sec:authentication-provider>
<sec:authentication-provider xsi:type="wls:active-directory-authenticatorType">
<sec:name>MSAD</sec:name>
<sec:control-flag>SUFFICIENT</sec:control-flag>
<wls:host>scdc001.scad.ae</wls:host>
<wls:user-name-attribute>sAMAccountName</wls:user-name-attribute>
<wls:principal>CN=HCL1 HCL1,OU=Unknown Accounts,OU=SCADOU,DC=scad,DC=ae</wls:principal>
<wls:user-base-dn>OU=SCADOU,DC=scad,DC=ae</wls:user-base-dn>
<wls:credential-encrypted>{AES}yJt1s2K9bE/H3EgbCde7SLVz2O+kGSeF2XPlx16Kg/c=</wls:credential-encrypted>
<wls:user-from-name-filter></wls:user-from-name-filter>
<wls:group-base-dn>OU=SCADOU,DC=scad,DC=ae</wls:group-base-dn>
<wls:group-from-name-filter></wls:group-from-name-filter>
</sec:authentication-provider>
<sec:authentication-provider xsi:type="wls:default-authenticatorType">
<sec:control-flag>SUFFICIENT</sec:control-flag>
<wls:use-retrieved-user-name-as-principal>true</wls:use-retrieved-user-name-as-principal>
</sec:authentication-provider>
<sec:authentication-provider xsi:type="wls:default-identity-asserterType">
<sec:active-type>AuthenticatedUser</sec:active-type>
</sec:authentication-provider>
<sec:role-mapper xmlns:xac="http://xmlns.oracle.com/weblogic/security/xacml" xsi:type="xac:xacml-role-mapperType"></sec:role-mapper>
<sec:authorizer xmlns:xac="http://xmlns.oracle.com/weblogic/security/xacml" xsi:type="xac:xacml-authorizerType"></sec:authorizer>
<sec:adjudicator xsi:type="wls:default-adjudicatorType"></sec:adjudicator>
<sec:credential-mapper xsi:type="wls:default-credential-mapperType"></sec:credential-mapper>
<sec:cert-path-provider xsi:type="wls:web-logic-cert-path-providerType"></sec:cert-path-provider>
<sec:cert-path-builder>WebLogicCertPathProvider</sec:cert-path-builder>
<sec:name>myrealm</sec:name>
<sec:password-validator xmlns:pas="http://xmlns.oracle.com/weblogic/security/providers/passwordvalidator" xsi:type="pas:system-password-validatorType">
<sec:name>SystemPasswordValidator</sec:name>
<pas:min-password-length>8</pas:min-password-length>
<pas:min-numeric-or-special-characters>1</pas:min-numeric-or-special-characters>
</sec:password-validator>
</realm>
<default-realm>myrealm</default-realm>
<anonymous-admin-lookup-enabled>false</anonymous-admin-lookup-enabled>
<clear-text-credential-access-enabled>false</clear-text-credential-access-enabled>
<credential-encrypted>{AES}XIuR3PugbUjOzUtule2BBcdFXE5YndaeC6lrv+CIpRES+1us7RK77qywGsAGQiu5shrQ9gdqXF4lDUGu52pQFlbohEqFM7fLLSY9gitQi203cjSIEtDL/SjrIWX/L7GS</credential-encrypted>
<web-app-files-case-insensitive>false</web-app-files-case-insensitive>
<compatibility-connection-filters-enabled>false</compatibility-connection-filters-enabled>
<node-manager-username>weblogic</node-manager-username>
<node-manager-password-encrypted>{AES}Lnj81ljv/oGM7z99GT5+6NQdb6MxacRAO3QWV3q6hCE=</node-manager-password-encrypted>
<principal-equals-case-insensitive>false</principal-equals-case-insensitive>
<principal-equals-compare-dn-and-guid>false</principal-equals-compare-dn-and-guid>
<downgrade-untrusted-principals>false</downgrade-untrusted-principals>
<enforce-strict-url-pattern>true</enforce-strict-url-pattern>
<cross-domain-security-enabled>false</cross-domain-security-enabled>
</security-configuration>
<jta>
<security-interop-mode>default</security-interop-mode>
</jta>
<server>
<name>AdminServer</name>
<idle-connection-timeout>1000</idle-connection-timeout>
<period-length>200000</period-length>
<idle-periods-until-timeout>20</idle-periods-until-timeout>
<dgc-idle-periods-until-timeout>21</dgc-idle-periods-until-timeout>
<ssl>
<name>AdminServer</name>
<hostname-verification-ignored>true</hostname-verification-ignored>
<listen-port>7002</listen-port>
</ssl>
<machine>scbofup3</machine>
<listen-address></listen-address>
<server-diagnostic-config>
<name>AdminServer</name>
<diagnostic-context-enabled>true</diagnostic-context-enabled>
</server-diagnostic-config>
</server>
<server>
<name>bi_server1</name>
<ssl>
<name>bi_server1</name>
<enabled>false</enabled>
<listen-port>9804</listen-port>
</ssl>
<machine>scbofup3</machine>
<listen-port>8765</listen-port>
<listen-port-enabled>true</listen-port-enabled>
<cluster>bi_cluster</cluster>
<listen-address></listen-address>
<java-compiler>javac</java-compiler>
<server-start>
<name>bi_server1</name>
<arguments>-Dserver.group=obi</arguments>
</server-start>
<jta-migratable-target>
<name>bi_server1</name>
<user-preferred-server>bi_server1</user-preferred-server>
<cluster>bi_cluster</cluster>
</jta-migratable-target>
<client-cert-proxy-enabled>false</client-cert-proxy-enabled>
<server-diagnostic-config>
<name>bi_server1</name>
<diagnostic-context-enabled>true</diagnostic-context-enabled>
<wldf-diagnostic-volume>Low</wldf-diagnostic-volume>
</server-diagnostic-config>
</server>
<cluster>
<name>bi_cluster</name>
<cluster-messaging-mode>unicast</cluster-messaging-mode>
</cluster>
<production-mode-enabled>true</production-mode-enabled>
<embedded-ldap>
<name>bifoundation_domain</name>
<credential-encrypted>{AES}M3mHz4RP6LUiVO8E50F4tImxMHn81BhfT/wauMEMPzI7dCliZNS25wD7bch3SUc0</credential-encrypted>
</embedded-ldap>
<configuration-version>10.3.5.0</configuration-version>
<app-deployment>
<name>FMW Welcome Page Application#11.1.0.0.0</name>
<target>AdminServer</target>
<module-type>ear</module-type>
<source-path>E:/OBIEE11g/oracle_common/modules/oracle.jrf_11.1.1/fmw-welcome.ear</source-path>
<deployment-order>5</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</app-deployment>
<app-deployment>
<name>DMS Application#11.1.1.1.0</name>
<target>bi_cluster,AdminServer</target>
<module-type>war</module-type>
<source-path>E:/OBIEE11g/oracle_common/modules/oracle.dms_11.1.1/dms.war</source-path>
<deployment-order>5</deployment-order>
<security-dd-model>CustomRoles</security-dd-model>
<staging-mode>nostage</staging-mode>
</app-deployment>
<app-deployment>
<name>wsil-wls</name>
<target>bi_cluster,AdminServer</target>
<module-type>ear</module-type>
<source-path>E:/OBIEE11g/oracle_common/modules/oracle.webservices_11.1.1/wsil-wls.ear</source-path>
<deployment-order>5</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</app-deployment>
<app-deployment>
<name>ESSAPP</name>
<target>bi_cluster</target>
<module-type>ear</module-type>
<source-path>E:/OBIEE11g/Oracle_BI1/ess/archives/stub-ess-app.ear</source-path>
<deployment-order>50</deployment-order>
<security-dd-model>CustomRoles</security-dd-model>
<staging-mode>nostage</staging-mode>
</app-deployment>
<app-deployment>
<name>wsm-pm</name>
<target>bi_cluster,AdminServer</target>
<module-type>ear</module-type>
<source-path>E:/OBIEE11g/oracle_common/modules/oracle.wsm.pm_11.1.1/wsm-pm.ear</source-path>
<deployment-order>5</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</app-deployment>
<app-deployment>
<name>em</name>
<target>AdminServer</target>
<module-type>ear</module-type>
<source-path>E:\OBIEE11g\user_projects\applications\bifoundation_domain/em.ear</source-path>
<deployment-order>400</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</app-deployment>
<app-deployment>
<name>bilocaladmin#11.1.1</name>
<target>bi_cluster</target>
<module-type>ear</module-type>
<source-path>E:/OBIEE11g/Oracle_BI1/bifoundation/jee/bilocaladmin.ear</source-path>
<deployment-order>253</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</app-deployment>
<app-deployment>
<name>biadminservices#11.1.1</name>
<target>AdminServer</target>
<module-type>ear</module-type>
<source-path>E:/OBIEE11g/Oracle_BI1/bifoundation/jee/biadminservices.ear</source-path>
<deployment-order>257</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</app-deployment>
<app-deployment>
<name>bicontentserver#11.1.1</name>
<target>bi_cluster</target>
<module-type>ear</module-type>
<source-path>E:/OBIEE11g/Oracle_BI1/bifoundation/jee/bicontentserver.ear</source-path>
<deployment-order>300</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</app-deployment>
<app-deployment>
<name>biadminutils#11.1.1</name>
<target>AdminServer</target>
<module-type>ear</module-type>
<source-path>E:/OBIEE11g/Oracle_BI1/bifoundation/jee/biadminutils.ear</source-path>
<deployment-order>240</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</app-deployment>
<app-deployment>
<name>bicomposer#11.1.1</name>
<target>bi_cluster</target>
<module-type>ear</module-type>
<source-path>E:/OBIEE11g/Oracle_BI1/modules/oracle.bi.presentation_11.1.1/bicomposer.ear</source-path>
<deployment-order>100</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</app-deployment>
<app-deployment>
<name>asyncadminservice#11.1.1</name>
<target>bi_cluster</target>
<module-type>ear</module-type>
<source-path>E:/OBIEE11g/Oracle_BI1/bifoundation/jee/AsyncAdminService.ear</source-path>
<deployment-order>260</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</app-deployment>
<app-deployment>
<name>jbips#11.1.1</name>
<target>bi_cluster</target>
<module-type>ear</module-type>
<source-path>E:/OBIEE11g/Oracle_BI1/bifoundation/jee/jbips.ear</source-path>
<deployment-order>100</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</app-deployment>
<app-deployment>
<name>bioffice#11.1.1</name>
<target>bi_cluster</target>
<module-type>ear</module-type>
<source-path>E:/OBIEE11g/Oracle_BI1/bifoundation/jee/bioffice.ear</source-path>
<deployment-order>300</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</app-deployment>
<app-deployment>
<name>biofficeclient#11.1.1</name>
<target>bi_cluster</target>
<module-type>war</module-type>
<source-path>E:/OBIEE11g/Oracle_BI1/bifoundation/jee/biofficeclient.war</source-path>
<deployment-order>301</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</app-deployment>
<app-deployment>
<name>analytics#11.1.1</name>
<target>bi_cluster</target>
<module-type>ear</module-type>
<source-path>E:/OBIEE11g/Oracle_BI1/bifoundation/jee/analytics.ear</source-path>
<deployment-order>250</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</app-deployment>
<app-deployment>
<name>bimiddleware#11.1.1</name>
<target>bi_cluster</target>
<module-type>ear</module-type>
<source-path>E:/OBIEE11g/Oracle_BI1/bifoundation/jee/bimiddleware.ear</source-path>
<deployment-order>251</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</app-deployment>
<app-deployment>
<name>bisearch#11.1.1</name>
<target>bi_cluster</target>
<module-type>ear</module-type>
<source-path>E:/OBIEE11g/Oracle_BI1/bifoundation/jee/bisearch.ear</source-path>
<deployment-order>254</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</app-deployment>
<app-deployment>
<name>bisecurityadmin#11.1.1</name>
<target>bi_cluster,AdminServer</target>
<module-type>ear</module-type>
<source-path>E:/OBIEE11g/Oracle_BI1/bifoundation/jee/bisecurityadmin.ear</source-path>
<deployment-order>256</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</app-deployment>
<app-deployment>
<name>bisecurity#11.1.1</name>
<target>bi_cluster</target>
<module-type>ear</module-type>
<source-path>E:/OBIEE11g/Oracle_BI1/bifoundation/jee/bisecurity.ear</source-path>
<deployment-order>257</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</app-deployment>
<app-deployment>
<name>mapviewer#11.1.1</name>
<target>bi_cluster</target>
<module-type>ear</module-type>
<source-path>E:/OBIEE11g/Oracle_BI1/bifoundation/jee/mapviewer.ear</source-path>
<deployment-order>258</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</app-deployment>
<app-deployment>
<name>adminservice#11.1.1</name>
<target>bi_cluster</target>
<module-type>ear</module-type>
<source-path>E:/OBIEE11g/Oracle_BI1/bifoundation/jee/AdminService.ear</source-path>
<deployment-order>259</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</app-deployment>
<app-deployment>
<name>biadminservlet#11.1.1</name>
<target>bi_cluster</target>
<module-type>war</module-type>
<source-path>E:/OBIEE11g/Oracle_BI1/bifoundation/javahost/lib/obisintegration/biadminservlet.war</source-path>
<deployment-order>261</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</app-deployment>
<app-deployment>
<name>NonJ2EEManagement</name>
<target>AdminServer</target>
<module-type>ear</module-type>
<source-path>servers\AdminServer\upload\NonJ2EEManagement\app\NonJ2EEManagement.ear</source-path>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</app-deployment>
<app-deployment>
<name>OracleRTD#11.1.1</name>
<target>bi_cluster</target>
<module-type>ear</module-type>
<source-path>E:/OBIEE11g/Oracle_BI1/bifoundation/jee/RTD.ear</source-path>
<deployment-order>333</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</app-deployment>
<app-deployment>
<name>bipublisher#11.1.1</name>
<target>bi_cluster</target>
<module-type>ear</module-type>
<source-path>E:/OBIEE11g/Oracle_BI1/bifoundation/jee/xmlpserver.ear</source-path>
<deployment-order>510</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</app-deployment>
<app-deployment>
<name>Workspace#11.1.1</name>
<target>bi_cluster</target>
<module-type>ear</module-type>
<source-path>E:/OBIEE11g/Oracle_BI1/products/Foundation/workspace/InstallableApps/workspace.ear</source-path>
<deployment-order>522</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</app-deployment>
<app-deployment>
<name>Calc#11.1.1</name>
<target>bi_cluster</target>
<module-type>war</module-type>
<source-path>E:/OBIEE11g/Oracle_BI1/products/Foundation/CALC/AppServer/InstallableApps/calcmgr.ear</source-path>
<deployment-order>523</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</app-deployment>
<app-deployment>
<name>FinancialReporting#11.1.1</name>
<target>bi_cluster</target>
<module-type>ear</module-type>
<source-path>E:/OBIEE11g/Oracle_BI1/products/financialreporting/InstallableApps/HReports.ear</source-path>
<deployment-order>524</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</app-deployment>
<app-deployment>
<name>APS#11.1.1</name>
<target>bi_cluster</target>
<module-type>ear</module-type>
<source-path>E:/OBIEE11g/Oracle_BI1/products/Essbase/aps/redist/aps.ear</source-path>
<deployment-order>521</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</app-deployment>
<app-deployment>
<name>eas#11.1.1</name>
<target>bi_cluster</target>
<module-type>ear</module-type>
<source-path>E:/OBIEE11g/Oracle_BI1/products/Essbase/eas/server/tomcat/webapps/eas.ear</source-path>
<deployment-order>100</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</app-deployment>
<app-deployment>
<name>analyticsRes</name>
<target>bi_cluster</target>
<module-type>war</module-type>
<source-path>E:\OBIEE11g\instances\instance1\bifoundation\OracleBIPresentationServicesComponent\coreapplication_obips1\analyticsRes</source-path>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</app-deployment>
<library>
<name>oracle.bi.adf.model.slib#[email protected]</name>
<target>bi_cluster,AdminServer</target>
<module-type>ear</module-type>
<source-path>E:/OBIEE11g/oracle_common/modules/oracle.bi.presentation_11.1.1/bi-adf-model-slib.ear</source-path>
<deployment-order>100</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</library>
<library>
<name>oracle.bi.adf.view.slib#[email protected]</name>
<target>bi_cluster,AdminServer</target>
<module-type>war</module-type>
<source-path>E:/OBIEE11g/oracle_common/modules/oracle.bi.presentation_11.1.1/bi-adf-view-slib.war</source-path>
<deployment-order>100</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</library>
<library>
<name>oracle.bi.adf.webcenter.slib#[email protected]</name>
<target>bi_cluster,AdminServer</target>
<module-type>war</module-type>
<source-path>E:/OBIEE11g/oracle_common/modules/oracle.bi.presentation_11.1.1/bi-adf-webcenter-slib.war</source-path>
<deployment-order>100</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</library>
<library>
<name>oracle.wsm.seedpolicies#[email protected]</name>
<target>bi_cluster,AdminServer</target>
<source-path>E:/OBIEE11g/oracle_common/modules/oracle.wsm.policies_11.1.1/wsm-seed-policies.jar</source-path>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</library>
<library>
<name>oracle.jsp.next#[email protected]</name>
<target>bi_cluster,AdminServer</target>
<source-path>E:/OBIEE11g/oracle_common/modules/oracle.jsp_11.1.1/ojsp.jar</source-path>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</library>
<library>
<name>oracle.dconfig-infra#[email protected]</name>
<target>bi_cluster,AdminServer</target>
<source-path>E:/OBIEE11g/oracle_common/modules/oracle.dconfig-infra_11.1.1.jar</source-path>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</library>
<library>
<name>orai18n-adf#[email protected]</name>
<target>bi_cluster,AdminServer</target>
<source-path>E:/OBIEE11g/oracle_common/modules/oracle.nlsgdk_11.1.0/orai18n-adf.jar</source-path>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</library>
<library>
<name>oracle.adf.dconfigbeans#[email protected]</name>
<target>bi_cluster,AdminServer</target>
<source-path>E:/OBIEE11g/oracle_common/modules/oracle.adf.dconfigbeans_11.1.1.jar</source-path>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</library>
<library>
<name>oracle.pwdgen#[email protected]</name>
<target>bi_cluster,AdminServer</target>
<source-path>E:/OBIEE11g/oracle_common/modules/oracle.pwdgen_11.1.1/pwdgen.jar</source-path>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</library>
<library>
<name>oracle.jrf.system.filter</name>
<target>bi_cluster,AdminServer</target>
<source-path>E:/OBIEE11g/oracle_common/modules/oracle.jrf_11.1.1/system-filters.war</source-path>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</library>
<library>
<name>adf.oracle.domain#[email protected]</name>
<target>bi_cluster,AdminServer</target>
<module-type>ear</module-type>
<source-path>E:/OBIEE11g/oracle_common/modules/oracle.adf.model_11.1.1/adf.oracle.domain.ear</source-path>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</library>
<library>
<name>adf.oracle.businesseditor#[email protected]</name>
<target>bi_cluster,AdminServer</target>
<module-type>war</module-type>
<source-path>E:/OBIEE11g/oracle_common/modules/oracle.adf.businesseditor_11.1.1/adf.businesseditor.war</source-path>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</library>
<library>
<name>oracle.adf.management#[email protected]</name>
<target>bi_cluster,AdminServer</target>
<module-type>war</module-type>
<source-path>E:/OBIEE11g/oracle_common/modules/oracle.adf.management_11.1.1/adf-management.war</source-path>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</library>
<library>
<name>adf.oracle.domain.webapp#[email protected]</name>
<target>bi_cluster,AdminServer</target>
<module-type>war</module-type>
<source-path>E:/OBIEE11g/oracle_common/modules/oracle.adf.view_11.1.1/adf.oracle.domain.webapp.war</source-path>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</library>
<library>
<name>jsf#[email protected]</name>
<target>bi_cluster,AdminServer</target>
<module-type>war</module-type>
<source-path>E:\OBIEE11g\wlserver_10.3/common/deployable-libraries/jsf-1.2.war</source-path>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</library>
<library>
<name>jstl#[email protected]</name>
<target>bi_cluster,AdminServer</target>
<module-type>war</module-type>
<source-path>E:\OBIEE11g\wlserver_10.3/common/deployable-libraries/jstl-1.2.war</source-path>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</library>
<library>
<name>UIX#[email protected]</name>
<target>bi_cluster,AdminServer</target>
<module-type>war</module-type>
<source-path>E:/OBIEE11g/oracle_common/modules/oracle.uix_11.1.1/uix11.war</source-path>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</library>
<library>
<name>ohw-rcf#[email protected]</name>
<target>bi_cluster,AdminServer</target>
<module-type>war</module-type>
<source-path>E:/OBIEE11g/oracle_common/modules/oracle.help_5.0/ohw-rcf.war</source-path>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</library>
<library>
<name>ohw-uix#[email protected]</name>
<target>bi_cluster,AdminServer</target>
<module-type>war</module-type>
<source-path>E:/OBIEE11g/oracle_common/modules/oracle.help_5.0/ohw-uix.war</source-path>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</library>
<library>
<name>oracle.adf.desktopintegration.model#[email protected]</name>
<target>bi_cluster,AdminServer</target>
<module-type>ear</module-type>
<source-path>E:/OBIEE11g/oracle_common/modules/oracle.adf.desktopintegration.model_11.1.1/oracle.adf.desktopintegration.model.ear</source-path>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</library>
<library>
<name>oracle.adf.desktopintegration#[email protected]</name>
<target>bi_cluster,AdminServer</target>
<module-type>war</module-type>
<source-path>E:/OBIEE11g/oracle_common/modules/oracle.adf.desktopintegration_11.1.1/oracle.adf.desktopintegration.war</source-path>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</library>
<library>
<name>oracle.bi.jbips#[email protected]</name>
<target>bi_cluster,AdminServer</target>
<module-type>ear</module-type>
<source-path>E:/OBIEE11g/oracle_common/modules/oracle.bi.presentation_11.1.1/bi-jbips-slib-stub.ear</source-path>
<deployment-order>100</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</library>
<library>
<name>oracle.bi.composer#[email protected]</name>
<target>bi_cluster,AdminServer</target>
<module-type>war</module-type>
<source-path>E:/OBIEE11g/oracle_common/modules/oracle.bi.presentation_11.1.1/bi-composer-slib-stub.war</source-path>
<deployment-order>100</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</library>
<library>
<name>oracle.bpm.mgmt#[email protected]</name>
<target>AdminServer</target>
<source-path>E:/OBIEE11g/oracle_common/bpm/modules/oracle.bpm.mgmt_11.1.1/oracle.bpm.bpmn-em-tools.jar</source-path>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</library>
<library>
<name>emai</name>
<target>AdminServer</target>
<module-type>war</module-type>
<source-path>E:/OBIEE11g/oracle_common/sysman/archives/applications/11_1_1_0_0_emai.war</source-path>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</library>
<library>
<name>oracle.ess.client#[email protected]</name>
<target>bi_cluster</target>
<source-path>E:/OBIEE11g/Oracle_BI1/modules/oracle.ess.client_11.1.1/stub-ess-client.ear</source-path>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</library>
<library>
<name>oracle.ess#[email protected]</name>
<target>bi_cluster</target>
<source-path>E:/OBIEE11g/Oracle_BI1/modules/oracle.ess_11.1.1/stub-ess.ear</source-path>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</library>
<library>
<name>oracle.webcenter.skin#[email protected]</name>
<target>AdminServer</target>
<module-type>ear</module-type>
<source-path>E:/OBIEE11g/oracle_common/webcenter/modules/oracle.portlet.server_11.1.1/oracle.webcenter.skin.ear</source-path>
<deployment-order>300</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</library>
<library>
<name>oracle.webcenter.composer#[email protected]</name>
<target>AdminServer</target>
<module-type>war</module-type>
<source-path>E:/OBIEE11g/oracle_common/webcenter/modules/oracle.webcenter.framework_11.1.1/oracle.webcenter.composer.war</source-path>
<deployment-order>300</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</library>
<library>
<name>emas</name>
<target>AdminServer</target>
<module-type>war</module-type>
<source-path>E:/OBIEE11g/oracle_common/sysman/archives/applications/11_1_1_0_0_emas.war</source-path>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</library>
<library>
<name>emcore</name>
<target>AdminServer</target>
<module-type>war</module-type>
<source-path>E:/OBIEE11g/oracle_common/sysman/archives/applications/11_1_1_0_0_emcore.war</source-path>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</library>
<library>
<name>bi.em</name>
<target>AdminServer</target>
<module-type>war</module-type>
<source-path>E:/OBIEE11g/Oracle_BI1/sysman/archives/fmwctrl/plugins/11_1_1_0_0_bi.war</source-path>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</library>
<library>
<name>essbase.em</name>
<target>AdminServer</target>
<module-type>war</module-type>
<source-path>E:/OBIEE11g/Oracle_BI1/sysman/archives/fmwctrl/plugins/11_1_1_0_0_essbase.war</source-path>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</library>
<library>
<name>oracle.biopmn#11.1.1</name>
<target>bi_cluster,AdminServer</target>
<source-path>E:/OBIEE11g/Oracle_BI1/bifoundation/jlib/oracle-biopmn.jar</source-path>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</library>
<library>
<name>oracle.applcore.model#[email protected]</name>
<target>bi_cluster</target>
<module-type>ear</module-type>
<source-path>E:/OBIEE11g/oracle_common/atgpf/modules/oracle.applcore.model_11.1.1/oracle.applcore.model.stub.ear</source-path>
<deployment-order>500</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</library>
<library>
<name>oracle.applcore.view#[email protected]</name>
<target>AdminServer</target>
<module-type>war</module-type>
<source-path>E:/OBIEE11g/oracle_common/atgpf/modules/oracle.applcore.view_11.1.1/oracle.applcore.view.stub.war</source-path>
<deployment-order>500</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</library>
<library>
<name>oracle.applcore.config#[email protected]</name>
<target>bi_cluster</target>
<module-type>jar</module-type>
<source-path>E:/OBIEE11g/oracle_common/atgpf/modules/features/oracle.applcore.config.stub.jar</source-path>
<deployment-order>500</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</library>
<library>
<name>epm-shared-libraries#[email protected]</name>
<target>bi_cluster,AdminServer</target>
<module-type>ear</module-type>
<source-path>E:/OBIEE11g/Oracle_BI1/common/jlib/11.1.2.0/epm.jar</source-path>
<deployment-order>500</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</library>
<library>
<name>bijdbc#11.1.1</name>
<target>bi_cluster</target>
<module-type>jar</module-type>
<source-path>E:/OBIEE11g/Oracle_BI1/bifoundation/jdbc/jdk16/bijdbc.jar</source-path>
<deployment-order>300</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</library>
<library>
<name>oracle.bi.composer#[email protected]</name>
<target>bi_cluster,AdminServer</target>
<module-type>war</module-type>
<source-path>E:/OBIEE11g/Oracle_BI1/modules/oracle.bi.presentation_11.1.1/bi-composer-slib.war</source-path>
<deployment-order>100</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</library>
<library>
<name>oracle.bi.jbips#[email protected]</name>
<target>bi_cluster,AdminServer</target>
<module-type>ear</module-type>
<source-path>E:/OBIEE11g/Oracle_BI1/modules/oracle.bi.presentation_11.1.1/bi-jbips-slib.ear</source-path>
<deployment-order>100</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</library>
<library>
<name>oracle.bi.jbips.commons#[email protected]</name>
<target>bi_cluster</target>
<module-type>ear</module-type>
<source-path>E:/OBIEE11g/Oracle_BI1/modules/oracle.bi.presentation_11.1.1/bi-jbips-commons-slib.ear</source-path>
<deployment-order>100</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</library>
<library>
<name>oracle.bi.jbips.soap#[email protected]</name>
<target>bi_cluster</target>
<module-type>ear</module-type>
<source-path>E:/OBIEE11g/Oracle_BI1/modules/oracle.bi.presentation_11.1.1/bi-jbips-soap-slib.ear</source-path>
<deployment-order>100</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</library>
<library>
<name>bithirdparty#11.1.1</name>
<target>bi_cluster</target>
<source-path>E:/OBIEE11g/Oracle_BI1/modules/oracle.bithirdparty_11.1.1/bithirdparty.jar</source-path>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</library>
<library>
<name>oracle.rtd.client#[email protected]</name>
<target>bi_cluster</target>
<source-path>E:/OBIEE11g/Oracle_BI1/clients/rtd/oracle.rtd.client.ear</source-path>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</library>
<library>
<name>oracle.rtd.client.webapp#[email protected]</name>
<target>bi_cluster</target>
<source-path>E:/OBIEE11g/Oracle_BI1/clients/rtd/oracle.rtd.client.webapp.war</source-path>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</library>
<library>
<name>bip-shared-libraries#11.1.1</name>
<target>bi_cluster</target>
<module-type>ear</module-type>
<source-path>E:/OBIEE11g/Oracle_BI1/modules/BIPWebCP.jar</source-path>
<deployment-order>500</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</library>
<library>
<name>xerces#[email protected]</name>
<target>bi_cluster</target>
<module-type>ear</module-type>
<source-path>E:/OBIEE11g/Oracle_BI1/common/jlib/11.1.2.0/epm_xerces.jar</source-path>
<deployment-order>500</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</library>
<library>
<name>epm-misc-libraries#[email protected]</name>
<target>bi_cluster</target>
<module-type>ear</module-type>
<source-path>E:/OBIEE11g/Oracle_BI1/common/jlib/11.1.2.0/epm_misc.jar</source-path>
<deployment-order>500</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</library>
<library>
<name>epm-bpmui-libraries#[email protected]</name>
<target>bi_cluster</target>
<module-type>ear</module-type>
<source-path>E:/OBIEE11g/Oracle_BI1/common/jlib/11.1.2.0/epm_bpmui.jar</source-path>
<deployment-order>500</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</library>
<library>
<name>epm-bpmui-shared-webapp#[email protected]</name>
<target>bi_cluster</target>
<module-type>ear</module-type>
<source-path>E:/OBIEE11g/Oracle_BI1/common/bpmui-common/11.1.2.0/bpmui.war</source-path>
<deployment-order>500</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</library>
<library>
<name>epm-applistener-libraries</name>
<target>bi_cluster</target>
<module-type>ear</module-type>
<source-path>E:/OBIEE11g/Oracle_BI1/common/config/11.1.2.0/hit-applistener.jar</source-path>
<deployment-order>500</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</library>
<library>
<name>epm-calcmgr-libraries#[email protected]</name>
<target>bi_cluster</target>
<module-type>ear</module-type>
<source-path>E:/OBIEE11g/Oracle_BI1/common/calcmgr/11.1.2.0/lib/calcmgr.jar</source-path>
<deployment-order>500</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</library>
<library>
<name>epm-epma-libraries#[email protected]</name>
<target>bi_cluster</target>
<module-type>ear</module-type>
<source-path>E:/OBIEE11g/Oracle_BI1/common/jlib/11.1.2.0/epm_epma.jar</source-path>
<deployment-order>500</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</library>
<library>
<name>epm-pdf-libraries#[email protected]</name>
<target>bi_cluster</target>
<module-type>ear</module-type>
<source-path>E:/OBIEE11g/Oracle_BI1/common/jlib/11.1.2.0/epm_pdf.jar</source-path>
<deployment-order>500</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</library>
<library>
<name>struts#[email protected]</name>
<target>bi_cluster</target>
<module-type>war</module-type>
<source-path>E:/OBIEE11g/Oracle_BI1/common/misc/11.1.2.0/struts.war</source-path>
<deployment-order>500</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</library>
<library>
<name>epm-fr-libraries#[email protected]</name>
<target>bi_cluster</target>
<module-type>ear</module-type>
<source-path>E:/OBIEE11g/Oracle_BI1/common/jlib/11.1.2.0/epm_fr.jar</source-path>
<deployment-order>500</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</library>
<library>
<name>epm-frweb-libraries#[email protected]</name>
<target>bi_cluster</target>
<module-type>ear</module-type>
<source-path>E:/OBIEE11g/Oracle_BI1/common/jlib/11.1.2.0/epm_frweb.jar</source-path>
<deployment-order>500</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</library>
<library>
<name>epm-annotation-libraries#[email protected]</name>
<target>bi_cluster</target>
<module-type>ear</module-type>
<source-path>E:/OBIEE11g/Oracle_BI1/common/jlib/11.1.2.0/epm_annotation.jar</source-path>
<deployment-order>500</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</library>
<library>
<name>epm-planning-libraries#[email protected]</name>
<target>bi_cluster</target>
<module-type>ear</module-type>
<source-path>E:/OBIEE11g/Oracle_BI1/common/jlib/11.1.2.0/epm_planning.jar</source-path>
<deployment-order>500</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</library>
<library>
<name>epm-planning-adm-libraries#[email protected]</name>
<target>bi_cluster</target>
<module-type>ear</module-type>
<source-path>E:/OBIEE11g/Oracle_BI1/common/jlib/11.1.2.0/epm_planning_adm.jar</source-path>
<deployment-order>500</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</library>
<library>
<name>epm-eas-libraries#[email protected]</name>
<target>bi_cluster</target>
<module-type>ear</module-type>
<source-path>E:/OBIEE11g/Oracle_BI1/common/jlib/11.1.2.0/epm_eas.jar</source-path>
<deployment-order>500</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</library>
<machine>
<name>scbofup3</name>
<node-manager>
<listen-address>scbofup3</listen-address>
<listen-port>9556</listen-port>
</node-manager>
</machine>
<jms-server>
<name>JRFWSAsyncJmsServer</name>
<target>bi_server1</target>
<persistent-store>JRFWSAsyncFileStore</persistent-store>
<messages-maximum>200000</messages-maximum>
</jms-server>
<jms-server>
<name>BipJmsServer</name>
<target>bi_server1</target>
<persistent-store>BipJmsStore</persistent-store>
</jms-server>
<migratable-target>
<name>bi_server1 (migratable)</name>
<notes>This is a system generated default migratable target for a server. Do not delete manually.</notes>
<user-preferred-server>bi_server1</user-preferred-server>
<cluster>bi_cluster</cluster>
</migratable-target>
<self-tuning>
<work-manager>
<name>weblogic.wsee.mdb.DispatchPolicy</name>
<target>bi_cluster</target>
</work-manager>
</self-tuning>
<shutdown-class>
<name>JOC-Shutdown</name>
<target>bi_cluster,AdminServer</target>
<deployment-order>150</deployment-order>
<class-name>oracle.ias.cache.Shutdown</class-name>
</shutdown-class>
<shutdown-class>
<name>DMSShutdown</name>
<target>bi_cluster,AdminServer</target>
<deployment-order>150</deployment-order>
<class-name>oracle.dms.wls.DMSShutdown</class-name>
</shutdown-class>
<startup-class>
<name>JRF Startup Class</name>
<target>bi_cluster,AdminServer</target>
<deployment-order>110</deployment-order>
<class-name>oracle.jrf.wls.JRFStartup</class-name>
<failure-is-fatal>false</failure-is-fatal>
<load-before-app-deployments>true</load-before-app-deployments>
<load-before-app-activation>true</load-before-app-activation>
</startup-class>
<startup-class>
<name>JPS Startup Class</name>
<target>bi_cluster,AdminServer</target>
<deployment-order>115</deployment-order>
<class-name>oracle.security.jps.wls.JpsWlsStartupClass</class-name>
<failure-is-fatal>false</failure-is-fatal>
<load-before-app-deployments>true</load-before-app-deployments>
<load-before-app-activation>true</load-before-app-activation>
</startup-class>
<startup-class>
<name>ODL-Startup</name>
<target>bi_cluster,AdminServer</target>
<deployment-order>145</deployment-order>
<class-name>oracle.core.ojdl.weblogic.ODLConfiguration</class-name>
<failure-is-fatal>false</failure-is-fatal>
<load-before-app-deployments>true</load-before-app-deployments>
<load-before-app-activation>true</load-before-app-activation>
</startup-class>
<startup-class>
<name>AWT Application Context Startup Class</name>
<target>bi_cluster,AdminServer</target>
<deployment-order>150</deployment-order>
<class-name>oracle.jrf.AppContextStartup</class-name>
<failure-is-fatal>false</failure-is-fatal>
<load-before-app-deployments>true</load-before-app-deployments>
<load-before-app-activation>true</load-before-app-activation>
</startup-class>
<startup-class>
<name>JMX Framework Startup Class</name>
<target>bi_cluster,AdminServer</target>
<deployment-order>150</deployment-order>
<class-name>oracle.as.jmx.framework.wls.spi.StartupListener</class-name>
<failure-is-fatal>false</failure-is-fatal>
<load-before-app-deployments>true</load-before-app-deployments>
<load-before-app-activation>true</load-before-app-activation>
</startup-class>
<startup-class>
<name>Web Services Startup Class</name>
<target>bi_cluster,AdminServer</target>
<deployment-order>150</deployment-order>
<class-name>oracle.j2ee.ws.server.WebServiceServerStartup</class-name>
<failure-is-fatal>false</failure-is-fatal>
<load-before-app-deployments>true</load-before-app-deployments>
<load-before-app-activation>true</load-before-app-activation>
</startup-class>
<startup-class>
<name>JOC-Startup</name>
<target>bi_cluster,AdminServer</target>
<deployment-order>150</deployment-order>
<class-name>oracle.ias.cache.Startup</class-name>
<failure-is-fatal>false</failure-is-fatal>
<load-before-app-deployments>true</load-before-app-deployments>
<load-before-app-activation>true</load-before-app-activation>
</startup-class>
<startup-class>
<name>DMS-Startup</name>
<target>bi_cluster,AdminServer</target>
<deployment-order>150</deployment-order>
<class-name>oracle.dms.wls.DMSStartup</class-name>
<failure-is-fatal>false</failure-is-fatal>
<load-before-app-deployments>true</load-before-app-deployments>
<load-before-app-activation>true</load-before-app-activation>
</startup-class>
<file-store>
<name>JRFWSAsyncFileStore</name>
<directory>JRFWSAsyncFileStore</directory>
<target>bi_server1</target>
</file-store>
<file-store>
<name>BipJmsStore</name>
<directory>BipJmsStore</directory>
<target>bi_server1</target>
</file-store>
<jms-system-resource>
<name>JRFWSAsyncJmsModule</name>
<target>bi_cluster</target>
<sub-deployment>
<name>JRFWS_JMS_MODULE_SUBDEPLOYMENT_JRFWSJMSServer</name>
<target>JRFWSAsyncJmsServer</target>
</sub-deployment>
<descriptor-file-name>jms/jrfwsasyncjmsmodule-jms.xml</descriptor-file-name>
</jms-system-resource>
<jms-system-resource>
<name>BipJmsResource</name>
<target>bi_cluster</target>
<sub-deployment>
<name>BipJmsSubDeployment</name>
<target>BipJmsServer</target>
</sub-deployment>
<descriptor-file-name>jms/bipjmsresource-jms.xml</descriptor-file-name>
</jms-system-resource>
<admin-server-name>AdminServer</admin-server-name>
<wldf-system-resource>
<name>Module-FMWDFW</name>
<target>bi_cluster,AdminServer</target>
<descriptor-file-name>diagnostics/Module-FMWDFW-2818.xml</descriptor-file-name>
<description>Creates FMWDFW incidents based on unchecked Exceptions and critical errors</description>
</wldf-system-resource>
<jdbc-system-resource>
<name>mds-owsm</name>
<target>bi_cluster,AdminServer</target>
<descriptor-file-name>jdbc/mds-owsm-jdbc.xml</descriptor-file-name>
</jdbc-system-resource>
<jdbc-system-resource>
<name>EPMSystemRegistry</name>
<target>bi_cluster,AdminServer</target>
<descriptor-file-name>jdbc/EPMSystemRegistry-jdbc.xml</descriptor-file-name>
</jdbc-system-resource>
<jdbc-system-resource>
<name>rtd_datasource</name>
<target>bi_cluster</target>
<descriptor-file-name>jdbc/RTDDataSource-jdbc.xml</descriptor-file-name>
</jdbc-system-resource>
<jdbc-system-resource>
<name>bip_datasource</name>
<target>bi_cluster</target>
<descriptor-file-name>jdbc/bip_datasource-jdbc.xml</descriptor-file-name>
</jdbc-system-resource>
<jdbc-system-resource>
<name>calc_datasource</name>
<target>bi_cluster</target>
<descriptor-file-name>jdbc/calc_datasource-jdbc.xml</descriptor-file-name>
</jdbc-system-resource>
<jdbc-system-resource>
<name>raframework_datasource</name>
<target>bi_cluster</target>
<descriptor-file-name>jdbc/raframework_datasource-jdbc.xml</descriptor-file-name>
</jdbc-system-resource>
<jdbc-system-resource>
<name>aps_datasource</name>
<target>bi_cluster</target>
<descriptor-file-name>jdbc/aps_datasource-jdbc.xml</descriptor-file-name>
</jdbc-system-resource>
<jdbc-system-resource>
<name>UserGroupDS</name>
<target>AdminServer,bi_server1</target>
<descriptor-file-name>jdbc/UserGroupDS-0115-jdbc.xml</descriptor-file-name>
</jdbc-system-resource>
</domain> -
Hello,
I have created some functions and a procedure to call them.
I cannot seem to find the error that is being generated by SQLPlus when I execute the procedure. It seems to be a simple one, but I need at least one more pair of eyes to look for the error and I cannot do so.
Here's the code for the functions and procedures, followed by a description of the referenced tables.
--function to get subtotal for basket #
CREATE OR REPLACE FUNCTION subtotal_sf
(p_basketid IN bb_basketitem.idbasket%type)
RETURN NUMBER
IS
lv_subtotal bb_basketitem.price%type;
BEGIN
SELECT SUM(price*quantity)
INTO lv_subtotal
FROM bb_basketitem
WHERE idbasket=p_basketid;
RETURN lv_subtotal;
END;
--function to get shipping cost
CREATE OR REPLACE FUNCTION shipping_sf
(p_basketid IN bb_basketitem.idbasket%type)
RETURN NUMBER
IS
lv_shipping NUMBER;
lv_qty NUMBER;
BEGIN
SELECT SUM(quantity)
INTO lv_qty
FROM bb_basketitem
WHERE p_basketid=idbasket;
IF lv_qty<5 THEN
lv_shipping:=5.00;
ELSIF lv_qty<10 THEN
lv_shipping:=8.00;
ELSE lv_shipping:=11.00;
END IF;
RETURN lv_shipping;
END;
--function to get tax rate
CREATE OR REPLACE FUNCTION tax_sf
(p_basketid IN bb_basketitem.idbasket%type)
RETURN NUMBER
IS
lv_taxrate bb_tax.taxrate%type;
lv_tax NUMBER;
lv_shipstate bb_basket.shipstate%type;
BEGIN
SELECT taxrate, shipstate
INTO lv_taxrate, lv_shipstate
FROM bb_tax, bb_basket
WHERE bb_tax.taxrate=bb_basket.shipstate
AND p_basketid=idbasket;
lv_tax:=lv_taxrate*(subtotal_sf(p_basketid));
RETURN lv_tax;
END;
--host variable declaration and value assignment
variable g_basketid bb_basket.idbasket%Type;
begin
:g_basketid:=3;
end;
--procedure to use created functions
CREATE OR REPLACE PROCEDURE update_sp
(p_basketid IN bb_basket.idbasket%type)
IS
lv_total NUMBER;
lv_tax NUMBER;
lv_ship NUMBER;
lv_sub NUMBER;
BEGIN
lv_tax:=(tax_sf(p_basketid));
lv_ship:=(shipping_sf(p_basketid));
lv_sub:=(subtotal_sf(p_basketid));
lv_total:=lv_tax+lv_ship+lv_sub;
UPDATE bb_basket
SET orderplaced=1,
Subtotal=lv_sub,
Tax=lv_tax,
Shipping=lv_ship,
Total=lv_total
WHERE idbasket=p_basketid;
COMMIT;
END;
SQL> desc bb_basket;
Name Null? Type
IDBASKET NOT NULL NUMBER(5)
QUANTITY NUMBER(2)
IDSHOPPER NUMBER(4)
ORDERPLACED NUMBER(1)
SUBTOTAL NUMBER(7,2)
TOTAL NUMBER(7,2)
SHIPPING NUMBER(5,2)
TAX NUMBER(5,2)
DTCREATED DATE
PROMO NUMBER(2)
SHIPFIRSTNAME VARCHAR2(10)
SHIPLASTNAME VARCHAR2(20)
SHIPADDRESS VARCHAR2(40)
SHIPCITY VARCHAR2(20)
SHIPSTATE VARCHAR2(2)
SHIPZIPCODE VARCHAR2(15)
SHIPPHONE VARCHAR2(10)
SHIPFAX VARCHAR2(10)
SHIPEMAIL VARCHAR2(25)
BILLFIRSTNAME VARCHAR2(10)
BILLLASTNAME VARCHAR2(20)
BILLADDRESS VARCHAR2(40)
BILLCITY VARCHAR2(20)
BILLSTATE VARCHAR2(2)
BILLZIPCODE VARCHAR2(15)
BILLPHONE VARCHAR2(10)
BILLFAX VARCHAR2(10)
BILLEMAIL VARCHAR2(25)
DTORDERED DATE
SHIPPROVINCE VARCHAR2(20)
SHIPCOUNTRY VARCHAR2(20)
BILLPROVINCE VARCHAR2(20)
BILLCOUNTRY VARCHAR2(20)
CARDTYPE CHAR(1)
CARDNUMBER VARCHAR2(20)
EXPMONTH CHAR(2)
EXPYEAR CHAR(4)
CARDNAME VARCHAR2(25)
SHIPBILL CHAR(1)
SHIPFLAG CHAR(1)
SQL> desc bb_tax;
Name Null? Type
IDSTATE NOT NULL NUMBER(2)
STATE CHAR(2)
TAXRATE NUMBER(4,3)
SQL> desc update_sp;
PROCEDURE update_sp
Argument Name Type In/Out Default?
P_BASKETID NUMBER(5) IN
SQL> desc tax_sf;
FUNCTION tax_sf RETURNS NUMBER
Argument Name Type In/Out Default?
P_BASKETID NUMBER(5) IN
SQL> desc shipping_sf;
FUNCTION shipping_sf RETURNS NUMBER
Argument Name Type In/Out Default?
P_BASKETID NUMBER(5) IN
SQL> desc subtotal_sf;
FUNCTION subtotal_sf RETURNS NUMBER
Argument Name Type In/Out Default?
P_BASKETID NUMBER(5) INAny help woudl be appreciated.
I get the error when I call the procedure with either a host variable or a straight number.
I set up the host variable like:
variable g_basketid bb_basket.idbasket%Type;
begin
:g_basketid:=3;
end;
/Then I call the procedure as follows:
execute update_sp(:g_basketid);
And I get the error :
SQL> execute update_sp(:g_basketid);
BEGIN update_sp(:g_basketid); END;
ERROR at line 1:
ORA-01722: invalid number
ORA-06512: at "SYSTEM.TAX_SF", line 9
ORA-06512: at "SYSTEM.UPDATE_SP", line 9
ORA-06512: at line 1Any ideas?Anthony Wilson in his response bold faced the item he is referring to: Look closely.
But you have additional problems as well.
Look at the code for your function "subtotal_sf" for example. What will happen if you try to multiply something by zero or NULL.
No exception handling? You wouldn't pass the midterm I give my second quarter students. -
Understanding NVL: INVALID NUMBER in NVL Function
Hi,
The below query is a part of a cursor which takes in p_po_number as input with datatype same as segment1 of po_headers_all (varchar2(20)). The columns event_system_id1 to event_system_id4 are varchar2(240). In most cases p_po_number will be null as the program is scheduled and the input parameter of p_po_number is not passed. In effect, for most cases, the below query will end like event_system_id1 = NVL(NULL,event_system_id1)
I am getting an error of INVALID NUMBER
SELECT TO_NUMBER (event_system_id1)
FROM c_fnd_intf_transact_q
WHERE event_system_id2 = :p_organization_code
AND event_system_id4 =
DECODE (:p_po_type,
:vgc_internal, 'XXX',
:vgc_standard
AND event_system_id1 =
NVL (p_po_number, event_system_id1)
I modified the query to
SELECT event_system_id1
FROM c_fnd_intf_transact_q
WHERE event_system_id2 = :p_organization_code
AND event_system_id4 =
DECODE (:p_po_type,
:vgc_internal, 'XXX',
:vgc_standard
AND event_system_id1 =
NVL (p_po_number, event_system_id1)
which still threw the same error thus ruling out the cause of the issue being that to_number leaving only the implicit conversions of NVL.
I further modified the query to
SELECT TO_NUMBER (event_system_id1)
FROM c_fnd_intf_transact_q
WHERE event_system_id2 = :p_organization_code
AND event_system_id4 =
DECODE (:p_po_type,
:vgc_internal, 'XXX',
:vgc_standard
AND p_po_number is not null
which gave me the desired result in a round about way.
What confuses me here is both p_po_number and event_system_id1 are of varchar2 type. Why am I getting the error of INVALID NUMBER here and why is NVL converting the second parameter NUMBER datatype when the first one is VARCHAR2 even though null.
I am working in Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production.
P.S: The column event_system_id1 is not restricted to store numbers alone. It also contains character values though I use it only for storing number as it is shared table.Well, the expression
NVL (p_po_number, event_system_id1)
has NUMBER and VARCHAR2 elements, and you say "+P.S: The column event_system_id1 is not restricted to store numbers alone+" , and the documentation:
http://download.oracle.com/docs/cd/E14072_01/server.112/e10592/functions117.htm
says:
+The arguments expr1 and expr2 can have any data type. If their data types are different, then Oracle Database implicitly converts one to the other. If they are cannot be converted implicitly, the database returns an error. The implicit conversion is implemented as follows:+
+•If expr1 is character data, then Oracle Database converts expr2 to the data type of expr1 before comparing them and returns VARCHAR2 in the character set of expr1.+
+•If expr1 is numeric, then Oracle determines which argument has the highest numeric precedence, implicitly converts the other argument to that data type, and returns that data type.+
Exactly what is it you don't understand?
Regards, A -
ORA-01722: invalid number - I know where its failing - but why???
Not a clue..
lMy code is trying to update certain employees with their most recent entry - its the cursor ......... I'm using, I know I'm wanting it to use a NUMBER in '............' but its not using one (around the 'Section 2 part')..
eror message ....
...............................many many thanks for looking..
TimTimmy wrote:
Ok thanks for comments..
I've tried to_number(employeenumber,999999999) in the ........... and ............. cursors but still the same error message is returned. I hear what you're saying regarding the no WHERE clause on the UPDATe but I dont know what to do there either (working my way down the code..!) Ditto the LOOPing - trial and error really..
So if someone could suggest how I fix this 'invalid number' issue I'd be extremely grateful...
thanks for loooking..
TimYou need to get very clear in your head what is a number and what isn't, as well as what to_number() does.
this is a number ===> 123456
(notice the lack of quotes?)
this is a character string, not a number ===> '123456'
(notice the quotes?)
I don't care how much the second looks like a number to you, as far as oracle is concerned it is just a string of characters, fundamentally no different than your last name.
the function TO_NUMBER() is used to convert a character string that looks like a number (in other words, all of the characters in the string are numeric characters - characters that we use to represent numbers) into a real number. Thus
sql> select to_number('123456') from dual;is a legitimate use of the function. However
sql> select to_number(123456) from dual;Makes no sense, because you are asking it to convert a number to a number. So internally, it has to first recast the number into a character string so that it can pass a legal argument to TO_CHAR to be converted back to a number. -
Case When Statement and ORA:01722 Invalid number error
Hi folks, I have posted this under another heading as well under E-business suite so apologies if some you have already seen it but I would really appreciate some help on this one. Any suggestions are most welcome.
We are trying to put together a calculation that returns the number of days absent an individual has had in a given time period. We need to cater for those absences that started before the period and are closed during it, absence that start during the period and end after it, and those that open and close within it.
The period is always a rolling 6 months from sysdate.
This is the calc we have come up with so far which works for some people but we get the invalid number error if the absence includes a half day - so 0.5, 1.5,etc.
This is probably over complicated but we are not techie at all so are learning as we go!
We are using the HRMS - Administration - Oracle Human Resources (Core) business area in 10G and the Absence Attendance and Person folders.
SUM(TO_NUMBER(NVL(( CASE WHEN Absence Attendance.Actual Start Date < TO_DATE(ADD_MONTHS(SYSDATE,-6),'DD-Mon-YYYY') THEN ( CASE WHEN Absence Attendance."Actual End Date" > SYSDATE THEN ( WORKING_DAYS_BETWEEN(TO_DATE(ADD_MONTHS(SYSDATE,-6),'DD-Mon-YYYY'),SYSDATE) ) ELSE ( CASE WHEN ( CASE WHEN TO_DATE(ADD_MONTHS(SYSDATE,-6),'DD-Mon-YYYY') >= Absence Attendance.Actual Start Date THEN ( WORKING_DAYS_BETWEEN(TO_DATE(ADD_MONTHS(SYSDATE,-6),'DD-Mon-YYYY'),Absence Attendance."Actual End Date") ) ELSE ( CASE WHEN ( WORKING_DAYS_BETWEEN(Absence Attendance.Actual Start Date,Absence Attendance."Actual End Date") ) IS NULL THEN ( WORKING_DAYS_BETWEEN(Absence Attendance.Actual Start Date,SYSDATE) ) ELSE ( CASE WHEN SYSDATE <= Absence Attendance."Actual End Date" THEN ( WORKING_DAYS_BETWEEN(Absence Attendance.Actual Start Date,SYSDATE) ) ELSE ( WORKING_DAYS_BETWEEN(Absence Attendance.Actual Start Date,Absence Attendance."Actual End Date") ) END ) END ) END ) IS NULL THEN ( WORKING_DAYS_BETWEEN(TO_DATE(ADD_MONTHS(SYSDATE,-6),'DD-Mon-YYYY'),SYSDATE) ) ELSE ( CASE WHEN TO_DATE(ADD_MONTHS(SYSDATE,-6),'DD-Mon-YYYY') >= Absence Attendance.Actual Start Date THEN ( WORKING_DAYS_BETWEEN(TO_DATE(ADD_MONTHS(SYSDATE,-6),'DD-Mon-YYYY'),Absence Attendance."Actual End Date") ) ELSE ( CASE WHEN ( WORKING_DAYS_BETWEEN(Absence Attendance.Actual Start Date,Absence Attendance."Actual End Date") ) IS NULL THEN ( WORKING_DAYS_BETWEEN(Absence Attendance.Actual Start Date,SYSDATE) ) ELSE ( CASE WHEN SYSDATE <= Absence Attendance."Actual End Date" THEN ( WORKING_DAYS_BETWEEN(Absence Attendance.Actual Start Date,SYSDATE) ) ELSE ( WORKING_DAYS_BETWEEN(Absence Attendance.Actual Start Date,Absence Attendance."Actual End Date") ) END ) END ) END ) END ) END ) ELSE ( CASE WHEN ( CASE WHEN TO_DATE(ADD_MONTHS(SYSDATE,-6),'DD-Mon-YYYY') >= Absence Attendance.Actual Start Date THEN ( WORKING_DAYS_BETWEEN(TO_DATE(ADD_MONTHS(SYSDATE,-6),'DD-Mon-YYYY'),Absence Attendance."Actual End Date") ) ELSE ( CASE WHEN ( WORKING_DAYS_BETWEEN(Absence Attendance.Actual Start Date,Absence Attendance."Actual End Date") ) IS NULL THEN ( WORKING_DAYS_BETWEEN(Absence Attendance.Actual Start Date,SYSDATE) ) ELSE ( CASE WHEN SYSDATE <= Absence Attendance."Actual End Date" THEN ( WORKING_DAYS_BETWEEN(Absence Attendance.Actual Start Date,SYSDATE) ) ELSE ( WORKING_DAYS_BETWEEN(Absence Attendance.Actual Start Date,Absence Attendance."Actual End Date") ) END ) END ) END ) IS NULL THEN ( WORKING_DAYS_BETWEEN(TO_DATE(ADD_MONTHS(SYSDATE,-6),'DD-Mon-YYYY'),SYSDATE) ) ELSE ( CASE WHEN TO_DATE(ADD_MONTHS(SYSDATE,-6),'DD-Mon-YYYY') >= Absence Attendance.Actual Start Date THEN ( WORKING_DAYS_BETWEEN(TO_DATE(ADD_MONTHS(SYSDATE,-6),'DD-Mon-YYYY'),Absence Attendance."Actual End Date") ) ELSE ( CASE WHEN ( WORKING_DAYS_BETWEEN(Absence Attendance.Actual Start Date,Absence Attendance."Actual End Date") ) IS NULL THEN ( WORKING_DAYS_BETWEEN(Absence Attendance.Actual Start Date,SYSDATE) ) ELSE ( CASE WHEN SYSDATE <= Absence Attendance."Actual End Date" THEN ( WORKING_DAYS_BETWEEN(Absence Attendance.Actual Start Date,SYSDATE) ) ELSE ( Absence Attendance.Duration Days ) END ) END ) END ) END ) END ),( DAYS_BETWEEN(Absence Attendance.Actual Start Date,Absence Attendance."Actual End Date") )),'999999990D00'))Hi,
It could be that this is because you are using SYSDATE which contains the time as a fraction rather than TRUNC(SYSDATE) which just contains the current time. It could be that your working_dates_between raises this error.
However, your formula is far more complicated than it needs to be.
Firstly, you want to look at the date window ADD_MONTHS(TRUNC(SYSDATE), -6) to TRUNC(SYSDATE). Then you want to look at the portion of the absence that falls in the date window. This is GREATEST(Absence Attendance.Actual Start Date, ADD_MONTHS(TRUNC(SYSDATE), -6)) to LEAST(NVL(Absence Attendance."Actual End Date",TRUNC(SYSDATE)), TRUNC(SYSDATE)). You may need to add 1 to the absence end date because this is the last day of their absence rather than the date they return. It depends how you calculate the days between the start and end
date of the absence. You can create calculations for the start and end date of the absences within the 6 months time window. Create calculation AbsenceStart as
GREATEST(Absence Attendance.Actual Start Date, ADD_MONTHS(TRUNC(SYSDATE), -6))
and AbsenceEnd as
LEAST(NVL(Absence Attendance."Actual End Date",TRUNC(SYSDATE)), TRUNC(SYSDATE))
Then you need to only pick up absence that a part of the absence in your 6 month date window. You can use a condition in the workbook or a condition in a case statement to do this. You then need to calculate the difference between these dates and SUM all the values.
SUM(CASE WHEN AbsenceEnd >= AbsenceStart THEN WORKING_DAYS_BETWEEN(AbsenceStart, AbsenceEnd) END)
That's it. Not so complicated after all.
Rod West -
Case When Statement and ORA:1722 Invalid number error
Sorry I posted this in the wrong forum - I have the answer now
Cheers
HELP!!!
We are trying to put together a calculation that returns the number of days absent an individual has had in a given time period. We need to cater for those absences that started before the period and are closed during it, absence that start during the period and end after it, and those that open and close within it.
The period is always a rolling 6 months from sysdate.
This is the calc we have come up with so far which works for some people but we get the invalid number error if the absence includes a half day - so 0.5, 1.5,etc.
This is probably over complicated but we are not Techie at all so are learning as we go! We are using the HRMS - Administration - Oracle Human Resources (Core) business area in 10G and the Absence Attendance and Person folders.
SUM(TO_NUMBER(NVL(( CASE WHEN Absence Attendance.Actual Start Date < TO_DATE(ADD_MONTHS(SYSDATE,-6),'DD-Mon-YYYY') THEN ( CASE WHEN Absence Attendance."Actual End Date" > SYSDATE THEN ( WORKING_DAYS_BETWEEN(TO_DATE(ADD_MONTHS(SYSDATE,-6),'DD-Mon-YYYY'),SYSDATE) ) ELSE ( CASE WHEN ( CASE WHEN TO_DATE(ADD_MONTHS(SYSDATE,-6),'DD-Mon-YYYY') >= Absence Attendance.Actual Start Date THEN ( WORKING_DAYS_BETWEEN(TO_DATE(ADD_MONTHS(SYSDATE,-6),'DD-Mon-YYYY'),Absence Attendance."Actual End Date") ) ELSE ( CASE WHEN ( WORKING_DAYS_BETWEEN(Absence Attendance.Actual Start Date,Absence Attendance."Actual End Date") ) IS NULL THEN ( WORKING_DAYS_BETWEEN(Absence Attendance.Actual Start Date,SYSDATE) ) ELSE ( CASE WHEN SYSDATE <= Absence Attendance."Actual End Date" THEN ( WORKING_DAYS_BETWEEN(Absence Attendance.Actual Start Date,SYSDATE) ) ELSE ( WORKING_DAYS_BETWEEN(Absence Attendance.Actual Start Date,Absence Attendance."Actual End Date") ) END ) END ) END ) IS NULL THEN ( WORKING_DAYS_BETWEEN(TO_DATE(ADD_MONTHS(SYSDATE,-6),'DD-Mon-YYYY'),SYSDATE) ) ELSE ( CASE WHEN TO_DATE(ADD_MONTHS(SYSDATE,-6),'DD-Mon-YYYY') >= Absence Attendance.Actual Start Date THEN ( WORKING_DAYS_BETWEEN(TO_DATE(ADD_MONTHS(SYSDATE,-6),'DD-Mon-YYYY'),Absence Attendance."Actual End Date") ) ELSE ( CASE WHEN ( WORKING_DAYS_BETWEEN(Absence Attendance.Actual Start Date,Absence Attendance."Actual End Date") ) IS NULL THEN ( WORKING_DAYS_BETWEEN(Absence Attendance.Actual Start Date,SYSDATE) ) ELSE ( CASE WHEN SYSDATE <= Absence Attendance."Actual End Date" THEN ( WORKING_DAYS_BETWEEN(Absence Attendance.Actual Start Date,SYSDATE) ) ELSE ( WORKING_DAYS_BETWEEN(Absence Attendance.Actual Start Date,Absence Attendance."Actual End Date") ) END ) END ) END ) END ) END ) ELSE ( CASE WHEN ( CASE WHEN TO_DATE(ADD_MONTHS(SYSDATE,-6),'DD-Mon-YYYY') >= Absence Attendance.Actual Start Date THEN ( WORKING_DAYS_BETWEEN(TO_DATE(ADD_MONTHS(SYSDATE,-6),'DD-Mon-YYYY'),Absence Attendance."Actual End Date") ) ELSE ( CASE WHEN ( WORKING_DAYS_BETWEEN(Absence Attendance.Actual Start Date,Absence Attendance."Actual End Date") ) IS NULL THEN ( WORKING_DAYS_BETWEEN(Absence Attendance.Actual Start Date,SYSDATE) ) ELSE ( CASE WHEN SYSDATE <= Absence Attendance."Actual End Date" THEN ( WORKING_DAYS_BETWEEN(Absence Attendance.Actual Start Date,SYSDATE) ) ELSE ( WORKING_DAYS_BETWEEN(Absence Attendance.Actual Start Date,Absence Attendance."Actual End Date") ) END ) END ) END ) IS NULL THEN ( WORKING_DAYS_BETWEEN(TO_DATE(ADD_MONTHS(SYSDATE,-6),'DD-Mon-YYYY'),SYSDATE) ) ELSE ( CASE WHEN TO_DATE(ADD_MONTHS(SYSDATE,-6),'DD-Mon-YYYY') >= Absence Attendance.Actual Start Date THEN ( WORKING_DAYS_BETWEEN(TO_DATE(ADD_MONTHS(SYSDATE,-6),'DD-Mon-YYYY'),Absence Attendance."Actual End Date") ) ELSE ( CASE WHEN ( WORKING_DAYS_BETWEEN(Absence Attendance.Actual Start Date,Absence Attendance."Actual End Date") ) IS NULL THEN ( WORKING_DAYS_BETWEEN(Absence Attendance.Actual Start Date,SYSDATE) ) ELSE ( CASE WHEN SYSDATE <= Absence Attendance."Actual End Date" THEN ( WORKING_DAYS_BETWEEN(Absence Attendance.Actual Start Date,SYSDATE) ) ELSE ( Absence Attendance.Duration Days ) END ) END ) END ) END ) END ),( DAYS_BETWEEN(Absence Attendance.Actual Start Date,Absence Attendance."Actual End Date") )),'999999990D00'))
Edited by: CPearce on Sep 25, 2008 8:03 AMHi,
It could be that this is because you are using SYSDATE which contains the time as a fraction rather than TRUNC(SYSDATE) which just contains the current time. It could be that your working_dates_between raises this error.
However, your formula is far more complicated than it needs to be.
Firstly, you want to look at the date window ADD_MONTHS(TRUNC(SYSDATE), -6) to TRUNC(SYSDATE). Then you want to look at the portion of the absence that falls in the date window. This is GREATEST(Absence Attendance.Actual Start Date, ADD_MONTHS(TRUNC(SYSDATE), -6)) to LEAST(NVL(Absence Attendance."Actual End Date",TRUNC(SYSDATE)), TRUNC(SYSDATE)). You may need to add 1 to the absence end date because this is the last day of their absence rather than the date they return. It depends how you calculate the days between the start and end
date of the absence. You can create calculations for the start and end date of the absences within the 6 months time window. Create calculation AbsenceStart as
GREATEST(Absence Attendance.Actual Start Date, ADD_MONTHS(TRUNC(SYSDATE), -6))
and AbsenceEnd as
LEAST(NVL(Absence Attendance."Actual End Date",TRUNC(SYSDATE)), TRUNC(SYSDATE))
Then you need to only pick up absence that a part of the absence in your 6 month date window. You can use a condition in the workbook or a condition in a case statement to do this. You then need to calculate the difference between these dates and SUM all the values.
SUM(CASE WHEN AbsenceEnd >= AbsenceStart THEN WORKING_DAYS_BETWEEN(AbsenceStart, AbsenceEnd) END)
That's it. Not so complicated after all.
Rod West -
ORA - 01722: invalid number in Discoverer Desktop/4i
Hi,
We have a report that has a date range as parameter. When the report is run for a smaller date range (sometimes specifically 87 days...though this may be a coincidence), the report runs fine. Problem occurs when we want data for a larger period (like an year or 1/2 year), the report errors out with invalid number error. I've seen a lot of messages posted on this topic, but that's not of much help. Any help in this regard is totally appreciated.
Thanks,
Alka.Here's the select (Please note that incident_date is used for checking the date range):
SELECT par.party_id
,par.party_name customer_name
,par.party_number customer_number
,inc.incident_date
,msi.segment1 item_number
,msi.description
,ced.quantity_required qty_used
,COUNT(msi.segment1) item_count
FROM cs_incidents_all_b inc
,hz_party_sites sit
,hz_parties par
,cs_estimate_details ced
,mtl_system_items_b msi
,qp_list_headers_all qlh
,qp_list_lines_v qll
WHERE inc.incident_id = ced.incident_id
AND ced.inventory_item_id = msi.inventory_item_id
AND msi.organization_id = 123
AND ced.inventory_item_id = qll.product_attr_value
AND qll.list_header_id = qlh.list_header_id
AND inc.install_site_id = sit.party_site_id
AND sit.party_id = par.party_id
AND qlh.NAME = 'ABC'
AND qll.operand >= 25
and ced.quantity_required>0
GROUP BY par.party_id
,par.party_name
,par.party_number
,inc.incident_date
,msi.segment1
,msi.description
,ced.quantity_required -
Interactive Report and the mysterious invalid number
Hello,
I have an application that is ready, or so I thought, to be sent to a client to update an existing application. One page in the application has an interactive report that is based on a table in the parsing schema that is joined to the apex_collections view. The report works without issue in my dev environment as well as in the client's test environment. But when a colleague tested the updated app in a different test environment, the report errors out with an ORA-01722: invalid number error.
Needless to say I'm now hesitant about the update to production because I can't find the cause of the issue on my colleague's machine and would hate for this to happen in production. In trying to find the issue in on my colleague's machine, I first tried removing all of the columns (save the id) from the report to see if it was being generated there, no change. Then I started removing the joins and when the join to the apex_collections view was removed the error disappeared. The join was written as:
SELECT *
FROM table tbl
JOIN apex_collections col
ON tbl.id = col.c001
WHERE col.collection_name = 'MY_COLLECTION';I know that the underlying tables for the apex_collections view store columns c001 .. c050 as VARCHAR2(4000) so I was relying on implicit data conversion to apply the join. Perhaps this is where the error is coming from but that would mean that "extra" rows are being returned as all of the c001 values returned in the session (from dev toolbar) are also valid numbers. As I said before, the problem is only occurring in 1 of 3 apex instances so I tested it in a 4th, and again, there was NO problem. I then realized that my query is potentially dangerous if c001 is used to hold something other than a number in the current session, which is NOT the case in any of the instances, but I tried updating the report to the following to see if it would help:
SELECT *
FROM table tbl
JOIN (
SELECT TO_NUMBER(c001) AS c001
FROM apex_collections col
WHERE collection_name = 'MY_COLLECTION'
) apex_col
ON apex_col.c001 = tbl.idThat query worked as expected in the dev environment and will be used as the query going forward. However, it failed to fix the problem in the "problem" instance. This seems to be a local issue but I'd like to know for sure. All of the systems are configured as follows:
1. Dev - Oracle 10g R2 XE - ApEx 3.1.2 - Works
2. Test1 - Oracle 10g R2 EE - ApEx 3.1.2 - Works
3. Test2 (colleague) - Oracle 10g R2 XE - ApEx 3.1.2 - Fails
4. Test3 (my localhost) - Oracle 10g R2 XE - ApEx 3.1.2 - Works
5. Prod - Oracle 10g R2 EE - ApEx 3.1.2 - ???
Any ideas?
Regards,
Dan
http://danielmcghan.us
http://sourceforge.net/projects/tapigenDan,
I'm always suspicious of problems that disappear without knowing why - usually they reappear the very moment that an end-user starts using the app :D
You didn't show how you are populating the collection in your original posting, so I'm not clear on exactly what the data would show. What I was thinking was, knowing that collections are all varchar2's, that something like TO_CHAR() had been used in the SQL statement that created the collection.
I don't think that trimming the data would have any effect. If the problem does happen again, I would suggest creating a report based on the collection (basically doing a data dump onto a page) and then see exactly what is in there. If any number contains a comma (or other characters such as currency symbols), then you have to use a number format string to get back to the actual raw number.
Andy -
Hi experts,
I have a very strange problem. I have a query to which I am binding a value. The datatype of the value is number. Whenever I am executing the VO for the second time it is throwing ORA-01722: invalid number exception. The value that is being bound is 100% number. The JDBC version I am using is 9.2.0.6.0
It is reproducible in instance and JDeveloper.
I have no clue why it is happening. Appreciate if someone can give some pointers.
Error stack:
[1814] SELECT mcixv.customer_number CustomerNumber,
mcixv.customer_name CustomerName,
aav.concatenated_address ShipToLocation
FROM mtl_customer_item_xrefs_v mcixv,
ic_item_mst iim ,
mtl_system_items msi,
ar_addresses_v aav,
hz_site_uses_v hsv
WHERE hsv.primary_flag = 'Y'
AND hsv.bill_to_location IS NOT NULL
AND hsv.site_use_code = 'SHIP_TO'
AND aav.address_id = hsv.address_id
AND mcixv.customer_id = aav.customer_id
AND mcixv.inactive_flag= 'N'
AND mcixv.concatenated_segments = iim.item_no
AND mcixv.inventory_item_id = msi.inventory_item_id
AND msi.organization_id = xxtmg_ul_common_utils.get_organization_id
AND msi.segment1 = iim.item_no
AND xxtmg_an_process_utils.get_price_list_uom(mcixv.customer_number,iim.item_id) = 'Y'
AND iim.item_id = :1
group by mcixv.customer_number, mcixv.customer_name,aav.concatenated_address[1815] Binding param 1: 4084[1816] ViewObject close single-use prepared statements[1817] QueryCollection.executeQuery failed...[1818] java.sql.SQLException: ORA-01722: invalid number
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134) at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289) at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:583) at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1986) at oracle.jdbc.ttc7.TTC7Protocol.executeFetch(TTC7Protocol.java:1005) at oracle.jdbc.dbaccess.DBAccess.executeFetchNeedDefines(DBAccess.java:283) at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2673) at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2933) at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:650) at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:578) at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:627) at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:515) at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3347) at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(OAJboViewObjectImpl.java:828) at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4495) at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:574) at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:544) at oracle.jbo.server.ViewRowSetImpl.executeDetailQuery(ViewRowSetImpl.java:619) at oracle.jbo.server.ViewObjectImpl.executeDetailQuery(ViewObjectImpl.java:3311) at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3298) at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQuery(OAViewObjectImpl.java:444) at tempel.oracle.apps.xxtmg.an.scaleaudit.server.checkCustomersPresentVOImpl.initQuery(checkCustomersPresentVOImpl.java:22) at tempel.oracle.apps.xxtmg.an.scaleaudit.server.ScaleAuditAMImpl.validateNonFurnSublot(ScaleAuditAMImpl.java:762) at tempel.oracle.apps.xxtmg.an.scaleaudit.server.webui.ScaleAuditCO.processFormRequest(ScaleAuditCO.java:1005) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:804) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363) at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1157) at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1000) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:966) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:821) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363) at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1000) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:966) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:821) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363) at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363) at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2632) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1658) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:501) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:422) at OA.jspService(OA.jsp:40) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803) at java.lang.Thread.run(Thread.java:534)[1819] checkCustomersPresentVO1>#q old SQLStmtBufLen: 933, actual=903, storing=933[1820] SELECT mcixv.customer_number CustomerNumber,
mcixv.customer_name CustomerName,
aav.concatenated_address ShipToLocation
FROM mtl_customer_item_xrefs_v mcixv,
ic_item_mst iim ,
mtl_system_items msi,
ar_addresses_v aav,
hz_site_uses_v hsv
WHERE hsv.primary_flag = 'Y'
AND hsv.bill_to_location IS NOT NULL
AND hsv.site_use_code = 'SHIP_TO'
AND aav.address_id = hsv.address_id
AND mcixv.customer_id = aav.customer_id
AND mcixv.inactive_flag= 'N'
AND mcixv.concatenated_segments = iim.item_no
AND mcixv.inventory_item_id = msi.inventory_item_id
AND msi.organization_id = xxtmg_ul_common_utils.get_organization_id
AND msi.segment1 = iim.item_no
AND xxtmg_an_process_utils.get_price_list_uom(mcixv.customer_number,iim.item_id) = 'Y'
AND iim.item_id = :1
group by mcixv.customer_number, mcixv.customer_name,aav.concatenated_addressJBO-27122: SQL error during statement preparation. Statement: SELECT mcixv.customer_number CustomerNumber,
mcixv.customer_name CustomerName,
aav.concatenated_address ShipToLocation
FROM mtl_customer_item_xrefs_v mcixv,
ic_item_mst iim ,
mtl_system_items msi,
ar_addresses_v aav,
hz_site_uses_v hsv
WHERE hsv.primary_flag = 'Y'
AND hsv.bill_to_location IS NOT NULL
AND hsv.site_use_code = 'SHIP_TO'
AND aav.address_id = hsv.address_id
AND mcixv.customer_id = aav.customer_id
AND mcixv.inactive_flag= 'N'
AND mcixv.concatenated_segments = iim.item_no
AND mcixv.inventory_item_id = msi.inventory_item_id
AND msi.organization_id = xxtmg_ul_common_utils.get_organization_id
AND msi.segment1 = iim.item_no
AND xxtmg_an_process_utils.get_price_list_uom(mcixv.customer_number,iim.item_id) = 'Y'
AND iim.item_id = :1
group by mcixv.customer_number, mcixv.customer_name,aav.concatenated_addressoracle.apps.fnd.framework.OAException: JBO-27122: SQL error during statement preparation. Statement: SELECT mcixv.customer_number CustomerNumber,
mcixv.customer_name CustomerName,
aav.concatenated_address ShipToLocation
FROM mtl_customer_item_xrefs_v mcixv,
ic_item_mst iim ,
mtl_system_items msi,
ar_addresses_v aav,
hz_site_uses_v hsv
WHERE hsv.primary_flag = 'Y'
AND hsv.bill_to_location IS NOT NULL
AND hsv.site_use_code = 'SHIP_TO'
AND aav.address_id = hsv.address_id
AND mcixv.customer_id = aav.customer_id
AND mcixv.inactive_flag= 'N'
AND mcixv.concatenated_segments = iim.item_no
AND mcixv.inventory_item_id = msi.inventory_item_id
AND msi.organization_id = xxtmg_ul_common_utils.get_organization_id
AND msi.segment1 = iim.item_no
AND xxtmg_an_process_utils.get_price_list_uom(mcixv.customer_number,iim.item_id) = 'Y'
AND iim.item_id = :1
group by mcixv.customer_number, mcixv.customer_name,aav.concatenated_address[1821] OAApplicationPoolImpl.setConnectionReleaseLevel was called with isReleased = true, isReserved = true[1822] setConnectionReleaseLevel - Set connection release level to 1JRAD_PERF : /tempel/oracle/apps/xxtmg/an/scaleaudit/webui/ScaleAuditPG - preparePage : 10045msJRAD_PERF : /tempel/oracle/apps/xxtmg/an/scaleaudit/webui/ScaleAuditPG - renderDocument : 70msI'm just trying to rule out the possiblity of unsynchronized load balanced servers because the issue begaviour is not pointing to code as such otherwise it shouldn't have been happening in a random way. Have you put the trace and seen the value of parameter which is getting binded at the time the error is getting generated.
--Shiv -
Recieving ORA-01722 invalid number error while creating a materialized view
Hi,
I am receiving a ORA-01722 invalid number error while creating a materialized view. when run the select statement of the view i don't get any error, but when i use the same select statement to create a materialized view i receive this error. Could any please help in resolving this error. Here is the code i am using to create a materialized view.
CREATE MATERIALIZED VIEW MV_EBS_CH_CLOSED
REFRESH FORCE ON DEMAND
AS
SELECT DISTINCT kr.request_id, org.org_unit_name,
ebs_ch_ticket_type (kr.request_id) ticket_type,
DECODE
(kr.status_code,
'CLOSED_SUCCESS', kr.last_update_date,
'IN_PROGRESS', (SELECT MAX (start_time)
FROM ebs_ch_datastore ecd1
WHERE kr.request_id = ecd1.request_id
AND workflow_step_name =
'Final BA Review and Deployment Exit Criteria')
) closed_date,
substr(krhd.visible_parameter12,1,10) siebel_start_date,
kr.creation_date itg_start_date
FROM kcrt_requests kr,
kcrt_request_types krt,
kcrt_req_header_details krhd, kcrt_request_details krd1,
(SELECT koum.user_id user_id,
DECODE (koup.org_unit_name,
'IT Implementations', 'CHS - Service Management BA',
koup.org_unit_name
) org_unit_name
FROM krsc_org_unit_members koum, krsc_org_units koup
WHERE 1 = 1
AND 'Y' = koup.enabled_flag
AND koum.org_unit_id = koup.org_unit_id
AND EXISTS (
SELECT 'X'
FROM krsc_org_units kouc
WHERE koup.org_unit_id = kouc.org_unit_id
START WITH kouc.parent_org_unit_id =
ANY (SELECT org_unit_id
FROM krsc_org_units krsc_org_units1
WHERE 'Clearinghouse' =
org_unit_name)
CONNECT BY kouc.parent_org_unit_id =
PRIOR kouc.org_unit_id)
UNION
SELECT kou.manager_id user_id,
DECODE
(kou.org_unit_name,
'IT Implementations', 'CHS - Service Management BA',
kou.org_unit_name
) org_unit_name
FROM krsc_org_units kou
WHERE 'Y' = kou.enabled_flag
START WITH kou.parent_org_unit_id =
(SELECT org_unit_id
FROM krsc_org_units krsc_org_units2
WHERE 'Clearinghouse' = org_unit_name)
CONNECT BY kou.parent_org_unit_id = PRIOR kou.org_unit_id) org
WHERE krt.request_type_id = kr.request_type_id
AND krt.request_type_name IN ('Bug Fix', 'IT Enhancement')
and kr.REQUEST_ID = krd1.request_id
and krd1.batch_number = 1
AND kr.request_id = krhd.request_id
AND org.user_id in (krd1.parameter4, krd1.parameter5, krd1.parameter7)
AND ( 'CLOSED_SUCCESS' = kr.status_code
OR 'IN_PROGRESS' = kr.status_code
AND kr.request_id IN (
SELECT request_id
FROM (SELECT DISTINCT request_id,
MAX
(start_time)
closed_date
FROM ebs_ch_datastore
WHERE 'Final BA Review and Deployment Exit Criteria' =
workflow_step_name
GROUP BY request_id))
Thanks,
Shaik MohiuddinThis error occurs when you try to create a materialized view , but if you run the sql the results are perfectly fine. Well it happend to me also and to fix this I made sure all the coulmns have the same data type which are used in joins or in where clause.
use
where
to_number(col1)=to_number(col2) and to_number(col3)=to_number(col4)
hope this helps..
Maybe you are looking for
-
Crystal Report 8.5 with SQL SERVER 2005 problems
Post Author: AREVA CA Forum: Data Connectivity and SQL Hi All !We have some problems with Crystal Reports version 8.5 with SQL Server 2005: 1) When we want to generate a report (using data in SQL Server 2005) we have a popup message error : "impossib
-
I've got a date that is being displayed as YYYY-MM-DD in spite of having set it to be displayed as MM/DD/YYYY in both the VO and EO. I've edited my formatinfo.xml file, and the format is there, but for some reason on this one date field (others are w
-
HA ACS in two different subnets.
Hello, I have to configure two ACS 1113 ver 4.1 (4) high reliability, in two different places and two different subnets. An apparatus will have to manage an office, the second the other office, but if one goes down the other takes responsibility for
-
Turning off Sections setting in Pages '09
Is there any way to remove the Sections setting in pages 09? I'm creating a document, and no "sections" are required. When it groups pages together, and adds extra blank ones, it becomes quite a hassle. Any ideas as to how this feature can be turned
-
Use of Scrollbar for movieclips
I have created a script that duplicates movieclip in an other movieclip with instance "mainmovie_mc" the problem is just that mostly the clip becomes bigger then the stage can some please give me a script or tell me how to create one that checks the