Runtime error --sql command
Hi All,
I'm not familar with sql command, thus get this error when put into abap, can anyone help ?
I use db connection, & the connection is fine, just that when I test append a line to the table AWB , it failed, is that sytax error ?
WA_AWB-SHIPID = '1582271'.
WA_AWB-SHIPNO = '2144399'.
WA_AWB-COURIERID = 'XXX'.
WA_AWB-COURIER = 'XXX'.
INSERT WA_AWB INTO TABLE it_awb.
EXEC SQL.
APPEND AWB FROM TABLE IT_AWB
ENDEXEC.
Thanks in advance.
Janice
Hi Janice,
what's the error your getting..,
Anyhow let's see below the complete code example for creating table, inserting values and fetching the records.
data: begin of itab,
shipid type i,
shipno type p,
awb(50) type c,
courierid(3) type c,
amount type p,
courier(20) type c,
end of itab.
itab-shipid = '1582273'.
itab-shipno = '2144340'.
itab-awb = 'mahesh'.
itab-courierid = '123'.
itab-amount = 44444.
itab-courier = 'DHL'.
*/ Table creation in Oracle DB */
*EXEC SQL.
*CREATE TABLE mahi_temp(shipid NUMBER, shipno DECIMAL(18,0), awb VARCHAR(50), courierid CHAR(3), amount DECIMAL(18,0), courier VARCHAR(20))
*ENDEXEC.
*/ Insert records into table*/
EXEC SQL.
INSERT INTO MAHI_TEMP VALUES (:itab-shipid, :itab-shipno, :itab-awb, :itab-courierid, :itab-amount, :itab-courier)
ENDEXEC.
*/ Fetching records from table */
exec sql performing list_itab.
select * from mahi_temp into :itab
endexec.
form list_itab.
write:/ itab-shipid, itab-shipno, itab-awb, itab-courierid.
endform.
Hope this helps you.
Cheers\
Mahesh
Similar Messages
-
Runtime error SQL error 3114 occurred when accessing program CX_ w
Hi Friends,
Iam in a big mess . I have one query based on one my Zinfocube.This query ia attached in the workbook .. Previuolsy all was fine , but now whever iam executing this query it is throwing me the exception
Query 0: Runtime error SQL error 3114 occurred when accessing program CX_ with parallel processing via RFC.
and
Beim Lesen der Daten sind Fehler aufgetreten. Navigation ist möglich
I am not able to get the cause of error ..
Can anybody help me in this regrd as its a bit urgent.
Thanks in advance..Hi , thanks for replying ,
I have tried running query through RSRT also , its not working still it is giving me the same error .
In st22 it is showing me the follwing dump.
DBIF_REPO_SQL_ERROR
Short text
SQL error 3114 occurred when accessing program
What happened?
The system is no longer linked to an ORACLE instance.
No further operations can be performed on the database.
What can you do?
You cannot eliminate this error yourself.
Please inform your database administrator.
Note which actions and input led to the error.
For further help in handling the problem, contact your SAP administrator
You can use the ABAP dump analysis transaction ST22 to view and manage
termination messages, in particular for long term reference.
Note which actions and input led to the error.
For further help in handling the problem, contact your SAP administrator
You can use the ABAP dump analysis transaction ST22 to view and manage
termination messages, in particular for long term reference.
Error analysis
The system attempted to access an ORACLE instance to which
it is no longer linked.
This situation may arise because the ORACLE instance
has been stopped due to an error or an external operation.
How to correct the error
Database error text........: "ORA-03114: not connected to ORACLE"
Triggering SQL statement...: "CX_SQL_EXCEPTION==============CP "
The current status of the ORACLE instance cannot be determined.
It may be still inactive or the database administrator may have
restarted it.
In any case, all systems that have accessed the ORACLE instance
must be restarted after the ORACLE instance has been restarted.
If you were working on a central system, inform
your system administrator.
If you were working on an external local system, inform
the person responsible for this system.
If you were working on your own local system, restart
the system yourself.
If the error occures in a non-modified SAP program, you may be able to
find an interim solution in an SAP Note.
If you have access to SAP Notes, carry out a search with the following
keywords:
"DBIF_REPO_SQL_ERROR" " "
"CL_SQL_RESULT_SET=============CP" or "CL_SQL_RESULT_SET=============CM006"
"NEXT_PACKAGE"
If you cannot solve the problem yourself and want to send an errornotification to SAP, include the following information:
1. The description of the current problem (short dump)
To save the description, choose "System->List->Save->Local File
(Unconverted)".
2. Corresponding system log
Display the system log by calling transaction SM21.
Restrict the time interval to 10 minutes before and five minutes
after the short dump. Then choose "System->List->Save->Local File
(Unconverted)".
3. If the problem occurs in a problem of your own or a modified SAP
program: The source code of the program
In the editor, choose "Utilities->More
Utilities->Upload/Download->Download".
4. Details about the conditions under which the error occurred or which
actions and input led to the error.
If the error occures in a non-modified SAP program, you may be able to
find an interim solution in an SAP Note.
If you have access to SAP Notes, carry out a search with the following
keywords:
"DBIF_REPO_SQL_ERROR" " "
"CL_SQL_RESULT_SET=============CP" or "CL_SQL_RESULT_SET=============CM006"
"NEXT_PACKAGE"
Thanks in Advance.. -
CallableStatement error: SQL command not properly ended
I am getting a strange error using CallableStatement and Oracle 7.3.4 with PL/SQL 2.3 using Classes12 JDBC driverset from Oracle. Here is the code we are using, which is almost verbatim from several Java/Oracle CallableStatement examples for Oracle 8. I am wondering what I am missing to make this work on Oracle 7 and am unable to find a reference online:
//String query = "begin PAC.PAC_WIP_WIPHEADER_PKG.GetWipNumPartList(?,?); end;";
String query = "{ call PAC.PAC_WIP_WIPHEADER_PKG.GETWIPNUMPARTLIST(?,?) } ";
CallableStatement csth = Connection.prepareCall(query);
csth.setString(1, wipNumber);
csth.setInt(2, PacCarousel.getCarouselNumber());
csth.execute();
using either the Begin or the call query (Begin commented in above code snip) is returning the following error from the JDBC driver:
java.sql.SQLException: ORA-00933: SQL command not properly ended
This identical 'begin' query works fine in TOAD or the PL/SQL console for Oracle, but just won't work using this set of JDBC drivers.
Has anyone run into this problem before or perhaps have some suggestions?
Thanks in advanceI am getting a strange error using CallableStatement and Oracle 7.3.4 with PL/SQL 2.3 using Classes12 JDBC driverset from Oracle. Here is the code we are using, which is almost verbatim from several Java/Oracle CallableStatement examples for Oracle 8. I am wondering what I am missing to make this work on Oracle 7 and am unable to find a reference online:
//String query = "begin PAC.PAC_WIP_WIPHEADER_PKG.GetWipNumPartList(?,?); end;";
String query = "{ call PAC.PAC_WIP_WIPHEADER_PKG.GETWIPNUMPARTLIST(?,?) } ";
CallableStatement csth = Connection.prepareCall(query);
csth.setString(1, wipNumber);
csth.setInt(2, PacCarousel.getCarouselNumber());
csth.execute();
using either the Begin or the call query (Begin commented in above code snip) is returning the following error from the JDBC driver:
java.sql.SQLException: ORA-00933: SQL command not properly ended
This identical 'begin' query works fine in TOAD or the PL/SQL console for Oracle, but just won't work using this set of JDBC drivers.
Has anyone run into this problem before or perhaps have some suggestions?
Thanks in advance -
Any One Can Help Me--error :-SQL command not properly ended
hi,
this code has an error i have tried to find out this error but i can't find it so please help me :-
report error:
ORA-06550: line 1, column 149:
PL/SQL: ORA-00933: SQL command not properly ended
ORA-06550: line 1, column 7:
PL/SQL: SQL Statement ignored
Code
select HTMLDB_ITEM.HIDDEN(1,SEQ_ID),
HTMLDB_ITEM.TEXT(2,a.c001) c001,
HTMLDB_ITEM.TEXT(3,a.c002) c002,
HTMLDB_ITEM.TEXT(4,a.c003) c003,
APEX_ITEM.SELECT_LIST_FROM_QUERY(5,a.c004,'SELECT P_ID D,P_ID R FROM PARTY_DETAIL') c004,
APEX_ITEM.SELECT_LIST_FROM_QUERY
(6,a.c005,
'SELECT CATEGARY_NAME D,'||'CATEGARY_NAME R FROM ITEM_CATEGARY',
'style="width:220px" '
||'onchange="get_select_list_xml1(this,'
|| 'f7_'
|| LPAD (seq_id, 4, '0')
|| ')"',
'YES',
'0',
'-Select-',
'f6_'|| LPAD (seq_id, 4, '0'),
NULL,
'NO') c005,
APEX_ITEM.SELECT_LIST_FROM_QUERY
(7,a.c006,
'SELECT ITEM_CODE D,'
||'ITEM_CODE R FROM ITEM_MASTER'
||'WHERE CATEGARY_NAME ='
|| c005,
'style="width:220px"',
'YES',
'0',
'-Select Code ('
|| (Select Count(*)
from ITEM_MASTER
where CATEGARY_NAME = c005)
|| ')-',
'f7_' || LPAD (seq_id, 4, '0'),
NULL,
'NO') c006,
APEX_ITEM.SELECT_LIST_FROM_QUERY(8,a.c007,'SELECT ITEM_NAME D,ITEM_NAME R FROM ITEM_MASTER') c007,
HTMLDB_ITEM.TEXT(9,a.c008) c008,
APEX_ITEM.SELECT_LIST_FROM_QUERY(10,a.c009,'SELECT PACK_TYPE D,PACK_TYPE R FROM ITEM_PACKING') c009,
HTMLDB_ITEM.TEXT(11,a.c010) c010,
HTMLDB_ITEM.TEXT(12,a.c011) c011,
HTMLDB_ITEM.TEXT(13,a.c012) c012,
HTMLDB_ITEM.TEXT(14,a.c013) c013
FROM wwv_flow_collections a
where a.collection_name = 'REC_ITEM'
Thanks
Manoj
Edited by: Manoj Kaushik on Sep 10, 2009 3:36 AMhi mike,
My problem is:-
i have a bill with multiple item eg . Apple (12), Banana (49), Badam (145) , Grapes(25) with there quantity and now i want to Add these item with quantity in my database
when i finaly click on submit button .
Actully I have been used tabular form but i am facing one problem when using tabular form ,in Tabular form i enter first item eg . Apple and there quantity eg. 12 in textfield and after click on Add Row Buttom data insert in to the database . but i want Entry Shouldn't go in to the database. But only New Row Should Add there when i click on Add Row Button.
I want all these 4 item should enter in to data base when i click on Final Submit.
So i have use this collection report to insert multiple item .everything was all right when i was using text field but when i changed these textfield into select list then error has arise .
Actually i want also a cascade selectlist in this report .
eg .item name depend on item code and item code depend on item category name .
so i want when i select CATEGARY_NAME then item code come into report item and when i select ietem code them correcponding item name should come into item name field.
for cascade select list i have created application process and java script .
So please mike Suggest me some solution how can i do this .
its urgent for me .
This Is my code :-
select HTMLDB_ITEM.HIDDEN(1,SEQ_ID),
APEX_ITEM.TEXT(2,a.c001) c001,
APEX_ITEM.TEXT(3,a.c002) c002,
APEX_ITEM.TEXT(4,a.c003) c003,
APEX_ITEM.SELECT_LIST_FROM_QUERY(5,a.c004,'SELECT P_ID D,P_ID R FROM PARTY_DETAIL') c004,
APEX_ITEM.SELECT_LIST_FROM_QUERY
(6,a.c005,
'SELECT CATEGARY_NAME D,'||'CATEGARY_NAME R FROM ITEM_CATEGARY',
'style="width:220px" '
||'onchange="get_select_list_xml1(this,''f7_'|| LPAD (seq_id, 4, '0')
||''')"',
'YES',
'0',
'-Select-',
'f6_'|| LPAD (seq_id, 4, '0'),
NULL,
'NO') c005,
APEX_ITEM.SELECT_LIST_FROM_QUERY
(7,a.c006,
'SELECT ITEM_CODE D,'
||'ITEM_CODE R FROM ITEM_MASTER'
||'WHERE CATEGARY_NAME ='
|| c005,
'style="width:220px"',
'YES',
'0',
'-Select Code ('
|| (Select Count(*)
from ITEM_MASTER
where CATEGARY_NAME = c005)
|| ')-',
'f7_' || LPAD (seq_id, 4, '0'),
NULL,
'NO') c006,
APEX_ITEM.SELECT_LIST_FROM_QUERY(8,a.c007,'SELECT ITEM_NAME D,ITEM_NAME R FROM ITEM_MASTER') c007,
APEX_ITEM.TEXT(9,a.c008) c008,
APEX_ITEM.SELECT_LIST_FROM_QUERY(10,a.c009,'SELECT PACK_TYPE D,PACK_TYPE R FROM ITEM_PACKING') c009,
APEX_ITEM.TEXT(11,a.c010) c010,
APEX_ITEM.TEXT(12,a.c011) c011,
APEX_ITEM.TEXT(13,a.c012) c012,
APEX_ITEM.TEXT(14,a.c013) c013
FROM wwv_flow_collections a
where a.collection_name = 'REC_ITEM'
I am waiting for your positive responce.
thanks
Manoj
Edited by: Manoj Kaushik on Sep 10, 2009 4:46 AM -
SQL Command not properly ended at line 13
Dear All,
I have a below code to find a value from database. but when iam running this code it is throwing error "SQL Command not properly ended at line 13"
iam unable to find the error.
Pls help me.
DECLARE
match_count INTEGER;
-- Type the owner/schema of the tables you are looking at
v_owner VARCHAR2(255) :='SCOTT';
-- Type the data type you are look at (in CAPITAL)
-- VARCHAR2, NUMBER, etc.
v_data_type VARCHAR2(255) :='VARCHAR2';
-- Type the string you are looking at
v_search_string VARCHAR2(255) :='KING';
BEGIN
FOR t IN (SELECT table_name, column_name FROM all_tab_cols where owner=v_owner and data_type = v_data_type)
LOOP
EXECUTE IMMEDIATE
'SELECT COUNT(*) FROM '||v_owner||'.'||t.table_name||' WHERE '||t.column_name||' = :1'
INTO match_count
USING v_search_string;
IF match_count > 0 THEN
dbms_output.put_line( t.table_name ||' '||t.column_name||' '||match_count );
END IF;
END LOOP;
END;
Thanx..DECLARE
match_count INTEGER;
-- Type the owner/schema of the tables you are looking at
v_owner VARCHAR2 (255) := 'SCOTT';
-- Type the data type you are look at (in CAPITAL)
-- VARCHAR2, NUMBER, etc.
v_data_type VARCHAR2 (255) := 'VARCHAR2';
-- Type the string you are looking at
v_search_string VARCHAR2 (255) := 'KING';
BEGIN
FOR t IN (SELECT table_name, column_name
FROM all_tab_cols
WHERE owner = v_owner AND data_type = v_data_type)
LOOP
EXECUTE IMMEDIATE 'SELECT COUNT(*) FROM '
|| v_owner
|| '.'
|| t.table_name
|| ' WHERE '
|| t.column_name
|| ' = :1'
INTO match_count
USING v_search_string;
IF match_count > 0
THEN
DBMS_OUTPUT.put_line ( t.table_name
|| ' '
|| t.column_name
|| ' '
|| match_count
END IF;
END LOOP;
END;Checked and no issues in Toad too... -
Runtime Error in SQL command ..
Hi everybody
I have a report wich terminates with a dump message.
The error is in an SQL command, here the program aborts:
SELECT KUNNR KKBER KLIMK SAUFT SKFOR SSOBL
INTO TABLE I_KNKK
FROM KNKK
WHERE KUNNR IN R_KUNNR
AND KKBER IN R_KKBER
AND SBGRP IN S_SBGRP.
DATA: BEGIN OF I_KNKK OCCURS 0,
KUNNR LIKE KNKK-KUNNR,
KKBER LIKE KNKK-KKBER,
KLIMK LIKE KNKK-KLIMK,
SAUFT LIKE KNKK-SAUFT,
SKFOR LIKE KNKK-SKFOR,
SSOBL LIKE KNKK-SSOBL,
SBGRP LIKE KNKK-SBGRP,
END OF I_KNKK.
In first moment, i saw the table and SQL filter have the SBGRP field but the SQL fields selection has not this field. But, these same program works good with others selection parameters, in fact this SQL only terminates the program for the bigest company, wich causes the program make many BD access because all previous SQL.
The dump log says:
Runtime errors DBIF_RSQL_INVALID_RSQL
Exception CX_SY_OPEN_SQL_DB
Occurred on 23.05.2006 at 17:27:15
Error in the module RSQL accessing the database interface.
An exception occurred. The exception, which is assigned to the class 'CX_SY_OPEN_SQL_DB', neither caught nor passed along using a RAISING clause, in the procedure "(FORM)" . Since the caller of the procedure could not have expected this except to occur, the running program was terminated.
The reason for the exception is:
The SQL statement generated from the SAP Open SQL Statement violates restriction imposed by the database system used in R/3.
Possible errors:
o The maximum size of an SQL statement has been exceeded.
o The statement contains too many input variables.
o The space needed for the input data exceeds the
available memory.
o ...
How can i be sure the dump is for a lot of BD access for all the SQL commands ?
If these is the error, does somebody knows how can i eliminate this error ?
Please help ..
Regards
FrankI think the field discrepancy is a red herring here. Not guilty! I agree that using the 'CORRESPONDING FIELDS OF' is safer though.
The error could be happening because your range variables have lots of entries in them which makes the generated sql huge.
To break it up you could use the 'package size' option of the select. This will work it's way through the input in chunks (or packages) of the size you specify.
You could change it to:
SELECT KUNNR KKBER KLIMK SAUFT SKFOR SSOBL
INTO TABLE I_KNKK package size 2000 "or a variable value
FROM KNKK
WHERE KUNNR IN R_KUNNR
AND KKBER IN R_KKBER
AND SBGRP IN S_SBGRP.
process current contents of i_knkk here
endselect.
or ,
SELECT KUNNR KKBER KLIMK SAUFT SKFOR SSOBL
appending TABLE I_KNKK package size 2000
FROM KNKK
WHERE KUNNR IN R_KUNNR
AND KKBER IN R_KKBER
AND SBGRP IN S_SBGRP.
endselect. -
Member acces profile error(A table name, specified in an sql command)
Hi friends,
In my bpc application(A) below 3 dims are secure dims.
1. entiiy (std)
2. category (std)
3. location (custom dim)
while defining one member access profile,
Read Only : CATEGORY 100
Read & Write : CATEGORY 200,500
for whatever combinatio i use, for other secure dims (eg: category,location where base member,or parent members ) i'm getting below error message
A table name, specified in an sql command, is unknown.
We are on bpc75nw sp04.
Pls suggest us .
dump(st22):
Short text
A table name, specified in an SQL command, is unknown.
What happened?
Error in the ABAP Application Program
The current ABAP program "CL_UJE_MEMACCESS_CACHE========CP" had to be
terminated because it has
come across a statement that unfortunately cannot be executed.
Error analysis
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_DYNAMIC_OSQL_SEMANTICS', was
not caught in
procedure "REMOVE_MEMACCESS" "(METHOD)", nor was it propagated by a RAISING
clause.
Since the caller of the procedure could not have anticipated that the
exception would occur, the current program is terminated.
The reason for the exception is:
An invalid table name "/1CPMB/RDWCSUMAS" was specified in an Open SQL command:
Due to one of the following reasons, the error occurs only at runtime:
- the table name was specified dynamically, or
- the SELECT clause, WHERE clause, GROUP-BY clause, HAVING clause, or
ORDER-BY clause was specified dynamically.
Thanks,
naresh
Edited by: Naresh P on Feb 19, 2011 10:40 AMHi Naresh,
As far as I know You have specify Explicit Access to all the dimensions mentioned as Secured in your Application.
You can't skip the secured Dimesions.
In your case if you want to restrict only one dimension for 1 Member Access Profile then give Read & Write access to other 2 Dimensions and select ALL members.
This might solve your problem.
Hope it helps.
Chaithanya -
I have created a execut sql task -
In that, i have a created a 'empidvar' variable of string type and put sqlstatement = 'select distinct empid from emp'
Resultset=resultname=0 and variablename=empidvar
I have added data flow task of ole db type and I put this sql statement under sql command - exec emp_sp @empidvar=?
I am getting an error.
[OLE DB Source [1]] Error: A rowset based on the SQL command was not returned by the OLE DB provider.
[SSIS.Pipeline] Error: component "OLE DB Source" (1) failed the pre-execute phase and returned error code 0xC02092B4.shouldnt setting be Result
Set=Full Resultset as your query returns a resultset? also i think variable to be mapped should be of object type.
Then for data flow task also you need to put it inside a ForEachLoop based on ADO.NET recordset and map your earlier variable inside it so as to iterate for every value the sql task returns.
Also if using SP in oledb source make sure you read this
http://consultingblogs.emc.com/jamiethomson/archive/2006/12/20/SSIS_3A00_-Using-stored-procedures-inside-an-OLE-DB-Source-component.aspx
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
Diadem runtime error while executing command "SchemeMeasStar"
Hello:
I used DIAdem9.0 and DAQCard6062E to acquire 16 channel data. I collected 65536 data for every channel. Whereas After the data acquisition stopped, an Error Message would poped up, but the data is still stored in data portal. the Error is like follows:
-Error- DIAdem
Runtime Error While Executing Command "SchemeMeasStar"
Error Type: UNKNOWN
Error Address:00001720
Module Name:GFSBase.Dll
Would you like to give me some suggestions?
thanks very much
jingDear MarcusP:
Thank you very much.
your solution really works. The attached is the detailed information of the problem. Would you like to tell me more about the prolem and how to solve the problem thoroughly.
Thank you very much.
yours
Jing
Attachments:
DIAdem_Error.doc 305 KB -
Runtime error while connecting from SAP to MS-SQL DB
Hi,
I am writing a program to send data from SAP to MS SQL DB.
The stored procedure when run alone works fine.
I have defined connection 'C04' in DBCO with correct attributes.
But the 'CONNECT TO C04' statement gives me runtime error DBIF_DSQL2_CONNECTERR saying that 'Connection to Database system with the identifier C04 is not possible;.
First of all, I am not very clear if it is a ABAP problem or BASIS problem.
I did a lot of research but could not find a solution.
Please help me.
Thanks & Regards,
Shubha.Hi shubha,
1. If your application server
is unix/aix,
then connection to MSSQL db
is not possible.
(Bcos both OS are different,
and the connector is not provided
by sap / not available)
2. After making an entry in DBCON Table,
probably something may be required to
be done on the application server,
by the basis team.
3. If this connection is required
to be made to oracle server,
then basis definitely requires
to make a connection string
on the application server
(apart from the dbcon entry)
regards,
amit m. -
Error in SQl Query - SQl Command not properly ended
Hi All
I have this SQL query that returns the following error when I run it in TOAD:
SELECT
VC.CAMPAIGN_NUMBER,VC.CAMPAIGN_TITLE,VC.CAMPAIGN_DESC,
VCV.START_DATE, VCV.END_DATE,VC.CAMPAIGN_TYPE,VC.APPLICABILITY,
VC.CAMPAIGN_PRIORITY
FROM
VM_CAMPAIGN_VIN VCV ,VM_CAMPAIGN VC
WHERE
VCV.VIN = 'US'
AND
VCV.CAMPAIGN_NUMBER = VC.CAMPAIGN_NUMBER AND VC.COUNTRY_CODE = 'E'
AND VC.LANGUAGE_CODE = 'L' AND VC.CAMPAIGN_TYPE = null
AND SYSDATE BETWEEN VCV.START_DATE AND VCV.END_DATE
AND SYSDATE BETWEEN VC.START_DATE AND VC.END_DATE)
A ORDER BY A.CAMPAIGN_PRIORITY DESC, A.END_DATE
The error is:
SQl Command not properly ended
Any help is highly appreciated. ThanksThanks a lot to everyone. It helped me run the query without any problem. Now I have another issue. This may not be the right place to post this question, I think.My apologies for that. The problem is, Weblogic posts an error as follows:
java.sql.SQLException: ORA-00923: FROM keyword not found where expected
I am wondering if this is an Java related error or an SQL related error.
Well, I am using the SQL Statement which you helped debug, and it is inside something called "XXSQLConstants.java consisting of the following SQL statement:
public static final String XX_ALL_CAMPS_SELECT = "SELECT * FROM" +
"(SELECT vc.campaign_number, vc.campaign_title, vc.campaign_desc, vc.start_date," +
"vc.end_date, vc.campaign_type, vc.applicability, vc.campaign_priority" +
"FROM vm_campaign vc" +
"WHERE vc.applicability = 'Y'" +
"AND vc.country_code = ? " +
"AND vc.language_code = ? " +
"AND vc.campaign_type = ? "+
"AND SYSDATE BETWEEN vc.start_date AND vc.end_date" +
"AND NOT EXISTS (" +
"SELECT 'X'" +
"FROM vm_campaign_vin vcv" +
"WHERE (vcv.vin = ? " +
"AND vcv.campaign_number = vc.campaign_number" +
"))" +
"UNION" +
"SELECT vc.campaign_number, vc.campaign_title, vc.campaign_desc," +
"vcv.start_date, vcv.end_date, vc.campaign_type, vc.applicability," +
"vc.campaign_priority" +
"FROM vm_campaign_vin vcv, vm_campaign vc" +
"WHERE vcv.vin = ? " +
"AND vcv.campaign_number = vc.campaign_number" +
"AND vc.country_code = ? " +
"AND vc.language_code = ? " +
"AND vc.campaign_type IS NULL" +
"AND SYSDATE BETWEEN vcv.start_date AND vcv.end_date" +
"AND SYSDATE BETWEEN vc.start_date AND vc.end_date)";
The SQl runs fine when tested (well, it does not return any data for the rows returned, but there are no errors), but in my application server I get the following error (pointing out the same SQL code pasted above:
java.sql.SQLException: ORA-00923: FROM keyword not found where expected
Any suggestions? Thanks in advance. I appreciate all replies -
Hi, omniscient all!
I have a code sample where I try to request some URL from an inactive server:
declare
l_text varchar2(32000);
begin
l_text := utl_http.request('http://inactive.url:7777');
exception
when others then
declare
l_errcode number := utl_http.get_detailed_sqlcode;
begin
dbms_output.put_line(l_errcode);
dbms_output.put_line(sqlerrm(l_errcode));
end;
end;
/When I run it in Oracle SQL Developer it shows:
anonymous block completed
-12541
ORA-12541: TNS:no listenerWhen I run it in the APEX 4.0 SQL Commands window it shows:
-29263
ORA-29263: HTTP protocol error
Statement processed.The question is: why?
In real world, I need to make a HTTP POST request (no problem) and catch some exceptions. But instead of the usual ORA-12541 error APEX throws an ORA-29261 one.Any thoughts?
-
SQL Command Error on Hosted environment
An error is occurring on the oracle hosted environment. I don't believe that it is a problem with my IE, but with my company's antivirus software. Is there some setting I should ask them to do? I am unable to run sql commands on the hosted environment.
Line: 241
Char: 7
Error: Automation server can't create object
Code:0
URL:http//htmldb.oracle.com/pls/otn/f?p=4500:1001Hi <please supply your name>,
SQL Developer Worksheet is not available from the command line.
The BRIDGE command is only supported in the Worksheet.
Its an interesting idea though. Are you trying to script data move from a non Oracle database to an Oracle database using the BRIDGE command?
The BRIDGE command was initially done to allow a simple data move from a non Oracle database to Oracle. We then build the "Copy to Oracle" feature out of it.
http://dermotoneill.blogspot.com/2010/11/cross-database-bridge-statement.html
http://dermotoneill.blogspot.com/2010/11/copy-to-oracle.html
Since the BRIDGE command references connection names, which have to be defined in UI of SQL Developer any solution to run this on the command line would have to work this out.
There are number of ways you can do this without using the BRIDGE command.
1) Perform a capture/convert of your non Oracle database and then generate the "offline" data move scripts.
Theses scripts use SQL*Loader and your non Oracle database tool (Ex: Sybase BCP).
These are run from the command line and can be modified ....
2) Use a database link from your Oracle database to your non Oracle database and reference /query the data that way.
I would interested to hear your thoughts.
Regards,
Dermot
SQL Developer Team. -
SQL Error [ORA-00933: SQL command not properly ended
I have following installed:
7.9.6 BI Apps
10.1.3.4 DAC
8.6.0 Informatica
Container JDE Enterprise 9.0
Out of 211 tasks 69 tasks executed successfully.
Error in workflow [SDE_JDE_PartyOrganisationDimension_Full].
I have checked the session log file and understand that there is error with the SQL statement.
Since it is Pre-built, the workflow should have run properly with correct SQl statement. But in this case it is not working.
Is it because the SQL statement is too long?
Any help will be greatly appreciated.
Part of the log file
RR_4035 : SQL Error [
ORA-00933: SQL command not properly ended
Database driver error...
Function Name : Execute
SQL Stmt : SELECT
F0101.ABAN8,F0101.ABALKY,F0101.ABTAX,F0101.ABALPH,F0101.ABMCU,F0101.ABSIC,F0101.ABAT1, F0101.ABTAXC, F0101.ABATP, F0101.ABATR,F0101.ABEFTB,F0101.ABAC01,
F0101.ABAC02, F0101.ABAC03, F0101.ABAC04, F0101.ABAC05, F0101.ABAC06, F0101.ABAC07, F0101.ABAC08, F0101.ABAC09, F0101.ABAC10, F0101.ABAC11,
F0101.ABAC12, F0101.ABAC13, F0101.ABAC14, F0101.ABAC15, F0101.ABAC16, F0101.ABAC17, F0101.ABAC18, F0101.ABAC19, F0101.ABAC20, F0101.ABAC21, F0101.ABAC22, F0101.ABAC23,
F0101.ABAC24, F0101.ABAC25, F0101.ABAC26, F0101.ABAC27, F0101.ABAC28, F0101.ABAC29, F0101.ABAC30,F0101.ABUSER, F0101.ABUPMJ,F0101.ABUPMT,F0101.ABTICKER, F0101.ABEXCHG, F0101.ABDUNS,
F0101.ABNOE,F0101.ABGROWTHR,F0101.ABYEARSTAR,F0101.ABREVRNG, D.FaxPhoneArea, d.Phonearea, D.Fax AS Fax ,D.Phone As Phone,D.WPUPMJ AS WPUPMJ,R.Email AS Email,R.Internet As Internet,R.EAupmj As EAUPMJ,F0111.WWAN8,F0111.WWIDLN,
F0111.WWSLNM,F0111.WWGNNM,F0111.WWMDNM,F0111.WWSRNM,F0111.WWUSER,F0111.WWUPMJ,F0111.WWUPMT,F0111.WWNTYP,F0111.WWNICK,F0111.WWPCM,F0116.ALAN8,
F0116.ALEFTB,F0116.ALADD1,F0116.ALADD2,F0116.ALADD3,F0116.ALADD4, F0116.ALADDZ, F0116.ALCTY1,F0116.ALADDS,F0116.ALCTR, F0116.ALUPMJ,F0116.ALUPMT,F03012.AIAN8, F03012.AICO,F03012.AIMCUR,F03012.AICRCD,F03012.AIACL,
F03012.AIARPY,F03012.AIDB,F03012.AICRCA,F03012.AIASTY,F03012.AISPYE,F03012.AIOPY,F03012.AIPOPN,F03012.AIDAOJ,F03012.AIAN8R,F03012.AICPGP,F03012.AIFRTH,
F03012.AIMAN8,F03012.AIUPMJ,F03012.AIUPMT, F03012.AICUSTS,F03012.AITERRID, F03012.AIDTEE, F0401.A6AN8, F0401.A6MCUP, F0401.A6CRRP,F0401.A6CRCA, F0401.A6AN8R,F0401.A6CPGP, F0401.A6FRTH, F0401.A6UPMJ,F0401.A6UPMT, CAST(F0101.ABAC03 AS CHAR(10)) AS FLEX_ATTRIB_1_CHAR,
CAST(F0101.ABAC23 AS CHAR(10)) AS FLEX_ATTRIB_2_CHAR,
CAST(F0101.ABAC05 AS CHAR(10)) AS FLEX_ATTRIB_3_CHAR,
CAST(F0101.ABAC15 AS CHAR(10)) AS FLEX_ATTRIB_4_CHAR,
CAST(F0101.ABAC09 AS CHAR(10)) AS FLEX_ATTRIB_5_CHAR,
CAST(F0101.ABAC11 AS CHAR(10)) AS FLEX_ATTRIB_6_CHAR,
CAST(F0101.ABAC19 AS CHAR(10)) AS FLEX_ATTRIB_7_CHAR,
CAST(F0101.ABAC21 AS CHAR(10)) AS FLEX_ATTRIB_8_CHAR,
CAST(F0101.ABAC27 AS CHAR(10)) AS FLEX_ATTRIB_9_CHAR,
CAST(NULL AS CHAR(10)) AS FLEX_ATTRIB_10_CHAR,
CAST(F0101.ABAC17 AS CHAR(10)) AS FLEX_ATTRIB_11_CHAR,
CAST(F0101.ABAC06 AS CHAR(10)) AS FLEX_ATTRIB_12_CHAR,
CAST(F0101.ABAC08 AS CHAR(10)) AS FLEX_ATTRIB_13_CHAR,
CAST(F0101.ABAC14 AS CHAR(10)) AS FLEX_ATTRIB_14_CHAR,
CAST(F0101.ABAC22 AS CHAR(10)) AS FLEX_ATTRIB_15_CHAR,
CAST(F0101.ABAC28 AS CHAR(10)) AS FLEX_ATTRIB_16_CHAR,
CAST(F0101.ABAC18 AS CHAR(10)) AS FLEX_ATTRIB_17_CHAR,
CAST(F0101.ABAC10 AS CHAR(10)) AS FLEX_ATTRIB_18_CHAR,
CAST(F0101.ABAC20 AS CHAR(10)) AS FLEX_ATTRIB_19_CHAR,
CAST(NULL AS CHAR(10)) AS FLEX_ATTRIB_20_CHAR,
CAST(F0101.ABAC30 AS CHAR(10)) AS LINE_OF_BUSINESS,
CAST(F0101.ABAC14 AS CHAR(10)) AS REGION,
CAST(NULL AS CHAR(10)) AS ACCNT_AHA_NUM,
CAST(F0101.ABAC07 AS CHAR(10)) AS ACCNT_CLASS,
CAST(F0101.ABAC11 AS CHAR(10)) AS ACCNT_HIN_NUM,
CAST(F0101.ABAC02 AS CHAR(10)) AS ACCNT_REGION,
CASt(F0101.ABAC08 AS CHAR(10)) AS ACCNT_VALUE,
CAST(F0101.ABAC16 AS CHAR(10)) AS CUST_CAT_CODE, '0' AS X_CUSTOM
from F0101
INNER JOIN F03012 ON F0101.ABAN8 = F03012.AIAN8
LEFT OUTER JOIN F0401 ON F0101.ABAN8 = F0401.A6AN8
LEFT OUTER JOIN F0116 ON F0101.ABAN8 = F0116.ALAN8 AND F0101.ABEFTB = F0116.ALEFTB
LEFT OUTER JOIN F0111 ON F0101.ABAN8 = F0111.WWAN8 AND F0111.WWIDLN =
LEFT OUTER JOIN (select a.WPAN8 as an8,
min(case when a.WPPHTP= and a.WPRCK7=b.MinWPRCK7 then WPAR1 end) FaxPhoneArea,
min(case when a.WPPHTP= and a.WPRCK7=b.MinWPRCK7 then WPPH1 end) Fax,
min(case when a.WPPHTP= and a.WPRCK7=b.MinWPRCK7 then WPPH1 end) Phone,
min(case when a.WPPHTP= and a.WPRCK7=b.MinWPRCK7 then WPAR1 end) Phonearea,
max(wpupmj) as WPUPMJ
from F0115 a,
(select WPAN8,WPPHTP ,min(WPRCK7) MinWPRCK7 from F0115
group by WPAN8,WPPHTP
) b
where a.WPAN8=b.WPAN8 and a.wpidln =0
group by a.WPAN8)D on f0101.aban8 = D.an8
LEFT OUTER JOIN (SELECT P.EAAN8 as an8,
min(case when P.EAETP= and P.EARCK7=Q.MinRCK7E then EAEMAL end) Email,
min(case when P.EAETP= and P.EARCK7=Q.MinRCK7E then EAEMAL end) Internet,Max(eaupmj) as EAupmj
FROM F01151 P,
(SELECT EAAN8,EAETP,MIN(EARCK7) MinRck7E from f01151
group by eaan8,eaemal,eaetp)Q
where
P.EAAN8 = Q.EAAN8 and P.EAIDLN =
GROUP BY P.EAAN8)R on f0101.aban8 = R.an8
union
SELECT
F0101.ABAN8,F0101.ABALKY,F0101.ABTAX,F0101.ABALPH,F0101.ABMCU,F0101.ABSIC,F0101.ABAT1, F0101.ABTAXC, F0101.ABATP, F0101.ABATR,F0101.ABEFTB,F0101.ABAC01,
F0101.ABAC02, F0101.ABAC03, F0101.ABAC04, F0101.ABAC05, F0101.ABAC06, F0101.ABAC07, F0101.ABAC08, F0101.ABAC09, F0101.ABAC10, F0101.ABAC11,
F0101.ABAC12, F0101.ABAC13, F0101.ABAC14, F0101.ABAC15, F0101.ABAC16, F0101.ABAC17, F0101.ABAC18, F0101.ABAC19, F0101.ABAC20, F0101.ABAC21, F0101.ABAC22, F0101.ABAC23,
F0101.ABAC24, F0101.ABAC25, F0101.ABAC26, F0101.ABAC27, F0101.ABAC28, F0101.ABAC29, F0101.ABAC30,F0101.ABUSER, F0101.ABUPMJ,F0101.ABUPMT,F0101.ABTICKER, F0101.ABEXCHG, F0101.ABDUNS,
F0101.ABNOE,F0101.ABGROWTHR,F0101.ABYEARSTAR,F0101.ABREVRNG, D.FaxPhoneArea, d.Phonearea, D.Fax AS Fax ,D.Phone As Phone,D.WPUPMJ AS WPUPMJ,R.Email AS Email,R.Internet As Internet,R.EAupmj As EAUPMJ,F0111.WWAN8,F0111.WWIDLN,
F0111.WWSLNM,F0111.WWGNNM,F0111.WWMDNM,F0111.WWSRNM,F0111.WWUSER,F0111.WWUPMJ,F0111.WWUPMT,F0111.WWNTYP,F0111.WWNICK,F0111.WWPCM,F0116.ALAN8,
F0116.ALEFTB,F0116.ALADD1,F0116.ALADD2,F0116.ALADD3,F0116.ALADD4, F0116.ALADDZ, F0116.ALCTY1,F0116.ALADDS,F0116.ALCTR, F0116.ALUPMJ,F0116.ALUPMT,F03012.AIAN8, F03012.AICO,F03012.AIMCUR,F03012.AICRCD,F03012.AIACL,
F03012.AIARPY,F03012.AIDB,F03012.AICRCA,F03012.AIASTY,F03012.AISPYE,F03012.AIOPY,F03012.AIPOPN,F03012.AIDAOJ,F03012.AIAN8R,F03012.AICPGP,F03012.AIFRTH,
F03012.AIMAN8,F03012.AIUPMJ,F03012.AIUPMT, F03012.AICUSTS,F03012.AITERRID, F03012.AIDTEE, F0401.A6AN8, F0401.A6MCUP, F0401.A6CRRP,F0401.A6CRCA, F0401.A6AN8R,F0401.A6CPGP, F0401.A6FRTH, F0401.A6UPMJ,F0401.A6UPMT, CAST(F0101.ABAC03 AS CHAR(10)) AS FLEX_ATTRIB_1_CHAR,
CAST(F0101.ABAC23 AS CHAR(10)) AS FLEX_ATTRIB_2_CHAR,
CAST(F0101.ABAC05 AS CHAR(10)) AS FLEX_ATTRIB_3_CHAR,
CAST(F0101.ABAC15 AS CHAR(10)) AS FLEX_ATTRIB_4_CHAR,
CAST(F0101.ABAC09 AS CHAR(10)) AS FLEX_ATTRIB_5_CHAR,
CAST(F0101.ABAC11 AS CHAR(10)) AS FLEX_ATTRIB_6_CHAR,
CAST(F0101.ABAC19 AS CHAR(10)) AS FLEX_ATTRIB_7_CHAR,
CAST(F0101.ABAC21 AS CHAR(10)) AS FLEX_ATTRIB_8_CHAR,
CAST(F0101.ABAC27 AS CHAR(10)) AS FLEX_ATTRIB_9_CHAR,
CAST(NULL AS CHAR(10)) AS FLEX_ATTRIB_10_CHAR,
CAST(F0101.ABAC17 AS CHAR(10)) AS FLEX_ATTRIB_11_CHAR,
CAST(F0101.ABAC06 AS CHAR(10)) AS FLEX_ATTRIB_12_CHAR,
CAST(F0101.ABAC08 AS CHAR(10)) AS FLEX_ATTRIB_13_CHAR,
CAST(F0101.ABAC14 AS CHAR(10)) AS FLEX_ATTRIB_14_CHAR,
CAST(F0101.ABAC22 AS CHAR(10)) AS FLEX_ATTRIB_15_CHAR,
CAST(F0101.ABAC28 AS CHAR(10)) AS FLEX_ATTRIB_16_CHAR,
CAST(F0101.ABAC18 AS CHAR(10)) AS FLEX_ATTRIB_17_CHAR,
CAST(F0101.ABAC10 AS CHAR(10)) AS FLEX_ATTRIB_18_CHAR,
CAST(F0101.ABAC20 AS CHAR(10)) AS FLEX_ATTRIB_19_CHAR,
CAST(NULL AS CHAR(10)) AS FLEX_ATTRIB_20_CHAR,
CAST(F0101.ABAC30 AS CHAR(10)) AS LINE_OF_BUSINESS,
CAST(F0101.ABAC14 AS CHAR(10)) AS REGION,
CAST(NULL AS CHAR(10)) AS ACCNT_AHA_NUM,
CAST(F0101.ABAC07 AS CHAR(10)) AS ACCNT_CLASS,
CAST(F0101.ABAC11 AS CHAR(10)) AS ACCNT_HIN_NUM,
CAST(F0101.ABAC02 AS CHAR(10)) AS ACCNT_REGION,
CASt(F0101.ABAC08 AS CHAR(10)) AS ACCNT_VALUE,
CAST(F0101.ABAC16 AS CHAR(10)) AS CUST_CAT_CODE, '0' AS X_CUSTOM
from F0101
LEFT OUTER JOIN F03012 ON F0101.ABAN8 = F03012.AIAN8
INNER JOIN F0401 ON F0101.ABAN8 = F0401.A6AN8
LEFT OUTER JOIN F0116 ON F0101.ABAN8 = F0116.ALAN8 AND F0101.ABEFTB = F0116.ALEFTB
LEFT OUTER JOIN F0111 ON F0101.ABAN8 = F0111.WWAN8 AND F0111.WWIDLN =
LEFT OUTER JOIN (select a.WPAN8 as an8,
min(case when a.WPPHTP= and a.WPRCK7=b.MinWPRCK7 then WPAR1 end) FaxPhoneArea,
min(case when a.WPPHTP= and a.WPRCK7=b.MinWPRCK7 then WPPH1 end) Fax,
min(case when a.WPPHTP= and a.WPRCK7=b.MinWPRCK7 then WPPH1 end) Phone,
min(case when a.WPPHTP= and a.WPRCK7=b.MinWPRCK7 then WPAR1 end) Phonearea,
max(wpupmj) as WPUPMJ
from F0115 a,
(select WPAN8,WPPHTP ,min(WPRCK7) MinWPRCK7 from F0115
group by WPAN8,WPPHTP
) b
where a.WPAN8=b.WPAN8 and a.wpidln =0
group by a.WPAN8)D on f0101.aban8 = D.an8
LEFT OUTER JOIN (SELECT P.EAAN8 as an8,
min(case when P.EAETP= and P.EARCK7=Q.MinRCK7E then EAEMAL end) Email,
min(case when P.EAETP= and P.EARCK7=Q.MinRCK7E then EAEMAL end) Internet,Max(eaupmj) as EAupmj
FROM F01151 P,
(SELECT EAAN8,EAETP,MIN(EARCK7) MinRck7E from f01151
group by eaan8,eaemal,eaetp)Q
where
P.EAAN8 = Q.EAAN8 and P.EAIDLN =
GROUP BY P.EAAN8)R on f0101.aban8 = R.an8
Oracle Fatal Error
Database driver error...
Function Name : Execute
*****************************************************"ORA-00933: SQL command not properly ended"
this error may be seen due to reasons like the Informatica properties are not set correct.
Are all the informatica properties set correct? how many ETL jobs completed, what analytic apps are in the ETL process? -
SQL2005 cluster error MDB-05053 Errors when executing sql command: p nr="
Hi all,
We are migrating from 32 bit to x64 bit machines. SQL 2005 database on windows 2003.
I am trying to install E 4.7-200 SR1 on the clustered nodes. The installation manuals for 4.7 are very old and there is nothing for SQL2005 installation.
Now that some how we were able to have SQL up and running in clustered environment (It only took 10 days), After installing CI, I am not able to deploy the database and database creation phase is failing with the following error:
MDB-05053 Errors when executing sql command: <p nr="0"/>.
I am heavily relying on our server managment team on clustering and hoping they have done a good job, However I need some guidelines which can help me in verifying what they have done is correct and meets SAP and SQL requirments and issues we are facing is actually install problems not cluster.
SAP install manuals are not detailed in this regards. Also manuals are out dataed and they only show the sql 2000 clustering pre-requisit for 4.7 installls.
Can any one with clustering experience please help.
Calling out NPC, As his sql installation and upgrade manual has helped me with stand alone installs, Hoping he has some thing for clustering as well.
Regards,
KGHi,
What installation CD/DVD are you using?
Try look at SAP note [924288|https://service.sap.com/sap/support/notes/924288],
and note [969699|https://service.sap.com/sap/support/notes/969699],
and note [967124|https://service.sap.com/sap/support/notes/967124],
and note [106275|https://service.sap.com/sap/support/notes/106275].
In special the last note say at the end:
"3. You must use the 51031444 CD to install Enterprise 4.7 on an x64 platform with SQL Server 2005. This CD installs the central instances and database instances. To convert the A and B nodes in MSCS, use the SAP NetWeaver 04 SR1 installation master CD or DVD."
Hope this helps
Regards
Rolf
Maybe you are looking for
-
DID YOU KNOW ?? - Number Converters?
Hi All, DID YOU KNOW?? That the Creator IDE provides a set of converters that you can use to convert component data. If your input field is for numbers, then you most likely need a converter. Converters are also good for formatting dates, times, and
-
Input a string and assign to a variable in the console window
i'm absolutely and completely new to java i need to be able to input a string and then assign it to a variable, entirely using the console window, basically i'm looking for the Java alternative to C++'s "cin" i've tried the System.in. method but noth
-
Hi , Our users are printing a chq which is working fine in DEV but in production it is picking up the wrong amount.I have simualted the issue in DEV by creating a vendor invoice( PK 40,35 )...Do I have to try with different vendor invoices...We d
-
Using Flex with Microsoft Project
I am absolutely brand new to FLEX. What I saw on the Adobe site was a data chart that could be drilled down to expose additional layers of "contriburory detail" for the master graph. What I am wondering is if it is possible to do something similar us
-
How can I get a phone number that I dialed a week ago?
I dialed a number last week and I need to get it back. How do I do that?