SQL help ASAP plz!
Hello! :)
I'll try to describe my problem. So let's assume that I have a function that recursively calls itself. In this function first i do an executequery, and while i 'browse' through the resultset(for eg.: while (rs.next())), i make updates (updatequeries) on those records too. I wanted to make it faster, and i decided to do one connection (for eg.: conMain) and one statement (for eg.: stmtMain), and do all executequeries and executeupdates via this stmtMain. And it didn't work well. My code runs well only on the first row of the rs.next(), and call itself recursively, but only on the first row, in every while(rs.next()). And i think after finishing, and stepping back from recursion, it doesn't get the rs's next row (rs.next()). So I thought about maybe the updatequeries and executequeries doesn't fit next to each other or what!? So i made 2 public statments one is stmtMain and one is execStatement for example. And i used stmtMain for executeupdates, and execStatement for executequeries. And it still didn't work well! I tried out, that i get out recurcion(so only call the function once), and then on the first Resultset the while(rs.next()) stepped through ALL the rows properly. So as i saw the recursion somehow makes the resultset's next() value FALSE!? I haven't tried out yet, to make statements in every call of that recursive function, but i think it'd work. But i think that would slow down the whole source. I read somewhere that a statement can handle lots of resultsets and so, but in this case it seemed that if i call recursively that function, after stepping back, the while(rs.next()) gives false (or what!?), and not stepping to the next record, as it DOES if there's no recursion.
Huh, i hope i've made myself clear, sorry for my english, and maybe i haven't read the documents well or so, but i'm a bit angry i spent my whole last night trying to fix this problem, and discover the problem.
pls help asap :)
thanks
athalay
well, I'll try to explain it a bit more. So I have records named 'catalog'. And this record type has fields: parentid (this points to another 'catalog' record) and catalogdesc (the description of the catalog). The catalogdesc contains the description PLUS before the description, a prefix. As you can see in books, prefix for example: 1.2.2.1 etc. So I want to modify the prefix (which is included in the 'catalogdesc' field) of the childs BASED on the parent's prefix. But in the beginning the parent's prefix is changed too! (example, because a catalog before itself has been deleted) So I have to modify all of it's children's prefix, and their childrens and theirs etc. You see now!? So this is why I do an executequery(which selects the parent's childs), I go into the while(rs.next()) loop, I do an executeupdate(to update the children's prefix based on their parent's), and then call this funtion on them, because they have childrens too!
This is why I need recursion, I hope it's clearer now.
So I still need help :/
thanks
athalay
Similar Messages
-
Hi, i've initialized a config file which is a Configuration file created via
Configuration config = new Configuration;
that has the call .read(); in it which reads a data file that has configurations ex. (file-input-type a)
which has the method .getInputMethod() which grabs an interface of the input type a and then initializes it like so
try {
config.getInputMethod ().initialize (config, sourceArgs);
config.getBallotFormat ().initialize (config);
config.getVotingSystem ().initialize (config);
my question is, if the config is only initialized through the interface how can i invoke the class method of the class that the interface implements? furthermore, can someone explain to me more about interfaces
please help, i've been stuck for two days and i wish to move on, my project's due in 2 days :(Double tap Home button, in multitask bar, swipe right and the tap the left icon to lock/unlock screen orientation.
-
SQL query...pls help ASAP
Actor (Aname: varchar(40), Ano: varchar(6)) Ano is pk
Movie (Mname: varchar(40),mno: varchar(8)) Mno is pk
PlayIn (Ano, Mno, Pay: Integer) Ano and Mno are fk referencing Acotr and Movie respectively.
Actor(Aname, Ano)
A Bingo, A1
B Castro, A2
C Katie, A3
S Hommy, A4
J Tammy, A5
K loren, A6
Movie(Mname, Mno)
Gladiator, M1
Cast, M2
Dog, M3
Jilters, M4
PlayIn(Ano,Mno,Pay)
A1 M1 800
A1 M2 1500
A2 M2 78
A2 M3 1750
A2 M4 2301
A3 M2 904
A3 M3 629
A4 M2 565
A4 M3 5695
A4 M4 1255
A5 M1 989
A5 M4 238
A6 M2 137
A6 M3 236
A6 M4 545
QUESTION: write SQL query to find the names of actors who earned less than 'B Castro' in each movie that 'B Castro' played in.thanks so so much.....
another question:
for each movie, list the movie number, the average
pay and the total number of actors in the movie.....Rather than just asking homework questions and expecting everyone else to do your work for you, why don't you at least have a go at it yourself and post the query that you've tried, then we'll tell you where you are going wrong. You won't learn anything if we just write it for you.
Also, your use of "pls help ASAP" in the subject title is not polite.
This forum is manned by volunteers who have their own jobs and offer their help free of charge.
Everyone who posts an issue on here would love to have it answered as soon as possible, but nobody has the right to assume that their issue is any more important, urgent or requires a quicker answer than anybody elses.
If you need urgent help then you should pay someone to do the work for you. -
Plz help asap....Solman 4.0 inst error
hi.. i am doing the following inst..
solman 4.0 on win 2003 x64 standard
abap and java on ibm db2 udb ver9
java 1.4.2.14 x64 win
i am attaching the error below ....................
java.lang.NullPointerException
at java.io.Reader.<init>(Reader.java:61)
at java.io.InputStreamReader.<init>(InputStreamReader.java:55)
at com.sap.ctc.util.ConfigMainExt.doConfig(ConfigMainExt.java:111)
at com.sap.ctc.util.ConfigMainExt.main(ConfigMainExt.java:231)
that is the log file
the gui give the retry stop msg
and stop after completing 60 proces of the 63
at...
configure system landscape
plz.. i am badly stuck.. need help asap
Message was edited by:
Abdul Wahid KhanBelow is the end part of sapinst_dev.log ..maybe it might help in finding the solution.
==============================================
TRACE [iaxxejsexp.cpp:199]
EJS_Installer::writeTraceToLogBook()
NWCallJava: Arguments passed: P4HOST=BKDEV,P4PORT=50004,J2EE_ADMIN=J2EE_ADMIN,J2EE_PASSWORD=XXXX,HTTPHOST=BKDEV,HTTPPORT=50000,SLDUSER=SLDDSUSER,SLDPASSWORD=XXXX
INFO 2007-04-21 20:37:27 [synxcpath.cpp:776]
CSyPath::createFile()
Creating file C:\Program Files\sapinst_instdir\SOLMAN\SYSTEM\DB6\CENTRAL\AS\java.exe.log.
INFO 2007-04-21 20:37:27
CJSlibModule::writeInfo_impl()
Output of C:\j2sdk1.4.2_14-x64\bin\java.exe -classpath J:/usr/sap/SDV/DVEBMGS00/j2ee/cluster/server0/apps/sap.com/tclmctcutilbasic_ear/servlet_jsp/ctc/root/WEB-INF/classes/ com.sap.ctc.util.ConfigMainExt XXXXXX BKDEV:50000 J2EE_ADMIN XXXXXX is written to the logfile java.exe.log.
WARNING 2007-04-21 20:43:27
CJSlibModule::writeWarning_impl()
Execution of the command "C:\j2sdk1.4.2_14-x64\bin\java.exe -classpath J:/usr/sap/SDV/DVEBMGS00/j2ee/cluster/server0/apps/sap.com/tclmctcutilbasic_ear/servlet_jsp/ctc/root/WEB-INF/classes/ com.sap.ctc.util.ConfigMainExt XXXXXX BKDEV:50000 J2EE_ADMIN XXXXXX" finished with return code 1. Output:
java.lang.NullPointerException
at java.io.Reader.<init>(Reader.java:61)
at java.io.InputStreamReader.<init>(InputStreamReader.java:55)
at com.sap.ctc.util.ConfigMainExt.doConfig(ConfigMainExt.java:111)
at com.sap.ctc.util.ConfigMainExt.main(ConfigMainExt.java:231)
TRACE [iaxxejsexp.cpp:199]
EJS_Installer::writeTraceToLogBook()
NWException thrown: nw.configError:
Java EE Engine configuration error.<br>DIAGNOSIS: Error when configuring J2EE Engine. See output of logfile java.log: 'JSE'.
ERROR 2007-04-21 20:43:27
CJSlibModule::writeError_impl()
CJS-30059 Java EE Engine configuration error.<br>DIAGNOSIS: Error when configuring J2EE Engine. See output of logfile java.log: 'JSE'.
TRACE [iaxxejsbas.hpp:460]
EJS_Base::dispatchFunctionCall()
JS Callback has thrown unknown exception. Rethrowing.
ERROR 2007-04-21 20:43:27
FCO-00011 The step configSLDMainDataSupplier with step key |NW_Onehost|ind|ind|ind|ind|0|0|SAP_Software_Features_Configuration|ind|ind|ind|ind|5|0|NW_Usage_Types_Configuration_AS|ind|ind|ind|ind|0|0|NW_CONFIG_SLD|ind|ind|ind|ind|0|0|configSLDMainDataSupplier was executed with status ERROR .
TRACE
<html><head></head><body><p>An error occurred while processing service <b>SAP Solution Manager 4.0 Support Release 2 > SAP Systems > IBM DB2 for Linux, UNIX, and Windows > Central System > Central System Installation</b>. You may now</p><ul> <li>press <I>Retry</I> to repeat the current step.</li> <li>press the <I>View Log</I> button to get more information about the error.</li> <li>stop the task and continue with it later.</li></ul><p>Log files are written to <b>C:\Program Files/sapinst_instdir/SOLMAN/SYSTEM/DB6/CENTRAL/AS</b>.</p></body></html>
TRACE [iaxxgenimp.cpp:1155]
showDialog()
waiting for an answer from gui
INFO 2007-04-22 06:29:56 [iaxxgenimp.cpp:782]
showDialog()
An error occured and the user decide to stop.\n Current step "|NW_Onehost|ind|ind|ind|ind|0|0|SAP_Software_Features_Configuration|ind|ind|ind|ind|5|0|NW_Usage_Types_Configuration_AS|ind|ind|ind|ind|0|0|NW_CONFIG_SLD|ind|ind|ind|ind|0|0|configSLDMainDataSupplier".
Message was edited by:
Abdul Wahid Khan -
my iphone is acting crazy plz help asap my phone is giving reading me everything i lay my hand on and is not letting me scroll down or select anything i must have accidentally switched some voice thing on plz help me close it:(
First off, try triple clicking the home button.
To scroll use three fingers and I think you have to double tap to get into something.
Go to Settings>General>Accessability>Voiceover and then turn that off.
Hope that sorts it for you -
Why wont i tunes install??? plz help, asap!!
i have just got a new computer, i've downloaded itunes setup but when i go to run it i get this
ITUNESSETUP.exe is not a valid Win32 application
How do i get rid of this???
I've deleted it, restarted the comp, downloaded again but i still get the same message,
Is someone able to help me plz???
Thanx peeps!!
Andrea -x-
HP Pavillion laptop Windows XPthanx, i will try that now.
♥
Windows XP -
Error in the following code.need help asap
hi i have written a block which bulk collects into a pl/sql table.
Getting an error as shown below.
PLz help asap
declare
type summary_upd_tab is table of summary%rowtype;
summary_upd_var summary_upd_tab;
begin
select
min(a.start_time_utc),
max(a.end_time_utc),
sum(duration_seconds),
sum(upload_bytes),
sum(download_bytes)
bulk collect into summary_upd_var ------GEETTING AN ERROR --TOO MANY VALUES???
from aaa_sessions a
group by user_id;
---,type_of_summary,ispeak;
end;
Edited by: user8731258 on Jul 20, 2010 10:16 PMi think the no. of columns should match(and that too in Order) else how will it know which value should go in which field of the collection ?
-
Row_number query - need help ASAP
Hi ,
Need some help bout query
I need a query for display output like below
DATE CODE MAC_NO BATCH_NO
01-OCT-07 1119 02 1
20-OCT-07 1210 01 2
01-NOV-07 1209 01 3
01-NOV-07 1510 01 4
01-NOV-07 4025 01 5
01-NOV-07 4025 01 5
01-NOV-07 4051 03 6
02-NOV-07 1209 01 7
i hv no idea how to do it. My query doesn't work for tat requirement.Tis is my query
SELECT date
,code
,mac_no
,ROW_NUMBER()
OVER (PARTITION by date,code,mac_no
ORDER by date,code,mac_no)
as batch_no
FROM PAYMENT
WHERE npcs_cycle_num = 27
AND txn_insert_seq_num > 0;
The output juz like below.I need everybody help ASAP.
DATE CODE MAC_NO BATCH_NO
01-OCT-07 1119 02 1
20-OCT-07 1210 01 1
01-NOV-07 1209 01 1
01-NOV-07 1510 01 1
01-NOV-07 4025 01 1
01-NOV-07 4025 01 2
01-NOV-07 4051 03 1
02-NOV-07 1209 01 1
Thanks
CTI'm sorry..Maybe my words it not that clear enough. You were right about how ROW_NUMBER works (it
assigns a numeric value and resets based on the grouping you specify in the PARTITION clause).
What I want actually is the row number increment based on the txn_date,poc_code and machine_no.
I'm not sure whether using the row_number() can solve my solutions. I really hope that you could help me.
I thought of using row_number() may help. Do you have any other solution?
Here is my table description.
DESC PAYMENT;
Name Null? Type
TXN_ID_NUM NOT NULL NUMBER(12)
ACCT_NO NOT NULL VARCHAR2(14)
CANCEL_CODE VARCHAR2(5)
ADJ_TYPE_NO VARCHAR2(2)
REASON_CODE VARCHAR2(5)
CASHIER_ID_NO VARCHAR2(10)
SUPERVISOR_ID_NO VARCHAR2(10)
REV_CODE VARCHAR2(5)
TXN_DATE DATE
PAY_ADJ_DATE DATE
POC_CODE VARCHAR2(10)
MACHINE_NO VARCHAR2(3)
PAY_MODE_CODE VARCHAR2(5)
ORIG_ACCT_NO VARCHAR2(14)
PAY_AMT NUMBER(12,2)
INVOICE_NO VARCHAR2(20)
PAY_RECEIPT_NO VARCHAR2(24)
PAY_BATCH_NO VARCHAR2(20)
NPCS_CYCLE_NUM NUMBER(4)
TXN_INSERT_SEQ_NUM NOT NULL NUMBER(12)
2) Below is the query before assigning the row number:
SQL> SELECT TXN_DATE,POC_CODE,MACHINE_NO,PAY_BATCH_NO,PAY_AMT,REV_CODE,ADJ_TYPE_NO,PAY_MODE_CODE
2 FROM PAYMENT
3 WHERE NPCS_CYCLE_NUM=27
4 AND REV_CODE IN (SELECT rev_code
5 FROM OUTBND_REV_CODE
6 WHERE outbnd_agen_file_code = 'TMB'
7 AND sys_appl_id ='CCC')
8 ORDER BY TXN_DATE,POC_CODE,MACHINE_NO;
TXN_DATE POC_CODE MAC PAY_BATCH_NO PAY_AMT REV_C AD PAY_M
01-OCT-07 1119 02 20071101120900000000 154.25 017 85 1
20-OCT-07 1210 01 20071101402501400000 444.02 017 00 5
01-NOV-07 1209 01 20071101120901100000 585.32 017 85 1
01-NOV-07 1510 01 20071101402501100000 493 014 00 1
01-NOV-07 4025 01 20071101402501100000 203.85 016 00 3
01-NOV-07 4025 01 20071101402501100000 487.96 017 00 1
01-NOV-07 4051 03 20071101402501100000 109.26 016 00 3
02-NOV-07 1209 01 20071102120900000000 105.76 014 00 1
3)This is my query and the result:
SQL> SELECT /* SQL_ID 2703 */
2 txn_date
3 ,poc_code
4 ,machine_no
5 ,pay_batch_no
6 ,pay_amt
7 ,rev_code
8 ,adj_type_no
9 ,pay_mode_code
10 ,ROW_NUMBER()
11 OVER (PARTITION by txn_date,poc_code,machine_no
12 ORDER by txn_date,poc_code,machine_no)
13 as row_number
14 FROM PAYMENT
15 WHERE npcs_cycle_num = 27
16 AND txn_insert_seq_num > 0
17 AND rev_code IN (SELECT rev_code
18 FROM OUTBND_REV_CODE
19 WHERE outbnd_agen_file_code = 'TMB'
20 AND sys_appl_id ='CCC');
TXN_DATE POC_CODE MAC PAY_BATCH_NO PAY_AMT REV_C AD PAY_M ROW_NUMBER
01-OCT-07 1119 02 20071101120900000000 154.25 017 85 1 1 (1)
20-OCT-07 1210 01 20071101402501400000 444.02 017 00 5 1 (2)
01-NOV-07 1209 01 20071101120901100000 585.32 017 85 1 1 (3)
01-NOV-07 1510 01 20071101402501100000 493 014 00 1 1 (4)
01-NOV-07 4025 01 20071101402501100000 203.85 016 00 3 1 (5)
01-NOV-07 4025 01 20071101402501100000 487.96 017 00 1 2 (5)
01-NOV-07 4051 03 20071101402501100000 109.26 016 00 3 1 (6)
02-NOV-07 1209 01 20071102120900000000 105.76 014 00 1 1 (7)
8 rows selected.
What I want actually as in the bracket (group by three fields which are txn_date,poc_code and machine_no)
.I hope this is clearer. -
A question about transparent gateway,sb help me plz!!
hi all:
i met a problem while trying the transparent gateway for ibm drda
1.i have the listner.ora configured like this:
=================================================================
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = felix)(PORT = 1521))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(PROGRAM = tg4drda)
(SID_NAME = TEST)
(ORACLE_HOME = E:\oracle\oradrda)
=================================================================
2.and the tnsnames.ora configured like this:
=================================================================
TEST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.18.10.11)(PORT = 1521))
(CONNECT_DATA =
(SID = TEST)
(SERVER = DEDICATED)
(HS = ok)
(HS = OK)
=================================================================
3.and the initTEST.ora configured like this:
=================================================================
set DRDA_CONNECT_PARM=localhost:446
DRDA_REMOTE_DB_NAME=test (database name of db2)
=================================================================
then i log on as user system and create a database link dblink1.But when i try the sql statment "select * from t1@dblink1"
such error came up:
# ORA-28545: error diagnosed by Net8 when connecting to an agent
NCRO: Failed to make RSLV connection
#ORA-02063:preceding 2 lines from dblink1
somebody help me plz,tell me how to deal with such a problem,thanks a lot!!!
Best regards!Hi Felix,
Please take a look at note 234517.1 on metalink (copied below).
This note explains how to resolve the following error messages when using Transparent Gateways or Generic Connectivity:
ORA-3113; ORA-2019; ORA-2085; ORA-12154; ORA-28545; ORA-28546; ORA-28509; ORA-942; ORA-904; ORA-28500;ORA-28528
SCOPE & APPLICATION
This note should help to solve common error messages when using generic
connectivity or gateways.
Common errors with gateways or generic connectivity
Here are the English descriptions of each error; to compare your message
with the message below, you can alter your current SQL*Plus session
and compare your message with the messages listed in this note:
alter session set nls_language=american;
ORA-3113:
SQL> connect system/manager@tg4msql;
ERROR:
ORA-03113: end-of-file on communication channel
Resolution:
You can't connect with SQL*Plus directly to the foreign
data store. HS or Gateways are only designed to work with
a database link from an Oracle database to the foreign
data store
ORA-2019:
SQL> select * from all_catalog@demo;
select * from all_catalog@demo
ERROR at line 1:
ORA-02019: connection description for remote database not found
Resolution:
Create a database link to connect to the foreign database
create [public] database link <db link name>
connect to <user of the foreign datastore>
identified by <password of this user>
using '<SQL*Net ALIAS>';
For case sensitive usernames/passwords of foreign databases,
surround the user and password with double quotes.
create [public] database link <db link name>
connect to "<user of the foreign datastore>"
identified by "<password of this user>"
using '<SQL*Net ALIAS>';
ORA-2085:
SQL> select * from all_catalog@tg4msql_v91;
select * from all_catalog@tg4msql_v91
ERROR at line 1:
ORA-02085: database link TG4MSQL_V91.DE.ORACLE.COM
connects to HO.WORLD
Resolution:
This problem is related to GLOBAL NAMES.
The simplest way to disable global naming is to alter
the current session.
alter session set global_names=false;
The other solution is to add a global_name to the
gateway/hs:
HS_DB_NAME = <datasource>
HS_DB_DOMAIN = <DOMAIN>
But the HS_DB_NAME must not exceed 8 characters and
must not contain any extra characters. If this is not
possible, the globale naming can be disabled by setting
GLOBAL_NAMES = FALSE in the init.ora of the database
as well
ORA-12154:
SQL> select * from all_catalog@demo;
select * from all_catalog@demo
ERROR at line 1:
ORA-12154: TNS:could not resolve service name
Resolution:
The database link uses a SQL*Net alias not specified
in the TNSNAMES.ORA of the database server.
Query the data dictionary to figure out the 'HOST'
specified for the database link:
select db_link, host from user_db_links;
or
select db_link, host from dba_db_links;
The 'HOST' value is the alias of the SQL*Net.
Please make sure it exists in the TNSNAMES.ORA file
present at the Oracle database server.
ORA-28545:
SQL> select * from all_catalog@demo;
select * from all_catalog@demo
ERROR at line 1:
ORA-28545: error diagnosed by Net8 when connecting to an agent
NCRO: Failed to make RSLV connection
ORA-02063: preceding 2 lines from DEMO
Resolution:
There's something wrong with the SQL*Net connection:
- checking the SQL*Net -> Listener configuration with TNSPING:
tnsping <SQL*Net alias>
TNS-12545: Connect failed because target host or object
does not exist
The HOSTNAME specified in the TNSNAMES.ORA is invalid
Try with the OS ping to resolve the hostname / IP adddress
TNS-12541: TNS:no listener
The hostname specified in the listener.ora points to a
machine without an Oracle listener, the listener on that
machine is not running or the port number is wrong.
NO ERROR with TNSPING:
This might be caused by an invalid SID configuration.
Please make sure, that the SID in the listener refelects the
SID specified in the TNSNAMES.ORA. Make sure you don't mix
SID syntax with SERVICE_NAME syntax.
If everything is configured well, please make sure that
lsnrctl status shows at least one service handler for
hsodbc. Probably restart the listener AFTER changing
the listener.ora file.
Still no error found, then please enable listener tracing
(level support) and have a look at the listener.trace file
after retrying the same select statement again.
In the file you should see the connect from the Oracle
database to the listener. After a few lines you should see that
the listener tries to open 2 pipes. Does this work or does it
fail and again a few lines later you see a hex/ascii block that
conatins an error stack like:
ERR=12500, CODE=12500, EMFI=4, CODE=12560, EMFI=4?
Then please check again the listener.ora file; is the
ORACLE_HOME directory specified within the listener.ora file
correct? Or if you are using environment variables in the
listener.ora please replace them with absolute paths.
ORA-28546
CAUSE 1:
SQL> select * from all_catalog@demo;
ERROR at line 1:
ORA-28546: connection initialization failed, probable Net8 admin error
ORA-02068: following severe error from DEMO
ORA-03113: end-of-file on communication channel
Resolution:
This error might be caused by a misplaced 'HS=' or 'HS=OK' key
word in the tnsnames.ora.
Make sure HS= or HS=OK is present and that the SID Connect String
looks like:
(CONNECT_DATA =
(SID = tg4msql)) <= there are 2 closing brackets! The HS
(HS=)) <= key word is OUTSIDE of connect_data
CAUSE 2:
SQL> select * from all_catalog@test;
ora-28546: connection initialization failed, probable net8 admin error
ora-29511 lost rpc connection to heterogeneous remote agent SID ...
ora-02063 preceding 2 lines from test
Resolution:
This behaviour can be found in situations with a version missmatch.
For example the Oracle database is release 9.2.0.4 and the gateway
itself 9.2.0.1
=> The fix is to apply the same database patchset (gateway patches
are part of the database patchsets) to the gateway home as well;
or if the gateway 9.2.0.1 was installed into a 9.2.0.4 database
directory to reapply the database patchset.
ORA-28509:
Older gateways report this error instead of giving a
deltailed error description.
Resolution:
This error indicates the same as the errors described above.
They can be solved by checking the SQL*Net configuration
for the gateway / generic connectivity setup.
ORA-942:
SQL> select irgendwas from demo@demo;
select irgendwas from demo@demo
ERROR at line 1:
ORA-00942: table or view does not exist
...(the text here depends on the library/odbc...
ORA-02063: preceding 2 lines from DEMO
Resolution:
make sure the table exists in the foreign data store.
Pay attention that some foreign data stores are case
sensitive and thus the table_name must be surrounded
by double quotes.
ORA-904:
SQL> select irgendwas from "demo"@demo;
select irgendwas from demo@demo
ERROR at line 1:
ORA-00904: "IRGENDWAS": invalid identifier
Resolution:
Make sure the column name specified exists at the foreign
table and if it is case sensitive, surround it by double quotes.
ORA-28500:
CAUSE 1:
ERROR at line 1:
ORA-28500: connection from ORACLE to a non-Oracle system returned
this message:
[Generic Connectivity Using ODBC][H006] The init parameter
<HS_FDS_CONNECT_INFO> is not set. Please set it in init<orasid>.ora
file.
ORA-02063: preceding 2 lines from HSODBC
Resolution:
The connect information to the remote database or the ODBC DSN is not
found. Add the proper connect string required by the gateway or hs/
generic connectivity agent.
CAUSE 2:
ERROR at line 1:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
ORA-28541: Error in HS init file on line 11.
ORA-02063: preceding 2 lines from HSODBC
Resolution:
The init.ora of the gateway / generic connectivity contains an
invalid parameter in line 11
CAUSE 3:
ERROR at line 1:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[Generic Connectivity Using ODBC]DRV_InitTdp: errors.h (2005): ;
[Microsoft][ODBC SQL Server Driver][SQL Server]Error authenticating user
'sa'. (SQL State: 00000; SQL Code: 18456)
ORA-02063: preceding 2 lines from HSODBC
Resolution:
The username password for the database link is wrong or no connect
information was specified.
Make sure that for case sensitive usernames/passwords the create
database link statement contains the double quotes for the
username/passwords.
Further make sure you specified a username and password. OS
Authentication is currently not supported by most of the
gateways of by generic connectivity.
CAUSE 4:
ERROR at line 1:
ORA-28500: connection from ORACLE to a non-Oracle system returned
this message:
[Generic Connectivity Using ODBC]DRV_InitTdp: errors.h (2005): ;
[Microsoft][ODBC SQL Server Driver][TCP/IP Sockets]SQL Server does
not exist or access denied.[Microsoft][ODBC SQL Server Driver]
[TCP/IP Sockets]ConnectionOpen (Connect()).
(SQL State: 00000; SQL Code: 10061)
ORA-02063: preceding 2 lines from HSODBC
Resolution:
Make sure the foreign database is up and running on the configured
machine.
ORA-28528:
SQL> select * from DecimalType@hsodbc;
ERROR:
ORA-28528: Heterogeneous Services datatype
conversion error
Resolution:
The language of the foreign data store (remote database)
does not match with your Oracle database settings.
Starting with 9.2.0.l4 this error might occure for example '
if numeric values will be truncated.
Adapt in the Gateway/Generic Connectivity initialisation file
the parameter HS_LANGUAGE.
HS_LANGUAGE must be set to the LANGUAGE used in the FOREIGN
database.
as a play with 2 settings and check out which one works:
1. Try:
HS_LANGUAGE=AMERICAN_AMERICA.WE8ISO8859P1
Do you still get the error? Yes, proceed with the second try:
2. Try:
HS_LANGUAGE=GERMAN_GERMANY.WE8ISO8859P1
(or to any other territory that uses a komma as decimal separator)
ORA-24274:
SQL> select * from all_catalog@<db_link>;
select * from all_catalog@<db_link>
ERROR at line 1:
ORA-28522: error initializing heterogeneous capabilities
ORA-28522: error initializing heterogeneous capabilities
ORA-28559: FDS_CLASS_NAME is <GTW>9.2.0.5.0_128, FDS_INST_NAME is <link>
ORA-02063: preceding 3 lines from %s
ORA-00604: error occurred at recursive SQL level 1
ORA-24274: no row exists in the HS$_BASE_CAPS table for these parameters
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 86
ORA-06512: at "SYS.DBMS_HS_UTL", line 431
ORA-06512: at "SYS.DBMS_HS_CHK", line 51
ORA-06512: at "SYS.DBMS_HS_UTL", line 48
ORA-06512: at "SYS.DBMS_HS", line 38
ORA-06512: at line 1
Resolution:
This special combination of errors might occure after applying
the Oracle database and gateway patchset 9.2.0.5 WITHOUT
running catpatch (=the upgrade script of the database).
=> Please run catpatch. If it ran successfully but connectivity
still fails you may run
cathnohs.sql and caths.sql to recreate the HS data
dictionary tables. BUT BE CAREFUL: Running CATHNOHS drops ALL
gateway/generic connectivity related database links!
Hope this helps,
Mark. -
A question about transparent gateway,somebody help me plz!!
hi all:
i met a problem while trying the transparent gateway for ibm drda
1.i have the listner.ora configured like this:
=================================================================
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = felix)(PORT = 1521))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(PROGRAM = tg4drda)
(SID_NAME = TEST)
(ORACLE_HOME = E:\oracle\oradrda)
=================================================================
2.and the tnsnames.ora configured like this:
=================================================================
TEST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.18.10.11)(PORT = 1521))
(CONNECT_DATA =
(SID = TEST)
(SERVER = DEDICATED)
(HS = ok)
(HS = OK)
=================================================================
3.and the initTEST.ora configured like this:
=================================================================
set DRDA_CONNECT_PARM=localhost:446
DRDA_REMOTE_DB_NAME=test (database name of db2)
=================================================================
then i log on as user system and create a database link dblink1.But when i try the sql statment "select * from t1@dblink1"
such error came up:
# ORA-28545: error diagnosed by Net8 when connecting to an agent
NCRO: Failed to make RSLV connection
#ORA-02063:preceding 2 lines from dblink1
somebody help me plz,tell me how to deal with such a problem,thanks a lot!!!
Best regards!I strongly recommend you to read the following metalink note. Note:234517.1
ORA-28545:
SQL> select * from all_catalog@demo;
select * from all_catalog@demo *
ERROR at line 1:
ORA-28545: error diagnosed by Net8 when connecting to an agent
NCRO: Failed to make RSLV connection
ORA-02063: preceding 2 lines from DEMO
Resolution:
There's something wrong with the SQL*Net :
- checking the SQL*Net -> Listener configuration with TNSPING: tnsping <SQL*Net alias> -
Hello guys,my ipod touch has battery problems and internal speaker are not working and will apple replace me a new one,i even have 1 year warranty and i want a new ipod touch white instead of black<<<plz plz plz reply ASAP plz really need HELP!THANK YOU
If you iPod is defective, in warranty and not abused Apple will replace it with a refurbished one. They may or may not replace it with the white one. You will have to ask.
Other users have asked the same question but I hav never heard them come back with whether or not they go the color changed. -
I found My iPhone contacts on my friends Iphone we both have 4s! But we use the same apple ID and ICloud ID! How can undo what happened? all my private stuff is now on his phone!!! help me plz!!?
Of course if you are both connected to the same iCloud account you have the same contacts - what did you expect?. The contacts live on the server and are read from there by the devices; so as you've both managed to sync your contacts up to iCloud they are now inextricably mixed. You can only delete your contacts by deleting individual ones, and doing that will delete them from your phone as well.
You can only unravel this by
1. In the iCloud contacts page at http://icloud.com, select all the contacts, click on the cogwheel icon at bottom left and choose 'Export vCard'.
2. Sign out of System Preferences>iCloud
3. Create a new Apple ID and open a new iCloud account with it for your own use.
4. Import the vCard back into the iCloud contacts page.
5. Go to http://icloud.com and sign in with the original ID. This is now his ID. Work through the contacts individually deleting the ones you don't want him to have. When done sign out and advise him to change his password.
6. Go to the new iCloud account and delete his contacts individually.
Of course if you have also been syncing calendars and using the same email address there are problems with doing this. -
i just connected my ipod touch 4g to my laptop and there is an update 4.3.3 available i was downloading it and just as it finishes it says your network session has timed out what ca i do? HELP ASAP PLEASE!!!
Try a direct download:
iPod, iPhone and iPad Firmware Download
Manually install it by holding your "Option" key down when clicking on the "Restore" button in iTunes and select the firmware file you downloaded. -
Stuttering flv playback issue- need help asap
We need help asap. Have a project is due to deliver today (5/14).
We have a video to go on a dvd-rom, live action with Motion Graphics behind.
When output is done thru Projector the Motion Graphics stutter as they scroll.
Here is more technical info:
Stuttering flv playback issue:
Prores 422 timeline 29.97fps 1280x720 output from fcp using current settings.
Mov file is approx 7gb, plays relatively smooth on a mac pro with no raid.
Frame by frame analysis shows all frames are present with no jumps tears or skips.
Tried several output paths, programs and settings to create a smooth flv file to no avail.
We adjusted data rates from 2k, 3.5k, 4k and 8k, no luck
We adjusted keyframe rates from low to all frames, no luck.
We tried cs3 flash encoder, cs5 media encoder, squeeze ect, same results.
Playback in the flash projector seems to choke slightly no matter what we do.
Have also posted in the Director Forum.
Any help much appreciated!Here are a few ideas off the top of my head:
Try playing the file using a different xtra, sometimes different ones will work better. If you have Director 11.5, there is a native flv playback xtra.
You can build a player easily in Flash using the flvPlayback component, then bring that into Director as a swf.
Once you have the video in Director, try making the member Direct To Stage (DTS). If it is already DTS, try making it not DTS.
Make sure the video is not transparent, and nothing in Director overlaps the video... in fact, when the video is playing, nothing should be moving at all, and try to keep the amount of code that is running to a minimum.
Try lowering your video's data rate further or try using a different codec.
Using VBR (Variable Bit Rate) compression often makes the video appear to play smoother.
Try compressing the flv with different software. FFMpeg, for example, is free and does a very good job, often better than the Flash Video Encoder that comes with Flash/Creative Suite. -
Need Help ASAP my State tax form is in a PDF file and the attachment in my email says Please wait
Need Help ASAP my State tax form is in a PDF file and the attachment in my email says Please wait...
I tried downloading updates like it said to but it still will not display the document. How do I print the PDF file ASAPCan you give us a LOT more info?
What email client? What version of Reader (I can only assume you even have Reader at this point)?
Please wait? I'm sure it says more than that, right?
Have you tried simply saving the PDF (it IS a PDF correct?) to your desktop and opening it from there?
Did you get this form from the IRS or did it come from somewhere else? If the IRS again, what version of Reader?
Help us help you.
Maybe you are looking for
-
How do I save my Home sharing details on Apple TV. It resets each time I leave COMPUTER ...
-
Nullpointer when starting application.
Sometimes when i start my application with java web start, a nullpointer exception accurs, but it doesn't affect the application. And seems to happen randomly. Exception in thread "Thread-3" java.lang.NullPointerException at com.sun.javaws.Launcher$2
-
I want to backup my MacBook (which is almost at critical mass) before I migrate my files to my new MacBookPro. I really just want to backup my photos and itunes library. How do I do this? Time Machine wants you to select what to exclude. It would tak
-
When trying to run a jsp or html file my oc4j does the following: C:\oracle\jdev\jdk\bin\javaw.exe -ojvm -classpath C:\oracle\jdev\j2ee\home\oc4j.jar -Doc4j.userThreads=true;-ms500m;-mx1024m com.evermind.server.OC4JServer -config C:\oracle\jdev\jdev\
-
Timestamp value is not computed, htmldb 1.6.0
As described in the thread "Date values aren't ...." I do have an actual problem with timestamps. Scenario: my table stores attributes for foreign requests. Each request has a timestamp when he was received and some timestamps for calculating the wor