SQL Statement not allowed
I am using the sender jdbc sender adapter.
I had given the SQL Query:
EXECUTE xyz;
i am getting SQL Exception.
SQL Statement not allowed in adapter monitoring.
Gaurav
Hi,
Which database you are using ?
Are you executing the Stored Procedure ?
check out this for the syntax etc-
http://help.sap.com/saphelp_nw2004s/helpdata/en/7e/5df96381ec72468a00815dd80f8b63/content.htm
Regards,
Moorthy
Similar Messages
-
SQL STATEMENT NOT PROPERLY ENDED - HELP NEEDED
Can anyone tell me the error in this code, I get an error message sql statement not properly ended when I run it.
update MODT set rootobj=(SELECT REF(A) FROM
OR_COMP_T A
WHERE A.ID=O.ID)
AS OR_COMP_T_REF)
FROM OLD_MODT O where id = 1;Hi, here is the schema and the expected results.
=======================================================================================
CREATE TYPE OR_MODT_OBJ;
CREATE TYPE OR_MODT_OBJ_REF AS TABLE OF REF OR_MODT_OBJ;
=================================================
CREATE OR REPLACE TYPE OR_COMP_T_OBJ
(id number (6),
typ char (4),
SUPERID REF OR_COMP_T_OBJ,
MOD REF OR_MODT_OBJ);
=================================================
CREATE OR REPLACE TYPE OR_COMP_T_REF AS TABLE OF REF OR_COMP_T_OBJ;
=================================================
CREATE TABLE OR_COMP_T OF OR_COMP_T_OBJ
=================================================
CREATE TYPE OR_MODT_OBJ
(id number (6),
typ char (4),
rootobj REF OR_COMP_T_OBJ,
comp_tb OR_COMP_T_REF);
=================================================
CREATE TABLE MODT OF OR_MODT_OBJ
NESTED COMP_TB STORE AS COMP_TB_NESTED;
=================================================
INSERT INTO OR_MODT (ID,TYP,ROOTOBJ,COMP_TB)
SELECT ID,TYP,NULL,NULL FROM OLD_MODT;
INSERT INTO OR_COMP_T(ID,TYP,SUPERID,MOD)
SELECT ID,TYP,NULL,NULL FROM OLD_OR_COMP_T;
==================================================
There are two rows in OLD_MODT, and these two rows are to be inserted into OR_MODT.
They are:
Sample data in OLD_MODT are:
id, typ, rootobj
1 type1 1
2 type3 365
=================================================
Data from OLD_OR_COMP_T is to be inserted into OR_COMP_T as well, and likewise, it has a ref to OR_MODT, so the ref data was not inserted at the same time.
Now OLD_OR_COMP_T has a number of rows but attribute MOD for two of these rows os the rootobj for OR_MODT,
such that:
id typ superID mod
1 type4 NULL 1
2 type2 10101 1
3 type 20202 1
365 type2 NULL 2
366 type2 20202 2
I want to get the ID of OR_COMP_T where ID is 1 and where ID is 365. These values are to be in rootobj.
I also want to get the value of ID in OR_MODT to be placed in MOD of OR_COMP_T.
PLEASE HELP ME. -
Sender JDBC adapter -- Update SQL statement NOT work for the last record
I'm trying to use SAP XI to send records from Oracle database to As/400 using JDBC adapter. I've defined the communication channel for sender
(1) The "Query SQL statement" = select a_bgn_dt, a_end_dt from PX_PXXD WHERE NOT CU_ACTION_CD='P'
(2) The "Update SQL statement" = update PX_PXXD set CU_ACTION_CD='P' WHERE NOT CU_ACTION_CD='P'
Supposed that 3 records were retrieved from (1) and successfully updated to AS/400 but only the first 2 records in Oracle database are updated according to (2)
Any advise.
PansyHi Pansy,
You select and update query is looking like wrong
kindly check below query,If you are using oracle
(1) The "Query SQL statement" = select a_bgn_dt, a_end_dt from PX_PXXD WHERE CU_ACTION_CD !='P'
(2) The "Update SQL statement" = update PX_PXXD set CU_ACTION_CD='P' WHERE CU_ACTION_CD !='P'
Thank you
Sateesh -
SQL Statement not works using functions or subqueries-MAXDB
Hello All,
I created an ABAP program to select information about country(table: T005) with the country names (Table: T005T). I tried to create a sql query with a sql subquery to select everything but for some reason that I don't know it doesn't work. Please find the query below.
DATA:
resu TYPE REF TO cl_sql_result_set ,
stmt TYPE REF TO cl_sql_statement ,
qury TYPE string .
qury = `SELECT land1, spras, `
&& `(SELECT landx `
&& `FROM SAPNSP.T005T `
&& `WHERE mandt = '` && sy-mandt && `' `
&& `AND spras = 'EN' `
&& `AND land1 = ? ), `
&& `(SELECT natio `
&& `FROM SAPNSP.T005T `
&& `WHERE mandt = '` && sy-mandt && `' `
&& `AND spras = 'EN' `
&& `AND land1 = ? ) `
&& `FROM SAPNSP.T005 `
&& `WHERE mandt = '` && sy-mandt && `' `
&& `AND land1 = ? `
&& `GROUP BY land1, spras` .
resu = stmt->execute_query( qury ) .
Well, the query above works but the fields LANDX and NATIO are in blank in ALL THE CASES, even with information registred in table T005T.
So, exploring the SDN forum and after read some documents regarding ADBC, I create a function to handle this sql select and get the correctly the missing informations, but, still don't work. Please find the function below:
CREATE FUNCTION select_landx (land1 CHAR(3)) RETURNS CHAR(15)
AS
VAR landx CHAR(15);
DECLARE functionresult CURSOR FOR
SELECT spras, land1, landx
FROM SAPNSP.t005t
WHERE spras = 'EN'
AND land1 = :land1;
IF $count IS NULL THEN <- | $count is always 0, my SELECT
BEGIN it's not work but I don't know why
CLOSE functionresult;
RETURN NULL;
END
ELSE
SET $rc = 0;
WHILE $rc = 0 DO
BEGIN
FETCH functionresult INTO :landx;
END;
CLOSE functionresult;
RETURN landx;
Calling the function in a SQL statement:
DATA:
resu TYPE REF TO cl_sql_result_set ,
stmt TYPE REF TO cl_sql_statement ,
qury TYPE string .
qury = `SELECT land1, spras, select_landx(?) landx `
&& `FROM SAPNSP.T005 `
&& `WHERE mandt = '` && sy-mandt && `' `
&& `AND land1 = ? `
&& `GROUP BY land1, spras` .
resu = stmt->execute_query( qury ) .
Any comments ?
Best regards,
Arthur SilvaHello,
Thank's a lot, it works. It's funny because the given solution works using only abap codes.
It may be happens because the abap interpretor send the sql statement to the db interface that handle the code in the another way.
Thanks again, it was driving me crazy.
Best regards,
Arthur Silva -
Hi,
I have this SQL statement as below:
Select data from customer where name = 'John' and customer_id NOT IN (SELECT customer_id from customer where customer_id = '111');
Is it possible to do this or I should modify it?Hello,
It's possible and it will be produces same result as this, by the query it will return row(s) with name='JOHN' but customerid is not equal to 111.
select * from customer
where name='JOHN'
and customer_id !=111;Regards -
Please enlighten me. This is driving me crazy.
I don't know if this is a database or java code related problem.
JVM: 1.4.2
Database: Oracle 9i
Objective: trying to add a row into a table
Problem: 1. SQL statement never gets executed.
2. Application freezes. I have to terminate it myself.
Any Ideas?
void addCourse(){
try {
DriverManager.registerDriver ( new oracle.jdbc.driver.OracleDriver () ) ;
System.out.println("Driver registered"); //---> ok.
Connection conn = DriverManager.getConnection ( dbPath, username, password ) ;
System.out.println("Connected"); // -----> it connects fine
ResultSet rset = stmt.getResultSet();
System.out.println("getting result set"); //-----> gets the resultSet fine
Statement stmt = conn.createStatement();
System.out.println("statement created"); //------> it creates statement
7 = are the credits. Number on table. Length allowed 5.
CS 500 = are the course code. Varchar2 on table. Length allowed 20
Java = Actual course name. Varchar2 on table. Length 30
3 = credits. Number on table. Length 5.
// Prepare a statement to insert a record
String sql = "INSERT INTO course VALUES (7 , 'CS 500', 'Java', 3 )"; //-->ok. Tested it manually
// Execute the insert statement
stmt.executeUpdate(sql); //----> *** java program freezes right here.***
System.out.println("sql executed"); //--> Checked table. SQL never gets executed.
catch ( SQLException ex ) { //---> no error messages thrown.
System.err.println(ex.getMessage());
System.err.println(ex.getErrorCode());
System.err.println(ex.getSQLState());
}Nothing looks amiss in the code... How long are you waiting before you manually terminate?
Can you replace the executeUpdate() with execute and change the INSERT to a SELECT? Does that work normally (you should be sure to get at least one row to verify that it is working correctly)? Can you select and update a different table in a different tablespace successfully?
Couple of possibilities (I know this is weak):
1) You have hit a deadlock condition because the table is locked by another or same process.
2) You are running into network problems.
3) Your insert is being queued up in Oracle's transaction manager (if configured).
4) Have you tried both the Oracle thin and Oracle OCI driver? Do they both fail without error?
5) Can you turn off autoupdate and try the insert? Does the executeUpdate() return then? -
SQL statement not working for an application
Hello,
Here is a sql statement which i am using to populate Department ID using another row in the table. Using these I am getting the values called department alias from different table and schema.
UPDATE tablename_4127 PT
SET "Deptid" = (select distinct(deptid) from datastore.get_department_alias
where upper(ltrim(rtrim(deptalias))) = upper(ltrim(rtrim(PT."Dept Descr")))
AND "Colid" = PT.COLID)
Please anyone help me with this.
Thank youHBUA wrote:
Hello,
Here is a sql statement which i am using to populate Department ID using another row in the table. Using these I am getting the values called department alias from different table and schema.
UPDATE tablename_4127 PT
SET "Deptid" = (select distinct(deptid) from datastore.get_department_alias
where upper(ltrim(rtrim(deptalias))) = upper(ltrim(rtrim(PT."Dept Descr")))
AND "Colid" = PT.COLID)
Please anyone help me with this.
Thank youhelp you how, since we don't have your table, data or requirements?
How do I ask a question on the forums?
SQL and PL/SQL FAQ -
Sql statement not working with for update
Hi, iam facing an error fetch out of sequence
when iam trying to execute a sql statement
Statement st=con.createStatement();
st.executeQuery(select mycolumn from table where jobno=1 for update);
the statement works well without " for update ".
any solutions????Hi,
The fetch out of sequence error occurs usually when you are trying to read from a cursor that has no data left(like EOF).
After executing the sql statement move the pointer to the first row (or the beginning of the resultset)
This is actually an oracle error bearing number :ORA:01002
Hope this helps.
Thanks,
Creator Team. -
Using EXECUTE IMMEDIATE with Create Table SQL Statement not working
Hi ,
I am all the privileges given from the SYSTEM user , but still i am not able to create a table under procedure . Please see these and advice.
create or replace procedure sp_dummy as
begin
Execute Immediate 'Create table Dummy99_99 (Dummy_Field number)';
end;
even i tried this way also
create or replace PROCEDURE clearing_Practise(p_file_id in varchar2, p_country in VARCHAR2,p_mapId in VARCHAR2)
AUTHID CURRENT_USER AS
strStatusCode VARCHAR2(6);
BEGIN
EXECUTE IMMEDIATE 'create table bonus(name varchar2(50))';
commit;
EXCEPTION
WHEN OTHERS THEN
dbms_output.put_line('ERROR Creating Table');
END ;William Robertson wrote:
Since the syntax is correct, my guess is you do not have CREATE TABLE system privilege granted directly to your account. A common scenario is that you have this privilege granted indirectly via a role, allowing you to create tables on the command line, but stored PL/SQL is stricter and requires a direct grant and therefore the procedure fails with 'insufficient privileges'.A bit like he's already been told on his first thread...
Using of Execute Immediate in Oracle PLSQL
Generally you would not create tables from stored PL/SQL. Also as you have found out, it's best not to hide exceptions with 'WHEN OTHERS THEN [some message which gives less detail than the one generated by Oracle]'.Again like he was told on the other thread.
There's just no telling some people eh! :) -
SQL Developer 31EA1 SQL Worksheet not allowing entry
When select to open a new SQL worksheet or having open a worksheet on connection, the system will bring up a new tab with the blue shading. It stops at that point. I can not enter anything and if I try and do other tasks, even exit Developer, I get a connection busy error message. If I try and click the try again button it just keeps reappearing. If I click the abort and try and do anything els I get the error again. I have to go to task manager and kill the task to get out of SQL developer. I am using Windows XP, JAVA 1.6.0_26 32 bit versions. Everything was working when I was using 3.0.
Hi,
See this post for the likely problem:
Re: SQL Developer 3.1EA1 JAVA Error During Export
Regards,
Gary
SQL Developer Team -
Sql statement not showing right result set
Hi everyone,
I have a statement :
select to_date(extract (day from to_date(begin_datum,'yyyy-mm-dd'))||'-'||extract (month from to_date(begin_datum,'yyyy-mm-dd'))||'-'||
extract(year from sysdate),'dd-mm-yyyy') from fus_medewerkers;
which returns following result:
12-FEB-09
07-DEC-09
22-NOV-09
21-MAY-09
26-FEB-09
17-DEC-09
01-SEP-09
17-DEC-09
04-APR-09
07-JUN-09
23-MAY-09
29-MAY-09
13-AUG-09
18-MAR-09
01-NOV-09
12-AUG-09
06-JAN-09
01-MAR-09
02-AUG-09
16-AUG-09
06-NOV-09
23-MAR-09
06-MAY-09
01-NOV-09
01-MAR-09
16-AUG-09
01-JAN-09
01-DEC-09
01-OCT-09
01-OCT-09
01-OCT-09
01-APR-09
01-APR-09
08-DEC-09
01-APR-09
01-AUG-09
14-JUN-09
02-JUL-09
01-APR-09
10-JAN-09
15-MAR-09
07-APR-09
29-JAN-09
16-JUN-09
21-OCT-09
I now put a condition in my original statement as follow:
select to_date(extract (day from to_date(begin_datum,'yyyy-mm-dd'))||'-'||extract (month from to_date(begin_datum,'yyyy-mm-dd'))||'-'||
extract(year from sysdate),'dd-mm-yyyy') from fus_medewerkers
where sysdate <= to_date(extract (day from to_date(begin_datum,'yyyy-mm-dd'))||'-'||extract (month from to_date(begin_datum,'yyyy-mm-dd'))||'-'||
extract(year from sysdate),'dd-mm-yyyy');
The result is:
07-DEC-09
22-NOV-09
17-DEC-09
01-SEP-09
17-DEC-09
13-AUG-09
01-NOV-09
16-AUG-09
06-NOV-09
01-NOV-09
16-AUG-09
01-DEC-09
01-OCT-09
01-OCT-09
01-OCT-09
08-DEC-09
21-OCT-09
As you can see the row with sysdate (12-AUG-09 ) in my first result is not shown in the second result set.
Can someone please tell me why this is so and how I could solve this problem?
Regards,
Dianasysdate contains time even if it's not shown. e.g. at 14:43:22 on Aug 12th 2009, sysdate would have a value of 12-AUG 2009 14:43:22, but unless you have changed your NLS_DATE_FORMAT setting you would only see the date portion of it.
When comparing a date value to sysdate you may need to truncate one or both values depending on the results you are looking for.
e.g.
the only difference between these two queries is that I truncate sysdate in one of them:
with t1 as (select 1 id, to_date('12-AUG-2009','dd-mon-yyyy') dt from dual
union all select 2, to_date('12-AUG-2009 14:23','dd-mon-yyyy hh24:mi') from dual
select sysdate, t1.* from t1 where sysdate <= dt
SYSDATE ID DT
12-AUG-2009 11:38:21 2 12-AUG-2009 14:23:00
1 rows selected
with t1 as (select 1 id, to_date('12-AUG-2009','dd-mon-yyyy') dt from dual
union all select 2, to_date('12-AUG-2009 14:23','dd-mon-yyyy hh24:mi') from dual
select trunc(sysdate), t1.* from t1 where trunc(sysdate) <= dt
TRUNC(SYSDATE) ID DT
12-AUG-2009 00:00:00 1 12-AUG-2009 00:00:00
12-AUG-2009 00:00:00 2 12-AUG-2009 14:23:00
2 rows selected -
Hi,
I have a table with many LONG fields (28). So far, everythings works fine.
However, if I add another LONG field I cannot insert a dataset anymore
(29 LONG fields).
Does there exist a MaxDB parameter or anything else I can change to make inserts possible again?
Thanks in advance
Michael
appendix:
- Create and Insert command and error message
- MaxDB version and its parameters
Create and Insert command and error message
CREATE TABLE "DBA"."AZ_Z_TEST02"
"ZTB_ID" Integer NOT NULL,
"ZTB_NAMEOFREPORT" Char (400) ASCII DEFAULT '',
"ZTB_LONG_COMMENT" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_00" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_01" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_02" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_03" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_04" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_05" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_06" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_07" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_08" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_09" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_10" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_11" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_12" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_13" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_14" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_15" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_16" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_17" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_18" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_19" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_20" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_21" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_22" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_23" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_24" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_25" LONG ASCII DEFAULT '',
"ZTB_LONG_TEXTBLOCK_26" LONG ASCII DEFAULT '',
PRIMARY KEY ("ZTB_ID")
The insert command
INSERT INTO AZ_Z_TEST02 SET ztb_id = 87
works fine. If I add the LONG field
"ZTB_LONG_TEXTBLOCK_27" LONG ASCII DEFAULT '',
the following error occurs:
Auto Commit: On, SQL Mode: Internal, Isolation Level: Committed
General error;-7032 POS(1) SQL statement not allowed for column of data type LONG
INSERT INTO AZ_Z_TEST02 SET ztb_id = 88
MaxDB version and its parameters
All db params given by
dbmcli -d myDB -u dbm,dbm param_directgetall > maxdb_params.txt
are
KERNELVERSION KERNEL 7.5.0 BUILD 026-123-094-430
INSTANCE_TYPE OLTP
MCOD NO
RESTART_SHUTDOWN MANUAL
SERVERDBFOR_SAP YES
_UNICODE NO
DEFAULT_CODE ASCII
DATE_TIME_FORMAT INTERNAL
CONTROLUSERID DBM
CONTROLPASSWORD
MAXLOGVOLUMES 10
MAXDATAVOLUMES 11
LOG_VOLUME_NAME_001 LOG_001
LOG_VOLUME_TYPE_001 F
LOG_VOLUME_SIZE_001 64000
DATA_VOLUME_NAME_0001 DAT_0001
DATA_VOLUME_TYPE_0001 F
DATA_VOLUME_SIZE_0001 64000
DATA_VOLUME_MODE_0001 NORMAL
DATA_VOLUME_GROUPS 1
LOG_BACKUP_TO_PIPE NO
MAXBACKUPDEVS 2
BACKUP_BLOCK_CNT 8
LOG_MIRRORED NO
MAXVOLUMES 22
MULTIO_BLOCK_CNT 4
DELAYLOGWRITER 0
LOG_IO_QUEUE 50
RESTARTTIME 600
MAXCPU 1
MAXUSERTASKS 50
TRANSRGNS 8
TABRGNS 8
OMSREGIONS 0
OMSRGNS 25
OMS_HEAP_LIMIT 0
OMS_HEAP_COUNT 1
OMS_HEAP_BLOCKSIZE 10000
OMS_HEAP_THRESHOLD 100
OMS_VERS_THRESHOLD 2097152
HEAP_CHECK_LEVEL 0
ROWRGNS 8
MINSERVER_DESC 16
MAXSERVERTASKS 20
_MAXTRANS 288
MAXLOCKS 2880
LOCKSUPPLY_BLOCK 100
DEADLOCK_DETECTION 4
SESSION_TIMEOUT 900
OMS_STREAM_TIMEOUT 30
REQUEST_TIMEOUT 5000
USEASYNC_IO YES
IOPROCSPER_DEV 1
IOPROCSFOR_PRIO 1
USEIOPROCS_ONLY NO
IOPROCSSWITCH 2
LRU_FOR_SCAN NO
PAGESIZE 8192
PACKETSIZE 36864
MINREPLYSIZE 4096
MBLOCKDATA_SIZE 32768
MBLOCKQUAL_SIZE 16384
MBLOCKSTACK_SIZE 16384
MBLOCKSTRAT_SIZE 8192
WORKSTACKSIZE 16384
WORKDATASIZE 8192
CATCACHE_MINSIZE 262144
CAT_CACHE_SUPPLY 1632
INIT_ALLOCATORSIZE 229376
ALLOW_MULTIPLE_SERVERTASK_UKTS NO
TASKCLUSTER01 tw;al;ut;2000sv,100bup;10ev,10gc;
TASKCLUSTER02 ti,100dw;30000us;
TASKCLUSTER03 compress
MPRGN_QUEUE YES
MPRGN_DIRTY_READ NO
MPRGN_BUSY_WAIT NO
MPDISP_LOOPS 1
MPDISP_PRIO NO
XP_MP_RGN_LOOP 0
MP_RGN_LOOP 0
MPRGN_PRIO NO
MAXRGN_REQUEST 300
PRIOBASE_U2U 100
PRIOBASE_IOC 80
PRIOBASE_RAV 80
PRIOBASE_REX 40
PRIOBASE_COM 10
PRIOFACTOR 80
DELAYCOMMIT NO
SVP1_CONV_FLUSH NO
MAXGARBAGECOLL 0
MAXTASKSTACK 1024
MAX_SERVERTASK_STACK 100
MAX_SPECIALTASK_STACK 100
DWIO_AREA_SIZE 50
DWIO_AREA_FLUSH 50
FBM_VOLUME_COMPRESSION 50
FBM_VOLUME_BALANCE 10
FBMLOW_IO_RATE 10
CACHE_SIZE 10000
DWLRU_TAIL_FLUSH 25
XP_DATA_CACHE_RGNS 0
DATACACHE_RGNS 8
XP_CONVERTER_REGIONS 0
CONVERTER_REGIONS 8
XP_MAXPAGER 0
MAXPAGER 11
SEQUENCE_CACHE 1
IDXFILELIST_SIZE 2048
SERVERDESC_CACHE 73
SERVERCMD_CACHE 21
VOLUMENO_BIT_COUNT 8
OPTIM_MAX_MERGE 500
OPTIM_INV_ONLY YES
OPTIM_CACHE NO
OPTIM_JOIN_FETCH 0
JOIN_SEARCH_LEVEL 0
JOIN_MAXTAB_LEVEL4 16
JOIN_MAXTAB_LEVEL9 5
READAHEADBLOBS 25
RUNDIRECTORY E:\_mp\u_v_dbs\EVERW_C5
_KERNELDIAGFILE knldiag
KERNELDIAGSIZE 800
_EVENTFILE knldiag.evt
_EVENTSIZE 0
_MAXEVENTTASKS 1
_MAXEVENTS 100
_KERNELTRACEFILE knltrace
TRACE_PAGES_TI 2
TRACE_PAGES_GC 0
TRACE_PAGES_LW 5
TRACE_PAGES_PG 3
TRACE_PAGES_US 10
TRACE_PAGES_UT 5
TRACE_PAGES_SV 5
TRACE_PAGES_EV 2
TRACE_PAGES_BUP 0
KERNELTRACESIZE 648
EXTERNAL_DUMP_REQUEST NO
AKDUMP_ALLOWED YES
_KERNELDUMPFILE knldump
_RTEDUMPFILE rtedump
UTILITYPROTFILE dbm.utl
UTILITY_PROTSIZE 100
BACKUPHISTFILE dbm.knl
BACKUPMED_DEF dbm.mdf
MAXMESSAGE_FILES 0
EVENTALIVE_CYCLE 0
_SHAREDDYNDATA 10280
_SHAREDDYNPOOL 3607
USE_MEM_ENHANCE NO
MEM_ENHANCE_LIMIT 0
__PARAM_CHANGED___ 0
__PARAM_VERIFIED__ 2008-05-13 13:47:17
DIAG_HISTORY_NUM 2
DIAG_HISTORY_PATH E:\_mp\u_v_dbs\EVERW_C5\DIAGHISTORY
DIAGSEM 1
SHOW_MAX_STACK_USE NO
LOG_SEGMENT_SIZE 21333
SUPPRESS_CORE YES
FORMATTING_MODE PARALLEL
FORMAT_DATAVOLUME YES
HIRES_TIMER_TYPE CPU
LOAD_BALANCING_CHK 0
LOAD_BALANCING_DIF 10
LOAD_BALANCING_EQ 5
HS_STORAGE_DLL libhsscopy
HS_SYNC_INTERVAL 50
USE_OPEN_DIRECT NO
SYMBOL_DEMANGLING NO
EXPAND_COM_TRACE NO
OPTIMIZE_OPERATOR_JOIN_COSTFUNC YES
OPTIMIZE_JOIN_PARALLEL_SERVERS 0
OPTIMIZE_JOIN_OPERATOR_SORT YES
OPTIMIZE_JOIN_OUTER YES
JOIN_OPERATOR_IMPLEMENTATION IMPROVED
JOIN_TABLEBUFFER 128
OPTIMIZE_FETCH_REVERSE YES
SET_VOLUME_LOCK YES
SHAREDSQL NO
SHAREDSQL_EXPECTEDSTATEMENTCOUNT 1500
SHAREDSQL_COMMANDCACHESIZE 32768
MEMORY_ALLOCATION_LIMIT 0
USE_SYSTEM_PAGE_CACHE YES
USE_COROUTINES YES
MIN_RETENTION_TIME 60
MAX_RETENTION_TIME 480
MAX_SINGLE_HASHTABLE_SIZE 512
MAX_HASHTABLE_MEMORY 5120
HASHED_RESULTSET NO
HASHED_RESULTSET_CACHESIZE 262144
AUTO_RECREATE_BAD_INDEXES NO
LOCAL_REDO_LOG_BUFFER_SIZE 0
FORBID_LOAD_BALANCING NO>
Lars Breddemann wrote:
> Hi Michael,
>
> this really looks like one of those "Find-the-5-errors-in-the-picture" riddles to me.
> Really.
>
> Ok, first to your question: this seems to be a bug - I could reproduce it with my 7.5. Build 48.
> Anyhow, when I use
>
> insert into "AZ_Z_TEST02" values (87,'','','','','','','','','','','','','','','',''
> ,'','','','','','','','','','','','','','','','')
>
> it works fine.
It solves my problem. Thanks a lot. -- I hardly can believe that this is all needed to solve the bug. This may be the reason why I have not given it a try.
>
Since explicitely specifying all values for an insert is a good idea anyhow (you can see directly, what value the new tupel will have), you may want to change your code to this.
>
> Now to the other errors:
> - 28 Long values per row?
> What the heck is wrong with the data design here?
> Honestly, you can save data up to 2 GB in a BLOB/CLOB.
> Currently, your data design allows 56 GB per row.
> Moreover 26 of those columns seems to belong together originally - why do you split them up at all?
>
> - The "ZTB_NAMEOFREPORT" looks like something the users see -
> still there is no unique constraint preventing that you get 10000 of reports with the same name...
You are right. This table looks a bit strange. The story behind it is: Each crystal report in the application has a few textblocks which are the same for all the e.g. persons the e.g. letter is created for. Principally, the textblocks could be directy added to the crystal report. However, as it is often the case, these textblocks may change once in a while. Thus, I put the texts of the textblock into this "strange" db table (one row for each report, one field for each textblock, the name of the report is given by "ztb_nameofreport"). And the application offers a menue by which these textblocks can be changed. Of course, the fields in the table could be of type CHAR, but LONG has the advantage that I do not have to think about the length of the field, since sometime the texts are short and sometimes they are really long.
(These texts would blow up the sql select command of the crystal report very much if they were integrated into the this select command. Thus it is realized in another way: the texts are read before the crystal report is loaded, then the texts are "given" to the crystal report (by its parameters), and finally the crystal report is loaded.)
>
- MaxDB 7.5 Build 26 ?? Where have you been the last years?
> Really - download the 7.6.03 Version [here|https://www.sdn.sap.com/irj/sdn/maxdb-downloads] from SDN and upgrade.
> With 7.6. I was not able to reproduce your issue at all.
The customer still has Win98 clients. MaxDB odbc driver 7.5.00.26 does not work for them. I got the hint to use odbc driver 7.3 (see [lists.mysql.com/maxdb/25667|lists.mysql.com/maxdb/25667]). Do MaxDB 7.6 and odbc driver 7.3 work together?
All Win98 clients may be replaced by WinXP clients in the near future. Then, an upgrade may be reasonable.
>
- Are you really putting your data into the DBA schema? Don't do that, ever.
> DBM/SUPERDBA (the sysdba-schemas) are reserved for the MaxDB system tables.
> Create a user/schema for your application data and put your tables into that.
>
> KR Lars
In the first MaxDB version I used, schemas were not available. I haven't changed it afterwards. Is there an easy way to "move an existing table into a new schema"?
Michael -
"Balance forward" SQL statement
Has anyone developed a SQL statement that allows balances to be carried forward? Would a UNION query possibly work?
Here's my example where I need to join 3 tables and show results. Based on the example data below, I am looking for a query that allows me to illustrate that the Acrobat 9 Installed Software instances are consuming a license capacity of 6, leaving a balance of 4 that can be applied to the Acrobat 8 Installed Software Instances.
Table: LICENSE
LICENSENUM SWLICENSE LICENSECAPACITY
'1001' 'Adobe Acrobat 9' '10'
Table: LICENSESW
LICENSENUM SWPRODUCT PRECEDENCE
'1001' 'Acrobat 9' '1'
'1001' 'Acrobat 8' '2'
Table: INSTALLEDSW
INSTALLEDSW
'Acrobat 9'
'Acrobat 9'
'Acrobat 9'
'Acrobat 9'
'Acrobat 9'
'Acrobat 9'
'Acrobat 8'
'Acrobat 8'
'Acrobat 8'
'Acrobat 8'
'Acrobat 8'
I can write a select to do total counts, but this does not allow me to carry a balance forward to be applied to Acrobat 8 (precedence 2).
select LICENSE.SWLICENSE, LICENSE.LICENSECAPACITY, count(INSTALLEDSW.INSTALLEDSW) as INSTALLED_COUNT
from LICENSE, LICENSESW, INSTALLEDSW
where LICENSE.LICENSENUM = LICENSESW.LICENSENUM
AND LICENSESW.SWPRODUCT = INSTALLEDSW.INSTALLEDSW
group by LICENSE.SWLICENSE, LICENSE.LICENSECAPACITY;
Results:
SWLICENSE LICENSECAPACITY INSTALLED_COUNT
'Adobe Acrobat 9' '10' '11'
I need results that look like this, where the balance of 4 is carried forward after the first row:
SWLICENSE LICENSECAPACITY INSTALLED_PRODUCT INSTALLED_COUNT
'Adobe Acrobat 9' '6' 'Acrobat 9' '6'
'Adobe Acrobat 9' '4' 'Acrobat 8' '5'Not easy to follow your example data, but if I demonstrate what I think you are trying to achieve using the emp table, you may be able to see if it helps...
SQL> select deptno, empno, ename
2 ,count(*) over (partition by deptno) as dept_count
3 ,count(*) over (partition by deptno) - row_number() over (partition by deptno order by empno) as remaining
4 from emp
5 order by deptno, empno;
DEPTNO EMPNO ENAME DEPT_COUNT REMAINING
10 7782 CLARK 3 2
10 7839 KING 3 1
10 7934 MILLER 3 0
20 7369 SMITH 5 4
20 7566 JONES 5 3
20 7788 SCOTT 5 2
20 7876 ADAMS 5 1
20 7902 FORD 5 0
30 7499 ALLEN 6 5
30 7521 WARD 6 4
30 7654 MARTIN 6 3
30 7698 BLAKE 6 2
30 7844 TURNER 6 1
30 7900 JAMES 6 0
14 rows selected.using the analytical functions count() and row_number() (you can use others such as sum(), avg(), lag(), lead() etc. as required) you can do processing that carries forward, backwards or across "groups" (aka partitions) of data. -
Digital Signature not allowed Acrobat 9.5.2
I created a form in Acrobat Pro and saved with extended functions. I'm using Acrobat Standard 9.5.2 which allows me to add digital signature. Most other employees can add signatures as well. However, there are a couple (using the same version software above) that when they open the file the security for digital signature is set to "Not Allowed". When I open the same document signatures are allowed. Therefore, is appears their software settings is setup differently than everyone elses. Can you help identify which setting needs to be changed?
Classification: For internal use only
I can't attach images at this point. The security method for both is No
Security. However, on the other user computer next to signature it states Not
Allowed. However, when they open the same form they see an error on top that
does not show up when I open the same form. The error message is, 'At least
one signature has problems. Please fill out the following form. You cannot
save data typed into this form. Please print your completed for if you would
like a copy for your records'. However, when I open the same for I do not get
that message. It almost seems like a security setting within their reader or
not. -
is there any chance to get the sql statement (not program) from any abap query created via SQ01?
I can get the code of program that generated by system, but I cannot get pure sql statement.
any answer will be appreciatedI see no parameters, and in the abstract that SQL ought to work.
However, I halfway suspect that either User, Users, Password, or pass is a reserved word and somebody is getting confused. Try renaming your columns and table...
Maybe you are looking for
-
Why does iTunes sometimes refuse to burn a 78:30 playlist?!?
Most of the time iTunes 6 will burn a 79:30 playlist to an 80-minute CD-R with no fuss. (That's a real 79:30 or 79:40 or even 79:55, not the list of times as iTunes displays them to the whole second. I monitor the time precisely using the Info/Option
-
To Find no og MIGOS pending for MIRO
Hi All, I am developing a report to find the MIGO'S pending for MIRO's. Which table should i refer to find MIGO'S pending for MIRO's.including MSEG and MKPF. will it be done thru EKBE fro this can any one help........? TIA Basu
-
Fields for Selection on selection screen - Data Dictionary
Hi, I have an issue while selecting the required fields for selection on the Standard table. VBAK --> Settings > Fields for Selection> Select required fields and save it as a variant. It looks good for that day but it again changes to the standard se
-
SPACE ITUNES IS TAKING UP ON COMPUTER HARD DRIVE
I HAVE DOWNLOADED MY MUSIC FROM ITUNES T0 IPOD (30GB VIDEO). I AM GETTING A COMPUTER SYSTEM MESSAGE THAT I AM RUNNING LOW ON HARD DISC SPACE. IF I CLEAR MY ITUNES LIBRARY TO FREE UP SPACE, WILL IT CLEAR MY IPOD THE NEXT TIME I CONNECT?
-
Cisco ISE Deployment suggestion required
Require Assistance on Cisco ISE Deployment for below scenario -- We have Three Cisco ISE Appliances and Client has taken Advance Subscription License for 500 users -- Client has DC & DR and needs to deploy the Cisco ISE in one Main Office which conne