Issue in retriving rows from sql statement
hi all,
actually i am trying to executed a query given below:
select scodesc from t_coursecatalog where productid=13 and rownum=1;
actually this particular column 'scodesc' contain very long insertion statement i.e.,
<table border=0 cellpadding="1" cellspacing="1" bordercolordark="ffffff" border.......................
but when i executed this query i can only able to see the half of the statement, i couldnt see the rest of the statement after 'border' in the reterived row
it simply show
select scodesc from t_coursecatalog where productid=13 and rownum=1;
<table border=0 cellpadding="1" cellspacing="1" bordercolordark="ffffff" border..................
so wat should i do nowat this situation..... is there any tuning is required here.
if yes.how to tune? where to tune?
plz help me in this topic
its urgent plz
Hallo,
first of all: where do you run the statement ?
In SQLPlus or in TOAD/Navigator/Developer ?....
And what is the datatype and length for your column scodesc ?
Regards
Dmytro
Message was edited by:
Dmytro Dekhtyaryuk
Similar Messages
-
How i will retrive rows from object type
test is object type(varchar2,varchar2)
test1 is a object derived from test
test1(varchar2,varchar2,test);
how i will retrive rows from test1.
declare
type recf is ref cursor;
v_tab test1 := test1('a','b',test('c','d'));
rec recf;
begin
open rec for
select * from table(cast(v_tab as test1));
dbms_output.put_line('the rows are'||rec.test1.test11);
end;
when i compile this it return
ERROR at line 7:
ORA-06550: line 7, column 35:
PL/SQL: ORA-22907: invalid CAST to a type that is not a nested table or VARRAY
ORA-06550: line 7, column 1:
PL/SQL: SQL Statement ignored
ORA-06550: line 8, column 48:
PLS-00487: Invalid reference to variable 'REC'
ORA-06550: line 8, column 1:
PL/SQL: Statement ignored
error.hi ur previous example really helping me but please help me in this current senario,
PROCEDURE reserveNumbers (
TheNumberRange IN NumberRange,
UserID IN userid,
ReturnStatus OUT CallStatus ); which is in P_Numbermgr_Api package.
here NumberRange is a object
TYPE NumberRange IS OBJECT (
StartNumber VARCHAR2(40),
EndNumber VARCHAR2(40),
NumberAttributes NumberAttr)
NumberAttributes field based on NumberAttr object
TYPE NumberAttr IS OBJECT (
NumberType VARCHAR2(15),
CountryCode VARCHAR2(10),
CityCode VARCHAR2(3))
i write a package within package i am calling P_Numbermgr_Api.reserveNumbers:
CREATE or replace TYPE My_numberrange IS TABLE OF numberrange;
CREATE OR REPLACE PACKAGE numberrange_wrapper AS
TYPE cursor_type IS REF CURSOR;
TYPE cursor_type1 IS REF CURSOR;
TYPE cursor_type2 IS REF CURSOR;
v_userid number;
PROCEDURE Getnumberrange (userid IN number,
p_recordset OUT numberrange_wrapper.cursor_type);
END numberrange_wrapper;
within package body i write
CREATE OR REPLACE PACKAGE body numberrange_wrapper AS
PROCEDURE Getnumberrange (userid IN number,p_recordset IN OUT numberrange_wrapper.cursor_type)
is
v_tab My_numberrange := My_numberrange();
refc numberrange_wrapper.cursor_type2;
BEGIN
numberrange_wrapper.v_userid:= userid;
OPEN p_recordset FOR
SELECT
* FROM
Table(Cast(v_tab As My_numberrange));
P_Numbermgr_Api.reserveNumbers (My_numberrange,v_userid,p_recordset);
END Getnumberrange;
end numberrange_wrapper;
it return
PLS-00330: invalid use of type name or subtype name
please help me how i will solve this problem -
How to execute procedure returning data rows from sql plus
Hi,
I want to execute a stored procedure that returns data rows from sql plus. please let me know the syntax for the same.
Thanks,
YGuser13065317 wrote:
Even if i get the result set into the cursor, do i have to do normal fetch into all the coumn variables within a loop
But suppose no of columns in my result set varies depending on a parameter to the stored procedure.
Is there any straightforward way to retrieve all the data irrespective of no of columns in the result set.There is no such thing as a "+result set+". Oracle does not create a temporary data set in memory that contains the results of your query. What would happen if this result set is a million rows and is too large to fit into memory? Or there are a 100 clients each with a 100,000 row result set?
This is not scalable. You will be severely limited in the number and sizes of these "+result sets+" that can be created in server memory.
A cursor is in fact a "program" that is created by compiling the SQL source code that you provide. This source code is parsed and compiled into what Oracle calls an execution plan. This is nothing but a series of instructions that the cursor will execute in order to return the rows required.
Thus the result set is actually the output from a cursor (a program). Likewise, bind variables are the input parameters to this program.
All SQLs are parsed and compiled as cursors and stored in the SQL Shared Pool. Oracle gives you handle in return to use to address this cursor - bind values to it, execute it, describe the output structure returned by the cursor, and fetch the output from the cursor.
On the client side, this handle is used in different ways. In PL/SQL alone, this cursor handle can be used as an implicit cursor (you do not even see or use the cursor handle in your PL/SQL code). Or you can use a PL/SQL cursor variable. Or a DBMS_SQL cursor variable. Or a reference cursor variable.
Why so many different client structures for the very same SQL cursor handle returned by Oracle? Because to allow you, the programmer, all kinds of different features and flexibility.
The ref cursor feature is the ability to pass this cursor handle around, not only between PL/SQL code, but also from PL/SQL to the actual client process (Java. VB, SQL*Plus, TOAD, etc).
The primary thing to remember - irrespective of what the client calls this (e.g. ref cursor, SQL statement handle, etc), this all refers to the same SQL cursor in the Shared Pool. And that this SQL cursor is a program that outputs data, and not a result set in itself. -
Odd results from SQL statement in JSP
Hi.
Getting very strange results from my SQL statement housed in my JSP.
the last part of it is like so:
"SELECT DISTINCT AID, ACTIVE, REQUESTOR_NAME, ..." +
"REQUESTOR_EMAIL" +
" FROM CHANGE_CONTROL_ADMIN a INNER JOIN CHANGE_CONTROL_USER b " +
"ON a.CHANGE_CTRL_ID = b.CHANGE_CTRL_ID " +
" WHERE UPPER(REQUESTOR_NAME) LIKE ? "; I've set the following variables and statements:
String reqName = request.getParameter("requestor_name");
PreparedStatement prepstmt = connection.prepareStatement(preparedQuery);
prepstmt.setString(1, "%" + reqName.trim().toUpperCase() + "%");
ResultSet rslts = prepstmt.executeQuery();
rslts.next();
int aidn = rslts.getInt(1);
int actbox = rslts.getInt(2); String reqname = rslts.getString(3).toUpperCase();
String reqemails = rslts.getString(4);
String bizct = rslts.getString(5);
String dept = rslts.getString(6);
String loc = rslts.getString(7);
Date datereq = rslts.getDate(8);
String busvp = rslts.getString(9);
AND SO ONSo then I loop it, or try to with the following:
<%
try {
while ((rslts).next()) { %>
<tr class="style17">
<td><%=reqname%></td><td><%=reqemails %></td><td><%=bizct %></td>td><%=dept %></td>
<td><%=aidn %></td>
</tr>
<%
rslts.close();
selstmt.close();
catch(Exception ex){
ex.printStackTrace();
log("Exception", ex);
%>AND so on, setting 13 getXXX methods of the 16 cols in the SQL statement.
Trouble is I'm getting wildly inconsistent results.
For example, typing 'H' (w/o quotes) will spit out 20 duplicate records of a guy named Herman, with the rest of his corresponding info correct, just repeated for some reason.
Typing in 'He' will bring back the record twice (2 rows of the complete result set being queried).
However, typing in 'Her' returns nothing. I could type in 'ell' (last 3 letters of his name, Winchell) and it will again return two duplicate records, but typing in 'hell' would return nothing.
Am I omitting something crucial from the while statement that's needed to accurately print out the results set without duplicating it and that will ensure returning it?
There's also records in the DB that I know are there but aren't being returned. Different names (i.e. Jennifer, Jesse, Jeremy) won't be returned by typing in partial name strings like Je.
Any insight would be largely appreciated.
One sidenote: I can go to SQL Plus and accurately return a results set through the above query. Having said that, is it possible the JDBC driver has some kind of issue?
Message was edited by:
bpropes20
Message was edited by:
bpropes20Am I omitting something crucial from the while
statement that's needed to accurately print out the
results set without duplicating it and that will
ensure returning it?Yes.
In this code, nothing ever changes the value of reqname or any of the other variables.
while ((rslts).next()) { %>
<tr class="style17">
<td><%=reqname%></td><td><%=reqemails %></td><td><%=bizct %></td>td><%=dept %></td>
<td><%=aidn %></td>
</tr>
<%
} You code needs to be like this:while (rslts.next()) {
reqname = rslts.getString(3).toUpperCase();
reqemails = rslts.getString(4);
bizct = rslts.getString(5);
dept = rslts.getString(6);
loc = rslts.getString(7);
datereq = rslts.getDate(8);
busvp = rslts.getString(9);
%>
<tr class="style17">
<td><%=reqname%></td><td><%=reqemails %></td><td><%=bizct %></td>td><%=dept %></td>
<td><%=aidn %></td>
</tr>
<%
There's also records in the DB that I know are there
but aren't being returned. Different names (i.e.
Jennifer, Jesse, Jeremy) won't be returned by typing
in partial name strings like Je.Well, you're half-right, your loop won't display all the rows in the result set, because you call rslts.next(); once immediately after executing the query. That advance the result set to the first row; when the loop is entered, it starts displaying at the 2nd row (or later if there are more next() calls in the code you omitted). -
Populating JTable table from sql statement.
Trying to teach myself a combanation of things. Since Oracle is my background java to oracle is only a natural. Now this code I'm trying to select some rows and then display those rows in a table. Simple concept as a teaching aid to me. I won't go into what I went through to get this far, just say there have been quite a few fall starts. Now this code works; however it returns ten rows (one for each tablespace) and displays row 1 ten times. Not quite what I had in mind.
I have got a simple select statment in my code:
select tablespace_name,initial_extent,next_extent,pct_increase, status
from dba_tablespaces order by tablespace_name
package TableTest;
// java imports
import java.util.Vector;
import java.awt.event.*;
import java.awt.Toolkit;
import java.awt.*;
import javax.swing.*;
// sql imports
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.sql.PreparedStatement;
import java.sql.Connection;
import java.sql.DriverManager;
public class TableTest extends JFrame
Connection conn; // database connection object
Statement stmt; // statement object
ResultSet rslt; // result set object
//private vars
private String userName = "bubbalouie";
private String password = "helpmeimsinking";
private String sid = "rob";
private String port = "1521";
private String server = "w2sd001";
private String connectString = "jdbc:oracle:thin:@"+server+":"+port+":"+sid;
private int numCols = 5;
private String sqlStmt = null;
private String status = null;
public TableTest()
// Get content pane
Container contentPane = getContentPane();
// set layout manager
contentPane.setLayout(new BorderLayout());
// create some places to put dat
Vector data = new Vector();
Vector columns = new Vector();
Vector colHeads = new Vector();
colHeads.addElement("tablespace name"); // this is ugly fix later
colHeads.addElement("initial extent");
colHeads.addElement("next extent");
colHeads.addElement("pct increase");
colHeads.addElement("status");
// construct a simple sql statement
sqlStmt = "select tablespace_name, initial_extent, next_extent, pct_increase, status";
sqlStmt = sqlStmt+" from dba_tablespaces order by tablespace_name";
try
// connect to database
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
Connection conn = DriverManager.getConnection(connectString, userName, password);
// select data into object
stmt = conn.createStatement();
rslt = stmt.executeQuery(sqlStmt);
while (rslt.next())
for ( int i=0; i<numCols; i++ )
columns.addElement(rslt.getObject(i+1)); // get the i+1 object
} // end for
data.addElement(columns);
} // end while
// create the table
JTable table = new JTable(data,colHeads);
// add table to scroll pane
int v = ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED;
int h = ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED;
JScrollPane jsp = new JScrollPane(table,v,h);
// Add scroll pane to content pane
contentPane.add(jsp, BorderLayout.CENTER);
} catch (SQLException ex)
String msg = "SQL error: "+ex.toString();
} catch (Exception ex)
String msg = "Error: "+ex.toString();
} // end constructor
public static void main(String[] args) {
TableTest frame = new TableTest();
frame.setSize(500, 400);
frame.setTitle("TableTest");
frame.setVisible(true);
} // TableTest end classif you are interested here is a generic table model for displaying ResultSets in a JTable. The resultset needs to support calling resultset meta data and the basic methods in there but then it should support anything you give it.
import java.sql.*;
import java.util.*;
import javax.swing.table.*;
public class ResultSetTableModel extends AbstractTableModel{
Vector rows;
int[] types;
String[] names;
public ResultSetTableModel(ResultSet rs)throws SQLException{
ResultSetMetaData rsmd = rs.getMetaData();
types = new int[rsmd.getColumnCount()];
names = new String[rsmd.getColumnCount()];
for(int n=0;i<types.length;n++){
types[n] = rsmd.getColumnType(n+1);
names[n] = rsmd.getColumnName(n+1);
rows = new Vector();
while(rs.next()){
Vector aRow = new Vector();
for(int j=0;j<types.length;j++){
switch(types[j]){
case Types.TINYINT:
aRow.addElement(new Byte(rs.getByte(j+1)));
break;
case Types.SMALLINT:
aRow.addElement(new Short(rs.getShort(j+1)));
break;
case Types.INTEGER:
aRow.addElement(new Integer(rs.getInt(j+1)));
break;
case Types.BIGINT:
aRow.addElement(new Long(rs.getLong(j+1)));
break;
case Types.REAL:
aRow.addElement(new Float(rs.getFloat(j+1)));
break;
case Types.FLOAT:
aRow.addElement(new Double(rs.getDouble(j+1)));
break;
case Types.DOUBLE:
aRow.addElement(new Double(rs.getDouble(j+1)));
break;
case Types.DECIMAL:
aRow.addElement(rs.getBigDecimal(j+1));
break;
case Types.NUMERIC:
aRow.addElement(new Long(rs.getLong(j+1)));
break;
case Types.BIT:
aRow.addElement(new Boolean(rs.getBoolean(j+1)));
break;
case Types.BINARY:
aRow.addElement(rs.getBytes(j+1));
break;
case Types.DATE:
aRow.addElement(rs.getDate(j+1));
break;
case Types.TIME:
aRow.addElement(rs.getTime(j+1));
break;
case Types.TIMESTAMP:
aRow.addElement(rs.getTimestamp(j+1));
break;
default:
aRow.addElement(rs.getString(j+1));
rows.addElement(aRow);
public Class getColumnClass(int column){
switch(types[column]){
case Types.BIT:
return Boolean.class;
case Types.DATE:
return java.sql.Date.class;
case Types.TIME:
return java.sql.Time.class;
case Types.TIMESTAMP:
return java.sql.Timestamp.class;
default:
return Object.class;
public int getRowCount(){
return rows.size();
public int getColumnCount(){
return types.length;
public Object getValueAt(int row, int column){
Vector aRow = (Vector) rows.elementAt(row);
return aRow.elementAt(column);
public String getColumnName(int column){
return names[column];
} -
Hello,
The use case is each row logs a cumulative data point, like an odometer, and I need to be able to subtract a previous row from a following row in order to see the change between two rows.
I can do this if I create a Power Query "From Table," but if I do the same thing when the data source is SQL, I get an error message "invalid attempt to call Read when reader is closed".
Given a trivial data table, this works:
let
Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
#"Added Index" = Table.AddIndexColumn(Source, "Index", 0, 1),
#"Added Index1" = Table.AddIndexColumn(#"Added Index", "Index.1", 1, 1),
Merge = Table.NestedJoin(#"Added Index1",{"Index.1"},#"Added Index1",{"Index"},"NewColumn"),
#"Expand NewColumn" = Table.ExpandTableColumn(Merge, "NewColumn", {"Odometer"}, {"NewColumn.Odometer"})
in
#"Expand NewColumn"
But attempting the same technique against data from SQL, I get the above error "invalid attempt to call Read when reader is closed".
Any suggestions? If this is a feature (or bug) that can't be overcome, is there another way to compare values between two rows?
Thanks,
EdPlease use "send a frown" to report the bug so we can fix it. Is the data very big? The simplest workaround is likely to be the use of "Table.Buffer" to buffer the table locally before doing this work; that will cause us to stop any
attempt to do the processing on the server. If the table is very big, though, this isn't an attractive approach. -
Convert a logic from SQL statement to java
Hi.,
I m using jdeveloper 11.1.1.5
I had used one sql statement as gievn below
(SELECT max(decode(LENGTH(fy_year),4, fy_year + 1,6,SUBSTR(fy_year, 1, 4)+1||SUBSTR(SUBSTR(fy_year, 1, 4) + 2, 3, 2)))YEAR from fin_years)I need to use this logic in java
Could anyone pls help me"wilhelm,"
I've seen some ridiculous questions in my life. This is one of them.
There are just so many things wrong here. So, so many.
SELECT statements get data from databases; they are not "logic."
Do you really expect us to parse your SQL and try to guess what it is supposed to do?
Do you really believe that when converting a Forms app to Java that you "convert" SQL statements to Java?
Do you really believe that going through your forms app and "converting" it to ADF is a sensible approach?
John -
Hi,
We face an issue while migrating an SQL Server 2005 DB to Oracle 11.2. It fails during the process. I hope someone on the forum has seen this before and can give us some advice.
I use the latest version of SQL Developer with JRE included (3.2.20.09). The JDBC driver to connect to SQL Server 2005 is 1.2.0
Here are the steps we take in the Migration Workbench wizard:
I made an online extract of the SQL Server database.
Using the workbench in SQL Developer I created a migration repository in schema PDM_MIGRATION.
Next I start the migration, it captures the tables fine, but immediately after the start of the conversion I get a failed message without further explanations.
This is the content of the error xml:
<?xml version="1.0" encoding="windows-1252" standalone="no"?>
<log>
<record>
<date>2013-08-14T16:23:32</date>
<logger>oracle.dbtools.migration.workbench.core.MigrationLogResourceBundle</logger>
<level>SEVERE</level>
<class>oracle.dbtools.migration.workbench.core.logging.MigrationLogUtil</class>
<message>Ongeldig naampatroon.: PDM_MIGRATION .MIGR_FILTER</message>
<param>oracle.dbtools.migration.workbench.core.logging.LogInfo@4c12ab</param>
<exception>
<message>oracle.dbtools.migration.convert.ConvertException: Ongeldig naampatroon.: PDM_MIGRATION .MIGR_FILTER</message>
<frame>
<class>oracle.dbtools.migration.convert.ConverterWorker</class>
<line>1078</line>
</frame>
<frame>
<class>oracle.dbtools.migration.convert.ConverterWorker</class>
<line>316</line>
</frame>
<frame>
<class>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask</class>
<line>1002</line>
</frame>
<frame>
<class>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask</class>
<line>303</line>
</frame>
<frame>
<class>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask</class>
<line>205</line>
</frame>
<frame>
<class>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask</class>
<line>159</line>
</frame>
<frame>
<class>oracle.dbtools.raptor.backgroundTask.RaptorTask</class>
<line>193</line>
</frame>
<frame>
<class>java.util.concurrent.FutureTask$Sync</class>
<line>303</line>
</frame>
<frame>
<class>java.util.concurrent.FutureTask</class>
<line>138</line>
</frame>
<frame>
<class>oracle.dbtools.raptor.backgroundTask.RaptorTaskManager$RaptorFutureTask</class>
<line>515</line>
</frame>
<frame>
<class>java.util.concurrent.Executors$RunnableAdapter</class>
<line>441</line>
</frame>
<frame>
<class>java.util.concurrent.FutureTask$Sync</class>
<line>303</line>
</frame>
<frame>
<class>java.util.concurrent.FutureTask</class>
<line>138</line>
</frame>
<frame>
<class>java.util.concurrent.ThreadPoolExecutor$Worker</class>
<line>886</line>
</frame>
<frame>
<class>java.util.concurrent.ThreadPoolExecutor$Worker</class>
<line>908</line>
</frame>
<frame>
<class>java.lang.Thread</class>
<line>662</line>
</frame>
</exception>
</record>
<record>
<date>2013-08-14T16:23:32</date>
<logger>oracle.dbtools.migration.workbench.core.MigrationLogResourceBundle</logger>
<level>SEVERE</level>
<class>oracle.dbtools.migration.workbench.core.logging.MigrationLogUtil</class>
<message>Ongeldig naampatroon.: PDM_MIGRATION .MIGR_FILTER</message>
<param>oracle.dbtools.migration.convert.ConverterWorker.copyModel(ConverterWorker.java:1078)</param>
<param>oracle.dbtools.migration.convert.ConverterWorker.runConvert(ConverterWorker.java:316)</param>
<param>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask.doConvert(FullMigrateTask.java:1002)</param>
<param>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask.doMaskBasedActions(FullMigrateTask.java:303)</param>
<param>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask.doWork(FullMigrateTask.java:205)</param>
<param>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask.doWork(FullMigrateTask.java:159)</param>
<param>oracle.dbtools.raptor.backgroundTask.RaptorTask.call(RaptorTask.java:193)</param>
<param>java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)</param>
<param>java.util.concurrent.FutureTask.run(FutureTask.java:138)</param>
<param>oracle.dbtools.raptor.backgroundTask.RaptorTaskManager$RaptorFutureTask.run(RaptorTaskManager.java:515)</param>
<param>java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)</param>
<param>java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)</param>
<param>java.util.concurrent.FutureTask.run(FutureTask.java:138)</param>
<param>java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)</param>
<param>java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)</param>
<param>java.lang.Thread.run(Thread.java:662)</param>
<param>oracle.dbtools.migration.workbench.core.logging.LogInfo@5dc1bc</param>
<exception>
<message>oracle.dbtools.migration.convert.ConvertException: Ongeldig naampatroon.: PDM_MIGRATION .MIGR_FILTER</message>
<frame>
<class>oracle.dbtools.migration.convert.ConverterWorker</class>
<line>1078</line>
</frame>
<frame>
<class>oracle.dbtools.migration.convert.ConverterWorker</class>
<line>316</line>
</frame>
<frame>
<class>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask</class>
<line>1002</line>
</frame>
<frame>
<class>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask</class>
<line>303</line>
</frame>
<frame>
<class>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask</class>
<line>205</line>
</frame>
<frame>
<class>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask</class>
<line>159</line>
</frame>
<frame>
<class>oracle.dbtools.raptor.backgroundTask.RaptorTask</class>
<line>193</line>
</frame>
<frame>
<class>java.util.concurrent.FutureTask$Sync</class>
<line>303</line>
</frame>
<frame>
<class>java.util.concurrent.FutureTask</class>
<line>138</line>
</frame>
<frame>
<class>oracle.dbtools.raptor.backgroundTask.RaptorTaskManager$RaptorFutureTask</class>
<line>515</line>
</frame>
<frame>
<class>java.util.concurrent.Executors$RunnableAdapter</class>
<line>441</line>
</frame>
<frame>
<class>java.util.concurrent.FutureTask$Sync</class>
<line>303</line>
</frame>
<frame>
<class>java.util.concurrent.FutureTask</class>
<line>138</line>
</frame>
<frame>
<class>java.util.concurrent.ThreadPoolExecutor$Worker</class>
<line>886</line>
</frame>
<frame>
<class>java.util.concurrent.ThreadPoolExecutor$Worker</class>
<line>908</line>
</frame>
<frame>
<class>java.lang.Thread</class>
<line>662</line>
</frame>
</exception>
</record>
<record>
<date>2013-08-14T16:23:32</date>
<logger>oracle.dbtools.migration.workbench.core.MigrationLogResourceBundle</logger>
<level>WARNING</level>
<class>oracle.dbtools.migration.workbench.core.ui.FullMigrateTask</class>
<message>Building converted model: FAILED : Database Migration : FAILED</message>
<param>oracle.dbtools.migration.workbench.core.logging.LogInfo@15a3779</param>
</record>
Does anybody know what this error means and what steps we should take to continue the migration?
I see the PDM_MIGRATION.MIGR_FILTER is a type.
Many thanks in advance,
KrisHi Wolfgang,
Thanks for your reply.
This is how the type MIGR_FILTER looks like:
create or replace
TYPE MIGR_FILTER IS OBJECT (
FILTER_TYPE INTEGER, -- Filter Types are 0-> ALL, 1->NAMELIST, 2->WHERE CLAUSE, 3->OBJECTID LIST
OBJTYPE VARCHAR2(40),
OBJECTIDS OBJECTIDLIST,
NAMES NAMELIST,
WHERECLAUSE VARCHAR2(1000));
I think the repository user has the correct privileges. This is the overview of privileges it has:
SQL> select * from dba_sys_privs where GRANTEE in ('PDM_MIGRATION') order by GRANTEE;
GRANTEE PRIVILEGE ADM
PDM_MIGRATION ALTER SESSION NO
PDM_MIGRATION CREATE CLUSTER NO
PDM_MIGRATION CREATE DATABASE LINK NO
PDM_MIGRATION CREATE PROCEDURE NO
PDM_MIGRATION CREATE SEQUENCE NO
PDM_MIGRATION CREATE SESSION NO
PDM_MIGRATION CREATE SYNONYM NO
PDM_MIGRATION CREATE TABLE NO
PDM_MIGRATION CREATE TRIGGER NO
PDM_MIGRATION CREATE VIEW NO
PDM_MIGRATION UNLIMITED TABLESPACE NO
SQL> select * from dba_role_privs where GRANTEE in ('PDM_MIGRATION') order by GRANTEE;
GRANTEE GRANTED_ROLE ADM DEF
PDM_MIGRATION CONNECT NO YES
PDM_MIGRATION RESOURCE NO YES
Best regards,
Kris -
Issue to export data from sql to excel
I have MS SQL 2008 Developer version and visual studio 2008. I'm using SSIS Import and Export Wizard on the VS2008 to create a simple package to export data from a table using a sql query to excel file (.xlsx), but I got the following
error messages:
[Destination - Query [37]] Error: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E21.
[Destination - Query [37]] Error: Cannot create an OLE DB accessor. Verify that the column metadata is valid.
[SSIS.Pipeline] Error: component "Destination - Query" (37) failed the pre-execute phase and returned error code 0xC0202025.
The SQL query is
SELECT [BusinessEntityID]
,[PersonType]
,[NameStyle]
,[Title]
,[FirstName]
,[MiddleName]
,[LastName]
FROM [AdventureWorks2008].[Person].[Person]
Any help will be appreciated. Thanks.
A Fan of SSIS, SSRS and SSASOr another way is to save the package created by Export Import wizard, open it in BIDS and add a Derived column task before the Excel destination to do explicit casting of the columns to your required unicode datatypes.
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page -
How can i retrive image from sql database
hi
i have a problem.i want to retrive image stored in a table in binary form.how can i retrive the image from the table and show it in my page how can i do this? i have a sql database.plz help me out....hi
my java file has compiled now i have made these changes plz see
public InputStream getBinaryStream(String colname) throws Exception
return rs.getBinaryStream(colname);
public boolean GetSig() throws Exception
boolean b=false;
try
ps=myConn.prepareStatement("Select Sign from Signatures where Accode='1201780000000083' ");
rs=ps.executeQuery();
b=true;
catch(Exception e)
System.out.println("This is the problem"+e);
return b;
// now how can i get it in my jsp page and disply the image in my page i am writing this code in the jsp file
SIGN.makeConnection();
if(SIGN.GetSig())
while(SIGN.getNext())
Stream Signatures=SIGN.getBinaryStream("Sign");
System.out.println("Signatures is"+Signatures);
%>
<%=Signatures%>
<% }
SIGN.takeDown();
%>
this error is coming in the browser
org.apache.jasper.JasperException: Unable to compile class for JSPD:\jakarta-tomcat-3.2.2\work\localhost_8080%2Fbackoffice\_0002fcdsl_0002fsignatures_0002ejspsignatures_jsp_0.java:96: Class cdsl.Stream not found.
Stream Signatures=SIGN.getBinaryStream("Sign");
plz see...i am waiting for reply -
Table only pulls 1st row from SQL database?
Hi,
I have created a table in Livecycle Designer ES that pulls in data from a SQL Server table with 2 rows, see table.gif attached..
It only ever pulls in the first row and doesn't repeat for all rows in the SQL table.
How can this be done?
Thank you for your time,
Ollie.Rich -
The property loader step type does not look at data stored in the database as ordered. It assumes that anything in the recordset that meets the criteria specified on the filtering tab is importable. Whatever locals are defined within that filter are automatically applied and if two records apply to the same variable, then the last record applied wins.
Keep in mind that the locals variable scope applies to all steps in the sequence so to define a set of local values for one step and another for a different step is not quite what we had in mind for the step type. The idea is to import properties before executing any steps in the sequence and then run the sequence. Importing properties between steps goes beyond the intended scope of the step, but
it can be done if you limit the selected records using the filtering tab.
Hope this helps...
Scott Richardson - NI
Scott Richardson
National Instruments -
Delete unreconciled rows from external statement
Hi There,
I am struggling with the recon engine in SBO 2005 SP01 PL22. I have created some lines in the 'process external statement' window and have reconciled some of them. Then I realized that i have duplicated a few line. But now, when I want to 'delete row' against a line that has NOT been reconciled I receive the following message;
'Reconciled rows found on the page. Delete reconciled rows before adding/removing.'
I have reconciled quite a few lines already and was hoping there is a way to remove the unreconciled lines without redoing all the work.
Any suggestions would be greatly appreciated.
Kind Regards,
Wynand Cilliers.
PS. I also have a screenshot but do not know how to attach.Dear ,
The system by definition does not allow deleting the rows before the
last reconciliation in the Process External Bank Reconciliation window.
The Process External Bank Reconciliation only allows deletions AFTER the
last record that has a reconciled number. If try to delete anything
above the last reconciliation in the line you will get the message.
For more information about it please refer to note:791192
hope this can be helpful to some extend.
I also paste the information in note 791192 as below:
Symptom
Reassign payment entered and created to wrong incoming payment
Other terms
Reason and Prerequisites
Two A/R Invoices of different customers with the same amount. Incoming
Payment misdirected to A/R Invoice (and customer) via Process External
Bank Statement and Payment created by ticking check box "Create Payment"
Payment was also reconciled (External) with created payment.
Solution
1. In Banking - Incoming Payments - Incoming Payments find the "wrong"
payment created by Process External Bank Statement and Cancel it
(Menu bar: Data - Cancel).
2. In Banking - Bank Statements and Reconciliations - Reconciliation
set Business Partner choose "Internal" Reconciliation Type and
reconcile Incoming Payment with his Reverse Entry (both on Open
Transactions on Credit Side).
3. In Banking - Bank Statements and Reconciliations - Manage Previous
Reconciliatons choose "External" Reconciliation Type For G/L Account
and Cancel Reconciliation of entered and corresponding created
payment.After choosing required account in Banking - Bank Statements
and Reconciliations - Process External Bank Statement can be
observed, that asterisk from "Reconciled" field disappeared, but
data in fields "Create Payment", "Doc. No.", "BP Code", "BP Name"
and following are unchanged and greyed.
Now they are two ways to follow:
A)
a) In Banking - Incoming Payments - Incoming Payments create
manually incoming payment of new Business Partner and Invoice.
b) In Banking - Bank Statements and Reconciliations - Reconciliation
set Business Partner choose "External" Reconciliation Type and
reconcile Incoming Payment with entered (in point 3 unreconciled)
payment.
Note that data in fields "Create Payment", "Doc. No.", "BP Code", "BP
Name" following in Process External Bank Statement grid remain
incorrect.
B)
c) Delete (Menu bar: Data - Remove or Delete Row) row which contains
misdirected payment.
d) Add new row containing correct data (new BP code and Doc. No.)
and create Payment by ticking check box "Create Payment".
e) In Banking - Bank Statements and Reconciliations - Reconciliation
set Business Partner choose "External" Reconciliation Type and
reconcile newly created Incoming Payment with corresponding
entered payment.
Note that deleting and adding row in Process External Bank Statement
grid allowed if actual row is followed by not reconciled entered payment
(without asterisk in "Reconciled" field). If necessary, you can cancel
these reconciliations provisionally.
Wish the information above is useful for you .
Regards
Apple -
Removing a row from SQL query results when there is a duplicate hostname
I have a query created for a software usage report in SCCM. When there are multiple versions of the same software (Acrobat) installed on the same machine, I will receive duplicate results for the same machine. For example, it will come back with Acrobat
9 and another Acrobat 10 for HOSTNAME1. However, only Acrobat 10 has a usage count. Is it possible to delete the row for Acrobat that has a software usage count of "0/null" if there is another Acrobat results showing up that actually has a usage
count? Let me know if I need to clarify. Any suggestions would be appreciated.It is more complicated than doing just "Where usage count >0 and usage is not NULL"
because I still want results that have a 0 usage count. I just don't want to have duplicate machines show up for the same software IF one of them returns a usage count of 0.
SELECT DISTINCT
abc.SECTOR
,abc.BA
,abc.SITE
,abc.HOSTNAME as 'Name0'
,rs.ResourceID
,CASE
WHEN mf.OriginalFileName = 'dwrcc.exe' THEN 'DameWare'
WHEN mf.OriginalFileName = 'matlab.exe' THEN 'MathWorks'
WHEN mf.OriginalFileName IN ('encoder.exe','expressionweb.exe','exprwd.exe','mappoint.exe','winproj.exe','visio.exe','devenv.exe','VBExpress.exe','VCExpress.exe','VCSExpress.exe','VWDExpress.exe','excel.exe','groove.exe','infopath.exe','msaccess.exe','mspub.exe','onenote.exe','outlook.exe','powerpnt.exe','winword.exe','communicator.exe')
THEN 'Microsoft'
WHEN mf.OriginalFileName IN ('acrobat.exe','Acrobat Elements.exe','AfterFX.exe','Audition.Exe','Adobe Audition.Exe','AdobeCaptivate.exe','CFReportBuilder.exe','Coldfusion.Exe','Contribute.exe','director.exe','Projector.exe','dreamweaver.exe','Adobe
Encore.exe','Adobe Encore Dvd.Exe','Encoredvd.Exe','Fireworks.exe','FlashBuilder4.exe','flash.exe','Flex Builder.exe','FlexBuilder.exe','Framemaker.Exe','framemaker+sgml.exe','illustrator.exe','HomeSite+.exe','homesite4.exe','homesite45.exe','Homesite5.exe','InDesign.exe','Lightroom.exe','Adobe
OnLocation.exe','Pm65.Exe','Pm70.Exe','pm.exe','pm4.exe','pm5.exe','pm6.exe','photoshop.exe','Photosle.exe','Photoshopelementsorganizer.Exe','Photoshopelementseditor.Exe','photoshp.exe','Lightroom.exe','Adobe Premiere Elements.Exe','Adobe Premiere Elements
8.0.Exe','Adobe Premiere Elements 10.Exe','Adobe Premiere Elements 9.Exe','Adobe Premiere Elements 7.0.exe','Premiere.Exe','Adobe Premiere Pro.Exe','Adobe-Pr-Vc.Exe','Robohelp.Exe','robodemo.exe','roboinfo.exe','Adobe Soundbooth CS5.exe','Adobe Soundbooth
CS4.exe','Adobe Soundbooth CS3.exe','Adobe Media Encoder.exe','speedgrade.exe','adobe prelude.exe') THEN 'Adobe'
ELSE 'OTHER'
END as 'Publisher'
,(CASE mf.OriginalFileName
WHEN 'acrobat.exe' THEN 'Acrobat'
WHEN 'Acrobat Elements.exe' THEN 'Acrobat Elements'
WHEN 'AfterFX.exe' THEN 'After Effects'
WHEN 'Audition.exe' THEN 'Audition'
WHEN 'Adobe Audition.exe' THEN 'Audition'
WHEN 'AdobeCaptivate.exe' THEN 'Captivate'
WHEN 'CFReportBuilder.exe' THEN 'Coldfusion Builder'
WHEN 'Coldfusion.exe' THEN 'Coldfusion Standard'
WHEN 'Contribute.exe' THEN 'Contribute'
WHEN 'dwrcc.exe' THEN 'DameWare Mini Remote Control'
WHEN 'director.exe' THEN 'Director'
WHEN 'Projector.exe' THEN 'Director'
WHEN 'dreamweaver.exe' THEN 'Dreamweaver'
WHEN 'Adobe Encore.exe' THEN 'Encore'
WHEN 'Adobe Encore Dvd.exe' THEN 'Encore'
WHEN 'Encoredvd.exe' THEN 'Encore'
WHEN 'encoder.exe' THEN 'Expression'
WHEN 'expressionweb.exe' THEN 'Expression'
WHEN 'exprwd.exe' THEN 'Expression'
WHEN 'Fireworks.exe' THEN 'Fireworks'
WHEN 'FlashBuilder4.exe' THEN 'Flash Builder'
WHEN 'flash.exe' THEN 'Flash Pro'
WHEN 'Flex Builder.exe' THEN 'FlexBuilder'
WHEN 'FlexBuilder.exe' THEN 'FlexBuilder'
WHEN 'Framemaker.exe' THEN 'FrameMaker'
WHEN 'framemaker+sgml.exe' THEN 'FrameMaker'
WHEN 'HomeSite+.exe' THEN 'Homesite'
WHEN 'homesite4.exe' THEN 'Homesite'
WHEN 'homesite45.exe' THEN 'Homesite'
WHEN 'Homesite5.exe' THEN 'Homesite'
WHEN 'illustrator.exe' THEN 'Illustrator'
WHEN 'InDesign.exe' THEN 'InDesign'
WHEN 'Lightroom.exe' THEN 'Lightroom'
WHEN 'mappoint.exe' THEN 'MapPoint'
WHEN 'Adobe Media Encoder.exe' THEN 'Media Encoder'
WHEN 'Adobe OnLocation.exe' THEN 'OnLocation'
WHEN 'Pm65.exe' THEN 'PageMaker'
WHEN 'Pm70.exe' THEN 'PageMaker'
WHEN 'pm.exe' THEN 'PageMaker'
WHEN 'pm4.exe' THEN 'PageMaker'
WHEN 'pm5.exe' THEN 'PageMaker'
WHEN 'pm6.exe' THEN 'PageMaker'
WHEN 'photoshop.exe' THEN 'Photoshop'
WHEN 'Photosle.exe' THEN 'Photoshop'
WHEN 'Photoshopelementsorganizer.exe' THEN 'Photoshop Elements'
WHEN 'Photoshopelementseditor.exe' THEN 'Photoshop Elements'
WHEN 'photoshp.exe' THEN 'Photoshop Elements'
WHEN 'Lightroom.exe' THEN 'Photoshop Lightroom'
WHEN 'adobe prelude.exe' THEN 'Prelude'
WHEN 'Adobe Premiere Elements.exe' THEN 'Premiere Elements'
WHEN 'Adobe Premiere Elements 8.0.exe' THEN 'Premiere Elements'
WHEN 'Adobe Premiere Elements 10.exe' THEN 'Premiere Elements'
WHEN 'Adobe Premiere Elements 9.exe' THEN 'Premiere Elements'
WHEN 'Adobe Premiere Elements 7.0.exe' THEN 'Premiere Elements'
WHEN 'Premiere.exe' THEN 'Premiere Pro'
WHEN 'Adobe Premiere Pro.exe' THEN 'Premiere Pro'
WHEN 'Adobe-Pr-Vc.exe' THEN 'Presenter'
WHEN 'winproj.exe' THEN 'Project'
WHEN 'Robohelp.exe' THEN 'RoboHelp'
WHEN 'robodemo.exe' THEN 'RoboHelp'
WHEN 'roboinfo.exe' THEN 'RoboHelp'
WHEN 'Adobe Soundbooth CS5.exe' THEN 'Soundbooth'
WHEN 'Adobe Soundbooth CS4.exe' THEN 'Soundbooth'
WHEN 'Adobe Soundbooth CS3.exe' THEN 'Soundbooth'
WHEN 'speedgrade.exe' THEN 'Speedgrade'
WHEN 'visio.exe' THEN 'Visio'
WHEN 'devenv.exe' THEN 'Visual Studio'
WHEN 'VBExpress.exe' THEN 'Visual Studio'
WHEN 'VCExpress.exe' THEN 'Visual Studio'
WHEN 'VCSExpress.exe' THEN 'Visual Studio'
WHEN 'VWDExpress.exe' THEN 'Visual Studio'
WHEN 'WinWord.exe' THEN 'Word'
WHEN 'matlab.exe' THEN 'MATLAB'
ELSE mf.OriginalFileName
END) as 'ProductName'
,mf.OriginalFileName
,sf.FileDescription
,CASE
WHEN sf.FilePath like '%acrobat%' and sf.FileVersion != '' THEN left(sf.FileVersion,patindex('%.%',sf.FileVersion)-1)
ELSE sf.FileVersion
END AS 'FileVersion'
,sf.FilePath
,mf.MeteredFileID
,ISNULL(mus.UsageTime, '') as 'USAGETIME'
,ISNULL(mus.UsageCount, '') as 'USAGECOUNT'
,mus.LastUsage
--,ISNULL(CONVERT(VARCHAR,mus.LastUsage,21),'') as 'Last Used'
,CASE
WHEN mus.LastUsage IS NULL and
sf.FilePath like '%\Program Files\Hewlett-Packard\%'
or sf.FilePath like '_:\Windows\%'
or sf.FilePath like '% old %'
or sf.FilePath like '%[_]old[_]%'
or sf.FilePath like '%backup%'
or sf.FilePath like '_:\Data\%'
or sf.FilePath like 'C:\Users\%'
or sf.FilePath like 'C:\Documents and Settings\%'
or (sf.FileName = 'acrobat.exe' and sf.FileDescription IS NULL)
THEN 'FALSE'
ELSE 'TRUE'
END as 'VALID'
,ISNULL(ui.UserName,scum.TopConsoleUser0) as 'PrimaryUser'
FROM
v_MeteredFiles mf
INNER JOIN v_GS_SoftwareFile sf on mf.MeteredFileID = sf.FileID
--LEFT JOIN v_SoftwareFile sfi on sfi.FileID = sf.FileID
LEFT JOIN v_R_System rs on sf.ResourceID = rs.ResourceID and rs.Obsolete0 = 0 and rs.Active0 = 1
LEFT JOIN v_CH_ClientSummary ch on ch.ResourceID = rs.ResourceID
INNER JOIN [CUSTOM].[dbo].[ABC_SITES] abc on rs.Name0 = abc.HOSTNAME and abc.SERV_FL = 'N'
LEFT JOIN (
SELECT ResourceID,FileID,SUM(UsageCount) as 'UsageCount',MAX(MeteredUserID) as 'UserID',SUM(UsageTime) as 'UsageTime',MAX(LastUsage) as 'LastUsage'
FROM v_MonthlyUsageSummary
GROUP BY ResourceID,FileID
) mus on mus.ResourceID = sf.ResourceID and mus.FileID = mf.MeteredFileID
LEFT JOIN v_Users ui on ui.UserID = mus.UserID
LEFT JOIN v_GS_SYSTEM_CONSOLE_USAGE_MAXGROUP scum on scum.ResourceID = rs.ResourceID
WHERE
(ch.LastActiveTime >= GETDATE()-30 or bae.LOGON_TMSP >= GETDATE()-30)
and mf.OriginalFileName != 'WinWord.exe'
--Exclude files in Recycle Bin
and sf.FilePath not like '_:\$Recycle.Bin%'
--Exclude invalid flash FileID's:
and sf.FileID not in ('216172782114109353','216172782113863960','216172782113863969','216172782114336737','216172782114337853','216172782114009539','216172782114088205','216172782114148960','216172782114088174','216172782114109319','216172782113854316','216172782114045303','216172782114103331','216172782114318673','216172782113997536','216172782114103319','216172782114035585','216172782114035580','288230376151905593','288230376152414835','288230376152326390','288230376152414762','288230376152752371','288230376152238194','288230376151864114','288230376152221470','288230376152194417','288230376152452591','288230376152433530','288230376151826881','288230376151905590','288230376151993886','288230376152142718','288230376151766967','288230376151949862','288230376151870700','288230376151805491','288230376151796019','288230376152041232','288230376152068486','288230376152330596','288230376151982279','288230376151982277','288230376152126901','288230376151864098','288230376152129697','288230376152055728','216172782113836986','288230376152068474','288230376152068500','288230376151754145','288230376152241787','216172782113974892','288230376152107352','288230376152049272','288230376152367258','288230376152014270','288230376152423348','288230376151777614','288230376152137355','288230376152699042','288230376151777252','288230376152025890','288230376152688217','216172782113850093','216172782113850201','216172782114478326','216172782114139161','216172782113976965','216172782114084839','216172782114084848','288230376151766956','288230376152068464','288230376151766948','288230376152068455','288230376151903237','288230376151857402','288230376151933218','216172782113888320','216172782113867157','216172782113798401','216172782113884867')
and sf.FileDescription not like '%PackageForTheWeb%'
and sf.FileDescription not like '%Projector%'
and sf.FileDescription not like '%Adobe Reader%'
and sf.FileDescription not like '%Netopsystems%'
and abc.SECTOR in (@Sector)
and abc.BA in (@Business_Area)
and abc.SITE in (@Site)
and (CASE mf.OriginalFileName
WHEN 'acrobat.exe' THEN 'Acrobat'
WHEN 'Acrobat Elements.exe' THEN 'Acrobat Elements'
WHEN 'AfterFX.exe' THEN 'After Effects'
WHEN 'Audition.exe' THEN 'Audition'
WHEN 'Adobe Audition.exe' THEN 'Audition'
WHEN 'AdobeCaptivate.exe' THEN 'Captivate'
WHEN 'CFReportBuilder.exe' THEN 'Coldfusion Builder'
WHEN 'Coldfusion.exe' THEN 'Coldfusion Standard'
WHEN 'Contribute.exe' THEN 'Contribute'
WHEN 'dwrcc.exe' THEN 'DameWare Mini Remote Control'
WHEN 'director.exe' THEN 'Director'
WHEN 'Projector.exe' THEN 'Director'
WHEN 'dreamweaver.exe' THEN 'Dreamweaver'
WHEN 'Adobe Encore.exe' THEN 'Encore'
WHEN 'Adobe Encore Dvd.exe' THEN 'Encore'
WHEN 'Encoredvd.exe' THEN 'Encore'
WHEN 'encoder.exe' THEN 'Expression'
WHEN 'expressionweb.exe' THEN 'Expression'
WHEN 'exprwd.exe' THEN 'Expression'
WHEN 'Fireworks.exe' THEN 'Fireworks'
WHEN 'FlashBuilder4.exe' THEN 'Flash Builder'
WHEN 'flash.exe' THEN 'Flash Pro'
WHEN 'Flex Builder.exe' THEN 'FlexBuilder'
WHEN 'FlexBuilder.exe' THEN 'FlexBuilder'
WHEN 'Framemaker.exe' THEN 'FrameMaker'
WHEN 'framemaker+sgml.exe' THEN 'FrameMaker'
WHEN 'HomeSite+.exe' THEN 'Homesite'
WHEN 'homesite4.exe' THEN 'Homesite'
WHEN 'homesite45.exe' THEN 'Homesite'
WHEN 'Homesite5.exe' THEN 'Homesite'
WHEN 'illustrator.exe' THEN 'Illustrator'
WHEN 'InDesign.exe' THEN 'InDesign'
WHEN 'Lightroom.exe' THEN 'Lightroom'
WHEN 'mappoint.exe' THEN 'MapPoint'
WHEN 'Adobe Media Encoder.exe' THEN 'Media Encoder'
WHEN 'Adobe OnLocation.exe' THEN 'OnLocation'
WHEN 'Pm65.exe' THEN 'PageMaker'
WHEN 'Pm70.exe' THEN 'PageMaker'
WHEN 'pm.exe' THEN 'PageMaker'
WHEN 'pm4.exe' THEN 'PageMaker'
WHEN 'pm5.exe' THEN 'PageMaker'
WHEN 'pm6.exe' THEN 'PageMaker'
WHEN 'photoshop.exe' THEN 'Photoshop'
WHEN 'Photosle.exe' THEN 'Photoshop'
WHEN 'Photoshopelementsorganizer.exe' THEN 'Photoshop Elements'
WHEN 'Photoshopelementseditor.exe' THEN 'Photoshop Elements'
WHEN 'photoshp.exe' THEN 'Photoshop Elements'
WHEN 'Lightroom.exe' THEN 'Photoshop Lightroom'
WHEN 'adobe prelude.exe' THEN 'Prelude'
WHEN 'Adobe Premiere Elements.exe' THEN 'Premiere Elements'
WHEN 'Adobe Premiere Elements 8.0.exe' THEN 'Premiere Elements'
WHEN 'Adobe Premiere Elements 10.exe' THEN 'Premiere Elements'
WHEN 'Adobe Premiere Elements 9.exe' THEN 'Premiere Elements'
WHEN 'Adobe Premiere Elements 7.0.exe' THEN 'Premiere Elements'
WHEN 'Premiere.exe' THEN 'Premiere Pro'
WHEN 'Adobe Premiere Pro.exe' THEN 'Premiere Pro'
WHEN 'Adobe-Pr-Vc.exe' THEN 'Presenter'
WHEN 'winproj.exe' THEN 'Project'
WHEN 'Robohelp.exe' THEN 'RoboHelp'
WHEN 'robodemo.exe' THEN 'RoboHelp'
WHEN 'roboinfo.exe' THEN 'RoboHelp'
WHEN 'Adobe Soundbooth CS5.exe' THEN 'Soundbooth'
WHEN 'Adobe Soundbooth CS4.exe' THEN 'Soundbooth'
WHEN 'Adobe Soundbooth CS3.exe' THEN 'Soundbooth'
WHEN 'speedgrade.exe' THEN 'Speedgrade'
WHEN 'visio.exe' THEN 'Visio'
WHEN 'devenv.exe' THEN 'Visual Studio'
WHEN 'VBExpress.exe' THEN 'Visual Studio'
WHEN 'VCExpress.exe' THEN 'Visual Studio'
WHEN 'VCSExpress.exe' THEN 'Visual Studio'
WHEN 'VWDExpress.exe' THEN 'Visual Studio'
WHEN 'WinWord.exe' THEN 'Word'
WHEN 'matlab.exe' THEN 'Matlab'
ELSE mf.OriginalFileName
END) IN (@MeteredProduct)
ORDER BY
abc.SECTOR
,abc.BA
,abc.SITE
,abc.HOSTNAME -
How to retrive data from SQL or any database.
Hi Experts,
I am integrating FTP, DATABASE and SAP R/3 system.
1. FTP system stores xml files processed by customer requesting account info.
2. Database system ( SQL/Oracle) consists of Details about Customer accounts.
3. Finally response ( Account info ) to be sent to SAP R/3 system (customer request and database response)
Scenario: Customer request regarding account info is stored as xml in FTP server. XI has to pick the xml file and retrieve the relevant data from Database (SQL / Oracle) and store the whole data in SAP R/3 System.
Please let me know which BAPI I need to use for this scenario..and if you could explain the steps involved for this scenario that will really helps me.
Thanks and Regards,
SunilI dont think there will be a separate bapi for this scenario.
Use file adapter to pickup the file, call the JDBC adapter in synchronous mode (call a Stored Procedure) and then call an RFC or proxy to push the data in to R3.
Refer and File to Jdbc and File to RFC scenarios. You might need to use BPM if you below SP14 on XI 3.0 I believe..!!
VJ -
Issue for retrive data from ITAB
Case:HOW CAN WE FETCH DATA FROM TRANSPARENT TABLE
scenario:calculating net price for material on sales order
(on the basis of material number,sales organization,distribution channel,division,sale to partY ,sales office)
For this 5 prices are calculated :
a)zmrp
b)zlbj
c)zmlb
d)zdij
e)mwst
A bapi is developed through which all these data are fetched using joins on transparent and pooled tables.
Bapi is properly working in Sap Environment.But when fetching data from non sap environment(.NET) only pooled tables are returning data.
Transparent tables are returning blank data.
And also if in query of transprent table if in " where Clause " all parameters are hard codded then transparent table also return data in non sap envirnment.
for eg...
instead of writing ---
select data from tranparent table where matnr= (matnr variable made in bapi entered by user) and vkorg=(sales org variable made in bapi) ....same with all conditions
if we write(returing data)----
select data from tranparent table where matnr='5476665987' and vkorg='1400' ....same with all conditions
FUNCTION ZBAPI_BAR3.
""Local Interface:
*" IMPORTING
*" VALUE(MATNR) TYPE ZBAPI_IMPORT2-MATNR
*" VALUE(VKORG) TYPE ZBAPI_IMPORT2-VKORG
*" VALUE(VTWEG) TYPE ZBAPI_IMPORT2-VTWEG
*" VALUE(KUNNR) TYPE ZBAPI_IMPORT2-KUNNR
*" VALUE(SPART) TYPE ZBAPI_IMPORT2-SPART
*" VALUE(AUART) TYPE ZBAPI_IMPORT2-AUART
*" VALUE(VKBUR) TYPE ZBAPI_IMPORT2-VKBUR
*" EXPORTING
*" VALUE(RETURN) TYPE BAPIRETURN
*" TABLES
*" ITAB STRUCTURE ZBAPI_TABLE3
DATA: LAND1 LIKE KNA1-LAND1 ,
REGIO LIKE KNA1-REGIO ,
WERKS LIKE VBAP-WERKS ,
KNUMH LIKE A004-KNUMH ,
KNUMH LIKE ZBAPI_TABLE3-Knumh ,
KBETR LIKE COND_KONW-Kbetr ,
LIKE ZBAPI_TABLE3-KBETR ,
KNUMH1(10) TYPE C ,
KNUMH2(10) TYPE C ,
KNUMH3(6) TYPE C ,
KNUMH2 LIKE ZBAPI_TABLE3-KNUMH ,
KNUMH3 LIKE ZBAPI_TABLE3-KNUMH ,
KNUMV LIKE ZBAPI_TABLE3-KNUMV ,
KDGRP LIKE KNVV-KDGRP ,
TAXKD LIKE KNVI-TAXKD ,
TAXM1 LIKE MLAN-TAXM1 ,
ADRNR LIKE TVBUR-ADRNR ,
REGION LIKE ADRC-REGION ,
DATE TYPE A503-DATAB .
SELECT SINGLE KDGRP FROM KNVV INTO KDGRP WHERE KUNNR = KUNNR AND VKORG = VKORG AND VTWEG = VTWEG AND SPART = SPART .
SELECT SINGLE LAND1 REGIO FROM KNA1 INTO (LAND1,REGIO) WHERE KUNNR = KUNNR .
SELECT SINGLE WERKS FROM VBAP INNER JOIN VBAK ON VBAPVBELN = VBAKVBELN INTO WERKS WHERE AUART = AUART .
SELECT SINGLE TAXKD FROM KNVI INTO TAXKD WHERE KUNNR = KUNNR AND ALAND = LAND1 AND TATYP = 'MWST' .
SELECT SINGLE TAXM1 FROM MLAN INTO TAXM1 WHERE MATNR = MATNR AND ALAND = LAND1 .
SELECT SINGLE ADRNR FROM TVBUR INTO ADRNR WHERE VKBUR = VKBUR .
SELECT SINGLE REGION FROM ADRC INTO REGION WHERE ADDRNUMBER = ADRNR .
DATE = SY-DATUM .
SELECT SINGLE KNUMH FROM A931 INTO KNUMH1 WHERE KAPPL = 'V' AND KSCHL = 'ZMRP' AND VKORG = VKORG AND VTWEG = VTWEG AND WERKS = '1410' AND KUNNR = KUNNR AND MATNR = MATNR AND KFRST = SPACE AND DATAB LE DATE AND DATBI GE DATE .
SELECT SINGLE KNUMH FROM A931 INTO KNUMH1 WHERE KAPPL = 'V' AND KSCHL = 'ZMRP' AND VKORG = '1400' AND VTWEG = '10' AND WERKS = '1410' AND KUNNR = '0000100163' AND MATNR = 'A10AN027PNSL' AND KFRST = SPACE AND DATAB LE DATE AND DATBI GE DATE .
SELECT SINGLE zkarigar FROM zkari INTO KNUMH1 WHERE erdat = '20070410' .
SELECT SINGLE KNUMH FROM A004 INTO KNUMH1 WHERE KAPPL = 'V' AND KSCHL = 'ZMRP' AND VKORG = VKORG AND VTWEG = VTWEG AND MATNR = MATNR AND DATAB LE DATE AND DATBI GE DATE .
*'0000280050'
CLEAR KNUMH .
CLEAR KBETR .
SELECT SINGLE KNUMH FROM A503 INTO KNUMH1 WHERE KAPPL = 'V' AND KSCHL = 'MWST' AND ALAND = LAND1 AND WKREG = REGION AND REGIO = REGIO
AND TAXK1 = TAXKD AND TAXM1 = TAXM1 AND KFRST = SPACE AND DATAB LE DATE AND DATBI GE DATE and knumh = '0000279708'.
concatenate '0000' KNUMH into knumh1 .
**KNUMH1 = KNUMH .
**select single kbetr from konp into kbetr where knumh = knumh1 .
**knumh3 = knumh1+4(6) .
***itab-kbetr = kbetr .
**concatenate '0000' knumh3 into knumh2 .
**write:/ knumh2 .
ITAB-KNUMH1 = KNUMH2 .
ITAB-KNUMH1 = KNUMH1 .
APPEND ITAB .
*loop at itab .
*write:/ itab-knumh1 .
*endloop .
CLEAR KNUMH .
CLEAR KBETR .
SELECT SINGLE KNUMH FROM A940 INTO KNUMH WHERE KAPPL = 'V' AND KSCHL = 'ZDIJ' AND VKORG = VKORG AND VTWEG = VTWEG AND KDGRP = KDGRP AND MATNR = MATNR AND KFRST = SPACE AND DATAB LE DATE AND DATBI GE DATE .
SELECT SINGLE KNUMH FROM A931 INTO KNUMH WHERE KAPPL = 'V' AND KSCHL = 'ZDIJ' AND VKORG = VKORG AND VTWEG = VTWEG AND WERKS = WERKS AND KUNNR = KUNNR AND MATNR = MATNR AND KFRST = SPACE AND DATAB LE DATE AND DATBI GE DATE .
ITAB-KNUMH = KNUMH.
APPEND ITAB .
CLEAR KNUMH .
CLEAR KBETR .
ITAB-KNUMH = KNUMH .
APPEND ITAB .
COMMIT WORK AND WAIT.
ENDFUNCTION.
Thanks & Regards
AmrishHi,
Please Check this => The specified item was not found.
How to post code in SCN, and some things NOT to do...
Faisal
Maybe you are looking for
-
I created a site in Dreamweaver CS6 - http://rootsnation.com The navigation buttons work perfectly in Safari, guiding the selected pages to the desired frame called mainFrame, but in Firefox they open in new windows.The code appears to be correct so
-
Gateway registry not getting created
Hi All We are installing Sun IDM gateway (Version: Sun Java System Identity Manager 7.0) on Windows Server 2003 R2 + Service Pack 2 based on the specified command line installation commands. But surprisingly its resgitry is not getting created under
-
How to set up Macbook location correctly?
Hello, Via "Find my..." my macbook locates its self in Chine while its in Lithuania... any ideas how to fix it? Thank You.
-
My phone is sync to someone elses i cloud how can i get rid of it
My phone appears to have sync with someone elses i cloud and now wants to sign in to the account constantly. i have tried re setting it but as soon as i re sync it re loads the bum data, Can i delete the i cloud back up and then clean the phone and m
-
How to delete photos quickly more than one at a time
How can you delete photos quickly