Can sql statement be passed as input to Database Adapter?
Hi,
We have requirement to execute the sql statements using database adapter.
Pls let me know if it is feasible in BPEL using partnerlink copy operation of assign activity like we do for setting JNDI name dynamically.
Thanks ,
Dhanumjay
Oracle Enterprise Manager provide Change Management capabilities, we do not at this stage plan to provide this capability within SQL Developer.
See here [http://www.oracle.com/technology/products/oracle9i/datasheets/oem_change_management/9iR2_DS_EMCMPck.html] for more on Change Management within OEM.
Regards
Sue
Similar Messages
-
Find all the sql statements that are executed in a database
Hi
I would like to get all the sql statements that have been executed till now on the database. Also, i need the session and user details who has executed the statement.
I know this can be done after enabling auditing.
I would like to get the details without enabling the auditing option.
I am using oracle 9i and oracle 10g.
Regards,
VamsiYou can use {noformat}{noformat} tags to preserve the SQL format. Below is an example of how to use it.
<place your code here>\When your do that your code may look like this.select
substr(sid || ',' || serial#,0,15) sid,
USERNAME,
PROGRAM,
MACHINE,
OSUSER,
TERMINAL,
sql_text Query
from
v$sqltext,
v$session
where
address=sql_address
and hash_value=sql_hash_value
and status='ACTIVE'
order by LOGON_TIME,sid,piece
This one is more readable to everyone. -
Sql statement for network version of JavaDB database
Hi,
Could somebody please tell is it a must to have double quote for field name inside the SQL statement for JavaDB
I am developing the project using netbean 5.5.1 IDE
integrating netwok version of JavaDB.
example
select "field1","field2" from table1
instead of the simple sql like
select field1,field2 from table1
I find that simple select sql query could not work without having the double quotation eclosed for any of the fieldname called by the SQL statement.
I am not sure is it only unique to netbeans IDE environment , in principle simple plain query should work , this is however not for netbeans IDE, wht is the reason behind?
ThanksThe Quotes around the fieldnames are normally only needed if the field is the same as a reserved word, or has a non-standard character in the field. Look at the JavaDB/Derby manual (specifically the one with the SQL reference) to find out what the reserved words and special characters are, then redefine your table.
-
Can we split and fetch the records in Database Adapter
Hi,
I designed a Database Adapter to fetch the records from oracle Database. Some time, the Database Adapter need to fetch around 5000, or 10,000 records in single shot. In that case my BPEL process is choking and getting error as
java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:2882) at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100)
Could someone help me to resolve this?
In Database Adapter can we split and fetch the records, if number of records more then 1000.
ex. First 100 rec as one set and next 100 as 2nd set like this.
Thank you.You can send the records as batches useing the debatching feature of db adapter. Refer documentation for implementation details.
-
Can SQL Developer connect to ANY third party database
As of my investigations, SQL Developer can currently connect only to Oracle, MSSQL, MySQL and Access.
What about connecting to any database using JDBC? Is this possible / planned? I'm currently interested in PostgreSQL.
Thanks, ViliamIn the next release users will be able to connect to Sybase. We do have plans to extend to further third-party databases, but this is not scheduled for the short term. Are you looking for a migration solution? The Migration Technology center has a lot of detail and support we provide for third party database support. http://www.oracle.com/technology/tech/migration/index.html
Regards
Sue -
SQL Statement - Reading Input Field
I have a simple SQL statement which takes an input value and searches for it in the database. I am wondering what is the syntax in Visual Composer to pass the input value using a form to the SQL statement. In other words how can I read the value of the search field of the input form in the SQL Query.
Example: select * from Table WHERE Description LIKE <b><Search Term></b>
I would like to know the syntax to read the Search term from the input form.
Any help will be greatly appreciated.In the current version of VC input fields are available only for dataservices based on relational templates in BI Query Wizard(Not created in the SQL editor).
You can select "All data" template for a single table or "Freeform" if you would like to do something more complex and provide a filter via input field.
Best regards,
Natalia -
Who to use Native SQL statements in ABAP
hi all,
who to use native sql staements in abap bypassing Application server.
with regards,
suresh babu aluri.Hi
Native SQL statements define an area in an ABAP program in which one or more Native SQL statements are to be carried out. The area between EXEC and ENDEXEC is not completely checked by the syntax check. The statements entered there are passed to the Native SQL interface and processed there as follows:
Almost all SQL statements that are valid for the addressed database system can be included between EXEC and ENDEXEC, in particular the DDL statements. These SQL statements are passed from the Native SQL interface to the database system largely unchanged. The syntax rules are specified by the database system, in particular the case sensitivity rules for database objects. If the syntax allows a separator character between individual statements, you can include several Native SQL statements between EXEC and ENDEXEC. Generally, the semicolon ( is used as the separator character.
You can also include SAP-specific Native SQL language elements between EXEC and ENDEXEC. These statements are not passed directly from the Native SQL interface to the database, but are converted appropriately.
All Native SQL statements bypass SAP buffering.
The ENDEXEC statement sets sy-dbcnt to the number of table rows processed in the last Native SQL statement. After implicit cursor processing with PERFORMING, sy-dbcnt contains the total number of lines read.
Programs with Native SQL statements are generally dependent on the database system used, so that they cannot be executed in all ABAP systems. This is especially true for the examples in this section, which was written for Informix database systems.
Example
Inserting two rows in the database table SCARR. If neither of these rows exists, sy-subrc is set to 0 by ENDEXEC and sy-dbcnt to 1. Otherwise, an exception is raised and handled.
DATA: exc_ref TYPE REF TO cx_sy_native_sql_error,
error_text TYPE string.
TRY.
EXEC SQL.
INSERT INTO scarr
(MANDT, CARRID, CARRNAME, CURRCODE, URL)
VALUES ('000', 'FF', 'Funny Flyers', 'EUR',
'http://www.ff.com');
INSERT INTO scarr
(MANDT, CARRID, CARRNAME, CURRCODE, URL)
VALUES ('000', 'EF', 'Easy Flyers', 'EUR',
'http://www.ef.com');
ENDEXEC.
CATCH cx_sy_native_sql_error INTO exc_ref.
error_text = exc_ref->get_text( ).
MESSAGE error_text TYPE 'I'.
ENDTRY.
Reward points if useful
Regards
Anji -
Update SQL statement in JDBC sender (system fields)
All,
Is it possible to update more than 1 field via the update sql statement ?
Also, is it possible to use system fields ?
Something like this
UPDATE database.table SET processed='Y', date = sy-datum
Regards, MichelHi
use sysdate as suggested above
Check your generated SQL query format is correct
At runtime you can find the genereated sql statements by doing configuraitons in Receiver JDBC adapter.
In the JDBC Receiver adapter you have the Advanced Properties .
Over there enter the following
left column logSQLStatement
right column true
To see the query created ..
Login to adapter monitoring ..select the relevant jdbc adapter.
Now when any message is processed by the jdbc adapter in adapter monitoring at that time you will see a message link. When you click on that link a new window will open. In that window if you click on page down you will get to see the sql statement generated by the jdbc adapter. -
Hi all,
how can I see the SQL Statement which is made by the JDBC Adapter.
I have createt the XML Structure, but I want to know how PI (7.11) transformed the XML to SQL.
How can I trace the JDBC Adapter? Which configuration is neccessary? Where can I find the trace?
Thanks very much for your help!
JürgenHi,
this is my Auditlog
Audit-Protokoll für Message: caded0e4-b287-1def-92a9-907432c01001
Zeitstempel Typ Beschreibung
2010-04-16 13:38:02 Information The message was successfully received by the messaging system. Protocol: XI URL: http://serv3709:52800/MessagingSystem/receive/AFW/XI Credential (User): PIISUSER
2010-04-16 13:38:02 Information Using connection JDBC_http://sap.com/xi/XI/System. Trying to put the message into the request queue.
2010-04-16 13:38:02 Information Message successfully put into the queue.
2010-04-16 13:38:02 Information The message was successfully retrieved from the request queue.
2010-04-16 13:38:02 Information The message status was set to DLNG.
2010-04-16 13:38:02 Information Delivering to channel: test_etl
2010-04-16 13:38:02 Information JDBC Adapter Receiver processing started, required QoS BestEffort
2010-04-16 13:38:02 Information JDBC Adapter Receiver Channel test_etl: processing started; party / service E_DWH.
2010-04-16 13:38:02 Information IS_RUN.MAP_SYS_LADELAUF_START.MAIN
2010-04-16 13:38:02 Information Database request processed successfully.
2010-04-16 13:38:02 Information The message was successfully delivered to the application using connection JDBC_http://sap.com/xi/XI/System.
2010-04-16 13:38:02 Information The message status was set to DLVD. -
ORA-01555 caused by SQL statement below on production
Hi
i got ORA-01555 caused by SQL statement below on my prodution adn database undo_retention = 18000 what can i do my database performance is going down pls tail me what i do .
Regards
Digvijay1) I don't see a SQL statement here
3) How did you determine that UNDO_RETENTION of 18000 was appropriate?
4) How much UNDO is your system generating?
6) Do you believe this is related to your performance problems? If so, why do you believe that?
At the risk of stating the obvious... You've told Oracle to try to maintain UNDO for 18,000 seconds (5 hours). You have a query that runs for roughly 6.25 hours. If, after running for 6.25 hours, that query needs a block that was modified, say, 6 hours ago, it may not find it because you've told Oracle you don't need it any longer.
Your UNDO_RETENTION needs to be greater than the longest-running query you expect to run. You can bump up UNDO_RETENTION if you'd like. However, I tend to believe that a query that died after 6.25 hours is probably a query that is in desparate need of tuning. If you reduce the query runtime to something less than 5 hours, you could keep UNDO_RETENTION at the current setting.
Justin -
EarlyWatch - Expensive SQL Statements help
Hi all,
i need to analyze an EWA report and i don't know how exactly can i identify an "expensive SQL statement".
The report says:
During this session, the following expensive SQL statements were identified as causing a database load of at least 1%.
The corresponding stored procedure names are referenced in the table below.
And in the table with stored procedure names, a row looks like this:
ID Stored Procedure Name
1 ##Y4DCWWES7EHY100000053960000254832042037
What does it mean and how can i identify the name of program and the exact statement (probably select) that is causing this problem?
Thank you,
OndrejHi Ondrej,
you're running on SQL Server. SAP creates stored procedures for each and every statement run against the database. The name you get seems to be a temporary stored procedure which (if I'm not wrong) is marked by the two # characters at the beginning. You may be still find it in the stored procedures of your system.
Open the Enterprise Manager and open your database, then the stored procedure link (you should run the Enterprise Manager on the server or on a PC with enough RAM). The search for the procedure and double click on it. I think that should show you the SQL statement. There should also the report name is a comment.
Regards
Ralph -
View the reports sql statement before execution
Hi
I am developing reports with dynamic sql statements.
How can I view the complete reports sql statement which is sent to the database?
Thanks
JuergYou can turn on the trace functionality. That will display the actual SQL statements sent to the database in the trace file.
-
Hi,
Is it possible to trace all the SQL's into one trace file or any other alternative to capture all the SQL statements.1. Export will take some time or a long time to run.
You will have to either
a. Use CONSISTENT=Y (and hope that you are able to get a consistent export)
b. Stop Transactions for the duration.
In option a. if you do allow transactions those transactions will appear neither in the Export NOR in the "trace file" that you will be generating later !! You WILL lose transactions.
2. There's no way to get a "trace file" to capture all SQL statements and bind values across multiple database sessions such that they are properly synchronised in time.
a. You can't get a trace file that you can simply run to reapply transactions.
b. You can't sequence transactions from multiple sessions running concurrently.
3. How fast do you REALLY think you will be able to apply that "trace file" (which, in any case, you CANNOT generate) ? It will take noticeable to considerable time.
4. How do you propose to transfer the Export dump to the remote location ? When you have no network connectivity ? Via tapes, transfered by courier ? Then why can't you transfer a Database Hot Backup and ArchiveLogs via tapes, transferred by courier ?
Hemant K Chitale
http://hemantoracledba.blogspot.com -
Returning sql statement instead of values from database
hi am reading value from database but my problem is am get sql statement values instead of values in database
my code is
java:337)There is no doubt: you get what you want:
return s_getValue;
bye
TPD -
Update sql statement in sender/receiver jdbc adapter
Hi
What is the update sql statement we give in the sender/ receiver adapter when
1) SELECT statement was written in query sql statement
2) EXECUTE statement was written for a stored procedure in query sql statement
thanks
Anitha> 1) SELECT statement was written in query sql statement
your table should have some value "already_processed" which prevents a second processing of that table.
the update statement sets that value.
> 2) EXECUTE statement was written for a stored procedure in query sql statement
the same as above.
when your stored procedure already does the update, then write a second stored procedure which does nothing.
Maybe you are looking for
-
Error in pricing when doing sourcing in EBP 4.0
Hello, We're experiencing random errors when doing sourcing in EBP 4.0. The shopping carts don't seem to have any similarities that could launch the error. There has been few cases when the same error has occured when user is creating a shopping cart
-
Random Shutdown in 2010 for a 2006 Macbook
Hello- I have a 2006 Macbook 1.83 GHz processor and I never had the whole random shutdown problem previously... it burned through batteries like nothing and I was about to install my third hard drive, but no random shutdown problems. Well, now I have
-
Unrestrected use stock to quality inspection stock
Hi, plz tell me how can transfer Unrestrected use stock to quality inspection stock for same material and same palnt
-
How to manage two editable checkboxes in ALV class
Hi all, I need to make two checkboxes fields appear only in some rows and I found this link: ALV one cell as checkbox based on some conditions but it's not completely what I need, because I have to make the second checkbox editable only when the fir
-
COBRAS Import failing to restore Notification Devices
e are migrating from Unity 5.0.1 to CUC 8.6.2.23900-10 We are using the latest version of COBRAS... When we try to import, everything succeeds except all of the notification devices. We get the following error: [Thread 001], [14/01/02 05:16:03], (err