Get ORA-28562 with link of database when select NULL via ODBC
Hello
This is my first post of the time issue in this community. Apologies if this isn't the right place to start and lease let me know where to post this instead.
I have a database link to connect via odbc to Ingres. Everything works as expected but when I try to select ODBC (HS), where the column is NULL, it returns the error:
Select * from mynull@ingres;
ORA-28562: heterogeneous Services data truncation error
ORA-02063: preceding line of INGRES
This is the track that counts:
hgoftch2, line 139: print hoada @ 0xe55288
MAX: 1, SIZE: 1, BRC:1, WHT = 5 (SELECT_LIST)
hoadaMOD bit-values found (0x200: TREAT_AS_CHAR)
DTY NULL-OK LEN MAXBUFLEN PR/SC CSE IND MOD NAME
VARCHAR Y 1 1 12 0 / 0 0 0 200 col1
SQLFetch: rank: 1, column 1, bflsz: 2, bflar:-1
SQLFetch: rank: 1, column 1, bflsz: 2, bflar: SQL_NULL_DATA
1 lines read
Here's the hsinit:
#
# HS init parameters
#
HS_FDS_CONNECT_INFO = rd-cdsuat02
HS_FDS_TRACE_LEVEL = DEBUG
HS_FDS_TRACE_LEVEL0 = 255
#HS_FDS_FETCH_ROWS = 1
HS_FDS_SHAREABLE_NAME = /opt/Ingres/IngresII/ingres/lib/libiiodbcdriver.1.so
HS_LANGUAGE = AMERICAN_AMERICA.we8iso8859P1
#HS_KEEP_REMOTE_COLUMN_SIZE = REMOTE
#
# ODBC specific environment variables
#
Set ODBCINI=/opt/Ingres/IngresII/ingres/files/odbc.ini
The values in the table mynull on the side of Ingres is added as follows:
create table mynull (col1 char (1) with the null value);
insert into mynull values (NULL);
The idea is to use the database link to convert the Ingres on Oracle data. I have the tables all created and copied 90% of the data, but stuck with all the data that has NULL values in it. Can someone tell me what I did not right?
Thank you
HY
Hi Mike,.
Thanks for spending the time to answer my question. Just to let you know that I discovered that I need to add this in my hs init file:
HS_FDS_SQLLEN_INTERPRETATION = 32
This solved the problem I have. Now, I get NULL value correctly. Before closing the issue, here is the info you requested. Thanks again for the help.
1. you use DG4ODBC to connect to Ingres? If so, what is the version?
Yes, not sure about the version that is part of the Oracle 12 C.
2. What is the name and the version of the ODBC of Ingres driver that you use?
The driver name is Ingres and version: 3.50.1010.0137
3. What is returned by - describe "mynull"@gtw_link ".
-do not put a semicolon at the end of the describe.
02:04:21 wswmvzwd [SYS] > describe mynull@ingres
Name Null? Type
----------------------------------------------------------------------------------------------------------- -------- ------------------------------------------------------------------------
col1 VARCHAR2(1)
4. what happens if you use NVL in the selection from Oracle?
Previously, it is fixed:
12:15:39 wswmvzwd [SYS] > select * from mynull@ingres;
ERROR:
ORA-28562: heterogeneous Services data truncation error
ORA-02063: preceding line of INGRES
no selected line
Elapsed time: 00:00:00.13
After it is fixed (added HS_FDS_SQLLEN_INTERPRETATION = 32):
12:17:03 wswmvzwd [SYS] > select nvl ("col1", 'NULL') of mynull@ingres;
NVL)
----
NULL VALUE
A
NULL VALUE
5. you have-
HS_FDS_SHAREABLE_NAME = /opt/Ingres/IngresII/ingres/lib/libiiodbcdriver.1.so
-is the Ingres driver or a driver manager libiiodbcdriver.1.so?
Ingres driver
-If the pilot can you confirm it offers the features of driver as Manager?
Yes, I was able to check it out since the Manager ODBC INgres for the test.
6. can you upload a track of comprehensive gateway somewhere so that see us? Use-
HS_FDS_TRACE_LEVEL = 255
for the trace.
Since it is resolved, I'll ignore it. Part of the debugging information is in the original post.
Thanks again Mike, really appreciated.
HY
Tags: Database
Similar Questions
-
Get ORA-01489: with tabular
Hello
I have a tabular presentation that has a couple of apex_item.select_list_from_lov in the source query, for example
SELECT Apex_item.hidden (1
NULL
)
|| apex_item.select_list_from_lov (4
NULL
, "LOV_POLICY".
, "style =" width: 170px "'"
|| ')"'
'NO '.
NULL
NULL
, "f04_".
|| LPAD (9900
+ LEVEL
4
, '0'
)
NULL
)
|| apex_item. Hidden (3
NULL
) policy_name
.....
I now get an ORA-01489: result of concatenating string is too long error. It was working fine but the LOV which depends on one of the points went to a hundred documents, or so I'm half guess that the apex_item function creates a static string more than 4,000 characters, and thus the error.
This has large implications for our application as long as there are several tabular forms that display data in this way (I assume that apex_item.select_list_from_query is no different) and it is likely that these selection lists will grow over time.
Someone has encountered this problem themselves and found a solution? We have an Ajax solution but this will involve rewritten considerable and we have little time.
Any suggestions greatly appreciated...Hello
Do something like the following:
1. create a LOV to SELECT NULL, NULL Ruy FROM DUAL and use this instead LOV_POLICY
2. on your APEX_ITEM, add in the parameter which allows additional values
3. under your existing area, create a new PL/SQL area that generates the actual values using something like:DECLARE vSEP VARCHAR2(1); BEGIN vSEP := ''; htp.p('<script type="text/javascript">'); htp.p('var sMaster = new Array('); FOR c IN (SELECT DNAME d, DEPTNO r FROM DEPT ORDER BY UPPER(DNAME)) LOOP htp.p(vSEP || 'new Array (' || c.r|| ',"' || c.d|| '")'); vSEP := ','; END LOOP; htp.p(')'); htp.p('</script>'); END;
4. create another region below which set it on have No model and the source of the value:
<script type="text/javascript"> function updateList(sChild) { var o; var sChildValue = sChild.value; sChild.options.length = 0; o = new Option('-Select-', ''); sChild.options.add(o); var k; for (k = 0; k < sMaster.length; k++) { o = new Option(sMaster[k][1], sMaster[k][0]); sChild.options.add(o); } sChild.value = sChildValue; if (sChild.selectedIndex == -1) { sChild.selectedIndex = 0; } } function updateLists() { var lists = document.getElementsByName("f04"); var k; var x; if (lists) { for (k = 0; k < lists.length; k++) { updateList(lists[k]); } } } updateLists(); </script>
Now, when the page loads, each selection list will show a null value and the actual value. In this report, will be generated a javascript array that contains the appropriate values for the lists. Following that will be the JavaScript that traverses the playlists selection and fills them with the content of the table.
The benefits of doing it this way are double - you work around issues with lengths of chain and the page will actually load a lot faster.
-
Hello
I'm trying to import a table from a database server Oracle 11 GR 2 (11.2.0.3) to a 12cR1 (12.1.0.2) Oracle database (non - CBD).
Here's how I did the export of the source:
SQL > show the db_name parameter
VALUE OF TYPE NAME
------------------------------------ ----------- ------------------------------
db_name string ZEUS
SQL > select banner version of v$.
BANNER
--------------------------------------------------------------------------------
Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
PL/SQL Release 11.2.0.3.0 - Production
CORE Production 11.2.0.3.0
AMT for Linux: Version 11.2.0.3.0 - Production
NLSRTL Version 11.2.0.3.0 - Production
parfile: exp_missing_SPATIAL_SCHEMAS_ZEUS11g.par
tables is MANGO. ORTHO_PHOTOS, MVDEMO_NATURALEARTH. WORLD_RASTER
Directory = DATA_PUMP_DIR
REUSE_DUMPFILES = y
exclude = statistics
dumpfile = expdp_missing_SPATIAL_SCHEMAS_ZEUS11g.dmp
logfile = logexpdp_missing_SPATIAL_SCHEMAS_ZEUS11g.log
expdp system parfile = exp_missing_SPATIAL_SCHEMAS_ZEUS11g.par
Here's how I did the import to the target:
SQL > show the db_name parameter
VALUE OF TYPE NAME
------------------------------------ ----------- ------------------------------
db_name string ZEUS
SQL > select banner version of v$.
BANNER
--------------------------------------------------------------------------------
Database Oracle 12 c Enterprise Edition Release 12.1.0.2.0 - 64 bit Production
PL/SQL Release 12.1.0.2.0 - Production
CORE Production 12.1.0.2.0
AMT for Linux: Version 12.1.0.2.0 - Production
NLSRTL Version 12.1.0.2.0 - Production
parfile: imp_missing_SPATIAL_SCHEMAS_ZEUS12c.par
tables is MANGO. ORTHO_PHOTOS, MVDEMO_NATURALEARTH. WORLD_RASTER
Directory = TEMP_DUMPS
dumpfile = expdp_missing_SPATIAL_SCHEMAS_ZEUS11g.dmp
logfile = logimpdp_missing_SPATIAL_SCHEMAS_ZEUS12c.log
Impdp system parfile = imp_missing_SPATIAL_SCHEMAS_ZEUS12c.par
I find myself with this kind of error:
ORA-39117: Type necessary to create the table is not included in this operation. Because sql is:
CREATE TABLE "MANGO". "" ORTHO_PHOTOS "(NUMBER OF 'FID', 'NAME"VARCHAR2 (256 BYTE), VARCHAR2 (256 BYTE) 'TYPE', 'IMAGE' "MDSYS"." SDO_GEORASTER')
SEGMENT OF PCTFREE, PCTUSED 10 40 INITRANS, MAXTRANS 1 255 NOCOMPRESS LOGGING CREATION
STORAGE (INITIAL 65536 THEN 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS USER_TABLES DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT 1)
TABLESPACE...
Yet, the 'MDSYS. "' Data SDO_GEORASTER type" exist in the source and target database.
Someone has such experience, may be related to a bug?
Thanks in advance for any information.
Kind regards
Hi Laury.
You say that the object exists, but you check its executable?
https://docs.Oracle.com/database/121/GEORS/release_changes.htm#GEORS1382
I guess that with the release of 12 c, Oracle wish you to specifically take action showing that you have a license Oracle Spatial. Otherwise you can not use the georaster with just the license locator object.
See you soon,.
Paul
-
I thought I would be ok to uninstall then reinstall but after uninstalling, the installer says I already live mail installed and there is no option to reinstall. I deleted all the files that I can find regarding this & used a registry cleaner, but always the same result. I have a machine without virus & spyware, Win7 Proff Os. I'm desperate!
Valuable emails with reception details etc are all lost!
What can I do to restore Windows live mail?
Regards Richard."Win7 Proff Os."
For any question on Windows 7:
http://social.answers.Microsoft.com/forums/en-us/category/Windows7
Link above is Windows 7 Forum for questions on Windows 7.
Windows 7 questions should be directed to the it.
You are in the Vista Forums.
See you soon.
Mick Murphy - Microsoft partner
-
It is very annoying and I can't get rid of
Hello
They are called icons and they are used by some programs, such as backup programs online, storing files online programs (such as Skydrive, etc.) and other programs.
They reflect the State of these files.
Status, such as should be saved has been saved, hasn't been downloaded yet, etc, etc.
What happens when you right click the icon of recovery?
Let us know.
Concerning
-
ORA-28500 + 'String data, right truncation' when selecting nvarchar (max)
Hello
I was able to put in place a db Oracle 11.2.0.1 link to SQL Server 2005 using DG4ODBC.
When you try to select a column with the data type of nvarchar (max) in the db link I get the following error:
The actual data in the column do not exceed 31 characters, but the application still does not work.ORA-28500: connection from ORACLE to a non-Oracle system returned this message: [Microsoft][SQL Native Client]String data, right truncation {01004}[Microsoft][SQL Native Client]String data, right truncation {01004}[Microsoft][SQL Native Client]String data, right truncation {01004}[Microsoft][SQL Native Client]String data, right truncation {01004}[Microsoft][SQL Native Client]String data, right truncation {01004} ORA-02063: preceding 2 lines from SQLSERVER_DBLINK
Any suggestions?
Thank you.checked with DataDirect ODBC driver that returns for col2 = nvarchar (max) and col3 = varchar (max)
Entry hgopcda at 2010/12/23-11: 55:17
Column:2 (col2): dtype:-10 (WLONGVARCHAR), prc / scl:1073741823 / 0, nullbl:1, radix: 0 byte: 2147483647, sign: 1
Out of hgopcda, rc = 0 to 2010/12/23-11: 55:17
SQLFetch ENTER [1 args]
I [0] StatementHandle: h0x0816ff40
---> RC = 0(TRC = 0)
OUTPUT SQLFetch [1 args]
I [0] StatementHandle: h0x0816ff40
Entry hgopcda at 2010/12/23-11: 55:17
Column:3 (col3): dtype:-1 (LONGVARCHAR), prc / scl:2147483647 / 0, nullbl:0, radix: 0 byte: 2147483647, sign: 1
Out of hgopcda, rc = 0 to 2010/12/23-11: 55:17This driver correctly fills the buffer (0 no equal) and function of the buffer the gateway decided to map it to:
DTY NULL-OK LEN MAXBUFLEN PR/SC CSE IND MOD NAME
12 Y VARCHAR 20 20 0 / 0 0 0 200 col1
-1 LONGVARCHAR Y 0 0 0 / 0 0 0 220 col2
-1 LONGVARCHAR Y 0 0 0 / 0 0 0 220 col3and in Oracle when performing a describe statement I see the column as LONG.
This type of mapping from nvarchar to LONGVARCHAR works in Dg4ODBC if the Oracle DB character set = Unicode. => and you meet this requirement.
==>> If it looks like a driver problem, and it might be useful to use a different driver.
Published by: kgronau on December 23, 2010 12:02
-
Original title: how to stop the boot to the power manager to the top
I have a Dell Inspiron 15R-5520 with windows 7 64 bit. Everytime I turn it on, I get a screen of windows boot manager with options should I select manually every time I want to use the device. Looking for information/links on how to eliminate this from happening without a re - install?
Hello
If you have more than one operating system installed on your computer, you can choose the one that starts when you turn on your computer. More than one operating system installed on a computer is often called a multiboot configuration.
If you try to select only the operating system by default to start when you turn on or restart your computer, you can see and try the steps to set the default operating system.
You can also set the time of the display of the operating system from the list.
Change the default operating system for startup (multiboot)
Note: This article also applies to Windows 7.
If you do not use the other operating system, you can also try the following steps to remove the entry from the boot order and check:
a. click Start , Start search box type msconfig and press ENTER.
b. click on the Startup tab.
c. you will see the number of operating systems installed, select the operating system you want to remove.
d. now click on Remove.
e. click apply and Ok
f. restart the computer and check.
Hope the helps of information. Let us know if you need help with Windows related issues. We will be happy to help you.
-
I get this error with my login form when I try to log in, but I'm not sure if this is a problem with my php code or my flex code!
ReferenceError: Error #1069: loginsuccess property not found on string and there is no default value.
CBC::main/checkLogin()
CBC::main/__login_user_result()
to flash. events::EventDispatcher / dispatchEv...
to flash. events::EventDispatcher / dispatchEv...
to HTTPOperation / http://www.Adobe.com/2006/Flex/MX/internal:dispatchRpcEvent ()
to mx.rpc::AbstractInvoker / http://www.Adobe.com/2006/Flex/MX/internal:resultHandler ()
at mx.rpc::Responder/result()
at mx.rpc::AsyncRequest/acknowledge()
to the DirectHTTPMessageResponder/completeHandl...
to flash. events::EventDispatcher / dispatchEv...
to flash. events::EventDispatcher / dispatchEv...
at flash.net::URLLoader/onComplete()
my php code is:
[php] <? PHP
define ("DATABASE_SERVER", "localhost");
define ('DATABASE_USERNAME","f4r");
define ('DATABASE_PASSWORD', 'cool23');
define ('database_name', 'bignixs1');
connect to the database
$mysql = mysql_connect (DATABASE_SERVER, DATABASE_USERNAME, DATABASE_PASSWORD) or die (mysql_error ());
Select the database
@mysql_select_db (DATABASE_NAME);
re-branded the data passed from Flex to variables
$username = mysql_real_escape_string ($_POST ["usernam...)
$password = mysql_real_escape_string ($_POST ["passwor...)
Ask the database to see if the combination of username/password given name is valid.
$query = "SELECT * from users WHERE username = 'username' AND password = 'password" ";
$result = mysql_fetch_array (mysql_query ($query));
start generating XML
$output = "< loginsuccess > ';
If the query returned true, exit < loginsuccess > Yes < / loginsuccess > other output < loginsuccess > not < / loginsuccess >
if(!$result)
{
$output. = « no » ;
} else {}
$output. = "yes";
}
$output. = "< / loginsuccess > ';
all the XML for output
print ($output);
? > [/php]$query = "SELECT * from users WHERE username = 'username' AND password = 'password" ";
should be
$query = "SELECT * FROM users WHERE username = '$username' AND password = '$password'";
example of a system of working with the correct connection code flex & php to ensure:
http://www.mattlefevre.com/viewExample.php?tut=flexPHP&proj=simple%20Login%20Application
-
ORA-00902 error invalid data type when you use CAST in the PL/SQL Package
I'm getting ORA - 00902 Datatype not valid error when you use cast in getEmpValues (see code below) method in the package I created.
I don't know what is the cause of the error. Any help would be appreciated
CREATE OR REPLACE PACKAGE TEST. TEST_PKG AS
ARRAY TYPE MyTableType IS NUMBER;
TYPE REF_CURSOR IS REF CURSOR;
FUNCTION str2tbl (p_str IN VARCHAR2)
RETURN myTableType;
PROCEDURE getContactValues (p_ParameterString IN VARCHAR2, p_Cursor1 to REF_CURSOR);
END TEST_PKG;
CREATE OR REPLACE PACKAGE BODY TEST. TEST_PKG AS
FUNCTION str2tbl (p_str IN VARCHAR2)
RETURN myTableType
AS
l_str LONG default p_str | ',';
l_n NUMBER;
myTableType l_data: = myTabletype();
BEGIN
LOOP
l_n: = INSTR (l_str, ",");
WHEN the OUTPUT (nvl(l_n,0) = 0);
l_data.extend;
l_data (l_data.count): = ltrim (rtrim (substr(l_str,1,l_n-1)));
l_str: = substr (l_str, l_n + 1);
END LOOP;
L_data return;
END;
/*
p_ParameterString is a string of the form 3, 6, 8, 9'
*/
PROCEDURE getEmpValues (p_ParameterString IN VARCHAR2, p_Cursor1 to REF_CURSOR)
AS
BEGIN
OPEN FOR P_Cursor1
SELECT *.
FROM EMP
WHERE EMP_ID IN (SELECT *)
OF THE (SELECT CAST (TEST.) (TEST_PKG.str2tbl (p_ParameterString) as myTableType) double)
);
END getEmpValues;
END TEST_PKG;ARRAY TYPE MyTableType IS NUMBER;
This type must be created outside of the package as a SQL type if it must be used in a select statement.
-
Sync create a database via odbc
Is it possible to have a win RT database that can synchronize via odbc or similar with a pc?
Thank you
Hello
The question you have posted is related to database connectivity and would be better suited to the MSDN support. I suggest you check with the MSDN help for more information.
http://social.msdn.Microsoft.com/forums/en-us/newThread?category=SQLServer&Forum
-
Hi all
I have a small problem, but I can't find the solution yet.
I created a DB1 databaselink: "create public database GO_TO_DB link
connect to TEMP identified by PW_TEMP
using DB2; »
On DB2 I have the TEMP user with password PW_TEMP thanks to subsidies for the TEST table.
In DB2, there is a table "TEST";
I'm logged into DB1 and do: SELECT * FROM TEST; I get: "ora-01017 name username/password invalid; connection refused
ORA-02063 previous line of GO_TO_DB'
messages.
I can connect to DB2 with the TEMP of the user and can select: no problem.
Also, I tried to connect with sqlplus and user TEMP on DB2: no problem.
Connect to DB1 in sqlplus and don't select it * test, I get ora messages too.
Do I did wrong or what I forgot?
Greetz, Cees
This error message means that you have provided the wrong username and password for the database that the DB connection is connected to.
If the password is case-sensitive, you must put quotation marks when you create the DB link.
The name of DB that you provided when you create the DB link could also be referring to a different database than the one you expect. You should check your tnsnames.ora file (or files) to verify this. You can also specify definitively the DB using the syntax ' host: port / SID "instead of a TNS name.
-
Get ORA-00942 error with the clause, but not when the user sys.
Hello
About 3 weeks ago we increased our memary to PGA_aggregate_target = 60 GB, SGA_target = 58 GB Oracle instance. About 1 week ago our cognos user started having errors ORA-00942 for these queries generated with clause, with the same authorization. i.e.
with 'aBmtQuerySubject4' as
(select "BANK_NOTE_ADI_INFO_T". ' ' PRINT_BATCH_ID ' 'PRINT_BATCH_ID '.
'BANK_NOTE_ADI_INFO_T '. ' ' PROCESS_RUN_DT ' 'PROCESS_RUN_DT '.
'BANK_NOTE_ADI_INFO_T '. ' ' RDP_ID ' 'RDP_ID '.
'BANK_NOTE_ADI_INFO_T '. ' ' FI_ID ' 'FI_ID '.
'BANK_NOTE_ADI_INFO_T '. ' ' DEPOSIT_NB ' 'DEPOSIT_NB '.
'BANK_NOTE_ADI_INFO_T '. ' ' PROCESS_MACHINE_ID ' 'PROCESS_MACHINE_ID '.
'BANK_NOTE_ADI_INFO_T '. ' ' OUTPUT_STACKER_TYPE_CE ' 'OUTPUT_STACKER_TYPE_CE '.
'BANK_NOTE_ADI_INFO_T '. ' ' PARTITION_KEY ' 'PARTITION_KEY '.
'BANK_NOTE_ADI_INFO_T '. ' ' LOAD_ID ' 'LOAD_ID '.
'BANK_NOTE_ADI_INFO_T '. ' ' SERIAL_NUMBER_ID ' 'SERIAL_NUMBER_ID '.
'BANK_NOTE_ADI_INFO_T '. ' ' SHIFT_NB ' 'SHIFT_NB '.
'BANK_NOTE_ADI_INFO_T '. ' ' BANK_NOTE_COUNT_NB ' 'BANK_NOTE_COUNT_NB '.
of "BOISI '." BANK_NOTE_ADI_INFO_T' 'BANK_NOTE_ADI_INFO_T '.
)
'CountResultQuery5' as
(select count ("aBmtQuerySubject4". "BANK_NOTE_COUNT_NB") 'C_1' "
, count (1) 'C_2' of 'aBmtQuerySubject4 '.
After having count (*) > 0)
Select 'CountResultQuery5 '. "' C_2 ' 'Count1.
of 'CountResultQuery5 '.
;
with 'aBmtQuerySubject4' as
(select "BANK_NOTE_ADI_INFO_T". ' ' LOAD_ID ' 'LOAD_ID '.
of "BOISI '." BANK_NOTE_ADI_INFO_T' 'BANK_NOTE_ADI_INFO_T '.
)
'CountResultQuery5' as
(select count ("aBmtQuerySubject4". "LOAD_ID") 'C_1' "
, count (1) 'C_2 '.
of 'aBmtQuerySubject4' having count (*) > 0
)
Select 'CountResultQuery5 '. "' C_2 ' 'Count1' of 'CountResultQuery5 '.
;-output like:
'BANK_NOTE_ADI_INFO_T '. ' ' PROCESS_RUN_DT ' 'PROCESS_RUN_DT '.
*
ERROR at line 3:
ORA-00942: table or view does not exist
of "BOISI '." BANK_NOTE_ADI_INFO_T' 'BANK_NOTE_ADI_INFO_T '.
*
ERROR at line 3:
ORA-00942: table or view does not existSince 2 days ago, we get ORA-0403.
One thing I noticed that the coguser can run above queries correctly after they are run by a user sys...
Could you please help me on how I can resolve ORA-00942 error?
Thank you very much, much in advance for all your help and your advice! :-)
Jihong.
"One thing I've noticed the coguser can run over queries correctly after they are run by a user sys... »
Jihong,
Do you mean that queries can be run successfully as a sys user, or as long as once a sys cognos user user has run the query at least once?
Gerard
-
Cannot connect through the ORA-01017 Invalid Username/Password database link
Hello
I have two virtual machines with Oracle 11 g 2 and one with Oracle 12 c installed on RHEL 6
I wanted to install a dblink between the 2, but after you have created the dblink I get error: ORA - 01017 Invalid username/password
Now, I know, the error is clear enough but when I try to connect using netmgr it works
So just to summarize, Oracle 12 c, I'm trying to connect to Oracle 11 g using a DBLINK but I get ORA-01017
Since Oracle 12 c, I created a new service so that I have the remote db alias in tnsname.ora and at the end of the process, when they ask for test connection, I can connect successfully to remote db
Then I created a dblink according to the following:
SQL > CREATE PUBLIC DBLINK LINK DATABASE to CONNECT to
"hr""" IDENTIFIED BY ' password ' with the HELP of 'REMOTEDB ';
If I then select * from employees@dblink, I get the error
What I've noticed, it is that in the 11g (the target machine) I can not connect with OS authentication, don't know if its related
If i: sqlplus / as sysdba I get ORA-01031 insufficient become
I have to connect to the Linux box as user 'oracle', who is a member of the groups oinstall dba
Am I missing something?
Thank you!
CHRI$ says:
SQL > CREATE PUBLIC DATABASE LINK DBLINK TO CONNECT TO
'hr' IDENTIFIED BY 'password' with the HELP of "REMOTEDB";
You will probably have to create the link without containing the user name and the word in double quotes.
-
link to database with current_user
I logged into the EMSDB database. D710.de and created a link of database at EMSDB. D999.de with current_user (... same user, same credentials I'm connected). When I tried to use this link created, I get the error code: "ORA-01017: Benutzername/Kennwort ungultig; Anmeldung abgelehnt. What I don't understand, why I cannot connect to EMSDB. D999.de - but not access to the same database with a database link?
outputSELECT 'EMSDB.D999.DE' REMOTE_DB --NAME OF DATABASE FROM DUAL; VARIABLE VAR_REMOTE_DB VARCHAR2(15); BEGIN :VAR_REMOTE_DB := '&REMOTE_DB'; END; / SELECT :VAR_REMOTE_DB REMOTE_DB FROM DUAL; CREATE DATABASE LINK &REMOTE_DB CONNECT TO CURRENT_USER USING '&REMOTE_DB' ; SELECT TABLE_NAME FROM ALL_TABLES@&REMOTE_DB;
Edited by: user5116754 the 22.02.2011 04:33SQL> @test REMOTE_DB ------------- EMSDB.D999.DE REMOTE_DB -------------------------------- EMSDB.D999.DE SELECT TABLE_NAME FROM [email protected] * FEHLER in Zeile 1: ORA-01017: Benutzername/Kennwort ungültig; Anmeldung abgelehnt SQL>
user5116754 wrote:
Thank you, John... but would it be possible for me to create this database link then?As I said, if you are not a global user according to Oracle, you must create a link to the database providing the username and password of the user in the remote database that you want to use. Something like:
CREATE DATABASE LINK EMSDB.D999.DE CONNECT TO username IDENTIFIED BY password USING 'EMSDB.D999.DE';
How to spy on, what type of user (GLOBAL...) Am I?
Connect to the database local and do:
SELECT external_name FROM user_uses;
If that returns null, then you are not a global user, if it returns a value, you are a global user in this database. Connect to the database remote (everything is identified by emsdb.d999.de) and do the same thing. If the external names on the two databases are not null and has the same value, then you're a global user on two databases and the current_user should work, otherwise you're ethe not a global user on one or two databases, or you're a different global user on the two databases.
John
-
Link to database for MySQL with Oracle Express
Hello Oracle Community,
I made a post on this topic already in the section general, but here is the best place for my question. My goal is to access a mysql to oracle server. Some info about my system and what I've done so far:
Windows Vista 64-bit
Oracle Express 10.2
-installed 32-bit DNS ODBC driver for the database mysql, tested and it succeeded, the name is CHANCE
-created a new file in the folder admin/hs initLuck.ora, prameters are: HS_FDS_CONNECT_INFO = CHANCE HS_FDS_TRACE_LEVEL = OFF
-new section in the listener.ora: (SID_DESC = (SID_NAME = CHANCE) (ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server) (PROGRAM = hsodbc))
-new section in my tnsnames.ora: CHANCE = (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp) (HOST = GOGAPC01001)(PORT = 1521)) (CONNECT_DATA = (SID = CHANCE)) (HS = OK))
-inexplicable the listener
-Do a bit of luck, success of tnsping
-created a link of database: CREATE DATABASE LINK LUCK24 CONNECT TO 'user' IDENTIFIED BY 'password' USING 'LUCK24 ';
-tried to do a simple select statement: SELECT COUNT (*) FROM customers@LUCK;
and there I get an error message:
ORA-28500: connection between ORACLE and a non-Oracle system has sent this message:
[Generic connectivity using ODBC] [Microsoft] [ODBC driver manager] Der Datenquellenname wurde nicht found, und're wurde kein Standardtreiber angegeben (SQL State: IM002;) SQL Code: 0)
ORA-02063: preceding 2 lines of LUCK24
can anyone help?
IkrischerIkrischer,
On which platform do you have installed the drivers 32 bit and HSODBC? He was on a Windows 32-bit platform? It is not supported to run the 32-bit software on a Windows 64-bit platform.
There were some problems with versions 10.2.0.3 and earlier that are similar to those you typo - problems with bigint and select count. These are laid down in the 10.2.0.4 group of patches, so you should apply to your ORACLE_HOME 10.2 directories and see if the problem still occurs.
However, as already said HSODBC 10.2 is now desupported you need to find to install 11.1.0.6 DG4ODBC and then apply the 11.1.0.7 patch group which also solves the problem.
If you have access to My Oracle Support then see this note.Select columns MySQL Bigint use HSODBC returns an incorrect value when you use ODBC MySQL Connector (Doc ID 401086.1)
Kind regards
Mike
Maybe you are looking for
-
I try to use my Apple TV in a hotel room. I am connected to wifi, but I need a browser screen to accept the terms before the wifi will flow. How to a browser on the device?
-
iPhone 5 s etiqueta nao personaliza
iPhone 5 s etiqueta NÃO Personaliza
-
Question by using the fingerprint reader to connect to Windows 8 on Elitebook 2760p
Hey all. The fight currently with my 2760 p to use fingerprint for you the reader connect to Windows 8 x 64. I currently have all the other pieces of the puzzle installed, because I found in older subjects, but when at the login screen, sliding my fi
-
DisplayPort does not work in Windows 7
HP ProBook 6545b Display port does not work in WIndows 7. There are several devices in Device Manager that have no drivers, but Windows in unable to find a driver for them. I downloaded almost all the drivers on the HP website for the laptop and in
-
Are there problems with Windows 8?
Windows 8 will give problems?