Execute String in Native or Open SQL
Hi all,
I have the following question:
Is it possible to execute one string containing the selection code (string = 'select <field> from <db_table> where <conditions>') in NATIVE SQL or OPEN SQL?
Thanks in advanced.
Best Regards,
Giulio
Hi,
You need to check for syntax GENERATE SUBROUTINE .
Please check this <a href="http://www.sapdevelopment.co.uk/programs/custom/zyes4sql.htm">link</a>
May this one will help you.
aRs
Similar Messages
-
hi all,
<dynamic > = SELECT matnr FROM mara .
EXEC SQL.
OPEN c1 FOR <dynamic >ENDEXEC.
ENDEXEC.
can i use dynamic native sql in open sql-oracle .
cheers
senthilEXEC SQL doesn't allow for dynamic constructs. In order to get native SQL features dynamically you can use the JDBC-like classes CL_SQL_STATEMENT, CL_SQL_CONNECTION, and so on.
Best regards
Ulrich -
Performance: Open SQL vs. Native SQL (Oracle)
Hi everybody,
I have an interesting issue here. For a DB selection I use an Open SQL query from a table view into an internal table. It works fine, but the performance is not very well. The SELECT uses LIKE and wildcards (%) to search for customer master data (names and address fields).
Because of the bad performance I made some tests in transaction DB02 with native SQL, but exactly the same SELECT structure. It looks like this:
SELECT *
FROM zzrm_cust_s_hlp
WHERE client = 100
AND mc_name1 LIKE '<name>%'
AND mc_name2 LIKE '<name>%'
AND valid_from <= <timestamp>
AND valid_to >= <timestamp>
Ok, now I tried exactly the same SELECT statement with the same data to search for (<name> and <timestamp) with Open SQL and Native SQL. The Difference is quite suprising, the Native SQL query is about 5-10 times faster (arount 1 sec) than the Open SQL query (around 5-10 sec). Even with the LIKE keywords and the wildcards.
Any ideas what could be the problem with the Open SQL query?
And: what can I do to achive the same performance as with the Native SQL query?
Kind regards and thanks in advance for any help,
MatthiasOk, here is the the SQL explaination from the DB02 query:
SELECT STATEMENT ( Estimated Costs = 194 , Estimated #Rows = 1 )
9 COUNT STOPKEY
Filter Predicates
8 NESTED LOOPS
( Estim. Costs = 193 , Estim. #Rows = 1 )
Estim. CPU-Costs = 1,665,938 Estim. IO-Costs = 193
5 NESTED LOOPS
( Estim. Costs = 144 , Estim. #Rows = 98 )
Estim. CPU-Costs = 1,162,148 Estim. IO-Costs = 144
2 TABLE ACCESS BY INDEX ROWID BUT000
( Estim. Costs = 51 , Estim. #Rows = 93 )
Estim. CPU-Costs = 468,764 Estim. IO-Costs = 51
Filter Predicates
1 INDEX SKIP SCAN BUT000~NAM
( Estim. Costs = 6 , Estim. #Rows = 93 )
Search Columns: 1
Estim. CPU-Costs = 59,542 Estim. IO-Costs = 6
Access Predicates Filter Predicates
4 TABLE ACCESS BY INDEX ROWID BUT020
( Estim. Costs = 1 , Estim. #Rows = 1 )
Estim. CPU-Costs = 7,456 Estim. IO-Costs = 1
Filter Predicates
3 INDEX RANGE SCAN BUT020~0
( Estim. Costs = 1 , Estim. #Rows = 1 )
Search Columns: 2
Estim. CPU-Costs = 3,661 Estim. IO-Costs = 1
Access Predicates
7 TABLE ACCESS BY INDEX ROWID ADRC
( Estim. Costs = 1 , Estim. #Rows = 1 )
Estim. CPU-Costs = 5,141 Estim. IO-Costs = 1
Filter Predicates
6 INDEX UNIQUE SCAN ADRC~0
Search Columns: 4
Estim. CPU-Costs = 525 Estim. IO-Costs = 0
Access Predicates
And this is the one from the Open SQL query in ABAP:
SELECT STATEMENT ( Estimated Costs = 15,711 , Estimated #Rows = 29 )
7 NESTED LOOPS
( Estim. Costs = 15,710 , Estim. #Rows = 29 )
Estim. CPU-Costs = 3,021,708,117 Estim. IO-Costs = 15,482
4 NESTED LOOPS
( Estim. Costs = 15,411 , Estim. #Rows = 598 )
Estim. CPU-Costs = 3,018,711,707 Estim. IO-Costs = 15,183
1 TABLE ACCESS FULL BUT020
( Estim. Costs = 9,431 , Estim. #Rows = 11,951 )
Estim. CPU-Costs = 2,959,067,612 Estim. IO-Costs = 9,207
Filter Predicates
3 TABLE ACCESS BY INDEX ROWID ADRC
( Estim. Costs = 1 , Estim. #Rows = 1 )
Estim. CPU-Costs = 4,991 Estim. IO-Costs = 1
Filter Predicates
2 INDEX UNIQUE SCAN ADRC~0
Search Columns: 4
Estim. CPU-Costs = 525 Estim. IO-Costs = 0
Access Predicates
6 TABLE ACCESS BY INDEX ROWID BUT000
( Estim. Costs = 1 , Estim. #Rows = 1 )
Estim. CPU-Costs = 5,011 Estim. IO-Costs = 1
Filter Predicates
5 INDEX UNIQUE SCAN BUT000~0
Search Columns: 2
Estim. CPU-Costs = 525 Estim. IO-Costs = 0
Access Predicates
Of course I can see the difference.
But since the statements are identical, I don't understand why this difference exists
Thanks for your help!
Kind regards, Matthias -
CREATE VIEW in ABAP (Open SQL or Native SQL)
Hi all you experts!
I want to create a VIEW in ABAP. I have created Table Views using ABAP Dictionary (in transaction SE11), I don't have any problem with them.
But, what I need is to create a dynamic view, I mean, a view that can be created/replaced (or modified) at runtime. Is this possible with SAP Open SQL, I don't think so... that is why I tried to created using native SQL but it is not working.
Here is the code:
EXEC SQL.
CREATE VIEW [ZMXRFIV_GLPCA]
AS SELECT
T1.GL_SIRID,
T1.POPER,
T1.RBUKRS,
T1.RPRCTR,
T1.RACCT,
T1.HSL
FROM
GLPCA T1
INNER JOIN
SKA1 T2
ON
T1.RACCT = T2.SAKNR
WHERE
T1.RVERS = '000'
AND T1.RYEAR = '2008'
AND T1.KOKRS = 'PI01'
AND T2.KTOPL = 'PI00'
AND T2.XBILK <> 'X'.
ENDEXEC.
I have tried using quotes (") for the view name, parenthesis and even using only the name but this make no difference.
Do any of you experts have any idea?
PS: After creating the view I need to do a SELECT INTO TABLE to that view and finally delete this view and continue working with the data on the internal table.Hi ,
oh yes it is an object (well, how the database should handle it in any context if it wasn't)
i.e. for ORACLE you would have several thousands of them:
select count(*) from dba_objects where object_type ='VIEW'
If you avoid some kind of foreground processing (i.e. pull the data over the network) and handle the processing inside the database it can improve somehow performance a little (i.e. using the retieved rows of the view to stuff into a database table directly). But his may not always possible...
bye
yk -
Converting Native SQL to OPEN SQL
Any inputs on how the following Native SQL can be converted to OPEN SQL.
Especially self join of same table .
EXEC SQL PERFORMING APPEND_ITAB.
SELECT /+ ORDERED/
A.VTYPE, A.LIFNR, G.MTNO,
A.ASYTR, A.DATAB, A.DATBI,
D.MAKTX, F.NAME1, G.COMP,
C.PREF, C.COMP, E.MAKTX,
C.QNTY, C.UNIT, B.MEINS,
A.EKGRP, A.SEQNO, C.STGB,
C.DATUV, C.DATUB
INTO :WA_MODULE-VTYPE, :WA_MODULE-LIFNR, :WA_MODULE-MATNR,
:WA_MODULE-ASYTR, :WA_MODULE-DATAB, :WA_MODULE-DATBI,
:WA_MODULE-MAKTX, :WA_MODULE-NAME1, :WA_SUB-UPGVC,
:WA_SUB-PREF, :WA_SUB-COMP, :WA_SUB-MAKTX,
:WA_SUB-QNTY, :WA_SUB-UNIT, :WA_SUB-MEINS,
:WA_MODULE-EKGRP, :WA_MODULE-SEQNO, :WA_SUB-STGB,
:WA_SUB-DATAB, :WA_SUB-DATBI
FROM ZTMM_ASSY_COST1 A, ZTBM_ABXDULDT G,
ZTBM_ABXDULDT C, MARA B, MAKT D, MAKT E, LFA1 F
WHERE A.MANDT = :SY-MANDT
AND A.VTYPE BETWEEN :WA_VTYPE_F AND :WA_VTYPE_T
AND A.MCODE BETWEEN :WA_MCODE_F AND :WA_MCODE_T
AND A.LIFNR BETWEEN :WA_LIFNR_F AND :WA_LIFNR_T
AND A.EKGRP BETWEEN :WA_EKGRP_F AND :WA_EKGRP_T
AND A.DATAB <= :P_DATUM
AND A.DATBI >= :P_DATUM
AND F.MANDT = A.MANDT
AND F.LIFNR = A.LIFNR
AND G.MANDT = A.MANDT
AND G.MTNO LIKE CONCAT(CONCAT(A.VTYPE,A.MCODE),'%')
AND G.MTNO BETWEEN :WA_MATNR_F AND :WA_MATNR_T
AND G.PLNT = :C_WERKS
AND G.USAG = '2'
AND G.ALTN in ('1','01')
AND G.DATUV <= :P_DATUM
AND G.DATUB >= :P_DATUM
AND B.MANDT(+) = G.MANDT
AND B.MATNR(+) = G.MTNO
AND B.LVORM(+) = ' '
AND C.MANDT(+) = G.MANDT
AND C.MTNO(+) = G.COMP
AND C.PLNT(+) = G.PLNT
AND C.USAG(+) = '2'
AND C.ALTN(+) = '01'
AND C.DATUV(+) <= :P_DATUM
AND C.DATUB(+) >= :P_DATUM
AND D.MANDT(+) = B.MANDT
AND D.MATNR(+) = B.MATNR
AND D.SPRAS(+) = :SY-LANGU
AND E.MANDT(+) = C.MANDT
AND E.MATNR(+) = C.COMP
AND E.SPRAS(+) = :SY-LANGU
ORDER BY A.VTYPE, A.LIFNR, G.MTNO
ENDEXEC.Then why don't you post the code you have. It would be a lot easier for us to improve that rather than try do redo what you have already done.
Rob -
Hi friends,
I'm going to read and process data in an interface coded in ABAP and OPEN SQL. To improve efficiency and reliability I'm processing the data in packets of a fixed size of rows - reading rows up to a predetermined numer into an internal table which then is processed and then finaly written back to database followed by "commit work". Then the process will continue with reading the next fixed number of rows, process them, and so on ...
The general question is, which is the most efficient way to implement this scenario?
I think of two basic approaches:
1.1) Loop over results from a cursor using FETCH NEXT CURSOR inside a LOOP appending the lines to the internal table.
2.1) Execute SELECT ... INTO TABLE <itab> FROM <table> UP TO <data packet size> ROWS.
My assumtion is that approach 2 would be the more effecient, is that correct?
The processed data will be written back to the database in one single statement:
2.2) INSERT <table> FROM TABLE <itab>
Which I assume is more efficient than doing the same using multiple inserts within a loop?
Regards,
ChristianIn native SQL you can also use the packet options.
SELECT <Fields name> appending corresponding fields of table <Internal table>
<b>package size 20000</b>
FROM <Database table name>
WHERE <Condition>.
ENDSELECT.
By using this the system will fetch the records from database table in packets [20000 records per package]
Regards
Aman -
How to get different field in two are more different table using open sql
Dear all,
This SenthilMani am very new into sap abap am having doubt in reports how get the different fields from different tables like mara,marc,mard using open sql and native sql program give me some tips to get the data .
with regards,
senthilHI ,
1) If u want to select data from more the two table then u can use FOR ALL ENTRIES.
EX ..Open sql
select matnr from mara into table t_mara.
select matnr werks from marc into table t_marc for all entries in t_mara where matnr = t_mara-matnr.
2) U can join more than one table.
ex:
select mara~matnr
marc~werks
from mara join marc into table t_maramarc
on maramatnr = marcmatnr
3) Using native sql ...only u can use JOIN statement -
The ABAP/4 Open SQL array insert results in duplicate database records
Hi,
Iam getting following error :
The ABAP/4 Open SQL array insert results in duplicate database records.
Error in ABAP application program.
The current ABAP program "SAPLV60U" had to be terminated because one of the
statements could not be executed.
This is probably due to an error in the ABAP program.
" Information on where terminated
The termination occurred in the ABAP program "SAPLV60U" in "VBUK_BEARBEITEN".
The main program was "SAPMSSY4 ".
The termination occurred in line 503 of the source code of the (Include)
program "LV60UF0V"
of the source code of program "LV60UF0V" (when calling the editor 5030).
Processing was terminated because the exception "CX_SY_OPEN_SQL_DB" occurred in
the
procedure "VBUK_BEARBEITEN" "(FORM)" but was not handled locally, not declared
in the
RAISING clause of the procedure.
The procedure is in the program "SAPLV60U ". Its source code starts in line 469
of the (Include) program "LV60UF0V "."
Please assist how to proceed further ..
Many thanks
Mujeeb.Sorry, THe correct note is 402221.
Description from the note
<< Please do not post SAP notes - they are copyrighed material >>
Edited by: Rob Burbank on Feb 22, 2009 3:46 PM -
Case Insensitive search and "IN" Clause - Open SQL
Hi,
I have some doubts regarding Open SQL:
Is there any support for Case Insensitive Search in Open SQL, is it availabe by default?
Is there any restriction on number of elements in "IN" Clause, in Open SQL, is there any default number?
I have checked the [Open SQL Grammer|http://help.sap.com/saphelp_nwce711/helpdata/en/9b/f46cabaa874bc9a82234e8cf1d0696/frameset.htm] also, but nothing found there.
Thanks,
Piyush
P.S I didn't find any other appropriate place to post this thread, let me know the correct categorization of Open SQL in case its wrong.Is there any support for Case Insensitive Search in Open SQL, is it availabe by default?
When you are querying any strings, it is always case sensitive.
Is there any restriction on number of elements in "IN" Clause, in Open SQL, is there any default number?
I don't think there area any. IN opearator works like combined ORs and here you don't have any restrictions in fields number.
Regards
Marcin -
Case insensitive search and "IN" Clause in Open SQL
Hi,
I have some doubts regarding Open SQL:
- Is there any support for Case Insensitive Search in Open SQL, is it availabe by default?
- Is there any restriction on number of elements in "IN" Clause, in Open SQL, is there any default number?
I have checked the [Open SQL Grammer |http://help.sap.com/saphelp_nwce711/helpdata/en/9b/f46cabaa874bc9a82234e8cf1d0696/frameset.htm]also, but nothing found there.
Thanks,
Piyush
P.S I didn't find any other appropriate place to post this thread, let me know the correct categorization of Open SQL in case its wrong.> I have some doubts regarding Open SQL:
I believe that you've questions and not doubts...
> - Is there any support for Case Insensitive Search in Open SQL, is it availabe by default?
Nope, there is nothing like that. By default all supported database use a bytewise equal operator - case insensitivness needs to be programmed by hand.
E.G. using UPPER(x)/LOWER(x) functions.
Be aware that this disables the possibilities of index usage.
> - Is there any restriction on number of elements in "IN" Clause, in Open SQL, is there any default number?
Yes, there is a restriction and it differes between the different DBMS.
Until recently you could have 2000 variables per statement with MaxDB.
The current versions of DBSL and MaxDB Kernel now support up to 10000 variables per statement.
Anyhow, in most cases, such a long in list can and should be avoided by using the FOR ALL ENTRIES construct. With this, the DBSL automatically splits the long IN list into smaller chunks and executes the statements several times.
This is invisible to the ABAP report - it just gets the result set as usual.
> P.S I didn't find any other appropriate place to post this thread, let me know the correct categorization of Open SQL in case its wrong.
I guess in anyone of the DB forums is Ok.
regards,
Lars -
Exception: Call of execute(String) is not allowed for PreparedStatement
Hi all,
This query was run fine on SapDB 7.4 from Jave code using prepareStatement() method:
declare id11216053819634 cursor for select sc.name, measuredobjectid id from serviceconditions sc, measuredobjects mo where sc.collectionid = mo.collectionid and sc.name like 'DWindowsSLA/%,%,%,%' for reuse
declare id21216053819634 cursor for select min(sampletime), max(sampletime), name, id11216053819634.id from id11216053819634, d_slastore ss where id11216053819634.id = ss.measuredobjectid and ss.sampletime between '2008-07-14 00:00:00' and '2008-07-14 12:43:35' group by name, id11216053819634.id for reuse
select ss.status, ss.statuschange, ss.sampletime, id21216053819634.name from d_slastore ss, id21216053819634 where ss.measuredobjectid = id21216053819634.id and ss.sampletime between '2008-07-14 00:00:00' and '2008-07-14 12:43:35' and (statuschange != 0 or ss.sampletime = id21216053819634.expression1 or ss.sampletime = id21216053819634.expression2) order by name, sampletime
We recently upgrade our old SapDb to the latest MaxDB. An now this query produces the error:
com.sap.dbtech.jdbc.exceptions.JDBCDriverException: SAP DBTech JDBC: Call of execute(String) is not allowed for PreparedStatement.
Does anyone know how to fix this?
Thank you very much,
IrinaHi Irina,
First, welcome to SDN!
Well, PreparedStatement represents a precompiled SQL statement, so you should be using the no-arg execute() method rather than execute(String).
HTH!
\-- Vladimir -
Cannot open SQL connection to liveCache LCA
Hi All,
when I'm trying to start liveCache I'm getting an error: "Cannot open SQL connection to liveCache LCA".
Operational state is online.
Kernel - 7.7.07
Next steps are successful:
"LC10 -> liveCache monitoring -> Tools -> dbmcli ::
a) sql_execute select * from users"
From Alert monitor I see an error: "Instance ONLINE, but no SQL access possible". If i try connection test, thenI see:
1. Connect. test with "dbmcli db_state" Successful
2. Connect. test with command mode "dbmrfc db_state" Successful
3. Connect. test with session mode "dbmrfc db_state" Successful
4. Connect. test with "native SQL" ( LCA ) No connection
SQL Code: 4025
For detailed information, see the developer trace for work process: 2
How to see this developer trace I do not know...Mark, I have this tool installed.
In those logs I found that:
Thread 0x1A8 Task 35 2010-11-30 23:30:20 Pager 20018: First DataCacheSegment:31
Thread 0x1A8 Task 1 2010-11-30 23:30:21 SrvTasks 31: Permanently reserved 13 servertasks for 'Backup / Restore'.
Thread 0x1A8 Task 1 2010-11-30 23:30:21 SrvTasks 31: Permanently reserved 2 servertasks for 'Backup / Restore'.
Thread 0x1A8 Task 1 2010-11-30 23:30:21 SrvTasks 31: Permanently reserved 1 servertasks for 'Savepoint'.
Thread 0x1A8 Task 1 2010-11-30 23:30:21 RTETask 18: Kernel initialization done
DESCRIPTION:
The initialization of the Kernel components has finished. All special tasks are started now.
Thread 0x1A5 Task - 2010-11-30 23:30:21 RunTime 3: State changed from STARTING to ADMIN
Thread 0x1A5 Task - 2010-11-30 23:30:21 STATE 19601: SERVERDB is ready
============================================ begin of write cycle ==================
Thread 0x1AA Task 71 2010-11-30 23:30:22 CONNECT 19633: Connect req. (LCI, T71, connection obj. 0x000007FFFFE30BF0, Node:'kleva', PID: 6676)
Thread 0x1AA Task 71 2010-11-30 23:30:22 ERR RTEIO 12: attach of volume DATA_VOLUME_0001 failed during open,VOLUME_NO=1,_FILE=RTEIO_VolumeInfo-k.cpp,_LINE=1776
DESCRIPTION:
An error accurred when trying to add the volume DATA_VOLUME_0001 with the logical number 1 to the configuration and physically attach it.
ACTION:
Contact your system administrator. Show him the error message which points to an operating system configuration error and then contact the database support if your system administrator can not fix the error.
2010-11-30 23:30:22 ERR RTEIO 1: The opening of path 'C:\sapdb\LCI\sapdata\DISKD0001' failed,DESCRIPTION=CreateFile(READWRITE,OPEN_EXISTING),ERRORTEXT=The system cannot find the file specified.
,RETURNCODE=2,_FILE=RTEIO_VolumeInfo-k.cpp,_LINE=2385
DESCRIPTION:
An attempt to open the path 'C:\sapdb\LCI\sapdata\DISKD0001' failed. The operating system returned the error code 2 and the error text 'The system cannot find the file specified.
'. The complete command line reads 'CreateFile(READWRITE,OPEN_EXISTING)'.
Thread 0x1AA Task 71 2010-11-30 23:30:22 ERR Admin 3: Database state: OFFLINE,_FILE=Kernel_Administration.cpp,_LINE=692
2010-11-30 23:30:22 KernelComm 6: Internal errorcode, Error code 9050 "disk_not_accessible"
2010-11-30 23:30:22 ERR Admin 20017: RestartFilesystem failed with 'I/O error',_FILE=Kernel_Administration.cpp,_LINE=410
Thread 0x1AA Task 71 2010-11-30 23:30:22 CONNECT 19651: Connection released (LCI, T71, connection obj. 000007FFFFE30BF0)
Thread 0x1AA Task 71 2010-11-30 23:30:22 RTEKernel 112: Offline KILL requested
Thread 0x1AA Task 71 2010-11-30 23:30:22 RunTime 3: State changed from ADMIN to SHUTDOWNKILL
Thread 0x1A0 Task - 2010-11-30 23:30:22 ERR Messages 7: Begin of dump of registered messages,_FILE=Msg_List.cpp,_LINE=3527
Thread 0x1A0 Task - 2010-11-30 23:30:19 RTEHSS 13951: No hot standby node configured -> No HotStandby configuration
Thread 0x1A0 Task - 2010-11-30 23:30:22 ERR RTEIO 1: The opening of path 'C:\sapdb\LCI\sapdata\DISKD0001' failed,DESCRIPTION=CreateFile(READWRITE,OPEN_EXISTING),ERRORTEXT=The system cannot find the file specified.
,RETURNCODE=2,_FILE=RTEIO_VolumeInfo-k.cpp,_LINE=2385
DESCRIPTION:
An attempt to open the path 'C:\sapdb\LCI\sapdata\DISKD0001' failed. The operating system returned the error code 2 and the error text 'The system cannot find the file specified.
'. The complete command line reads 'CreateFile(READWRITE,OPEN_EXISTING)'.
Thread 0x1A0 Task - 2010-11-30 23:30:22 ERR RTEIO 1: The opening of path 'C:\sapdb\LCI\sapdata\DISKD0001' failed,DESCRIPTION=CreateFile(READWRITE,OPEN_EXISTING),ERRORTEXT=The system cannot find the file specified.
,RETURNCODE=2,_FILE=RTEIO_VolumeInfo-k.cpp,_LINE=2385
DESCRIPTION:
An attempt to open the path 'C:\sapdb\LCI\sapdata\DISKD0001' failed. The operating system returned the error code 2 and the error text 'The system cannot find the file specified.
'. The complete command line reads 'CreateFile(READWRITE,OPEN_EXISTING)'.
Thread 0x1A0 Task - 2010-11-30 23:30:22 KernelComm 6: Internal errorcode, Error code 9050 "disk_not_accessible"
Thread 0x1A0 Task -Thread 0x1A0 Task - 2010-11-30 23:30:22 ERR Admin 3: Database state: OFFLINE,_FILE=Kernel_Administration.cpp,_LINE=692
2010-11-30 23:30:22 KernelComm 6: Internal errorcode, Error code 9050 "disk_not_accessible"
2010-11-30 23:30:22 ERR Admin 20017: RestartFilesystem failed with 'I/O error',_FILE=Kernel_Administration.cpp,_LINE=410
Thread 0x1A0 Task -Thread 0x1A0 Task - 2010-11-30 23:30:22 ERR Messages 8: End of the message list registry dump,_FILE=Msg_List.cpp,_LINE=3555
Thread 0x1A0 Task - 2010-11-30 23:30:22 RTEKernel 61: rtedump written to file 'rtedump'
Thread 0x1A6 Task 3 2010-11-30 23:30:22 Trace 20000: Start flush kernel trace
Thread 0x1A0 Task - 2010-11-30 23:30:22 RTEKernel 111: Tracewriter resumed
Thread 0x1A0 Task - 2010-11-30 23:30:22 RTEKernel 94: Waiting for tracewriter to finish work
Thread 0x1A0 Task - 2010-11-30 23:30:22 RTEKernel 116: Tracewriter termination timeout: 1200 seconds
Thread 0x1A6 Task 3 2010-11-30 23:30:22 Trace 20001: Stop flush kernel trace
Thread 0x1A6 Task 3 2010-11-30 23:30:22 Trace 20002: Start flush kernel dump
Thread 0x1A6 Task 3 2010-11-30 23:30:22 Trace 20003: Stop flush kernel dump
Thread 0x1A6 Task 3 2010-11-30 23:30:22 RTEKernel 110: Releasing tracewriter
Thread 0x1A0 Task - 2010-11-30 23:30:22 TASKING 19822: Thread 6712 joining
Thread 0x1A0 Task - 2010-11-30 23:30:22 TASKING 19822: Thread 6868 joining
Thread 0x1A0 Task - 2010-11-30 23:30:22 RTEThread 13: The thread Requestor_LCI is finished
Thread 0x1A0 Task - 2010-11-30 23:30:22 RTEThread 13: The thread LegacyRequestor is finished
Thread 0x1A0 Task - 2010-11-30 23:30:22 TASKING 19822: Thread 6836 joining
Thread 0x1AC Task - 2010-11-30 23:30:22 RTE 20214: CONSOLE thread stopped
Thread 0x1A0 Task - 2010-11-30 23:30:22 TASKING 19822: Thread 6716 joining
Thread 0x1A0 Task - 2010-11-30 23:30:22 TASKING 19822: Thread 6860 joining
Thread 0x1A0 Task - 2010-11-30 23:30:22 TASKING 19822: Thread 6708 joining
Thread 0x1A0 Task - 2010-11-30 23:30:22 TASKING 19822: Thread 6864 joining
Thread 0x1A0 Task - 2010-11-30 23:30:22 RTEKernel 58: Backup of diagnostic files will be forced at next restart
Thread 0x1A0 Task - 2010-11-30 23:30:22 RTEKernel 118: SERVERDB LCI has stopped
2010-11-30 23:30:22 RTEKernel 14: Kernel version: Kernel 7.7.04 Build 029-123-196-543
Thread 0x1A0 Task - 2010-11-30 23:30:22 RunTime 3: State changed from SHUTDOWNKILL to STOPPED
Thread 0x1A0 Task - 2010-11-30 23:30:22 TENANT 20005: Tenant database LCI has stopped
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Looks like I'm not authorized to created folders/files in 'C:\sapdb\LCI\sapdata\'? But I can... -
Installation 9i lite / try to open SQL plus in Win XP
Good day,
I install Oracle 9i lite on my pers computer and want to open SQL Plus but ask me for a User Name, Password and Host String.
I tried them all, system/manager, scott/tiger, name it. Is there any doc in plain english or french on installation, configuration so I can use SQL Plus on my pers computer with win XP.
Thanks
Martin9i LITE (so far as I know) does not support SQL*PLUS. If you need SQL*PLUS install Personal Oracle instead.
9i LITE is a light-weight database and supports ODBC, JDBC, and a command line interface "msql". SQL*PLUS is not included. Open a DOS window and enter
msql system/manager@POLite
this works IF you installed the development SDK stuff (see your ODBC DSNs and look for a new DSN called POLite).
If you don't have the DSN POLite, then you don't yet have a database created for msql to access. See the manuals on how to create the database in Oracle Lite. -
Can anybody provide me a list of all the Open SQL Functions?
I know some of it like Minimum,Maximum,etc. but I'm looking for a complete list of it.Hi
How to process strings check the below link
http://help.sap.com/saphelp_nw04/helpdata/en/79/c55479b3dc11d5993800508b6b8b11/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3357358411d1829f0000e829fbfe/frameset.htm
Regards
Pavan -
Adding columns in a open sql select query
Hi Everyone,
I would like to add the values of n columns of a table and place them in one column, how can i achieve this in open sql.
In oracle native sql the query will look like this:
Select col1 + col2 + col3 AS col
from tab1;
On a similar grounds, i would like to concatenate the contents of n columns into one column. The oracle native sql will look like this:
select col1 || col2 || col3
from tab1;
How can I do this in Open SQL.
Thanks in advance.
Prabhu.Hi Prabhu,
I'm afraid what you're trying to do is not possible using the Open SQL. You will have to get the data from all the three columns into an internal table and then write your own logic to accomplish the same.
data : begin of itab occurs 0,
col1 type i,
col2 type i,
col3 type i,
col4 type i,
end of itab.
field-symbols: <fs_itab> like line of itab.
SELECT COL1
COL2
COL3
INTO TABLE ITAB.
LOOP AT ITAB assigning <fs_itab>.
<fs_itab>-col4 = <fs_itab>-col1 + <fs_itab>-col2 + <fs_itab>-col3.
ENDLOOP.
Regards,
Anand Mandalika.
Maybe you are looking for
-
Help to search for a string value and return the index in the arraylist
Hello, I just start java programming for the last three weeks and I cannot find a solution for this problem. I have the following List with string and integer value as shown below: List<Empl> list= new ArrayList<Empl>(); list.add(new Empl(1,"Jim
-
The old and the new - how to do it? cross post in Community.linux-User International
Hello, Currently I have Netware 6.5.7 SB suite/ has GroupWise. I want to move to the Linux platform with OES2/NOWS. The "Boss" wants to keep the current domain: [email protected] He wants to change it to a new web site domain name: [email protected]
-
How to use the transformation file
Hello there! This message is to ask a question that maybe it could be familiar to you. I want to load data using a .txt file and a transformation file using the import package. Suppose that the structure of my txt file is: Entity,Category,Time,Accou
-
Dear All, when i do the Debit memo...in J1IH...i select "OTHER ADJ" button....and make the Values as follows...when i click the Button "Determine G/L accounts"...it shows as follows.... 14.00 - Credit - SEC payable on excise duty 1,400.00
-
I own the iPhone 4 and lately am experiencing problems with my calendar entries. I loose them. I also have 7 calendars and want to know if I can get rid of some.