Execute sql custom with DB adater question
Hi allProblems with my custom in my jdeveloper, sql
It's my custom sql:
Select * from A table1, table2 B WHERE A.id = B.id AND A.id = #id
Its not to return the complete set of data, its only 1column return value and yet I stipulated *.
Any ideas why this happens?
Thank you
K
Hello. Out of the blue suggestion: make a select qualified, including aliases for tables. For example, select A.id, A.col2, A.col3, B.id, B.col2, B.col3. I hope this helps.
Tags: Fusion Middleware
Similar Questions
-
Dear Experts,
I need a clarification. Is it possible to use the fn - bea: function execute sql (Oracle Service Bus) to perform an insert operation in a database with the data extracted from the message of the Organization (i.e. $body/Info/username)? If it is possible which is the right syntax?
Any suggestion is appreciated.
Kind regards
Mike
Published by: ITDeveloper on November 19, 2009 2.55
Published by: ITDeveloper on November 19, 2009 3.01Hi Mike,.
Please refer to my post for the same question to the fn - bea: sql performance with 'Insert INTO' the sql statement
Thank you best regards &,.
Vivek
-
Information on how to execute SQL on the CUCM himself queries please
Hello all,.
I need to run a SQL on the CUCM enumerate all directory numbers, their score and their external mask values.
I came across this snippet below earlier so I have a bit of an idea of how do but iw would be great to see some other examples of sql queries.
Any help is most appreciated.
Also, is there a document somewhere to tell me how to run these queries?
Thanks in advance
Concerning
Amanda
*******************************************************************************************************************************************************************************
Currently being moderated
04/05/2011 05:18 (in response to Joshua Royle)
Re: Y at - it a way to pull a CM report showing all phones with of turn on?
Helps you try if this the CLI SQL query execution, it must list all DN with CFA allowed the VM or a DN:
run sql select dnorpattern, cfadestination, cfavoicemailenabled CallForwardDynamic c, numplan n where c.fknumplan = n.pkid and (cfadestination! = "or cfavoicemailenabled 't =')
Hi Amanda
Basically, this is standard SQL, so that he would not bad at google 'informix instructions' select and do a bit of reading to get the basics. There are millions of permutations of requests so it comes to understand the syntax and then only by applying to the database in question. The only difference when running the commands in the CLI are:
-Precede you the standard informix with "execute sql" SQL statement
-You get no help from CUCM with syntax, so you might be well advised to use something which includes SQL a bit and he colorized you type, and then paste the commands resulting in the CUCM SSH window. I use an editor called JEdit, if you create a text file and save it as a file ending with .sql, it will highlight your syntax.
-Other programs are available that make reasonable syntactic (EQ SquirrelSQL) that are designed to query the DB directly, but you can't really query directly against the DB for security reasons. You will still need to copy and paste commands.
Now... to understand the DB you will need a reference describing all the tables, etc.. Here it is:
http://www.Cisco.com/en/us/products/SW/voicesw/ps556/products_programming_reference_guides_list.html
Choose your version of CUCM and download the document 'data definition '.
Some notes on the order:
run sql: is just the CLI command which tells the shell to perform the following as SQL.
Select: the SQL command to recover data
dnorpattern, cfadestination, cfavoicemailenabled: column names to retrieve
callforwarddynamic c, numplan n: the names of the two tables and abbreviations that you want to refer to them as
where c.fknumplan = n.pkid: This tells SQL to return values in the two tables where these fields match. In the data definition, you will see notes that c.fknumplan (i.e. the column fknumplan in table callforwarddynamic, as indicated by the prefix c.) refers to the PKID column in the area of the numplan. It is a type of join in the very standard DB CCM.
and ("cfadestination! =" or cfavoicemailenabled = "t"): another clause, fundamentally in this application that we want to see only the rows where cfadestination is not empty or cfavoicefmailenabled has the value 't' for real).
Most of the tables are related in two ways in this database:
-a column "fk" prefix refers to the field of pkid (there is always only one field per table pkid) in the table following the prefix "fk". For example above fknumplan refers to the numplan, pkid field table. fkdevice refers to the machine table, pkid field.
-a prefiex of 'traditional knowledge' column usually refers to a table enum which is preceded by 'type '. It is a table that maps the numerical value in the field of 'traditional knowledge' into a string. An example would be tkmodel - it is the type of physical phone (e.g. as 7962) and mapped as the column and a table called typemodel model 'enum' in the table.
Concerning
Please note the useful messages...
-
Several SQL statements with zero executions in the region of SQL
Hello
one of my databases has a large number of statements in the SQL box with zero executions. Some of them analyzed several times without a single run. Why the database stores these statements and how to avoid or reduce them?
My problem is that the only time or zero time sql statements take the largest part of the area of sql:
-sql statement and only once and without executing sql statements
Select
Count (1) num_sql_total,.
sum (decode (executions, 1, 1, 0)) num_one_use_sql,.
sum (decode (executions, 0, 1, 0)) num_no_use_sql,.
Sum (RUNTIME_MEM) / 1024/1024 mb_used,.
sum (decode (executions, sharable_mem, 1, 0)) / 1024/1024 mb_for_one_use_sql,.
sum (decode (executions, 0, sharable_mem, 0)) / 1024/1024 mb_for_no_use_sql
Of
GV$ sqlarea
where
RUNTIME_MEM > 0;
NUM_SQL_TOTAL NUM_ONE_USE_SQL NUM_NO_USE_SQL MB_USED MB_FOR_ONE_USE_SQL MB_FOR_NO_USE_SQL 23318
8739
8027
1420,95619106293
381,41183757782
530,999855041504
Concerning
Thomas
This is not unusual. Another app could analyze for example hard the most often used SQLs in upstairs app - making benefit of further processing (in theory) of sweet analysis when you use these SQLs.
In fact, I remember reading something to this effect as a performance for some factor or another Oracle document or note?
So unless you have serious questions of shared pool, why bother with these sliders? What would be the problem?
-
Get the "selected lines" value after sql custom query in the database adapter
We execute a custom query in a database adapter. With other technologies (JDBC, etc.) the result of a query produces not only a game but the number of lines selected results. For example, the output of the script of Oracle SQL Developer will display something like:
9999 selected lines
at the end of the output of the script.
I would like to obtain this value for a BPEL process. Of course, I could run a 2nd interview whose where clause is identical to the first, but select count (*) instead. However, it is not only ineffective but (in rare circumstances in an active database) could be the problem.
It is not obvious to the novice BPEL how to get the selected value and the result set row in an Invoke. Is this possible?Maybe it's not the only solution - but this is how I did in the past.
After step to invoke the adapter, use a step of the having-right/copy to fill a variable of integer type BPEL using the xpath count function...
That should affect the number of records returned by the query.
I hope this helps.
Rod.
Published by: Tunnels of Rod on December 15, 2009 13:16
-
How to make the output of Sql Plus with an error Code
Dear members,
How can I define sql more exit with an error code.
We have a simultaneous host program. The executable is a shell script for this program. This sql script Shell script request which in turn gives call to a custom database package that I built.
The flow rate is:
-> SQL-> CUSTOM PACKAGE SCRIPT SHELL SCRIPT
Custom package has two PARAMETERS of the error indicator and the error message. If something fails in the package these two PARAMETERS is returned with a value.
So my sql script code looks like this:
WHENEVER SQLERROR EXIT 251
WHEN the OSERROR EXIT 251
Set serveroutput size 1000000
set linesize 32767
set verify off
set the position
Set feedback off
DECLARE
x_error_message VARCHAR2 (1000);
x_sql_message VARCHAR2 (1000);
x_exception EXCEPTION;
e_value NUMBER;
BEGIN
dbms_output.put_line ('Inside sql file');
XXpackage.xxproc (x_error_message, x_sql_message);
IF (x_error_message IS NOT NULL) AND (x_sql_message IS NOT NULL) THEN
RAISE x_exception;
END IF;
EXCEPTION
WHEN X_EXCEPTION THEN
e_value: = 1;
DBMS_OUTPUT. Put_line (' Exit Code: ' | e_value);
DBMS_OUTPUT. Put_line ('X_EXCEPTION: EXCEPTION IN SCRIPT xpoext04a.sql :'||) SQLERRM);
DBMS_OUTPUT. Put_line ('x_error_message is: ' | x_error_message);
DBMS_OUTPUT. Put_line ('x_sql_message is: ' | x_sql_message);
DBMS_OUTPUT. PUT_LINE (' ERROR IS: ' |) SQLERRM);
WHILE OTHERS THEN
e_value: = 252;
DBMS_OUTPUT. Put_line (' Exit Code: ' | e_value);
DBMS_OUTPUT. Put_line (' OTHER: EXCEPTION IN SCRIPT xpoext04a.sql :'||) SQLERRM);
DBMS_OUTPUT. Put_line ('x_error_message is: ' | x_error_message);
DBMS_OUTPUT. Put_line ('x_sql_message is: ' | x_sql_message);
DBMS_OUTPUT. PUT_LINE (' ERROR IS: ' |) SQLERRM);
END;
*/*
output
*/*
As you can see from above, if the two PARAMETERS have value, then it goes to an exception.
My problem is that if it goes with the exception of X_EXCEPTION, the sql is not come away with a mistake. I mean sql is not treat this case like a sqlerror.
How can do us more sql dating a sqlerror so that the host program must fail.
Thank you
Sandeep
Published by: user340 on July 28, 2009 12:51
Published by: user340 on July 28, 2009 12:57the plu sql is not come away with a mistake. I mean sql is not treat this case like a sqlerror.
This is because there is no error. You handled the exception.
You can try adding a STIMULUS; at the end of your exception section. This re-triggers the exception so sql liked to see it.
-
Hi all
Hoping someone can provide some tips. I need to export all the records 'date' with dateb cdr'.
To do this, I started by ssh'ing in the pub and make a ' execute sql select auto * from tbl_billing_data where date (datetimestamporigination) between 'date' and 'date'
A large amount of data came on the screen, so I ran ' file list activelog.net/cm/cdr_repository/preserver/et a list of directories to date appeared. All directories of came from the "date", as if all the dates before that date have been removed. Is it possible that to run the sql command that he actually removed these records cdr or moved him somewhere else? Hoping that they are still usable, all advice appreciated.
Thank you very much
Erina
Hi Erina,
The sql queries that you mentioned will not remove or push files to another folder. You have a server billing for this cluster configuration? Please see the section ""Troubleshooting: CDR Files will not be transferred to the billing server ' from the following link "
https://supportforums.Cisco.com/document/55821/troubleshooting-CDR#Troub...
HTH
Manish
-
Form customized with curved edges - 8 Captivate
Is it possible to create a smartshape customized with curved lines in 8 Captivate by using, for example, the polygon, drawing tool?
You cannot draw a line curve immediately, but need of steps:
- create a form
- convert a freeform (context menu)
- Now you can edit the points and tangent handles (Bezier curves)
In this article, in the film, you will see such a curved shape. Here, I started with a star shape: Custom short answer Question - Captivate blog
And in this picture, you see how I created an arc, starting with a triangle
-
Can I attach SQL custom liability using a profile?
Hello
On this Metalink Note:
* After upgrade to R12, no data exists in the table CE_SECURITY_PROFILES_GT [ID 1235213.1] *.
We are invited to:
Is there a way I can join a responsibility that SQL using a standard profile, so that when the user uses this resp. the SQL is executed?Populate the temp security table: exec CEP_STANDARD.init_security();
I can't think otherwise for the SQL code collide into an RESP, and even in this case, I don't really know what I'm talking about!
Any advice much appreciated.
Thank youThere is a profile called "Initializing SQL statement - Custom" option that can be useful. You can set the level of responsibility.
See MOS Doc 135389.1 - using profile 'SQL - Custom initialization statement.
HTH
Srini -
Call the PL/SQL procedure with in out parameter of OIC clob
Hello
For a few days, I am facing a problem. I have to call the pl/sql procedure with colb parameter out. I use c ++ and OIC (don't ask me why :)).
I use a pl/sql problem test procedure:
create or replace function Test (longField outside clob) return number is
Number of result;
Start
longField: = 'prefix ';
Result: = 12;
Return (result);
end Test;
So I do all the stuff with the connection to the DB,
I prepare the statement: "start: res: = test(:param); end; »
So I OCIHandleAlloc (m_pCtx-> hpEnv,
(void *) & m_hpStatement,.
OCI_HTYPE_STMT,
0,
(NULL);
and
OCIStmtPrepare (m_hpStatement,
m_pCtx-> hpErr,
(...),
(...),
OCI_NTV_SYNTAX,
OCI_DEFAULT);
Before the binding I prepare parameters. For a clob I devote to the lob Locator:
OCIDescriptorAlloc ((dvoid *) m_pCtx-> hpEnv, (dvoid *) & m_pLobLocator,)
(ub4) OCI_DTYPE_LOB (size_t) 0, (dvoid *) 0);
OCILobEnableBuffering (m_pCtx-> hpContext, m_pCtx-> hpErr, (OCILobLocator *) m_pLobLocator);
that I bind parameters using OCIBindByName and OCIStmtExecute statement execution.
I get an error
---------------------------
Microsoft Visual C++
---------------------------
Unhandled exception in... (ORAOCIEI11. (DLL): 0xC0000005: Access Violation.
My question is: is it possible to call the pl/sql procedure with parameter BEAK clob?
If Yes, what steps I need to do to succeed?
Thank you for your response.Hello
Of course, it is possible :)
Show that you are your piece of code that is binding.
Are you sure you had correctly the lob descriptor in the call to bind? -
Run SQL failed with the authentication failure
Hi all, I have access to a large grid control to manage my small group of data, I'm not super user, I am only a dba user access to databases in mi cluster. Then, when I try to run SQL using "execute SQL" link I get a message that says "LOG: Local Authentication failed...". PAM attempt authentication... "WFP has failed with the error: authentication failure.
But, when I use the 'SQL Worksheet' link to run the same SQL that works very well, is not possible to run SQL using the other link? What's wrong? Thanks in advance.You have not set up the setting with agent PAM, please follow the notes 422073.1 and check.
-
Hello
I AM FACING A PROBLEM WITH MY SECURITY QUESTIONS.
I FORGOT THE ANSWERS AND NOW I CAN'T RESET, CAN YOU HELP ME?
Hello
You will need to contact the Apple Support. (Nobody here can reset your security for you questions: it is a community based on the user, not the Apple Support).
Contact information for the Apple Support:
Contact Apple for assistance with the security of the Apple ID - Apple Support accounts
-
Logic Pro will integrate with Alesis adat?
Logic Pro will integrate with Alesis adat? If so, how?
Do not take into account statement below
Define integrate them, there are several scenarios, I think how you want to integrate the ADAT machine with logic.
To record 8 ADAT tracks simultaneously in Logic, you'll need...
1. an audio Interface 8 input analog
or...
2. an audio Interface with an ADAT i/o.
-
Error-200431, DAQmx create Channel .vi (I-voltage-Custom with excitement)
Where is past ".vi DAQmx Create Channel (I-voltage-Custom with excitement)?
I tried to use this VI of force measurement with an NI PXI-4472. He responds with the 200431 error... You asked: more: voltage: Custom with excitement, you can select: sound pressure, voltage: microphone,...
It seems to me to be an internal error of the VI's Version of LabView 8.6.1
Hi Suse,
Thanks for your reply.
It's the right device but the bad VI.
PXI-4472 is an excellent camera for the dynamic force measurement using Quartz sensors. I was intending to use the .vi (I-voltage-custom with excitement) to configure entry and IEPE excitement, but I got the error code. I have now managed by using the pure (I-voltage) .vi entry configuration and IEPE using the DAQmx channel property node.
However, I tried the .vi (I-voltage-Custom with excitement) with appropriate PXI-4220 simulated device, no error.
Concerning
T.Knox
-
desktop icons covered by a blue screen with the white question mark
original title; Desktop icons
My desktop icons have a blue circle with a white question mark hide them. How can I get rid of them?
My desktop icons have a blue circle with a white question mark hide them.
These are icons by programs such as Norton 360 backup and are used to indicate certain conditions such as the status of the backup. You must go into the program generating overlays and disable this setting. In the case of Norton that would be settings in the main window and then uncheck the backup status overlays.
Maybe you are looking for
-
I tried to charge my iphone 4s, but has not loaded
Hello! A few days ago, I tried to charge my iphone 4s, but not loaded, it helps has completely downloaded, and now I no longer use I already changed the plug and the cable USB but nothing. What could I do? Thank you and I await answers < re-titled by
-
Hello Since Thursday, the synchronization failed, but I am correctly to connect to "https://accounts.firefox.com/settings".(I have try without antivirus and firewall) I said, this isn't a story of creation. I have no pb for 2 months (I create new acc
-
Satellite P300-1 year - Touchpad problem with AC adapter / CC
I have a laptop Satellite P300-1 year and from the beginning (two weeks)I have a touchpad problem: it will not immediately responsive and the pointer shakes when pressing the key. Very often, it freezes for only one or two seconds. It's VERY annoying
-
How can I have the Center screen with a keystroke reveal/hide dock
I've been watching tutorials of plugin photo Nik, in several of them the demonstrator brings their Dock at the screen Center and selects the following application during the tutorial. How can this be achieved? I guess that's put in place by an agree
-
YouTube crashes Firefox instantly - and I mean instantly, hardware failure
Under Firefox 3.6.3 openSUSE Linux 11.0. Have re-installed twice, including completely deleting the .mozilla profile. No effect. By clicking on the Google youtube address will IMMEDIATELY crash Firefox completely. I have blocked all cookies from Yout