Heterogeneous Connectivity: Error when select data from table
Hi all,
I use Heterogeneous Connectivity in Oracle 10g Linux to connect SQL server Database. I use FeeTDS ODBC driver. After configuration, I create database link in Oracle, Database link is active.
But in SQLplus, I write: select * from all_catalog@DBL; It views all tables and views in sql server database.
When I write: select * from AA@DBL; It produce error:
ORA-00942: table or view does not exist
[Generic Connectivity Using ODBC]Record AA has no fields. Loading failed
ORA-02063: preceding 2 lines from DBL
Please help me. Thank you very much!
I am sorry, i did not go through the entire message of yours
Does AA exist, does not contain columns, describe the table please.
Maybe you should not try Select * from ,,,, rather Select specific fields.. Also if in the remote database, the field and tablename are written in lower case you may want to try
select "field_name" , from "aa" etc
ammar sajdi
Similar Messages
-
Error while selecting date from external table
Hello all,
I am getting the follwing error while selecting data from external table. Any idea why?
SQL> CREATE TABLE SE2_EXT (SE_REF_NO VARCHAR2(255),
2 SE_CUST_ID NUMBER(38),
3 SE_TRAN_AMT_LCY FLOAT(126),
4 SE_REVERSAL_MARKER VARCHAR2(255))
5 ORGANIZATION EXTERNAL (
6 TYPE ORACLE_LOADER
7 DEFAULT DIRECTORY ext_tables
8 ACCESS PARAMETERS (
9 RECORDS DELIMITED BY NEWLINE
10 FIELDS TERMINATED BY ','
11 MISSING FIELD VALUES ARE NULL
12 (
13 country_code CHAR(5),
14 country_name CHAR(50),
15 country_language CHAR(50)
16 )
17 )
18 LOCATION ('SE2.csv')
19 )
20 PARALLEL 5
21 REJECT LIMIT UNLIMITED;
Table created.
SQL> select * from se2_ext;
SQL> select count(*) from se2_ext;
select count(*) from se2_ext
ERROR at line 1:
ORA-29913: error in executing ODCIEXTTABLEOPEN callout
ORA-29400: data cartridge error
KUP-04043: table column not found in external source: SE_REF_NO
ORA-06512: at "SYS.ORACLE_LOADER", line 19It would appear that you external table definition and the external data file data do not match up. Post a few input records so someone can duplicate the problem and determine the fix.
HTH -- Mark D Powell -- -
Error when reading data from socket
Hi,
I am getting the error 'NiRawReadError: An error occured when reading data from socket.' when using the ABAP API 'mo_core_service->invoke_matching'.
And I get this error only when I pass ABAP_TRUE to the paramter 'iv_wait_for_invocation' .
Can anybody help me in correcting this?Hi Narasa,
The following error is already in discussion in the below forum.Plz consult the forum link you will find the error solution.
Problem in ABAP API - NiRawReadError: error when reading data from socket
Rgds
Ankit -
Select data from table not in another table
Hi,
I want to select data from table A which is not in table B.
Currently I am doing:
select
snoA,
nameA,
dobA
from A
where snoA not in
(select snoB from A, B
where snoA = snoB
and nameA = nameB)
But above is very slow.
Can I do something like:
select
snoA,
nameA,
dobA
from A, B
where
EXCLUDE ( snoA = snoB and nameA = nameB)
Please note that I need the where condition on both the columns.
any help will be appreciated.
-- HarveyWhat are the approximate data volumes in A and B?
What is "very slow"?
What version of Oracle?
What is the query plan?
Without knowing anything about your system, my first thought would be to see if a NOT EXISTS happened to be faster for your data
SELECT snoA,
nameA,
dobA
FROM a
WHERE NOT EXISTS (
SELECT 1
FROM b
WHERE a.snoA = b.snoB
AND a.nameA = b.nameB )Of course, I'm not sure why you are joining A & B in your NOT IN subquery. It would seem like you would just need a correlated subquery, i.e.
SELECT snoA,
nameA,
dobA
FROM a
WHERE snoA NOT IN (
SELECT snoB
FROM b
WHERE a.snoA = b.snoB
AND a.nameA = b.nameB )That should be more efficient than the original query. The NOT EXISTS version may or may not be more efficient than the NOT IN depending on data volumes.
Justin -
Probel while selecting data from table
Hi,
As per my below code i want to select data from table AFKO where PLNBEZ = it_mat-matnr, and GETRI IS BLANK , but data is not comingin IT_AFKO
**********************CODE
select AUFNR RSNUM GAMNG PLNBEZ From AFKO into table it_afko for all entries in it_mat
where PLNBEZ = it_mat-matnr
and GETRI = ' '.
regards,
zafarHi,
Try below code
select AUFNR RSNUM GAMNG PLNBEZ From AFKO into table it_afko for all entries in it_mat
where PLNBEZ = it_mat-matnr
and GETRI = '00000000'.
Hope you need the records for which GETRI is not updated.
Regards
Vinod -
Can a procedure select data from tables on other schemas?
Can a procedure select data from tables on other schemas?
If it is posible, which syntax should I use to identify the tables and schemas on the SELECT query?Yes , it is possible..unless the current user has the right privileges on others' db objects schema.
Now , as regards the syntax....
1) The more descriptive way is to use the format ... <owner_schema>.<obj_name>.
2) If you have declared public synonyms of other schema's objects then you can refer to them as just <obj.name>.... but the <owner_schema>.<obj_name> is not wrong.
3) If the db objects reside on another database you must have declared a db link.... then the syntax is <owner_schema>.<obj_name>@<db_link_name>.
Regards,
Simon -
Select data from table where field is initial
I have table that has 10 million records.
I want to select data from this table where certain date field is blank.
*SELECT * FROM table*
INTO TABLE internal table
WHERE PSTNG_DATE = BLANK.
Does anybody know how to select data from data base table when certain field is blank.
I cont select all data once and delete which i dont want, the table is big, it will blow up app server.
thanks in advance,
Sachin
Moderator: Pls do not lock the posting instead provide me the link, its disrespecting.Respect the forum rules and common sense, and you will be respected.
"how to select data from a database table when the field is blank" is very basic, and basic questions will be locked, because they have been asked many times and you can find the answer yourself with a little effort. There is nothing disrespectful about it.
Thread locked.
Thomas -
Selecting datas from tables where tbale name is store in a row
Hi
I need to select datas from several different table (QE01, QE02, QE06, QEXXetc.).
The code of the tables I need to select from is store in another table.
Here's an example:
In the table JOURNAL, I have several entries:
01
06
21
31
These are the codes of the tables I need to select datas from:
QE01
QE06
QE21
QE31
I can't use variables in here, how could that be done ?Hi,
This should not be a question on how to query data, but rather on how to store them.
You did not mention any version, but I suggest you read about partitioning,
http://download.oracle.com/docs/cd/E11882_01/server.112/e25789/schemaob.htm#CNCPT112
Could be that especially exchange partition is interesting.
My guess is that these tables are created on the fly as part of data loads?
If so, complete that ETL process by exchanging the just loaded data into a partioned table. And your problem of what to query has disappeared.
Regards
Peter -
Error when reading data from XML using JAXB?
Hi all,
I get the error message when reading data from XML using JAXB.
[org.xml.sax.SAXParseException: The entity name must immediately follow the '&' in the entity reference.]
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalException
(AbstractUnmarshallerImpl.java:315)
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.createUnmarshalException(UnmarshallerImpl.java:481)
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:199)
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:168)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:137)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:142)
I don't find the reason, please help!
Thanks in advance!The problem is sovled.
-
Error when uplaoding data from R/3
hi Gurus,
I have got a problem when loading data from r/3 to bw .
i have loaded a init req and i have got more than 1 lac records.
i found out that there are 2000 records with the same error in PSA.
i have used a normal staging scenario ..psa and then to data target.
I know we can do it manually..but anyother way not retrieveing from r/3 again.
how to solve this problem.
and plz let me if i can have only correct records into data target preventing the incorrect ones by any specific setting..
will award points for good answers
thanks ,
charan.Hi krishna,
there was a typo mistake with rohini..Use the transaction RSKC and enter those unpermitted characters..and do the load this time you will not get that error...
Try to assign points upto your satisfaction level.. -
Incorrect year conversion when selecting date from DatePicker
Hi,
I have a problem when I select date from the date picker calendar to the inputDate item.
The date in input item and date picker calendar are displayed as Buddhist year (Gregorian year + 543) ex. year 2012 is 2555 Buddhist year.
When I selected date from the date picker, the year put in the inputDate item is converted to Gregorian year (2012). It should be buddhist year (2555)
Does anybody know where I can check how the year is converted?
Thanks.
nat...Hi Bijesh,
I use version 11.1.2.2.0. Actually, I got the patch from Oracle support already but it is not working properly with my application. The behavior is like this...
- First, I set the current date as a default date in the inputDate item and date is shown correctly -- 10/10/2555.
- The calendar in datePicker is also displayed correctly with year 2555.
- But when I selected the date from the datePicker, it put 10/10/2012 in the inputDate item.
I am not sure where I can check how the year is converted back to Gregorian. Any clue?
Thanks.
nat... -
ORA-28522 error when reading data from DB2 via hsodbc
Hi All,
I'm trying to connect to a DB2 database running on an AS/400 system, via Oracle HS.
I'm using Oracle 9.2.08. The DB2 version is V4R5.
My ODBC DSN is called TEST_odbc.
The initTEST_sid.ora file contains the following:
HS_FDS_CONNECT_INFO = TEST_odbc
My Listener.ora file contains the following:
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = vm-dashboarddemo)(PORT = 1521))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(PROGRAM = hsodbc)
(ORACLE_HOME = D:\oracle\ora92)
(SID_NAME = TEST_sid)
My TNSNames.ora file contains:
TEST_name =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = VM-DASHBOARDDEMO)(PORT = 1521))
(CONNECT_DATA =
(SID = TEST_sid)
(HS = OK)
When I use TNSPing, I get a successful result:
D:\oracle\ora92\bin>tnsping TEST_name
TNS Ping Utility for 32-bit Windows: Version 9.2.0.8.0 - Production on 04-JUL-20
07 13:46:47
Copyright (c) 1997, 2006, Oracle Corporation. All rights reserved.
Used parameter files:
D:\oracle\ora92\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
(HOST = VM-DASHBOARDDEMO)(PORT = 1521))) (CONNECT_DATA = (SID = TEST_sid)) (HS =
OK))
OK (10 msec)
I can then login to SQLPlus as SYSDBA, and create a database link:
SQL> create database link TEST_link connect to "<username>" identified by "<password>" using 'TEST_name';
Database link created.
So far everything seems to be going well.
But then, when I try and select some data from the linked database, i get the following:
SQL> select * from <tablename>@TEST_link;
select * from <tablename>@TEST_link
ERROR at line 1:
ORA-00942: table or view does not exist
[Generic Connectivity Using ODBC][IBM][Client Access Express ODBC Driver
(32-bit)][DB2/400 SQL]SQL0204 - ZASTSE00 in QGPL type *FILE not found. (SQL
State: S0002; SQL Code: -204)
ORA-02063: preceding 2 lines from TEST_LINK
Does anyone have any ideas? I'd love to get this solved!!
Many Many Thanks,
RiverI should have mentioned that I know that the table exists in the database.
The main reason I'm trying to do this is because I'm trying to get the data from the DB2 DB into my Oracle DB. I have been trying the EXP utility, which gives me a different error code:
D:\oracle\ora92\bin>exp <username>/<password>@TEST_name file=TEST.dmp rows=yes indexes=no
Export: Release 9.2.0.8.0 - Production on Wed Jul 4 13:44:06 2007
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
EXP-00056: ORACLE error 3113 encountered
ORA-03113: end-of-file on communication channel
Username: <username>
Password:
Connected to: Oracle9i Enterprise Edition Release 9.2.0.8.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.8.0 - Production
Export done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
Note: indexes on tables will not be exported
About to export specified users ...
. exporting pre-schema procedural objects and actions
. exporting foreign function library names for user <username>
. exporting PUBLIC type synonyms
. exporting private type synonyms
. exporting object type definitions for user <username>
EXP-00008: ORACLE error 942 encountered
ORA-00942: table or view does not exist
EXP-00024: Export views not installed, please notify your DBA
EXP-00000: Export terminated unsuccessfully
Thanks Again,
Riv -
Error when extracting data from Data Source
Hi All,
I have a Generic datasource in BW which is based on a Function Module.When I am extracting the data from this source in RSA3 it is ending up in Run time error.
the error message is
The current ABAP program "SAPLYBWPU" had to be terminated because one of the
statements could not be executed.
and the error analysis is
You wanted to add an entry to table "\FUNCTION-POOL=YBWPU\DATA=GT_HIERTAB2", which you declared with a UNIQUE KEY. However, there was already an entry with the same key.
This may have been in an INSERT or MOVE statement, or within a
SELECT ... INTO statement.
In particular, you cannot insert more than one initial line into a
table with a unique key using the INSERT INITIAL LINE... statement.
Can anybody explain me how can I resolve this
Thanks
SreejaHello
You can refer following link.
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/a0f46157-e1c4-2910-27aa-e3f4a9c8df33&overridelayout=true -
How to select data from table having date in timestamp
hi All,
I have table and having one field date in type (Timestamp(6))
Date Timestamp(6)
I want to select the data from this table for yesterday or current date or someother day
Please let me know the query for the same.
Regards
KumarDo you really have a column named "DATE"? That is a reserved word in Oracle-- you cannot (easily) use it as a column name
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, Oracle Label Security, OLAP and Data Mining Scoring Engin
e options
SQL> create table abc (
2 date timestamp(6)
3 );
date timestamp(6)
ERROR at line 2:
ORA-00904: : invalid identifierIt wouldn't be helpful to have a column named DATE either.
If you have a table ABC and a column TABLE_TIMESTAMP_FIELD, you would simply do as Bruce has suggested
SELECT *
FROM abc
WHERE table_timestamp_field > systimestamp - 1will give you all rows from ABC where TABLE_TIMESTAMP_FIELD is from the last 24 hours. If you want all rows where TABLE_TIMESTAMP_FIELD was some time yesterday
SELECT *
FROM abc
WHERE table_timestamp_field >= trunc(systimestamp - 1)
AND table_timestamp_field < trunc(systimestamp)Justin -
Error when extracting data from ETL - Missing messages and missing InfoIdoc
Hi All,
We are using BW 3.0 and extracting data from other source systems through Informatica Powercenter (ETL). The system is working fine but when we try to extract data on 31st Dec , we get the following error. Only this load gives the error and all the other load to other data targets are going fine. All the data are one-to-one mapped from ETL to BW.
Error messages from Monitor -Status tab:-
"InfoIdocs missing; external system
Diagnosis :- InfoIDocs are missing. The IDocs are created in BW with non-SAP systems as source
systems that transfer the data and metadata to BW using BAPIs. Since the IDocs are missing, a
short dump in BW probably occurred.
System response: No selection information arrived from the source system"
Error messages from Monitor -Details tab:-
Missing message: Number of sent records, Missing message: Selection completed
Highly appretiate your suggestions.
Vinod.CHHi Rathy Moorthy,
Thank you very much for your reply. The source system connections are OK and we are able to load data to other Data targets from ETL, we have issue only with this this particular load. The load extracts data and I have loaded the data from ETL to PSA and have checked the data content and it is correct. But when I update the same data to the target I get this error. I have also tried to update from PSA to target and also directly from ETL to target.
Appretiate your suggestions.
Maybe you are looking for
-
Replacing SSD with hard disk drive on Qosmio X505-Q880
Is it possible to replace the SSD drive in a Qosmio X505-Q880 with a hard disk drive? If so what type will work? Thanks, Ed
-
Hi there, I upgraded recently to Premiere pro CC 2014 and I am working on a project that is already late. I was having some small issues then I thought that after upgrading to latest version everything would be fine. I just started Premiere and open
-
I have tried using my daughter's iphone 5 cable, also original from apple, and it is doing the same thing!! I had no trouble until today! I undated to OS7 about 2 weeks ago. any suggestions?
-
Oracle 11gR2 RAC Grid installation - Configuration of ASM failed,
Hi guys, Trying to install/configure Oracle 11gR2 Grid for 2 nodes RAC on Suse 10, root.sh failed with this error: 2010-08-19 15:30:47: Querying for existing CSS voting disks 2010-08-19 15:30:47: Performing initial configuration for cluster 2010-08-1
-
Can't play mini dvd - and now I can't eject
I had a training video made at a class yesterday, and the instructor used a Sony mini-dvd camera for media. I can't read it on my work Dell laptop, and I placed the DVD in my mid-2009 17" MBP. Won't play, and I can not eject it either. Other than