Delaying the sql statement in script
hi,
i am using oracle10g(10.2.0.4) in windows xp service pack 2. i am creating a batch file and i want the next line of my script to be run in a delay of 5 to 10 seconds. can anyone help me out in getting the command in windows ??????
if you set dwMilliseconds to a value greater than 0 but less than one tick (e.g. Sleep(1);), the thread will sleep for at least one tick. So if one tick is 1/64 second (15.625ms), and you Sleep(1);, your thread will (in my experience) sleep for at least 15.625ms. On a server with Windows Server 2003 Enterprise x64 Edition, 1000 Sleep(1); calls take 15.625 seconds (exactly 1000 ticks). 1000 Sleep(15) calls on the same server takes 15.625 seconds as well.
Similar Messages
-
Why has the sql statement been extucted two times in shell script?
I tried to test rac load balance using the following shell script on suse 10 + oracle 10g rac.
oracle@SZDB:~> more load_balance.sh
#!/bin/bash
for i in {1..20}
do
echo $i
sqlplus -S system/oracle@ORA10G <<EOF
select instance_name from v\$instance;
EOF
sleep 1
done
exit 0After execute shell script, I got the follow result.
oracle@SZDB:~> ./load_balance.sh
1
INSTANCE_NAME
ora10g2
INSTANCE_NAME
ora10g2
2
INSTANCE_NAME
ora10g1
INSTANCE_NAME
ora10g1
3
INSTANCE_NAME
ora10g1
INSTANCE_NAME
ora10g1Seem the sql statement has been executed two times in each loop. If you feel free please help to have a look. Thanks in advance.
RobinsonYou can end a SQL command in one of three ways:
* with a semicolon (;)
* with a slash (/) on a line by itself
* with a blank line
A semicolon (;) tells SQL*Plus that you want to run the current command that was entered. SQL*Plus processes the command and also stores the command in the SQL buffer.
A blank line in a SQL statement or script tells SQL*Plus that you have finished entering the command, but do not want to run it yet, but it's stored the command on SQL Buffer.
A slash (/) on a line by itself tells SQL*Plus that you wish to run the command stored on SQL buffer. -
CJS-00084 SQL Statement or Script failed. Error Message: Executable
Hello
Hello
I am facing one problem at the time of installing 4.7 IDES can you please guide me on that. Do I need to reinstall system ageing or it can be sort it out in this stage.
ERROR AT THE TIME OF INSTALLING SAP 4.7 IDES ARE
1. CJS-00084 SQL Statement or Script failed. Error Message: Executable
C:\oracle\ora92/bin/sqlplus.exe returns 3.
2. FJS-00012 Error when executing script.
Complete error log :--
INFO 2000-06-15 20:56:57
Moving file C:/SAPinst ORACLE KERNEL/changed_init_ora_tmp.txt to: C:\oracle\ora92\database\initGOD.ora.
INFO 2000-06-15 20:56:57
Removing file C:/SAPinst ORACLE KERNEL/orig_init_ora_tmp.txt.
INFO 2000-06-15 20:56:57
Creating file C:\SAPinst ORACLE KERNEL\lsnrctl.log.
INFO 2000-06-15 20:56:58
See 'C:\oracle\ora92/bin/lsnrctl stat' output in 'C:\SAPinst ORACLE KERNEL\lsnrctl.log'.
INFO 2000-06-15 20:56:58
'C:\oracle\ora92/bin/lsnrctl stat' returned with '3'.
INFO 2000-06-15 20:56:58
Creating file C:\SAPinst ORACLE KERNEL\lsnrctl.log.
INFO 2000-06-15 20:56:58
See 'C:\oracle\ora92/bin/lsnrctl start' output in 'C:\SAPinst ORACLE KERNEL\lsnrctl.log'.
INFO 2000-06-15 20:56:58
'C:\oracle\ora92/bin/lsnrctl start' returned with '0'.
INFO 2000-06-15 20:56:58
Copying file D:/SAP_DUMP/CD1/KERNEL/NT/COMMON/INSTALL/ORADBUSR.SQL to: ./oradbusr.sql.
INFO 2000-06-15 20:56:58
Creating file C:\SAPinst ORACLE KERNEL\oradbusr.sql.
INFO 2000-06-15 20:56:59
Changed working directory to C:\SAPinst ORACLE KERNEL.
INFO 2000-06-15 20:56:59
Changed working directory to C:\SAPinst ORACLE KERNEL.
ERROR 2000-06-15 20:57:00
CJS-00084 SQL Statement or Script failed. Error Message: Executable C:\oracle\ora92/bin/sqlplus.exe returns 3.
ERROR 2000-06-15 20:57:00
FJS-00012 Error when executing script.
INFO 2000-06-15 20:56:57
Moving file C:/SAPinst ORACLE KERNEL/changed_init_ora_tmp.txt to: C:\oracle\ora92\database\initGOD.ora.
INFO 2000-06-15 20:56:57
Removing file C:/SAPinst ORACLE KERNEL/orig_init_ora_tmp.txt.
INFO 2000-06-15 20:56:57
Creating file C:\SAPinst ORACLE KERNEL\lsnrctl.log.
INFO 2000-06-15 20:56:58
See 'C:\oracle\ora92/bin/lsnrctl stat' output in 'C:\SAPinst ORACLE KERNEL\lsnrctl.log'.
INFO 2000-06-15 20:56:58
'C:\oracle\ora92/bin/lsnrctl stat' returned with '3'.
INFO 2000-06-15 20:56:58
Creating file C:\SAPinst ORACLE KERNEL\lsnrctl.log.
INFO 2000-06-15 20:56:58
See 'C:\oracle\ora92/bin/lsnrctl start' output in 'C:\SAPinst ORACLE KERNEL\lsnrctl.log'.
INFO 2000-06-15 20:56:58
'C:\oracle\ora92/bin/lsnrctl start' returned with '0'.
INFO 2000-06-15 20:56:58
Copying file D:/SAP_DUMP/CD1/KERNEL/NT/COMMON/INSTALL/ORADBUSR.SQL to: ./oradbusr.sql.
INFO 2000-06-15 20:56:58
Creating file C:\SAPinst ORACLE KERNEL\oradbusr.sql.
INFO 2000-06-15 20:56:59
Changed working directory to C:\SAPinst ORACLE KERNEL.
INFO 2000-06-15 20:56:59
Changed working directory to C:\SAPinst ORACLE KERNEL.
ERROR 2000-06-15 20:57:00
CJS-00084 SQL Statement or Script failed. Error Message: Executable C:\oracle\ora92/bin/sqlplus.exe returns 3.
ERROR 2000-06-15 20:57:00
FJS-00012 Error when executing script.
INFO 2000-06-15 21:04:28
Changed working directory to C:\SAPinst ORACLE KERNEL.
INFO 2000-06-15 21:04:28
Changed working directory to C:\SAPinst ORACLE KERNEL.
ERROR 2000-06-15 21:04:29
CJS-00084 SQL Statement or Script failed. Error Message: Executable C:\oracle\ora92/bin/sqlplus.exe returns 3.
ERROR 2000-06-15 21:04:29
FJS-00012 Error when executing script.
INFO 2000-06-15 21:04:37
Changed working directory to C:\SAPinst ORACLE KERNEL.
INFO 2000-06-15 21:04:37
Changed working directory to C:\SAPinst ORACLE KERNEL.
ERROR 2000-06-15 21:04:37
CJS-00084 SQL Statement or Script failed. Error Message: Executable C:\oracle\ora92/bin/sqlplus.exe returns 3.
ERROR 2000-06-15 21:04:37
FJS-00012 Error when executing script.
INFO 2000-06-15 21:04:51
Changed working directory to C:\SAPinst ORACLE KERNEL.
INFO 2000-06-15 21:04:51
Changed working directory to C:\SAPinst ORACLE KERNEL.
ERROR 2000-06-15 21:04:51
CJS-00084 SQL Statement or Script failed. Error Message: Executable C:\oracle\ora92/bin/sqlplus.exe returns 3.
ERROR 2000-06-15 21:04:51
FJS-00012 Error when executing script.
WARNING 2000-06-15 21:07:00
Error 2 (The system cannot find the file specified.
) in execution of a 'CreateProcess' function, line (276), with parameter (C:\oracle\ora92/bin/sqlplus.exe /NOLOG @ora_scr_tmp.sql).
ERROR 2000-06-15 21:07:00
MDB-06029 Caught exception while trying to start script executing application: [C:\oracle\ora92/bin/sqlplus.exe].
ERROR 2000-06-15 21:07:00
MDB-06030 A call to the system library failed. System error message: [No such file or directory].
ERROR 2000-06-15 21:07:00
MUT-02011 Internal error: A call to syslib failed. System error message: No such file or directory.
ERROR 2000-06-15 21:07:00
FJS-00012 Error when executing script.
WARNING 2000-06-15 21:11:52
Error 1326 (Logon failure: unknown user name or bad password.
) in execution of a 'LogonUser' function, line (537), with parameter (SAPTRANSHOST\godadm).
ERROR 2000-06-15 21:11:52
MDB-06029 Caught exception while trying to start script executing application: [C:\oracle\ora92/bin/sqlplus.exe].
ERROR 2000-06-15 21:11:52
MDB-06030 A call to the system library failed. System error message: [Unknown error].
ERROR 2000-06-15 21:11:52
MUT-02011 Internal error: A call to syslib failed. System error message: Unknown error.
ERROR 2000-06-15 21:11:52
FJS-00012 Error when executing script.
INFO 2000-06-15 21:11:53
Changed working directory to C:\SAPinst ORACLE KERNEL.
INFO 2000-06-15 21:11:54
Changed working directory to C:\SAPinst ORACLE KERNEL.
ERROR 2000-06-15 21:11:54
CJS-00084 SQL Statement or Script failed. Error Message: Executable C:\oracle\ora92/bin/sqlplus.exe returns 3.
ERROR 2000-06-15 21:11:54
FJS-00012 Error when executing script.
INFO 2000-06-15 21:13:42
Changed working directory to C:\SAPinst ORACLE KERNEL.
INFO 2000-06-15 21:13:42
Changed working directory to C:\SAPinst ORACLE KERNEL.
ERROR 2000-06-15 21:13:42
CJS-00084 SQL Statement or Script failed. Error Message: Executable C:\oracle\ora92/bin/sqlplus.exe returns 3.
ERROR 2000-06-15 21:13:42
FJS-00012 Error when executing script.
INFO 2000-06-16 02:00:06
Changed working directory to C:\SAPinst ORACLE KERNEL.
INFO 2000-06-16 02:00:07
Changed working directory to C:\SAPinst ORACLE KERNEL.
ERROR 2000-06-16 02:00:07
CJS-00084 SQL Statement or Script failed. Error Message: Executable C:\oracle\ora92/bin/sqlplus.exe returns 3.
ERROR 2000-06-16 02:00:07
FJS-00012 Error when executing script.
INFO 2000-06-16 02:08:16
Changed working directory to C:\SAPinst ORACLE KERNEL.
INFO 2000-06-16 02:08:16
Changed working directory to C:\SAPinst ORACLE KERNEL.
ERROR 2000-06-16 02:08:18
CJS-00084 SQL Statement or Script failed. Error Message: Executable C:\oracle\ora92/bin/sqlplus.exe returns 3.
ERROR 2000-06-16 02:08:18
FJS-00012 Error when executing script.
INFO 2000-06-16 02:09:48
Changed working directory to C:\SAPinst ORACLE KERNEL.
INFO 2000-06-16 02:09:49
Changed working directory to C:\SAPinst ORACLE KERNEL.
ERROR 2000-06-16 02:09:49
CJS-00084 SQL Statement or Script failed. Error Message: Executable C:\oracle\ora92/bin/sqlplus.exe returns 3.
ERROR 2000-06-16 02:09:49
FJS-00012 Error when executing script.
INFO 2000-06-16 02:14:33
Changed working directory to C:\SAPinst ORACLE KERNEL.
INFO 2000-06-16 02:14:33
Changed working directory to C:\SAPinst ORACLE KERNEL.
ERROR 2000-06-16 02:14:33
CJS-00084 SQL Statement or Script failed. Error Message: Executable C:\oracle\ora92/bin/sqlplus.exe returns 3.
ERROR 2000-06-16 02:14:33
FJS-00012 Error when executing script.> WARNING 2000-06-15 21:07:00
> Error 2 (The system cannot find the file specified.
> ) in execution of a 'CreateProcess' function, line
> (276), with parameter
> (C:\oracle\ora92/bin/sqlplus.exe /NOLOG
> @ora_scr_tmp.sql).
> ERROR 2000-06-15 21:07:00
> MDB-06029 Caught exception while trying to start
> script executing application:
> [C:\oracle\ora92/bin/sqlplus.exe].
> ERROR 2000-06-15 21:07:00
> MDB-06030 A call to the system library failed.
> System error message: [No such file or directory].
> ERROR 2000-06-15 21:07:00
> MUT-02011 Internal error: A call to syslib failed.
> System error message: No such file or directory.
> ERROR 2000-06-15 21:07:00
> FJS-00012 Error when executing script.
> WARNING 2000-06-15 21:11:52
> Error 1326 (Logon failure: unknown user name or bad
> password.
> ) in execution of a 'LogonUser' function, line (537),
> with parameter (SAPTRANSHOST\godadm).
> ERROR 2000-06-15 21:11:52
> MDB-06029 Caught exception while trying to start
> script executing application:
> [C:\oracle\ora92/bin/sqlplus.exe].
is that file there (sqlplus)?
as which user are you installing?
Markus -
SQL 4.7 Installation Error CJS-00084 SQL Statement or Script failed
Dear SAP Gurus,
pl do let me know hoe to resolve this error.......
"""CJS-00084 SQL Statement or Script failed"""
my ora_sql_results file is like that..
===========================================
2008-10-25, 16:14:44 SAPINST ORACLE start logging for
connect / as sysdba ;
@@"C:\SAPinstORACLEKERNEL/oradbusr.sql"
exit;
Output of SQL executing program:
SQL*Plus: Release 9.2.0.2.0 - Production on Sat Oct 25 16:14:44 2008
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Connected.
Connected.
old 3: if substr(upper('&&1'),1,5) = 'SAPR3' then
new 3: if substr(upper('SAPERP'),1,5) = 'SAPR3' then
old 6: if upper('&&2') = 'NT' then
new 6: if upper('NT') = 'NT' then
old 13: :sDomain := upper('&&3');
new 13: :sDomain := upper('ERP');
old 17: :sSchema := upper('&&1');
new 17: :sSchema := upper('SAPERP');
old 18: if upper('&&2') = 'NT' then
new 18: if upper('NT') = 'NT' then
old 25: :sDomain := upper('&&3');
new 25: :sDomain := upper('ERP');
using following Parameters:
. Oracle SID: ERP
. Oracle Version: 9.2.0.2.1
. Parametervalue os_authent_prefix: OPS$
. Database User (Schema): SAPERP
. SAP R/3 Administrator: OPS$ERP\ERPADM
. SAP R/3 Serviceuser: OPS$ERP\SAPSERVICEERP
O/S Message: No such file or directory
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.2.1 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.2.0 - Production
SAPINST: End of output of SQL executing program F:\oracle\ora92/bin/sqlplus.exe.
SAPINST found errors.
SAPINST The current process environment may be found in sapinst_ora_environment.log.
2008-10-25, 16:14:44 SAPINST ORACLE stop logging
=======================================
My SAPINST_ORA_ENVIRONMENT FIle is like that
==========================================
2008-10-25, 16:10:43 SAPINST Current process environment:
=::=::\
=C:=C:\SAPinstORACLEKERNEL
ALLUSERSPROFILE=C:\Documents and Settings\All Users
APPDATA=C:\Documents and Settings\tanya\Application Data
CLIENTNAME=Console
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=ERP
ComSpec=C:\WINDOWS\system32\cmd.exe
DBMS_TYPE=ORA
DBS_ORA_SCHEMA=SAPERP
dbs_ora_tnsname=ERP
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Documents and Settings\tanya
JAVA_HOME=C:\j2sdk1.4.2_09
JSERV=F:\oracle\ora92/Apache/Jserv/conf
LOGONSERVER=
ERP
NLS_LANG=AMERICAN_AMERICA.WE8DEC
NUMBER_OF_PROCESSORS=2
ORACLE_HOME=F:\oracle\ora92
ORACLE_SID=ERP
OS=Windows_NT
Path=F:\oracle\ora92\bin;$PATH$
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 23 Stepping 6, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=1706
ProgramFiles=C:\Program Files
SAPDATA_HOME=F:\oracle\ERP
SAPEXE=F:\usr\sap\ERP\SYS\exe\run
SAPLOCALHOST=ERP
SAPSYSTEMNAME=ERP
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\WINDOWS\TEMP
TMP=C:\WINDOWS\TEMP
USERDOMAIN=ERP
USERNAME=tanya
USERPROFILE=C:\Documents and Settings\tanya
windir=C:\WINDOWS
WV_GATEWAY_CFG=F:\oracle\ora92\Apache\modplsql\cfg\wdbsvr.app
SAPINST: End of current process environment.
=====================================
REgards,
AbhishekThanks, but most of the people in the industry are still using the same, and it is working on their Machine
As far as I remember 9.2.0.2 was never released, one needed to install at least 9.2.0.4 (or .5). That´s why the official installation guides tell you to install the latest patches PLUS the latest interim patches for the database.
On top of that, Oracle 9.2 is out of extended support already, I would get a new installation CD set with Oracle 10g and use that for a new installation.
why it is not working on my machine?
Because those old database versions have many bugs that are fixed with patches - so why do you want to run such an old version if one KNOWS that it´s buggy and there are patches to fix those errors?
secondly from where i will get the latest patches, as told by you. pl do let me know any website from where i can down load them
Check
Note 938986 - Oracle Database 9.2: Patches for 9.2.0
Markus -
Sqlplus - hiding the SQL statement
When I run sqlplus to spool a report, it always prints out the original SQL statement in the report, but I only want the results. For example, the following script:
SET PAGESIZE 0
SET FEEDBACK OFF
SPOOL report.log
SELECT * FROM employees;
SPOOL OFF
prints out not only the results, but also the SQL statement "SELECT * FROM employees;" in the report. How do I hide the SQL statement from the report?
Thanks.the set echo off will work if you run your select-script from a batch-file.
(the batch-file call an other file with the select statement)
~
pascal -
BIDS 2008 DataFlow viewer not showing even though the sql statement returns data
Have a dataflow and trying to see why no rows are being written to the destination. I popped a viewer on the connection, but it doesnt show up when I run. What can I check?
The DataFlow source runs a sql statement and it runs fine and returns a result.Why would that be if I can execute the sql statement that is being used in the OLEDB Source, and I get a result, yet the destination gets no rows afterwards. Even executing the Dataflow task by itself, no rows are written.
I do have a script task that modifies the connection before the dataflow, but this was working fine yesterday :)
Even so, if there was a problem with the connection, I would get an error. There no no errors, it just sees no rows and the dataviewer is never displayed.
What the heck can I check? -
How to monitor the sql statement running?
Hi ,
i need to check the status of the sql script running on the database.
what is the way to chect that?
if the particular query is taking very long time what might be the reason?Since you are [relatively] new at this ..
the recommended technique will change based on version of Oracle database, the edition of the database, the options of the database and the operating system.
For example, I would normally suggest a newbie with Oracle Database 10g or 11g Enterprise Edition to use the Enterprise Manager Diagnostics Pack. A demo thereof is on the Oracle BY Example site (http://otn.oracle.com) - look for Tutorials towards the top.
As for why ... it's waiting on things. Which things may depend on the database, the operating system, the disk subsystem, the network subsystem, memory allocation, sorting, other load, and even how well or badly the SQL statement was written. -
Getting error CJS-00084 SQL Statement or script failed while creating a DB
Hi All,
I ma trying to install IDES CRM 4.0 with Oracle DB and process went fine till the point of central instance installation. I am at the final step of installing the database instance and got an error while it is performing different steps of it.
At the step CREATE ORACLE DATABASE, i got the below error message:
CJS-00084 SQL statement or script failed. DIAGNOSIS: Error message: ORA-01092: ORACLE instance terminated. Disconnection forced
Can someone help me to resolve this?
Thanks
Vijay-> did you follow all steps correctly? for example did you say NO when runinstaller asks for database creation?
-> which operating system are you on?
GreetZ, AH -
Hallo,
We have the problem that subscriptions cannot be sent. In defaultTrace I have found following entry:
#1.5 #32B150008004002400001641000710B80004539FE52B4274#1217846116565#com.sapportals.wcm.repository.service.subscription.wcm.SubscriptionsOpenSQL#sap.com/irj#com.sapportals.wcm.repository.service.subscription.wcm.SubscriptionsOpenSQL#LI01736#118449##iscp63.isc.aok.de_LFP_399377450#LI01736#03186780621111ddb4c432b150008004#SAPEngine_Application_Thread[impl:3]_10##0#0#Fatal##Plain###Cannot unsubscribe user. Context: ResourceContext: user=LI01736, creationTime=1217846116420, locale=de. User: LI01736. ID: 50cdd784-51ac-2810-2393-ea9709f50de3. Recipient: com.sapportals.wcm.util.channels.wcm.Recipient@ce9b7f70. Step: Executing SQL INSERT. . Trying to rollback transaction.#
#1.5 #32B150008004002400001643000710B80004539FE52B989A#1217846116586#com.sap.sql.jdbc.common.StatementAnalyzerImpl#sap.com/irj#com.sap.sql.jdbc.common.StatementAnalyzerImpl#LI01736#118449##iscp63.isc.aok.de_LFP_399377450#LI01736#03186780621111ddb4c432b150008004#SAPEngine_Application_Thread[impl:3]_10##0#0#Error#1#/System/Database/sql/jdbc/common#Java#com.sap.sql_0019##Exception of type com.sap.sql.log.OpenSQLException caught: The SQL statement "INSERT INTO "KMC_SUB_RCPT" ("ID","RECIPIENT","RCPTTYPE","UNSUBSCRIBED") VALUES ('50cdd784-51ac-2810-2393-ea9709f50de3','LI01736','0','X')" contains the semantics error[s]: - 1:27 - the column >>ID<< is undefined in the current scope
[EXCEPTION]
#3#com.sap.sql.log.OpenSQLException#The SQL statement "INSERT INTO "KMC_SUB_RCPT" ("ID","RECIPIENT","RCPTTYPE","UNSUBSCRIBED") VALUES ('50cdd784-51ac-2810-2393-ea9709f50de3','LI01736','0','X')" contains the semantics error[s]: - 1:27 - the column >>ID<< is undefined in the current scope
#com.sap.sql.log.OpenSQLException: The SQL statement "INSERT INTO "KMC_SUB_RCPT" ("ID","RECIPIENT","RCPTTYPE","UNSUBSCRIBED") VALUES ('50cdd784-51ac-2810-2393-ea9709f50de3','LI01736','0','X')" contains the semantics error[s]: - 1:27 - the column >>ID<< is undefined in the current scope
at com.sap.sql.jdbc.common.StatementAnalyzerImpl.check(StatementAnalyzerImpl.java:38)
at com.sap.sql.jdbc.common.StatementAnalyzerImpl.preprepareStatement(StatementAnalyzerImpl.java:101)
at com.sap.sql.jdbc.common.StatementAnalyzerImpl.preprepareStatement(StatementAnalyzerImpl.java:87)
at com.sap.sql.jdbc.common.CommonStatementImpl.executeUpdate(CommonStatementImpl.java:159)
at com.sap.engine.services.dbpool.wrappers.StatementWrapper.executeUpdate(StatementWrapper.java:162)
at com.sapportals.wcm.repository.service.subscription.wcm.SubscriptionsOpenSQL$SqlCommand.executeUpdate(SubscriptionsOpenSQL.java:3834)
at com.sapportals.wcm.repository.service.subscription.wcm.SubscriptionsOpenSQL.unsubscribe(SubscriptionsOpenSQL.java:2127)
at com.sapportals.wcm.repository.service.subscription.wcm.SubscriptionManager.unsubscribe(SubscriptionManager.java:3226)
at com.sapportals.wcm.repository.service.subscription.wcm.SubscriptionManager.unsubscribe(SubscriptionManager.java:3205)
at com.sapportals.wcm.repository.service.subscription.wcm.ActionInboxItemProducer.executeItemAction(ActionInboxItemProducer.java:222)
at com.sapportals.wcm.service.actioninbox.wcm.ActionInboxService.executeItemAction(ActionInboxService.java:610)
at com.sapportals.wcm.service.actioninbox.wcm.ActionInboxService.executeItemActions(ActionInboxService.java:1221)
at com.sapportals.wcm.control.actioninbox.ActionInboxDetailsControl.onClick(ActionInboxDetailsControl.java:396)
Any Idea?
Regards,
GerhardStatement statement = connection.createStatement();
//createing a statement object
String query= "INSERT INTO table......"
output.append("\nSending query:" + connection.nativeSQL(query));
int result = statement.executeUpdate(query);//updates database wit record
if (result==1)
output.append("\ninsertation successfull");
JOptionPane.showMessageDialog(null,"Insertation successfull ",
JOptionPane.INFORMATION_MESSAGE);
else
output.append("\ninsertation unsuccessfull");
JOptionPane.showMessageDialog(null,"Insertation unsuccessfull",
JOptionPane.WARNING_MESSAGE);
statement.close();
have left out the trys and catches and some other bits and pieces that i dont think ud need its the bare bones but it might help or at least give u an idea. have used this code before to do something similar. -
How to use presentaion variable in the SQL statement
Is there any special syntax to use a presentation variable in the SQL Statement?
I am setting a presentation variable (Fscl_Qtr_Var)in the dashboard prompt.
If i set the filter as ADD->VARIABLE->PRESENTATION, it shows the statement as 'Contract Request Fiscal Quarter is equal to / is in @{Fscl_Qtr_Var} '.
And this works fine but when i convert this to SQL, it returns
"Contract Request Date"."Contract Request Fiscal Quarter" = 'Fscl_Qtr_Var'
And this does not work.It is not being set to the value in the prompt.
I need to combine this condition with other conditions in the SQL Statement. Any help is appreciated. ThanksTry this: '@{Fscl_Qtr_Var}'
-
Error when generating the SQL statement while running the Query
Hello SDN Mates,
Am using three cubes in one infoset and build a query on that. Intially it was running fine, but now am getting error generating the SQL statement. Can you please throw some light on this. Your idea would be highly appreciated.
Thanks and Regards
Arun SHi Arun
is there any change in the objects (Check also the consistency of infoobject ) included in infoset, just make sure those are active, open the query in designer and check if no error/warning message are present
Thanks
Tripple k -
How to view the SQL statement generated during execution of the BW Query?
Dear Experts,
I am trying to retrieve data in a SAP BW Query from a Non-SAP system.
I think if I am able to see the complete SQL statement that was generated when I executed the BW Query, I may be able to use it to retrieve the data.
Do you know how and where I can see the SQL statement of a BW Query's SQL statement?
I tried RSRT options to execute the Query but still could not find the SQL statement.
Thanks in advance.
Regards,
Shunhui.hi
goto rsrt
give your query name
select execute + debug option
in the debug option under data manager check the check box "display SQL/BIA query
selcet continue
you can see the sql statement
thanq -
How to pass the bind variable value to the sql statement of the LOV
Hi,
I am using Forms 10g builder.
I have a text item which will be populated by a LOV when i press a button, but i have a bind variable in the SQL statement of the LOV. That bind variable should be replaced by a value which is derived from a radio group in the same data block.
For Ex: ( )radio1 ( )radio2
before i click on the push button, I'll select one of the radio button above,so my question is how to assign this radio group value to the bind variable in the sql statement in the LOV?
Pl any hint is appreciated!
Thanks
ReddyThe variable can be taken into account in the SELECT order contained in the Record Group used by the LOV.
e.g. Select ... From ... Where column = :block.radio_group ...Francois -
DIsabling printing of the sql statement in command prompt
Hi.
I am connecting to an access database with my java application. Problem is, it prints the connection and the sql statement there. Is there any way to disable it?
Example of what is seen at my command prompt:
connection is dbc:odbc:Inventory System
DB: SELECT * FROM Products WHERE ProductID = 1;Ah i see where my mistake is now...Gracefully put. Many of the regulars here and in other forums get a little frustrated, either seeing the same basic problems over and over (it's as if Google doesn't work in vast parts of the world) or or the occaisional person who really isn't willing to work or willing to learn - they want "the answer". Sometimes after a bad run of that we get a little sensitive and snarky. Don't feel bad, there's a mountain to learn with JDBC and, personally, I think everyone is entitled to one brain f*rt a week (<snark> although this may count as one-and-a-half </snark>). Good luck.
-
I get this error - when I try a Multi-line comment entry - by using the /* and */
"There is an unclosed comment block in the SQL statement. Ensure that there are balanced "/*" and "*/" comment
markers in the SQL statement."
Even though I am entering both the /* and the */.
I tried it many way - in the same line, in different lines etc..
like
/* Select xxx from xxx */
or
Select xxx from xxx
or
/* Select xx from xx
Please help anyone..! ;=(But When I do a Help/About I see that it is
the SSMSE's Help About screen says "SQL Server 2005"
However I downloaded and installed SQL Server 2014 last night and was entering queries..
Most Select Queries work fine..
the -- comment line works fine..then I stumbled on the /* - */ does not work.
Thanks.
Well, you have two different version of SQL Server installed on your machine. Please connect again from SSMS to the SQL Server 2014.
T-SQL Articles
T-SQL e-book by TechNet Wiki Community
T-SQL blog
Maybe you are looking for
-
Hi Experts, I am facing a strange problem in SAP. I have a scenario where I am integrating a .Net application with SAP R/3 via SAP XI. The .Net application is calling XI web service via SOAP adapter. The XI then sends the data to the SAP R/3 system v
-
I am currently using OS 10.2.8 (I do need to update) on my iBook. My problem is when using Mail: my incoming message with an image/picture, the image/picture is gray; then at the very bottom of the message after the gray sections the pictures appear.
-
About the sort method of arrays
Hi, I found that for primitive types such as int, float, etc., algorithm for sort is a tuned quicksort. However the algorithm for sorting an object array is a modified merge sort according to the java API. What is the purpose of using two different s
-
DD/DTS decoder on X-Fi Xtreme Music and Vista x64
Running X-Fi Xtreme Music in Windows Vista Business 64 Bit, connected to 7. speakers (analog, no external decoder). The most recent driver 2_8_0008 enabled the decoder tab in the soundblaster control panel. So I switched to internal decoder. Played a
-
InDesign CS3 no longer seeing font
We have a project we just finished which was worked on at different times on three different computers, all InD CS3, Windows XP. The project uses the Britannic Bold TTF font with which we had no trouble during production and a completed / final PDF h